skillforge-client 0.3.0__tar.gz → 0.5.0__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 (221) hide show
  1. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/PKG-INFO +5 -5
  2. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/README.md +3 -3
  3. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/pyproject.toml +2 -2
  4. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/pyproject.toml.orig +2 -2
  5. skillforge_client-0.5.0/skillforge_client/api/auth/auth_add_user_role.py +200 -0
  6. skillforge_client-0.3.0/skillforge_client/api/auth/create_application_client_endpoint_api_v1_auth_clients_post.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_create_application_client.py +27 -12
  7. skillforge_client-0.3.0/skillforge_client/api/auth/create_application_client_secret_endpoint_api_v1_auth_clients_client_id_secrets_post.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_create_application_client_secret.py +27 -12
  8. skillforge_client-0.3.0/skillforge_client/api/auth/create_token_api_v1_auth_token_post.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_create_token.py +76 -22
  9. skillforge_client-0.5.0/skillforge_client/api/auth/auth_create_user.py +201 -0
  10. skillforge_client-0.3.0/skillforge_client/api/auth/read_application_clients_api_v1_auth_clients_get.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_get_me.py +31 -22
  11. skillforge_client-0.5.0/skillforge_client/api/auth/auth_get_user.py +185 -0
  12. skillforge_client-0.3.0/skillforge_client/api/auth/grant_application_client_scopes_endpoint_api_v1_auth_clients_client_id_scopes_post.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_grant_application_client_scopes.py +40 -16
  13. skillforge_client-0.5.0/skillforge_client/api/auth/auth_issue_invitation.py +202 -0
  14. skillforge_client-0.5.0/skillforge_client/api/auth/auth_issue_password_reset.py +202 -0
  15. skillforge_client-0.5.0/skillforge_client/api/auth/auth_list_users.py +269 -0
  16. skillforge_client-0.3.0/skillforge_client/api/auth/read_application_client_api_v1_auth_clients_client_id_get.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_read_application_client.py +27 -12
  17. skillforge_client-0.5.0/skillforge_client/api/auth/auth_read_application_clients.py +199 -0
  18. skillforge_client-0.5.0/skillforge_client/api/auth/auth_redeem_password.py +198 -0
  19. skillforge_client-0.5.0/skillforge_client/api/auth/auth_remove_user_role.py +194 -0
  20. skillforge_client-0.3.0/skillforge_client/api/auth/revoke_application_client_scope_endpoint_api_v1_auth_clients_client_id_scopes_scope_key_delete.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_revoke_application_client_scope.py +47 -21
  21. skillforge_client-0.3.0/skillforge_client/api/auth/revoke_application_client_secret_endpoint_api_v1_auth_clients_client_id_secrets_secret_id_delete.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_revoke_application_client_secret.py +27 -16
  22. skillforge_client-0.5.0/skillforge_client/api/auth/auth_revoke_refresh_token.py +198 -0
  23. skillforge_client-0.5.0/skillforge_client/api/auth/auth_revoke_user_sessions.py +179 -0
  24. skillforge_client-0.3.0/skillforge_client/api/auth/update_application_client_endpoint_api_v1_auth_clients_client_id_patch.py → skillforge_client-0.5.0/skillforge_client/api/auth/auth_update_application_client.py +27 -12
  25. skillforge_client-0.5.0/skillforge_client/api/auth/auth_update_user.py +227 -0
  26. skillforge_client-0.3.0/skillforge_client/api/bot/add_user_to_group_endpoint_api_v1_bot_users_discord_id_groups_group_key_put.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_add_user_to_group.py +11 -12
  27. skillforge_client-0.3.0/skillforge_client/api/bot/cancel_operation_endpoint_api_v1_bot_operations_operation_id_cancel_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_cancel_operation.py +11 -12
  28. skillforge_client-0.3.0/skillforge_client/api/bot/check_authorization_endpoint_api_v1_bot_authz_check_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_check_authorization.py +11 -12
  29. skillforge_client-0.3.0/skillforge_client/api/bot/claim_jobs_endpoint_api_v1_bot_jobs_claim_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_claim_jobs.py +11 -12
  30. skillforge_client-0.3.0/skillforge_client/api/bot/commit_student_activation_endpoint_api_v1_bot_students_activations_operation_id_commit_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_commit_student_activation.py +11 -12
  31. skillforge_client-0.3.0/skillforge_client/api/bot/commit_student_deactivation_endpoint_api_v1_bot_students_guild_id_student_discord_id_deactivate_operation_id_commit_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_commit_student_deactivation.py +11 -12
  32. skillforge_client-0.3.0/skillforge_client/api/bot/commit_student_pop_endpoint_api_v1_bot_students_guild_id_student_discord_id_pop_operation_id_commit_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_commit_student_pop.py +11 -12
  33. skillforge_client-0.3.0/skillforge_client/api/bot/commit_student_stash_endpoint_api_v1_bot_students_guild_id_student_discord_id_stash_operation_id_commit_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_commit_student_stash.py +11 -12
  34. skillforge_client-0.3.0/skillforge_client/api/bot/commit_tutor_activation_endpoint_api_v1_bot_tutors_activations_operation_id_commit_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_commit_tutor_activation.py +11 -12
  35. skillforge_client-0.3.0/skillforge_client/api/bot/commit_tutor_deactivation_endpoint_api_v1_bot_tutors_guild_id_tutor_discord_id_deactivate_operation_id_commit_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_commit_tutor_deactivation.py +11 -12
  36. skillforge_client-0.3.0/skillforge_client/api/bot/complete_job_endpoint_api_v1_bot_jobs_job_id_complete_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_complete_job.py +11 -12
  37. skillforge_client-0.3.0/skillforge_client/api/bot/deactivate_discord_account_endpoint_api_v1_bot_users_discord_id_account_delete.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_deactivate_discord_account.py +11 -12
  38. skillforge_client-0.3.0/skillforge_client/api/bot/delete_command_env_endpoint_api_v1_bot_command_envs_guild_id_channel_id_kind_delete.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_delete_command_env.py +11 -16
  39. skillforge_client-0.3.0/skillforge_client/api/bot/fail_job_endpoint_api_v1_bot_jobs_job_id_fail_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_fail_job.py +11 -12
  40. skillforge_client-0.3.0/skillforge_client/api/bot/job_queue_summary_endpoint_api_v1_bot_jobs_summary_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_job_queue_summary.py +11 -12
  41. skillforge_client-0.3.0/skillforge_client/api/bot/link_discord_account_endpoint_api_v1_bot_users_discord_id_account_put.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_link_discord_account.py +11 -12
  42. skillforge_client-0.3.0/skillforge_client/api/bot/list_jobs_endpoint_api_v1_bot_jobs_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_list_jobs.py +51 -52
  43. skillforge_client-0.3.0/skillforge_client/api/bot/list_operations_endpoint_api_v1_bot_operations_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_list_operations.py +59 -60
  44. skillforge_client-0.3.0/skillforge_client/api/bot/read_job_api_v1_bot_jobs_job_id_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_job.py +11 -12
  45. skillforge_client-0.3.0/skillforge_client/api/bot/read_operation_api_v1_bot_operations_operation_id_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_operation.py +11 -12
  46. skillforge_client-0.3.0/skillforge_client/api/bot/read_principal_api_v1_bot_runtime_principals_discord_id_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_principal.py +11 -12
  47. skillforge_client-0.3.0/skillforge_client/api/bot/read_principals_batch_api_v1_bot_runtime_principals_batch_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_principals_batch.py +11 -12
  48. skillforge_client-0.3.0/skillforge_client/api/bot/read_student_context_api_v1_bot_runtime_students_guild_id_discord_id_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_student_context.py +11 -12
  49. skillforge_client-0.3.0/skillforge_client/api/bot/read_student_contexts_batch_api_v1_bot_runtime_students_guild_id_batch_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_student_contexts_batch.py +11 -12
  50. skillforge_client-0.3.0/skillforge_client/api/bot/read_tutor_context_api_v1_bot_runtime_tutors_guild_id_discord_id_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_tutor_context.py +11 -12
  51. skillforge_client-0.3.0/skillforge_client/api/bot/read_tutor_contexts_batch_api_v1_bot_runtime_tutors_guild_id_batch_post.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_read_tutor_contexts_batch.py +11 -12
  52. skillforge_client-0.3.0/skillforge_client/api/bot/remove_user_from_group_endpoint_api_v1_bot_users_discord_id_groups_group_key_delete.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_remove_user_from_group.py +11 -16
  53. skillforge_client-0.3.0/skillforge_client/api/bot/resolve_command_env_endpoint_api_v1_bot_runtime_command_envs_resolve_get.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_resolve_command_env.py +11 -12
  54. skillforge_client-0.3.0/skillforge_client/api/bot/upsert_discord_user_endpoint_api_v1_bot_users_discord_id_put.py → skillforge_client-0.5.0/skillforge_client/api/bot/bot_upsert_discord_user.py +11 -12
  55. skillforge_client-0.5.0/skillforge_client/api/crm/crm_add_contact_info.py +211 -0
  56. skillforge_client-0.5.0/skillforge_client/api/crm/crm_create_company.py +184 -0
  57. skillforge_client-0.5.0/skillforge_client/api/crm/crm_create_person.py +196 -0
  58. skillforge_client-0.5.0/skillforge_client/api/crm/crm_create_subject.py +189 -0
  59. skillforge_client-0.5.0/skillforge_client/api/crm/crm_delete_party.py +196 -0
  60. skillforge_client-0.5.0/skillforge_client/api/crm/crm_delete_subject.py +183 -0
  61. skillforge_client-0.5.0/skillforge_client/api/crm/crm_get_party.py +210 -0
  62. skillforge_client-0.5.0/skillforge_client/api/crm/crm_list_parties.py +352 -0
  63. skillforge_client-0.5.0/skillforge_client/api/crm/crm_list_relations.py +275 -0
  64. skillforge_client-0.5.0/skillforge_client/api/crm/crm_list_subjects.py +199 -0
  65. skillforge_client-0.5.0/skillforge_client/api/crm/crm_put_relation.py +226 -0
  66. skillforge_client-0.5.0/skillforge_client/api/crm/crm_put_student_role.py +214 -0
  67. skillforge_client-0.5.0/skillforge_client/api/crm/crm_put_tutor_role.py +210 -0
  68. skillforge_client-0.5.0/skillforge_client/api/crm/crm_remove_contact_info.py +193 -0
  69. skillforge_client-0.5.0/skillforge_client/api/crm/crm_remove_relation.py +208 -0
  70. skillforge_client-0.5.0/skillforge_client/api/crm/crm_remove_student_role.py +179 -0
  71. skillforge_client-0.5.0/skillforge_client/api/crm/crm_remove_tutor_role.py +179 -0
  72. skillforge_client-0.5.0/skillforge_client/api/crm/crm_update_company.py +210 -0
  73. skillforge_client-0.5.0/skillforge_client/api/crm/crm_update_contact_info.py +245 -0
  74. skillforge_client-0.5.0/skillforge_client/api/crm/crm_update_person.py +210 -0
  75. skillforge_client-0.5.0/skillforge_client/api/crm/crm_update_subject.py +214 -0
  76. skillforge_client-0.3.0/skillforge_client/api/system/dependency_health_check_health_dependencies_dependency_name_get.py → skillforge_client-0.5.0/skillforge_client/api/system/system_dependency_health_check.py +12 -12
  77. skillforge_client-0.3.0/skillforge_client/api/system/worker_health_check_health_workers_worker_name_get.py → skillforge_client-0.5.0/skillforge_client/api/system/system_worker_health_check.py +12 -12
  78. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/__init__.py +86 -12
  79. skillforge_client-0.5.0/skillforge_client/models/access_token_response.py +133 -0
  80. skillforge_client-0.5.0/skillforge_client/models/action_token_response.py +72 -0
  81. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/application_client_response.py +27 -16
  82. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/application_client_scope_grant_request.py +15 -2
  83. skillforge_client-0.3.0/skillforge_client/models/body_create_token_api_v1_auth_token_post.py → skillforge_client-0.5.0/skillforge_client/models/body_auth_create_token.py +73 -9
  84. skillforge_client-0.5.0/skillforge_client/models/company_create_request.py +92 -0
  85. skillforge_client-0.5.0/skillforge_client/models/company_detail.py +129 -0
  86. skillforge_client-0.5.0/skillforge_client/models/company_update_request.py +62 -0
  87. skillforge_client-0.5.0/skillforge_client/models/contact_info_create_request.py +96 -0
  88. skillforge_client-0.5.0/skillforge_client/models/contact_info_response.py +95 -0
  89. skillforge_client-0.5.0/skillforge_client/models/contact_info_update_request.py +87 -0
  90. skillforge_client-0.5.0/skillforge_client/models/error_response.py +118 -0
  91. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/external_accounts_profile.py +16 -27
  92. skillforge_client-0.3.0/skillforge_client/models/validation_error.py → skillforge_client-0.5.0/skillforge_client/models/field_error.py +16 -48
  93. skillforge_client-0.5.0/skillforge_client/models/grant_mode.py +9 -0
  94. skillforge_client-0.5.0/skillforge_client/models/me_response.py +156 -0
  95. skillforge_client-0.5.0/skillforge_client/models/page_application_client_response.py +99 -0
  96. skillforge_client-0.3.0/skillforge_client/models/job_page.py → skillforge_client-0.5.0/skillforge_client/models/page_job_list_item.py +10 -11
  97. skillforge_client-0.3.0/skillforge_client/models/operation_page.py → skillforge_client-0.5.0/skillforge_client/models/page_operation_summary.py +10 -11
  98. skillforge_client-0.5.0/skillforge_client/models/page_party_list_item.py +99 -0
  99. skillforge_client-0.5.0/skillforge_client/models/page_relation_response.py +99 -0
  100. skillforge_client-0.5.0/skillforge_client/models/page_subject_response.py +99 -0
  101. skillforge_client-0.5.0/skillforge_client/models/page_user_account_list_item.py +99 -0
  102. skillforge_client-0.5.0/skillforge_client/models/party_list_item.py +98 -0
  103. skillforge_client-0.5.0/skillforge_client/models/party_role.py +9 -0
  104. skillforge_client-0.5.0/skillforge_client/models/party_type.py +9 -0
  105. skillforge_client-0.5.0/skillforge_client/models/password_redeem_request.py +70 -0
  106. skillforge_client-0.5.0/skillforge_client/models/person_create_request.py +169 -0
  107. skillforge_client-0.5.0/skillforge_client/models/person_detail.py +194 -0
  108. skillforge_client-0.5.0/skillforge_client/models/person_update_request.py +71 -0
  109. skillforge_client-0.5.0/skillforge_client/models/preferred_meeting_tool.py +11 -0
  110. skillforge_client-0.5.0/skillforge_client/models/refresh_token_revoke_request.py +64 -0
  111. skillforge_client-0.5.0/skillforge_client/models/relation_direction.py +9 -0
  112. skillforge_client-0.5.0/skillforge_client/models/relation_response.py +97 -0
  113. skillforge_client-0.5.0/skillforge_client/models/role.py +11 -0
  114. skillforge_client-0.5.0/skillforge_client/models/student_role.py +86 -0
  115. skillforge_client-0.5.0/skillforge_client/models/student_role_request.py +77 -0
  116. skillforge_client-0.3.0/skillforge_client/models/error_response.py → skillforge_client-0.5.0/skillforge_client/models/subject_create_request.py +13 -12
  117. skillforge_client-0.5.0/skillforge_client/models/subject_response.py +70 -0
  118. skillforge_client-0.5.0/skillforge_client/models/subject_update_request.py +63 -0
  119. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/system_health_check_response.py +8 -0
  120. skillforge_client-0.5.0/skillforge_client/models/tutor_role.py +76 -0
  121. skillforge_client-0.5.0/skillforge_client/models/tutor_role_request.py +65 -0
  122. skillforge_client-0.5.0/skillforge_client/models/user_account_create_request.py +110 -0
  123. skillforge_client-0.5.0/skillforge_client/models/user_account_detail.py +188 -0
  124. skillforge_client-0.5.0/skillforge_client/models/user_account_list_item.py +154 -0
  125. skillforge_client-0.5.0/skillforge_client/models/user_account_role_name.py +8 -0
  126. skillforge_client-0.5.0/skillforge_client/models/user_account_status.py +9 -0
  127. skillforge_client-0.5.0/skillforge_client/models/user_account_update_request.py +93 -0
  128. skillforge_client-0.3.0/skillforge_client/models/access_token_response.py +0 -85
  129. skillforge_client-0.3.0/skillforge_client/models/http_validation_error.py +0 -79
  130. skillforge_client-0.3.0/skillforge_client/models/validation_error_context.py +0 -47
  131. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/__init__.py +0 -0
  132. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/api/__init__.py +0 -0
  133. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/api/auth/__init__.py +0 -0
  134. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/api/bot/__init__.py +0 -0
  135. /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_student_activation_endpoint_api_v1_bot_students_activations_prepare_post.py → /skillforge_client-0.5.0/skillforge_client/api/bot/bot_prepare_student_activation.py +0 -0
  136. /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_student_deactivation_endpoint_api_v1_bot_students_guild_id_student_discord_id_deactivate_prepare_post.py → /skillforge_client-0.5.0/skillforge_client/api/bot/bot_prepare_student_deactivation.py +0 -0
  137. /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_student_pop_endpoint_api_v1_bot_students_guild_id_student_discord_id_pop_prepare_post.py → /skillforge_client-0.5.0/skillforge_client/api/bot/bot_prepare_student_pop.py +0 -0
  138. /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_student_stash_endpoint_api_v1_bot_students_guild_id_student_discord_id_stash_prepare_post.py → /skillforge_client-0.5.0/skillforge_client/api/bot/bot_prepare_student_stash.py +0 -0
  139. /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_tutor_activation_endpoint_api_v1_bot_tutors_activations_prepare_post.py → /skillforge_client-0.5.0/skillforge_client/api/bot/bot_prepare_tutor_activation.py +0 -0
  140. /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_tutor_deactivation_endpoint_api_v1_bot_tutors_guild_id_tutor_discord_id_deactivate_prepare_post.py → /skillforge_client-0.5.0/skillforge_client/api/bot/bot_prepare_tutor_deactivation.py +0 -0
  141. /skillforge_client-0.3.0/skillforge_client/api/bot/upsert_command_env_endpoint_api_v1_bot_command_envs_put.py → /skillforge_client-0.5.0/skillforge_client/api/bot/bot_upsert_command_env.py +0 -0
  142. {skillforge_client-0.3.0/skillforge_client/api/default → skillforge_client-0.5.0/skillforge_client/api/crm}/__init__.py +0 -0
  143. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/api/system/__init__.py +0 -0
  144. /skillforge_client-0.3.0/skillforge_client/api/system/dependencies_health_check_health_dependencies_get.py → /skillforge_client-0.5.0/skillforge_client/api/system/system_dependencies_health_check.py +0 -0
  145. /skillforge_client-0.3.0/skillforge_client/api/system/system_health_check_health_get.py → /skillforge_client-0.5.0/skillforge_client/api/system/system_health_check.py +0 -0
  146. /skillforge_client-0.3.0/skillforge_client/api/system/liveness_check_health_live_get.py → /skillforge_client-0.5.0/skillforge_client/api/system/system_liveness_check.py +0 -0
  147. /skillforge_client-0.3.0/skillforge_client/api/default/root_get.py → /skillforge_client-0.5.0/skillforge_client/api/system/system_root.py +0 -0
  148. /skillforge_client-0.3.0/skillforge_client/api/system/workers_health_check_health_workers_get.py → /skillforge_client-0.5.0/skillforge_client/api/system/system_workers_health_check.py +0 -0
  149. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/client.py +0 -0
  150. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/errors.py +0 -0
  151. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/application_client_create_request.py +0 -0
  152. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/application_client_secret_create_request.py +0 -0
  153. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/application_client_secret_response.py +0 -0
  154. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/application_client_status.py +0 -0
  155. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/application_client_update_request.py +0 -0
  156. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/authorization_check_request.py +0 -0
  157. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/authorization_check_response.py +0 -0
  158. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/bot_job.py +0 -0
  159. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/bot_job_payload.py +0 -0
  160. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/bot_principal.py +0 -0
  161. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/command_env_channel_response.py +0 -0
  162. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/command_env_kind.py +0 -0
  163. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/command_env_upsert_request.py +0 -0
  164. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/contact_info_profile.py +0 -0
  165. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/contact_info_type.py +0 -0
  166. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/created_client_secret_response.py +0 -0
  167. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/dependencies_health_check_response.py +0 -0
  168. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/dependencies_health_check_response_checks.py +0 -0
  169. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/dependency_health_check_response.py +0 -0
  170. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/dependency_name.py +0 -0
  171. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/discord_account_link_request.py +0 -0
  172. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/discord_account_link_response.py +0 -0
  173. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/discord_account_profile.py +0 -0
  174. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/discord_id_batch_request.py +0 -0
  175. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/discord_user_response.py +0 -0
  176. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/discord_user_upsert_request.py +0 -0
  177. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/group_membership_response.py +0 -0
  178. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/health_check_response.py +0 -0
  179. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/health_status.py +0 -0
  180. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_claim_request.py +0 -0
  181. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_detail.py +0 -0
  182. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_detail_payload.py +0 -0
  183. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_fail_request.py +0 -0
  184. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_kind_counts.py +0 -0
  185. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_list_item.py +0 -0
  186. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_queue_summary.py +0 -0
  187. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_response.py +0 -0
  188. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_status.py +0 -0
  189. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/job_status_counts.py +0 -0
  190. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/member_role.py +0 -0
  191. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/microsoft_account_profile.py +0 -0
  192. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/operation_cancel_response.py +0 -0
  193. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/operation_kind.py +0 -0
  194. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/operation_response.py +0 -0
  195. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/operation_response_plan.py +0 -0
  196. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/operation_status.py +0 -0
  197. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/operation_summary.py +0 -0
  198. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/operational_profile.py +0 -0
  199. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/party_relation_type.py +0 -0
  200. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/person_profile.py +0 -0
  201. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/principal_batch.py +0 -0
  202. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/relation_profile.py +0 -0
  203. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/relation_profile_direction.py +0 -0
  204. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/student_activation_commit_request.py +0 -0
  205. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/student_activation_prepare_request.py +0 -0
  206. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/student_channel_state.py +0 -0
  207. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/student_context.py +0 -0
  208. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/student_context_batch.py +0 -0
  209. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/transition_commit_response.py +0 -0
  210. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/transition_prepare_response.py +0 -0
  211. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/transition_prepare_response_plan.py +0 -0
  212. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/tutor_activation_commit_request.py +0 -0
  213. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/tutor_activation_prepare_request.py +0 -0
  214. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/tutor_context.py +0 -0
  215. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/tutor_context_batch.py +0 -0
  216. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/worker_health_check_response.py +0 -0
  217. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/worker_name.py +0 -0
  218. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/workers_health_check_response.py +0 -0
  219. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/models/workers_health_check_response_checks.py +0 -0
  220. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/py.typed +0 -0
  221. {skillforge_client-0.3.0 → skillforge_client-0.5.0}/skillforge_client/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: skillforge-client
