payi 0.1.0a122__tar.gz → 0.1.0a124__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 (204) hide show
  1. payi-0.1.0a124/.release-please-manifest.json +3 -0
  2. {payi-0.1.0a122 → payi-0.1.0a124}/CHANGELOG.md +18 -0
  3. {payi-0.1.0a122 → payi-0.1.0a124}/PKG-INFO +1 -1
  4. {payi-0.1.0a122 → payi-0.1.0a124}/pyproject.toml +1 -1
  5. {payi-0.1.0a122 → payi-0.1.0a124}/requirements-dev.lock +5 -2
  6. {payi-0.1.0a122 → payi-0.1.0a124}/requirements.lock +5 -2
  7. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/__init__.py +3 -1
  8. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_base_client.py +9 -9
  9. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_client.py +8 -8
  10. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_models.py +10 -4
  11. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_qs.py +7 -7
  12. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_types.py +18 -11
  13. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_transform.py +2 -2
  14. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_utils.py +4 -4
  15. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_version.py +1 -1
  16. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/categories/categories.py +21 -21
  17. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/categories/fixed_cost_resources.py +7 -7
  18. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/categories/resources.py +23 -23
  19. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/ingest.py +109 -127
  20. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/limits/limits.py +35 -35
  21. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/limits/tags.py +11 -11
  22. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/request_id/properties.py +3 -3
  23. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/request_id/result.py +3 -3
  24. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/response_id/properties.py +3 -3
  25. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/response_id/result.py +3 -3
  26. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/definitions/definitions.py +27 -27
  27. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/definitions/kpis.py +23 -23
  28. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/definitions/limit_config.py +11 -11
  29. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/definitions/version.py +3 -3
  30. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/kpis.py +15 -15
  31. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/properties.py +3 -3
  32. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/use_cases.py +7 -7
  33. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_transform.py +9 -2
  34. payi-0.1.0a122/.release-please-manifest.json +0 -3
  35. {payi-0.1.0a122 → payi-0.1.0a124}/.gitignore +0 -0
  36. {payi-0.1.0a122 → payi-0.1.0a124}/CONTRIBUTING.md +0 -0
  37. {payi-0.1.0a122 → payi-0.1.0a124}/LICENSE +0 -0
  38. {payi-0.1.0a122 → payi-0.1.0a124}/README.md +0 -0
  39. {payi-0.1.0a122 → payi-0.1.0a124}/SECURITY.md +0 -0
  40. {payi-0.1.0a122 → payi-0.1.0a124}/api.md +0 -0
  41. {payi-0.1.0a122 → payi-0.1.0a124}/bin/check-release-environment +0 -0
  42. {payi-0.1.0a122 → payi-0.1.0a124}/bin/publish-pypi +0 -0
  43. {payi-0.1.0a122 → payi-0.1.0a124}/examples/.keep +0 -0
  44. {payi-0.1.0a122 → payi-0.1.0a124}/noxfile.py +0 -0
  45. {payi-0.1.0a122 → payi-0.1.0a124}/release-please-config.json +0 -0
  46. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_compat.py +0 -0
  47. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_constants.py +0 -0
  48. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_exceptions.py +0 -0
  49. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_files.py +0 -0
  50. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_resource.py +0 -0
  51. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_response.py +0 -0
  52. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_streaming.py +0 -0
  53. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/__init__.py +0 -0
  54. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_compat.py +0 -0
  55. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_datetime_parse.py +0 -0
  56. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_logs.py +0 -0
  57. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_proxy.py +0 -0
  58. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_reflection.py +0 -0
  59. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_resources_proxy.py +0 -0
  60. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_streams.py +0 -0
  61. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_sync.py +0 -0
  62. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/_utils/_typing.py +0 -0
  63. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/.keep +0 -0
  64. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/AnthropicInstrumentor.py +0 -0
  65. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/BedrockInstrumentor.py +0 -0
  66. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/GoogleGenAiInstrumentor.py +0 -0
  67. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/OpenAIInstrumentor.py +0 -0
  68. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/Stopwatch.py +0 -0
  69. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/VertexInstrumentor.py +0 -0
  70. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/VertexRequest.py +0 -0
  71. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/data/cohere_embed_english_v3.json +0 -0
  72. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/helpers.py +0 -0
  73. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/instrument.py +0 -0
  74. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/lib/version_helper.py +0 -0
  75. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/pagination.py +0 -0
  76. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/py.typed +0 -0
  77. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/__init__.py +0 -0
  78. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/categories/__init__.py +0 -0
  79. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/limits/__init__.py +0 -0
  80. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/__init__.py +0 -0
  81. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/request_id/__init__.py +0 -0
  82. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/request_id/request_id.py +0 -0
  83. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/requests.py +0 -0
  84. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/response_id/__init__.py +0 -0
  85. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/requests/response_id/response_id.py +0 -0
  86. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/__init__.py +0 -0
  87. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/resources/use_cases/definitions/__init__.py +0 -0
  88. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/__init__.py +0 -0
  89. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/bulk_ingest_response.py +0 -0
  90. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/categories/__init__.py +0 -0
  91. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/categories/fixed_cost_resource_create_params.py +0 -0
  92. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/categories/resource_create_params.py +0 -0
  93. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/categories/resource_list_params.py +0 -0
  94. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/category_delete_resource_response.py +0 -0
  95. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/category_delete_response.py +0 -0
  96. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/category_list_params.py +0 -0
  97. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/category_list_resources_params.py +0 -0
  98. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/category_resource_response.py +0 -0
  99. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/category_response.py +0 -0
  100. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/cost_data.py +0 -0
  101. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/cost_details.py +0 -0
  102. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/default_response.py +0 -0
  103. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/ingest_bulk_params.py +0 -0
  104. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/ingest_event_param.py +0 -0
  105. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/ingest_response.py +0 -0
  106. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/ingest_units_params.py +0 -0
  107. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limit_create_params.py +0 -0
  108. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limit_history_response.py +0 -0
  109. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limit_list_params.py +0 -0
  110. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limit_list_response.py +0 -0
  111. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limit_reset_params.py +0 -0
  112. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limit_response.py +0 -0
  113. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limit_update_params.py +0 -0
  114. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/__init__.py +0 -0
  115. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/limit_tags.py +0 -0
  116. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_create_params.py +0 -0
  117. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_create_response.py +0 -0
  118. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_delete_response.py +0 -0
  119. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_list_response.py +0 -0
  120. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_remove_params.py +0 -0
  121. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_remove_response.py +0 -0
  122. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_update_params.py +0 -0
  123. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/limits/tag_update_response.py +0 -0
  124. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/pay_i_common_models_api_router_header_info_param.py +0 -0
  125. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/request_result.py +0 -0
  126. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/requests/__init__.py +0 -0
  127. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/requests/request_id/__init__.py +0 -0
  128. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/requests/request_id/property_update_params.py +0 -0
  129. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/requests/response_id/__init__.py +0 -0
  130. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/requests/response_id/property_update_params.py +0 -0
  131. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/requests_data.py +0 -0
  132. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/__init__.py +0 -0
  133. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/evaluation_response.py +0 -0
  134. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/ingest_units.py +0 -0
  135. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/pay_i_common_models_budget_management_cost_details_base.py +0 -0
  136. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/pay_i_common_models_budget_management_create_limit_base.py +0 -0
  137. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/properties_response.py +0 -0
  138. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/xproxy_error.py +0 -0
  139. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared/xproxy_result.py +0 -0
  140. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared_params/__init__.py +0 -0
  141. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared_params/ingest_units.py +0 -0
  142. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/shared_params/pay_i_common_models_budget_management_create_limit_base.py +0 -0
  143. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/total_cost_data.py +0 -0
  144. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_case_instance_response.py +0 -0
  145. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/__init__.py +0 -0
  146. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definition_create_params.py +0 -0
  147. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definition_list_params.py +0 -0
  148. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definition_update_params.py +0 -0
  149. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/__init__.py +0 -0
  150. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_create_params.py +0 -0
  151. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_create_response.py +0 -0
  152. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_delete_response.py +0 -0
  153. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_list_params.py +0 -0
  154. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_list_response.py +0 -0
  155. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_retrieve_response.py +0 -0
  156. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_update_params.py +0 -0
  157. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/kpi_update_response.py +0 -0
  158. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/definitions/limit_config_create_params.py +0 -0
  159. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/kpi_list_params.py +0 -0
  160. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/kpi_list_response.py +0 -0
  161. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/kpi_update_params.py +0 -0
  162. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/property_update_params.py +0 -0
  163. {payi-0.1.0a122 → payi-0.1.0a124}/src/payi/types/use_cases/use_case_definition.py +0 -0
  164. {payi-0.1.0a122 → payi-0.1.0a124}/tests/__init__.py +0 -0
  165. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/__init__.py +0 -0
  166. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/categories/__init__.py +0 -0
  167. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/categories/test_fixed_cost_resources.py +0 -0
  168. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/categories/test_resources.py +0 -0
  169. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/limits/__init__.py +0 -0
  170. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/limits/test_tags.py +0 -0
  171. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/requests/__init__.py +0 -0
  172. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/requests/request_id/__init__.py +0 -0
  173. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/requests/request_id/test_properties.py +0 -0
  174. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/requests/request_id/test_result.py +0 -0
  175. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/requests/response_id/__init__.py +0 -0
  176. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/requests/response_id/test_properties.py +0 -0
  177. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/requests/response_id/test_result.py +0 -0
  178. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/test_categories.py +0 -0
  179. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/test_ingest.py +0 -0
  180. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/test_limits.py +0 -0
  181. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/test_use_cases.py +0 -0
  182. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/__init__.py +0 -0
  183. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/definitions/__init__.py +0 -0
  184. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/definitions/test_kpis.py +0 -0
  185. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/definitions/test_limit_config.py +0 -0
  186. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/definitions/test_version.py +0 -0
  187. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/test_definitions.py +0 -0
  188. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/test_kpis.py +0 -0
  189. {payi-0.1.0a122 → payi-0.1.0a124}/tests/api_resources/use_cases/test_properties.py +0 -0
  190. {payi-0.1.0a122 → payi-0.1.0a124}/tests/conftest.py +0 -0
  191. {payi-0.1.0a122 → payi-0.1.0a124}/tests/sample_file.txt +0 -0
  192. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_client.py +0 -0
  193. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_deepcopy.py +0 -0
  194. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_extract_files.py +0 -0
  195. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_files.py +0 -0
  196. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_models.py +0 -0
  197. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_qs.py +0 -0
  198. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_required_args.py +0 -0
  199. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_response.py +0 -0
  200. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_streaming.py +0 -0
  201. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_utils/test_datetime_parse.py +0 -0
  202. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_utils/test_proxy.py +0 -0
  203. {payi-0.1.0a122 → payi-0.1.0a124}/tests/test_utils/test_typing.py +0 -0
  204. {payi-0.1.0a122 → payi-0.1.0a124}/tests/utils.py +0 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.1.0-alpha.124"
