payi 0.1.0a126__tar.gz → 0.1.0a127__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 (207) hide show
  1. payi-0.1.0a127/.release-please-manifest.json +3 -0
  2. {payi-0.1.0a126 → payi-0.1.0a127}/CHANGELOG.md +8 -0
  3. {payi-0.1.0a126 → payi-0.1.0a127}/PKG-INFO +1 -1
  4. {payi-0.1.0a126 → payi-0.1.0a127}/api.md +2 -6
  5. {payi-0.1.0a126 → payi-0.1.0a127}/pyproject.toml +1 -1
  6. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_version.py +1 -1
  7. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/instrument.py +21 -21
  8. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/categories/__init__.py +0 -14
  9. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/categories/categories.py +0 -32
  10. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/categories/resources.py +4 -0
  11. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/ingest.py +20 -8
  12. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/request_id/properties.py +3 -3
  13. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/response_id/properties.py +3 -3
  14. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/properties.py +3 -3
  15. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/__init__.py +2 -0
  16. payi-0.1.0a127/src/payi/types/bulk_ingest_response.py +29 -0
  17. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/categories/__init__.py +0 -1
  18. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/categories/resource_list_params.py +5 -1
  19. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/category_resource_response.py +31 -1
  20. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/ingest_event_param.py +2 -2
  21. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/ingest_units_params.py +2 -2
  22. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/requests/request_id/property_update_params.py +2 -2
  23. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/requests/response_id/property_update_params.py +2 -2
  24. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/__init__.py +2 -0
  25. payi-0.1.0a127/src/payi/types/shared/api_error.py +18 -0
  26. payi-0.1.0a127/src/payi/types/shared/properties_request.py +11 -0
  27. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/xproxy_result.py +2 -0
  28. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/property_update_params.py +2 -2
  29. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/categories/test_resources.py +2 -0
  30. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/test_limits.py +8 -8
  31. payi-0.1.0a126/.release-please-manifest.json +0 -3
  32. payi-0.1.0a126/src/payi/resources/categories/fixed_cost_resources.py +0 -196
  33. payi-0.1.0a126/src/payi/types/bulk_ingest_response.py +0 -46
  34. payi-0.1.0a126/src/payi/types/categories/fixed_cost_resource_create_params.py +0 -22
  35. payi-0.1.0a126/tests/api_resources/categories/test_fixed_cost_resources.py +0 -153
  36. {payi-0.1.0a126 → payi-0.1.0a127}/.gitignore +0 -0
  37. {payi-0.1.0a126 → payi-0.1.0a127}/CONTRIBUTING.md +0 -0
  38. {payi-0.1.0a126 → payi-0.1.0a127}/LICENSE +0 -0
  39. {payi-0.1.0a126 → payi-0.1.0a127}/README.md +0 -0
  40. {payi-0.1.0a126 → payi-0.1.0a127}/SECURITY.md +0 -0
  41. {payi-0.1.0a126 → payi-0.1.0a127}/bin/check-release-environment +0 -0
  42. {payi-0.1.0a126 → payi-0.1.0a127}/bin/publish-pypi +0 -0
  43. {payi-0.1.0a126 → payi-0.1.0a127}/examples/.keep +0 -0
  44. {payi-0.1.0a126 → payi-0.1.0a127}/noxfile.py +0 -0
  45. {payi-0.1.0a126 → payi-0.1.0a127}/release-please-config.json +0 -0
  46. {payi-0.1.0a126 → payi-0.1.0a127}/requirements-dev.lock +0 -0
  47. {payi-0.1.0a126 → payi-0.1.0a127}/requirements.lock +0 -0
  48. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/__init__.py +0 -0
  49. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_base_client.py +0 -0
  50. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_client.py +0 -0
  51. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_compat.py +0 -0
  52. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_constants.py +0 -0
  53. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_exceptions.py +0 -0
  54. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_files.py +0 -0
  55. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_models.py +0 -0
  56. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_qs.py +0 -0
  57. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_resource.py +0 -0
  58. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_response.py +0 -0
  59. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_streaming.py +0 -0
  60. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_types.py +0 -0
  61. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/__init__.py +0 -0
  62. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_compat.py +0 -0
  63. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_datetime_parse.py +0 -0
  64. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_logs.py +0 -0
  65. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_proxy.py +0 -0
  66. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_reflection.py +0 -0
  67. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_resources_proxy.py +0 -0
  68. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_streams.py +0 -0
  69. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_sync.py +0 -0
  70. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_transform.py +0 -0
  71. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_typing.py +0 -0
  72. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/_utils/_utils.py +0 -0
  73. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/.keep +0 -0
  74. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/AnthropicInstrumentor.py +0 -0
  75. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/BedrockInstrumentor.py +0 -0
  76. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/GoogleGenAiInstrumentor.py +0 -0
  77. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/OpenAIInstrumentor.py +0 -0
  78. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/Stopwatch.py +0 -0
  79. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/VertexInstrumentor.py +0 -0
  80. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/VertexRequest.py +0 -0
  81. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/data/cohere_embed_english_v3.json +0 -0
  82. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/helpers.py +0 -0
  83. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/lib/version_helper.py +0 -0
  84. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/pagination.py +0 -0
  85. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/py.typed +0 -0
  86. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/__init__.py +0 -0
  87. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/limits/__init__.py +0 -0
  88. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/limits/limits.py +0 -0
  89. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/limits/tags.py +0 -0
  90. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/__init__.py +0 -0
  91. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/request_id/__init__.py +0 -0
  92. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/request_id/request_id.py +0 -0
  93. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/request_id/result.py +0 -0
  94. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/requests.py +0 -0
  95. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/response_id/__init__.py +0 -0
  96. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/response_id/response_id.py +0 -0
  97. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/requests/response_id/result.py +0 -0
  98. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/__init__.py +0 -0
  99. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/definitions/__init__.py +0 -0
  100. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/definitions/definitions.py +0 -0
  101. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/definitions/kpis.py +0 -0
  102. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/definitions/limit_config.py +0 -0
  103. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/definitions/version.py +0 -0
  104. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/kpis.py +0 -0
  105. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/resources/use_cases/use_cases.py +0 -0
  106. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/categories/resource_create_params.py +0 -0
  107. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/category_delete_resource_response.py +0 -0
  108. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/category_delete_response.py +0 -0
  109. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/category_list_params.py +0 -0
  110. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/category_list_resources_params.py +0 -0
  111. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/category_response.py +0 -0
  112. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/cost_data.py +0 -0
  113. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/cost_details.py +0 -0
  114. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/default_response.py +0 -0
  115. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/ingest_bulk_params.py +0 -0
  116. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/ingest_response.py +0 -0
  117. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limit_create_params.py +0 -0
  118. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limit_history_response.py +0 -0
  119. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limit_list_params.py +0 -0
  120. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limit_list_response.py +0 -0
  121. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limit_reset_params.py +0 -0
  122. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limit_response.py +0 -0
  123. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limit_update_params.py +0 -0
  124. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/__init__.py +0 -0
  125. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/limit_tags.py +0 -0
  126. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_create_params.py +0 -0
  127. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_create_response.py +0 -0
  128. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_delete_response.py +0 -0
  129. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_list_response.py +0 -0
  130. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_remove_params.py +0 -0
  131. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_remove_response.py +0 -0
  132. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_update_params.py +0 -0
  133. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/limits/tag_update_response.py +0 -0
  134. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/pay_i_common_models_api_router_header_info_param.py +0 -0
  135. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/request_result.py +0 -0
  136. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/requests/__init__.py +0 -0
  137. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/requests/request_id/__init__.py +0 -0
  138. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/requests/response_id/__init__.py +0 -0
  139. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/requests_data.py +0 -0
  140. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/evaluation_response.py +0 -0
  141. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/ingest_units.py +0 -0
  142. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py +0 -0
  143. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +0 -0
  144. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/properties_response.py +0 -0
  145. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared/xproxy_error.py +0 -0
  146. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared_params/__init__.py +0 -0
  147. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared_params/ingest_units.py +0 -0
  148. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +0 -0
  149. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/total_cost_data.py +0 -0
  150. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_case_instance_response.py +0 -0
  151. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/__init__.py +0 -0
  152. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definition_create_params.py +0 -0
  153. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definition_list_params.py +0 -0
  154. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definition_update_params.py +0 -0
  155. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/__init__.py +0 -0
  156. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_create_params.py +0 -0
  157. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_create_response.py +0 -0
  158. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_delete_response.py +0 -0
  159. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_list_params.py +0 -0
  160. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_list_response.py +0 -0
  161. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_retrieve_response.py +0 -0
  162. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_update_params.py +0 -0
  163. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/kpi_update_response.py +0 -0
  164. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/definitions/limit_config_create_params.py +0 -0
  165. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/kpi_list_params.py +0 -0
  166. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/kpi_list_response.py +0 -0
  167. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/kpi_update_params.py +0 -0
  168. {payi-0.1.0a126 → payi-0.1.0a127}/src/payi/types/use_cases/use_case_definition.py +0 -0
  169. {payi-0.1.0a126 → payi-0.1.0a127}/tests/__init__.py +0 -0
  170. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/__init__.py +0 -0
  171. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/categories/__init__.py +0 -0
  172. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/limits/__init__.py +0 -0
  173. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/limits/test_tags.py +0 -0
  174. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/requests/__init__.py +0 -0
  175. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/requests/request_id/__init__.py +0 -0
  176. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/requests/request_id/test_properties.py +0 -0
  177. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/requests/request_id/test_result.py +0 -0
  178. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/requests/response_id/__init__.py +0 -0
  179. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/requests/response_id/test_properties.py +0 -0
  180. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/requests/response_id/test_result.py +0 -0
  181. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/test_categories.py +0 -0
  182. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/test_ingest.py +0 -0
  183. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/test_use_cases.py +0 -0
  184. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/__init__.py +0 -0
  185. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/definitions/__init__.py +0 -0
  186. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/definitions/test_kpis.py +0 -0
  187. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/definitions/test_limit_config.py +0 -0
  188. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/definitions/test_version.py +0 -0
  189. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/test_definitions.py +0 -0
  190. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/test_kpis.py +0 -0
  191. {payi-0.1.0a126 → payi-0.1.0a127}/tests/api_resources/use_cases/test_properties.py +0 -0
  192. {payi-0.1.0a126 → payi-0.1.0a127}/tests/conftest.py +0 -0
  193. {payi-0.1.0a126 → payi-0.1.0a127}/tests/sample_file.txt +0 -0
  194. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_client.py +0 -0
  195. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_deepcopy.py +0 -0
  196. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_extract_files.py +0 -0
  197. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_files.py +0 -0
  198. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_models.py +0 -0
  199. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_qs.py +0 -0
  200. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_required_args.py +0 -0
  201. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_response.py +0 -0
  202. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_streaming.py +0 -0
  203. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_transform.py +0 -0
  204. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_utils/test_datetime_parse.py +0 -0
  205. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_utils/test_proxy.py +0 -0
  206. {payi-0.1.0a126 → payi-0.1.0a127}/tests/test_utils/test_typing.py +0 -0
  207. {payi-0.1.0a126 → payi-0.1.0a127}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.127"