3
- Version: 0.3.0
3
+ Version: 0.5.0
4
4
  Summary: Official Python client for the Skillforge API.
5
5
  Keywords: skillforge,api,client,openapi
6
6
  Author: Leon Weimann
@@ -15,7 +15,7 @@ Requires-Dist: attrs>=22.2.0
15
15
  Requires-Python: >=3.11
16
16
  Project-URL: Repository, https://github.com/Nachhilfe-Leon-Weimann/skillforge
17
17
  Project-URL: Issues, https://github.com/Nachhilfe-Leon-Weimann/skillforge/issues
18
- Project-URL: OpenAPI contract, https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.3.0/openapi.json
18
+ Project-URL: OpenAPI contract, https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.5.0/openapi.json
19
19
  Description-Content-Type: text/markdown
20
20
 
21
21
  # Skillforge Python Client
@@ -57,10 +57,10 @@ Endpoint functions are grouped by their OpenAPI tag. For example, the liveness e
57
57
  import os
58
58
 
59
59
  from skillforge_client import Client
60
- from skillforge_client.api.system import liveness_check_health_live_get
60
+ from skillforge_client.api.system import system_liveness_check
61
61
 
62
62
  with Client(base_url=os.environ["SKILLFORGE_URL"]) as client:
63
- health = liveness_check_health_live_get.sync(client=client)
63
+ health = system_liveness_check.sync(client=client)
64
64
 