3
+ }
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-alpha.124 (2025-09-24)
4
+
5
+ Full Changelog: [v0.1.0-alpha.123...v0.1.0-alpha.124](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.123...v0.1.0-alpha.124)
6
+
7
+ ### Chores
8
+
9
+ * do not install brew dependencies in ./scripts/bootstrap by default ([7b5100c](https://github.com/Pay-i/pay-i-python/commit/7b5100c5e554f0bd186c8075ef6a41aec82373cb))
10
+ * **types:** change optional parameter type from NotGiven to Omit ([1cef789](https://github.com/Pay-i/pay-i-python/commit/1cef789e7b927c1f7a153bd466e7ff232dfca19d))
11
+
12
+ ## 0.1.0-alpha.123 (2025-09-24)
13
+
14
+ Full Changelog: [v0.1.0-alpha.122...v0.1.0-alpha.123](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.122...v0.1.0-alpha.123)
15
+
16
+ ### Chores
17
+
18
+ * **internal:** update pydantic dependency ([fb48d11](https://github.com/Pay-i/pay-i-python/commit/fb48d111c97e54ec3f63b9f3887cb41446dc7ec3))
19
+ * **types:** change optional parameter type from NotGiven to Omit ([1bb17c3](https://github.com/Pay-i/pay-i-python/commit/1bb17c32a90ae1398d38cb66e46746bc6ab7ea46))
20
+
3
21
  ## 0.1.0-alpha.122 (2025-09-18)
4
22
 
5
23
  Full Changelog: [v0.1.0-alpha.121...v0.1.0-alpha.122](https://github.com/Pay-i/pay-i-python/compare/v0.1.0-alpha.121...v0.1.0-alpha.122)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: payi
3
- Version: 0.1.0a122
3
+ Version: 0.1.0a124
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
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "payi"
3
- version = "0.1.0-alpha.122"
3
+ version = "0.1.0-alpha.124"
4
4
  description = "The official Python library for the payi API"
5
5
  dynamic = ["readme"]
6
6
  license = "Apache-2.0"
@@ -102,9 +102,9 @@ pluggy==1.5.0
102
102
  propcache==0.3.1
103
103
  # via aiohttp
104
104
  # via yarl
105
- pydantic==2.10.3
105
+ pydantic==2.11.9
106
106
  # via payi
107
- pydantic-core==2.27.1
107
+ pydantic-core==2.33.2
108
108
  # via pydantic
109
109
  pygments==2.18.0
110
110
  # via rich
@@ -154,6 +154,9 @@ typing-extensions==4.12.2
154
154
  # via pydantic
155
155
  # via pydantic-core
156
156
  # via pyright
157
+ # via typing-inspection
158
+ typing-inspection==0.4.1
159
+ # via pydantic
157
160
  urllib3==2.3.0
158
161
  # via requests
159
162
  virtualenv==20.24.5
@@ -71,9 +71,9 @@ packaging==25.0
71
71
  propcache==0.3.1
72
72
  # via aiohttp
73
73
  # via yarl
74
- pydantic==2.10.3
74
+ pydantic==2.11.9
75
75
  # via payi
76
- pydantic-core==2.27.1
76
+ pydantic-core==2.33.2
77
77
  # via pydantic
78
78
  pyyaml==6.0.2
79
79
  # via huggingface-hub
@@ -98,6 +98,9 @@ typing-extensions==4.12.2
98
98
  # via payi
99
99
  # via pydantic
100
100
  # via pydantic-core
101
+ # via typing-inspection
102
+ typing-inspection==0.4.1
103
+ # via pydantic
101
104
  urllib3==2.3.0
102
105
  # via requests
103
106
  wrapt==1.17.2
@@ -3,7 +3,7 @@
3
3
  import typing as _t
4
4
 
5
5
  from . import types
6
- from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes
6
+ from ._types import NOT_GIVEN, Omit, NoneType, NotGiven, Transport, ProxiesTypes, omit, not_given
7
7
  from ._utils import file_from_path
8
8
  from ._client import Payi, Client, Stream, Timeout, AsyncPayi, Transport, AsyncClient, AsyncStream, RequestOptions
9
9
  from ._models import BaseModel
@@ -38,7 +38,9 @@ __all__ = [
38
38
  "ProxiesTypes",
39
39
  "NotGiven",
40
40
  "NOT_GIVEN",
41
+ "not_given",
41
42
  "Omit",
43
+ "omit",
42
44
  "PayiError",
43
45
  "APIError",
44
46
  "APIStatusError",
@@ -42,7 +42,6 @@ from . import _exceptions
42
42
  from ._qs import Querystring
43
43
  from ._files import to_httpx_files, async_to_httpx_files
44
44
  from ._types import (
45
- NOT_GIVEN,
46
45
  Body,
47
46
  Omit,
48
47
  Query,
@@ -57,6 +56,7 @@ from ._types import (
57
56
  RequestOptions,
58
57
  HttpxRequestFiles,
59
58
  ModelBuilderProtocol,
59
+ not_given,
60
60
  )
61
61
  from ._utils import is_dict, is_list, asyncify, is_given, lru_cache, is_mapping
62
62
  from ._compat import PYDANTIC_V1, model_copy, model_dump
@@ -145,9 +145,9 @@ class PageInfo:
145
145
  def __init__(
146
146
  self,
147
147
  *,
148
- url: URL | NotGiven = NOT_GIVEN,
149
- json: Body | NotGiven = NOT_GIVEN,
150
- params: Query | NotGiven = NOT_GIVEN,
148
+ url: URL | NotGiven = not_given,
149
+ json: Body | NotGiven = not_given,
150
+ params: Query | NotGiven = not_given,
151
151
  ) -> None:
152
152
  self.url = url
153
153
  self.json = json
@@ -595,7 +595,7 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
595
595
  # we internally support defining a temporary header to override the
596
596
  # default `cast_to` type for use with `.with_raw_response` and `.with_streaming_response`
597
597
  # see _response.py for implementation details
598
- override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, NOT_GIVEN)
598
+ override_cast_to = headers.pop(OVERRIDE_CAST_TO_HEADER, not_given)
599
599
  if is_given(override_cast_to):
600
600
  options.headers = headers
601
601
  return cast(Type[ResponseT], override_cast_to)
@@ -825,7 +825,7 @@ class SyncAPIClient(BaseClient[httpx.Client, Stream[Any]]):
825
825
  version: str,
826
826
  base_url: str | URL,
827
827
  max_retries: int = DEFAULT_MAX_RETRIES,
828
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
828
+ timeout: float | Timeout | None | NotGiven = not_given,
829
829
  http_client: httpx.Client | None = None,
830
830
  custom_headers: Mapping[str, str] | None = None,
831
831
  custom_query: Mapping[str, object] | None = None,
@@ -1356,7 +1356,7 @@ class AsyncAPIClient(BaseClient[httpx.AsyncClient, AsyncStream[Any]]):
1356
1356
  base_url: str | URL,
1357
1357
  _strict_response_validation: bool,
1358
1358
  max_retries: int = DEFAULT_MAX_RETRIES,
1359
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
1359
+ timeout: float | Timeout | None | NotGiven = not_given,
1360
1360
  http_client: httpx.AsyncClient | None = None,
1361
1361
  custom_headers: Mapping[str, str] | None = None,
1362
1362
  custom_query: Mapping[str, object] | None = None,
@@ -1818,8 +1818,8 @@ def make_request_options(
1818
1818
  extra_query: Query | None = None,
1819
1819
  extra_body: Body | None = None,
1820
1820
  idempotency_key: str | None = None,
1821
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1822
- post_parser: PostParser | NotGiven = NOT_GIVEN,
1821
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
1822
+ post_parser: PostParser | NotGiven = not_given,
1823
1823
  ) -> RequestOptions:
1824
1824
  """Create a dict of type RequestOptions without keys of NotGiven values."""
1825
1825
  options: RequestOptions = {}
@@ -3,7 +3,7 @@
3
3
  from __future__ import annotations
4
4
 
5
5
  import os
6
- from typing import Any, Union, Mapping
6
+ from typing import Any, Mapping
7
7
  from typing_extensions import Self, override
8
8
 
9
9
  import httpx
@@ -11,13 +11,13 @@ import httpx
11
11
  from . import _exceptions
12
12
  from ._qs import Querystring
13
13
  from ._types import (
14
- NOT_GIVEN,
15
14
  Omit,
16
15
  Timeout,
17
16
  NotGiven,
18
17
  Transport,
19
18
  ProxiesTypes,
20
19
  RequestOptions,
20
+ not_given,
21
21
  )
22
22
  from ._utils import is_given, get_async_library
23
23
  from ._version import __version__
@@ -54,7 +54,7 @@ class Payi(SyncAPIClient):
54
54
  *,
55
55
  api_key: str | None = None,
56
56
  base_url: str | httpx.URL | None = None,
57
- timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
57
+ timeout: float | Timeout | None | NotGiven = not_given,
58
58
  max_retries: int = DEFAULT_MAX_RETRIES,
59
59
  default_headers: Mapping[str, str] | None = None,
60
60
  default_query: Mapping[str, object] | None = None,
@@ -133,9 +133,9 @@ class Payi(SyncAPIClient):
133
133
  *,
134
134
  api_key: str | None = None,
135
135
  base_url: str | httpx.URL | None = None,
136
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
136
+ timeout: float | Timeout | None | NotGiven = not_given,
137
137
  http_client: httpx.Client | None = None,
138
- max_retries: int | NotGiven = NOT_GIVEN,
138
+ max_retries: int | NotGiven = not_given,
139
139
  default_headers: Mapping[str, str] | None = None,
140
140
  set_default_headers: Mapping[str, str] | None = None,
141
141
  default_query: Mapping[str, object] | None = None,
@@ -230,7 +230,7 @@ class AsyncPayi(AsyncAPIClient):
230
230
  *,
231
231
  api_key: str | None = None,
232
232
  base_url: str | httpx.URL | None = None,
233
- timeout: Union[float, Timeout, None, NotGiven] = NOT_GIVEN,
233
+ timeout: float | Timeout | None | NotGiven = not_given,
234
234
  max_retries: int = DEFAULT_MAX_RETRIES,
235
235
  default_headers: Mapping[str, str] | None = None,
236
236
  default_query: Mapping[str, object] | None = None,
@@ -309,9 +309,9 @@ class AsyncPayi(AsyncAPIClient):
309
309
  *,
310
310
  api_key: str | None = None,
311
311
  base_url: str | httpx.URL | None = None,
312
- timeout: float | Timeout | None | NotGiven = NOT_GIVEN,
312
+ timeout: float | Timeout | None | NotGiven = not_given,
313
313
  http_client: httpx.AsyncClient | None = None,
314
- max_retries: int | NotGiven = NOT_GIVEN,
314
+ max_retries: int | NotGiven = not_given,
315
315
  default_headers: Mapping[str, str] | None = None,
316
316
  set_default_headers: Mapping[str, str] | None = None,
317
317
  default_query: Mapping[str, object] | None = None,
@@ -256,7 +256,7 @@ class BaseModel(pydantic.BaseModel):
256
256
  mode: Literal["json", "python"] | str = "python",
257
257
  include: IncEx | None = None,
258
258
  exclude: IncEx | None = None,
259
- by_alias: bool = False,
259
+ by_alias: bool | None = None,
260
260
  exclude_unset: bool = False,
261
261
  exclude_defaults: bool = False,
262
262
  exclude_none: bool = False,
@@ -264,6 +264,7 @@ class BaseModel(pydantic.BaseModel):
264
264
  warnings: bool | Literal["none", "warn", "error"] = True,
265
265
  context: dict[str, Any] | None = None,
266
266
  serialize_as_any: bool = False,
267
+ fallback: Callable[[Any], Any] | None = None,
267
268
  ) -> dict[str, Any]:
268
269
  """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump
269
270
 
@@ -295,10 +296,12 @@ class BaseModel(pydantic.BaseModel):
295
296
  raise ValueError("context is only supported in Pydantic v2")
296
297
  if serialize_as_any != False:
297
298
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
299
+ if fallback is not None:
300
+ raise ValueError("fallback is only supported in Pydantic v2")
298
301
  dumped = super().dict( # pyright: ignore[reportDeprecated]
299
302
  include=include,
300
303
  exclude=exclude,
301
- by_alias=by_alias,
304
+ by_alias=by_alias if by_alias is not None else False,
302
305
  exclude_unset=exclude_unset,
303
306
  exclude_defaults=exclude_defaults,
304
307
  exclude_none=exclude_none,
@@ -313,13 +316,14 @@ class BaseModel(pydantic.BaseModel):
313
316
  indent: int | None = None,
314
317
  include: IncEx | None = None,
315
318
  exclude: IncEx | None = None,
316
- by_alias: bool = False,
319
+ by_alias: bool | None = None,
317
320
  exclude_unset: bool = False,
318
321
  exclude_defaults: bool = False,
319
322
  exclude_none: bool = False,
320
323
  round_trip: bool = False,
321
324
  warnings: bool | Literal["none", "warn", "error"] = True,
322
325
  context: dict[str, Any] | None = None,
326
+ fallback: Callable[[Any], Any] | None = None,
323
327
  serialize_as_any: bool = False,
324
328
  ) -> str:
325
329
  """Usage docs: https://docs.pydantic.dev/2.4/concepts/serialization/#modelmodel_dump_json
@@ -348,11 +352,13 @@ class BaseModel(pydantic.BaseModel):
348
352
  raise ValueError("context is only supported in Pydantic v2")
349
353
  if serialize_as_any != False:
350
354
  raise ValueError("serialize_as_any is only supported in Pydantic v2")
355
+ if fallback is not None:
356
+ raise ValueError("fallback is only supported in Pydantic v2")
351
357
  return super().json( # type: ignore[reportDeprecated]
352
358
  indent=indent,
353
359
  include=include,
354
360
  exclude=exclude,
355
- by_alias=by_alias,
361
+ by_alias=by_alias if by_alias is not None else False,
356
362
  exclude_unset=exclude_unset,
357
363
  exclude_defaults=exclude_defaults,
358
364
  exclude_none=exclude_none,
@@ -4,7 +4,7 @@ from typing import Any, List, Tuple, Union, Mapping, TypeVar
4
4
  from urllib.parse import parse_qs, urlencode
5
5
  from typing_extensions import Literal, get_args
6
6
 
7
- from ._types import NOT_GIVEN, NotGiven, NotGivenOr
7
+ from ._types import NotGiven, not_given
8
8
  from ._utils import flatten
9
9
 
10
10
  _T = TypeVar("_T")
@@ -41,8 +41,8 @@ class Querystring:
41
41
  self,
42
42
  params: Params,
43
43
  *,
44
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
45
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
44
+ array_format: ArrayFormat | NotGiven = not_given,
45
+ nested_format: NestedFormat | NotGiven = not_given,
46
46
  ) -> str:
47
47
  return urlencode(
48
48
  self.stringify_items(
@@ -56,8 +56,8 @@ class Querystring:
56
56
  self,
57
57
  params: Params,
58
58
  *,
59
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
60
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
59
+ array_format: ArrayFormat | NotGiven = not_given,
60
+ nested_format: NestedFormat | NotGiven = not_given,
61
61
  ) -> list[tuple[str, str]]:
62
62
  opts = Options(
63
63
  qs=self,
@@ -143,8 +143,8 @@ class Options:
143
143
  self,
144
144
  qs: Querystring = _qs,
145
145
  *,
146
- array_format: NotGivenOr[ArrayFormat] = NOT_GIVEN,
147
- nested_format: NotGivenOr[NestedFormat] = NOT_GIVEN,
146
+ array_format: ArrayFormat | NotGiven = not_given,
147
+ nested_format: NestedFormat | NotGiven = not_given,
148
148
  ) -> None:
149
149
  self.array_format = qs.array_format if isinstance(array_format, NotGiven) else array_format
150
150
  self.nested_format = qs.nested_format if isinstance(nested_format, NotGiven) else nested_format
@@ -117,18 +117,21 @@ class RequestOptions(TypedDict, total=False):
117
117
  # Sentinel class used until PEP 0661 is accepted
118
118
  class NotGiven:
119
119
  """
120
- A sentinel singleton class used to distinguish omitted keyword arguments
121
- from those passed in with the value None (which may have different behavior).
120
+ For parameters with a meaningful None value, we need to distinguish between
121
+ the user explicitly passing None, and the user not passing the parameter at
122
+ all.
123
+
124
+ User code shouldn't need to use not_given directly.
122
125
 
123
126
  For example:
124
127
 
125
128
  ```py
126
- def get(timeout: Union[int, NotGiven, None] = NotGiven()) -> Response: ...
129
+ def create(timeout: Timeout | None | NotGiven = not_given): ...
127
130
 
128
131
 
129
- get(timeout=1) # 1s timeout
130
- get(timeout=None) # No timeout
131
- get() # Default timeout behavior, which may not be statically known at the method definition.
132
+ create(timeout=1) # 1s timeout
133
+ create(timeout=None) # No timeout
134
+ create() # Default timeout behavior
132
135
  ```
133
136
  """
134
137
 
@@ -140,13 +143,14 @@ class NotGiven:
140
143
  return "NOT_GIVEN"
141
144
 
142
145
 
143
- NotGivenOr = Union[_T, NotGiven]
146
+ not_given = NotGiven()
147
+ # for backwards compatibility:
144
148
  NOT_GIVEN = NotGiven()
145
149
 
146
150
 
147
151
  class Omit:
148
- """In certain situations you need to be able to represent a case where a default value has
149
- to be explicitly removed and `None` is not an appropriate substitute, for example:
152
+ """
153
+ To explicitly omit something from being sent in a request, use `omit`.
150
154
 
151
155
  ```py
152
156
  # as the default `Content-Type` header is `application/json` that will be sent
@@ -156,8 +160,8 @@ class Omit:
156
160
  # to look something like: 'multipart/form-data; boundary=0d8382fcf5f8c3be01ca2e11002d2983'
157
161
  client.post(..., headers={"Content-Type": "multipart/form-data"})
158
162
 
159
- # instead you can remove the default `application/json` header by passing Omit
160
- client.post(..., headers={"Content-Type": Omit()})
163
+ # instead you can remove the default `application/json` header by passing omit
164
+ client.post(..., headers={"Content-Type": omit})
161
165
  ```
162
166
  """
163
167
 
@@ -165,6 +169,9 @@ class Omit:
165
169
  return False
166
170
 
167
171
 
172
+ omit = Omit()
173
+
174
+
168
175
  @runtime_checkable
169
176
  class ModelBuilderProtocol(Protocol):
170
177
  @classmethod
@@ -268,7 +268,7 @@ def _transform_typeddict(
268
268
  annotations = get_type_hints(expected_type, include_extras=True)
269
269
  for key, value in data.items():
270
270
  if not is_given(value):
271
- # we don't need to include `NotGiven` values here as they'll
271
+ # we don't need to include omitted values here as they'll
272
272
  # be stripped out before the request is sent anyway
273
273
  continue
274
274
 
@@ -434,7 +434,7 @@ async def _async_transform_typeddict(
434
434
  annotations = get_type_hints(expected_type, include_extras=True)
435
435
  for key, value in data.items():
436
436
  if not is_given(value):
437
- # we don't need to include `NotGiven` values here as they'll
437
+ # we don't need to include omitted values here as they'll
438
438
  # be stripped out before the request is sent anyway
439
439
  continue
440
440
 
@@ -21,7 +21,7 @@ from typing_extensions import TypeGuard
21
21
 
22
22
  import sniffio
23
23
 
24
- from .._types import NotGiven, FileTypes, NotGivenOr, HeadersLike
24
+ from .._types import Omit, NotGiven, FileTypes, HeadersLike
25
25
 
26
26
  _T = TypeVar("_T")
27
27
  _TupleT = TypeVar("_TupleT", bound=Tuple[object, ...])
@@ -63,7 +63,7 @@ def _extract_items(
63
63
  try:
64
64
  key = path[index]
65
65
  except IndexError:
66
- if isinstance(obj, NotGiven):
66
+ if not is_given(obj):
67
67
  # no value was provided - we can safely ignore
68
68
  return []
69
69
 
@@ -126,8 +126,8 @@ def _extract_items(
126
126
  return []
127
127
 
128
128
 
129
- def is_given(obj: NotGivenOr[_T]) -> TypeGuard[_T]:
130
- return not isinstance(obj, NotGiven)
129
+ def is_given(obj: _T | NotGiven | Omit) -> TypeGuard[_T]:
130
+ return not isinstance(obj, NotGiven) and not isinstance(obj, Omit)
131
131
 
132
132
 
133
133
  # Type safe methods for narrowing types with TypeVars.
@@ -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.122" # x-release-please-version
4
+ __version__ = "0.1.0-alpha.124" # x-release-please-version
@@ -5,7 +5,7 @@ from __future__ import annotations
5
5
  import httpx
6
6
 
7
7
  from ...types import category_list_params, category_list_resources_params
8
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven
8
+ from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
9
9
  from ..._utils import maybe_transform
10
10
  from ..._compat import cached_property
11
11
  from .resources import (
@@ -72,15 +72,15 @@ class CategoriesResource(SyncAPIResource):
72
72
  def list(
73
73
  self,
74
74
  *,
75
- cursor: str | NotGiven = NOT_GIVEN,
76
- limit: int | NotGiven = NOT_GIVEN,
77
- sort_ascending: bool | NotGiven = NOT_GIVEN,
75
+ cursor: str | Omit = omit,
76
+ limit: int | Omit = omit,
77
+ sort_ascending: bool | Omit = omit,
78
78
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
79
79
  # The extra values given here take precedence over values defined on the client or passed to this method.
80
80
  extra_headers: Headers | None = None,
81
81
  extra_query: Query | None = None,
82
82
  extra_body: Body | None = None,
83
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
83
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
84
84
  ) -> SyncCursorPage[CategoryResponse]:
85
85
  """
86
86
  Get all Categories
@@ -123,7 +123,7 @@ class CategoriesResource(SyncAPIResource):
123
123
  extra_headers: Headers | None = None,
124
124
  extra_query: Query | None = None,
125
125
  extra_body: Body | None = None,
126
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
126
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
127
127
  ) -> CategoryDeleteResponse:
128
128
  """
129
129
  Delete a Category and all of its Resources
@@ -157,7 +157,7 @@ class CategoriesResource(SyncAPIResource):
157
157
  extra_headers: Headers | None = None,
158
158
  extra_query: Query | None = None,
159
159
  extra_body: Body | None = None,
160
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
160
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
161
161
  ) -> CategoryDeleteResourceResponse:
162
162
  """
163
163
  Delete all versions of Resource from a Category
@@ -187,15 +187,15 @@ class CategoriesResource(SyncAPIResource):
187
187
  self,
188
188
  category: str,
189
189
  *,
190
- cursor: str | NotGiven = NOT_GIVEN,
191
- limit: int | NotGiven = NOT_GIVEN,
192
- sort_ascending: bool | NotGiven = NOT_GIVEN,
190
+ cursor: str | Omit = omit,
191
+ limit: int | Omit = omit,
192
+ sort_ascending: bool | Omit = omit,
193
193
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
194
194
  # The extra values given here take precedence over values defined on the client or passed to this method.
195
195
  extra_headers: Headers | None = None,
196
196
  extra_query: Query | None = None,
197
197
  extra_body: Body | None = None,
198
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
198
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
199
199
  ) -> SyncCursorPage[CategoryResourceResponse]:
200
200
  """
201
201
  Get all Resources for a Category
@@ -263,15 +263,15 @@ class AsyncCategoriesResource(AsyncAPIResource):
263
263
  def list(
264
264
  self,
265
265
  *,
266
- cursor: str | NotGiven = NOT_GIVEN,
267
- limit: int | NotGiven = NOT_GIVEN,
268
- sort_ascending: bool | NotGiven = NOT_GIVEN,
266
+ cursor: str | Omit = omit,
267
+ limit: int | Omit = omit,
268
+ sort_ascending: bool | Omit = omit,
269
269
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
270
270
  # The extra values given here take precedence over values defined on the client or passed to this method.
271
271
  extra_headers: Headers | None = None,
272
272
  extra_query: Query | None = None,
273
273
  extra_body: Body | None = None,
274
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
274
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
275
275
  ) -> AsyncPaginator[CategoryResponse, AsyncCursorPage[CategoryResponse]]:
276
276
  """
277
277
  Get all Categories
@@ -314,7 +314,7 @@ class AsyncCategoriesResource(AsyncAPIResource):
314
314
  extra_headers: Headers | None = None,
315
315
  extra_query: Query | None = None,
316
316
  extra_body: Body | None = None,
317
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
317
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
318
318
  ) -> CategoryDeleteResponse:
319
319
  """
320
320
  Delete a Category and all of its Resources
@@ -348,7 +348,7 @@ class AsyncCategoriesResource(AsyncAPIResource):
348
348
  extra_headers: Headers | None = None,
349
349
  extra_query: Query | None = None,
350
350
  extra_body: Body | None = None,
351
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
351
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
352
352
  ) -> CategoryDeleteResourceResponse:
353
353
  """
354
354
  Delete all versions of Resource from a Category
@@ -378,15 +378,15 @@ class AsyncCategoriesResource(AsyncAPIResource):
378
378
  self,
379
379
  category: str,
380
380
  *,
381
- cursor: str | NotGiven = NOT_GIVEN,
382
- limit: int | NotGiven = NOT_GIVEN,
383
- sort_ascending: bool | NotGiven = NOT_GIVEN,
381
+ cursor: str | Omit = omit,
382
+ limit: int | Omit = omit,
383
+ sort_ascending: bool | Omit = omit,
384
384
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
385
385
  # The extra values given here take precedence over values defined on the client or passed to this method.
386
386
  extra_headers: Headers | None = None,
387
387
  extra_query: Query | None = None,
388
388
  extra_body: Body | None = None,
389
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
389
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
390
390
  ) -> AsyncPaginator[CategoryResourceResponse, AsyncCursorPage[CategoryResourceResponse]]:
391
391
  """
392
392
  Get all Resources for a Category
@@ -7,7 +7,7 @@ from datetime import datetime
7
7
 
8
8
  import httpx
9
9
 
10
- from ..._types import NOT_GIVEN, Body, Query, Headers, NotGiven, SequenceNotStr
10
+ from ..._types import Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
11
11
  from ..._utils import maybe_transform, async_maybe_transform
12
12
  from ..._compat import cached_property
13
13
  from ..._resource import SyncAPIResource, AsyncAPIResource
@@ -50,14 +50,14 @@ class FixedCostResourcesResource(SyncAPIResource):
50
50
  *,
51
51
  category: str,
52
52
  units: SequenceNotStr[str],
53
- cost_per_hour: float | NotGiven = NOT_GIVEN,
54
- start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
53
+ cost_per_hour: float | Omit = omit,
54
+ start_timestamp: Union[str, datetime, None] | Omit = omit,
55
55
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
56
56
  # The extra values given here take precedence over values defined on the client or passed to this method.
57
57
  extra_headers: Headers | None = None,
58
58
  extra_query: Query | None = None,
59
59
  extra_body: Body | None = None,
60
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
60
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
61
61
  ) -> CategoryResourceResponse:
62
62
  """
63
63
  Create a fixed cost resource
@@ -118,14 +118,14 @@ class AsyncFixedCostResourcesResource(AsyncAPIResource):
118
118
  *,
119
119
  category: str,
120
120
  units: SequenceNotStr[str],
121
- cost_per_hour: float | NotGiven = NOT_GIVEN,
122
- start_timestamp: Union[str, datetime, None] | NotGiven = NOT_GIVEN,
121
+ cost_per_hour: float | Omit = omit,
122
+ start_timestamp: Union[str, datetime, None] | Omit = omit,
123
123
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
124
124
  # The extra values given here take precedence over values defined on the client or passed to this method.
125
125
  extra_headers: Headers | None = None,
126
126
  extra_query: Query | None = None,
127
127
  extra_body: Body | None = None,
128
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
128
+ timeout: float | httpx.Timeout | None | NotGiven = not_given,
129
129
  ) -> CategoryResourceResponse:
130
130
  """
131
131
  Create a fixed cost resource