payi 0.1.0a103__tar.gz → 0.1.0a105__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 (205) hide show
  1. {payi-0.1.0a103 → payi-0.1.0a105}/.gitignore +0 -1
  2. payi-0.1.0a105/.release-please-manifest.json +3 -0
  3. {payi-0.1.0a103 → payi-0.1.0a105}/CHANGELOG.md +16 -0
  4. {payi-0.1.0a103 → payi-0.1.0a105}/PKG-INFO +1 -1
  5. {payi-0.1.0a103 → payi-0.1.0a105}/api.md +25 -9
  6. {payi-0.1.0a103 → payi-0.1.0a105}/pyproject.toml +1 -1
  7. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_version.py +1 -1
  8. payi-0.1.0a105/src/payi/resources/requests/__init__.py +47 -0
  9. {payi-0.1.0a103/src/payi/resources/requests → payi-0.1.0a105/src/payi/resources/requests/request_id}/__init__.py +20 -20
  10. {payi-0.1.0a103/src/payi/resources/requests → payi-0.1.0a105/src/payi/resources/requests/request_id}/properties.py +22 -22
  11. payi-0.1.0a103/src/payi/resources/requests/requests.py → payi-0.1.0a105/src/payi/resources/requests/request_id/request_id.py +49 -49
  12. {payi-0.1.0a103/src/payi/resources/requests → payi-0.1.0a105/src/payi/resources/requests/request_id}/result.py +8 -14
  13. payi-0.1.0a105/src/payi/resources/requests/requests.py +134 -0
  14. payi-0.1.0a105/src/payi/resources/requests/response_id/__init__.py +47 -0
  15. payi-0.1.0a105/src/payi/resources/requests/response_id/properties.py +181 -0
  16. payi-0.1.0a105/src/payi/resources/requests/response_id/response_id.py +134 -0
  17. payi-0.1.0a105/src/payi/resources/requests/response_id/result.py +173 -0
  18. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/properties.py +15 -15
  19. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/__init__.py +1 -0
  20. {payi-0.1.0a103/src/payi/types/requests → payi-0.1.0a105/src/payi/types}/request_result.py +2 -2
  21. payi-0.1.0a105/src/payi/types/requests/__init__.py +3 -0
  22. payi-0.1.0a105/src/payi/types/requests/request_id/__init__.py +5 -0
  23. payi-0.1.0a103/src/payi/types/use_cases/property_create_params.py → payi-0.1.0a105/src/payi/types/requests/request_id/property_update_params.py +2 -2
  24. payi-0.1.0a105/src/payi/types/requests/response_id/__init__.py +5 -0
  25. payi-0.1.0a105/src/payi/types/requests/response_id/property_update_params.py +14 -0
  26. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/xproxy_result.py +2 -0
  27. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/__init__.py +1 -1
  28. payi-0.1.0a103/src/payi/types/requests/property_create_params.py → payi-0.1.0a105/src/payi/types/use_cases/property_update_params.py +2 -2
  29. {payi-0.1.0a103/tests/api_resources/requests → payi-0.1.0a105/tests/api_resources/requests/request_id}/test_properties.py +16 -16
  30. payi-0.1.0a105/tests/api_resources/requests/request_id/test_result.py +100 -0
  31. payi-0.1.0a105/tests/api_resources/requests/response_id/test_properties.py +130 -0
  32. {payi-0.1.0a103/tests/api_resources/requests → payi-0.1.0a105/tests/api_resources/requests/response_id}/test_result.py +23 -23
  33. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/test_limits.py +0 -4
  34. payi-0.1.0a105/tests/api_resources/use_cases/__init__.py +1 -0
  35. payi-0.1.0a105/tests/api_resources/use_cases/definitions/__init__.py +1 -0
  36. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/use_cases/definitions/test_kpis.py +12 -0
  37. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/use_cases/test_properties.py +16 -16
  38. payi-0.1.0a103/.release-please-manifest.json +0 -3
  39. payi-0.1.0a103/src/payi/types/requests/__init__.py +0 -6
  40. {payi-0.1.0a103 → payi-0.1.0a105}/CONTRIBUTING.md +0 -0
  41. {payi-0.1.0a103 → payi-0.1.0a105}/LICENSE +0 -0
  42. {payi-0.1.0a103 → payi-0.1.0a105}/README.md +0 -0
  43. {payi-0.1.0a103 → payi-0.1.0a105}/SECURITY.md +0 -0
  44. {payi-0.1.0a103 → payi-0.1.0a105}/bin/check-release-environment +0 -0
  45. {payi-0.1.0a103 → payi-0.1.0a105}/bin/publish-pypi +0 -0
  46. {payi-0.1.0a103 → payi-0.1.0a105}/examples/.keep +0 -0
  47. {payi-0.1.0a103 → payi-0.1.0a105}/mypy.ini +0 -0
  48. {payi-0.1.0a103 → payi-0.1.0a105}/noxfile.py +0 -0
  49. {payi-0.1.0a103 → payi-0.1.0a105}/release-please-config.json +0 -0
  50. {payi-0.1.0a103 → payi-0.1.0a105}/requirements-dev.lock +0 -0
  51. {payi-0.1.0a103 → payi-0.1.0a105}/requirements.lock +0 -0
  52. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/__init__.py +0 -0
  53. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_base_client.py +0 -0
  54. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_client.py +0 -0
  55. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_compat.py +0 -0
  56. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_constants.py +0 -0
  57. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_exceptions.py +0 -0
  58. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_files.py +0 -0
  59. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_models.py +0 -0
  60. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_qs.py +0 -0
  61. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_resource.py +0 -0
  62. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_response.py +0 -0
  63. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_streaming.py +0 -0
  64. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_types.py +0 -0
  65. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/__init__.py +0 -0
  66. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_logs.py +0 -0
  67. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_proxy.py +0 -0
  68. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_reflection.py +0 -0
  69. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_resources_proxy.py +0 -0
  70. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_streams.py +0 -0
  71. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_sync.py +0 -0
  72. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_transform.py +0 -0
  73. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_typing.py +0 -0
  74. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/_utils/_utils.py +0 -0
  75. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/.keep +0 -0
  76. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/AnthropicInstrumentor.py +0 -0
  77. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/BedrockInstrumentor.py +0 -0
  78. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/GoogleGenAiInstrumentor.py +0 -0
  79. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/OpenAIInstrumentor.py +0 -0
  80. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/Stopwatch.py +0 -0
  81. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/VertexInstrumentor.py +0 -0
  82. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/VertexRequest.py +0 -0
  83. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/helpers.py +0 -0
  84. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/instrument.py +0 -0
  85. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/lib/version_helper.py +0 -0
  86. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/pagination.py +0 -0
  87. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/py.typed +0 -0
  88. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/__init__.py +0 -0
  89. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/categories/__init__.py +0 -0
  90. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/categories/categories.py +0 -0
  91. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/categories/fixed_cost_resources.py +0 -0
  92. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/categories/resources.py +0 -0
  93. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/ingest.py +0 -0
  94. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/limits/__init__.py +0 -0
  95. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/limits/limits.py +0 -0
  96. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/limits/tags.py +0 -0
  97. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/__init__.py +0 -0
  98. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/definitions/__init__.py +0 -0
  99. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/definitions/definitions.py +0 -0
  100. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/definitions/kpis.py +0 -0
  101. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/definitions/limit_config.py +0 -0
  102. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/definitions/version.py +0 -0
  103. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/kpis.py +0 -0
  104. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/resources/use_cases/use_cases.py +0 -0
  105. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/bulk_ingest_response.py +0 -0
  106. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/categories/__init__.py +0 -0
  107. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/categories/fixed_cost_resource_create_params.py +0 -0
  108. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/categories/resource_create_params.py +0 -0
  109. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/categories/resource_list_params.py +0 -0
  110. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/category_delete_resource_response.py +0 -0
  111. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/category_delete_response.py +0 -0
  112. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/category_list_params.py +0 -0
  113. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/category_list_resources_params.py +0 -0
  114. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/category_resource_response.py +0 -0
  115. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/category_response.py +0 -0
  116. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/cost_data.py +0 -0
  117. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/cost_details.py +0 -0
  118. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/default_response.py +0 -0
  119. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/ingest_bulk_params.py +0 -0
  120. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/ingest_event_param.py +0 -0
  121. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/ingest_response.py +0 -0
  122. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/ingest_units_params.py +0 -0
  123. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limit_create_params.py +0 -0
  124. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limit_history_response.py +0 -0
  125. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limit_list_params.py +0 -0
  126. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limit_list_response.py +0 -0
  127. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limit_reset_params.py +0 -0
  128. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limit_response.py +0 -0
  129. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limit_update_params.py +0 -0
  130. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/__init__.py +0 -0
  131. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/limit_tags.py +0 -0
  132. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_create_params.py +0 -0
  133. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_create_response.py +0 -0
  134. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_delete_response.py +0 -0
  135. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_list_response.py +0 -0
  136. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_remove_params.py +0 -0
  137. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_remove_response.py +0 -0
  138. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_update_params.py +0 -0
  139. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/limits/tag_update_response.py +0 -0
  140. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/pay_i_common_models_api_router_header_info_param.py +0 -0
  141. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/requests_data.py +0 -0
  142. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/__init__.py +0 -0
  143. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/evaluation_response.py +0 -0
  144. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/ingest_units.py +0 -0
  145. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py +0 -0
  146. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +0 -0
  147. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/properties_response.py +0 -0
  148. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared/xproxy_error.py +0 -0
  149. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared_params/__init__.py +0 -0
  150. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared_params/ingest_units.py +0 -0
  151. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +0 -0
  152. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/total_cost_data.py +0 -0
  153. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_case_create_response.py +0 -0
  154. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_case_delete_response.py +0 -0
  155. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_case_retrieve_response.py +0 -0
  156. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definition_create_params.py +0 -0
  157. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definition_list_params.py +0 -0
  158. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definition_update_params.py +0 -0
  159. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/__init__.py +0 -0
  160. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_create_params.py +0 -0
  161. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_create_response.py +0 -0
  162. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_delete_response.py +0 -0
  163. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_list_params.py +0 -0
  164. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_list_response.py +0 -0
  165. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_retrieve_response.py +0 -0
  166. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_update_params.py +0 -0
  167. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/kpi_update_response.py +0 -0
  168. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/definitions/limit_config_create_params.py +0 -0
  169. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/kpi_list_params.py +0 -0
  170. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/kpi_list_response.py +0 -0
  171. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/kpi_update_params.py +0 -0
  172. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/property_create_response.py +0 -0
  173. {payi-0.1.0a103 → payi-0.1.0a105}/src/payi/types/use_cases/use_case_definition.py +0 -0
  174. {payi-0.1.0a103 → payi-0.1.0a105}/tests/__init__.py +0 -0
  175. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/__init__.py +0 -0
  176. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/categories/__init__.py +0 -0
  177. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/categories/test_fixed_cost_resources.py +0 -0
  178. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/categories/test_resources.py +0 -0
  179. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/limits/__init__.py +0 -0
  180. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/limits/test_tags.py +0 -0
  181. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/requests/__init__.py +0 -0
  182. {payi-0.1.0a103/tests/api_resources/use_cases → payi-0.1.0a105/tests/api_resources/requests/request_id}/__init__.py +0 -0
  183. {payi-0.1.0a103/tests/api_resources/use_cases/definitions → payi-0.1.0a105/tests/api_resources/requests/response_id}/__init__.py +0 -0
  184. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/test_categories.py +0 -0
  185. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/test_ingest.py +0 -0
  186. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/test_use_cases.py +0 -0
  187. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/use_cases/definitions/test_limit_config.py +0 -0
  188. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/use_cases/definitions/test_version.py +0 -0
  189. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/use_cases/test_definitions.py +0 -0
  190. {payi-0.1.0a103 → payi-0.1.0a105}/tests/api_resources/use_cases/test_kpis.py +0 -0
  191. {payi-0.1.0a103 → payi-0.1.0a105}/tests/conftest.py +0 -0
  192. {payi-0.1.0a103 → payi-0.1.0a105}/tests/sample_file.txt +0 -0
  193. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_client.py +0 -0
  194. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_deepcopy.py +0 -0
  195. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_extract_files.py +0 -0
  196. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_files.py +0 -0
  197. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_models.py +0 -0
  198. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_qs.py +0 -0
  199. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_required_args.py +0 -0
  200. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_response.py +0 -0
  201. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_streaming.py +0 -0
  202. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_transform.py +0 -0
  203. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_utils/test_proxy.py +0 -0
  204. {payi-0.1.0a103 → payi-0.1.0a105}/tests/test_utils/test_typing.py +0 -0
  205. {payi-0.1.0a103 → payi-0.1.0a105}/tests/utils.py +0 -0
