skillforge-client 0.3.0__tar.gz → 0.4.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.
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/PKG-INFO +5 -5
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/README.md +3 -3
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/pyproject.toml +2 -2
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/pyproject.toml.orig +2 -2
- skillforge_client-0.3.0/skillforge_client/api/auth/create_application_client_endpoint_api_v1_auth_clients_post.py → skillforge_client-0.4.0/skillforge_client/api/auth/auth_create_application_client.py +27 -12
- 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.4.0/skillforge_client/api/auth/auth_create_application_client_secret.py +27 -12
- skillforge_client-0.3.0/skillforge_client/api/auth/create_token_api_v1_auth_token_post.py → skillforge_client-0.4.0/skillforge_client/api/auth/auth_create_token.py +32 -22
- skillforge_client-0.3.0/skillforge_client/api/auth/read_application_clients_api_v1_auth_clients_get.py → skillforge_client-0.4.0/skillforge_client/api/auth/auth_get_me.py +31 -22
- 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.4.0/skillforge_client/api/auth/auth_grant_application_client_scopes.py +32 -12
- skillforge_client-0.3.0/skillforge_client/api/auth/read_application_client_api_v1_auth_clients_client_id_get.py → skillforge_client-0.4.0/skillforge_client/api/auth/auth_read_application_client.py +27 -12
- skillforge_client-0.4.0/skillforge_client/api/auth/auth_read_application_clients.py +199 -0
- 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.4.0/skillforge_client/api/auth/auth_revoke_application_client_scope.py +27 -16
- 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.4.0/skillforge_client/api/auth/auth_revoke_application_client_secret.py +27 -16
- skillforge_client-0.3.0/skillforge_client/api/auth/update_application_client_endpoint_api_v1_auth_clients_client_id_patch.py → skillforge_client-0.4.0/skillforge_client/api/auth/auth_update_application_client.py +27 -12
- 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.4.0/skillforge_client/api/bot/bot_add_user_to_group.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/cancel_operation_endpoint_api_v1_bot_operations_operation_id_cancel_post.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_cancel_operation.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/check_authorization_endpoint_api_v1_bot_authz_check_post.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_check_authorization.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/claim_jobs_endpoint_api_v1_bot_jobs_claim_post.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_claim_jobs.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_commit_student_activation.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_commit_student_deactivation.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_commit_student_pop.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_commit_student_stash.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_commit_tutor_activation.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_commit_tutor_deactivation.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/complete_job_endpoint_api_v1_bot_jobs_job_id_complete_post.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_complete_job.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_deactivate_discord_account.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_delete_command_env.py +11 -16
- skillforge_client-0.3.0/skillforge_client/api/bot/fail_job_endpoint_api_v1_bot_jobs_job_id_fail_post.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_fail_job.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/job_queue_summary_endpoint_api_v1_bot_jobs_summary_get.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_job_queue_summary.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_link_discord_account.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/list_jobs_endpoint_api_v1_bot_jobs_get.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_list_jobs.py +51 -52
- skillforge_client-0.3.0/skillforge_client/api/bot/list_operations_endpoint_api_v1_bot_operations_get.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_list_operations.py +59 -60
- skillforge_client-0.3.0/skillforge_client/api/bot/read_job_api_v1_bot_jobs_job_id_get.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_read_job.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/read_operation_api_v1_bot_operations_operation_id_get.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_read_operation.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/read_principal_api_v1_bot_runtime_principals_discord_id_get.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_read_principal.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/read_principals_batch_api_v1_bot_runtime_principals_batch_post.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_read_principals_batch.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_read_student_context.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_read_student_contexts_batch.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_read_tutor_context.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_read_tutor_contexts_batch.py +11 -12
- 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.4.0/skillforge_client/api/bot/bot_remove_user_from_group.py +11 -16
- 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.4.0/skillforge_client/api/bot/bot_resolve_command_env.py +11 -12
- skillforge_client-0.3.0/skillforge_client/api/bot/upsert_discord_user_endpoint_api_v1_bot_users_discord_id_put.py → skillforge_client-0.4.0/skillforge_client/api/bot/bot_upsert_discord_user.py +11 -12
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_add_contact_info.py +211 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_create_company.py +184 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_create_person.py +196 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_create_subject.py +189 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_delete_party.py +196 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_delete_subject.py +183 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_get_party.py +202 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_list_parties.py +344 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_list_relations.py +275 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_list_subjects.py +199 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_put_relation.py +226 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_put_student_role.py +214 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_put_tutor_role.py +210 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_remove_contact_info.py +193 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_remove_relation.py +208 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_remove_student_role.py +179 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_remove_tutor_role.py +179 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_update_company.py +210 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_update_contact_info.py +245 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_update_person.py +210 -0
- skillforge_client-0.4.0/skillforge_client/api/crm/crm_update_subject.py +214 -0
- skillforge_client-0.3.0/skillforge_client/api/system/dependency_health_check_health_dependencies_dependency_name_get.py → skillforge_client-0.4.0/skillforge_client/api/system/system_dependency_health_check.py +12 -12
- skillforge_client-0.3.0/skillforge_client/api/system/worker_health_check_health_workers_worker_name_get.py → skillforge_client-0.4.0/skillforge_client/api/system/system_worker_health_check.py +12 -12
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/__init__.py +62 -12
- skillforge_client-0.3.0/skillforge_client/models/body_create_token_api_v1_auth_token_post.py → skillforge_client-0.4.0/skillforge_client/models/body_auth_create_token.py +5 -5
- skillforge_client-0.4.0/skillforge_client/models/company_create_request.py +92 -0
- skillforge_client-0.4.0/skillforge_client/models/company_detail.py +129 -0
- skillforge_client-0.4.0/skillforge_client/models/company_update_request.py +62 -0
- skillforge_client-0.4.0/skillforge_client/models/contact_info_create_request.py +96 -0
- skillforge_client-0.4.0/skillforge_client/models/contact_info_response.py +95 -0
- skillforge_client-0.4.0/skillforge_client/models/contact_info_update_request.py +87 -0
- skillforge_client-0.4.0/skillforge_client/models/error_response.py +118 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/external_accounts_profile.py +16 -27
- skillforge_client-0.3.0/skillforge_client/models/validation_error.py → skillforge_client-0.4.0/skillforge_client/models/field_error.py +16 -48
- skillforge_client-0.4.0/skillforge_client/models/me_response.py +85 -0
- skillforge_client-0.4.0/skillforge_client/models/page_application_client_response.py +99 -0
- skillforge_client-0.3.0/skillforge_client/models/job_page.py → skillforge_client-0.4.0/skillforge_client/models/page_job_list_item.py +10 -11
- skillforge_client-0.3.0/skillforge_client/models/operation_page.py → skillforge_client-0.4.0/skillforge_client/models/page_operation_summary.py +10 -11
- skillforge_client-0.4.0/skillforge_client/models/page_party_list_item.py +99 -0
- skillforge_client-0.4.0/skillforge_client/models/page_relation_response.py +99 -0
- skillforge_client-0.4.0/skillforge_client/models/page_subject_response.py +99 -0
- skillforge_client-0.4.0/skillforge_client/models/party_list_item.py +98 -0
- skillforge_client-0.4.0/skillforge_client/models/party_role.py +9 -0
- skillforge_client-0.4.0/skillforge_client/models/party_type.py +9 -0
- skillforge_client-0.4.0/skillforge_client/models/person_create_request.py +169 -0
- skillforge_client-0.4.0/skillforge_client/models/person_detail.py +194 -0
- skillforge_client-0.4.0/skillforge_client/models/person_update_request.py +71 -0
- skillforge_client-0.4.0/skillforge_client/models/preferred_meeting_tool.py +11 -0
- skillforge_client-0.4.0/skillforge_client/models/relation_direction.py +9 -0
- skillforge_client-0.4.0/skillforge_client/models/relation_response.py +97 -0
- skillforge_client-0.4.0/skillforge_client/models/student_role.py +86 -0
- skillforge_client-0.4.0/skillforge_client/models/student_role_request.py +77 -0
- skillforge_client-0.3.0/skillforge_client/models/error_response.py → skillforge_client-0.4.0/skillforge_client/models/subject_create_request.py +13 -12
- skillforge_client-0.4.0/skillforge_client/models/subject_response.py +70 -0
- skillforge_client-0.4.0/skillforge_client/models/subject_update_request.py +63 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/system_health_check_response.py +8 -0
- skillforge_client-0.4.0/skillforge_client/models/tutor_role.py +76 -0
- skillforge_client-0.4.0/skillforge_client/models/tutor_role_request.py +65 -0
- skillforge_client-0.3.0/skillforge_client/models/http_validation_error.py +0 -79
- skillforge_client-0.3.0/skillforge_client/models/validation_error_context.py +0 -47
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/__init__.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/api/__init__.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/api/auth/__init__.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/api/bot/__init__.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_student_activation_endpoint_api_v1_bot_students_activations_prepare_post.py → /skillforge_client-0.4.0/skillforge_client/api/bot/bot_prepare_student_activation.py +0 -0
- /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.4.0/skillforge_client/api/bot/bot_prepare_student_deactivation.py +0 -0
- /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.4.0/skillforge_client/api/bot/bot_prepare_student_pop.py +0 -0
- /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.4.0/skillforge_client/api/bot/bot_prepare_student_stash.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/bot/prepare_tutor_activation_endpoint_api_v1_bot_tutors_activations_prepare_post.py → /skillforge_client-0.4.0/skillforge_client/api/bot/bot_prepare_tutor_activation.py +0 -0
- /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.4.0/skillforge_client/api/bot/bot_prepare_tutor_deactivation.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/bot/upsert_command_env_endpoint_api_v1_bot_command_envs_put.py → /skillforge_client-0.4.0/skillforge_client/api/bot/bot_upsert_command_env.py +0 -0
- {skillforge_client-0.3.0/skillforge_client/api/default → skillforge_client-0.4.0/skillforge_client/api/crm}/__init__.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/api/system/__init__.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/system/dependencies_health_check_health_dependencies_get.py → /skillforge_client-0.4.0/skillforge_client/api/system/system_dependencies_health_check.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/system/system_health_check_health_get.py → /skillforge_client-0.4.0/skillforge_client/api/system/system_health_check.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/system/liveness_check_health_live_get.py → /skillforge_client-0.4.0/skillforge_client/api/system/system_liveness_check.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/default/root_get.py → /skillforge_client-0.4.0/skillforge_client/api/system/system_root.py +0 -0
- /skillforge_client-0.3.0/skillforge_client/api/system/workers_health_check_health_workers_get.py → /skillforge_client-0.4.0/skillforge_client/api/system/system_workers_health_check.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/client.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/errors.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/access_token_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/application_client_create_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/application_client_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/application_client_scope_grant_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/application_client_secret_create_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/application_client_secret_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/application_client_status.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/application_client_update_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/authorization_check_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/authorization_check_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/bot_job.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/bot_job_payload.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/bot_principal.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/command_env_channel_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/command_env_kind.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/command_env_upsert_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/contact_info_profile.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/contact_info_type.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/created_client_secret_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/dependencies_health_check_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/dependencies_health_check_response_checks.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/dependency_health_check_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/dependency_name.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/discord_account_link_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/discord_account_link_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/discord_account_profile.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/discord_id_batch_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/discord_user_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/discord_user_upsert_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/group_membership_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/health_check_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/health_status.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_claim_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_detail.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_detail_payload.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_fail_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_kind_counts.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_list_item.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_queue_summary.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_status.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/job_status_counts.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/member_role.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/microsoft_account_profile.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/operation_cancel_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/operation_kind.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/operation_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/operation_response_plan.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/operation_status.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/operation_summary.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/operational_profile.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/party_relation_type.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/person_profile.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/principal_batch.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/relation_profile.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/relation_profile_direction.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/student_activation_commit_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/student_activation_prepare_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/student_channel_state.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/student_context.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/student_context_batch.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/transition_commit_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/transition_prepare_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/transition_prepare_response_plan.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/tutor_activation_commit_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/tutor_activation_prepare_request.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/tutor_context.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/tutor_context_batch.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/worker_health_check_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/worker_name.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/workers_health_check_response.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/models/workers_health_check_response_checks.py +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.0}/skillforge_client/py.typed +0 -0
- {skillforge_client-0.3.0 → skillforge_client-0.4.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
|
+
Version: 0.4.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.
|
|
18
|
+
Project-URL: OpenAPI contract, https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.4.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
|
|
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 =
|
|
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.
|
|
80
|
+
Client versions follow Skillforge releases. This package was generated from the [`openapi.json`](https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.4.0/openapi.json) contract for Skillforge v0.4.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
|
|
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 =
|
|
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.
|
|
60
|
+
Client versions follow Skillforge releases. This package was generated from the [`openapi.json`](https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.4.0/openapi.json) contract for Skillforge v0.4.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
|
+
version = "0.4.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.
|
|
32
|
+
"OpenAPI contract" = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.4.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
|
+
version = "0.4.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.
|
|
24
|
+
"OpenAPI contract" = "https://github.com/Nachhilfe-Leon-Weimann/skillforge/blob/v0.4.0/openapi.json"
|
|
25
25
|
|
|
26
26
|
[tool.uv.build-backend]
|
|
27
27
|
module-name = "skillforge_client"
|
|
@@ -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.
|
|
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 |
|
|
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 =
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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.
|
|
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 |
|
|
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 =
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
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 |
|
|
188
|
+
CreatedClientSecretResponse | ErrorResponse
|
|
174
189
|
"""
|
|
175
190
|
|
|
176
191
|
return (
|
|
@@ -6,14 +6,14 @@ import httpx
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
8
|
from ...models.access_token_response import AccessTokenResponse
|
|
9
|
-
from ...models.
|
|
10
|
-
from ...models.
|
|
9
|
+
from ...models.body_auth_create_token import BodyAuthCreateToken
|
|
10
|
+
from ...models.error_response import ErrorResponse
|
|
11
11
|
from ...types import Response
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
def _get_kwargs(
|
|
15
15
|
*,
|
|
16
|
-
body:
|
|
16
|
+
body: BodyAuthCreateToken,
|
|
17
17
|
) -> dict[str, Any]:
|
|
18
18
|
headers: dict[str, Any] = {}
|
|
19
19
|
|
|
@@ -31,14 +31,24 @@ def _get_kwargs(
|
|
|
31
31
|
|
|
32
32
|
def _parse_response(
|
|
33
33
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
34
|
-
) -> AccessTokenResponse |
|
|
34
|
+
) -> AccessTokenResponse | ErrorResponse | None:
|
|
35
35
|
if response.status_code == 200:
|
|
36
36
|
response_200 = AccessTokenResponse.from_dict(response.json())
|
|
37
37
|
|
|
38
38
|
return response_200
|
|
39
39
|
|
|
40
|
+
if response.status_code == 400:
|
|
41
|
+
response_400 = ErrorResponse.from_dict(response.json())
|
|
42
|
+
|
|
43
|
+
return response_400
|
|
44
|
+
|
|
45
|
+
if response.status_code == 401:
|
|
46
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
47
|
+
|
|
48
|
+
return response_401
|
|
49
|
+
|
|
40
50
|
if response.status_code == 422:
|
|
41
|
-
response_422 =
|
|
51
|
+
response_422 = ErrorResponse.from_dict(response.json())
|
|
42
52
|
|
|
43
53
|
return response_422
|
|
44
54
|
|
|
@@ -50,7 +60,7 @@ def _parse_response(
|
|
|
50
60
|
|
|
51
61
|
def _build_response(
|
|
52
62
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
53
|
-
) -> Response[AccessTokenResponse |
|
|
63
|
+
) -> Response[AccessTokenResponse | ErrorResponse]:
|
|
54
64
|
return Response(
|
|
55
65
|
status_code=HTTPStatus(response.status_code),
|
|
56
66
|
content=response.content,
|
|
@@ -62,19 +72,19 @@ def _build_response(
|
|
|
62
72
|
def sync_detailed(
|
|
63
73
|
*,
|
|
64
74
|
client: AuthenticatedClient | Client,
|
|
65
|
-
body:
|
|
66
|
-
) -> Response[AccessTokenResponse |
|
|
75
|
+
body: BodyAuthCreateToken,
|
|
76
|
+
) -> Response[AccessTokenResponse | ErrorResponse]:
|
|
67
77
|
"""Create Token
|
|
68
78
|
|
|
69
79
|
Args:
|
|
70
|
-
body (
|
|
80
|
+
body (BodyAuthCreateToken):
|
|
71
81
|
|
|
72
82
|
Raises:
|
|
73
83
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
74
84
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
75
85
|
|
|
76
86
|
Returns:
|
|
77
|
-
Response[AccessTokenResponse |
|
|
87
|
+
Response[AccessTokenResponse | ErrorResponse]
|
|
78
88
|
"""
|
|
79
89
|
|
|
80
90
|
kwargs = _get_kwargs(
|
|
@@ -91,19 +101,19 @@ def sync_detailed(
|
|
|
91
101
|
def sync(
|
|
92
102
|
*,
|
|
93
103
|
client: AuthenticatedClient | Client,
|
|
94
|
-
body:
|
|
95
|
-
) -> AccessTokenResponse |
|
|
104
|
+
body: BodyAuthCreateToken,
|
|
105
|
+
) -> AccessTokenResponse | ErrorResponse | None:
|
|
96
106
|
"""Create Token
|
|
97
107
|
|
|
98
108
|
Args:
|
|
99
|
-
body (
|
|
109
|
+
body (BodyAuthCreateToken):
|
|
100
110
|
|
|
101
111
|
Raises:
|
|
102
112
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
103
113
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
104
114
|
|
|
105
115
|
Returns:
|
|
106
|
-
AccessTokenResponse |
|
|
116
|
+
AccessTokenResponse | ErrorResponse
|
|
107
117
|
"""
|
|
108
118
|
|
|
109
119
|
return sync_detailed(
|
|
@@ -115,19 +125,19 @@ def sync(
|
|
|
115
125
|
async def asyncio_detailed(
|
|
116
126
|
*,
|
|
117
127
|
client: AuthenticatedClient | Client,
|
|
118
|
-
body:
|
|
119
|
-
) -> Response[AccessTokenResponse |
|
|
128
|
+
body: BodyAuthCreateToken,
|
|
129
|
+
) -> Response[AccessTokenResponse | ErrorResponse]:
|
|
120
130
|
"""Create Token
|
|
121
131
|
|
|
122
132
|
Args:
|
|
123
|
-
body (
|
|
133
|
+
body (BodyAuthCreateToken):
|
|
124
134
|
|
|
125
135
|
Raises:
|
|
126
136
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
127
137
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
128
138
|
|
|
129
139
|
Returns:
|
|
130
|
-
Response[AccessTokenResponse |
|
|
140
|
+
Response[AccessTokenResponse | ErrorResponse]
|
|
131
141
|
"""
|
|
132
142
|
|
|
133
143
|
kwargs = _get_kwargs(
|
|
@@ -142,19 +152,19 @@ async def asyncio_detailed(
|
|
|
142
152
|
async def asyncio(
|
|
143
153
|
*,
|
|
144
154
|
client: AuthenticatedClient | Client,
|
|
145
|
-
body:
|
|
146
|
-
) -> AccessTokenResponse |
|
|
155
|
+
body: BodyAuthCreateToken,
|
|
156
|
+
) -> AccessTokenResponse | ErrorResponse | None:
|
|
147
157
|
"""Create Token
|
|
148
158
|
|
|
149
159
|
Args:
|
|
150
|
-
body (
|
|
160
|
+
body (BodyAuthCreateToken):
|
|
151
161
|
|
|
152
162
|
Raises:
|
|
153
163
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
154
164
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
155
165
|
|
|
156
166
|
Returns:
|
|
157
|
-
AccessTokenResponse |
|
|
167
|
+
AccessTokenResponse | ErrorResponse
|
|
158
168
|
"""
|
|
159
169
|
|
|
160
170
|
return (
|
|
@@ -5,7 +5,8 @@ import httpx
|
|
|
5
5
|
|
|
6
6
|
from ... import errors
|
|
7
7
|
from ...client import AuthenticatedClient, Client
|
|
8
|
-
from ...models.
|
|
8
|
+
from ...models.error_response import ErrorResponse
|
|
9
|
+
from ...models.me_response import MeResponse
|
|
9
10
|
from ...types import Response
|
|
10
11
|
|
|
11
12
|
|
|
@@ -13,7 +14,7 @@ def _get_kwargs() -> dict[str, Any]:
|
|
|
13
14
|
|
|
14
15
|
_kwargs: dict[str, Any] = {
|
|
15
16
|
"method": "get",
|
|
16
|
-
"url": "/api/v1/auth/
|
|
17
|
+
"url": "/api/v1/auth/me",
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
return _kwargs
|
|
@@ -21,17 +22,17 @@ def _get_kwargs() -> dict[str, Any]:
|
|
|
21
22
|
|
|
22
23
|
def _parse_response(
|
|
23
24
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
24
|
-
) ->
|
|
25
|
+
) -> ErrorResponse | MeResponse | None:
|
|
25
26
|
if response.status_code == 200:
|
|
26
|
-
response_200 =
|
|
27
|
-
_response_200 = response.json()
|
|
28
|
-
for response_200_item_data in _response_200:
|
|
29
|
-
response_200_item = ApplicationClientResponse.from_dict(response_200_item_data)
|
|
30
|
-
|
|
31
|
-
response_200.append(response_200_item)
|
|
27
|
+
response_200 = MeResponse.from_dict(response.json())
|
|
32
28
|
|
|
33
29
|
return response_200
|
|
34
30
|
|
|
31
|
+
if response.status_code == 401:
|
|
32
|
+
response_401 = ErrorResponse.from_dict(response.json())
|
|
33
|
+
|
|
34
|
+
return response_401
|
|
35
|
+
|
|
35
36
|
if client.raise_on_unexpected_status:
|
|
36
37
|
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
37
38
|
else:
|
|
@@ -40,7 +41,7 @@ def _parse_response(
|
|
|
40
41
|
|
|
41
42
|
def _build_response(
|
|
42
43
|
*, client: AuthenticatedClient | Client, response: httpx.Response
|
|
43
|
-
) -> Response[
|
|
44
|
+
) -> Response[ErrorResponse | MeResponse]:
|
|
44
45
|
return Response(
|
|
45
46
|
status_code=HTTPStatus(response.status_code),
|
|
46
47
|
content=response.content,
|
|
@@ -52,15 +53,17 @@ def _build_response(
|
|
|
52
53
|
def sync_detailed(
|
|
53
54
|
*,
|
|
54
55
|
client: AuthenticatedClient,
|
|
55
|
-
) -> Response[
|
|
56
|
-
"""
|
|
56
|
+
) -> Response[ErrorResponse | MeResponse]:
|
|
57
|
+
"""Get Me
|
|
58
|
+
|
|
59
|
+
Report what the calling token carries. Answers from the token alone, without asking the database.
|
|
57
60
|
|
|
58
61
|
Raises:
|
|
59
62
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
60
63
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
61
64
|
|
|
62
65
|
Returns:
|
|
63
|
-
Response[
|
|
66
|
+
Response[ErrorResponse | MeResponse]
|
|
64
67
|
"""
|
|
65
68
|
|
|
66
69
|
kwargs = _get_kwargs()
|
|
@@ -75,15 +78,17 @@ def sync_detailed(
|
|
|
75
78
|
def sync(
|
|
76
79
|
*,
|
|
77
80
|
client: AuthenticatedClient,
|
|
78
|
-
) ->
|
|
79
|
-
"""
|
|
81
|
+
) -> ErrorResponse | MeResponse | None:
|
|
82
|
+
"""Get Me
|
|
83
|
+
|
|
84
|
+
Report what the calling token carries. Answers from the token alone, without asking the database.
|
|
80
85
|
|
|
81
86
|
Raises:
|
|
82
87
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
83
88
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
84
89
|
|
|
85
90
|
Returns:
|
|
86
|
-
|
|
91
|
+
ErrorResponse | MeResponse
|
|
87
92
|
"""
|
|
88
93
|
|
|
89
94
|
return sync_detailed(
|
|
@@ -94,15 +99,17 @@ def sync(
|
|
|
94
99
|
async def asyncio_detailed(
|
|
95
100
|
*,
|
|
96
101
|
client: AuthenticatedClient,
|
|
97
|
-
) -> Response[
|
|
98
|
-
"""
|
|
102
|
+
) -> Response[ErrorResponse | MeResponse]:
|
|
103
|
+
"""Get Me
|
|
104
|
+
|
|
105
|
+
Report what the calling token carries. Answers from the token alone, without asking the database.
|
|
99
106
|
|
|
100
107
|
Raises:
|
|
101
108
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
102
109
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
103
110
|
|
|
104
111
|
Returns:
|
|
105
|
-
Response[
|
|
112
|
+
Response[ErrorResponse | MeResponse]
|
|
106
113
|
"""
|
|
107
114
|
|
|
108
115
|
kwargs = _get_kwargs()
|
|
@@ -115,15 +122,17 @@ async def asyncio_detailed(
|
|
|
115
122
|
async def asyncio(
|
|
116
123
|
*,
|
|
117
124
|
client: AuthenticatedClient,
|
|
118
|
-
) ->
|
|
119
|
-
"""
|
|
125
|
+
) -> ErrorResponse | MeResponse | None:
|
|
126
|
+
"""Get Me
|
|
127
|
+
|
|
128
|
+
Report what the calling token carries. Answers from the token alone, without asking the database.
|
|
120
129
|
|
|
121
130
|
Raises:
|
|
122
131
|
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
132
|
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
133
|
|
|
125
134
|
Returns:
|
|
126
|
-
|
|
135
|
+
ErrorResponse | MeResponse
|
|
127
136
|
"""
|
|
128
137
|
|
|
129
138
|
return (
|