65
65
  if health is not None:
66
66
  print(health.status.value)
@@ -77,7 +77,7 @@ Generated request and response models are available from `skillforge_client.mode
77
77
 
78
78
  ## Versioning and source
79
79
 
80
- Client versions follow Skillforge releases. This package was generated from the [`openapi.json`](https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.3.0/openapi.json) contract for Skillforge v0.3.0; generated source is not maintained by hand.
80
+ Client versions follow Skillforge releases. This package was generated from the [`openapi.json`](https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.5.0/openapi.json) contract for Skillforge v0.5.0; generated source is not maintained by hand.
81
81
 
82
82
  - [Skillforge repository](https://github.com/Nachhilfe-Leon-Weimann/skillforge)
83
83
  - [Issue tracker](https://github.com/Nachhilfe-Leon-Weimann/skillforge/issues)
@@ -37,10 +37,10 @@ Endpoint functions are grouped by their OpenAPI tag. For example, the liveness e
37
37
  import os
38
38
 
39
39
  from skillforge_client import Client
40
- from skillforge_client.api.system import liveness_check_health_live_get
40
+ from skillforge_client.api.system import system_liveness_check
41
41
 
42
42
  with Client(base_url=os.environ["SKILLFORGE_URL"]) as client:
43
- health = liveness_check_health_live_get.sync(client=client)
43
+ health = system_liveness_check.sync(client=client)
44
44
 
45
45
  if health is not None:
46
46
  print(health.status.value)
@@ -57,7 +57,7 @@ Generated request and response models are available from `skillforge_client.mode
57
57
 