3
+ }
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.127 (2025-10-09)
4
+
5
+ Full Changelog: [v0.1.0-alpha.126...v0.1.0-alpha.127](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.126...v0.1.0-alpha.127)
6
+
7
+ ### Features
8
+
9
+ * manual updates ([8becaf6](https://github.com/Pay-i/pay-i-python/commit/8becaf66c1ab732de4224fc7f0ca01270cbbe9e9))
10
+
3
11
  ## 0.1.0-alpha.126 (2025-10-07)
4
12
 
5
13
  Full Changelog: [v0.1.0-alpha.125...v0.1.0-alpha.126](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.125...v0.1.0-alpha.126)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a126
3
+ Version: 0.1.0a127
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
@@ -2,9 +2,11 @@
2
2
 
3
3
  ```python
4
4
  from payi.types import (
5
+ APIError,
5
6
  IngestUnits,
6
7
  PayICommonModelsBudgetManagementCostDetailsBase,
7
8
  PayICommonModelsBudgetManagementCreateLimitBase,
9
+ PropertiesRequest,
8
10
  PropertiesResponse,
9
11
  XproxyError,
10
12
  XproxyResult,
@@ -108,12 +110,6 @@ Methods:
108
110
  - <code title="get /api/v1/categories/{category}/resources/{resource}">client.categories.resources.<a href="./src/payi/resources/categories/resources.py">list</a>(resource, \*, category, \*\*<a href="src/payi/types/categories/resource_list_params.py">params</a>) -> <a href="./src/payi/types/category_resource_response.py">SyncCursorPage[CategoryResourceResponse]</a></code>
109
111
  - <code title="delete /api/v1/categories/{category}/resources/{resource}/{resource_id}">client.categories.resources.<a href="./src/payi/resources/categories/resources.py">delete</a>(resource_id, \*, category, resource) -> <a href="./src/payi/types/category_resource_response.py">CategoryResourceResponse</a></code>
110
112
 
111
- ## FixedCostResources
112
-
113
- Methods:
114
-
115
- - <code title="post /api/v1/categories/{category}/fixed_cost_resources/{resource}">client.categories.fixed_cost_resources.<a href="./src/payi/resources/categories/fixed_cost_resources.py">create</a>(resource, \*, category, \*\*<a href="src/payi/types/categories/fixed_cost_resource_create_params.py">params</a>) -> <a href="./src/payi/types/category_resource_response.py">CategoryResourceResponse</a></code>
116
-
117
113
  # UseCases
118
114
 
119
115
  Types:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "payi"
3
- version = "0.1.0-alpha.126"
3
+ version = "0.1.0-alpha.127"
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.126" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.127" # x-release-please-version
@@ -9,7 +9,7 @@ import logging
9
9
  import traceback
10
10
  from abc import abstractmethod
11
11
  from enum import Enum
12
- from typing import Any, Set, Union, Optional, Sequence, TypedDict
12
+ from typing import Any, Set, Union, Optional, Sequence, TypedDict, cast
13
13
  from datetime import datetime, timezone
14
14
  from dataclasses import dataclass
15
15
 
@@ -60,7 +60,7 @@ class _ProviderRequest:
60
60
  self._building_function_response: bool = False
61
61
  self._function_calls: Optional[list[ProviderResponseFunctionCall]] = None
62
62
  self._is_large_context: bool = False
63
- self._internal_request_properties: dict[str, str] = {}
63
+ self._internal_request_properties: dict[str, Optional[str]] = {}
64
64
 
65
65
  def process_chunk(self, _chunk: Any) -> _ChunkResult:
66
66
  return _ChunkResult(send_chunk_to_caller=True)
@@ -161,11 +161,11 @@ class PayiInstrumentConfig(TypedDict, total=False):
161
161
  use_case_name: Optional[str]
162
162
  use_case_id: Optional[str]
163
163
  use_case_version: Optional[int]
164
- use_case_properties: Optional["dict[str, str]"]
164
+ use_case_properties: Optional["dict[str, Optional[str]]"]
165
165
  user_id: Optional[str]
166
166
  account_name: Optional[str]
167
167
  request_tags: Optional["list[str]"]
168
- request_properties: Optional["dict[str, str]"]
168
+ request_properties: Optional["dict[str, Optional[str]]"]
169
169
  aws_config: Optional[PayiInstrumentAwsBedrockConfig]
170
170
  offline_instrumentation: Optional[PayiInstrumentOfflineInstrumentationConfig]
171
171
 
@@ -174,12 +174,12 @@ class PayiContext(TypedDict, total=False):
174
174
  use_case_id: Optional[str]
175
175
  use_case_version: Optional[int]
176
176
  use_case_step: Optional[str]
177
- use_case_properties: Optional["dict[str, str]"]
177
+ use_case_properties: Optional["dict[str, Optional[str]]"]
178
178
  limit_ids: Optional['list[str]']
179
179
  user_id: Optional[str]
180
180
  account_name: Optional[str]
181
181
  request_tags: Optional["list[str]"]
182
- request_properties: Optional["dict[str, str]"]
182
+ request_properties: Optional["dict[str, Optional[str]]"]
183
183
  price_as_category: Optional[str]
184
184
  price_as_resource: Optional[str]
185
185
  resource_scope: Optional[str]
@@ -191,11 +191,11 @@ class _Context(TypedDict, total=False):
191
191
  use_case_id: Optional[str]
192
192
  use_case_version: Optional[int]
193
193
  use_case_step: Optional[str]
194
- use_case_properties: Optional["dict[str, str]"]
194
+ use_case_properties: Optional["dict[str, Optional[str]]"]
195
195
  limit_ids: Optional['list[str]']
196
196
  user_id: Optional[str]
197
197
  account_name: Optional[str]
198
- request_properties: Optional["dict[str, str]"]
198
+ request_properties: Optional["dict[str, Optional[str]]"]
199
199
  price_as_category: Optional[str]
200
200
  price_as_resource: Optional[str]
201
201
  resource_scope: Optional[str]
@@ -710,7 +710,7 @@ class _PayiInstrumentor:
710
710
  return value
711
711
 
712
712
  @staticmethod
713
- def _valid_properties_or_none(value: Optional["dict[str, str]"], default: Optional["dict[str, str]"] = None) -> Optional["dict[str, str]"]:
713
+ def _valid_properties_or_none(value: Optional["dict[str, Optional[str]]"], default: Optional["dict[str, Optional[str]]"] = None) -> Optional["dict[str, Optional[str]]"]:
714
714
  if value is None:
715
715
  return default.copy() if default else None
716
716
  elif len(value) == 0:
@@ -734,8 +734,8 @@ class _PayiInstrumentor:
734
734
  use_case_step: Optional[str]= None,
735
735
  user_id: Optional[str]= None,
736
736
  account_name: Optional[str]= None,
737
- request_properties: Optional["dict[str, str]"] = None,
738
- use_case_properties: Optional["dict[str, str]"] = None,
737
+ request_properties: Optional["dict[str, Optional[str]]"] = None,
738
+ use_case_properties: Optional["dict[str, Optional[str]]"] = None,
739
739
  price_as_category: Optional[str] = None,
740
740
  price_as_resource: Optional[str] = None,
741
741
  resource_scope: Optional[str] = None,
@@ -826,8 +826,8 @@ class _PayiInstrumentor:
826
826
  use_case_version: Optional[int],
827
827
  user_id: Optional[str],
828
828
  account_name: Optional[str],
829
- request_properties: Optional["dict[str, str]"] = None,
830
- use_case_properties: Optional["dict[str, str]"] = None,
829
+ request_properties: Optional["dict[str, Optional[str]]"] = None,
830
+ use_case_properties: Optional["dict[str, Optional[str]]"] = None,
831
831
  *args: Any,
832
832
  **kwargs: Any,
833
833
  ) -> Any:
@@ -855,8 +855,8 @@ class _PayiInstrumentor:
855
855
  use_case_version: Optional[int],
856
856
  user_id: Optional[str],
857
857
  account_name: Optional[str],
858
- request_properties: Optional["dict[str, str]"] = None,
859
- use_case_properties: Optional["dict[str, str]"] = None,
858
+ request_properties: Optional["dict[str, Optional[str]]"] = None,
859
+ use_case_properties: Optional["dict[str, Optional[str]]"] = None,
860
860
  *args: Any,
861
861
  **kwargs: Any,
862
862
  ) -> Any:
@@ -1795,8 +1795,8 @@ def track(
1795
1795
  use_case_version,
1796
1796
  user_id,
1797
1797
  account_name,
1798
- request_properties,
1799
- use_case_properties,
1798
+ cast(Optional['dict[str, Optional[str]]'], request_properties),
1799
+ cast(Optional['dict[str, Optional[str]]'], use_case_properties),
1800
1800
  *args,
1801
1801
  **kwargs,
1802
1802
  )
@@ -1818,8 +1818,8 @@ def track(
1818
1818
  use_case_version,
1819
1819
  user_id,
1820
1820
  account_name,
1821
- request_properties,
1822
- use_case_properties,
1821
+ cast(Optional['dict[str, Optional[str]]'], request_properties),
1822
+ cast(Optional['dict[str, Optional[str]]'], use_case_properties),
1823
1823
  *args,
1824
1824
  **kwargs,
1825
1825
  )
@@ -1862,8 +1862,8 @@ def track_context(
1862
1862
  context["price_as_resource"] = price_as_resource
1863
1863
  context["resource_scope"] = resource_scope
1864
1864
 
1865
- context["request_properties"] = request_properties
1866
- context["use_case_properties"] = use_case_properties
1865
+ context["request_properties"] = cast(Optional['dict[str, Optional[str]]'], request_properties)
1866
+ context["use_case_properties"] = cast(Optional['dict[str, Optional[str]]'], use_case_properties)
1867
1867
 
1868
1868
  _ = request_tags
1869
1869
 
@@ -16,14 +16,6 @@ from .categories import (
16
16
  CategoriesResourceWithStreamingResponse,
17
17
  AsyncCategoriesResourceWithStreamingResponse,
18
18
  )
19
- from .fixed_cost_resources import (
20
- FixedCostResourcesResource,
21
- AsyncFixedCostResourcesResource,
22
- FixedCostResourcesResourceWithRawResponse,
23
- AsyncFixedCostResourcesResourceWithRawResponse,
24
- FixedCostResourcesResourceWithStreamingResponse,
25
- AsyncFixedCostResourcesResourceWithStreamingResponse,
26
- )
27
19
 
28
20
  __all__ = [
29
21
  "ResourcesResource",
@@ -32,12 +24,6 @@ __all__ = [
32
24
  "AsyncResourcesResourceWithRawResponse",
33
25
  "ResourcesResourceWithStreamingResponse",
34
26
  "AsyncResourcesResourceWithStreamingResponse",
35
- "FixedCostResourcesResource",
36
- "AsyncFixedCostResourcesResource",
37
- "FixedCostResourcesResourceWithRawResponse",
38
- "AsyncFixedCostResourcesResourceWithRawResponse",
39
- "FixedCostResourcesResourceWithStreamingResponse",
40
- "AsyncFixedCostResourcesResourceWithStreamingResponse",
41
27
  "CategoriesResource",
42
28
  "AsyncCategoriesResource",
43
29
  "CategoriesResourceWithRawResponse",
@@ -25,14 +25,6 @@ from ..._response import (
25
25
  )
26
26
  from ...pagination import SyncCursorPage, AsyncCursorPage
27
27
  from ..._base_client import AsyncPaginator, make_request_options
28
- from .fixed_cost_resources import (
29
- FixedCostResourcesResource,
30
- AsyncFixedCostResourcesResource,
31
- FixedCostResourcesResourceWithRawResponse,
32
- AsyncFixedCostResourcesResourceWithRawResponse,
33
- FixedCostResourcesResourceWithStreamingResponse,
34
- AsyncFixedCostResourcesResourceWithStreamingResponse,
35
- )
36
28
  from ...types.category_response import CategoryResponse
37
29
  from ...types.category_delete_response import CategoryDeleteResponse
38
30
  from ...types.category_resource_response import CategoryResourceResponse
@@ -46,10 +38,6 @@ class CategoriesResource(SyncAPIResource):
46
38
  def resources(self) -> ResourcesResource:
47
39
  return ResourcesResource(self._client)
48
40
 
49
- @cached_property
50
- def fixed_cost_resources(self) -> FixedCostResourcesResource:
51
- return FixedCostResourcesResource(self._client)
52
-
53
41
  @cached_property
54
42
  def with_raw_response(self) -> CategoriesResourceWithRawResponse:
55
43
  """
@@ -237,10 +225,6 @@ class AsyncCategoriesResource(AsyncAPIResource):
237
225
  def resources(self) -> AsyncResourcesResource:
238
226
  return AsyncResourcesResource(self._client)
239
227
 
240
- @cached_property
241
- def fixed_cost_resources(self) -> AsyncFixedCostResourcesResource:
242
- return AsyncFixedCostResourcesResource(self._client)
243
-
244
228
  @cached_property
245
229
  def with_raw_response(self) -> AsyncCategoriesResourceWithRawResponse:
246
230
  """
@@ -444,10 +428,6 @@ class CategoriesResourceWithRawResponse:
444
428
  def resources(self) -> ResourcesResourceWithRawResponse:
445
429
  return ResourcesResourceWithRawResponse(self._categories.resources)
446
430
 
447
- @cached_property
448
- def fixed_cost_resources(self) -> FixedCostResourcesResourceWithRawResponse:
449
- return FixedCostResourcesResourceWithRawResponse(self._categories.fixed_cost_resources)
450
-
451
431
 
452
432
  class AsyncCategoriesResourceWithRawResponse:
453
433
  def __init__(self, categories: AsyncCategoriesResource) -> None:
@@ -470,10 +450,6 @@ class AsyncCategoriesResourceWithRawResponse:
470
450
  def resources(self) -> AsyncResourcesResourceWithRawResponse:
471
451
  return AsyncResourcesResourceWithRawResponse(self._categories.resources)
472
452
 
473
- @cached_property
474
- def fixed_cost_resources(self) -> AsyncFixedCostResourcesResourceWithRawResponse:
475
- return AsyncFixedCostResourcesResourceWithRawResponse(self._categories.fixed_cost_resources)
476
-
477
453
 
478
454
  class CategoriesResourceWithStreamingResponse:
479
455
  def __init__(self, categories: CategoriesResource) -> None:
@@ -496,10 +472,6 @@ class CategoriesResourceWithStreamingResponse:
496
472
  def resources(self) -> ResourcesResourceWithStreamingResponse:
497
473
  return ResourcesResourceWithStreamingResponse(self._categories.resources)
498
474
 
499
- @cached_property
500
- def fixed_cost_resources(self) -> FixedCostResourcesResourceWithStreamingResponse:
501
- return FixedCostResourcesResourceWithStreamingResponse(self._categories.fixed_cost_resources)
502
-
503
475
 
504
476
  class AsyncCategoriesResourceWithStreamingResponse:
505
477
  def __init__(self, categories: AsyncCategoriesResource) -> None:
@@ -521,7 +493,3 @@ class AsyncCategoriesResourceWithStreamingResponse:
521
493
  @cached_property
522
494
  def resources(self) -> AsyncResourcesResourceWithStreamingResponse:
523
495
  return AsyncResourcesResourceWithStreamingResponse(self._categories.resources)
524
-
525
- @cached_property
526
- def fixed_cost_resources(self) -> AsyncFixedCostResourcesResourceWithStreamingResponse:
527
- return AsyncFixedCostResourcesResourceWithStreamingResponse(self._categories.fixed_cost_resources)
@@ -140,6 +140,7 @@ class ResourcesResource(SyncAPIResource):
140
140
  resource: str,
141
141
  *,
142
142
  category: str,
143
+ active: bool | Omit = omit,
143
144
  cursor: str | Omit = omit,
144
145
  limit: int | Omit = omit,
145
146
  sort_ascending: bool | Omit = omit,
@@ -176,6 +177,7 @@ class ResourcesResource(SyncAPIResource):
176
177
  timeout=timeout,
177
178
  query=maybe_transform(
178
179
  {
180
+ "active": active,
179
181
  "cursor": cursor,
180
182
  "limit": limit,
181
183
  "sort_ascending": sort_ascending,
@@ -341,6 +343,7 @@ class AsyncResourcesResource(AsyncAPIResource):
341
343
  resource: str,
342
344
  *,
343
345
  category: str,
346
+ active: bool | Omit = omit,
344
347
  cursor: str | Omit = omit,
345
348
  limit: int | Omit = omit,
346
349
  sort_ascending: bool | Omit = omit,
@@ -377,6 +380,7 @@ class AsyncResourcesResource(AsyncAPIResource):
377
380
  timeout=timeout,
378
381
  query=maybe_transform(
379
382
  {
383
+ "active": active,
380
384
  "cursor": cursor,
381
385
  "limit": limit,
382
386
  "sort_ascending": sort_ascending,
@@ -90,7 +90,7 @@ class IngestResource(SyncAPIResource):
90
90
  end_to_end_latency_ms: Optional[int] | Omit = omit,
91
91
  event_timestamp: Union[str, datetime, None] | Omit = omit,
92
92
  http_status_code: Optional[int] | Omit = omit,
93
- properties: Optional[Dict[str, str]] | Omit = omit,
93
+ properties: Optional[Dict[str, Optional[str]]] | Omit = omit,
94
94
  provider_request_headers: Optional[Iterable[PayICommonModelsAPIRouterHeaderInfoParam]] | Omit = omit,
95
95
  provider_request_json: Optional[str] | Omit = omit,
96
96
  provider_request_reasoning_json: Optional[str] | Omit = omit,
@@ -103,8 +103,9 @@ class IngestResource(SyncAPIResource):
103
103
  resource: Optional[str] | Omit = omit,
104
104
  time_to_first_completion_token_ms: Optional[int] | Omit = omit,
105
105
  time_to_first_token_ms: Optional[int] | Omit = omit,
106
- use_case_properties: Optional[Dict[str, str]] | Omit = omit,
106
+ use_case_properties: Optional[Dict[str, Optional[str]]] | Omit = omit,
107
107
  limit_ids: Optional[list[str]] | Omit = omit,
108
+ disable_logging: Optional[bool] | Omit = omit,
108
109
  request_tags: Optional[list[str]] | Omit = omit,
109
110
  use_case_id: Optional[str] | Omit = omit,
110
111
  use_case_name: Optional[str] | Omit = omit,
@@ -134,9 +135,11 @@ class IngestResource(SyncAPIResource):
134
135
 
135
136
  event_timestamp: (str, datetime, None): The timestamp of the event
136
137
 
138
+ disable_logging (bool, optional): Disable logging for the request
139
+
137
140
  limit_ids (list[str], optional): The limit IDs to associate with the request
138
141
 
139
- properties (Dict[str, str], optional): Properties to associate with the request
142
+ properties (Dict[str, Optional[str]], optional): Properties to associate with the request
140
143
 
141
144
  request_tags (list[str], optional): The request tags to associate with the request
142
145
 
@@ -148,7 +151,7 @@ class IngestResource(SyncAPIResource):
148
151
 
149
152
  use_case_version (int, optional): The use case instance version
150
153
 
151
- use_case_properties (Dict[str, str], optional): The use case properties
154
+ use_case_properties (Dict[str, Optional[str]], optional): The use case properties
152
155
 
153
156
  user_id (str, optional): The user id
154
157
 
@@ -214,6 +217,9 @@ class IngestResource(SyncAPIResource):
214
217
  "xProxy-User-ID": user_id,
215
218
  "xProxy-Resource-Scope": resource_scope,
216
219
  "xProxy-Account-Name": account_name,
220
+ "xProxy-Logging-Disable": str(disable_logging)
221
+ if is_given(disable_logging)
222
+ else not_given,
217
223
  }
218
224
  ),
219
225
  **(extra_headers or {}),
@@ -311,7 +317,7 @@ class AsyncIngestResource(AsyncAPIResource):
311
317
  end_to_end_latency_ms: Optional[int] | Omit = omit,
312
318
  event_timestamp: Union[str, datetime, None] | Omit = omit,
313
319
  http_status_code: Optional[int] | Omit = omit,
314
- properties: Optional[Dict[str, str]] | Omit = omit,
320
+ properties: Optional[Dict[str, Optional[str]]] | Omit = omit,
315
321
  provider_request_headers: Optional[Iterable[PayICommonModelsAPIRouterHeaderInfoParam]] | Omit = omit,
316
322
  provider_request_json: Optional[str] | Omit = omit,
317
323
  provider_request_reasoning_json: Optional[str] | Omit = omit,
@@ -324,8 +330,9 @@ class AsyncIngestResource(AsyncAPIResource):
324
330
  resource: Optional[str] | Omit = omit,
325
331
  time_to_first_completion_token_ms: Optional[int] | Omit = omit,
326
332
  time_to_first_token_ms: Optional[int] | Omit = omit,
327
- use_case_properties: Optional[Dict[str, str]] | Omit = omit,
333
+ use_case_properties: Optional[Dict[str, Optional[str]]] | Omit = omit,
328
334
  limit_ids: Optional[list[str]] | Omit = omit,
335
+ disable_logging: Optional[bool] | Omit = omit,
329
336
  request_tags: Optional[list[str]] | Omit = omit,
330
337
  use_case_id: Optional[str] | Omit = omit,
331
338
  use_case_name: Optional[str] | Omit = omit,
@@ -354,9 +361,11 @@ class AsyncIngestResource(AsyncAPIResource):
354
361
 
355
362
  event_timestamp: (datetime, None): The timestamp of the event
356
363
 
364
+ disable_logging: (bool, optional): Disable logging for the request
365
+
357
366
  limit_ids (list[str], optional): The limit IDs to associate with the request
358
367
 
359
- properties (Dict[str, str], optional): Properties to associate with the request
368
+ properties (Dict[str, Optional[str]], optional): Properties to associate with the request
360
369
 
361
370
  request_tags (list[str], optional): The request tags to associate with the request
362
371
 
@@ -368,7 +377,7 @@ class AsyncIngestResource(AsyncAPIResource):
368
377
 
369
378
  use_case_version (int, optional): The use case instance version
370
379
 
371
- use_case_properties (Dict[str, str], optional): The use case properties
380
+ use_case_properties (Dict[str, Optional[str]], optional): The use case properties
372
381
 
373
382
  user_id (str, optional): The user id
374
383
 
@@ -434,6 +443,9 @@ class AsyncIngestResource(AsyncAPIResource):
434
443
  else not_given,
435
444
  "xProxy-User-ID": user_id,
436
445
  "xProxy-Resource-Scope": resource_scope,
446
+ "xProxy-Logging-Disable": str(disable_logging)
447
+ if is_given(disable_logging)
448
+ else not_given,
437
449
  }
438
450
  ),
439
451
  **(extra_headers or {}),
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict
5
+ from typing import Dict, Optional
6
6
 
7
7
  import httpx
8
8
 
@@ -47,7 +47,7 @@ class PropertiesResource(SyncAPIResource):
47
47
  self,
48
48
  request_id: str,
49
49
  *,
50
- properties: Dict[str, str],
50
+ properties: Dict[str, Optional[str]],
51
51
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
52
  # The extra values given here take precedence over values defined on the client or passed to this method.
53
53
  extra_headers: Headers | None = None,
@@ -103,7 +103,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
103
103
  self,
104
104
  request_id: str,
105
105
  *,
106
- properties: Dict[str, str],
106
+ properties: Dict[str, Optional[str]],
107
107
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
108
108
  # The extra values given here take precedence over values defined on the client or passed to this method.
109
109
  extra_headers: Headers | None = None,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict
5
+ from typing import Dict, Optional
6
6
 
7
7
  import httpx
8
8
 
@@ -48,7 +48,7 @@ class PropertiesResource(SyncAPIResource):
48
48
  provider_response_id: str,
49
49
  *,
50
50
  category: str,
51
- properties: Dict[str, str],
51
+ properties: Dict[str, Optional[str]],
52
52
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53
53
  # The extra values given here take precedence over values defined on the client or passed to this method.
54
54
  extra_headers: Headers | None = None,
@@ -109,7 +109,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
109
109
  provider_response_id: str,
110
110
  *,
111
111
  category: str,
112
- properties: Dict[str, str],
112
+ properties: Dict[str, Optional[str]],
113
113
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
114
114
  # The extra values given here take precedence over values defined on the client or passed to this method.
115
115
  extra_headers: Headers | None = None,
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Dict
5
+ from typing import Dict, Optional
6
6
 
7
7
  import httpx
8
8
 
@@ -47,7 +47,7 @@ class PropertiesResource(SyncAPIResource):
47
47
  self,
48
48
  use_case_id: str,
49
49
  *,
50
- properties: Dict[str, str],
50
+ properties: Dict[str, Optional[str]],
51
51
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52
52
  # The extra values given here take precedence over values defined on the client or passed to this method.
53
53
  extra_headers: Headers | None = None,
@@ -103,7 +103,7 @@ class AsyncPropertiesResource(AsyncAPIResource):
103
103
  self,
104
104
  use_case_id: str,
105
105
  *,
106
- properties: Dict[str, str],
106
+ properties: Dict[str, Optional[str]],
107
107
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
108
108
  # The extra values given here take precedence over values defined on the client or passed to this method.
109
109
  extra_headers: Headers | None = None,
@@ -3,9 +3,11 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  from .shared import (
6
+ APIError as APIError,
6
7
  IngestUnits as IngestUnits,
7
8
  XproxyError as XproxyError,
8
9
  XproxyResult as XproxyResult,
10
+ PropertiesRequest as PropertiesRequest,
9
11
  PropertiesResponse as PropertiesResponse,
10
12
  PayICommonModelsBudgetManagementCostDetailsBase as PayICommonModelsBudgetManagementCostDetailsBase,
11
13
  PayICommonModelsBudgetManagementCreateLimitBase as PayICommonModelsBudgetManagementCreateLimitBase,
@@ -0,0 +1,29 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List, Optional
4
+ from datetime import datetime
5
+
6
+ from .._models import BaseModel
7
+ from .shared.api_error import APIError
8
+
9
+ __all__ = ["BulkIngestResponse", "Error"]
10
+
11
+
12
+ class Error(BaseModel):
13
+ item_index: Optional[int] = None
14
+
15
+ xproxy_result: Optional[APIError] = None
16
+
17
+
18
+ class BulkIngestResponse(BaseModel):
19
+ ingest_count: int
20
+
21
+ ingest_timestamp: datetime
22
+
23
+ request_id: str
24
+
25
+ error_count: Optional[int] = None
26
+
27
+ errors: Optional[List[Error]] = None
28
+
29
+ total_count: Optional[int] = None
@@ -4,4 +4,3 @@ from __future__ import annotations
4
4
 
5
5
  from .resource_list_params import ResourceListParams as ResourceListParams
6
6
  from .resource_create_params import ResourceCreateParams as ResourceCreateParams
7
- from .fixed_cost_resource_create_params import FixedCostResourceCreateParams as FixedCostResourceCreateParams
@@ -2,7 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import Required, TypedDict
5
+ from typing_extensions import Required, Annotated, TypedDict
6
+
7
+ from ..._utils import PropertyInfo
6
8
 
7
9
  __all__ = ["ResourceListParams"]
8
10
 
@@ -10,6 +12,8 @@ __all__ = ["ResourceListParams"]
10
12
  class ResourceListParams(TypedDict, total=False):
11
13
  category: Required[str]
12
14
 
15
+ active: Annotated[bool, PropertyInfo(alias="Active")]
16
+
13
17
  cursor: str
14
18
 
15
19
  limit: int
@@ -3,9 +3,11 @@
3
3
  from typing import Dict, Optional
4
4
  from datetime import datetime
5
5
 
6
+ from pydantic import Field as FieldInfo
7
+
6
8
  from .._models import BaseModel
7
9
 
8
- __all__ = ["CategoryResourceResponse", "Units"]
10
+ __all__ = ["CategoryResourceResponse", "Units", "AwsBedrockResource", "AzureResource", "GoogleVertexResource"]
9
11
 
10
12
 
11
13
  class Units(BaseModel):
@@ -14,7 +16,21 @@ class Units(BaseModel):
14
16
  output_price: Optional[float] = None
15
17
 
16
18
 
19
+ class AwsBedrockResource(BaseModel):
20
+ api_model_units: int = FieldInfo(alias="model_units")
21
+
22
+
23
+ class AzureResource(BaseModel):
24
+ ptus: int
25
+
26
+
27
+ class GoogleVertexResource(BaseModel):
28
+ gsus: int
29
+
30
+
17
31
  class CategoryResourceResponse(BaseModel):
32
+ active: bool
33
+
18
34
  category: str
19
35
 
20
36
  proxy_allowed: bool
@@ -27,12 +43,24 @@ class CategoryResourceResponse(BaseModel):
27
43
 
28
44
  units: Dict[str, Units]
29
45
 
46
+ aliased_resource: Optional[str] = None
47
+
48
+ aws_bedrock_resource: Optional[AwsBedrockResource] = None
49
+
50
+ azure_resource: Optional[AzureResource] = None
51
+
30
52
  character_billing: Optional[bool] = None
31
53
 
32
54
  cost_per_hour: Optional[float] = None
33
55
 
34
56
  deprecated_timestamp: Optional[datetime] = None
35
57
 
58
+ description: Optional[str] = None
59
+
60
+ end_timestamp: Optional[datetime] = None
61
+
62
+ google_vertex_resource: Optional[GoogleVertexResource] = None
63
+
36
64
  large_context_threshold: Optional[int] = None
37
65
 
38
66
  max_input_units: Optional[int] = None
@@ -40,3 +68,5 @@ class CategoryResourceResponse(BaseModel):
40
68
  max_output_units: Optional[int] = None
41
69
 
42
70
  max_total_units: Optional[int] = None
71
+
72
+ reservation_id: Optional[str] = None