@@ -1,5 +1,4 @@
1
1
  .prism.log
2
- .vscode
3
2
  _dev
4
3
 
5
4
  __pycache__
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.105"
3
+ }
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.105 (2025-07-29)
4
+
5
+ Full Changelog: [v0.1.0-alpha.104...v0.1.0-alpha.105](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.104...v0.1.0-alpha.105)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([48d04d8](https://github.com/Pay-i/pay-i-python/commit/48d04d8d5e8d0627d2c52f28639640f09c960445))
10
+
11
+ ## 0.1.0-alpha.104 (2025-07-25)
12
+
13
+ Full Changelog: [v0.1.0-alpha.103...v0.1.0-alpha.104](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.103...v0.1.0-alpha.104)
14
+
15
+ ### Chores
16
+
17
+ * **project:** add settings file for vscode ([b3eb6f5](https://github.com/Pay-i/pay-i-python/commit/b3eb6f51668fbaa2c81fd0822e883d181c989df2))
18
+
3
19
  ## 0.1.0-alpha.103 (2025-07-23)
4
20
 
5
21
  Full Changelog: [v0.1.0-alpha.102...v0.1.0-alpha.103](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.102...v0.1.0-alpha.103)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a103
3
+ Version: 0.1.0a105
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
@@ -202,24 +202,40 @@ from payi.types.use_cases import PropertyCreateResponse
202
202
 
203
203
  Methods:
204
204
 
205
- - <code title="post /api/v1/use_cases/instances/{use_case_id}/properties">client.use_cases.properties.<a href="./src/payi/resources/use_cases/properties.py">create</a>(use_case_id, \*\*<a href="src/payi/types/use_cases/property_create_params.py">params</a>) -> <a href="./src/payi/types/use_cases/property_create_response.py">PropertyCreateResponse</a></code>
205
+ - <code title="put /api/v1/use_cases/instances/{use_case_id}/properties">client.use_cases.properties.<a href="./src/payi/resources/use_cases/properties.py">update</a>(use_case_id, \*\*<a href="src/payi/types/use_cases/property_update_params.py">params</a>) -> <a href="./src/payi/types/use_case_instance_response.py">UseCaseInstanceResponse</a></code>
206
206
 
207
207
  # Requests
208
208
 
209
- ## Properties
209
+ Types:
210
+
211
+ ```python
212
+ from payi.types import RequestResult
213
+ ```
214
+
215
+ ## RequestID
216
+
217
+ ### Result
210
218
 
211
219
  Methods:
212
220
 
213
- - <code title="post /api/v1/requests/{request_id}/properties">client.requests.properties.<a href="./src/payi/resources/requests/properties.py">create</a>(request_id, \*\*<a href="src/payi/types/requests/property_create_params.py">params</a>) -> <a href="./src/payi/types/shared/properties_response.py">PropertiesResponse</a></code>
221
+ - <code title="get /api/v1/requests/{request_id}/result">client.requests.request_id.result.<a href="./src/payi/resources/requests/request_id/result.py">retrieve</a>(request_id) -> <a href="./src/payi/types/request_result.py">RequestResult</a></code>
214
222
 
215
- ## Result
223
+ ### Properties
216
224
 
217
- Types:
225
+ Methods:
218
226
 
219
- ```python
220
- from payi.types.requests import RequestResult
221
- ```
227
+ - <code title="put /api/v1/requests/{request_id}/properties">client.requests.request_id.properties.<a href="./src/payi/resources/requests/request_id/properties.py">update</a>(request_id, \*\*<a href="src/payi/types/requests/request_id/property_update_params.py">params</a>) -> <a href="./src/payi/types/shared/properties_response.py">PropertiesResponse</a></code>
228
+
229
+ ## ResponseID
230
+
231
+ ### Result
232
+
233
+ Methods:
234
+
235
+ - <code title="get /api/v1/requests/provider/{category}/{provider_response_id}/result">client.requests.response_id.result.<a href="./src/payi/resources/requests/response_id/result.py">retrieve</a>(provider_response_id, \*, category) -> <a href="./src/payi/types/request_result.py">RequestResult</a></code>
236
+
237
+ ### Properties
222
238
 
223
239
  Methods:
224
240
 
225
- - <code title="get /api/v1/requests/result/{category}/{request_id}">client.requests.result.<a href="./src/payi/resources/requests/result.py">retrieve</a>(request_id, \*, category) -> <a href="./src/payi/types/requests/request_result.py">RequestResult</a></code>
241
+ - <code title="put /api/v1/requests/provider/{category}/{provider_response_id}/properties">client.requests.response_id.properties.<a href="./src/payi/resources/requests/response_id/properties.py">update</a>(provider_response_id, \*, category, \*\*<a href="src/payi/types/requests/response_id/property_update_params.py">params</a>) -> <a href="./src/payi/types/shared/properties_response.py">PropertiesResponse</a></code>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "payi"
3
- version = "0.1.0-alpha.103"
3
+ version = "0.1.0-alpha.105"
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.103" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.105" # x-release-please-version
@@ -0,0 +1,47 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from .requests import (
4
+ RequestsResource,
5
+ AsyncRequestsResource,
6
+ RequestsResourceWithRawResponse,
7
+ AsyncRequestsResourceWithRawResponse,
8
+ RequestsResourceWithStreamingResponse,
9
+ AsyncRequestsResourceWithStreamingResponse,
10
+ )
11
+ from .request_id import (
12
+ RequestIDResource,
13
+ AsyncRequestIDResource,
14
+ RequestIDResourceWithRawResponse,
15
+ AsyncRequestIDResourceWithRawResponse,
16
+ RequestIDResourceWithStreamingResponse,
17
+ AsyncRequestIDResourceWithStreamingResponse,
18
+ )
19
+ from .response_id import (
20
+ ResponseIDResource,
21
+ AsyncResponseIDResource,
22
+ ResponseIDResourceWithRawResponse,
23
+ AsyncResponseIDResourceWithRawResponse,
24
+ ResponseIDResourceWithStreamingResponse,
25
+ AsyncResponseIDResourceWithStreamingResponse,
26
+ )
27
+
28
+ __all__ = [
29
+ "RequestIDResource",
30
+ "AsyncRequestIDResource",
31
+ "RequestIDResourceWithRawResponse",
32
+ "AsyncRequestIDResourceWithRawResponse",
33
+ "RequestIDResourceWithStreamingResponse",
34
+ "AsyncRequestIDResourceWithStreamingResponse",
35
+ "ResponseIDResource",
36
+ "AsyncResponseIDResource",
37
+ "ResponseIDResourceWithRawResponse",
38
+ "AsyncResponseIDResourceWithRawResponse",
39
+ "ResponseIDResourceWithStreamingResponse",
40
+ "AsyncResponseIDResourceWithStreamingResponse",
41
+ "RequestsResource",
42
+ "AsyncRequestsResource",
43
+ "RequestsResourceWithRawResponse",
44
+ "AsyncRequestsResourceWithRawResponse",
45
+ "RequestsResourceWithStreamingResponse",
46
+ "AsyncRequestsResourceWithStreamingResponse",
47
+ ]
@@ -8,14 +8,6 @@ from .result import (
8
8
  ResultResourceWithStreamingResponse,
9
9
  AsyncResultResourceWithStreamingResponse,
10
10
  )
11
- from .requests import (
12
- RequestsResource,
13
- AsyncRequestsResource,
14
- RequestsResourceWithRawResponse,
15
- AsyncRequestsResourceWithRawResponse,
16
- RequestsResourceWithStreamingResponse,
17
- AsyncRequestsResourceWithStreamingResponse,
18
- )
19
11
  from .properties import (
20
12
  PropertiesResource,
21
13
  AsyncPropertiesResource,
@@ -24,24 +16,32 @@ from .properties import (
24
16
  PropertiesResourceWithStreamingResponse,
25
17
  AsyncPropertiesResourceWithStreamingResponse,
26
18
  )
19
+ from .request_id import (
20
+ RequestIDResource,
21
+ AsyncRequestIDResource,
22
+ RequestIDResourceWithRawResponse,
23
+ AsyncRequestIDResourceWithRawResponse,
24
+ RequestIDResourceWithStreamingResponse,
25
+ AsyncRequestIDResourceWithStreamingResponse,
26
+ )
27
27
 
28
28
  __all__ = [
29
- "PropertiesResource",
30
- "AsyncPropertiesResource",
31
- "PropertiesResourceWithRawResponse",
32
- "AsyncPropertiesResourceWithRawResponse",
33
- "PropertiesResourceWithStreamingResponse",
34
- "AsyncPropertiesResourceWithStreamingResponse",
35
29
  "ResultResource",
36
30
  "AsyncResultResource",
37
31
  "ResultResourceWithRawResponse",
38
32
  "AsyncResultResourceWithRawResponse",
39
33
  "ResultResourceWithStreamingResponse",
40
34
  "AsyncResultResourceWithStreamingResponse",
41
- "RequestsResource",
42
- "AsyncRequestsResource",
43
- "RequestsResourceWithRawResponse",
44
- "AsyncRequestsResourceWithRawResponse",
45
- "RequestsResourceWithStreamingResponse",
46
- "AsyncRequestsResourceWithStreamingResponse",
35
+ "PropertiesResource",
36
+ "AsyncPropertiesResource",
37
+ "PropertiesResourceWithRawResponse",
38
+ "AsyncPropertiesResourceWithRawResponse",
39
+ "PropertiesResourceWithStreamingResponse",
40
+ "AsyncPropertiesResourceWithStreamingResponse",
41
+ "RequestIDResource",
42
+ "AsyncRequestIDResource",
43
+ "RequestIDResourceWithRawResponse",
44
+ "AsyncRequestIDResourceWithRawResponse",
45
+ "RequestIDResourceWithStreamingResponse",
46
+ "AsyncRequestIDResourceWithStreamingResponse",
47
47
  ]
@@ -6,19 +6,19 @@ from typing import Dict
6
6
 
7
7
  import httpx
8
8
 
9
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
- from ..._utils import maybe_transform, async_maybe_transform
11
- from ..._compat import cached_property
12
- from ..._resource import SyncAPIResource, AsyncAPIResource
13
- from ..._response import (
9
+ from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
10
+ from ...._utils import maybe_transform, async_maybe_transform
11
+ from ...._compat import cached_property
12
+ from ...._resource import SyncAPIResource, AsyncAPIResource
13
+ from ...._response import (
14
14
  to_raw_response_wrapper,
15
15
  to_streamed_response_wrapper,
16
16
  async_to_raw_response_wrapper,
17
17
  async_to_streamed_response_wrapper,
18
18
  )
19
- from ..._base_client import make_request_options
20
- from ...types.requests import property_create_params
21
- from ...types.shared.properties_response import PropertiesResponse
19
+ from ...._base_client import make_request_options
20
+ from ....types.requests.request_id import property_update_params
21
+ from ....types.shared.properties_response import PropertiesResponse
22
22
 
23
23
  __all__ = ["PropertiesResource", "AsyncPropertiesResource"]
24
24
 
@@ -43,7 +43,7 @@ class PropertiesResource(SyncAPIResource):
43
43
  """
44
44
  return PropertiesResourceWithStreamingResponse(self)
45
45
 
46
- def create(
46
+ def update(
47
47
  self,
48
48
  request_id: str,
49
49
  *,
@@ -69,9 +69,9 @@ class PropertiesResource(SyncAPIResource):
69
69
  """
70
70
  if not request_id:
71
71
  raise ValueError(f"Expected a non-empty value for `request_id` but received {request_id!r}")
72
- return self._post(
72
+ return self._put(
73
73
  f"/api/v1/requests/{request_id}/properties",
74
- body=maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
74
+ body=maybe_transform({"properties": properties}, property_update_params.PropertyUpdateParams),
75
75
  options=make_request_options(
76
76
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
77
77
  ),
@@ -99,7 +99,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
99
99
  """
100
100
  return AsyncPropertiesResourceWithStreamingResponse(self)
101
101
 
102
- async def create(
102
+ async def update(
103
103
  self,
104
104
  request_id: str,
105
105
  *,
@@ -125,9 +125,9 @@ class AsyncPropertiesResource(AsyncAPIResource):
125
125
  """
126
126
  if not request_id:
127
127
  raise ValueError(f"Expected a non-empty value for `request_id` but received {request_id!r}")
128
- return await self._post(
128
+ return await self._put(
129
129
  f"/api/v1/requests/{request_id}/properties",
130
- body=await async_maybe_transform({"properties": properties}, property_create_params.PropertyCreateParams),
130
+ body=await async_maybe_transform({"properties": properties}, property_update_params.PropertyUpdateParams),
131
131
  options=make_request_options(
132
132
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
133
133
  ),
@@ -139,8 +139,8 @@ class PropertiesResourceWithRawResponse:
139
139
  def __init__(self, properties: PropertiesResource) -> None:
140
140
  self._properties = properties
141
141
 
142
- self.create = to_raw_response_wrapper(
143
- properties.create,
142
+ self.update = to_raw_response_wrapper(
143
+ properties.update,
144
144
  )
145
145
 
146
146
 
@@ -148,8 +148,8 @@ class AsyncPropertiesResourceWithRawResponse:
148
148
  def __init__(self, properties: AsyncPropertiesResource) -> None:
149
149
  self._properties = properties
150
150
 
151
- self.create = async_to_raw_response_wrapper(
152
- properties.create,
151
+ self.update = async_to_raw_response_wrapper(
152
+ properties.update,
153
153
  )
154
154
 
155
155
 
@@ -157,8 +157,8 @@ class PropertiesResourceWithStreamingResponse:
157
157
  def __init__(self, properties: PropertiesResource) -> None:
158
158
  self._properties = properties
159
159
 
160
- self.create = to_streamed_response_wrapper(
161
- properties.create,
160
+ self.update = to_streamed_response_wrapper(
161
+ properties.update,
162
162
  )
163
163
 
164
164
 
@@ -166,6 +166,6 @@ class AsyncPropertiesResourceWithStreamingResponse:
166
166
  def __init__(self, properties: AsyncPropertiesResource) -> None:
167
167
  self._properties = properties
168
168
 
169
- self.create = async_to_streamed_response_wrapper(
170
- properties.create,
169
+ self.update = async_to_streamed_response_wrapper(
170
+ properties.update,
171
171
  )
@@ -10,7 +10,7 @@ from .result import (
10
10
  ResultResourceWithStreamingResponse,
11
11
  AsyncResultResourceWithStreamingResponse,
12
12
  )
13
- from ..._compat import cached_property
13
+ from ...._compat import cached_property
14
14
  from .properties import (
15
15
  PropertiesResource,
16
16
  AsyncPropertiesResource,
@@ -19,116 +19,116 @@ from .properties import (
19
19
  PropertiesResourceWithStreamingResponse,
20
20
  AsyncPropertiesResourceWithStreamingResponse,
21
21
  )
22
- from ..._resource import SyncAPIResource, AsyncAPIResource
22
+ from ...._resource import SyncAPIResource, AsyncAPIResource
23
23
 
24
- __all__ = ["RequestsResource", "AsyncRequestsResource"]
24
+ __all__ = ["RequestIDResource", "AsyncRequestIDResource"]
25
25
 
26
26
 
27
- class RequestsResource(SyncAPIResource):
28
- @cached_property
29
- def properties(self) -> PropertiesResource:
30
- return PropertiesResource(self._client)
31
-
27
+ class RequestIDResource(SyncAPIResource):
32
28
  @cached_property
33
29
  def result(self) -> ResultResource:
34
30
  return ResultResource(self._client)
35
31
 
36
32
  @cached_property
37
- def with_raw_response(self) -> RequestsResourceWithRawResponse:
33
+ def properties(self) -> PropertiesResource:
34
+ return PropertiesResource(self._client)
35
+
36
+ @cached_property
37
+ def with_raw_response(self) -> RequestIDResourceWithRawResponse:
38
38
  """
39
39
  This property can be used as a prefix for any HTTP method call to return
40
40
  the raw response object instead of the parsed content.
41
41
 
42
42
  For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
43
43
  """
44
- return RequestsResourceWithRawResponse(self)
44
+ return RequestIDResourceWithRawResponse(self)
45
45
 
46
46
  @cached_property
47
- def with_streaming_response(self) -> RequestsResourceWithStreamingResponse:
47
+ def with_streaming_response(self) -> RequestIDResourceWithStreamingResponse:
48
48
  """
49
49
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
50
50
 
51
51
  For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
52
52
  """
53
- return RequestsResourceWithStreamingResponse(self)
53
+ return RequestIDResourceWithStreamingResponse(self)
54
54
 
55
55
 
56
- class AsyncRequestsResource(AsyncAPIResource):
57
- @cached_property
58
- def properties(self) -> AsyncPropertiesResource:
59
- return AsyncPropertiesResource(self._client)
60
-
56
+ class AsyncRequestIDResource(AsyncAPIResource):
61
57
  @cached_property
62
58
  def result(self) -> AsyncResultResource:
63
59
  return AsyncResultResource(self._client)
64
60
 
65
61
  @cached_property
66
- def with_raw_response(self) -> AsyncRequestsResourceWithRawResponse:
62
+ def properties(self) -> AsyncPropertiesResource:
63
+ return AsyncPropertiesResource(self._client)
64
+
65
+ @cached_property
66
+ def with_raw_response(self) -> AsyncRequestIDResourceWithRawResponse:
67
67
  """
68
68
  This property can be used as a prefix for any HTTP method call to return
69
69
  the raw response object instead of the parsed content.
70
70
 
71
71
  For more information, see https://www.github.com/Pay-i/pay-i-python#accessing-raw-response-data-eg-headers
72
72
  """
73
- return AsyncRequestsResourceWithRawResponse(self)
73
+ return AsyncRequestIDResourceWithRawResponse(self)
74
74
 
75
75
  @cached_property
76
- def with_streaming_response(self) -> AsyncRequestsResourceWithStreamingResponse:
76
+ def with_streaming_response(self) -> AsyncRequestIDResourceWithStreamingResponse:
77
77
  """
78
78
  An alternative to `.with_raw_response` that doesn't eagerly read the response body.
79
79
 
80
80
  For more information, see https://www.github.com/Pay-i/pay-i-python#with_streaming_response
81
81
  """
82
- return AsyncRequestsResourceWithStreamingResponse(self)
82
+ return AsyncRequestIDResourceWithStreamingResponse(self)
83
83
 
84
84
 
85
- class RequestsResourceWithRawResponse:
86
- def __init__(self, requests: RequestsResource) -> None:
87
- self._requests = requests
85
+ class RequestIDResourceWithRawResponse:
86
+ def __init__(self, request_id: RequestIDResource) -> None:
87
+ self._request_id = request_id
88
88
 
89
89
  @cached_property
90
- def properties(self) -> PropertiesResourceWithRawResponse:
91
- return PropertiesResourceWithRawResponse(self._requests.properties)
90
+ def result(self) -> ResultResourceWithRawResponse:
91
+ return ResultResourceWithRawResponse(self._request_id.result)
92
92
 
93
93
  @cached_property
94
- def result(self) -> ResultResourceWithRawResponse:
95
- return ResultResourceWithRawResponse(self._requests.result)
94
+ def properties(self) -> PropertiesResourceWithRawResponse:
95
+ return PropertiesResourceWithRawResponse(self._request_id.properties)
96
96
 
97
97
 
98
- class AsyncRequestsResourceWithRawResponse:
99
- def __init__(self, requests: AsyncRequestsResource) -> None:
100
- self._requests = requests
98
+ class AsyncRequestIDResourceWithRawResponse:
99
+ def __init__(self, request_id: AsyncRequestIDResource) -> None:
100
+ self._request_id = request_id
101
101
 
102
102
  @cached_property
103
- def properties(self) -> AsyncPropertiesResourceWithRawResponse:
104
- return AsyncPropertiesResourceWithRawResponse(self._requests.properties)
103
+ def result(self) -> AsyncResultResourceWithRawResponse:
104
+ return AsyncResultResourceWithRawResponse(self._request_id.result)
105
105
 
106
106
  @cached_property
107
- def result(self) -> AsyncResultResourceWithRawResponse:
108
- return AsyncResultResourceWithRawResponse(self._requests.result)
107
+ def properties(self) -> AsyncPropertiesResourceWithRawResponse:
108
+ return AsyncPropertiesResourceWithRawResponse(self._request_id.properties)
109
109
 
110
110
 
111
- class RequestsResourceWithStreamingResponse:
112
- def __init__(self, requests: RequestsResource) -> None:
113
- self._requests = requests
111
+ class RequestIDResourceWithStreamingResponse:
112
+ def __init__(self, request_id: RequestIDResource) -> None:
113
+ self._request_id = request_id
114
114
 
115
115
  @cached_property
116
- def properties(self) -> PropertiesResourceWithStreamingResponse:
117
- return PropertiesResourceWithStreamingResponse(self._requests.properties)
116
+ def result(self) -> ResultResourceWithStreamingResponse:
117
+ return ResultResourceWithStreamingResponse(self._request_id.result)
118
118
 
119
119
  @cached_property
120
- def result(self) -> ResultResourceWithStreamingResponse:
121
- return ResultResourceWithStreamingResponse(self._requests.result)
120
+ def properties(self) -> PropertiesResourceWithStreamingResponse:
121
+ return PropertiesResourceWithStreamingResponse(self._request_id.properties)
122
122
 
123
123
 
124
- class AsyncRequestsResourceWithStreamingResponse:
125
- def __init__(self, requests: AsyncRequestsResource) -> None:
126
- self._requests = requests
124
+ class AsyncRequestIDResourceWithStreamingResponse:
125
+ def __init__(self, request_id: AsyncRequestIDResource) -> None:
126
+ self._request_id = request_id
127
127
 
128
128
  @cached_property
129
- def properties(self) -> AsyncPropertiesResourceWithStreamingResponse:
130
- return AsyncPropertiesResourceWithStreamingResponse(self._requests.properties)
129
+ def result(self) -> AsyncResultResourceWithStreamingResponse:
130
+ return AsyncResultResourceWithStreamingResponse(self._request_id.result)
131
131
 
132
132
  @cached_property
133
- def result(self) -> AsyncResultResourceWithStreamingResponse:
134
- return AsyncResultResourceWithStreamingResponse(self._requests.result)
133
+ def properties(self) -> AsyncPropertiesResourceWithStreamingResponse:
134
+ return AsyncPropertiesResourceWithStreamingResponse(self._request_id.properties)
@@ -4,17 +4,17 @@ from __future__ import annotations
4
4
 
5
5
  import httpx
6
6
 
7
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
- from ..._compat import cached_property
9
- from ..._resource import SyncAPIResource, AsyncAPIResource
10
- from ..._response import (
7
+ from ...._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ...._compat import cached_property
9
+ from ...._resource import SyncAPIResource, AsyncAPIResource
10
+ from ...._response import (
11
11
  to_raw_response_wrapper,
12
12
  to_streamed_response_wrapper,
13
13
  async_to_raw_response_wrapper,
14
14
  async_to_streamed_response_wrapper,
15
15
  )
16
- from ..._base_client import make_request_options
17
- from ...types.requests.request_result import RequestResult
16
+ from ...._base_client import make_request_options
17
+ from ....types.request_result import RequestResult
18
18
 
19
19
  __all__ = ["ResultResource", "AsyncResultResource"]
20
20
 
@@ -43,7 +43,6 @@ class ResultResource(SyncAPIResource):
43
43
  self,
44
44
  request_id: str,
45
45
  *,
46
- category: str,
47
46
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
48
47
  # The extra values given here take precedence over values defined on the client or passed to this method.
49
48
  extra_headers: Headers | None = None,
@@ -63,12 +62,10 @@ class ResultResource(SyncAPIResource):
63
62
 
64
63
  timeout: Override the client-level default timeout for this request, in seconds
65
64
  """
66
- if not category:
67
- raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
68
65
  if not request_id:
69
66
  raise ValueError(f"Expected a non-empty value for `request_id` but received {request_id!r}")
70
67
  return self._get(
71
- f"/api/v1/requests/result/{category}/{request_id}",
68
+ f"/api/v1/requests/{request_id}/result",
72
69
  options=make_request_options(
73
70
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
74
71
  ),
@@ -100,7 +97,6 @@ class AsyncResultResource(AsyncAPIResource):
100
97
  self,
101
98
  request_id: str,
102
99
  *,
103
- category: str,
104
100
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
105
101
  # The extra values given here take precedence over values defined on the client or passed to this method.
106
102
  extra_headers: Headers | None = None,
@@ -120,12 +116,10 @@ class AsyncResultResource(AsyncAPIResource):
120
116
 
121
117
  timeout: Override the client-level default timeout for this request, in seconds
122
118
  """
123
- if not category:
124
- raise ValueError(f"Expected a non-empty value for `category` but received {category!r}")
125
119
  if not request_id:
126
120
  raise ValueError(f"Expected a non-empty value for `request_id` but received {request_id!r}")
127
121
  return await self._get(
128
- f"/api/v1/requests/result/{category}/{request_id}",
122
+ f"/api/v1/requests/{request_id}/result",
129
123
  options=make_request_options(
130
124
  extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
131
125
  ),