archil-openapi 0.0.45__tar.gz → 0.0.47__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.
Files changed (288) hide show
  1. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/PKG-INFO +1 -1
  2. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/pyproject.toml +1 -1
  3. archil_openapi-0.0.47/src/archil_openapi/api/billing/cancel_billing_subscription.py +198 -0
  4. archil_openapi-0.0.47/src/archil_openapi/api/billing/change_billing_subscription.py +206 -0
  5. archil_openapi-0.0.47/src/archil_openapi/api/billing/create_billing_subscription.py +211 -0
  6. archil_openapi-0.0.47/src/archil_openapi/api/billing/get_billing_credits.py +207 -0
  7. archil_openapi-0.0.47/src/archil_openapi/api/billing/get_billing_operation.py +190 -0
  8. archil_openapi-0.0.47/src/archil_openapi/api/billing/keep_billing_subscription.py +182 -0
  9. archil_openapi-0.0.47/src/archil_openapi/api/billing/pay_billing_invoice.py +221 -0
  10. archil_openapi-0.0.47/src/archil_openapi/api/billing/preview_billing_subscription.py +211 -0
  11. archil_openapi-0.0.47/src/archil_openapi/api/billing/withdraw_billing_scheduled_change.py +144 -0
  12. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/__init__.py +92 -0
  13. archil_openapi-0.0.47/src/archil_openapi/models/api_response_billing_cancellation.py +73 -0
  14. archil_openapi-0.0.47/src/archil_openapi/models/api_response_billing_credits.py +84 -0
  15. archil_openapi-0.0.47/src/archil_openapi/models/api_response_billing_operation.py +73 -0
  16. archil_openapi-0.0.47/src/archil_openapi/models/api_response_billing_subscription_preview.py +73 -0
  17. archil_openapi-0.0.47/src/archil_openapi/models/api_response_billing_subscription_state.py +73 -0
  18. archil_openapi-0.0.47/src/archil_openapi/models/billing_balance_transaction.py +119 -0
  19. archil_openapi-0.0.47/src/archil_openapi/models/billing_cancel_request.py +82 -0
  20. archil_openapi-0.0.47/src/archil_openapi/models/billing_cancel_request_reason.py +57 -0
  21. archil_openapi-0.0.47/src/archil_openapi/models/billing_cancel_request_reason_feedback.py +15 -0
  22. archil_openapi-0.0.47/src/archil_openapi/models/billing_cancel_request_timing.py +8 -0
  23. archil_openapi-0.0.47/src/archil_openapi/models/billing_cancellation.py +83 -0
  24. archil_openapi-0.0.47/src/archil_openapi/models/billing_cancellation_settlement.py +110 -0
  25. archil_openapi-0.0.47/src/archil_openapi/models/billing_cancellation_settlement_method.py +8 -0
  26. archil_openapi-0.0.47/src/archil_openapi/models/billing_change_request.py +78 -0
  27. archil_openapi-0.0.47/src/archil_openapi/models/billing_change_request_plan.py +9 -0
  28. archil_openapi-0.0.47/src/archil_openapi/models/billing_change_request_timing.py +9 -0
  29. archil_openapi-0.0.47/src/archil_openapi/models/billing_credits.py +97 -0
  30. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_invoice_detail.py +34 -0
  31. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_invoice_summary.py +37 -1
  32. archil_openapi-0.0.47/src/archil_openapi/models/billing_keep_request.py +41 -0
  33. archil_openapi-0.0.47/src/archil_openapi/models/billing_next_action.py +82 -0
  34. archil_openapi-0.0.47/src/archil_openapi/models/billing_next_action_type.py +10 -0
  35. archil_openapi-0.0.47/src/archil_openapi/models/billing_operation.py +206 -0
  36. archil_openapi-0.0.47/src/archil_openapi/models/billing_operation_failure.py +70 -0
  37. archil_openapi-0.0.47/src/archil_openapi/models/billing_operation_invoice.py +83 -0
  38. archil_openapi-0.0.47/src/archil_openapi/models/billing_operation_plan.py +11 -0
  39. archil_openapi-0.0.47/src/archil_openapi/models/billing_operation_state.py +10 -0
  40. archil_openapi-0.0.47/src/archil_openapi/models/billing_operation_status.py +13 -0
  41. archil_openapi-0.0.47/src/archil_openapi/models/billing_operation_type.py +9 -0
  42. archil_openapi-0.0.47/src/archil_openapi/models/billing_pay_invoice_request.py +52 -0
  43. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_payment_health.py +29 -0
  44. archil_openapi-0.0.47/src/archil_openapi/models/billing_preview_line.py +107 -0
  45. archil_openapi-0.0.47/src/archil_openapi/models/billing_preview_request.py +66 -0
  46. archil_openapi-0.0.47/src/archil_openapi/models/billing_preview_request_plan.py +9 -0
  47. archil_openapi-0.0.47/src/archil_openapi/models/billing_preview_request_timing.py +9 -0
  48. archil_openapi-0.0.47/src/archil_openapi/models/billing_recurring_price.py +112 -0
  49. archil_openapi-0.0.47/src/archil_openapi/models/billing_recurring_price_component.py +9 -0
  50. archil_openapi-0.0.47/src/archil_openapi/models/billing_recurring_price_usage_type.py +9 -0
  51. archil_openapi-0.0.47/src/archil_openapi/models/billing_state_conflict.py +100 -0
  52. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscribe_request.py +78 -0
  53. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscribe_request_plan.py +9 -0
  54. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_preview.py +237 -0
  55. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_preview_current_plan.py +12 -0
  56. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_preview_kind.py +11 -0
  57. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_preview_qualifications_item.py +12 -0
  58. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_preview_target_plan.py +9 -0
  59. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_preview_timing.py +9 -0
  60. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_state.py +119 -0
  61. archil_openapi-0.0.47/src/archil_openapi/models/billing_subscription_state_plan.py +11 -0
  62. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_summary_actions.py +8 -0
  63. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_egress_policy.py +9 -12
  64. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_network.py +6 -11
  65. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/LICENSE +0 -0
  66. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/README.md +0 -0
  67. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/__init__.py +0 -0
  68. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/__init__.py +0 -0
  69. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/activity/__init__.py +0 -0
  70. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/activity/list_activity.py +0 -0
  71. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/api_tokens/__init__.py +0 -0
  72. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/api_tokens/create_api_token.py +0 -0
  73. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/api_tokens/delete_api_token.py +0 -0
  74. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/api_tokens/list_api_tokens.py +0 -0
  75. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/__init__.py +0 -0
  76. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/create_billing_setup_intent.py +0 -0
  77. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/delete_billing_payment_method.py +0 -0
  78. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/get_billing_invoice.py +0 -0
  79. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/get_billing_profile.py +0 -0
  80. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/get_billing_summary.py +0 -0
  81. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/list_billing_invoices.py +0 -0
  82. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/list_billing_payment_methods.py +0 -0
  83. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/set_billing_default_payment_method.py +0 -0
  84. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/update_billing_payment_method.py +0 -0
  85. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/billing/update_billing_profile.py +0 -0
  86. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_configuration/__init__.py +0 -0
  87. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_configuration/get_allowed_i_ps.py +0 -0
  88. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_configuration/list_delegations.py +0 -0
  89. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_configuration/revoke_delegation.py +0 -0
  90. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_configuration/set_allowed_i_ps.py +0 -0
  91. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_users/__init__.py +0 -0
  92. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_users/add_disk_user.py +0 -0
  93. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disk_users/remove_disk_user.py +0 -0
  94. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/__init__.py +0 -0
  95. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/create_branch.py +0 -0
  96. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/create_disk.py +0 -0
  97. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/create_share_url.py +0 -0
  98. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/delete_disk.py +0 -0
  99. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/exec_.py +0 -0
  100. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/exec_disk.py +0 -0
  101. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/get_branch.py +0 -0
  102. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/get_disk.py +0 -0
  103. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/grep_disk.py +0 -0
  104. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/list_branches.py +0 -0
  105. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/disks/list_disks.py +0 -0
  106. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/__init__.py +0 -0
  107. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/create_image.py +0 -0
  108. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/create_sandbox.py +0 -0
  109. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/create_sandbox_connection.py +0 -0
  110. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/create_sandbox_port_token.py +0 -0
  111. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/delete_sandbox.py +0 -0
  112. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/delete_sandbox_port.py +0 -0
  113. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/delete_sandbox_port_token.py +0 -0
  114. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/expose_sandbox_port.py +0 -0
  115. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/fork_sandbox.py +0 -0
  116. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/get_image.py +0 -0
  117. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/get_sandbox.py +0 -0
  118. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/get_sandbox_network.py +0 -0
  119. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/get_sandbox_port_token.py +0 -0
  120. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/list_sandbox_port_tokens.py +0 -0
  121. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/list_sandbox_ports.py +0 -0
  122. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/list_sandboxes.py +0 -0
  123. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/pause_sandbox.py +0 -0
  124. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/resume_sandbox.py +0 -0
  125. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/set_sandbox_timeout.py +0 -0
  126. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/start_sandbox.py +0 -0
  127. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/stop_sandbox.py +0 -0
  128. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/api/sandboxes/update_sandbox_network.py +0 -0
  129. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/client.py +0 -0
  130. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/errors.py +0 -0
  131. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/activity_event.py +0 -0
  132. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/activity_event_details.py +0 -0
  133. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/activity_event_level.py +0 -0
  134. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_activity_list.py +0 -0
  135. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_allowed_i_ps.py +0 -0
  136. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_allowed_i_ps_data.py +0 -0
  137. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_authorized_user.py +0 -0
  138. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_default_payment_method.py +0 -0
  139. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_default_payment_method_data.py +0 -0
  140. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_default_payment_method_data_scope.py +0 -0
  141. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_invoice_detail.py +0 -0
  142. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_invoices.py +0 -0
  143. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_method_removed.py +0 -0
  144. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_method_removed_data.py +0 -0
  145. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_payment_method.py +0 -0
  146. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_payment_methods.py +0 -0
  147. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_profile.py +0 -0
  148. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_setup_intent.py +0 -0
  149. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_setup_intent_data.py +0 -0
  150. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_billing_summary.py +0 -0
  151. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_create_disk.py +0 -0
  152. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_create_disk_data.py +0 -0
  153. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_created_sandbox_port_token.py +0 -0
  154. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_delegations.py +0 -0
  155. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_delegations_data.py +0 -0
  156. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_disk.py +0 -0
  157. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_disk_list.py +0 -0
  158. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_empty.py +0 -0
  159. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_exec.py +0 -0
  160. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_exec_disk.py +0 -0
  161. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_grep_disk.py +0 -0
  162. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_image.py +0 -0
  163. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_message.py +0 -0
  164. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_message_data.py +0 -0
  165. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox.py +0 -0
  166. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_connection.py +0 -0
  167. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_list.py +0 -0
  168. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_list_data.py +0 -0
  169. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_network.py +0 -0
  170. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_port.py +0 -0
  171. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_port_list.py +0 -0
  172. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_port_token.py +0 -0
  173. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_sandbox_port_token_list.py +0 -0
  174. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_share_url.py +0 -0
  175. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_share_url_data.py +0 -0
  176. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_token_created.py +0 -0
  177. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_token_created_data.py +0 -0
  178. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_token_list.py +0 -0
  179. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_response_token_list_data.py +0 -0
  180. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/api_token_response.py +0 -0
  181. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/authorized_user.py +0 -0
  182. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/authorized_user_status.py +0 -0
  183. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/authorized_user_type.py +0 -0
  184. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/aws_sts_user.py +0 -0
  185. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/aws_sts_user_type.py +0 -0
  186. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/azure_blob_storage.py +0 -0
  187. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/azure_blob_storage_type.py +0 -0
  188. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_address.py +0 -0
  189. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_address_patch.py +0 -0
  190. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_credit_note.py +0 -0
  191. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_invoice_credit.py +0 -0
  192. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_invoice_line.py +0 -0
  193. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_invoice_tax.py +0 -0
  194. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_owner.py +0 -0
  195. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_owner_type.py +0 -0
  196. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_payment_health_status.py +0 -0
  197. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_payment_method.py +0 -0
  198. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_payment_method_billing_details.py +0 -0
  199. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_payment_method_card.py +0 -0
  200. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_period.py +0 -0
  201. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_profile.py +0 -0
  202. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_profile_billing_mode.py +0 -0
  203. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_profile_validation_error.py +0 -0
  204. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_profile_validation_error_code.py +0 -0
  205. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_profile_validation_error_data.py +0 -0
  206. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_profile_validation_error_data_field_errors.py +0 -0
  207. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_scheduled_change.py +0 -0
  208. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_scheduled_change_target_plan.py +0 -0
  209. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_scheduled_change_type.py +0 -0
  210. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_summary.py +0 -0
  211. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_summary_billing_mode.py +0 -0
  212. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/billing_summary_plan.py +0 -0
  213. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/branch_api_response.py +0 -0
  214. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/branch_list_api_response.py +0 -0
  215. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/branch_response.py +0 -0
  216. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/cloudflare_r2.py +0 -0
  217. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/cloudflare_r2_type.py +0 -0
  218. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/connected_client.py +0 -0
  219. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_api_token_request.py +0 -0
  220. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_branch_request.py +0 -0
  221. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_disk_request.py +0 -0
  222. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_image_request.py +0 -0
  223. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_sandbox_port_token_request.py +0 -0
  224. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_sandbox_request.py +0 -0
  225. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_sandbox_request_env.py +0 -0
  226. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/create_share_url_request.py +0 -0
  227. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/created_sandbox_port_token.py +0 -0
  228. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/delegation_entry.py +0 -0
  229. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/disk_metrics.py +0 -0
  230. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/disk_response.py +0 -0
  231. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/disk_response_capabilities_item.py +0 -0
  232. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/disk_response_status.py +0 -0
  233. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/error_response.py +0 -0
  234. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/exec_disk_request.py +0 -0
  235. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/exec_disk_result.py +0 -0
  236. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/exec_mount.py +0 -0
  237. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/exec_request.py +0 -0
  238. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/exec_request_disks.py +0 -0
  239. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/exec_timing.py +0 -0
  240. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/fork_sandbox_request.py +0 -0
  241. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/google_cloud_storage.py +0 -0
  242. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/google_cloud_storage_type.py +0 -0
  243. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/grep_disk_request.py +0 -0
  244. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/grep_disk_result.py +0 -0
  245. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/grep_match.py +0 -0
  246. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/grep_stopped_reason.py +0 -0
  247. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/image.py +0 -0
  248. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/image_failure_reason.py +0 -0
  249. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/image_state.py +0 -0
  250. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/list_activity_level_item.py +0 -0
  251. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/mount_config_response.py +0 -0
  252. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/mount_response.py +0 -0
  253. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/mount_response_access_mode.py +0 -0
  254. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/mount_response_authorization_type.py +0 -0
  255. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/mount_response_connection_status.py +0 -0
  256. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/mount_response_type.py +0 -0
  257. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/registry_auth.py +0 -0
  258. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/remove_disk_user_user_type.py +0 -0
  259. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/revoke_delegation_request.py +0 -0
  260. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/root_attrs.py +0 -0
  261. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/s3.py +0 -0
  262. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/s3_compatible.py +0 -0
  263. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/s3_compatible_type.py +0 -0
  264. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/s3_type.py +0 -0
  265. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox.py +0 -0
  266. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_connection.py +0 -0
  267. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_egress_rule.py +0 -0
  268. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_egress_transform.py +0 -0
  269. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_egress_transform_headers.py +0 -0
  270. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_endpoint.py +0 -0
  271. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_mount.py +0 -0
  272. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_network_action.py +0 -0
  273. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_platform.py +0 -0
  274. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_port.py +0 -0
  275. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_port_list.py +0 -0
  276. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_port_token.py +0 -0
  277. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_port_token_list.py +0 -0
  278. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_state.py +0 -0
  279. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/sandbox_timeout_request.py +0 -0
  280. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/set_allowed_i_ps_body.py +0 -0
  281. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/set_billing_default_payment_method_body.py +0 -0
  282. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/start_sandbox_request.py +0 -0
  283. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/token_user.py +0 -0
  284. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/token_user_type.py +0 -0
  285. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/update_billing_payment_method_body.py +0 -0
  286. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/models/update_billing_profile_body.py +0 -0
  287. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/py.typed +0 -0
  288. {archil_openapi-0.0.45 → archil_openapi-0.0.47}/src/archil_openapi/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: archil-openapi
