payi 0.1.0a23__tar.gz → 0.1.0a24__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 (127) hide show
  1. payi-0.1.0a24/.release-please-manifest.json +3 -0
  2. {payi-0.1.0a23 → payi-0.1.0a24}/CHANGELOG.md +14 -0
  3. {payi-0.1.0a23 → payi-0.1.0a24}/PKG-INFO +1 -1
  4. {payi-0.1.0a23 → payi-0.1.0a24}/api.md +5 -5
  5. {payi-0.1.0a23 → payi-0.1.0a24}/pyproject.toml +1 -1
  6. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_version.py +1 -1
  7. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/budgets/budgets.py +2 -2
  8. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/experiences/experiences.py +10 -10
  9. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/experiences/types.py +71 -51
  10. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/category_delete_response.py +2 -2
  11. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/experiences/__init__.py +1 -0
  12. payi-0.1.0a24/src/payi/types/experiences/type_list_params.py +12 -0
  13. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/experiences/type_update_params.py +2 -5
  14. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/requests_data.py +8 -4
  15. payi-0.1.0a24/src/payi/types/total_cost_data.py +15 -0
  16. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/experiences/test_types.py +52 -45
  17. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/test_experiences.py +8 -8
  18. payi-0.1.0a23/.release-please-manifest.json +0 -3
  19. payi-0.1.0a23/src/payi/types/total_cost_data.py +0 -31
  20. {payi-0.1.0a23 → payi-0.1.0a24}/.gitignore +0 -0
  21. {payi-0.1.0a23 → payi-0.1.0a24}/CONTRIBUTING.md +0 -0
  22. {payi-0.1.0a23 → payi-0.1.0a24}/LICENSE +0 -0
  23. {payi-0.1.0a23 → payi-0.1.0a24}/README.md +0 -0
  24. {payi-0.1.0a23 → payi-0.1.0a24}/SECURITY.md +0 -0
  25. {payi-0.1.0a23 → payi-0.1.0a24}/bin/check-release-environment +0 -0
  26. {payi-0.1.0a23 → payi-0.1.0a24}/bin/publish-pypi +0 -0
  27. {payi-0.1.0a23 → payi-0.1.0a24}/examples/.keep +0 -0
  28. {payi-0.1.0a23 → payi-0.1.0a24}/mypy.ini +0 -0
  29. {payi-0.1.0a23 → payi-0.1.0a24}/noxfile.py +0 -0
  30. {payi-0.1.0a23 → payi-0.1.0a24}/release-please-config.json +0 -0
  31. {payi-0.1.0a23 → payi-0.1.0a24}/requirements-dev.lock +0 -0
  32. {payi-0.1.0a23 → payi-0.1.0a24}/requirements.lock +0 -0
  33. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/__init__.py +0 -0
  34. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_base_client.py +0 -0
  35. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_client.py +0 -0
  36. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_compat.py +0 -0
  37. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_constants.py +0 -0
  38. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_exceptions.py +0 -0
  39. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_files.py +0 -0
  40. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_models.py +0 -0
  41. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_qs.py +0 -0
  42. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_resource.py +0 -0
  43. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_response.py +0 -0
  44. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_streaming.py +0 -0
  45. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_types.py +0 -0
  46. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/__init__.py +0 -0
  47. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_logs.py +0 -0
  48. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_proxy.py +0 -0
  49. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_reflection.py +0 -0
  50. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_streams.py +0 -0
  51. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_sync.py +0 -0
  52. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_transform.py +0 -0
  53. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_typing.py +0 -0
  54. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/_utils/_utils.py +0 -0
  55. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/lib/.keep +0 -0
  56. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/lib/helpers.py +0 -0
  57. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/py.typed +0 -0
  58. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/__init__.py +0 -0
  59. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/budgets/__init__.py +0 -0
  60. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/budgets/tags.py +0 -0
  61. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/categories/__init__.py +0 -0
  62. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/categories/categories.py +0 -0
  63. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/categories/resources.py +0 -0
  64. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/experiences/__init__.py +0 -0
  65. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/resources/ingest.py +0 -0
  66. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/__init__.py +0 -0
  67. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budget_create_params.py +0 -0
  68. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budget_history_response.py +0 -0
  69. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budget_list_params.py +0 -0
  70. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budget_response.py +0 -0
  71. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budget_update_params.py +0 -0
  72. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/__init__.py +0 -0
  73. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/budget_tags.py +0 -0
  74. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_create_params.py +0 -0
  75. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_create_response.py +0 -0
  76. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_delete_response.py +0 -0
  77. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_list_response.py +0 -0
  78. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_remove_params.py +0 -0
  79. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_remove_response.py +0 -0
  80. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_update_params.py +0 -0
  81. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/budgets/tag_update_response.py +0 -0
  82. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/bulk_ingest_response.py +0 -0
  83. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/categories/__init__.py +0 -0
  84. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/categories/resource_create_params.py +0 -0
  85. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/categories/resource_list_response.py +0 -0
  86. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/category_delete_resource_response.py +0 -0
  87. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/category_list_resources_response.py +0 -0
  88. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/category_list_response.py +0 -0
  89. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/category_resource_response.py +0 -0
  90. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/category_response.py +0 -0
  91. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/cost_data.py +0 -0
  92. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/cost_details.py +0 -0
  93. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/default_response.py +0 -0
  94. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/experience_instance.py +0 -0
  95. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/experiences/experience_type.py +0 -0
  96. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/experiences/type_create_params.py +0 -0
  97. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/experiences/type_list_response.py +0 -0
  98. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/ingest_bulk_params.py +0 -0
  99. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/ingest_event_param.py +0 -0
  100. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/ingest_response.py +0 -0
  101. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/ingest_units_params.py +0 -0
  102. {payi-0.1.0a23 → payi-0.1.0a24}/src/payi/types/paged_budget_list.py +0 -0
  103. {payi-0.1.0a23 → payi-0.1.0a24}/tests/__init__.py +0 -0
  104. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/__init__.py +0 -0
  105. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/budgets/__init__.py +0 -0
  106. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/budgets/test_tags.py +0 -0
  107. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/categories/__init__.py +0 -0
  108. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/categories/test_resources.py +0 -0
  109. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/experiences/__init__.py +0 -0
  110. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/test_budgets.py +0 -0
  111. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/test_categories.py +0 -0
  112. {payi-0.1.0a23 → payi-0.1.0a24}/tests/api_resources/test_ingest.py +0 -0
  113. {payi-0.1.0a23 → payi-0.1.0a24}/tests/conftest.py +0 -0
  114. {payi-0.1.0a23 → payi-0.1.0a24}/tests/sample_file.txt +0 -0
  115. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_client.py +0 -0
  116. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_deepcopy.py +0 -0
  117. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_extract_files.py +0 -0
  118. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_files.py +0 -0
  119. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_models.py +0 -0
  120. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_qs.py +0 -0
  121. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_required_args.py +0 -0
  122. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_response.py +0 -0
  123. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_streaming.py +0 -0
  124. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_transform.py +0 -0
  125. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_utils/test_proxy.py +0 -0
  126. {payi-0.1.0a23 → payi-0.1.0a24}/tests/test_utils/test_typing.py +0 -0
  127. {payi-0.1.0a23 → payi-0.1.0a24}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.24"