58
58
  ## Versioning and source
59
59
 
60
- Client versions follow Skillforge releases. This package was generated from the [`openapi.json`](https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.3.0/openapi.json) contract for Skillforge v0.3.0; generated source is not maintained by hand.
60
+ Client versions follow Skillforge releases. This package was generated from the [`openapi.json`](https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.5.0/openapi.json) contract for Skillforge v0.5.0; generated source is not maintained by hand.
61
61
 
62
62
  - [Skillforge repository](https://github.com/Nachhilfe-Leon-Weimann/skillforge)
63
63
  - [Issue tracker](https://github.com/Nachhilfe-Leon-Weimann/skillforge/issues)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "skillforge-client"
3
- version = "0.3.0"
3
+ version = "0.5.0"
4
4
  description = "Official Python client for the Skillforge API."
5
5
  requires-python = ">=3.11"
6
6
  readme = "README.md"
@@ -29,7 +29,7 @@ email = "coding@leonweimann.de"
29
29
  [project.urls]
30
30
  Repository = "https://github.com/Nachhilfe-Leon-Weimann/skillforge"
31
31
  Issues = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/issues"
32
- "OpenAPI contract" = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.3.0/openapi.json"
32
+ "OpenAPI contract" = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.5.0/openapi.json"
33
33
 
34
34
  [tool.uv.build-backend]
35
35
  module-name = "skillforge_client"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "skillforge-client"
3
- version = "0.3.0"
3
+ version = "0.5.0"
4
4
  description = "Official Python client for the Skillforge API."
5
5
  authors = [{ name = "Leon Weimann", email = "coding@leonweimann.de" }]
6
6
  requires-python = ">=3.11"
@@ -21,7 +21,7 @@ dependencies = [
21
21
  [project.urls]
22
22
  Repository = "https://github.com/Nachhilfe-Leon-Weimann/skillforge"
23
23
  Issues = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/issues"
24
- "OpenAPI contract" = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.3.0/openapi.json"
24
+ "OpenAPI contract" = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.5.0/openapi.json"
25
25
 
26
26
  [tool.uv.build-backend]
27
27
  module-name = "skillforge_client"
@@ -0,0 +1,200 @@
1
+ from http import HTTPStatus
2
+ from typing import Any
3
+ from urllib.parse import quote
4
+ from uuid import UUID
5
+
6
+ import httpx
7
+
8
+ from ... import errors
9
+ from ...client import AuthenticatedClient, Client
10
+ from ...models.error_response import ErrorResponse
11
+ from ...models.user_account_detail import UserAccountDetail
12
+ from ...models.user_account_role_name import UserAccountRoleName
13
+ from ...types import Response
14
+
15
+
16
+ def _get_kwargs(
17
+ user_id: UUID,
18
+ role: UserAccountRoleName,
19
+ ) -> dict[str, Any]:
20
+
21
+ _kwargs: dict[str, Any] = {
22
+ "method": "put",
23
+ "url": "/api/v1/auth/users/{user_id}/roles/{role}".format(
24
+ user_id=quote(str(user_id), safe=""),
25
+ role=quote(str(role), safe=""),
26
+ ),
27
+ }
28
+
29
+ return _kwargs
30
+
31
+
32
+ def _parse_response(
33
+ *, client: AuthenticatedClient | Client, response: httpx.Response
34
+ ) -> ErrorResponse | UserAccountDetail | None:
35
+ if response.status_code == 200:
36
+ response_200 = UserAccountDetail.from_dict(response.json())
37
+
38
+ return response_200
39
+
40
+ if response.status_code == 401:
41
+ response_401 = ErrorResponse.from_dict(response.json())
42
+
43
+ return response_401
44
+
45
+ if response.status_code == 403:
46
+ response_403 = ErrorResponse.from_dict(response.json())
47
+
48
+ return response_403
49
+
50
+ if response.status_code == 404:
51
+ response_404 = ErrorResponse.from_dict(response.json())
52
+
53
+ return response_404
54
+
55
+ if response.status_code == 422:
56
+ response_422 = ErrorResponse.from_dict(response.json())
57
+
58
+ return response_422
59
+
60
+ if client.raise_on_unexpected_status:
61
+ raise errors.UnexpectedStatus(response.status_code, response.content)
62
+ else:
63
+ return None
64
+
65
+
66
+ def _build_response(
67
+ *, client: AuthenticatedClient | Client, response: httpx.Response
68
+ ) -> Response[ErrorResponse | UserAccountDetail]:
69
+ return Response(
70
+ status_code=HTTPStatus(response.status_code),
71
+ content=response.content,
72
+ headers=response.headers,
73
+ parsed=_parse_response(client=client, response=response),
74
+ )
75
+
76
+
77
+ def sync_detailed(
78
+ user_id: UUID,
79
+ role: UserAccountRoleName,
80
+ *,
81
+ client: AuthenticatedClient,
82
+ ) -> Response[ErrorResponse | UserAccountDetail]:
83
+ """Add User Role
84
+
85
+ Give the account a stored role. Idempotent: a role it already holds changes nothing.
86
+
87
+ Args:
88
+ user_id (UUID): ID of the user account.
89
+ role (UserAccountRoleName):
90
+
91
+ Raises:
92
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
93
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
94
+
95
+ Returns:
96
+ Response[ErrorResponse | UserAccountDetail]
97
+ """
98
+
99
+ kwargs = _get_kwargs(
100
+ user_id=user_id,
101
+ role=role,
102
+ )
103
+
104
+ response = client.get_httpx_client().request(
105
+ **kwargs,
106
+ )
107
+
108
+ return _build_response(client=client, response=response)
109
+
110
+
111
+ def sync(
112
+ user_id: UUID,
113
+ role: UserAccountRoleName,
114
+ *,
115
+ client: AuthenticatedClient,
116
+ ) -> ErrorResponse | UserAccountDetail | None:
117
+ """Add User Role
118
+
119
+ Give the account a stored role. Idempotent: a role it already holds changes nothing.
120
+
121
+ Args:
122
+ user_id (UUID): ID of the user account.
123
+ role (UserAccountRoleName):
124
+
125
+ Raises:
126
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
127
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
128
+
129
+ Returns:
130
+ ErrorResponse | UserAccountDetail
131
+ """
132
+
133
+ return sync_detailed(
134
+ user_id=user_id,
135
+ role=role,
136
+ client=client,
137
+ ).parsed
138
+
139
+
140
+ async def asyncio_detailed(
141
+ user_id: UUID,
142
+ role: UserAccountRoleName,
143
+ *,
144
+ client: AuthenticatedClient,
145
+ ) -> Response[ErrorResponse | UserAccountDetail]:
146
+ """Add User Role
147
+
148
+ Give the account a stored role. Idempotent: a role it already holds changes nothing.
149
+
150
+ Args:
151
+ user_id (UUID): ID of the user account.
152
+ role (UserAccountRoleName):
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[ErrorResponse | UserAccountDetail]
160
+ """
161
+
162
+ kwargs = _get_kwargs(
163
+ user_id=user_id,
164
+ role=role,
165
+ )
166
+
167
+ response = await client.get_async_httpx_client().request(**kwargs)
168
+
169
+ return _build_response(client=client, response=response)
170
+
171
+
172
+ async def asyncio(
173
+ user_id: UUID,
174
+ role: UserAccountRoleName,
175
+ *,
176
+ client: AuthenticatedClient,
177
+ ) -> ErrorResponse | UserAccountDetail | None:
178
+ """Add User Role
179
+
180
+ Give the account a stored role. Idempotent: a role it already holds changes nothing.
181
+
182
+ Args:
183
+ user_id (UUID): ID of the user account.
184
+ role (UserAccountRoleName):
185
+
186
+ Raises:
187
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
188
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
189
+
190
+ Returns:
191
+ ErrorResponse | UserAccountDetail
192
+ """
193
+
194
+ return (
195
+ await asyncio_detailed(
196
+ user_id=user_id,
197
+ role=role,
198
+ client=client,
199
+ )
200
+ ).parsed
@@ -7,7 +7,7 @@ from ... import errors
7
7
  from ...client import AuthenticatedClient, Client
8
8
  from ...models.application_client_create_request import ApplicationClientCreateRequest
9
9
  from ...models.application_client_response import ApplicationClientResponse
10
- from ...models.http_validation_error import HTTPValidationError
10
+ from ...models.error_response import ErrorResponse
11
11
  from ...types import Response
12
12
 
13
13
 
@@ -32,14 +32,29 @@ def _get_kwargs(
32
32
 
33
33
  def _parse_response(
34
34
  *, client: AuthenticatedClient | Client, response: httpx.Response
35
- ) -> ApplicationClientResponse | HTTPValidationError | None:
35
+ ) -> ApplicationClientResponse | ErrorResponse | None:
36
36
  if response.status_code == 201:
37
37
  response_201 = ApplicationClientResponse.from_dict(response.json())
38
38
 
39
39
  return response_201
40
40
 
41
+ if response.status_code == 401:
42
+ response_401 = ErrorResponse.from_dict(response.json())
43
+
44
+ return response_401
45
+
46
+ if response.status_code == 403:
47
+ response_403 = ErrorResponse.from_dict(response.json())
48
+
49
+ return response_403
50
+
51
+ if response.status_code == 409:
52
+ response_409 = ErrorResponse.from_dict(response.json())
53
+
54
+ return response_409
55
+
41
56
  if response.status_code == 422:
42
- response_422 = HTTPValidationError.from_dict(response.json())
57
+ response_422 = ErrorResponse.from_dict(response.json())
43
58
 
44
59
  return response_422
45
60
 
@@ -51,7 +66,7 @@ def _parse_response(
51
66
 
52
67
  def _build_response(
53
68
  *, client: AuthenticatedClient | Client, response: httpx.Response
54
- ) -> Response[ApplicationClientResponse | HTTPValidationError]:
69
+ ) -> Response[ApplicationClientResponse | ErrorResponse]:
55
70
  return Response(
56
71
  status_code=HTTPStatus(response.status_code),
57
72
  content=response.content,
@@ -64,7 +79,7 @@ def sync_detailed(
64
79
  *,
65
80
  client: AuthenticatedClient,
66
81
  body: ApplicationClientCreateRequest,
67
- ) -> Response[ApplicationClientResponse | HTTPValidationError]:
82
+ ) -> Response[ApplicationClientResponse | ErrorResponse]:
68
83
  """Create Application Client Endpoint
69
84
 
70
85
  Args:
@@ -75,7 +90,7 @@ def sync_detailed(
75
90
  httpx.TimeoutException: If the request takes longer than Client.timeout.
76
91
 
77
92
  Returns:
78
- Response[ApplicationClientResponse | HTTPValidationError]
93
+ Response[ApplicationClientResponse | ErrorResponse]
79
94
  """
80
95
 
81
96
  kwargs = _get_kwargs(
@@ -93,7 +108,7 @@ def sync(
93
108
  *,
94
109
  client: AuthenticatedClient,
95
110
  body: ApplicationClientCreateRequest,
96
- ) -> ApplicationClientResponse | HTTPValidationError | None:
111
+ ) -> ApplicationClientResponse | ErrorResponse | None:
97
112
  """Create Application Client Endpoint
98
113
 
99
114
  Args:
@@ -104,7 +119,7 @@ def sync(
104
119
  httpx.TimeoutException: If the request takes longer than Client.timeout.
105
120
 
106
121
  Returns:
107
- ApplicationClientResponse | HTTPValidationError
122
+ ApplicationClientResponse | ErrorResponse
108
123
  """
109
124
 
110
125
  return sync_detailed(
@@ -117,7 +132,7 @@ async def asyncio_detailed(
117
132
  *,
118
133
  client: AuthenticatedClient,
119
134
  body: ApplicationClientCreateRequest,
120
- ) -> Response[ApplicationClientResponse | HTTPValidationError]:
135
+ ) -> Response[ApplicationClientResponse | ErrorResponse]:
121
136
  """Create Application Client Endpoint
122
137
 
123
138
  Args:
@@ -128,7 +143,7 @@ async def asyncio_detailed(
128
143
  httpx.TimeoutException: If the request takes longer than Client.timeout.
129
144
 
130
145
  Returns:
131
- Response[ApplicationClientResponse | HTTPValidationError]
146
+ Response[ApplicationClientResponse | ErrorResponse]
132
147
  """
133
148
 
134
149
  kwargs = _get_kwargs(
@@ -144,7 +159,7 @@ async def asyncio(
144
159
  *,
145
160
  client: AuthenticatedClient,
146
161
  body: ApplicationClientCreateRequest,
147
- ) -> ApplicationClientResponse | HTTPValidationError | None:
162
+ ) -> ApplicationClientResponse | ErrorResponse | None:
148
163
  """Create Application Client Endpoint
149
164
 
150
165
  Args:
@@ -155,7 +170,7 @@ async def asyncio(
155
170
  httpx.TimeoutException: If the request takes longer than Client.timeout.
156
171
 
157
172
  Returns:
158
- ApplicationClientResponse | HTTPValidationError
173
+ ApplicationClientResponse | ErrorResponse
159
174
  """
160
175
 
161
176
  return (
@@ -8,7 +8,7 @@ from ... import errors
8
8
  from ...client import AuthenticatedClient, Client
9
9
  from ...models.application_client_secret_create_request import ApplicationClientSecretCreateRequest
10
10
  from ...models.created_client_secret_response import CreatedClientSecretResponse
11
- from ...models.http_validation_error import HTTPValidationError
11
+ from ...models.error_response import ErrorResponse
12
12
  from ...types import Response
13
13
 
14
14
 
@@ -36,14 +36,29 @@ def _get_kwargs(
36
36
 
37
37
  def _parse_response(
38
38
  *, client: AuthenticatedClient | Client, response: httpx.Response
39
- ) -> CreatedClientSecretResponse | HTTPValidationError | None:
39
+ ) -> CreatedClientSecretResponse | ErrorResponse | None:
40
40
  if response.status_code == 201:
41
41
  response_201 = CreatedClientSecretResponse.from_dict(response.json())
42
42
 
43
43
  return response_201
44
44
 
45
+ if response.status_code == 401:
46
+ response_401 = ErrorResponse.from_dict(response.json())
47
+
48
+ return response_401
49
+
50
+ if response.status_code == 403:
51
+ response_403 = ErrorResponse.from_dict(response.json())
52
+
53
+ return response_403
54
+
55
+ if response.status_code == 404:
56
+ response_404 = ErrorResponse.from_dict(response.json())
57
+
58
+ return response_404
59
+
45
60
  if response.status_code == 422:
46
- response_422 = HTTPValidationError.from_dict(response.json())
61
+ response_422 = ErrorResponse.from_dict(response.json())
47
62
 
48
63
  return response_422
49
64
 
@@ -55,7 +70,7 @@ def _parse_response(
55
70
 
56
71
  def _build_response(
57
72
  *, client: AuthenticatedClient | Client, response: httpx.Response
58
- ) -> Response[CreatedClientSecretResponse | HTTPValidationError]:
73
+ ) -> Response[CreatedClientSecretResponse | ErrorResponse]:
59
74
  return Response(
60
75
  status_code=HTTPStatus(response.status_code),
61
76
  content=response.content,
@@ -69,7 +84,7 @@ def sync_detailed(
69
84
  *,
70
85
  client: AuthenticatedClient,
71
86
  body: ApplicationClientSecretCreateRequest,
72
- ) -> Response[CreatedClientSecretResponse | HTTPValidationError]:
87
+ ) -> Response[CreatedClientSecretResponse | ErrorResponse]:
73
88
  """Create Application Client Secret Endpoint
74
89
 
75
90
  Args:
@@ -81,7 +96,7 @@ def sync_detailed(
81
96
  httpx.TimeoutException: If the request takes longer than Client.timeout.
82
97
 
83
98
  Returns:
84
- Response[CreatedClientSecretResponse | HTTPValidationError]
99
+ Response[CreatedClientSecretResponse | ErrorResponse]
85
100
  """
86
101
 
87
102
  kwargs = _get_kwargs(
@@ -101,7 +116,7 @@ def sync(
101
116
  *,
102
117
  client: AuthenticatedClient,
103
118
  body: ApplicationClientSecretCreateRequest,
104
- ) -> CreatedClientSecretResponse | HTTPValidationError | None:
119
+ ) -> CreatedClientSecretResponse | ErrorResponse | None:
105
120
  """Create Application Client Secret Endpoint
106
121
 
107
122
  Args:
@@ -113,7 +128,7 @@ def sync(
113
128
  httpx.TimeoutException: If the request takes longer than Client.timeout.
114
129
 
115
130
  Returns:
116
- CreatedClientSecretResponse | HTTPValidationError
131
+ CreatedClientSecretResponse | ErrorResponse
117
132
  """
118
133
 
119
134
  return sync_detailed(
@@ -128,7 +143,7 @@ async def asyncio_detailed(
128
143
  *,
129
144
  client: AuthenticatedClient,
130
145
  body: ApplicationClientSecretCreateRequest,
131
- ) -> Response[CreatedClientSecretResponse | HTTPValidationError]:
146
+ ) -> Response[CreatedClientSecretResponse | ErrorResponse]:
132
147
  """Create Application Client Secret Endpoint
133
148
 
134
149
  Args:
@@ -140,7 +155,7 @@ async def asyncio_detailed(
140
155
  httpx.TimeoutException: If the request takes longer than Client.timeout.
141
156
 
142
157
  Returns:
143
- Response[CreatedClientSecretResponse | HTTPValidationError]
158
+ Response[CreatedClientSecretResponse | ErrorResponse]
144
159
  """
145
160
 
146
161
  kwargs = _get_kwargs(
@@ -158,7 +173,7 @@ async def asyncio(
158
173
  *,
159
174
  client: AuthenticatedClient,
160
175
  body: ApplicationClientSecretCreateRequest,
161
- ) -> CreatedClientSecretResponse | HTTPValidationError | None:
176
+ ) -> CreatedClientSecretResponse | ErrorResponse | None:
162
177
  """Create Application Client Secret Endpoint
163
178
 
164
179
  Args:
@@ -170,7 +185,7 @@ async def asyncio(
170
185
  httpx.TimeoutException: If the request takes longer than Client.timeout.
171
186
 
172
187
  Returns:
173
- CreatedClientSecretResponse | HTTPValidationError
188
+ CreatedClientSecretResponse | ErrorResponse
174
189
  """
175
190
 
176
191
  return (