3
- Version: 0.0.45
3
+ Version: 0.0.47
4
4
  Summary: Generated low-level Python client for the Archil control plane API
5
5
  Keywords: archil,openapi
6
6
  Author: Archil, Inc.
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "archil-openapi"
3
- version = "0.0.45"
3
+ version = "0.0.47"
4
4
  description = "Generated low-level Python client for the Archil control plane API"
5
5
  readme = "README.md"
6
6
  license = { file = "LICENSE" }
@@ -0,0 +1,198 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.api_response_billing_cancellation import ApiResponseBillingCancellation
9
+ from ...models.billing_cancel_request import BillingCancelRequest
10
+ from ...models.billing_state_conflict import BillingStateConflict
11
+ from ...models.error_response import ErrorResponse
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: BillingCancelRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/api/billing/subscription/cancel",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Optional[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
37
+ if response.status_code == 200:
38
+ response_200 = ApiResponseBillingCancellation.from_dict(response.json())
39
+
40
+ return response_200
41
+
42
+ if response.status_code == 400:
43
+ response_400 = ErrorResponse.from_dict(response.json())
44
+
45
+ return response_400
46
+
47
+ if response.status_code == 401:
48
+ response_401 = ErrorResponse.from_dict(response.json())
49
+
50
+ return response_401
51
+
52
+ if response.status_code == 409:
53
+ response_409 = BillingStateConflict.from_dict(response.json())
54
+
55
+ return response_409
56
+
57
+ if response.status_code == 502:
58
+ response_502 = ErrorResponse.from_dict(response.json())
59
+
60
+ return response_502
61
+
62
+ if client.raise_on_unexpected_status:
63
+ raise errors.UnexpectedStatus(response.status_code, response.content)
64
+ else:
65
+ return None
66
+
67
+
68
+ def _build_response(
69
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
70
+ ) -> Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
71
+ return Response(
72
+ status_code=HTTPStatus(response.status_code),
73
+ content=response.content,
74
+ headers=response.headers,
75
+ parsed=_parse_response(client=client, response=response),
76
+ )
77
+
78
+
79
+ def sync_detailed(
80
+ *,
81
+ client: AuthenticatedClient,
82
+ body: BillingCancelRequest,
83
+ ) -> Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
84
+ """Cancel renewal at the end of the current period
85
+
86
+ The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
87
+ final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
88
+ Subscribing again after the subscription ends uses the purchase flow.
89
+
90
+ Args:
91
+ body (BillingCancelRequest):
92
+
93
+ Raises:
94
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
95
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
96
+
97
+ Returns:
98
+ Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]
99
+ """
100
+
101
+ kwargs = _get_kwargs(
102
+ body=body,
103
+ )
104
+
105
+ response = client.get_httpx_client().request(
106
+ **kwargs,
107
+ )
108
+
109
+ return _build_response(client=client, response=response)
110
+
111
+
112
+ def sync(
113
+ *,
114
+ client: AuthenticatedClient,
115
+ body: BillingCancelRequest,
116
+ ) -> Optional[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
117
+ """Cancel renewal at the end of the current period
118
+
119
+ The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
120
+ final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
121
+ Subscribing again after the subscription ends uses the purchase flow.
122
+
123
+ Args:
124
+ body (BillingCancelRequest):
125
+
126
+ Raises:
127
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
128
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
129
+
130
+ Returns:
131
+ Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]
132
+ """
133
+
134
+ return sync_detailed(
135
+ client=client,
136
+ body=body,
137
+ ).parsed
138
+
139
+
140
+ async def asyncio_detailed(
141
+ *,
142
+ client: AuthenticatedClient,
143
+ body: BillingCancelRequest,
144
+ ) -> Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
145
+ """Cancel renewal at the end of the current period
146
+
147
+ The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
148
+ final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
149
+ Subscribing again after the subscription ends uses the purchase flow.
150
+
151
+ Args:
152
+ body (BillingCancelRequest):
153
+
154
+ Raises:
155
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
156
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
157
+
158
+ Returns:
159
+ Response[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]
160
+ """
161
+
162
+ kwargs = _get_kwargs(
163
+ body=body,
164
+ )
165
+
166
+ response = await client.get_async_httpx_client().request(**kwargs)
167
+
168
+ return _build_response(client=client, response=response)
169
+
170
+
171
+ async def asyncio(
172
+ *,
173
+ client: AuthenticatedClient,
174
+ body: BillingCancelRequest,
175
+ ) -> Optional[Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]]:
176
+ """Cancel renewal at the end of the current period
177
+
178
+ The subscription stays active until effectiveEndAt. Usage for the final period is billed on the
179
+ final invoice at that time. Cancelling an already-cancelling subscription returns its current state.
180
+ Subscribing again after the subscription ends uses the purchase flow.
181
+
182
+ Args:
183
+ body (BillingCancelRequest):
184
+
185
+ Raises:
186
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
187
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
188
+
189
+ Returns:
190
+ Union[ApiResponseBillingCancellation, BillingStateConflict, ErrorResponse]
191
+ """
192
+
193
+ return (
194
+ await asyncio_detailed(
195
+ client=client,
196
+ body=body,
197
+ )
198
+ ).parsed
@@ -0,0 +1,206 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.api_response_billing_operation import ApiResponseBillingOperation
9
+ from ...models.billing_change_request import BillingChangeRequest
10
+ from ...models.billing_state_conflict import BillingStateConflict
11
+ from ...models.error_response import ErrorResponse
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: BillingChangeRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/api/billing/subscription/change",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
37
+ if response.status_code == 200:
38
+ response_200 = ApiResponseBillingOperation.from_dict(response.json())
39
+
40
+ return response_200
41
+
42
+ if response.status_code == 400:
43
+ response_400 = ErrorResponse.from_dict(response.json())
44
+
45
+ return response_400
46
+
47
+ if response.status_code == 401:
48
+ response_401 = ErrorResponse.from_dict(response.json())
49
+
50
+ return response_401
51
+
52
+ if response.status_code == 409:
53
+ response_409 = BillingStateConflict.from_dict(response.json())
54
+
55
+ return response_409
56
+
57
+ if response.status_code == 502:
58
+ response_502 = ErrorResponse.from_dict(response.json())
59
+
60
+ return response_502
61
+
62
+ if client.raise_on_unexpected_status:
63
+ raise errors.UnexpectedStatus(response.status_code, response.content)
64
+ else:
65
+ return None
66
+
67
+
68
+ def _build_response(
69
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
70
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
71
+ return Response(
72
+ status_code=HTTPStatus(response.status_code),
73
+ content=response.content,
74
+ headers=response.headers,
75
+ parsed=_parse_response(client=client, response=response),
76
+ )
77
+
78
+
79
+ def sync_detailed(
80
+ *,
81
+ client: AuthenticatedClient,
82
+ body: BillingChangeRequest,
83
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
84
+ """Change plan
85
+
86
+ Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
87
+ end of the current period. The existing subscription is updated; no second subscription is created.
88
+ An upgrade whose payment needs authentication stays pending until the confirmation secret is
89
+ confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
90
+ the same operationId returns the same operation.
91
+
92
+ Args:
93
+ body (BillingChangeRequest):
94
+
95
+ Raises:
96
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
97
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
98
+
99
+ Returns:
100
+ Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
101
+ """
102
+
103
+ kwargs = _get_kwargs(
104
+ body=body,
105
+ )
106
+
107
+ response = client.get_httpx_client().request(
108
+ **kwargs,
109
+ )
110
+
111
+ return _build_response(client=client, response=response)
112
+
113
+
114
+ def sync(
115
+ *,
116
+ client: AuthenticatedClient,
117
+ body: BillingChangeRequest,
118
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
119
+ """Change plan
120
+
121
+ Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
122
+ end of the current period. The existing subscription is updated; no second subscription is created.
123
+ An upgrade whose payment needs authentication stays pending until the confirmation secret is
124
+ confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
125
+ the same operationId returns the same operation.
126
+
127
+ Args:
128
+ body (BillingChangeRequest):
129
+
130
+ Raises:
131
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
132
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
133
+
134
+ Returns:
135
+ Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
136
+ """
137
+
138
+ return sync_detailed(
139
+ client=client,
140
+ body=body,
141
+ ).parsed
142
+
143
+
144
+ async def asyncio_detailed(
145
+ *,
146
+ client: AuthenticatedClient,
147
+ body: BillingChangeRequest,
148
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
149
+ """Change plan
150
+
151
+ Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
152
+ end of the current period. The existing subscription is updated; no second subscription is created.
153
+ An upgrade whose payment needs authentication stays pending until the confirmation secret is
154
+ confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
155
+ the same operationId returns the same operation.
156
+
157
+ Args:
158
+ body (BillingChangeRequest):
159
+
160
+ Raises:
161
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
162
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
163
+
164
+ Returns:
165
+ Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
166
+ """
167
+
168
+ kwargs = _get_kwargs(
169
+ body=body,
170
+ )
171
+
172
+ response = await client.get_async_httpx_client().request(**kwargs)
173
+
174
+ return _build_response(client=client, response=response)
175
+
176
+
177
+ async def asyncio(
178
+ *,
179
+ client: AuthenticatedClient,
180
+ body: BillingChangeRequest,
181
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
182
+ """Change plan
183
+
184
+ Applies an upgrade immediately, charging the prorated base price, or schedules a downgrade for the
185
+ end of the current period. The existing subscription is updated; no second subscription is created.
186
+ An upgrade whose payment needs authentication stays pending until the confirmation secret is
187
+ confirmed, and is discarded by the payment processor if it is not completed in time. Retrying with
188
+ the same operationId returns the same operation.
189
+
190
+ Args:
191
+ body (BillingChangeRequest):
192
+
193
+ Raises:
194
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
195
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
196
+
197
+ Returns:
198
+ Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
199
+ """
200
+
201
+ return (
202
+ await asyncio_detailed(
203
+ client=client,
204
+ body=body,
205
+ )
206
+ ).parsed
@@ -0,0 +1,211 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.api_response_billing_operation import ApiResponseBillingOperation
9
+ from ...models.billing_state_conflict import BillingStateConflict
10
+ from ...models.billing_subscribe_request import BillingSubscribeRequest
11
+ from ...models.error_response import ErrorResponse
12
+ from ...types import Response
13
+
14
+
15
+ def _get_kwargs(
16
+ *,
17
+ body: BillingSubscribeRequest,
18
+ ) -> dict[str, Any]:
19
+ headers: dict[str, Any] = {}
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "post",
23
+ "url": "/api/billing/subscriptions",
24
+ }
25
+
26
+ _kwargs["json"] = body.to_dict()
27
+
28
+ headers["Content-Type"] = "application/json"
29
+
30
+ _kwargs["headers"] = headers
31
+ return _kwargs
32
+
33
+
34
+ def _parse_response(
35
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
36
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
37
+ if response.status_code == 200:
38
+ response_200 = ApiResponseBillingOperation.from_dict(response.json())
39
+
40
+ return response_200
41
+
42
+ if response.status_code == 400:
43
+ response_400 = ErrorResponse.from_dict(response.json())
44
+
45
+ return response_400
46
+
47
+ if response.status_code == 401:
48
+ response_401 = ErrorResponse.from_dict(response.json())
49
+
50
+ return response_401
51
+
52
+ if response.status_code == 404:
53
+ response_404 = ErrorResponse.from_dict(response.json())
54
+
55
+ return response_404
56
+
57
+ if response.status_code == 409:
58
+ response_409 = BillingStateConflict.from_dict(response.json())
59
+
60
+ return response_409
61
+
62
+ if response.status_code == 502:
63
+ response_502 = ErrorResponse.from_dict(response.json())
64
+
65
+ return response_502
66
+
67
+ if client.raise_on_unexpected_status:
68
+ raise errors.UnexpectedStatus(response.status_code, response.content)
69
+ else:
70
+ return None
71
+
72
+
73
+ def _build_response(
74
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
75
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
76
+ return Response(
77
+ status_code=HTTPStatus(response.status_code),
78
+ content=response.content,
79
+ headers=response.headers,
80
+ parsed=_parse_response(client=client, response=response),
81
+ )
82
+
83
+
84
+ def sync_detailed(
85
+ *,
86
+ client: AuthenticatedClient,
87
+ body: BillingSubscribeRequest,
88
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
89
+ """Subscribe to a previewed plan
90
+
91
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
92
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
93
+ with the same operationId returns the same operation instead of starting another purchase, and an
94
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
95
+ /api/billing/subscription/change.
96
+
97
+ Args:
98
+ body (BillingSubscribeRequest):
99
+
100
+ Raises:
101
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
102
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
103
+
104
+ Returns:
105
+ Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
106
+ """
107
+
108
+ kwargs = _get_kwargs(
109
+ body=body,
110
+ )
111
+
112
+ response = client.get_httpx_client().request(
113
+ **kwargs,
114
+ )
115
+
116
+ return _build_response(client=client, response=response)
117
+
118
+
119
+ def sync(
120
+ *,
121
+ client: AuthenticatedClient,
122
+ body: BillingSubscribeRequest,
123
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
124
+ """Subscribe to a previewed plan
125
+
126
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
127
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
128
+ with the same operationId returns the same operation instead of starting another purchase, and an
129
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
130
+ /api/billing/subscription/change.
131
+
132
+ Args:
133
+ body (BillingSubscribeRequest):
134
+
135
+ Raises:
136
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
137
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
138
+
139
+ Returns:
140
+ Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
141
+ """
142
+
143
+ return sync_detailed(
144
+ client=client,
145
+ body=body,
146
+ ).parsed
147
+
148
+
149
+ async def asyncio_detailed(
150
+ *,
151
+ client: AuthenticatedClient,
152
+ body: BillingSubscribeRequest,
153
+ ) -> Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
154
+ """Subscribe to a previewed plan
155
+
156
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
157
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
158
+ with the same operationId returns the same operation instead of starting another purchase, and an
159
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
160
+ /api/billing/subscription/change.
161
+
162
+ Args:
163
+ body (BillingSubscribeRequest):
164
+
165
+ Raises:
166
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
167
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
168
+
169
+ Returns:
170
+ Response[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]
171
+ """
172
+
173
+ kwargs = _get_kwargs(
174
+ body=body,
175
+ )
176
+
177
+ response = await client.get_async_httpx_client().request(**kwargs)
178
+
179
+ return _build_response(client=client, response=response)
180
+
181
+
182
+ async def asyncio(
183
+ *,
184
+ client: AuthenticatedClient,
185
+ body: BillingSubscribeRequest,
186
+ ) -> Optional[Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]]:
187
+ """Subscribe to a previewed plan
188
+
189
+ Subscribes to a plan at current prices. Pass a saved paymentMethodId or a completed setupIntentId to
190
+ charge it; omit both to receive a confirmation secret for entering a new payment method. Retrying
191
+ with the same operationId returns the same operation instead of starting another purchase, and an
192
+ unfinished purchase for the same plan is resumed. Accounts that already have a subscription use POST
193
+ /api/billing/subscription/change.
194
+
195
+ Args:
196
+ body (BillingSubscribeRequest):
197
+
198
+ Raises:
199
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
200
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
201
+
202
+ Returns:
203
+ Union[ApiResponseBillingOperation, BillingStateConflict, ErrorResponse]
204
+ """
205
+
206
+ return (
207
+ await asyncio_detailed(
208
+ client=client,
209
+ body=body,
210
+ )
211
+ ).parsed