3
+ }
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.24 (2024-09-03)
4
+
5
+ Full Changelog: [v0.1.0-alpha.23...v0.1.0-alpha.24](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.23...v0.1.0-alpha.24)
6
+
7
+ ### Features
8
+
9
+ * **api:** update via SDK Studio ([#109](https://github.com/Pay-i/pay-i-python/issues/109)) ([0655739](https://github.com/Pay-i/pay-i-python/commit/0655739af5c05d7dc0a906cba9c9ca6981c5c5c4))
10
+ * **api:** update via SDK Studio ([#111](https://github.com/Pay-i/pay-i-python/issues/111)) ([ac5c8a1](https://github.com/Pay-i/pay-i-python/commit/ac5c8a15234a1894d05e71bf7242ccaaa8ce81a7))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * **api:** manual update ([#112](https://github.com/Pay-i/pay-i-python/issues/112)) ([e384406](https://github.com/Pay-i/pay-i-python/commit/e38440680eec95f16d2344b0185cd6752e522093))
16
+
3
17
  ## 0.1.0-alpha.23 (2024-09-03)
4
18
 
5
19
  Full Changelog: [v0.1.0-alpha.22...v0.1.0-alpha.23](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.22...v0.1.0-alpha.23)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a23
3
+ Version: 0.1.0a24
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
@@ -107,7 +107,7 @@ from payi.types import ExperienceInstance
107
107
 
108
108
  Methods:
109
109
 
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>
110
+ - <code title="post /api/v1/experiences/instances/{experience_name}">client.experiences.<a href="./src/payi/resources/experiences/experiences.py">create</a>(experience_name) -> <a href="./src/payi/types/experience_instance.py">ExperienceInstance</a></code>
111
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
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
 
@@ -122,7 +122,7 @@ from payi.types.experiences import ExperienceType, TypeListResponse
122
122
  Methods:
123
123
 
124
124
  - <code title="post /api/v1/experiences/types">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">create</a>(\*\*<a href="src/payi/types/experiences/type_create_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
125
- - <code title="get /api/v1/experiences/types/{experience_type_id}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">retrieve</a>(experience_type_id) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
126
- - <code title="patch /api/v1/experiences/types/{experience_type_id}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">update</a>(experience_type_id, \*\*<a href="src/payi/types/experiences/type_update_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
127
- - <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_response.py">TypeListResponse</a></code>
128
- - <code title="delete /api/v1/experiences/types/{experience_type_id}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">delete</a>(experience_type_id) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
125
+ - <code title="get /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">retrieve</a>(experience_name) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
126
+ - <code title="patch /api/v1/experiences/types/{experience_name}">client.experiences.types.<a href="./src/payi/resources/experiences/types.py">update</a>(experience_name, \*\*<a href="src/payi/types/experiences/type_update_params.py">params</a>) -> <a href="./src/payi/types/experiences/experience_type.py">ExperienceType</a></code>
127
+ - <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>
128
+ - <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>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "payi"
3
- version = "0.1.0-alpha.23"
3
+ version = "0.1.0-alpha.24"
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.23" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.24" # x-release-please-version
@@ -270,7 +270,7 @@ class BudgetsResource(SyncAPIResource):
270
270
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
271
271
  ) -> BudgetHistoryResponse:
272
272
  """
273
- Reset the Budget
273
+ Reset a Budget
274
274
 
275
275
  Args:
276
276
  budget_id (str): The ID of the budget.
@@ -526,7 +526,7 @@ class AsyncBudgetsResource(AsyncAPIResource):
526
526
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
527
527
  ) -> BudgetHistoryResponse:
528
528
  """
529
- Reset the Budget
529
+ Reset a Budget
530
530
 
531
531
  Args:
532
532
  extra_headers: Send extra headers
@@ -42,7 +42,7 @@ class ExperiencesResource(SyncAPIResource):
42
42
 
43
43
  def create(
44
44
  self,
45
- experience_type_id: str,
45
+ experience_name: str,
46
46
  *,
47
47
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
48
48
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -63,10 +63,10 @@ class ExperiencesResource(SyncAPIResource):
63
63
 
64
64
  timeout: Override the client-level default timeout for this request, in seconds
65
65
  """
66
- if not experience_type_id:
67
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
66
+ if not experience_name:
67
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
68
68
  return self._post(
69
- f"/api/v1/experiences/instances/{experience_type_id}",
69
+ f"/api/v1/experiences/instances/{experience_name}",
70
70
  options=make_request_options(
71
71
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
72
72
  ),
@@ -85,7 +85,7 @@ class ExperiencesResource(SyncAPIResource):
85
85
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
86
86
  ) -> ExperienceInstance:
87
87
  """
88
- Get Experience details
88
+ Get an Experience details
89
89
 
90
90
  Args:
91
91
  extra_headers: Send extra headers
@@ -155,7 +155,7 @@ class AsyncExperiencesResource(AsyncAPIResource):
155
155
 
156
156
  async def create(
157
157
  self,
158
- experience_type_id: str,
158
+ experience_name: str,
159
159
  *,
160
160
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
161
161
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -176,10 +176,10 @@ class AsyncExperiencesResource(AsyncAPIResource):
176
176
 
177
177
  timeout: Override the client-level default timeout for this request, in seconds
178
178
  """
179
- if not experience_type_id:
180
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
179
+ if not experience_name:
180
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
181
181
  return await self._post(
182
- f"/api/v1/experiences/instances/{experience_type_id}",
182
+ f"/api/v1/experiences/instances/{experience_name}",
183
183
  options=make_request_options(
184
184
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
185
185
  ),
@@ -198,7 +198,7 @@ class AsyncExperiencesResource(AsyncAPIResource):
198
198
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
199
199
  ) -> ExperienceInstance:
200
200
  """
201
- Get Experience details
201
+ Get an Experience details
202
202
 
203
203
  Args:
204
204
  extra_headers: Send extra headers
@@ -2,8 +2,6 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
6
-
7
5
  import httpx
8
6
 
9
7
  from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
@@ -20,7 +18,7 @@ from ..._response import (
20
18
  async_to_streamed_response_wrapper,
21
19
  )
22
20
  from ..._base_client import make_request_options
23
- from ...types.experiences import type_create_params, type_update_params
21
+ from ...types.experiences import type_list_params, type_create_params, type_update_params
24
22
  from ...types.experiences.experience_type import ExperienceType
25
23
  from ...types.experiences.type_list_response import TypeListResponse
26
24
 
@@ -49,7 +47,7 @@ class TypesResource(SyncAPIResource):
49
47
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
50
48
  ) -> ExperienceType:
51
49
  """
52
- Create an Experience Type
50
+ Create an new Experience Type
53
51
 
54
52
  Args:
55
53
  extra_headers: Send extra headers
@@ -77,7 +75,7 @@ class TypesResource(SyncAPIResource):
77
75
 
78
76
  def retrieve(
79
77
  self,
80
- experience_type_id: str,
78
+ experience_name: str,
81
79
  *,
82
80
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
83
81
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -98,10 +96,10 @@ class TypesResource(SyncAPIResource):
98
96
 
99
97
  timeout: Override the client-level default timeout for this request, in seconds
100
98
  """
101
- if not experience_type_id:
102
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
99
+ if not experience_name:
100
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
103
101
  return self._get(
104
- f"/api/v1/experiences/types/{experience_type_id}",
102
+ f"/api/v1/experiences/types/{experience_name}",
105
103
  options=make_request_options(
106
104
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
107
105
  ),
@@ -110,10 +108,9 @@ class TypesResource(SyncAPIResource):
110
108
 
111
109
  def update(
112
110
  self,
113
- experience_type_id: str,
111
+ experience_name: str,
114
112
  *,
115
- description: Optional[str] | NotGiven = NOT_GIVEN,
116
- name: Optional[str] | NotGiven = NOT_GIVEN,
113
+ description: str,
117
114
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
118
115
  # The extra values given here take precedence over values defined on the client or passed to this method.
119
116
  extra_headers: Headers | None = None,
@@ -133,17 +130,11 @@ class TypesResource(SyncAPIResource):
133
130
 
134
131
  timeout: Override the client-level default timeout for this request, in seconds
135
132
  """
136
- if not experience_type_id:
137
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
133
+ if not experience_name:
134
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
138
135
  return self._patch(
139
- f"/api/v1/experiences/types/{experience_type_id}",
140
- body=maybe_transform(
141
- {
142
- "description": description,
143
- "name": name,
144
- },
145
- type_update_params.TypeUpdateParams,
146
- ),
136
+ f"/api/v1/experiences/types/{experience_name}",
137
+ body=maybe_transform({"description": description}, type_update_params.TypeUpdateParams),
147
138
  options=make_request_options(
148
139
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
149
140
  ),
@@ -153,6 +144,7 @@ class TypesResource(SyncAPIResource):
153
144
  def list(
154
145
  self,
155
146
  *,
147
+ name: str | NotGiven = NOT_GIVEN,
156
148
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
157
149
  # The extra values given here take precedence over values defined on the client or passed to this method.
158
150
  extra_headers: Headers | None = None,
@@ -160,18 +152,35 @@ class TypesResource(SyncAPIResource):
160
152
  extra_body: Body | None = None,
161
153
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
162
154
  ) -> TypeListResponse:
163
- """Get all Experience Types"""
155
+ """
156
+ Get all Experience Types
157
+
158
+ Args:
159
+ name: Experience Type Name
160
+
161
+ extra_headers: Send extra headers
162
+
163
+ extra_query: Add additional query parameters to the request
164
+
165
+ extra_body: Add additional JSON properties to the request
166
+
167
+ timeout: Override the client-level default timeout for this request, in seconds
168
+ """
164
169
  return self._get(
165
170
  "/api/v1/experiences/types",
166
171
  options=make_request_options(
167
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
172
+ extra_headers=extra_headers,
173
+ extra_query=extra_query,
174
+ extra_body=extra_body,
175
+ timeout=timeout,
176
+ query=maybe_transform({"name": name}, type_list_params.TypeListParams),
168
177
  ),
169
178
  cast_to=TypeListResponse,
170
179
  )
171
180
 
172
181
  def delete(
173
182
  self,
174
- experience_type_id: str,
183
+ experience_name: str,
175
184
  *,
176
185
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
177
186
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -192,10 +201,10 @@ class TypesResource(SyncAPIResource):
192
201
 
193
202
  timeout: Override the client-level default timeout for this request, in seconds
194
203
  """
195
- if not experience_type_id:
196
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
204
+ if not experience_name:
205
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
197
206
  return self._delete(
198
- f"/api/v1/experiences/types/{experience_type_id}",
207
+ f"/api/v1/experiences/types/{experience_name}",
199
208
  options=make_request_options(
200
209
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
201
210
  ),
@@ -225,7 +234,7 @@ class AsyncTypesResource(AsyncAPIResource):
225
234
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
226
235
  ) -> ExperienceType:
227
236
  """
228
- Create an Experience Type
237
+ Create an new Experience Type
229
238
 
230
239
  Args:
231
240
  extra_headers: Send extra headers
@@ -253,7 +262,7 @@ class AsyncTypesResource(AsyncAPIResource):
253
262
 
254
263
  async def retrieve(
255
264
  self,
256
- experience_type_id: str,
265
+ experience_name: str,
257
266
  *,
258
267
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
259
268
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -274,10 +283,10 @@ class AsyncTypesResource(AsyncAPIResource):
274
283
 
275
284
  timeout: Override the client-level default timeout for this request, in seconds
276
285
  """
277
- if not experience_type_id:
278
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
286
+ if not experience_name:
287
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
279
288
  return await self._get(
280
- f"/api/v1/experiences/types/{experience_type_id}",
289
+ f"/api/v1/experiences/types/{experience_name}",
281
290
  options=make_request_options(
282
291
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
283
292
  ),
@@ -286,10 +295,9 @@ class AsyncTypesResource(AsyncAPIResource):
286
295
 
287
296
  async def update(
288
297
  self,
289
- experience_type_id: str,
298
+ experience_name: str,
290
299
  *,
291
- description: Optional[str] | NotGiven = NOT_GIVEN,
292
- name: Optional[str] | NotGiven = NOT_GIVEN,
300
+ description: str,
293
301
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
294
302
  # The extra values given here take precedence over values defined on the client or passed to this method.
295
303
  extra_headers: Headers | None = None,
@@ -309,17 +317,11 @@ class AsyncTypesResource(AsyncAPIResource):
309
317
 
310
318
  timeout: Override the client-level default timeout for this request, in seconds
311
319
  """
312
- if not experience_type_id:
313
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
320
+ if not experience_name:
321
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
314
322
  return await self._patch(
315
- f"/api/v1/experiences/types/{experience_type_id}",
316
- body=await async_maybe_transform(
317
- {
318
- "description": description,
319
- "name": name,
320
- },
321
- type_update_params.TypeUpdateParams,
322
- ),
323
+ f"/api/v1/experiences/types/{experience_name}",
324
+ body=await async_maybe_transform({"description": description}, type_update_params.TypeUpdateParams),
323
325
  options=make_request_options(
324
326
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
325
327
  ),
@@ -329,6 +331,7 @@ class AsyncTypesResource(AsyncAPIResource):
329
331
  async def list(
330
332
  self,
331
333
  *,
334
+ name: str | NotGiven = NOT_GIVEN,
332
335
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
333
336
  # The extra values given here take precedence over values defined on the client or passed to this method.
334
337
  extra_headers: Headers | None = None,
@@ -336,18 +339,35 @@ class AsyncTypesResource(AsyncAPIResource):
336
339
  extra_body: Body | None = None,
337
340
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
338
341
  ) -> TypeListResponse:
339
- """Get all Experience Types"""
342
+ """
343
+ Get all Experience Types
344
+
345
+ Args:
346
+ name: Experience Type Name
347
+
348
+ extra_headers: Send extra headers
349
+
350
+ extra_query: Add additional query parameters to the request
351
+
352
+ extra_body: Add additional JSON properties to the request
353
+
354
+ timeout: Override the client-level default timeout for this request, in seconds
355
+ """
340
356
  return await self._get(
341
357
  "/api/v1/experiences/types",
342
358
  options=make_request_options(
343
- extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
359
+ extra_headers=extra_headers,
360
+ extra_query=extra_query,
361
+ extra_body=extra_body,
362
+ timeout=timeout,
363
+ query=await async_maybe_transform({"name": name}, type_list_params.TypeListParams),
344
364
  ),
345
365
  cast_to=TypeListResponse,
346
366
  )
347
367
 
348
368
  async def delete(
349
369
  self,
350
- experience_type_id: str,
370
+ experience_name: str,
351
371
  *,
352
372
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
353
373
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -368,10 +388,10 @@ class AsyncTypesResource(AsyncAPIResource):
368
388
 
369
389
  timeout: Override the client-level default timeout for this request, in seconds
370
390
  """
371
- if not experience_type_id:
372
- raise ValueError(f"Expected a non-empty value for `experience_type_id` but received {experience_type_id!r}")
391
+ if not experience_name:
392
+ raise ValueError(f"Expected a non-empty value for `experience_name` but received {experience_name!r}")
373
393
  return await self._delete(
374
- f"/api/v1/experiences/types/{experience_type_id}",
394
+ f"/api/v1/experiences/types/{experience_name}",
375
395
  options=make_request_options(
376
396
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
377
397
  ),
@@ -1,10 +1,10 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import Dict, List
3
+ from typing import List
4
4
  from typing_extensions import TypeAlias
5
5
 
6
6
  from .category_resource_response import CategoryResourceResponse
7
7
 
8
8
  __all__ = ["CategoryDeleteResponse"]
9
9
 
10
- CategoryDeleteResponse: TypeAlias = Dict[str, List[CategoryResourceResponse]]
10
+ CategoryDeleteResponse: TypeAlias = List[CategoryResourceResponse]
@@ -3,6 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from .experience_type import ExperienceType as ExperienceType
6
+ from .type_list_params import TypeListParams as TypeListParams
6
7
  from .type_create_params import TypeCreateParams as TypeCreateParams
7
8
  from .type_list_response import TypeListResponse as TypeListResponse
8
9
  from .type_update_params import TypeUpdateParams as TypeUpdateParams
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ __all__ = ["TypeListParams"]
8
+
9
+
10
+ class TypeListParams(TypedDict, total=False):
11
+ name: str
12
+ """Experience Type Name"""
@@ -2,13 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
6
- from typing_extensions import TypedDict
5
+ from typing_extensions import Required, TypedDict
7
6
 
8
7
  __all__ = ["TypeUpdateParams"]
9
8
 
10
9
 
11
10
  class TypeUpdateParams(TypedDict, total=False):
12
- description: Optional[str]
13
-
14
- name: Optional[str]
11
+ description: Required[str]
@@ -1,6 +1,6 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import Optional
3
+
4
4
 
5
5
  from .._models import BaseModel
6
6
 
@@ -10,8 +10,12 @@ __all__ = ["RequestsData"]
10
10
  class RequestsData(BaseModel):
11
11
  blocked: int
12
12
 
13
- error: int
13
+ blocked_external: int
14
+
15
+ exceeded: int
16
+
17
+ failed: int
14
18
 
15
- successful: int
19
+ ok: int
16
20
 
17
- total: Optional[int] = None
21
+ total: int
@@ -0,0 +1,15 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+
4
+
5
+ from .._models import BaseModel
6
+ from .cost_data import CostData
7
+ from .requests_data import RequestsData
8
+
9
+ __all__ = ["TotalCostData"]
10
+
11
+
12
+ class TotalCostData(BaseModel):
13
+ cost: CostData
14
+
15
+ requests: RequestsData