spatialflow 0.1.0__py3-none-any.whl
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.
- spatialflow/__init__.py +91 -0
- spatialflow/_generated/.github/workflows/python.yml +31 -0
- spatialflow/_generated/.gitignore +66 -0
- spatialflow/_generated/.gitlab-ci.yml +31 -0
- spatialflow/_generated/.openapi-generator/FILES +390 -0
- spatialflow/_generated/.openapi-generator/VERSION +1 -0
- spatialflow/_generated/.openapi-generator-ignore +23 -0
- spatialflow/_generated/.spec-hash +1 -0
- spatialflow/_generated/.travis.yml +17 -0
- spatialflow/_generated/README.md +537 -0
- spatialflow/_generated/__init__.py +1 -0
- spatialflow/_generated/docs/APIUsageStats.md +32 -0
- spatialflow/_generated/docs/AccountApi.md +1751 -0
- spatialflow/_generated/docs/ActionDeliverySuccessMetrics.md +32 -0
- spatialflow/_generated/docs/ActionResponse.md +32 -0
- spatialflow/_generated/docs/ActionRetryConfigSchema.md +32 -0
- spatialflow/_generated/docs/ActivitySummary.md +30 -0
- spatialflow/_generated/docs/AdminApi.md +1787 -0
- spatialflow/_generated/docs/ApiKeyCreateRequest.md +31 -0
- spatialflow/_generated/docs/ApiKeyCreateResponse.md +31 -0
- spatialflow/_generated/docs/ApiKeyResponse.md +38 -0
- spatialflow/_generated/docs/ApiKeyUpdateRequest.md +33 -0
- spatialflow/_generated/docs/AsyncUploadGeofencesResponse.md +33 -0
- spatialflow/_generated/docs/AuthTypeEnum.md +17 -0
- spatialflow/_generated/docs/AuthenticationApi.md +1289 -0
- spatialflow/_generated/docs/BatchLocationUpdateIn.md +30 -0
- spatialflow/_generated/docs/BillingApi.md +925 -0
- spatialflow/_generated/docs/BulkGeofenceRequest.md +29 -0
- spatialflow/_generated/docs/ChangePasswordSchema.md +30 -0
- spatialflow/_generated/docs/CheckoutSessionRequest.md +32 -0
- spatialflow/_generated/docs/CheckoutSessionResponse.md +31 -0
- spatialflow/_generated/docs/CircuitBreakerSchema.md +33 -0
- spatialflow/_generated/docs/ConfigFieldDefinitionRequest.md +41 -0
- spatialflow/_generated/docs/ConfigFieldDefinitionResponse.md +43 -0
- spatialflow/_generated/docs/ConfirmPasswordResetSchema.md +31 -0
- spatialflow/_generated/docs/CreateFromTemplateIn.md +30 -0
- spatialflow/_generated/docs/CreateGeofenceRequest.md +36 -0
- spatialflow/_generated/docs/CreateIntegrationSchema.md +33 -0
- spatialflow/_generated/docs/CreateUserSchema.md +35 -0
- spatialflow/_generated/docs/CreateWebhookRequest.md +43 -0
- spatialflow/_generated/docs/DashboardComparisonMetrics.md +32 -0
- spatialflow/_generated/docs/DashboardMetricsResponse.md +36 -0
- spatialflow/_generated/docs/DefaultApi.md +585 -0
- spatialflow/_generated/docs/DeleteFileResponse.md +30 -0
- spatialflow/_generated/docs/DeliveryStatusEnum.md +15 -0
- spatialflow/_generated/docs/DeviceIn.md +32 -0
- spatialflow/_generated/docs/DeviceOut.md +37 -0
- spatialflow/_generated/docs/DevicesApi.md +1213 -0
- spatialflow/_generated/docs/E2ETestApi.md +271 -0
- spatialflow/_generated/docs/EmailApi.md +541 -0
- spatialflow/_generated/docs/EmailHealthResponse.md +31 -0
- spatialflow/_generated/docs/EmailQueueStats.md +34 -0
- spatialflow/_generated/docs/EmailStats.md +31 -0
- spatialflow/_generated/docs/EmailStatusResponse.md +36 -0
- spatialflow/_generated/docs/ErrorResponse.md +32 -0
- spatialflow/_generated/docs/ExecutionOut.md +38 -0
- spatialflow/_generated/docs/ExportIntegrationSchema.md +35 -0
- spatialflow/_generated/docs/FileListResponse.md +31 -0
- spatialflow/_generated/docs/ForgotPasswordSchema.md +29 -0
- spatialflow/_generated/docs/GPXPlaybackOut.md +42 -0
- spatialflow/_generated/docs/GPXRouteOut.md +40 -0
- spatialflow/_generated/docs/GPXSimulatorApi.md +883 -0
- spatialflow/_generated/docs/GeoJSONPoint.md +31 -0
- spatialflow/_generated/docs/GeofenceListResponse.md +31 -0
- spatialflow/_generated/docs/GeofenceResponse.md +43 -0
- spatialflow/_generated/docs/GeofenceStats.md +30 -0
- spatialflow/_generated/docs/GeofenceTestResult.md +33 -0
- spatialflow/_generated/docs/GeofencesApi.md +1524 -0
- spatialflow/_generated/docs/HealthCheckResponse.md +31 -0
- spatialflow/_generated/docs/HealthResponse.md +32 -0
- spatialflow/_generated/docs/ImportIntegrationSchema.md +32 -0
- spatialflow/_generated/docs/ImportResultSchema.md +33 -0
- spatialflow/_generated/docs/IntegrationDetailSchema.md +44 -0
- spatialflow/_generated/docs/IntegrationResponseSchema.md +42 -0
- spatialflow/_generated/docs/IntegrationStatsSchema.md +36 -0
- spatialflow/_generated/docs/IntegrationTypeListResponse.md +34 -0
- spatialflow/_generated/docs/IntegrationTypeRequest.md +40 -0
- spatialflow/_generated/docs/IntegrationTypeResponse.md +45 -0
- spatialflow/_generated/docs/IntegrationsApi.md +2008 -0
- spatialflow/_generated/docs/InvoiceLineItem.md +33 -0
- spatialflow/_generated/docs/InvoiceListResponse.md +31 -0
- spatialflow/_generated/docs/InvoiceResponse.md +40 -0
- spatialflow/_generated/docs/LocationBatchIn.md +31 -0
- spatialflow/_generated/docs/LocationImportResponse.md +41 -0
- spatialflow/_generated/docs/LocationIngestResponse.md +35 -0
- spatialflow/_generated/docs/LocationPointIn.md +38 -0
- spatialflow/_generated/docs/LocationUpdateIn.md +36 -0
- spatialflow/_generated/docs/LocationUpdateOut.md +32 -0
- spatialflow/_generated/docs/LoginResponse.md +33 -0
- spatialflow/_generated/docs/LoginSchema.md +30 -0
- spatialflow/_generated/docs/MemberActionResponse.md +33 -0
- spatialflow/_generated/docs/MemberSummary.md +36 -0
- spatialflow/_generated/docs/MethodEnum.md +17 -0
- spatialflow/_generated/docs/OAuthAuthorizeResponse.md +29 -0
- spatialflow/_generated/docs/OAuthCallbackQuery.md +32 -0
- spatialflow/_generated/docs/OAuthLinkResponse.md +31 -0
- spatialflow/_generated/docs/OAuthProvidersResponse.md +29 -0
- spatialflow/_generated/docs/OnboardingProgressResponse.md +37 -0
- spatialflow/_generated/docs/PaymentMethodResponse.md +37 -0
- spatialflow/_generated/docs/PingResponse.md +31 -0
- spatialflow/_generated/docs/PlanChangePreviewResponse.md +35 -0
- spatialflow/_generated/docs/PlanFeatures.md +36 -0
- spatialflow/_generated/docs/PlanLimits.md +34 -0
- spatialflow/_generated/docs/PlanResponse.md +37 -0
- spatialflow/_generated/docs/PortalSessionRequest.md +30 -0
- spatialflow/_generated/docs/PortalSessionResponse.md +30 -0
- spatialflow/_generated/docs/PresignedUrlRequest.md +31 -0
- spatialflow/_generated/docs/PresignedUrlResponse.md +35 -0
- spatialflow/_generated/docs/PrivacyErasureRequest.md +35 -0
- spatialflow/_generated/docs/PrivacyErasureResponse.md +36 -0
- spatialflow/_generated/docs/PublicApi.md +389 -0
- spatialflow/_generated/docs/PublicLocationIngestApi.md +249 -0
- spatialflow/_generated/docs/RateLimitResponse.md +32 -0
- spatialflow/_generated/docs/RecentActivity.md +31 -0
- spatialflow/_generated/docs/RefreshTokenSchema.md +29 -0
- spatialflow/_generated/docs/RegisterSchema.md +37 -0
- spatialflow/_generated/docs/ResendVerificationSchema.md +29 -0
- spatialflow/_generated/docs/ResetPasswordSchema.md +31 -0
- spatialflow/_generated/docs/RetryPolicyResponseSchema.md +32 -0
- spatialflow/_generated/docs/RetryPolicySchema.md +35 -0
- spatialflow/_generated/docs/RetryStrategyEnum.md +14 -0
- spatialflow/_generated/docs/SeedDataResponseSchema.md +31 -0
- spatialflow/_generated/docs/SendEmailRequest.md +33 -0
- spatialflow/_generated/docs/SetupIntentResponse.md +30 -0
- spatialflow/_generated/docs/SignupRequest.md +40 -0
- spatialflow/_generated/docs/StartPlaybackRequest.md +30 -0
- spatialflow/_generated/docs/StorageApi.md +494 -0
- spatialflow/_generated/docs/SubscriptionActionResponse.md +32 -0
- spatialflow/_generated/docs/SubscriptionResponse.md +36 -0
- spatialflow/_generated/docs/SubscriptionsApi.md +677 -0
- spatialflow/_generated/docs/SuccessResponse.md +31 -0
- spatialflow/_generated/docs/SystemApi.md +137 -0
- spatialflow/_generated/docs/TemplateOut.md +35 -0
- spatialflow/_generated/docs/TestEventRequest.md +29 -0
- spatialflow/_generated/docs/TestIntegrationResponseSchema.md +31 -0
- spatialflow/_generated/docs/TestPointRequest.md +34 -0
- spatialflow/_generated/docs/TestPointResponse.md +33 -0
- spatialflow/_generated/docs/TestWebhookRequest.md +32 -0
- spatialflow/_generated/docs/TestWorkflowIn.md +29 -0
- spatialflow/_generated/docs/TileMetadata.md +36 -0
- spatialflow/_generated/docs/TilesApi.md +462 -0
- spatialflow/_generated/docs/UnsubscribeRequest.md +29 -0
- spatialflow/_generated/docs/UnsubscribeResponse.md +31 -0
- spatialflow/_generated/docs/UpdateGeofenceRequest.md +37 -0
- spatialflow/_generated/docs/UpdateIntegrationSchema.md +33 -0
- spatialflow/_generated/docs/UpdateMemberRoleRequest.md +30 -0
- spatialflow/_generated/docs/UpdateOnboardingProgressRequest.md +30 -0
- spatialflow/_generated/docs/UpdateProfileRequest.md +45 -0
- spatialflow/_generated/docs/UpdateUserWorkspaceRequest.md +31 -0
- spatialflow/_generated/docs/UpdateWebhookRequest.md +43 -0
- spatialflow/_generated/docs/UploadGeofencesRequest.md +31 -0
- spatialflow/_generated/docs/UploadJobStatus.md +42 -0
- spatialflow/_generated/docs/UsageMetrics.md +33 -0
- spatialflow/_generated/docs/UsageResponse.md +36 -0
- spatialflow/_generated/docs/UsageStats.md +32 -0
- spatialflow/_generated/docs/UserActionResponse.md +35 -0
- spatialflow/_generated/docs/UserApprovalRequest.md +30 -0
- spatialflow/_generated/docs/UserInviteRequest.md +33 -0
- spatialflow/_generated/docs/UserInviteResponse.md +36 -0
- spatialflow/_generated/docs/UserListResponse.md +34 -0
- spatialflow/_generated/docs/UserProfileResponse.md +55 -0
- spatialflow/_generated/docs/UserRejectionRequest.md +30 -0
- spatialflow/_generated/docs/UserResponse.md +44 -0
- spatialflow/_generated/docs/UserSummary.md +41 -0
- spatialflow/_generated/docs/UserUsageResponse.md +38 -0
- spatialflow/_generated/docs/UserWorkspaceResponse.md +34 -0
- spatialflow/_generated/docs/WebhookDeliveryDetailResponse.md +49 -0
- spatialflow/_generated/docs/WebhookDeliveryListResponse.md +31 -0
- spatialflow/_generated/docs/WebhookDeliveryResponse.md +46 -0
- spatialflow/_generated/docs/WebhookListResponse.md +31 -0
- spatialflow/_generated/docs/WebhookMetricsResponse.md +31 -0
- spatialflow/_generated/docs/WebhookResponse.md +50 -0
- spatialflow/_generated/docs/WebhookTestResponse.md +36 -0
- spatialflow/_generated/docs/WebhooksApi.md +1384 -0
- spatialflow/_generated/docs/WorkflowImportSchema.md +30 -0
- spatialflow/_generated/docs/WorkflowIn.md +32 -0
- spatialflow/_generated/docs/WorkflowListOut.md +39 -0
- spatialflow/_generated/docs/WorkflowListResponse.md +32 -0
- spatialflow/_generated/docs/WorkflowOut.md +42 -0
- spatialflow/_generated/docs/WorkflowRetryPolicyUpdateSchema.md +32 -0
- spatialflow/_generated/docs/WorkflowStepRetrySchema.md +33 -0
- spatialflow/_generated/docs/WorkflowUpdate.md +33 -0
- spatialflow/_generated/docs/WorkflowsApi.md +2599 -0
- spatialflow/_generated/docs/WorkspaceDeleteResponse.md +33 -0
- spatialflow/_generated/docs/WorkspaceDetail.md +37 -0
- spatialflow/_generated/docs/WorkspaceDetailResponse.md +41 -0
- spatialflow/_generated/docs/WorkspaceIn.md +34 -0
- spatialflow/_generated/docs/WorkspaceListItem.md +39 -0
- spatialflow/_generated/docs/WorkspaceListResponse.md +34 -0
- spatialflow/_generated/docs/WorkspaceMembersResponse.md +35 -0
- spatialflow/_generated/docs/WorkspaceOut.md +38 -0
- spatialflow/_generated/docs/WorkspaceSummary.md +32 -0
- spatialflow/_generated/docs/WorkspaceUpdateRequest.md +34 -0
- spatialflow/_generated/docs/WorkspaceUpdateResponse.md +33 -0
- spatialflow/_generated/docs/WorkspacesApi.md +241 -0
- spatialflow/_generated/git_push.sh +57 -0
- spatialflow/_generated/pyproject.toml +91 -0
- spatialflow/_generated/requirements.txt +6 -0
- spatialflow/_generated/setup.cfg +2 -0
- spatialflow/_generated/setup.py +51 -0
- spatialflow/_generated/spatialflow_generated/__init__.py +216 -0
- spatialflow/_generated/spatialflow_generated/api/__init__.py +24 -0
- spatialflow/_generated/spatialflow_generated/api/account_api.py +5675 -0
- spatialflow/_generated/spatialflow_generated/api/admin_api.py +6173 -0
- spatialflow/_generated/spatialflow_generated/api/authentication_api.py +4753 -0
- spatialflow/_generated/spatialflow_generated/api/billing_api.py +3151 -0
- spatialflow/_generated/spatialflow_generated/api/default_api.py +2157 -0
- spatialflow/_generated/spatialflow_generated/api/devices_api.py +3965 -0
- spatialflow/_generated/spatialflow_generated/api/e2_e_test_api.py +1049 -0
- spatialflow/_generated/spatialflow_generated/api/email_api.py +1879 -0
- spatialflow/_generated/spatialflow_generated/api/geofences_api.py +4899 -0
- spatialflow/_generated/spatialflow_generated/api/gpx_simulator_api.py +2824 -0
- spatialflow/_generated/spatialflow_generated/api/integrations_api.py +6952 -0
- spatialflow/_generated/spatialflow_generated/api/public_api.py +1506 -0
- spatialflow/_generated/spatialflow_generated/api/public_location_ingest_api.py +845 -0
- spatialflow/_generated/spatialflow_generated/api/storage_api.py +1642 -0
- spatialflow/_generated/spatialflow_generated/api/subscriptions_api.py +2356 -0
- spatialflow/_generated/spatialflow_generated/api/system_api.py +529 -0
- spatialflow/_generated/spatialflow_generated/api/tiles_api.py +1626 -0
- spatialflow/_generated/spatialflow_generated/api/webhooks_api.py +4579 -0
- spatialflow/_generated/spatialflow_generated/api/workflows_api.py +8334 -0
- spatialflow/_generated/spatialflow_generated/api/workspaces_api.py +813 -0
- spatialflow/_generated/spatialflow_generated/api_client.py +800 -0
- spatialflow/_generated/spatialflow_generated/api_response.py +21 -0
- spatialflow/_generated/spatialflow_generated/configuration.py +599 -0
- spatialflow/_generated/spatialflow_generated/exceptions.py +199 -0
- spatialflow/_generated/spatialflow_generated/models/__init__.py +180 -0
- spatialflow/_generated/spatialflow_generated/models/action_delivery_success_metrics.py +96 -0
- spatialflow/_generated/spatialflow_generated/models/action_response.py +96 -0
- spatialflow/_generated/spatialflow_generated/models/action_retry_config_schema.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/activity_summary.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_create_request.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_create_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_response.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/api_key_update_request.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/api_usage_stats.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/async_upload_geofences_response.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/auth_type_enum.py +39 -0
- spatialflow/_generated/spatialflow_generated/models/batch_location_update_in.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/bulk_geofence_request.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/change_password_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/checkout_session_request.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/checkout_session_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/circuit_breaker_schema.py +94 -0
- spatialflow/_generated/spatialflow_generated/models/config_field_definition_request.py +134 -0
- spatialflow/_generated/spatialflow_generated/models/config_field_definition_response.py +138 -0
- spatialflow/_generated/spatialflow_generated/models/confirm_password_reset_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/create_from_template_in.py +94 -0
- spatialflow/_generated/spatialflow_generated/models/create_geofence_request.py +125 -0
- spatialflow/_generated/spatialflow_generated/models/create_integration_schema.py +106 -0
- spatialflow/_generated/spatialflow_generated/models/create_user_schema.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/create_webhook_request.py +136 -0
- spatialflow/_generated/spatialflow_generated/models/dashboard_comparison_metrics.py +96 -0
- spatialflow/_generated/spatialflow_generated/models/dashboard_metrics_response.py +108 -0
- spatialflow/_generated/spatialflow_generated/models/delete_file_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/delivery_status_enum.py +38 -0
- spatialflow/_generated/spatialflow_generated/models/device_in.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/device_out.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/email_health_response.py +92 -0
- spatialflow/_generated/spatialflow_generated/models/email_queue_stats.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/email_stats.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/email_status_response.py +112 -0
- spatialflow/_generated/spatialflow_generated/models/error_response.py +101 -0
- spatialflow/_generated/spatialflow_generated/models/execution_out.py +126 -0
- spatialflow/_generated/spatialflow_generated/models/export_integration_schema.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/file_list_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/forgot_password_schema.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/geo_json_point.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_response.py +139 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_stats.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/geofence_test_result.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/gpx_playback_out.py +128 -0
- spatialflow/_generated/spatialflow_generated/models/gpx_route_out.py +119 -0
- spatialflow/_generated/spatialflow_generated/models/health_check_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/health_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/import_integration_schema.py +100 -0
- spatialflow/_generated/spatialflow_generated/models/import_result_schema.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/integration_detail_schema.py +125 -0
- spatialflow/_generated/spatialflow_generated/models/integration_response_schema.py +123 -0
- spatialflow/_generated/spatialflow_generated/models/integration_stats_schema.py +116 -0
- spatialflow/_generated/spatialflow_generated/models/integration_type_list_response.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/integration_type_request.py +117 -0
- spatialflow/_generated/spatialflow_generated/models/integration_type_response.py +128 -0
- spatialflow/_generated/spatialflow_generated/models/invoice_line_item.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/invoice_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/invoice_response.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/location_batch_in.py +102 -0
- spatialflow/_generated/spatialflow_generated/models/location_import_response.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/location_ingest_response.py +117 -0
- spatialflow/_generated/spatialflow_generated/models/location_point_in.py +129 -0
- spatialflow/_generated/spatialflow_generated/models/location_update_in.py +132 -0
- spatialflow/_generated/spatialflow_generated/models/location_update_out.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/login_response.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/login_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/member_action_response.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/member_summary.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/method_enum.py +39 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_authorize_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_callback_query.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_link_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/o_auth_providers_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/onboarding_progress_response.py +112 -0
- spatialflow/_generated/spatialflow_generated/models/payment_method_response.py +116 -0
- spatialflow/_generated/spatialflow_generated/models/ping_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/plan_change_preview_response.py +104 -0
- spatialflow/_generated/spatialflow_generated/models/plan_features.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/plan_limits.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/plan_response.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/portal_session_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/portal_session_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/presigned_url_request.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/presigned_url_response.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/privacy_erasure_request.py +118 -0
- spatialflow/_generated/spatialflow_generated/models/privacy_erasure_response.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/rate_limit_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/recent_activity.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/refresh_token_schema.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/register_schema.py +133 -0
- spatialflow/_generated/spatialflow_generated/models/resend_verification_schema.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/reset_password_schema.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/retry_policy_response_schema.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/retry_policy_schema.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/retry_strategy_enum.py +38 -0
- spatialflow/_generated/spatialflow_generated/models/seed_data_response_schema.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/send_email_request.py +100 -0
- spatialflow/_generated/spatialflow_generated/models/setup_intent_response.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/signup_request.py +164 -0
- spatialflow/_generated/spatialflow_generated/models/start_playback_request.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/subscription_action_response.py +100 -0
- spatialflow/_generated/spatialflow_generated/models/subscription_response.py +113 -0
- spatialflow/_generated/spatialflow_generated/models/success_response.py +94 -0
- spatialflow/_generated/spatialflow_generated/models/template_out.py +104 -0
- spatialflow/_generated/spatialflow_generated/models/test_event_request.py +92 -0
- spatialflow/_generated/spatialflow_generated/models/test_integration_response_schema.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/test_point_request.py +125 -0
- spatialflow/_generated/spatialflow_generated/models/test_point_response.py +101 -0
- spatialflow/_generated/spatialflow_generated/models/test_webhook_request.py +106 -0
- spatialflow/_generated/spatialflow_generated/models/test_workflow_in.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/tile_metadata.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/unsubscribe_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/unsubscribe_response.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/update_geofence_request.py +142 -0
- spatialflow/_generated/spatialflow_generated/models/update_integration_schema.py +121 -0
- spatialflow/_generated/spatialflow_generated/models/update_member_role_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/update_onboarding_progress_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/update_profile_request.py +208 -0
- spatialflow/_generated/spatialflow_generated/models/update_user_workspace_request.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/update_webhook_request.py +186 -0
- spatialflow/_generated/spatialflow_generated/models/upload_geofences_request.py +95 -0
- spatialflow/_generated/spatialflow_generated/models/upload_job_status.py +137 -0
- spatialflow/_generated/spatialflow_generated/models/usage_metrics.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/usage_response.py +105 -0
- spatialflow/_generated/spatialflow_generated/models/usage_stats.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/user_action_response.py +119 -0
- spatialflow/_generated/spatialflow_generated/models/user_approval_request.py +92 -0
- spatialflow/_generated/spatialflow_generated/models/user_invite_request.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/user_invite_response.py +99 -0
- spatialflow/_generated/spatialflow_generated/models/user_list_response.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/user_profile_response.py +158 -0
- spatialflow/_generated/spatialflow_generated/models/user_rejection_request.py +87 -0
- spatialflow/_generated/spatialflow_generated/models/user_response.py +142 -0
- spatialflow/_generated/spatialflow_generated/models/user_summary.py +140 -0
- spatialflow/_generated/spatialflow_generated/models/user_usage_response.py +152 -0
- spatialflow/_generated/spatialflow_generated/models/user_workspace_response.py +110 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_delivery_detail_response.py +182 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_delivery_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_delivery_response.py +161 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_list_response.py +97 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_metrics_response.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_response.py +148 -0
- spatialflow/_generated/spatialflow_generated/models/webhook_test_response.py +114 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_import_schema.py +89 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_in.py +98 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_list_out.py +118 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_list_response.py +101 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_out.py +129 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_retry_policy_update_schema.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_step_retry_schema.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/workflow_update.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_delete_response.py +93 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_detail.py +116 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_detail_response.py +143 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_in.py +122 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_list_item.py +130 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_list_response.py +103 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_members_response.py +109 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_out.py +132 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_summary.py +91 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_update_request.py +120 -0
- spatialflow/_generated/spatialflow_generated/models/workspace_update_response.py +93 -0
- spatialflow/_generated/spatialflow_generated/py.typed +0 -0
- spatialflow/_generated/spatialflow_generated/rest.py +215 -0
- spatialflow/_generated/test-requirements.txt +6 -0
- spatialflow/_generated/tox.ini +9 -0
- spatialflow/client.py +137 -0
- spatialflow/exceptions.py +234 -0
- spatialflow/jobs.py +204 -0
- spatialflow/pagination.py +142 -0
- spatialflow/uploads.py +166 -0
- spatialflow/webhooks.py +126 -0
- spatialflow-0.1.0.dist-info/METADATA +249 -0
- spatialflow-0.1.0.dist-info/RECORD +404 -0
- spatialflow-0.1.0.dist-info/WHEEL +4 -0
|
@@ -0,0 +1,4753 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
SpatialFlow API
|
|
5
|
+
|
|
6
|
+
Real-time geospatial automation platform API. ## Authentication **API Key:** Include `X-API-Key` header **JWT Token:** Include `Authorization: Bearer <token>` header ## Rate Limits - Per API Key: 200 rps sustained, 1,000 rps burst - Per Organization: 1,000 rps aggregate ## Webhook Verification Outbound webhooks include HMAC-SHA256 signatures in `X-SF-Signature` header. ## Support - Documentation: https://docs.spatialflow.io - GitHub: https://github.com/spatialflow/spatialflow - Email: support@spatialflow.io
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0.0
|
|
9
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
10
|
+
|
|
11
|
+
Do not edit the class manually.
|
|
12
|
+
""" # noqa: E501
|
|
13
|
+
|
|
14
|
+
import warnings
|
|
15
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
16
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
17
|
+
from typing_extensions import Annotated
|
|
18
|
+
|
|
19
|
+
from pydantic import StrictStr
|
|
20
|
+
from typing import Any, Dict, Optional
|
|
21
|
+
from ..models.change_password_schema import ChangePasswordSchema
|
|
22
|
+
from ..models.confirm_password_reset_schema import ConfirmPasswordResetSchema
|
|
23
|
+
from ..models.forgot_password_schema import ForgotPasswordSchema
|
|
24
|
+
from ..models.login_response import LoginResponse
|
|
25
|
+
from ..models.login_schema import LoginSchema
|
|
26
|
+
from ..models.refresh_token_schema import RefreshTokenSchema
|
|
27
|
+
from ..models.register_schema import RegisterSchema
|
|
28
|
+
from ..models.resend_verification_schema import ResendVerificationSchema
|
|
29
|
+
from ..models.reset_password_schema import ResetPasswordSchema
|
|
30
|
+
from ..models.user_response import UserResponse
|
|
31
|
+
|
|
32
|
+
from ..api_client import ApiClient, RequestSerialized
|
|
33
|
+
from ..api_response import ApiResponse
|
|
34
|
+
from ..rest import RESTResponseType
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class AuthenticationApi:
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
def __init__(self, api_client=None) -> None:
|
|
45
|
+
if api_client is None:
|
|
46
|
+
api_client = ApiClient.get_default()
|
|
47
|
+
self.api_client = api_client
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@validate_call
|
|
51
|
+
async def apps_authentication_api_change_password(
|
|
52
|
+
self,
|
|
53
|
+
change_password_schema: ChangePasswordSchema,
|
|
54
|
+
_request_timeout: Union[
|
|
55
|
+
None,
|
|
56
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
57
|
+
Tuple[
|
|
58
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
59
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
60
|
+
]
|
|
61
|
+
] = None,
|
|
62
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
63
|
+
_content_type: Optional[StrictStr] = None,
|
|
64
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
65
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
66
|
+
) -> Dict[str, object]:
|
|
67
|
+
"""Change Password
|
|
68
|
+
|
|
69
|
+
Change password for authenticated user.
|
|
70
|
+
|
|
71
|
+
:param change_password_schema: (required)
|
|
72
|
+
:type change_password_schema: ChangePasswordSchema
|
|
73
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
74
|
+
number provided, it will be total request
|
|
75
|
+
timeout. It can also be a pair (tuple) of
|
|
76
|
+
(connection, read) timeouts.
|
|
77
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
78
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
79
|
+
request; this effectively ignores the
|
|
80
|
+
authentication in the spec for a single request.
|
|
81
|
+
:type _request_auth: dict, optional
|
|
82
|
+
:param _content_type: force content-type for the request.
|
|
83
|
+
:type _content_type: str, Optional
|
|
84
|
+
:param _headers: set to override the headers for a single
|
|
85
|
+
request; this effectively ignores the headers
|
|
86
|
+
in the spec for a single request.
|
|
87
|
+
:type _headers: dict, optional
|
|
88
|
+
:param _host_index: set to override the host_index for a single
|
|
89
|
+
request; this effectively ignores the host_index
|
|
90
|
+
in the spec for a single request.
|
|
91
|
+
:type _host_index: int, optional
|
|
92
|
+
:return: Returns the result object.
|
|
93
|
+
""" # noqa: E501
|
|
94
|
+
|
|
95
|
+
_param = self._apps_authentication_api_change_password_serialize(
|
|
96
|
+
change_password_schema=change_password_schema,
|
|
97
|
+
_request_auth=_request_auth,
|
|
98
|
+
_content_type=_content_type,
|
|
99
|
+
_headers=_headers,
|
|
100
|
+
_host_index=_host_index
|
|
101
|
+
)
|
|
102
|
+
|
|
103
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
104
|
+
'200': "Dict[str, object]",
|
|
105
|
+
'400': "Dict[str, object]",
|
|
106
|
+
}
|
|
107
|
+
response_data = await self.api_client.call_api(
|
|
108
|
+
*_param,
|
|
109
|
+
_request_timeout=_request_timeout
|
|
110
|
+
)
|
|
111
|
+
await response_data.read()
|
|
112
|
+
return self.api_client.response_deserialize(
|
|
113
|
+
response_data=response_data,
|
|
114
|
+
response_types_map=_response_types_map,
|
|
115
|
+
).data
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
@validate_call
|
|
119
|
+
async def apps_authentication_api_change_password_with_http_info(
|
|
120
|
+
self,
|
|
121
|
+
change_password_schema: ChangePasswordSchema,
|
|
122
|
+
_request_timeout: Union[
|
|
123
|
+
None,
|
|
124
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
125
|
+
Tuple[
|
|
126
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
127
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
128
|
+
]
|
|
129
|
+
] = None,
|
|
130
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
131
|
+
_content_type: Optional[StrictStr] = None,
|
|
132
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
133
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
134
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
135
|
+
"""Change Password
|
|
136
|
+
|
|
137
|
+
Change password for authenticated user.
|
|
138
|
+
|
|
139
|
+
:param change_password_schema: (required)
|
|
140
|
+
:type change_password_schema: ChangePasswordSchema
|
|
141
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
142
|
+
number provided, it will be total request
|
|
143
|
+
timeout. It can also be a pair (tuple) of
|
|
144
|
+
(connection, read) timeouts.
|
|
145
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
146
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
147
|
+
request; this effectively ignores the
|
|
148
|
+
authentication in the spec for a single request.
|
|
149
|
+
:type _request_auth: dict, optional
|
|
150
|
+
:param _content_type: force content-type for the request.
|
|
151
|
+
:type _content_type: str, Optional
|
|
152
|
+
:param _headers: set to override the headers for a single
|
|
153
|
+
request; this effectively ignores the headers
|
|
154
|
+
in the spec for a single request.
|
|
155
|
+
:type _headers: dict, optional
|
|
156
|
+
:param _host_index: set to override the host_index for a single
|
|
157
|
+
request; this effectively ignores the host_index
|
|
158
|
+
in the spec for a single request.
|
|
159
|
+
:type _host_index: int, optional
|
|
160
|
+
:return: Returns the result object.
|
|
161
|
+
""" # noqa: E501
|
|
162
|
+
|
|
163
|
+
_param = self._apps_authentication_api_change_password_serialize(
|
|
164
|
+
change_password_schema=change_password_schema,
|
|
165
|
+
_request_auth=_request_auth,
|
|
166
|
+
_content_type=_content_type,
|
|
167
|
+
_headers=_headers,
|
|
168
|
+
_host_index=_host_index
|
|
169
|
+
)
|
|
170
|
+
|
|
171
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
172
|
+
'200': "Dict[str, object]",
|
|
173
|
+
'400': "Dict[str, object]",
|
|
174
|
+
}
|
|
175
|
+
response_data = await self.api_client.call_api(
|
|
176
|
+
*_param,
|
|
177
|
+
_request_timeout=_request_timeout
|
|
178
|
+
)
|
|
179
|
+
await response_data.read()
|
|
180
|
+
return self.api_client.response_deserialize(
|
|
181
|
+
response_data=response_data,
|
|
182
|
+
response_types_map=_response_types_map,
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
@validate_call
|
|
187
|
+
async def apps_authentication_api_change_password_without_preload_content(
|
|
188
|
+
self,
|
|
189
|
+
change_password_schema: ChangePasswordSchema,
|
|
190
|
+
_request_timeout: Union[
|
|
191
|
+
None,
|
|
192
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
193
|
+
Tuple[
|
|
194
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
195
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
196
|
+
]
|
|
197
|
+
] = None,
|
|
198
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
199
|
+
_content_type: Optional[StrictStr] = None,
|
|
200
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
201
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
202
|
+
) -> RESTResponseType:
|
|
203
|
+
"""Change Password
|
|
204
|
+
|
|
205
|
+
Change password for authenticated user.
|
|
206
|
+
|
|
207
|
+
:param change_password_schema: (required)
|
|
208
|
+
:type change_password_schema: ChangePasswordSchema
|
|
209
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
210
|
+
number provided, it will be total request
|
|
211
|
+
timeout. It can also be a pair (tuple) of
|
|
212
|
+
(connection, read) timeouts.
|
|
213
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
214
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
215
|
+
request; this effectively ignores the
|
|
216
|
+
authentication in the spec for a single request.
|
|
217
|
+
:type _request_auth: dict, optional
|
|
218
|
+
:param _content_type: force content-type for the request.
|
|
219
|
+
:type _content_type: str, Optional
|
|
220
|
+
:param _headers: set to override the headers for a single
|
|
221
|
+
request; this effectively ignores the headers
|
|
222
|
+
in the spec for a single request.
|
|
223
|
+
:type _headers: dict, optional
|
|
224
|
+
:param _host_index: set to override the host_index for a single
|
|
225
|
+
request; this effectively ignores the host_index
|
|
226
|
+
in the spec for a single request.
|
|
227
|
+
:type _host_index: int, optional
|
|
228
|
+
:return: Returns the result object.
|
|
229
|
+
""" # noqa: E501
|
|
230
|
+
|
|
231
|
+
_param = self._apps_authentication_api_change_password_serialize(
|
|
232
|
+
change_password_schema=change_password_schema,
|
|
233
|
+
_request_auth=_request_auth,
|
|
234
|
+
_content_type=_content_type,
|
|
235
|
+
_headers=_headers,
|
|
236
|
+
_host_index=_host_index
|
|
237
|
+
)
|
|
238
|
+
|
|
239
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
240
|
+
'200': "Dict[str, object]",
|
|
241
|
+
'400': "Dict[str, object]",
|
|
242
|
+
}
|
|
243
|
+
response_data = await self.api_client.call_api(
|
|
244
|
+
*_param,
|
|
245
|
+
_request_timeout=_request_timeout
|
|
246
|
+
)
|
|
247
|
+
return response_data.response
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
def _apps_authentication_api_change_password_serialize(
|
|
251
|
+
self,
|
|
252
|
+
change_password_schema,
|
|
253
|
+
_request_auth,
|
|
254
|
+
_content_type,
|
|
255
|
+
_headers,
|
|
256
|
+
_host_index,
|
|
257
|
+
) -> RequestSerialized:
|
|
258
|
+
|
|
259
|
+
_host = None
|
|
260
|
+
|
|
261
|
+
_collection_formats: Dict[str, str] = {
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
_path_params: Dict[str, str] = {}
|
|
265
|
+
_query_params: List[Tuple[str, str]] = []
|
|
266
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
267
|
+
_form_params: List[Tuple[str, str]] = []
|
|
268
|
+
_files: Dict[
|
|
269
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
270
|
+
] = {}
|
|
271
|
+
_body_params: Optional[bytes] = None
|
|
272
|
+
|
|
273
|
+
# process the path parameters
|
|
274
|
+
# process the query parameters
|
|
275
|
+
# process the header parameters
|
|
276
|
+
# process the form parameters
|
|
277
|
+
# process the body parameter
|
|
278
|
+
if change_password_schema is not None:
|
|
279
|
+
_body_params = change_password_schema
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
# set the HTTP header `Accept`
|
|
283
|
+
if 'Accept' not in _header_params:
|
|
284
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
285
|
+
[
|
|
286
|
+
'application/json'
|
|
287
|
+
]
|
|
288
|
+
)
|
|
289
|
+
|
|
290
|
+
# set the HTTP header `Content-Type`
|
|
291
|
+
if _content_type:
|
|
292
|
+
_header_params['Content-Type'] = _content_type
|
|
293
|
+
else:
|
|
294
|
+
_default_content_type = (
|
|
295
|
+
self.api_client.select_header_content_type(
|
|
296
|
+
[
|
|
297
|
+
'application/json'
|
|
298
|
+
]
|
|
299
|
+
)
|
|
300
|
+
)
|
|
301
|
+
if _default_content_type is not None:
|
|
302
|
+
_header_params['Content-Type'] = _default_content_type
|
|
303
|
+
|
|
304
|
+
# authentication setting
|
|
305
|
+
_auth_settings: List[str] = [
|
|
306
|
+
'JWTBearer'
|
|
307
|
+
]
|
|
308
|
+
|
|
309
|
+
return self.api_client.param_serialize(
|
|
310
|
+
method='POST',
|
|
311
|
+
resource_path='/api/v1/auth/change-password',
|
|
312
|
+
path_params=_path_params,
|
|
313
|
+
query_params=_query_params,
|
|
314
|
+
header_params=_header_params,
|
|
315
|
+
body=_body_params,
|
|
316
|
+
post_params=_form_params,
|
|
317
|
+
files=_files,
|
|
318
|
+
auth_settings=_auth_settings,
|
|
319
|
+
collection_formats=_collection_formats,
|
|
320
|
+
_host=_host,
|
|
321
|
+
_request_auth=_request_auth
|
|
322
|
+
)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
@validate_call
|
|
328
|
+
async def apps_authentication_api_confirm_password_reset(
|
|
329
|
+
self,
|
|
330
|
+
confirm_password_reset_schema: ConfirmPasswordResetSchema,
|
|
331
|
+
_request_timeout: Union[
|
|
332
|
+
None,
|
|
333
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
334
|
+
Tuple[
|
|
335
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
336
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
337
|
+
]
|
|
338
|
+
] = None,
|
|
339
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
340
|
+
_content_type: Optional[StrictStr] = None,
|
|
341
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
342
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
343
|
+
) -> Dict[str, object]:
|
|
344
|
+
"""Confirm Password Reset
|
|
345
|
+
|
|
346
|
+
Confirm password reset with token (simpler API for backwards compatibility). This endpoint uses the token stored directly in the user model (password_reset_token) rather than Django's default_token_generator with UID encoding. Security: Tokens are stored as SHA256 hashes, so we hash the incoming token before comparison. This prevents database compromise from exposing usable tokens.
|
|
347
|
+
|
|
348
|
+
:param confirm_password_reset_schema: (required)
|
|
349
|
+
:type confirm_password_reset_schema: ConfirmPasswordResetSchema
|
|
350
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
351
|
+
number provided, it will be total request
|
|
352
|
+
timeout. It can also be a pair (tuple) of
|
|
353
|
+
(connection, read) timeouts.
|
|
354
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
355
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
356
|
+
request; this effectively ignores the
|
|
357
|
+
authentication in the spec for a single request.
|
|
358
|
+
:type _request_auth: dict, optional
|
|
359
|
+
:param _content_type: force content-type for the request.
|
|
360
|
+
:type _content_type: str, Optional
|
|
361
|
+
:param _headers: set to override the headers for a single
|
|
362
|
+
request; this effectively ignores the headers
|
|
363
|
+
in the spec for a single request.
|
|
364
|
+
:type _headers: dict, optional
|
|
365
|
+
:param _host_index: set to override the host_index for a single
|
|
366
|
+
request; this effectively ignores the host_index
|
|
367
|
+
in the spec for a single request.
|
|
368
|
+
:type _host_index: int, optional
|
|
369
|
+
:return: Returns the result object.
|
|
370
|
+
""" # noqa: E501
|
|
371
|
+
|
|
372
|
+
_param = self._apps_authentication_api_confirm_password_reset_serialize(
|
|
373
|
+
confirm_password_reset_schema=confirm_password_reset_schema,
|
|
374
|
+
_request_auth=_request_auth,
|
|
375
|
+
_content_type=_content_type,
|
|
376
|
+
_headers=_headers,
|
|
377
|
+
_host_index=_host_index
|
|
378
|
+
)
|
|
379
|
+
|
|
380
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
381
|
+
'200': "Dict[str, object]",
|
|
382
|
+
'400': "Dict[str, object]",
|
|
383
|
+
}
|
|
384
|
+
response_data = await self.api_client.call_api(
|
|
385
|
+
*_param,
|
|
386
|
+
_request_timeout=_request_timeout
|
|
387
|
+
)
|
|
388
|
+
await response_data.read()
|
|
389
|
+
return self.api_client.response_deserialize(
|
|
390
|
+
response_data=response_data,
|
|
391
|
+
response_types_map=_response_types_map,
|
|
392
|
+
).data
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
@validate_call
|
|
396
|
+
async def apps_authentication_api_confirm_password_reset_with_http_info(
|
|
397
|
+
self,
|
|
398
|
+
confirm_password_reset_schema: ConfirmPasswordResetSchema,
|
|
399
|
+
_request_timeout: Union[
|
|
400
|
+
None,
|
|
401
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
402
|
+
Tuple[
|
|
403
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
404
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
405
|
+
]
|
|
406
|
+
] = None,
|
|
407
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
408
|
+
_content_type: Optional[StrictStr] = None,
|
|
409
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
410
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
411
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
412
|
+
"""Confirm Password Reset
|
|
413
|
+
|
|
414
|
+
Confirm password reset with token (simpler API for backwards compatibility). This endpoint uses the token stored directly in the user model (password_reset_token) rather than Django's default_token_generator with UID encoding. Security: Tokens are stored as SHA256 hashes, so we hash the incoming token before comparison. This prevents database compromise from exposing usable tokens.
|
|
415
|
+
|
|
416
|
+
:param confirm_password_reset_schema: (required)
|
|
417
|
+
:type confirm_password_reset_schema: ConfirmPasswordResetSchema
|
|
418
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
419
|
+
number provided, it will be total request
|
|
420
|
+
timeout. It can also be a pair (tuple) of
|
|
421
|
+
(connection, read) timeouts.
|
|
422
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
423
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
424
|
+
request; this effectively ignores the
|
|
425
|
+
authentication in the spec for a single request.
|
|
426
|
+
:type _request_auth: dict, optional
|
|
427
|
+
:param _content_type: force content-type for the request.
|
|
428
|
+
:type _content_type: str, Optional
|
|
429
|
+
:param _headers: set to override the headers for a single
|
|
430
|
+
request; this effectively ignores the headers
|
|
431
|
+
in the spec for a single request.
|
|
432
|
+
:type _headers: dict, optional
|
|
433
|
+
:param _host_index: set to override the host_index for a single
|
|
434
|
+
request; this effectively ignores the host_index
|
|
435
|
+
in the spec for a single request.
|
|
436
|
+
:type _host_index: int, optional
|
|
437
|
+
:return: Returns the result object.
|
|
438
|
+
""" # noqa: E501
|
|
439
|
+
|
|
440
|
+
_param = self._apps_authentication_api_confirm_password_reset_serialize(
|
|
441
|
+
confirm_password_reset_schema=confirm_password_reset_schema,
|
|
442
|
+
_request_auth=_request_auth,
|
|
443
|
+
_content_type=_content_type,
|
|
444
|
+
_headers=_headers,
|
|
445
|
+
_host_index=_host_index
|
|
446
|
+
)
|
|
447
|
+
|
|
448
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
449
|
+
'200': "Dict[str, object]",
|
|
450
|
+
'400': "Dict[str, object]",
|
|
451
|
+
}
|
|
452
|
+
response_data = await self.api_client.call_api(
|
|
453
|
+
*_param,
|
|
454
|
+
_request_timeout=_request_timeout
|
|
455
|
+
)
|
|
456
|
+
await response_data.read()
|
|
457
|
+
return self.api_client.response_deserialize(
|
|
458
|
+
response_data=response_data,
|
|
459
|
+
response_types_map=_response_types_map,
|
|
460
|
+
)
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
@validate_call
|
|
464
|
+
async def apps_authentication_api_confirm_password_reset_without_preload_content(
|
|
465
|
+
self,
|
|
466
|
+
confirm_password_reset_schema: ConfirmPasswordResetSchema,
|
|
467
|
+
_request_timeout: Union[
|
|
468
|
+
None,
|
|
469
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
470
|
+
Tuple[
|
|
471
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
472
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
473
|
+
]
|
|
474
|
+
] = None,
|
|
475
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
476
|
+
_content_type: Optional[StrictStr] = None,
|
|
477
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
478
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
479
|
+
) -> RESTResponseType:
|
|
480
|
+
"""Confirm Password Reset
|
|
481
|
+
|
|
482
|
+
Confirm password reset with token (simpler API for backwards compatibility). This endpoint uses the token stored directly in the user model (password_reset_token) rather than Django's default_token_generator with UID encoding. Security: Tokens are stored as SHA256 hashes, so we hash the incoming token before comparison. This prevents database compromise from exposing usable tokens.
|
|
483
|
+
|
|
484
|
+
:param confirm_password_reset_schema: (required)
|
|
485
|
+
:type confirm_password_reset_schema: ConfirmPasswordResetSchema
|
|
486
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
487
|
+
number provided, it will be total request
|
|
488
|
+
timeout. It can also be a pair (tuple) of
|
|
489
|
+
(connection, read) timeouts.
|
|
490
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
491
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
492
|
+
request; this effectively ignores the
|
|
493
|
+
authentication in the spec for a single request.
|
|
494
|
+
:type _request_auth: dict, optional
|
|
495
|
+
:param _content_type: force content-type for the request.
|
|
496
|
+
:type _content_type: str, Optional
|
|
497
|
+
:param _headers: set to override the headers for a single
|
|
498
|
+
request; this effectively ignores the headers
|
|
499
|
+
in the spec for a single request.
|
|
500
|
+
:type _headers: dict, optional
|
|
501
|
+
:param _host_index: set to override the host_index for a single
|
|
502
|
+
request; this effectively ignores the host_index
|
|
503
|
+
in the spec for a single request.
|
|
504
|
+
:type _host_index: int, optional
|
|
505
|
+
:return: Returns the result object.
|
|
506
|
+
""" # noqa: E501
|
|
507
|
+
|
|
508
|
+
_param = self._apps_authentication_api_confirm_password_reset_serialize(
|
|
509
|
+
confirm_password_reset_schema=confirm_password_reset_schema,
|
|
510
|
+
_request_auth=_request_auth,
|
|
511
|
+
_content_type=_content_type,
|
|
512
|
+
_headers=_headers,
|
|
513
|
+
_host_index=_host_index
|
|
514
|
+
)
|
|
515
|
+
|
|
516
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
517
|
+
'200': "Dict[str, object]",
|
|
518
|
+
'400': "Dict[str, object]",
|
|
519
|
+
}
|
|
520
|
+
response_data = await self.api_client.call_api(
|
|
521
|
+
*_param,
|
|
522
|
+
_request_timeout=_request_timeout
|
|
523
|
+
)
|
|
524
|
+
return response_data.response
|
|
525
|
+
|
|
526
|
+
|
|
527
|
+
def _apps_authentication_api_confirm_password_reset_serialize(
|
|
528
|
+
self,
|
|
529
|
+
confirm_password_reset_schema,
|
|
530
|
+
_request_auth,
|
|
531
|
+
_content_type,
|
|
532
|
+
_headers,
|
|
533
|
+
_host_index,
|
|
534
|
+
) -> RequestSerialized:
|
|
535
|
+
|
|
536
|
+
_host = None
|
|
537
|
+
|
|
538
|
+
_collection_formats: Dict[str, str] = {
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
_path_params: Dict[str, str] = {}
|
|
542
|
+
_query_params: List[Tuple[str, str]] = []
|
|
543
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
544
|
+
_form_params: List[Tuple[str, str]] = []
|
|
545
|
+
_files: Dict[
|
|
546
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
547
|
+
] = {}
|
|
548
|
+
_body_params: Optional[bytes] = None
|
|
549
|
+
|
|
550
|
+
# process the path parameters
|
|
551
|
+
# process the query parameters
|
|
552
|
+
# process the header parameters
|
|
553
|
+
# process the form parameters
|
|
554
|
+
# process the body parameter
|
|
555
|
+
if confirm_password_reset_schema is not None:
|
|
556
|
+
_body_params = confirm_password_reset_schema
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
# set the HTTP header `Accept`
|
|
560
|
+
if 'Accept' not in _header_params:
|
|
561
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
562
|
+
[
|
|
563
|
+
'application/json'
|
|
564
|
+
]
|
|
565
|
+
)
|
|
566
|
+
|
|
567
|
+
# set the HTTP header `Content-Type`
|
|
568
|
+
if _content_type:
|
|
569
|
+
_header_params['Content-Type'] = _content_type
|
|
570
|
+
else:
|
|
571
|
+
_default_content_type = (
|
|
572
|
+
self.api_client.select_header_content_type(
|
|
573
|
+
[
|
|
574
|
+
'application/json'
|
|
575
|
+
]
|
|
576
|
+
)
|
|
577
|
+
)
|
|
578
|
+
if _default_content_type is not None:
|
|
579
|
+
_header_params['Content-Type'] = _default_content_type
|
|
580
|
+
|
|
581
|
+
# authentication setting
|
|
582
|
+
_auth_settings: List[str] = [
|
|
583
|
+
]
|
|
584
|
+
|
|
585
|
+
return self.api_client.param_serialize(
|
|
586
|
+
method='POST',
|
|
587
|
+
resource_path='/api/v1/auth/password-reset/confirm',
|
|
588
|
+
path_params=_path_params,
|
|
589
|
+
query_params=_query_params,
|
|
590
|
+
header_params=_header_params,
|
|
591
|
+
body=_body_params,
|
|
592
|
+
post_params=_form_params,
|
|
593
|
+
files=_files,
|
|
594
|
+
auth_settings=_auth_settings,
|
|
595
|
+
collection_formats=_collection_formats,
|
|
596
|
+
_host=_host,
|
|
597
|
+
_request_auth=_request_auth
|
|
598
|
+
)
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
@validate_call
|
|
604
|
+
async def apps_authentication_api_forgot_password(
|
|
605
|
+
self,
|
|
606
|
+
forgot_password_schema: ForgotPasswordSchema,
|
|
607
|
+
_request_timeout: Union[
|
|
608
|
+
None,
|
|
609
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
610
|
+
Tuple[
|
|
611
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
612
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
613
|
+
]
|
|
614
|
+
] = None,
|
|
615
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
616
|
+
_content_type: Optional[StrictStr] = None,
|
|
617
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
618
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
619
|
+
) -> Dict[str, object]:
|
|
620
|
+
"""Forgot Password
|
|
621
|
+
|
|
622
|
+
Request password reset email.
|
|
623
|
+
|
|
624
|
+
:param forgot_password_schema: (required)
|
|
625
|
+
:type forgot_password_schema: ForgotPasswordSchema
|
|
626
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
627
|
+
number provided, it will be total request
|
|
628
|
+
timeout. It can also be a pair (tuple) of
|
|
629
|
+
(connection, read) timeouts.
|
|
630
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
631
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
632
|
+
request; this effectively ignores the
|
|
633
|
+
authentication in the spec for a single request.
|
|
634
|
+
:type _request_auth: dict, optional
|
|
635
|
+
:param _content_type: force content-type for the request.
|
|
636
|
+
:type _content_type: str, Optional
|
|
637
|
+
:param _headers: set to override the headers for a single
|
|
638
|
+
request; this effectively ignores the headers
|
|
639
|
+
in the spec for a single request.
|
|
640
|
+
:type _headers: dict, optional
|
|
641
|
+
:param _host_index: set to override the host_index for a single
|
|
642
|
+
request; this effectively ignores the host_index
|
|
643
|
+
in the spec for a single request.
|
|
644
|
+
:type _host_index: int, optional
|
|
645
|
+
:return: Returns the result object.
|
|
646
|
+
""" # noqa: E501
|
|
647
|
+
|
|
648
|
+
_param = self._apps_authentication_api_forgot_password_serialize(
|
|
649
|
+
forgot_password_schema=forgot_password_schema,
|
|
650
|
+
_request_auth=_request_auth,
|
|
651
|
+
_content_type=_content_type,
|
|
652
|
+
_headers=_headers,
|
|
653
|
+
_host_index=_host_index
|
|
654
|
+
)
|
|
655
|
+
|
|
656
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
657
|
+
'200': "Dict[str, object]",
|
|
658
|
+
'400': "Dict[str, object]",
|
|
659
|
+
}
|
|
660
|
+
response_data = await self.api_client.call_api(
|
|
661
|
+
*_param,
|
|
662
|
+
_request_timeout=_request_timeout
|
|
663
|
+
)
|
|
664
|
+
await response_data.read()
|
|
665
|
+
return self.api_client.response_deserialize(
|
|
666
|
+
response_data=response_data,
|
|
667
|
+
response_types_map=_response_types_map,
|
|
668
|
+
).data
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
@validate_call
|
|
672
|
+
async def apps_authentication_api_forgot_password_with_http_info(
|
|
673
|
+
self,
|
|
674
|
+
forgot_password_schema: ForgotPasswordSchema,
|
|
675
|
+
_request_timeout: Union[
|
|
676
|
+
None,
|
|
677
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
678
|
+
Tuple[
|
|
679
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
680
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
681
|
+
]
|
|
682
|
+
] = None,
|
|
683
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
684
|
+
_content_type: Optional[StrictStr] = None,
|
|
685
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
686
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
687
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
688
|
+
"""Forgot Password
|
|
689
|
+
|
|
690
|
+
Request password reset email.
|
|
691
|
+
|
|
692
|
+
:param forgot_password_schema: (required)
|
|
693
|
+
:type forgot_password_schema: ForgotPasswordSchema
|
|
694
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
695
|
+
number provided, it will be total request
|
|
696
|
+
timeout. It can also be a pair (tuple) of
|
|
697
|
+
(connection, read) timeouts.
|
|
698
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
699
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
700
|
+
request; this effectively ignores the
|
|
701
|
+
authentication in the spec for a single request.
|
|
702
|
+
:type _request_auth: dict, optional
|
|
703
|
+
:param _content_type: force content-type for the request.
|
|
704
|
+
:type _content_type: str, Optional
|
|
705
|
+
:param _headers: set to override the headers for a single
|
|
706
|
+
request; this effectively ignores the headers
|
|
707
|
+
in the spec for a single request.
|
|
708
|
+
:type _headers: dict, optional
|
|
709
|
+
:param _host_index: set to override the host_index for a single
|
|
710
|
+
request; this effectively ignores the host_index
|
|
711
|
+
in the spec for a single request.
|
|
712
|
+
:type _host_index: int, optional
|
|
713
|
+
:return: Returns the result object.
|
|
714
|
+
""" # noqa: E501
|
|
715
|
+
|
|
716
|
+
_param = self._apps_authentication_api_forgot_password_serialize(
|
|
717
|
+
forgot_password_schema=forgot_password_schema,
|
|
718
|
+
_request_auth=_request_auth,
|
|
719
|
+
_content_type=_content_type,
|
|
720
|
+
_headers=_headers,
|
|
721
|
+
_host_index=_host_index
|
|
722
|
+
)
|
|
723
|
+
|
|
724
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
725
|
+
'200': "Dict[str, object]",
|
|
726
|
+
'400': "Dict[str, object]",
|
|
727
|
+
}
|
|
728
|
+
response_data = await self.api_client.call_api(
|
|
729
|
+
*_param,
|
|
730
|
+
_request_timeout=_request_timeout
|
|
731
|
+
)
|
|
732
|
+
await response_data.read()
|
|
733
|
+
return self.api_client.response_deserialize(
|
|
734
|
+
response_data=response_data,
|
|
735
|
+
response_types_map=_response_types_map,
|
|
736
|
+
)
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
@validate_call
|
|
740
|
+
async def apps_authentication_api_forgot_password_without_preload_content(
|
|
741
|
+
self,
|
|
742
|
+
forgot_password_schema: ForgotPasswordSchema,
|
|
743
|
+
_request_timeout: Union[
|
|
744
|
+
None,
|
|
745
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
746
|
+
Tuple[
|
|
747
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
748
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
749
|
+
]
|
|
750
|
+
] = None,
|
|
751
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
752
|
+
_content_type: Optional[StrictStr] = None,
|
|
753
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
754
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
755
|
+
) -> RESTResponseType:
|
|
756
|
+
"""Forgot Password
|
|
757
|
+
|
|
758
|
+
Request password reset email.
|
|
759
|
+
|
|
760
|
+
:param forgot_password_schema: (required)
|
|
761
|
+
:type forgot_password_schema: ForgotPasswordSchema
|
|
762
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
763
|
+
number provided, it will be total request
|
|
764
|
+
timeout. It can also be a pair (tuple) of
|
|
765
|
+
(connection, read) timeouts.
|
|
766
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
767
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
768
|
+
request; this effectively ignores the
|
|
769
|
+
authentication in the spec for a single request.
|
|
770
|
+
:type _request_auth: dict, optional
|
|
771
|
+
:param _content_type: force content-type for the request.
|
|
772
|
+
:type _content_type: str, Optional
|
|
773
|
+
:param _headers: set to override the headers for a single
|
|
774
|
+
request; this effectively ignores the headers
|
|
775
|
+
in the spec for a single request.
|
|
776
|
+
:type _headers: dict, optional
|
|
777
|
+
:param _host_index: set to override the host_index for a single
|
|
778
|
+
request; this effectively ignores the host_index
|
|
779
|
+
in the spec for a single request.
|
|
780
|
+
:type _host_index: int, optional
|
|
781
|
+
:return: Returns the result object.
|
|
782
|
+
""" # noqa: E501
|
|
783
|
+
|
|
784
|
+
_param = self._apps_authentication_api_forgot_password_serialize(
|
|
785
|
+
forgot_password_schema=forgot_password_schema,
|
|
786
|
+
_request_auth=_request_auth,
|
|
787
|
+
_content_type=_content_type,
|
|
788
|
+
_headers=_headers,
|
|
789
|
+
_host_index=_host_index
|
|
790
|
+
)
|
|
791
|
+
|
|
792
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
793
|
+
'200': "Dict[str, object]",
|
|
794
|
+
'400': "Dict[str, object]",
|
|
795
|
+
}
|
|
796
|
+
response_data = await self.api_client.call_api(
|
|
797
|
+
*_param,
|
|
798
|
+
_request_timeout=_request_timeout
|
|
799
|
+
)
|
|
800
|
+
return response_data.response
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
def _apps_authentication_api_forgot_password_serialize(
|
|
804
|
+
self,
|
|
805
|
+
forgot_password_schema,
|
|
806
|
+
_request_auth,
|
|
807
|
+
_content_type,
|
|
808
|
+
_headers,
|
|
809
|
+
_host_index,
|
|
810
|
+
) -> RequestSerialized:
|
|
811
|
+
|
|
812
|
+
_host = None
|
|
813
|
+
|
|
814
|
+
_collection_formats: Dict[str, str] = {
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
_path_params: Dict[str, str] = {}
|
|
818
|
+
_query_params: List[Tuple[str, str]] = []
|
|
819
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
820
|
+
_form_params: List[Tuple[str, str]] = []
|
|
821
|
+
_files: Dict[
|
|
822
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
823
|
+
] = {}
|
|
824
|
+
_body_params: Optional[bytes] = None
|
|
825
|
+
|
|
826
|
+
# process the path parameters
|
|
827
|
+
# process the query parameters
|
|
828
|
+
# process the header parameters
|
|
829
|
+
# process the form parameters
|
|
830
|
+
# process the body parameter
|
|
831
|
+
if forgot_password_schema is not None:
|
|
832
|
+
_body_params = forgot_password_schema
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
# set the HTTP header `Accept`
|
|
836
|
+
if 'Accept' not in _header_params:
|
|
837
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
838
|
+
[
|
|
839
|
+
'application/json'
|
|
840
|
+
]
|
|
841
|
+
)
|
|
842
|
+
|
|
843
|
+
# set the HTTP header `Content-Type`
|
|
844
|
+
if _content_type:
|
|
845
|
+
_header_params['Content-Type'] = _content_type
|
|
846
|
+
else:
|
|
847
|
+
_default_content_type = (
|
|
848
|
+
self.api_client.select_header_content_type(
|
|
849
|
+
[
|
|
850
|
+
'application/json'
|
|
851
|
+
]
|
|
852
|
+
)
|
|
853
|
+
)
|
|
854
|
+
if _default_content_type is not None:
|
|
855
|
+
_header_params['Content-Type'] = _default_content_type
|
|
856
|
+
|
|
857
|
+
# authentication setting
|
|
858
|
+
_auth_settings: List[str] = [
|
|
859
|
+
]
|
|
860
|
+
|
|
861
|
+
return self.api_client.param_serialize(
|
|
862
|
+
method='POST',
|
|
863
|
+
resource_path='/api/v1/auth/forgot-password',
|
|
864
|
+
path_params=_path_params,
|
|
865
|
+
query_params=_query_params,
|
|
866
|
+
header_params=_header_params,
|
|
867
|
+
body=_body_params,
|
|
868
|
+
post_params=_form_params,
|
|
869
|
+
files=_files,
|
|
870
|
+
auth_settings=_auth_settings,
|
|
871
|
+
collection_formats=_collection_formats,
|
|
872
|
+
_host=_host,
|
|
873
|
+
_request_auth=_request_auth
|
|
874
|
+
)
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
|
|
879
|
+
@validate_call
|
|
880
|
+
async def apps_authentication_api_get_current_user(
|
|
881
|
+
self,
|
|
882
|
+
_request_timeout: Union[
|
|
883
|
+
None,
|
|
884
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
885
|
+
Tuple[
|
|
886
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
887
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
888
|
+
]
|
|
889
|
+
] = None,
|
|
890
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
891
|
+
_content_type: Optional[StrictStr] = None,
|
|
892
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
893
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
894
|
+
) -> UserResponse:
|
|
895
|
+
"""Get Current User
|
|
896
|
+
|
|
897
|
+
Get current authenticated user. Requires JWT authentication.
|
|
898
|
+
|
|
899
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
900
|
+
number provided, it will be total request
|
|
901
|
+
timeout. It can also be a pair (tuple) of
|
|
902
|
+
(connection, read) timeouts.
|
|
903
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
904
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
905
|
+
request; this effectively ignores the
|
|
906
|
+
authentication in the spec for a single request.
|
|
907
|
+
:type _request_auth: dict, optional
|
|
908
|
+
:param _content_type: force content-type for the request.
|
|
909
|
+
:type _content_type: str, Optional
|
|
910
|
+
:param _headers: set to override the headers for a single
|
|
911
|
+
request; this effectively ignores the headers
|
|
912
|
+
in the spec for a single request.
|
|
913
|
+
:type _headers: dict, optional
|
|
914
|
+
:param _host_index: set to override the host_index for a single
|
|
915
|
+
request; this effectively ignores the host_index
|
|
916
|
+
in the spec for a single request.
|
|
917
|
+
:type _host_index: int, optional
|
|
918
|
+
:return: Returns the result object.
|
|
919
|
+
""" # noqa: E501
|
|
920
|
+
|
|
921
|
+
_param = self._apps_authentication_api_get_current_user_serialize(
|
|
922
|
+
_request_auth=_request_auth,
|
|
923
|
+
_content_type=_content_type,
|
|
924
|
+
_headers=_headers,
|
|
925
|
+
_host_index=_host_index
|
|
926
|
+
)
|
|
927
|
+
|
|
928
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
929
|
+
'200': "UserResponse",
|
|
930
|
+
}
|
|
931
|
+
response_data = await self.api_client.call_api(
|
|
932
|
+
*_param,
|
|
933
|
+
_request_timeout=_request_timeout
|
|
934
|
+
)
|
|
935
|
+
await response_data.read()
|
|
936
|
+
return self.api_client.response_deserialize(
|
|
937
|
+
response_data=response_data,
|
|
938
|
+
response_types_map=_response_types_map,
|
|
939
|
+
).data
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
@validate_call
|
|
943
|
+
async def apps_authentication_api_get_current_user_with_http_info(
|
|
944
|
+
self,
|
|
945
|
+
_request_timeout: Union[
|
|
946
|
+
None,
|
|
947
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
948
|
+
Tuple[
|
|
949
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
950
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
951
|
+
]
|
|
952
|
+
] = None,
|
|
953
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
954
|
+
_content_type: Optional[StrictStr] = None,
|
|
955
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
956
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
957
|
+
) -> ApiResponse[UserResponse]:
|
|
958
|
+
"""Get Current User
|
|
959
|
+
|
|
960
|
+
Get current authenticated user. Requires JWT authentication.
|
|
961
|
+
|
|
962
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
963
|
+
number provided, it will be total request
|
|
964
|
+
timeout. It can also be a pair (tuple) of
|
|
965
|
+
(connection, read) timeouts.
|
|
966
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
967
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
968
|
+
request; this effectively ignores the
|
|
969
|
+
authentication in the spec for a single request.
|
|
970
|
+
:type _request_auth: dict, optional
|
|
971
|
+
:param _content_type: force content-type for the request.
|
|
972
|
+
:type _content_type: str, Optional
|
|
973
|
+
:param _headers: set to override the headers for a single
|
|
974
|
+
request; this effectively ignores the headers
|
|
975
|
+
in the spec for a single request.
|
|
976
|
+
:type _headers: dict, optional
|
|
977
|
+
:param _host_index: set to override the host_index for a single
|
|
978
|
+
request; this effectively ignores the host_index
|
|
979
|
+
in the spec for a single request.
|
|
980
|
+
:type _host_index: int, optional
|
|
981
|
+
:return: Returns the result object.
|
|
982
|
+
""" # noqa: E501
|
|
983
|
+
|
|
984
|
+
_param = self._apps_authentication_api_get_current_user_serialize(
|
|
985
|
+
_request_auth=_request_auth,
|
|
986
|
+
_content_type=_content_type,
|
|
987
|
+
_headers=_headers,
|
|
988
|
+
_host_index=_host_index
|
|
989
|
+
)
|
|
990
|
+
|
|
991
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
992
|
+
'200': "UserResponse",
|
|
993
|
+
}
|
|
994
|
+
response_data = await self.api_client.call_api(
|
|
995
|
+
*_param,
|
|
996
|
+
_request_timeout=_request_timeout
|
|
997
|
+
)
|
|
998
|
+
await response_data.read()
|
|
999
|
+
return self.api_client.response_deserialize(
|
|
1000
|
+
response_data=response_data,
|
|
1001
|
+
response_types_map=_response_types_map,
|
|
1002
|
+
)
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
@validate_call
|
|
1006
|
+
async def apps_authentication_api_get_current_user_without_preload_content(
|
|
1007
|
+
self,
|
|
1008
|
+
_request_timeout: Union[
|
|
1009
|
+
None,
|
|
1010
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1011
|
+
Tuple[
|
|
1012
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1013
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1014
|
+
]
|
|
1015
|
+
] = None,
|
|
1016
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1017
|
+
_content_type: Optional[StrictStr] = None,
|
|
1018
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1019
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1020
|
+
) -> RESTResponseType:
|
|
1021
|
+
"""Get Current User
|
|
1022
|
+
|
|
1023
|
+
Get current authenticated user. Requires JWT authentication.
|
|
1024
|
+
|
|
1025
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1026
|
+
number provided, it will be total request
|
|
1027
|
+
timeout. It can also be a pair (tuple) of
|
|
1028
|
+
(connection, read) timeouts.
|
|
1029
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1030
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1031
|
+
request; this effectively ignores the
|
|
1032
|
+
authentication in the spec for a single request.
|
|
1033
|
+
:type _request_auth: dict, optional
|
|
1034
|
+
:param _content_type: force content-type for the request.
|
|
1035
|
+
:type _content_type: str, Optional
|
|
1036
|
+
:param _headers: set to override the headers for a single
|
|
1037
|
+
request; this effectively ignores the headers
|
|
1038
|
+
in the spec for a single request.
|
|
1039
|
+
:type _headers: dict, optional
|
|
1040
|
+
:param _host_index: set to override the host_index for a single
|
|
1041
|
+
request; this effectively ignores the host_index
|
|
1042
|
+
in the spec for a single request.
|
|
1043
|
+
:type _host_index: int, optional
|
|
1044
|
+
:return: Returns the result object.
|
|
1045
|
+
""" # noqa: E501
|
|
1046
|
+
|
|
1047
|
+
_param = self._apps_authentication_api_get_current_user_serialize(
|
|
1048
|
+
_request_auth=_request_auth,
|
|
1049
|
+
_content_type=_content_type,
|
|
1050
|
+
_headers=_headers,
|
|
1051
|
+
_host_index=_host_index
|
|
1052
|
+
)
|
|
1053
|
+
|
|
1054
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1055
|
+
'200': "UserResponse",
|
|
1056
|
+
}
|
|
1057
|
+
response_data = await self.api_client.call_api(
|
|
1058
|
+
*_param,
|
|
1059
|
+
_request_timeout=_request_timeout
|
|
1060
|
+
)
|
|
1061
|
+
return response_data.response
|
|
1062
|
+
|
|
1063
|
+
|
|
1064
|
+
def _apps_authentication_api_get_current_user_serialize(
|
|
1065
|
+
self,
|
|
1066
|
+
_request_auth,
|
|
1067
|
+
_content_type,
|
|
1068
|
+
_headers,
|
|
1069
|
+
_host_index,
|
|
1070
|
+
) -> RequestSerialized:
|
|
1071
|
+
|
|
1072
|
+
_host = None
|
|
1073
|
+
|
|
1074
|
+
_collection_formats: Dict[str, str] = {
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
_path_params: Dict[str, str] = {}
|
|
1078
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1079
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1080
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1081
|
+
_files: Dict[
|
|
1082
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1083
|
+
] = {}
|
|
1084
|
+
_body_params: Optional[bytes] = None
|
|
1085
|
+
|
|
1086
|
+
# process the path parameters
|
|
1087
|
+
# process the query parameters
|
|
1088
|
+
# process the header parameters
|
|
1089
|
+
# process the form parameters
|
|
1090
|
+
# process the body parameter
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
# set the HTTP header `Accept`
|
|
1094
|
+
if 'Accept' not in _header_params:
|
|
1095
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1096
|
+
[
|
|
1097
|
+
'application/json'
|
|
1098
|
+
]
|
|
1099
|
+
)
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
# authentication setting
|
|
1103
|
+
_auth_settings: List[str] = [
|
|
1104
|
+
'JWTBearer'
|
|
1105
|
+
]
|
|
1106
|
+
|
|
1107
|
+
return self.api_client.param_serialize(
|
|
1108
|
+
method='GET',
|
|
1109
|
+
resource_path='/api/v1/auth/me',
|
|
1110
|
+
path_params=_path_params,
|
|
1111
|
+
query_params=_query_params,
|
|
1112
|
+
header_params=_header_params,
|
|
1113
|
+
body=_body_params,
|
|
1114
|
+
post_params=_form_params,
|
|
1115
|
+
files=_files,
|
|
1116
|
+
auth_settings=_auth_settings,
|
|
1117
|
+
collection_formats=_collection_formats,
|
|
1118
|
+
_host=_host,
|
|
1119
|
+
_request_auth=_request_auth
|
|
1120
|
+
)
|
|
1121
|
+
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
|
|
1125
|
+
@validate_call
|
|
1126
|
+
async def apps_authentication_api_get_feature_flags(
|
|
1127
|
+
self,
|
|
1128
|
+
_request_timeout: Union[
|
|
1129
|
+
None,
|
|
1130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1131
|
+
Tuple[
|
|
1132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1134
|
+
]
|
|
1135
|
+
] = None,
|
|
1136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1137
|
+
_content_type: Optional[StrictStr] = None,
|
|
1138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1140
|
+
) -> Dict[str, object]:
|
|
1141
|
+
"""Get Feature Flags
|
|
1142
|
+
|
|
1143
|
+
Get feature flags for authenticated user.
|
|
1144
|
+
|
|
1145
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1146
|
+
number provided, it will be total request
|
|
1147
|
+
timeout. It can also be a pair (tuple) of
|
|
1148
|
+
(connection, read) timeouts.
|
|
1149
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1150
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1151
|
+
request; this effectively ignores the
|
|
1152
|
+
authentication in the spec for a single request.
|
|
1153
|
+
:type _request_auth: dict, optional
|
|
1154
|
+
:param _content_type: force content-type for the request.
|
|
1155
|
+
:type _content_type: str, Optional
|
|
1156
|
+
:param _headers: set to override the headers for a single
|
|
1157
|
+
request; this effectively ignores the headers
|
|
1158
|
+
in the spec for a single request.
|
|
1159
|
+
:type _headers: dict, optional
|
|
1160
|
+
:param _host_index: set to override the host_index for a single
|
|
1161
|
+
request; this effectively ignores the host_index
|
|
1162
|
+
in the spec for a single request.
|
|
1163
|
+
:type _host_index: int, optional
|
|
1164
|
+
:return: Returns the result object.
|
|
1165
|
+
""" # noqa: E501
|
|
1166
|
+
|
|
1167
|
+
_param = self._apps_authentication_api_get_feature_flags_serialize(
|
|
1168
|
+
_request_auth=_request_auth,
|
|
1169
|
+
_content_type=_content_type,
|
|
1170
|
+
_headers=_headers,
|
|
1171
|
+
_host_index=_host_index
|
|
1172
|
+
)
|
|
1173
|
+
|
|
1174
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1175
|
+
'200': "Dict[str, object]",
|
|
1176
|
+
}
|
|
1177
|
+
response_data = await self.api_client.call_api(
|
|
1178
|
+
*_param,
|
|
1179
|
+
_request_timeout=_request_timeout
|
|
1180
|
+
)
|
|
1181
|
+
await response_data.read()
|
|
1182
|
+
return self.api_client.response_deserialize(
|
|
1183
|
+
response_data=response_data,
|
|
1184
|
+
response_types_map=_response_types_map,
|
|
1185
|
+
).data
|
|
1186
|
+
|
|
1187
|
+
|
|
1188
|
+
@validate_call
|
|
1189
|
+
async def apps_authentication_api_get_feature_flags_with_http_info(
|
|
1190
|
+
self,
|
|
1191
|
+
_request_timeout: Union[
|
|
1192
|
+
None,
|
|
1193
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1194
|
+
Tuple[
|
|
1195
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1196
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1197
|
+
]
|
|
1198
|
+
] = None,
|
|
1199
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1200
|
+
_content_type: Optional[StrictStr] = None,
|
|
1201
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1202
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1203
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
1204
|
+
"""Get Feature Flags
|
|
1205
|
+
|
|
1206
|
+
Get feature flags for authenticated user.
|
|
1207
|
+
|
|
1208
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1209
|
+
number provided, it will be total request
|
|
1210
|
+
timeout. It can also be a pair (tuple) of
|
|
1211
|
+
(connection, read) timeouts.
|
|
1212
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1213
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1214
|
+
request; this effectively ignores the
|
|
1215
|
+
authentication in the spec for a single request.
|
|
1216
|
+
:type _request_auth: dict, optional
|
|
1217
|
+
:param _content_type: force content-type for the request.
|
|
1218
|
+
:type _content_type: str, Optional
|
|
1219
|
+
:param _headers: set to override the headers for a single
|
|
1220
|
+
request; this effectively ignores the headers
|
|
1221
|
+
in the spec for a single request.
|
|
1222
|
+
:type _headers: dict, optional
|
|
1223
|
+
:param _host_index: set to override the host_index for a single
|
|
1224
|
+
request; this effectively ignores the host_index
|
|
1225
|
+
in the spec for a single request.
|
|
1226
|
+
:type _host_index: int, optional
|
|
1227
|
+
:return: Returns the result object.
|
|
1228
|
+
""" # noqa: E501
|
|
1229
|
+
|
|
1230
|
+
_param = self._apps_authentication_api_get_feature_flags_serialize(
|
|
1231
|
+
_request_auth=_request_auth,
|
|
1232
|
+
_content_type=_content_type,
|
|
1233
|
+
_headers=_headers,
|
|
1234
|
+
_host_index=_host_index
|
|
1235
|
+
)
|
|
1236
|
+
|
|
1237
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1238
|
+
'200': "Dict[str, object]",
|
|
1239
|
+
}
|
|
1240
|
+
response_data = await self.api_client.call_api(
|
|
1241
|
+
*_param,
|
|
1242
|
+
_request_timeout=_request_timeout
|
|
1243
|
+
)
|
|
1244
|
+
await response_data.read()
|
|
1245
|
+
return self.api_client.response_deserialize(
|
|
1246
|
+
response_data=response_data,
|
|
1247
|
+
response_types_map=_response_types_map,
|
|
1248
|
+
)
|
|
1249
|
+
|
|
1250
|
+
|
|
1251
|
+
@validate_call
|
|
1252
|
+
async def apps_authentication_api_get_feature_flags_without_preload_content(
|
|
1253
|
+
self,
|
|
1254
|
+
_request_timeout: Union[
|
|
1255
|
+
None,
|
|
1256
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1257
|
+
Tuple[
|
|
1258
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1259
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1260
|
+
]
|
|
1261
|
+
] = None,
|
|
1262
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1263
|
+
_content_type: Optional[StrictStr] = None,
|
|
1264
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1265
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1266
|
+
) -> RESTResponseType:
|
|
1267
|
+
"""Get Feature Flags
|
|
1268
|
+
|
|
1269
|
+
Get feature flags for authenticated user.
|
|
1270
|
+
|
|
1271
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1272
|
+
number provided, it will be total request
|
|
1273
|
+
timeout. It can also be a pair (tuple) of
|
|
1274
|
+
(connection, read) timeouts.
|
|
1275
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1276
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1277
|
+
request; this effectively ignores the
|
|
1278
|
+
authentication in the spec for a single request.
|
|
1279
|
+
:type _request_auth: dict, optional
|
|
1280
|
+
:param _content_type: force content-type for the request.
|
|
1281
|
+
:type _content_type: str, Optional
|
|
1282
|
+
:param _headers: set to override the headers for a single
|
|
1283
|
+
request; this effectively ignores the headers
|
|
1284
|
+
in the spec for a single request.
|
|
1285
|
+
:type _headers: dict, optional
|
|
1286
|
+
:param _host_index: set to override the host_index for a single
|
|
1287
|
+
request; this effectively ignores the host_index
|
|
1288
|
+
in the spec for a single request.
|
|
1289
|
+
:type _host_index: int, optional
|
|
1290
|
+
:return: Returns the result object.
|
|
1291
|
+
""" # noqa: E501
|
|
1292
|
+
|
|
1293
|
+
_param = self._apps_authentication_api_get_feature_flags_serialize(
|
|
1294
|
+
_request_auth=_request_auth,
|
|
1295
|
+
_content_type=_content_type,
|
|
1296
|
+
_headers=_headers,
|
|
1297
|
+
_host_index=_host_index
|
|
1298
|
+
)
|
|
1299
|
+
|
|
1300
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1301
|
+
'200': "Dict[str, object]",
|
|
1302
|
+
}
|
|
1303
|
+
response_data = await self.api_client.call_api(
|
|
1304
|
+
*_param,
|
|
1305
|
+
_request_timeout=_request_timeout
|
|
1306
|
+
)
|
|
1307
|
+
return response_data.response
|
|
1308
|
+
|
|
1309
|
+
|
|
1310
|
+
def _apps_authentication_api_get_feature_flags_serialize(
|
|
1311
|
+
self,
|
|
1312
|
+
_request_auth,
|
|
1313
|
+
_content_type,
|
|
1314
|
+
_headers,
|
|
1315
|
+
_host_index,
|
|
1316
|
+
) -> RequestSerialized:
|
|
1317
|
+
|
|
1318
|
+
_host = None
|
|
1319
|
+
|
|
1320
|
+
_collection_formats: Dict[str, str] = {
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
_path_params: Dict[str, str] = {}
|
|
1324
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1325
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1326
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1327
|
+
_files: Dict[
|
|
1328
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1329
|
+
] = {}
|
|
1330
|
+
_body_params: Optional[bytes] = None
|
|
1331
|
+
|
|
1332
|
+
# process the path parameters
|
|
1333
|
+
# process the query parameters
|
|
1334
|
+
# process the header parameters
|
|
1335
|
+
# process the form parameters
|
|
1336
|
+
# process the body parameter
|
|
1337
|
+
|
|
1338
|
+
|
|
1339
|
+
# set the HTTP header `Accept`
|
|
1340
|
+
if 'Accept' not in _header_params:
|
|
1341
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1342
|
+
[
|
|
1343
|
+
'application/json'
|
|
1344
|
+
]
|
|
1345
|
+
)
|
|
1346
|
+
|
|
1347
|
+
|
|
1348
|
+
# authentication setting
|
|
1349
|
+
_auth_settings: List[str] = [
|
|
1350
|
+
'JWTBearer'
|
|
1351
|
+
]
|
|
1352
|
+
|
|
1353
|
+
return self.api_client.param_serialize(
|
|
1354
|
+
method='GET',
|
|
1355
|
+
resource_path='/api/v1/auth/feature-flags',
|
|
1356
|
+
path_params=_path_params,
|
|
1357
|
+
query_params=_query_params,
|
|
1358
|
+
header_params=_header_params,
|
|
1359
|
+
body=_body_params,
|
|
1360
|
+
post_params=_form_params,
|
|
1361
|
+
files=_files,
|
|
1362
|
+
auth_settings=_auth_settings,
|
|
1363
|
+
collection_formats=_collection_formats,
|
|
1364
|
+
_host=_host,
|
|
1365
|
+
_request_auth=_request_auth
|
|
1366
|
+
)
|
|
1367
|
+
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
|
|
1371
|
+
@validate_call
|
|
1372
|
+
async def apps_authentication_api_health_check(
|
|
1373
|
+
self,
|
|
1374
|
+
_request_timeout: Union[
|
|
1375
|
+
None,
|
|
1376
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1377
|
+
Tuple[
|
|
1378
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1379
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1380
|
+
]
|
|
1381
|
+
] = None,
|
|
1382
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1383
|
+
_content_type: Optional[StrictStr] = None,
|
|
1384
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1385
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1386
|
+
) -> None:
|
|
1387
|
+
"""Health Check
|
|
1388
|
+
|
|
1389
|
+
Health check for authentication service.
|
|
1390
|
+
|
|
1391
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1392
|
+
number provided, it will be total request
|
|
1393
|
+
timeout. It can also be a pair (tuple) of
|
|
1394
|
+
(connection, read) timeouts.
|
|
1395
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1396
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1397
|
+
request; this effectively ignores the
|
|
1398
|
+
authentication in the spec for a single request.
|
|
1399
|
+
:type _request_auth: dict, optional
|
|
1400
|
+
:param _content_type: force content-type for the request.
|
|
1401
|
+
:type _content_type: str, Optional
|
|
1402
|
+
:param _headers: set to override the headers for a single
|
|
1403
|
+
request; this effectively ignores the headers
|
|
1404
|
+
in the spec for a single request.
|
|
1405
|
+
:type _headers: dict, optional
|
|
1406
|
+
:param _host_index: set to override the host_index for a single
|
|
1407
|
+
request; this effectively ignores the host_index
|
|
1408
|
+
in the spec for a single request.
|
|
1409
|
+
:type _host_index: int, optional
|
|
1410
|
+
:return: Returns the result object.
|
|
1411
|
+
""" # noqa: E501
|
|
1412
|
+
|
|
1413
|
+
_param = self._apps_authentication_api_health_check_serialize(
|
|
1414
|
+
_request_auth=_request_auth,
|
|
1415
|
+
_content_type=_content_type,
|
|
1416
|
+
_headers=_headers,
|
|
1417
|
+
_host_index=_host_index
|
|
1418
|
+
)
|
|
1419
|
+
|
|
1420
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1421
|
+
'200': None,
|
|
1422
|
+
}
|
|
1423
|
+
response_data = await self.api_client.call_api(
|
|
1424
|
+
*_param,
|
|
1425
|
+
_request_timeout=_request_timeout
|
|
1426
|
+
)
|
|
1427
|
+
await response_data.read()
|
|
1428
|
+
return self.api_client.response_deserialize(
|
|
1429
|
+
response_data=response_data,
|
|
1430
|
+
response_types_map=_response_types_map,
|
|
1431
|
+
).data
|
|
1432
|
+
|
|
1433
|
+
|
|
1434
|
+
@validate_call
|
|
1435
|
+
async def apps_authentication_api_health_check_with_http_info(
|
|
1436
|
+
self,
|
|
1437
|
+
_request_timeout: Union[
|
|
1438
|
+
None,
|
|
1439
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1440
|
+
Tuple[
|
|
1441
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1442
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1443
|
+
]
|
|
1444
|
+
] = None,
|
|
1445
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1446
|
+
_content_type: Optional[StrictStr] = None,
|
|
1447
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1448
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1449
|
+
) -> ApiResponse[None]:
|
|
1450
|
+
"""Health Check
|
|
1451
|
+
|
|
1452
|
+
Health check for authentication service.
|
|
1453
|
+
|
|
1454
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1455
|
+
number provided, it will be total request
|
|
1456
|
+
timeout. It can also be a pair (tuple) of
|
|
1457
|
+
(connection, read) timeouts.
|
|
1458
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1459
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1460
|
+
request; this effectively ignores the
|
|
1461
|
+
authentication in the spec for a single request.
|
|
1462
|
+
:type _request_auth: dict, optional
|
|
1463
|
+
:param _content_type: force content-type for the request.
|
|
1464
|
+
:type _content_type: str, Optional
|
|
1465
|
+
:param _headers: set to override the headers for a single
|
|
1466
|
+
request; this effectively ignores the headers
|
|
1467
|
+
in the spec for a single request.
|
|
1468
|
+
:type _headers: dict, optional
|
|
1469
|
+
:param _host_index: set to override the host_index for a single
|
|
1470
|
+
request; this effectively ignores the host_index
|
|
1471
|
+
in the spec for a single request.
|
|
1472
|
+
:type _host_index: int, optional
|
|
1473
|
+
:return: Returns the result object.
|
|
1474
|
+
""" # noqa: E501
|
|
1475
|
+
|
|
1476
|
+
_param = self._apps_authentication_api_health_check_serialize(
|
|
1477
|
+
_request_auth=_request_auth,
|
|
1478
|
+
_content_type=_content_type,
|
|
1479
|
+
_headers=_headers,
|
|
1480
|
+
_host_index=_host_index
|
|
1481
|
+
)
|
|
1482
|
+
|
|
1483
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1484
|
+
'200': None,
|
|
1485
|
+
}
|
|
1486
|
+
response_data = await self.api_client.call_api(
|
|
1487
|
+
*_param,
|
|
1488
|
+
_request_timeout=_request_timeout
|
|
1489
|
+
)
|
|
1490
|
+
await response_data.read()
|
|
1491
|
+
return self.api_client.response_deserialize(
|
|
1492
|
+
response_data=response_data,
|
|
1493
|
+
response_types_map=_response_types_map,
|
|
1494
|
+
)
|
|
1495
|
+
|
|
1496
|
+
|
|
1497
|
+
@validate_call
|
|
1498
|
+
async def apps_authentication_api_health_check_without_preload_content(
|
|
1499
|
+
self,
|
|
1500
|
+
_request_timeout: Union[
|
|
1501
|
+
None,
|
|
1502
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1503
|
+
Tuple[
|
|
1504
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1505
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1506
|
+
]
|
|
1507
|
+
] = None,
|
|
1508
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1509
|
+
_content_type: Optional[StrictStr] = None,
|
|
1510
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1511
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1512
|
+
) -> RESTResponseType:
|
|
1513
|
+
"""Health Check
|
|
1514
|
+
|
|
1515
|
+
Health check for authentication service.
|
|
1516
|
+
|
|
1517
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1518
|
+
number provided, it will be total request
|
|
1519
|
+
timeout. It can also be a pair (tuple) of
|
|
1520
|
+
(connection, read) timeouts.
|
|
1521
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1522
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1523
|
+
request; this effectively ignores the
|
|
1524
|
+
authentication in the spec for a single request.
|
|
1525
|
+
:type _request_auth: dict, optional
|
|
1526
|
+
:param _content_type: force content-type for the request.
|
|
1527
|
+
:type _content_type: str, Optional
|
|
1528
|
+
:param _headers: set to override the headers for a single
|
|
1529
|
+
request; this effectively ignores the headers
|
|
1530
|
+
in the spec for a single request.
|
|
1531
|
+
:type _headers: dict, optional
|
|
1532
|
+
:param _host_index: set to override the host_index for a single
|
|
1533
|
+
request; this effectively ignores the host_index
|
|
1534
|
+
in the spec for a single request.
|
|
1535
|
+
:type _host_index: int, optional
|
|
1536
|
+
:return: Returns the result object.
|
|
1537
|
+
""" # noqa: E501
|
|
1538
|
+
|
|
1539
|
+
_param = self._apps_authentication_api_health_check_serialize(
|
|
1540
|
+
_request_auth=_request_auth,
|
|
1541
|
+
_content_type=_content_type,
|
|
1542
|
+
_headers=_headers,
|
|
1543
|
+
_host_index=_host_index
|
|
1544
|
+
)
|
|
1545
|
+
|
|
1546
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1547
|
+
'200': None,
|
|
1548
|
+
}
|
|
1549
|
+
response_data = await self.api_client.call_api(
|
|
1550
|
+
*_param,
|
|
1551
|
+
_request_timeout=_request_timeout
|
|
1552
|
+
)
|
|
1553
|
+
return response_data.response
|
|
1554
|
+
|
|
1555
|
+
|
|
1556
|
+
def _apps_authentication_api_health_check_serialize(
|
|
1557
|
+
self,
|
|
1558
|
+
_request_auth,
|
|
1559
|
+
_content_type,
|
|
1560
|
+
_headers,
|
|
1561
|
+
_host_index,
|
|
1562
|
+
) -> RequestSerialized:
|
|
1563
|
+
|
|
1564
|
+
_host = None
|
|
1565
|
+
|
|
1566
|
+
_collection_formats: Dict[str, str] = {
|
|
1567
|
+
}
|
|
1568
|
+
|
|
1569
|
+
_path_params: Dict[str, str] = {}
|
|
1570
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1571
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1572
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1573
|
+
_files: Dict[
|
|
1574
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1575
|
+
] = {}
|
|
1576
|
+
_body_params: Optional[bytes] = None
|
|
1577
|
+
|
|
1578
|
+
# process the path parameters
|
|
1579
|
+
# process the query parameters
|
|
1580
|
+
# process the header parameters
|
|
1581
|
+
# process the form parameters
|
|
1582
|
+
# process the body parameter
|
|
1583
|
+
|
|
1584
|
+
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
# authentication setting
|
|
1588
|
+
_auth_settings: List[str] = [
|
|
1589
|
+
]
|
|
1590
|
+
|
|
1591
|
+
return self.api_client.param_serialize(
|
|
1592
|
+
method='GET',
|
|
1593
|
+
resource_path='/api/v1/auth/health',
|
|
1594
|
+
path_params=_path_params,
|
|
1595
|
+
query_params=_query_params,
|
|
1596
|
+
header_params=_header_params,
|
|
1597
|
+
body=_body_params,
|
|
1598
|
+
post_params=_form_params,
|
|
1599
|
+
files=_files,
|
|
1600
|
+
auth_settings=_auth_settings,
|
|
1601
|
+
collection_formats=_collection_formats,
|
|
1602
|
+
_host=_host,
|
|
1603
|
+
_request_auth=_request_auth
|
|
1604
|
+
)
|
|
1605
|
+
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
|
|
1609
|
+
@validate_call
|
|
1610
|
+
async def apps_authentication_api_login(
|
|
1611
|
+
self,
|
|
1612
|
+
login_schema: LoginSchema,
|
|
1613
|
+
_request_timeout: Union[
|
|
1614
|
+
None,
|
|
1615
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1616
|
+
Tuple[
|
|
1617
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1618
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1619
|
+
]
|
|
1620
|
+
] = None,
|
|
1621
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1622
|
+
_content_type: Optional[StrictStr] = None,
|
|
1623
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1624
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1625
|
+
) -> LoginResponse:
|
|
1626
|
+
"""Login
|
|
1627
|
+
|
|
1628
|
+
User login endpoint. Returns JWT access and refresh tokens, and sets HttpOnly cookies.
|
|
1629
|
+
|
|
1630
|
+
:param login_schema: (required)
|
|
1631
|
+
:type login_schema: LoginSchema
|
|
1632
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1633
|
+
number provided, it will be total request
|
|
1634
|
+
timeout. It can also be a pair (tuple) of
|
|
1635
|
+
(connection, read) timeouts.
|
|
1636
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1637
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1638
|
+
request; this effectively ignores the
|
|
1639
|
+
authentication in the spec for a single request.
|
|
1640
|
+
:type _request_auth: dict, optional
|
|
1641
|
+
:param _content_type: force content-type for the request.
|
|
1642
|
+
:type _content_type: str, Optional
|
|
1643
|
+
:param _headers: set to override the headers for a single
|
|
1644
|
+
request; this effectively ignores the headers
|
|
1645
|
+
in the spec for a single request.
|
|
1646
|
+
:type _headers: dict, optional
|
|
1647
|
+
:param _host_index: set to override the host_index for a single
|
|
1648
|
+
request; this effectively ignores the host_index
|
|
1649
|
+
in the spec for a single request.
|
|
1650
|
+
:type _host_index: int, optional
|
|
1651
|
+
:return: Returns the result object.
|
|
1652
|
+
""" # noqa: E501
|
|
1653
|
+
|
|
1654
|
+
_param = self._apps_authentication_api_login_serialize(
|
|
1655
|
+
login_schema=login_schema,
|
|
1656
|
+
_request_auth=_request_auth,
|
|
1657
|
+
_content_type=_content_type,
|
|
1658
|
+
_headers=_headers,
|
|
1659
|
+
_host_index=_host_index
|
|
1660
|
+
)
|
|
1661
|
+
|
|
1662
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1663
|
+
'200': "LoginResponse",
|
|
1664
|
+
'400': "Dict[str, object]",
|
|
1665
|
+
}
|
|
1666
|
+
response_data = await self.api_client.call_api(
|
|
1667
|
+
*_param,
|
|
1668
|
+
_request_timeout=_request_timeout
|
|
1669
|
+
)
|
|
1670
|
+
await response_data.read()
|
|
1671
|
+
return self.api_client.response_deserialize(
|
|
1672
|
+
response_data=response_data,
|
|
1673
|
+
response_types_map=_response_types_map,
|
|
1674
|
+
).data
|
|
1675
|
+
|
|
1676
|
+
|
|
1677
|
+
@validate_call
|
|
1678
|
+
async def apps_authentication_api_login_with_http_info(
|
|
1679
|
+
self,
|
|
1680
|
+
login_schema: LoginSchema,
|
|
1681
|
+
_request_timeout: Union[
|
|
1682
|
+
None,
|
|
1683
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1684
|
+
Tuple[
|
|
1685
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1686
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1687
|
+
]
|
|
1688
|
+
] = None,
|
|
1689
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1690
|
+
_content_type: Optional[StrictStr] = None,
|
|
1691
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1692
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1693
|
+
) -> ApiResponse[LoginResponse]:
|
|
1694
|
+
"""Login
|
|
1695
|
+
|
|
1696
|
+
User login endpoint. Returns JWT access and refresh tokens, and sets HttpOnly cookies.
|
|
1697
|
+
|
|
1698
|
+
:param login_schema: (required)
|
|
1699
|
+
:type login_schema: LoginSchema
|
|
1700
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1701
|
+
number provided, it will be total request
|
|
1702
|
+
timeout. It can also be a pair (tuple) of
|
|
1703
|
+
(connection, read) timeouts.
|
|
1704
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1705
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1706
|
+
request; this effectively ignores the
|
|
1707
|
+
authentication in the spec for a single request.
|
|
1708
|
+
:type _request_auth: dict, optional
|
|
1709
|
+
:param _content_type: force content-type for the request.
|
|
1710
|
+
:type _content_type: str, Optional
|
|
1711
|
+
:param _headers: set to override the headers for a single
|
|
1712
|
+
request; this effectively ignores the headers
|
|
1713
|
+
in the spec for a single request.
|
|
1714
|
+
:type _headers: dict, optional
|
|
1715
|
+
:param _host_index: set to override the host_index for a single
|
|
1716
|
+
request; this effectively ignores the host_index
|
|
1717
|
+
in the spec for a single request.
|
|
1718
|
+
:type _host_index: int, optional
|
|
1719
|
+
:return: Returns the result object.
|
|
1720
|
+
""" # noqa: E501
|
|
1721
|
+
|
|
1722
|
+
_param = self._apps_authentication_api_login_serialize(
|
|
1723
|
+
login_schema=login_schema,
|
|
1724
|
+
_request_auth=_request_auth,
|
|
1725
|
+
_content_type=_content_type,
|
|
1726
|
+
_headers=_headers,
|
|
1727
|
+
_host_index=_host_index
|
|
1728
|
+
)
|
|
1729
|
+
|
|
1730
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1731
|
+
'200': "LoginResponse",
|
|
1732
|
+
'400': "Dict[str, object]",
|
|
1733
|
+
}
|
|
1734
|
+
response_data = await self.api_client.call_api(
|
|
1735
|
+
*_param,
|
|
1736
|
+
_request_timeout=_request_timeout
|
|
1737
|
+
)
|
|
1738
|
+
await response_data.read()
|
|
1739
|
+
return self.api_client.response_deserialize(
|
|
1740
|
+
response_data=response_data,
|
|
1741
|
+
response_types_map=_response_types_map,
|
|
1742
|
+
)
|
|
1743
|
+
|
|
1744
|
+
|
|
1745
|
+
@validate_call
|
|
1746
|
+
async def apps_authentication_api_login_without_preload_content(
|
|
1747
|
+
self,
|
|
1748
|
+
login_schema: LoginSchema,
|
|
1749
|
+
_request_timeout: Union[
|
|
1750
|
+
None,
|
|
1751
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1752
|
+
Tuple[
|
|
1753
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1754
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1755
|
+
]
|
|
1756
|
+
] = None,
|
|
1757
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1758
|
+
_content_type: Optional[StrictStr] = None,
|
|
1759
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1760
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1761
|
+
) -> RESTResponseType:
|
|
1762
|
+
"""Login
|
|
1763
|
+
|
|
1764
|
+
User login endpoint. Returns JWT access and refresh tokens, and sets HttpOnly cookies.
|
|
1765
|
+
|
|
1766
|
+
:param login_schema: (required)
|
|
1767
|
+
:type login_schema: LoginSchema
|
|
1768
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1769
|
+
number provided, it will be total request
|
|
1770
|
+
timeout. It can also be a pair (tuple) of
|
|
1771
|
+
(connection, read) timeouts.
|
|
1772
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1773
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1774
|
+
request; this effectively ignores the
|
|
1775
|
+
authentication in the spec for a single request.
|
|
1776
|
+
:type _request_auth: dict, optional
|
|
1777
|
+
:param _content_type: force content-type for the request.
|
|
1778
|
+
:type _content_type: str, Optional
|
|
1779
|
+
:param _headers: set to override the headers for a single
|
|
1780
|
+
request; this effectively ignores the headers
|
|
1781
|
+
in the spec for a single request.
|
|
1782
|
+
:type _headers: dict, optional
|
|
1783
|
+
:param _host_index: set to override the host_index for a single
|
|
1784
|
+
request; this effectively ignores the host_index
|
|
1785
|
+
in the spec for a single request.
|
|
1786
|
+
:type _host_index: int, optional
|
|
1787
|
+
:return: Returns the result object.
|
|
1788
|
+
""" # noqa: E501
|
|
1789
|
+
|
|
1790
|
+
_param = self._apps_authentication_api_login_serialize(
|
|
1791
|
+
login_schema=login_schema,
|
|
1792
|
+
_request_auth=_request_auth,
|
|
1793
|
+
_content_type=_content_type,
|
|
1794
|
+
_headers=_headers,
|
|
1795
|
+
_host_index=_host_index
|
|
1796
|
+
)
|
|
1797
|
+
|
|
1798
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1799
|
+
'200': "LoginResponse",
|
|
1800
|
+
'400': "Dict[str, object]",
|
|
1801
|
+
}
|
|
1802
|
+
response_data = await self.api_client.call_api(
|
|
1803
|
+
*_param,
|
|
1804
|
+
_request_timeout=_request_timeout
|
|
1805
|
+
)
|
|
1806
|
+
return response_data.response
|
|
1807
|
+
|
|
1808
|
+
|
|
1809
|
+
def _apps_authentication_api_login_serialize(
|
|
1810
|
+
self,
|
|
1811
|
+
login_schema,
|
|
1812
|
+
_request_auth,
|
|
1813
|
+
_content_type,
|
|
1814
|
+
_headers,
|
|
1815
|
+
_host_index,
|
|
1816
|
+
) -> RequestSerialized:
|
|
1817
|
+
|
|
1818
|
+
_host = None
|
|
1819
|
+
|
|
1820
|
+
_collection_formats: Dict[str, str] = {
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
_path_params: Dict[str, str] = {}
|
|
1824
|
+
_query_params: List[Tuple[str, str]] = []
|
|
1825
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
1826
|
+
_form_params: List[Tuple[str, str]] = []
|
|
1827
|
+
_files: Dict[
|
|
1828
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
1829
|
+
] = {}
|
|
1830
|
+
_body_params: Optional[bytes] = None
|
|
1831
|
+
|
|
1832
|
+
# process the path parameters
|
|
1833
|
+
# process the query parameters
|
|
1834
|
+
# process the header parameters
|
|
1835
|
+
# process the form parameters
|
|
1836
|
+
# process the body parameter
|
|
1837
|
+
if login_schema is not None:
|
|
1838
|
+
_body_params = login_schema
|
|
1839
|
+
|
|
1840
|
+
|
|
1841
|
+
# set the HTTP header `Accept`
|
|
1842
|
+
if 'Accept' not in _header_params:
|
|
1843
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
1844
|
+
[
|
|
1845
|
+
'application/json'
|
|
1846
|
+
]
|
|
1847
|
+
)
|
|
1848
|
+
|
|
1849
|
+
# set the HTTP header `Content-Type`
|
|
1850
|
+
if _content_type:
|
|
1851
|
+
_header_params['Content-Type'] = _content_type
|
|
1852
|
+
else:
|
|
1853
|
+
_default_content_type = (
|
|
1854
|
+
self.api_client.select_header_content_type(
|
|
1855
|
+
[
|
|
1856
|
+
'application/json'
|
|
1857
|
+
]
|
|
1858
|
+
)
|
|
1859
|
+
)
|
|
1860
|
+
if _default_content_type is not None:
|
|
1861
|
+
_header_params['Content-Type'] = _default_content_type
|
|
1862
|
+
|
|
1863
|
+
# authentication setting
|
|
1864
|
+
_auth_settings: List[str] = [
|
|
1865
|
+
]
|
|
1866
|
+
|
|
1867
|
+
return self.api_client.param_serialize(
|
|
1868
|
+
method='POST',
|
|
1869
|
+
resource_path='/api/v1/auth/login',
|
|
1870
|
+
path_params=_path_params,
|
|
1871
|
+
query_params=_query_params,
|
|
1872
|
+
header_params=_header_params,
|
|
1873
|
+
body=_body_params,
|
|
1874
|
+
post_params=_form_params,
|
|
1875
|
+
files=_files,
|
|
1876
|
+
auth_settings=_auth_settings,
|
|
1877
|
+
collection_formats=_collection_formats,
|
|
1878
|
+
_host=_host,
|
|
1879
|
+
_request_auth=_request_auth
|
|
1880
|
+
)
|
|
1881
|
+
|
|
1882
|
+
|
|
1883
|
+
|
|
1884
|
+
|
|
1885
|
+
@validate_call
|
|
1886
|
+
async def apps_authentication_api_logout(
|
|
1887
|
+
self,
|
|
1888
|
+
_request_timeout: Union[
|
|
1889
|
+
None,
|
|
1890
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1891
|
+
Tuple[
|
|
1892
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1893
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1894
|
+
]
|
|
1895
|
+
] = None,
|
|
1896
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1897
|
+
_content_type: Optional[StrictStr] = None,
|
|
1898
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1899
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1900
|
+
) -> None:
|
|
1901
|
+
"""Logout
|
|
1902
|
+
|
|
1903
|
+
Logout user by revoking all refresh tokens and clearing HttpOnly cookies.
|
|
1904
|
+
|
|
1905
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1906
|
+
number provided, it will be total request
|
|
1907
|
+
timeout. It can also be a pair (tuple) of
|
|
1908
|
+
(connection, read) timeouts.
|
|
1909
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1910
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1911
|
+
request; this effectively ignores the
|
|
1912
|
+
authentication in the spec for a single request.
|
|
1913
|
+
:type _request_auth: dict, optional
|
|
1914
|
+
:param _content_type: force content-type for the request.
|
|
1915
|
+
:type _content_type: str, Optional
|
|
1916
|
+
:param _headers: set to override the headers for a single
|
|
1917
|
+
request; this effectively ignores the headers
|
|
1918
|
+
in the spec for a single request.
|
|
1919
|
+
:type _headers: dict, optional
|
|
1920
|
+
:param _host_index: set to override the host_index for a single
|
|
1921
|
+
request; this effectively ignores the host_index
|
|
1922
|
+
in the spec for a single request.
|
|
1923
|
+
:type _host_index: int, optional
|
|
1924
|
+
:return: Returns the result object.
|
|
1925
|
+
""" # noqa: E501
|
|
1926
|
+
|
|
1927
|
+
_param = self._apps_authentication_api_logout_serialize(
|
|
1928
|
+
_request_auth=_request_auth,
|
|
1929
|
+
_content_type=_content_type,
|
|
1930
|
+
_headers=_headers,
|
|
1931
|
+
_host_index=_host_index
|
|
1932
|
+
)
|
|
1933
|
+
|
|
1934
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1935
|
+
'200': None,
|
|
1936
|
+
}
|
|
1937
|
+
response_data = await self.api_client.call_api(
|
|
1938
|
+
*_param,
|
|
1939
|
+
_request_timeout=_request_timeout
|
|
1940
|
+
)
|
|
1941
|
+
await response_data.read()
|
|
1942
|
+
return self.api_client.response_deserialize(
|
|
1943
|
+
response_data=response_data,
|
|
1944
|
+
response_types_map=_response_types_map,
|
|
1945
|
+
).data
|
|
1946
|
+
|
|
1947
|
+
|
|
1948
|
+
@validate_call
|
|
1949
|
+
async def apps_authentication_api_logout_with_http_info(
|
|
1950
|
+
self,
|
|
1951
|
+
_request_timeout: Union[
|
|
1952
|
+
None,
|
|
1953
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1954
|
+
Tuple[
|
|
1955
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
1956
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
1957
|
+
]
|
|
1958
|
+
] = None,
|
|
1959
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
1960
|
+
_content_type: Optional[StrictStr] = None,
|
|
1961
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
1962
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
1963
|
+
) -> ApiResponse[None]:
|
|
1964
|
+
"""Logout
|
|
1965
|
+
|
|
1966
|
+
Logout user by revoking all refresh tokens and clearing HttpOnly cookies.
|
|
1967
|
+
|
|
1968
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
1969
|
+
number provided, it will be total request
|
|
1970
|
+
timeout. It can also be a pair (tuple) of
|
|
1971
|
+
(connection, read) timeouts.
|
|
1972
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
1973
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
1974
|
+
request; this effectively ignores the
|
|
1975
|
+
authentication in the spec for a single request.
|
|
1976
|
+
:type _request_auth: dict, optional
|
|
1977
|
+
:param _content_type: force content-type for the request.
|
|
1978
|
+
:type _content_type: str, Optional
|
|
1979
|
+
:param _headers: set to override the headers for a single
|
|
1980
|
+
request; this effectively ignores the headers
|
|
1981
|
+
in the spec for a single request.
|
|
1982
|
+
:type _headers: dict, optional
|
|
1983
|
+
:param _host_index: set to override the host_index for a single
|
|
1984
|
+
request; this effectively ignores the host_index
|
|
1985
|
+
in the spec for a single request.
|
|
1986
|
+
:type _host_index: int, optional
|
|
1987
|
+
:return: Returns the result object.
|
|
1988
|
+
""" # noqa: E501
|
|
1989
|
+
|
|
1990
|
+
_param = self._apps_authentication_api_logout_serialize(
|
|
1991
|
+
_request_auth=_request_auth,
|
|
1992
|
+
_content_type=_content_type,
|
|
1993
|
+
_headers=_headers,
|
|
1994
|
+
_host_index=_host_index
|
|
1995
|
+
)
|
|
1996
|
+
|
|
1997
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
1998
|
+
'200': None,
|
|
1999
|
+
}
|
|
2000
|
+
response_data = await self.api_client.call_api(
|
|
2001
|
+
*_param,
|
|
2002
|
+
_request_timeout=_request_timeout
|
|
2003
|
+
)
|
|
2004
|
+
await response_data.read()
|
|
2005
|
+
return self.api_client.response_deserialize(
|
|
2006
|
+
response_data=response_data,
|
|
2007
|
+
response_types_map=_response_types_map,
|
|
2008
|
+
)
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
@validate_call
|
|
2012
|
+
async def apps_authentication_api_logout_without_preload_content(
|
|
2013
|
+
self,
|
|
2014
|
+
_request_timeout: Union[
|
|
2015
|
+
None,
|
|
2016
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2017
|
+
Tuple[
|
|
2018
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2019
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2020
|
+
]
|
|
2021
|
+
] = None,
|
|
2022
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2023
|
+
_content_type: Optional[StrictStr] = None,
|
|
2024
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2025
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2026
|
+
) -> RESTResponseType:
|
|
2027
|
+
"""Logout
|
|
2028
|
+
|
|
2029
|
+
Logout user by revoking all refresh tokens and clearing HttpOnly cookies.
|
|
2030
|
+
|
|
2031
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2032
|
+
number provided, it will be total request
|
|
2033
|
+
timeout. It can also be a pair (tuple) of
|
|
2034
|
+
(connection, read) timeouts.
|
|
2035
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2036
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2037
|
+
request; this effectively ignores the
|
|
2038
|
+
authentication in the spec for a single request.
|
|
2039
|
+
:type _request_auth: dict, optional
|
|
2040
|
+
:param _content_type: force content-type for the request.
|
|
2041
|
+
:type _content_type: str, Optional
|
|
2042
|
+
:param _headers: set to override the headers for a single
|
|
2043
|
+
request; this effectively ignores the headers
|
|
2044
|
+
in the spec for a single request.
|
|
2045
|
+
:type _headers: dict, optional
|
|
2046
|
+
:param _host_index: set to override the host_index for a single
|
|
2047
|
+
request; this effectively ignores the host_index
|
|
2048
|
+
in the spec for a single request.
|
|
2049
|
+
:type _host_index: int, optional
|
|
2050
|
+
:return: Returns the result object.
|
|
2051
|
+
""" # noqa: E501
|
|
2052
|
+
|
|
2053
|
+
_param = self._apps_authentication_api_logout_serialize(
|
|
2054
|
+
_request_auth=_request_auth,
|
|
2055
|
+
_content_type=_content_type,
|
|
2056
|
+
_headers=_headers,
|
|
2057
|
+
_host_index=_host_index
|
|
2058
|
+
)
|
|
2059
|
+
|
|
2060
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2061
|
+
'200': None,
|
|
2062
|
+
}
|
|
2063
|
+
response_data = await self.api_client.call_api(
|
|
2064
|
+
*_param,
|
|
2065
|
+
_request_timeout=_request_timeout
|
|
2066
|
+
)
|
|
2067
|
+
return response_data.response
|
|
2068
|
+
|
|
2069
|
+
|
|
2070
|
+
def _apps_authentication_api_logout_serialize(
|
|
2071
|
+
self,
|
|
2072
|
+
_request_auth,
|
|
2073
|
+
_content_type,
|
|
2074
|
+
_headers,
|
|
2075
|
+
_host_index,
|
|
2076
|
+
) -> RequestSerialized:
|
|
2077
|
+
|
|
2078
|
+
_host = None
|
|
2079
|
+
|
|
2080
|
+
_collection_formats: Dict[str, str] = {
|
|
2081
|
+
}
|
|
2082
|
+
|
|
2083
|
+
_path_params: Dict[str, str] = {}
|
|
2084
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2085
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2086
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2087
|
+
_files: Dict[
|
|
2088
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2089
|
+
] = {}
|
|
2090
|
+
_body_params: Optional[bytes] = None
|
|
2091
|
+
|
|
2092
|
+
# process the path parameters
|
|
2093
|
+
# process the query parameters
|
|
2094
|
+
# process the header parameters
|
|
2095
|
+
# process the form parameters
|
|
2096
|
+
# process the body parameter
|
|
2097
|
+
|
|
2098
|
+
|
|
2099
|
+
|
|
2100
|
+
|
|
2101
|
+
# authentication setting
|
|
2102
|
+
_auth_settings: List[str] = [
|
|
2103
|
+
'JWTBearer'
|
|
2104
|
+
]
|
|
2105
|
+
|
|
2106
|
+
return self.api_client.param_serialize(
|
|
2107
|
+
method='POST',
|
|
2108
|
+
resource_path='/api/v1/auth/logout',
|
|
2109
|
+
path_params=_path_params,
|
|
2110
|
+
query_params=_query_params,
|
|
2111
|
+
header_params=_header_params,
|
|
2112
|
+
body=_body_params,
|
|
2113
|
+
post_params=_form_params,
|
|
2114
|
+
files=_files,
|
|
2115
|
+
auth_settings=_auth_settings,
|
|
2116
|
+
collection_formats=_collection_formats,
|
|
2117
|
+
_host=_host,
|
|
2118
|
+
_request_auth=_request_auth
|
|
2119
|
+
)
|
|
2120
|
+
|
|
2121
|
+
|
|
2122
|
+
|
|
2123
|
+
|
|
2124
|
+
@validate_call
|
|
2125
|
+
async def apps_authentication_api_password_reset_alias(
|
|
2126
|
+
self,
|
|
2127
|
+
forgot_password_schema: ForgotPasswordSchema,
|
|
2128
|
+
_request_timeout: Union[
|
|
2129
|
+
None,
|
|
2130
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2131
|
+
Tuple[
|
|
2132
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2133
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2134
|
+
]
|
|
2135
|
+
] = None,
|
|
2136
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2137
|
+
_content_type: Optional[StrictStr] = None,
|
|
2138
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2139
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2140
|
+
) -> Dict[str, object]:
|
|
2141
|
+
"""Password Reset Alias
|
|
2142
|
+
|
|
2143
|
+
Alias for /forgot-password endpoint (backwards compatibility).
|
|
2144
|
+
|
|
2145
|
+
:param forgot_password_schema: (required)
|
|
2146
|
+
:type forgot_password_schema: ForgotPasswordSchema
|
|
2147
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2148
|
+
number provided, it will be total request
|
|
2149
|
+
timeout. It can also be a pair (tuple) of
|
|
2150
|
+
(connection, read) timeouts.
|
|
2151
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2152
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2153
|
+
request; this effectively ignores the
|
|
2154
|
+
authentication in the spec for a single request.
|
|
2155
|
+
:type _request_auth: dict, optional
|
|
2156
|
+
:param _content_type: force content-type for the request.
|
|
2157
|
+
:type _content_type: str, Optional
|
|
2158
|
+
:param _headers: set to override the headers for a single
|
|
2159
|
+
request; this effectively ignores the headers
|
|
2160
|
+
in the spec for a single request.
|
|
2161
|
+
:type _headers: dict, optional
|
|
2162
|
+
:param _host_index: set to override the host_index for a single
|
|
2163
|
+
request; this effectively ignores the host_index
|
|
2164
|
+
in the spec for a single request.
|
|
2165
|
+
:type _host_index: int, optional
|
|
2166
|
+
:return: Returns the result object.
|
|
2167
|
+
""" # noqa: E501
|
|
2168
|
+
|
|
2169
|
+
_param = self._apps_authentication_api_password_reset_alias_serialize(
|
|
2170
|
+
forgot_password_schema=forgot_password_schema,
|
|
2171
|
+
_request_auth=_request_auth,
|
|
2172
|
+
_content_type=_content_type,
|
|
2173
|
+
_headers=_headers,
|
|
2174
|
+
_host_index=_host_index
|
|
2175
|
+
)
|
|
2176
|
+
|
|
2177
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2178
|
+
'200': "Dict[str, object]",
|
|
2179
|
+
'400': "Dict[str, object]",
|
|
2180
|
+
}
|
|
2181
|
+
response_data = await self.api_client.call_api(
|
|
2182
|
+
*_param,
|
|
2183
|
+
_request_timeout=_request_timeout
|
|
2184
|
+
)
|
|
2185
|
+
await response_data.read()
|
|
2186
|
+
return self.api_client.response_deserialize(
|
|
2187
|
+
response_data=response_data,
|
|
2188
|
+
response_types_map=_response_types_map,
|
|
2189
|
+
).data
|
|
2190
|
+
|
|
2191
|
+
|
|
2192
|
+
@validate_call
|
|
2193
|
+
async def apps_authentication_api_password_reset_alias_with_http_info(
|
|
2194
|
+
self,
|
|
2195
|
+
forgot_password_schema: ForgotPasswordSchema,
|
|
2196
|
+
_request_timeout: Union[
|
|
2197
|
+
None,
|
|
2198
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2199
|
+
Tuple[
|
|
2200
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2201
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2202
|
+
]
|
|
2203
|
+
] = None,
|
|
2204
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2205
|
+
_content_type: Optional[StrictStr] = None,
|
|
2206
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2207
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2208
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
2209
|
+
"""Password Reset Alias
|
|
2210
|
+
|
|
2211
|
+
Alias for /forgot-password endpoint (backwards compatibility).
|
|
2212
|
+
|
|
2213
|
+
:param forgot_password_schema: (required)
|
|
2214
|
+
:type forgot_password_schema: ForgotPasswordSchema
|
|
2215
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2216
|
+
number provided, it will be total request
|
|
2217
|
+
timeout. It can also be a pair (tuple) of
|
|
2218
|
+
(connection, read) timeouts.
|
|
2219
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2220
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2221
|
+
request; this effectively ignores the
|
|
2222
|
+
authentication in the spec for a single request.
|
|
2223
|
+
:type _request_auth: dict, optional
|
|
2224
|
+
:param _content_type: force content-type for the request.
|
|
2225
|
+
:type _content_type: str, Optional
|
|
2226
|
+
:param _headers: set to override the headers for a single
|
|
2227
|
+
request; this effectively ignores the headers
|
|
2228
|
+
in the spec for a single request.
|
|
2229
|
+
:type _headers: dict, optional
|
|
2230
|
+
:param _host_index: set to override the host_index for a single
|
|
2231
|
+
request; this effectively ignores the host_index
|
|
2232
|
+
in the spec for a single request.
|
|
2233
|
+
:type _host_index: int, optional
|
|
2234
|
+
:return: Returns the result object.
|
|
2235
|
+
""" # noqa: E501
|
|
2236
|
+
|
|
2237
|
+
_param = self._apps_authentication_api_password_reset_alias_serialize(
|
|
2238
|
+
forgot_password_schema=forgot_password_schema,
|
|
2239
|
+
_request_auth=_request_auth,
|
|
2240
|
+
_content_type=_content_type,
|
|
2241
|
+
_headers=_headers,
|
|
2242
|
+
_host_index=_host_index
|
|
2243
|
+
)
|
|
2244
|
+
|
|
2245
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2246
|
+
'200': "Dict[str, object]",
|
|
2247
|
+
'400': "Dict[str, object]",
|
|
2248
|
+
}
|
|
2249
|
+
response_data = await self.api_client.call_api(
|
|
2250
|
+
*_param,
|
|
2251
|
+
_request_timeout=_request_timeout
|
|
2252
|
+
)
|
|
2253
|
+
await response_data.read()
|
|
2254
|
+
return self.api_client.response_deserialize(
|
|
2255
|
+
response_data=response_data,
|
|
2256
|
+
response_types_map=_response_types_map,
|
|
2257
|
+
)
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
@validate_call
|
|
2261
|
+
async def apps_authentication_api_password_reset_alias_without_preload_content(
|
|
2262
|
+
self,
|
|
2263
|
+
forgot_password_schema: ForgotPasswordSchema,
|
|
2264
|
+
_request_timeout: Union[
|
|
2265
|
+
None,
|
|
2266
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2267
|
+
Tuple[
|
|
2268
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2269
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2270
|
+
]
|
|
2271
|
+
] = None,
|
|
2272
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2273
|
+
_content_type: Optional[StrictStr] = None,
|
|
2274
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2275
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2276
|
+
) -> RESTResponseType:
|
|
2277
|
+
"""Password Reset Alias
|
|
2278
|
+
|
|
2279
|
+
Alias for /forgot-password endpoint (backwards compatibility).
|
|
2280
|
+
|
|
2281
|
+
:param forgot_password_schema: (required)
|
|
2282
|
+
:type forgot_password_schema: ForgotPasswordSchema
|
|
2283
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2284
|
+
number provided, it will be total request
|
|
2285
|
+
timeout. It can also be a pair (tuple) of
|
|
2286
|
+
(connection, read) timeouts.
|
|
2287
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2288
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2289
|
+
request; this effectively ignores the
|
|
2290
|
+
authentication in the spec for a single request.
|
|
2291
|
+
:type _request_auth: dict, optional
|
|
2292
|
+
:param _content_type: force content-type for the request.
|
|
2293
|
+
:type _content_type: str, Optional
|
|
2294
|
+
:param _headers: set to override the headers for a single
|
|
2295
|
+
request; this effectively ignores the headers
|
|
2296
|
+
in the spec for a single request.
|
|
2297
|
+
:type _headers: dict, optional
|
|
2298
|
+
:param _host_index: set to override the host_index for a single
|
|
2299
|
+
request; this effectively ignores the host_index
|
|
2300
|
+
in the spec for a single request.
|
|
2301
|
+
:type _host_index: int, optional
|
|
2302
|
+
:return: Returns the result object.
|
|
2303
|
+
""" # noqa: E501
|
|
2304
|
+
|
|
2305
|
+
_param = self._apps_authentication_api_password_reset_alias_serialize(
|
|
2306
|
+
forgot_password_schema=forgot_password_schema,
|
|
2307
|
+
_request_auth=_request_auth,
|
|
2308
|
+
_content_type=_content_type,
|
|
2309
|
+
_headers=_headers,
|
|
2310
|
+
_host_index=_host_index
|
|
2311
|
+
)
|
|
2312
|
+
|
|
2313
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2314
|
+
'200': "Dict[str, object]",
|
|
2315
|
+
'400': "Dict[str, object]",
|
|
2316
|
+
}
|
|
2317
|
+
response_data = await self.api_client.call_api(
|
|
2318
|
+
*_param,
|
|
2319
|
+
_request_timeout=_request_timeout
|
|
2320
|
+
)
|
|
2321
|
+
return response_data.response
|
|
2322
|
+
|
|
2323
|
+
|
|
2324
|
+
def _apps_authentication_api_password_reset_alias_serialize(
|
|
2325
|
+
self,
|
|
2326
|
+
forgot_password_schema,
|
|
2327
|
+
_request_auth,
|
|
2328
|
+
_content_type,
|
|
2329
|
+
_headers,
|
|
2330
|
+
_host_index,
|
|
2331
|
+
) -> RequestSerialized:
|
|
2332
|
+
|
|
2333
|
+
_host = None
|
|
2334
|
+
|
|
2335
|
+
_collection_formats: Dict[str, str] = {
|
|
2336
|
+
}
|
|
2337
|
+
|
|
2338
|
+
_path_params: Dict[str, str] = {}
|
|
2339
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2340
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2341
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2342
|
+
_files: Dict[
|
|
2343
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2344
|
+
] = {}
|
|
2345
|
+
_body_params: Optional[bytes] = None
|
|
2346
|
+
|
|
2347
|
+
# process the path parameters
|
|
2348
|
+
# process the query parameters
|
|
2349
|
+
# process the header parameters
|
|
2350
|
+
# process the form parameters
|
|
2351
|
+
# process the body parameter
|
|
2352
|
+
if forgot_password_schema is not None:
|
|
2353
|
+
_body_params = forgot_password_schema
|
|
2354
|
+
|
|
2355
|
+
|
|
2356
|
+
# set the HTTP header `Accept`
|
|
2357
|
+
if 'Accept' not in _header_params:
|
|
2358
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2359
|
+
[
|
|
2360
|
+
'application/json'
|
|
2361
|
+
]
|
|
2362
|
+
)
|
|
2363
|
+
|
|
2364
|
+
# set the HTTP header `Content-Type`
|
|
2365
|
+
if _content_type:
|
|
2366
|
+
_header_params['Content-Type'] = _content_type
|
|
2367
|
+
else:
|
|
2368
|
+
_default_content_type = (
|
|
2369
|
+
self.api_client.select_header_content_type(
|
|
2370
|
+
[
|
|
2371
|
+
'application/json'
|
|
2372
|
+
]
|
|
2373
|
+
)
|
|
2374
|
+
)
|
|
2375
|
+
if _default_content_type is not None:
|
|
2376
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2377
|
+
|
|
2378
|
+
# authentication setting
|
|
2379
|
+
_auth_settings: List[str] = [
|
|
2380
|
+
]
|
|
2381
|
+
|
|
2382
|
+
return self.api_client.param_serialize(
|
|
2383
|
+
method='POST',
|
|
2384
|
+
resource_path='/api/v1/auth/password-reset',
|
|
2385
|
+
path_params=_path_params,
|
|
2386
|
+
query_params=_query_params,
|
|
2387
|
+
header_params=_header_params,
|
|
2388
|
+
body=_body_params,
|
|
2389
|
+
post_params=_form_params,
|
|
2390
|
+
files=_files,
|
|
2391
|
+
auth_settings=_auth_settings,
|
|
2392
|
+
collection_formats=_collection_formats,
|
|
2393
|
+
_host=_host,
|
|
2394
|
+
_request_auth=_request_auth
|
|
2395
|
+
)
|
|
2396
|
+
|
|
2397
|
+
|
|
2398
|
+
|
|
2399
|
+
|
|
2400
|
+
@validate_call
|
|
2401
|
+
async def apps_authentication_api_refresh_token(
|
|
2402
|
+
self,
|
|
2403
|
+
refresh_token_schema: Optional[RefreshTokenSchema] = None,
|
|
2404
|
+
_request_timeout: Union[
|
|
2405
|
+
None,
|
|
2406
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2407
|
+
Tuple[
|
|
2408
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2409
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2410
|
+
]
|
|
2411
|
+
] = None,
|
|
2412
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2413
|
+
_content_type: Optional[StrictStr] = None,
|
|
2414
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2415
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2416
|
+
) -> LoginResponse:
|
|
2417
|
+
"""Refresh Token
|
|
2418
|
+
|
|
2419
|
+
Refresh access token using refresh token. Supports both body payload and HttpOnly cookie for refresh token.
|
|
2420
|
+
|
|
2421
|
+
:param refresh_token_schema:
|
|
2422
|
+
:type refresh_token_schema: RefreshTokenSchema
|
|
2423
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2424
|
+
number provided, it will be total request
|
|
2425
|
+
timeout. It can also be a pair (tuple) of
|
|
2426
|
+
(connection, read) timeouts.
|
|
2427
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2428
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2429
|
+
request; this effectively ignores the
|
|
2430
|
+
authentication in the spec for a single request.
|
|
2431
|
+
:type _request_auth: dict, optional
|
|
2432
|
+
:param _content_type: force content-type for the request.
|
|
2433
|
+
:type _content_type: str, Optional
|
|
2434
|
+
:param _headers: set to override the headers for a single
|
|
2435
|
+
request; this effectively ignores the headers
|
|
2436
|
+
in the spec for a single request.
|
|
2437
|
+
:type _headers: dict, optional
|
|
2438
|
+
:param _host_index: set to override the host_index for a single
|
|
2439
|
+
request; this effectively ignores the host_index
|
|
2440
|
+
in the spec for a single request.
|
|
2441
|
+
:type _host_index: int, optional
|
|
2442
|
+
:return: Returns the result object.
|
|
2443
|
+
""" # noqa: E501
|
|
2444
|
+
|
|
2445
|
+
_param = self._apps_authentication_api_refresh_token_serialize(
|
|
2446
|
+
refresh_token_schema=refresh_token_schema,
|
|
2447
|
+
_request_auth=_request_auth,
|
|
2448
|
+
_content_type=_content_type,
|
|
2449
|
+
_headers=_headers,
|
|
2450
|
+
_host_index=_host_index
|
|
2451
|
+
)
|
|
2452
|
+
|
|
2453
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2454
|
+
'200': "LoginResponse",
|
|
2455
|
+
'401': "Dict[str, object]",
|
|
2456
|
+
}
|
|
2457
|
+
response_data = await self.api_client.call_api(
|
|
2458
|
+
*_param,
|
|
2459
|
+
_request_timeout=_request_timeout
|
|
2460
|
+
)
|
|
2461
|
+
await response_data.read()
|
|
2462
|
+
return self.api_client.response_deserialize(
|
|
2463
|
+
response_data=response_data,
|
|
2464
|
+
response_types_map=_response_types_map,
|
|
2465
|
+
).data
|
|
2466
|
+
|
|
2467
|
+
|
|
2468
|
+
@validate_call
|
|
2469
|
+
async def apps_authentication_api_refresh_token_with_http_info(
|
|
2470
|
+
self,
|
|
2471
|
+
refresh_token_schema: Optional[RefreshTokenSchema] = None,
|
|
2472
|
+
_request_timeout: Union[
|
|
2473
|
+
None,
|
|
2474
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2475
|
+
Tuple[
|
|
2476
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2477
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2478
|
+
]
|
|
2479
|
+
] = None,
|
|
2480
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2481
|
+
_content_type: Optional[StrictStr] = None,
|
|
2482
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2483
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2484
|
+
) -> ApiResponse[LoginResponse]:
|
|
2485
|
+
"""Refresh Token
|
|
2486
|
+
|
|
2487
|
+
Refresh access token using refresh token. Supports both body payload and HttpOnly cookie for refresh token.
|
|
2488
|
+
|
|
2489
|
+
:param refresh_token_schema:
|
|
2490
|
+
:type refresh_token_schema: RefreshTokenSchema
|
|
2491
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2492
|
+
number provided, it will be total request
|
|
2493
|
+
timeout. It can also be a pair (tuple) of
|
|
2494
|
+
(connection, read) timeouts.
|
|
2495
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2496
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2497
|
+
request; this effectively ignores the
|
|
2498
|
+
authentication in the spec for a single request.
|
|
2499
|
+
:type _request_auth: dict, optional
|
|
2500
|
+
:param _content_type: force content-type for the request.
|
|
2501
|
+
:type _content_type: str, Optional
|
|
2502
|
+
:param _headers: set to override the headers for a single
|
|
2503
|
+
request; this effectively ignores the headers
|
|
2504
|
+
in the spec for a single request.
|
|
2505
|
+
:type _headers: dict, optional
|
|
2506
|
+
:param _host_index: set to override the host_index for a single
|
|
2507
|
+
request; this effectively ignores the host_index
|
|
2508
|
+
in the spec for a single request.
|
|
2509
|
+
:type _host_index: int, optional
|
|
2510
|
+
:return: Returns the result object.
|
|
2511
|
+
""" # noqa: E501
|
|
2512
|
+
|
|
2513
|
+
_param = self._apps_authentication_api_refresh_token_serialize(
|
|
2514
|
+
refresh_token_schema=refresh_token_schema,
|
|
2515
|
+
_request_auth=_request_auth,
|
|
2516
|
+
_content_type=_content_type,
|
|
2517
|
+
_headers=_headers,
|
|
2518
|
+
_host_index=_host_index
|
|
2519
|
+
)
|
|
2520
|
+
|
|
2521
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2522
|
+
'200': "LoginResponse",
|
|
2523
|
+
'401': "Dict[str, object]",
|
|
2524
|
+
}
|
|
2525
|
+
response_data = await self.api_client.call_api(
|
|
2526
|
+
*_param,
|
|
2527
|
+
_request_timeout=_request_timeout
|
|
2528
|
+
)
|
|
2529
|
+
await response_data.read()
|
|
2530
|
+
return self.api_client.response_deserialize(
|
|
2531
|
+
response_data=response_data,
|
|
2532
|
+
response_types_map=_response_types_map,
|
|
2533
|
+
)
|
|
2534
|
+
|
|
2535
|
+
|
|
2536
|
+
@validate_call
|
|
2537
|
+
async def apps_authentication_api_refresh_token_without_preload_content(
|
|
2538
|
+
self,
|
|
2539
|
+
refresh_token_schema: Optional[RefreshTokenSchema] = None,
|
|
2540
|
+
_request_timeout: Union[
|
|
2541
|
+
None,
|
|
2542
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2543
|
+
Tuple[
|
|
2544
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2545
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2546
|
+
]
|
|
2547
|
+
] = None,
|
|
2548
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2549
|
+
_content_type: Optional[StrictStr] = None,
|
|
2550
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2551
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2552
|
+
) -> RESTResponseType:
|
|
2553
|
+
"""Refresh Token
|
|
2554
|
+
|
|
2555
|
+
Refresh access token using refresh token. Supports both body payload and HttpOnly cookie for refresh token.
|
|
2556
|
+
|
|
2557
|
+
:param refresh_token_schema:
|
|
2558
|
+
:type refresh_token_schema: RefreshTokenSchema
|
|
2559
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2560
|
+
number provided, it will be total request
|
|
2561
|
+
timeout. It can also be a pair (tuple) of
|
|
2562
|
+
(connection, read) timeouts.
|
|
2563
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2564
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2565
|
+
request; this effectively ignores the
|
|
2566
|
+
authentication in the spec for a single request.
|
|
2567
|
+
:type _request_auth: dict, optional
|
|
2568
|
+
:param _content_type: force content-type for the request.
|
|
2569
|
+
:type _content_type: str, Optional
|
|
2570
|
+
:param _headers: set to override the headers for a single
|
|
2571
|
+
request; this effectively ignores the headers
|
|
2572
|
+
in the spec for a single request.
|
|
2573
|
+
:type _headers: dict, optional
|
|
2574
|
+
:param _host_index: set to override the host_index for a single
|
|
2575
|
+
request; this effectively ignores the host_index
|
|
2576
|
+
in the spec for a single request.
|
|
2577
|
+
:type _host_index: int, optional
|
|
2578
|
+
:return: Returns the result object.
|
|
2579
|
+
""" # noqa: E501
|
|
2580
|
+
|
|
2581
|
+
_param = self._apps_authentication_api_refresh_token_serialize(
|
|
2582
|
+
refresh_token_schema=refresh_token_schema,
|
|
2583
|
+
_request_auth=_request_auth,
|
|
2584
|
+
_content_type=_content_type,
|
|
2585
|
+
_headers=_headers,
|
|
2586
|
+
_host_index=_host_index
|
|
2587
|
+
)
|
|
2588
|
+
|
|
2589
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2590
|
+
'200': "LoginResponse",
|
|
2591
|
+
'401': "Dict[str, object]",
|
|
2592
|
+
}
|
|
2593
|
+
response_data = await self.api_client.call_api(
|
|
2594
|
+
*_param,
|
|
2595
|
+
_request_timeout=_request_timeout
|
|
2596
|
+
)
|
|
2597
|
+
return response_data.response
|
|
2598
|
+
|
|
2599
|
+
|
|
2600
|
+
def _apps_authentication_api_refresh_token_serialize(
|
|
2601
|
+
self,
|
|
2602
|
+
refresh_token_schema,
|
|
2603
|
+
_request_auth,
|
|
2604
|
+
_content_type,
|
|
2605
|
+
_headers,
|
|
2606
|
+
_host_index,
|
|
2607
|
+
) -> RequestSerialized:
|
|
2608
|
+
|
|
2609
|
+
_host = None
|
|
2610
|
+
|
|
2611
|
+
_collection_formats: Dict[str, str] = {
|
|
2612
|
+
}
|
|
2613
|
+
|
|
2614
|
+
_path_params: Dict[str, str] = {}
|
|
2615
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2616
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2617
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2618
|
+
_files: Dict[
|
|
2619
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2620
|
+
] = {}
|
|
2621
|
+
_body_params: Optional[bytes] = None
|
|
2622
|
+
|
|
2623
|
+
# process the path parameters
|
|
2624
|
+
# process the query parameters
|
|
2625
|
+
# process the header parameters
|
|
2626
|
+
# process the form parameters
|
|
2627
|
+
# process the body parameter
|
|
2628
|
+
if refresh_token_schema is not None:
|
|
2629
|
+
_body_params = refresh_token_schema
|
|
2630
|
+
|
|
2631
|
+
|
|
2632
|
+
# set the HTTP header `Accept`
|
|
2633
|
+
if 'Accept' not in _header_params:
|
|
2634
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2635
|
+
[
|
|
2636
|
+
'application/json'
|
|
2637
|
+
]
|
|
2638
|
+
)
|
|
2639
|
+
|
|
2640
|
+
# set the HTTP header `Content-Type`
|
|
2641
|
+
if _content_type:
|
|
2642
|
+
_header_params['Content-Type'] = _content_type
|
|
2643
|
+
else:
|
|
2644
|
+
_default_content_type = (
|
|
2645
|
+
self.api_client.select_header_content_type(
|
|
2646
|
+
[
|
|
2647
|
+
'application/json'
|
|
2648
|
+
]
|
|
2649
|
+
)
|
|
2650
|
+
)
|
|
2651
|
+
if _default_content_type is not None:
|
|
2652
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2653
|
+
|
|
2654
|
+
# authentication setting
|
|
2655
|
+
_auth_settings: List[str] = [
|
|
2656
|
+
]
|
|
2657
|
+
|
|
2658
|
+
return self.api_client.param_serialize(
|
|
2659
|
+
method='POST',
|
|
2660
|
+
resource_path='/api/v1/auth/refresh',
|
|
2661
|
+
path_params=_path_params,
|
|
2662
|
+
query_params=_query_params,
|
|
2663
|
+
header_params=_header_params,
|
|
2664
|
+
body=_body_params,
|
|
2665
|
+
post_params=_form_params,
|
|
2666
|
+
files=_files,
|
|
2667
|
+
auth_settings=_auth_settings,
|
|
2668
|
+
collection_formats=_collection_formats,
|
|
2669
|
+
_host=_host,
|
|
2670
|
+
_request_auth=_request_auth
|
|
2671
|
+
)
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
@validate_call
|
|
2677
|
+
async def apps_authentication_api_register(
|
|
2678
|
+
self,
|
|
2679
|
+
register_schema: RegisterSchema,
|
|
2680
|
+
_request_timeout: Union[
|
|
2681
|
+
None,
|
|
2682
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2683
|
+
Tuple[
|
|
2684
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2685
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2686
|
+
]
|
|
2687
|
+
] = None,
|
|
2688
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2689
|
+
_content_type: Optional[StrictStr] = None,
|
|
2690
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2691
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2692
|
+
) -> UserResponse:
|
|
2693
|
+
"""Register
|
|
2694
|
+
|
|
2695
|
+
DEPRECATED: User registration endpoint. This endpoint is deprecated and will be removed in a future version. Please use /api/v1/public/signup instead, which includes: - Beta mode support with admin approval workflow - Proper admin notifications - Enhanced tracking and analytics This endpoint remains for backward compatibility but lacks beta features.
|
|
2696
|
+
|
|
2697
|
+
:param register_schema: (required)
|
|
2698
|
+
:type register_schema: RegisterSchema
|
|
2699
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2700
|
+
number provided, it will be total request
|
|
2701
|
+
timeout. It can also be a pair (tuple) of
|
|
2702
|
+
(connection, read) timeouts.
|
|
2703
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2704
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2705
|
+
request; this effectively ignores the
|
|
2706
|
+
authentication in the spec for a single request.
|
|
2707
|
+
:type _request_auth: dict, optional
|
|
2708
|
+
:param _content_type: force content-type for the request.
|
|
2709
|
+
:type _content_type: str, Optional
|
|
2710
|
+
:param _headers: set to override the headers for a single
|
|
2711
|
+
request; this effectively ignores the headers
|
|
2712
|
+
in the spec for a single request.
|
|
2713
|
+
:type _headers: dict, optional
|
|
2714
|
+
:param _host_index: set to override the host_index for a single
|
|
2715
|
+
request; this effectively ignores the host_index
|
|
2716
|
+
in the spec for a single request.
|
|
2717
|
+
:type _host_index: int, optional
|
|
2718
|
+
:return: Returns the result object.
|
|
2719
|
+
""" # noqa: E501
|
|
2720
|
+
|
|
2721
|
+
_param = self._apps_authentication_api_register_serialize(
|
|
2722
|
+
register_schema=register_schema,
|
|
2723
|
+
_request_auth=_request_auth,
|
|
2724
|
+
_content_type=_content_type,
|
|
2725
|
+
_headers=_headers,
|
|
2726
|
+
_host_index=_host_index
|
|
2727
|
+
)
|
|
2728
|
+
|
|
2729
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2730
|
+
'201': "UserResponse",
|
|
2731
|
+
'400': "Dict[str, object]",
|
|
2732
|
+
}
|
|
2733
|
+
response_data = await self.api_client.call_api(
|
|
2734
|
+
*_param,
|
|
2735
|
+
_request_timeout=_request_timeout
|
|
2736
|
+
)
|
|
2737
|
+
await response_data.read()
|
|
2738
|
+
return self.api_client.response_deserialize(
|
|
2739
|
+
response_data=response_data,
|
|
2740
|
+
response_types_map=_response_types_map,
|
|
2741
|
+
).data
|
|
2742
|
+
|
|
2743
|
+
|
|
2744
|
+
@validate_call
|
|
2745
|
+
async def apps_authentication_api_register_with_http_info(
|
|
2746
|
+
self,
|
|
2747
|
+
register_schema: RegisterSchema,
|
|
2748
|
+
_request_timeout: Union[
|
|
2749
|
+
None,
|
|
2750
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2751
|
+
Tuple[
|
|
2752
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2753
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2754
|
+
]
|
|
2755
|
+
] = None,
|
|
2756
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2757
|
+
_content_type: Optional[StrictStr] = None,
|
|
2758
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2759
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2760
|
+
) -> ApiResponse[UserResponse]:
|
|
2761
|
+
"""Register
|
|
2762
|
+
|
|
2763
|
+
DEPRECATED: User registration endpoint. This endpoint is deprecated and will be removed in a future version. Please use /api/v1/public/signup instead, which includes: - Beta mode support with admin approval workflow - Proper admin notifications - Enhanced tracking and analytics This endpoint remains for backward compatibility but lacks beta features.
|
|
2764
|
+
|
|
2765
|
+
:param register_schema: (required)
|
|
2766
|
+
:type register_schema: RegisterSchema
|
|
2767
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2768
|
+
number provided, it will be total request
|
|
2769
|
+
timeout. It can also be a pair (tuple) of
|
|
2770
|
+
(connection, read) timeouts.
|
|
2771
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2772
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2773
|
+
request; this effectively ignores the
|
|
2774
|
+
authentication in the spec for a single request.
|
|
2775
|
+
:type _request_auth: dict, optional
|
|
2776
|
+
:param _content_type: force content-type for the request.
|
|
2777
|
+
:type _content_type: str, Optional
|
|
2778
|
+
:param _headers: set to override the headers for a single
|
|
2779
|
+
request; this effectively ignores the headers
|
|
2780
|
+
in the spec for a single request.
|
|
2781
|
+
:type _headers: dict, optional
|
|
2782
|
+
:param _host_index: set to override the host_index for a single
|
|
2783
|
+
request; this effectively ignores the host_index
|
|
2784
|
+
in the spec for a single request.
|
|
2785
|
+
:type _host_index: int, optional
|
|
2786
|
+
:return: Returns the result object.
|
|
2787
|
+
""" # noqa: E501
|
|
2788
|
+
|
|
2789
|
+
_param = self._apps_authentication_api_register_serialize(
|
|
2790
|
+
register_schema=register_schema,
|
|
2791
|
+
_request_auth=_request_auth,
|
|
2792
|
+
_content_type=_content_type,
|
|
2793
|
+
_headers=_headers,
|
|
2794
|
+
_host_index=_host_index
|
|
2795
|
+
)
|
|
2796
|
+
|
|
2797
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2798
|
+
'201': "UserResponse",
|
|
2799
|
+
'400': "Dict[str, object]",
|
|
2800
|
+
}
|
|
2801
|
+
response_data = await self.api_client.call_api(
|
|
2802
|
+
*_param,
|
|
2803
|
+
_request_timeout=_request_timeout
|
|
2804
|
+
)
|
|
2805
|
+
await response_data.read()
|
|
2806
|
+
return self.api_client.response_deserialize(
|
|
2807
|
+
response_data=response_data,
|
|
2808
|
+
response_types_map=_response_types_map,
|
|
2809
|
+
)
|
|
2810
|
+
|
|
2811
|
+
|
|
2812
|
+
@validate_call
|
|
2813
|
+
async def apps_authentication_api_register_without_preload_content(
|
|
2814
|
+
self,
|
|
2815
|
+
register_schema: RegisterSchema,
|
|
2816
|
+
_request_timeout: Union[
|
|
2817
|
+
None,
|
|
2818
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2819
|
+
Tuple[
|
|
2820
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2821
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2822
|
+
]
|
|
2823
|
+
] = None,
|
|
2824
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2825
|
+
_content_type: Optional[StrictStr] = None,
|
|
2826
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2827
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2828
|
+
) -> RESTResponseType:
|
|
2829
|
+
"""Register
|
|
2830
|
+
|
|
2831
|
+
DEPRECATED: User registration endpoint. This endpoint is deprecated and will be removed in a future version. Please use /api/v1/public/signup instead, which includes: - Beta mode support with admin approval workflow - Proper admin notifications - Enhanced tracking and analytics This endpoint remains for backward compatibility but lacks beta features.
|
|
2832
|
+
|
|
2833
|
+
:param register_schema: (required)
|
|
2834
|
+
:type register_schema: RegisterSchema
|
|
2835
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2836
|
+
number provided, it will be total request
|
|
2837
|
+
timeout. It can also be a pair (tuple) of
|
|
2838
|
+
(connection, read) timeouts.
|
|
2839
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2840
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2841
|
+
request; this effectively ignores the
|
|
2842
|
+
authentication in the spec for a single request.
|
|
2843
|
+
:type _request_auth: dict, optional
|
|
2844
|
+
:param _content_type: force content-type for the request.
|
|
2845
|
+
:type _content_type: str, Optional
|
|
2846
|
+
:param _headers: set to override the headers for a single
|
|
2847
|
+
request; this effectively ignores the headers
|
|
2848
|
+
in the spec for a single request.
|
|
2849
|
+
:type _headers: dict, optional
|
|
2850
|
+
:param _host_index: set to override the host_index for a single
|
|
2851
|
+
request; this effectively ignores the host_index
|
|
2852
|
+
in the spec for a single request.
|
|
2853
|
+
:type _host_index: int, optional
|
|
2854
|
+
:return: Returns the result object.
|
|
2855
|
+
""" # noqa: E501
|
|
2856
|
+
|
|
2857
|
+
_param = self._apps_authentication_api_register_serialize(
|
|
2858
|
+
register_schema=register_schema,
|
|
2859
|
+
_request_auth=_request_auth,
|
|
2860
|
+
_content_type=_content_type,
|
|
2861
|
+
_headers=_headers,
|
|
2862
|
+
_host_index=_host_index
|
|
2863
|
+
)
|
|
2864
|
+
|
|
2865
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
2866
|
+
'201': "UserResponse",
|
|
2867
|
+
'400': "Dict[str, object]",
|
|
2868
|
+
}
|
|
2869
|
+
response_data = await self.api_client.call_api(
|
|
2870
|
+
*_param,
|
|
2871
|
+
_request_timeout=_request_timeout
|
|
2872
|
+
)
|
|
2873
|
+
return response_data.response
|
|
2874
|
+
|
|
2875
|
+
|
|
2876
|
+
def _apps_authentication_api_register_serialize(
|
|
2877
|
+
self,
|
|
2878
|
+
register_schema,
|
|
2879
|
+
_request_auth,
|
|
2880
|
+
_content_type,
|
|
2881
|
+
_headers,
|
|
2882
|
+
_host_index,
|
|
2883
|
+
) -> RequestSerialized:
|
|
2884
|
+
|
|
2885
|
+
_host = None
|
|
2886
|
+
|
|
2887
|
+
_collection_formats: Dict[str, str] = {
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
_path_params: Dict[str, str] = {}
|
|
2891
|
+
_query_params: List[Tuple[str, str]] = []
|
|
2892
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
2893
|
+
_form_params: List[Tuple[str, str]] = []
|
|
2894
|
+
_files: Dict[
|
|
2895
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
2896
|
+
] = {}
|
|
2897
|
+
_body_params: Optional[bytes] = None
|
|
2898
|
+
|
|
2899
|
+
# process the path parameters
|
|
2900
|
+
# process the query parameters
|
|
2901
|
+
# process the header parameters
|
|
2902
|
+
# process the form parameters
|
|
2903
|
+
# process the body parameter
|
|
2904
|
+
if register_schema is not None:
|
|
2905
|
+
_body_params = register_schema
|
|
2906
|
+
|
|
2907
|
+
|
|
2908
|
+
# set the HTTP header `Accept`
|
|
2909
|
+
if 'Accept' not in _header_params:
|
|
2910
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
2911
|
+
[
|
|
2912
|
+
'application/json'
|
|
2913
|
+
]
|
|
2914
|
+
)
|
|
2915
|
+
|
|
2916
|
+
# set the HTTP header `Content-Type`
|
|
2917
|
+
if _content_type:
|
|
2918
|
+
_header_params['Content-Type'] = _content_type
|
|
2919
|
+
else:
|
|
2920
|
+
_default_content_type = (
|
|
2921
|
+
self.api_client.select_header_content_type(
|
|
2922
|
+
[
|
|
2923
|
+
'application/json'
|
|
2924
|
+
]
|
|
2925
|
+
)
|
|
2926
|
+
)
|
|
2927
|
+
if _default_content_type is not None:
|
|
2928
|
+
_header_params['Content-Type'] = _default_content_type
|
|
2929
|
+
|
|
2930
|
+
# authentication setting
|
|
2931
|
+
_auth_settings: List[str] = [
|
|
2932
|
+
]
|
|
2933
|
+
|
|
2934
|
+
return self.api_client.param_serialize(
|
|
2935
|
+
method='POST',
|
|
2936
|
+
resource_path='/api/v1/auth/register',
|
|
2937
|
+
path_params=_path_params,
|
|
2938
|
+
query_params=_query_params,
|
|
2939
|
+
header_params=_header_params,
|
|
2940
|
+
body=_body_params,
|
|
2941
|
+
post_params=_form_params,
|
|
2942
|
+
files=_files,
|
|
2943
|
+
auth_settings=_auth_settings,
|
|
2944
|
+
collection_formats=_collection_formats,
|
|
2945
|
+
_host=_host,
|
|
2946
|
+
_request_auth=_request_auth
|
|
2947
|
+
)
|
|
2948
|
+
|
|
2949
|
+
|
|
2950
|
+
|
|
2951
|
+
|
|
2952
|
+
@validate_call
|
|
2953
|
+
async def apps_authentication_api_resend_verification(
|
|
2954
|
+
self,
|
|
2955
|
+
_request_timeout: Union[
|
|
2956
|
+
None,
|
|
2957
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2958
|
+
Tuple[
|
|
2959
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
2960
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
2961
|
+
]
|
|
2962
|
+
] = None,
|
|
2963
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
2964
|
+
_content_type: Optional[StrictStr] = None,
|
|
2965
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
2966
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
2967
|
+
) -> Dict[str, object]:
|
|
2968
|
+
"""Resend Verification
|
|
2969
|
+
|
|
2970
|
+
Resend verification email.
|
|
2971
|
+
|
|
2972
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
2973
|
+
number provided, it will be total request
|
|
2974
|
+
timeout. It can also be a pair (tuple) of
|
|
2975
|
+
(connection, read) timeouts.
|
|
2976
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
2977
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
2978
|
+
request; this effectively ignores the
|
|
2979
|
+
authentication in the spec for a single request.
|
|
2980
|
+
:type _request_auth: dict, optional
|
|
2981
|
+
:param _content_type: force content-type for the request.
|
|
2982
|
+
:type _content_type: str, Optional
|
|
2983
|
+
:param _headers: set to override the headers for a single
|
|
2984
|
+
request; this effectively ignores the headers
|
|
2985
|
+
in the spec for a single request.
|
|
2986
|
+
:type _headers: dict, optional
|
|
2987
|
+
:param _host_index: set to override the host_index for a single
|
|
2988
|
+
request; this effectively ignores the host_index
|
|
2989
|
+
in the spec for a single request.
|
|
2990
|
+
:type _host_index: int, optional
|
|
2991
|
+
:return: Returns the result object.
|
|
2992
|
+
""" # noqa: E501
|
|
2993
|
+
|
|
2994
|
+
_param = self._apps_authentication_api_resend_verification_serialize(
|
|
2995
|
+
_request_auth=_request_auth,
|
|
2996
|
+
_content_type=_content_type,
|
|
2997
|
+
_headers=_headers,
|
|
2998
|
+
_host_index=_host_index
|
|
2999
|
+
)
|
|
3000
|
+
|
|
3001
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3002
|
+
'200': "Dict[str, object]",
|
|
3003
|
+
}
|
|
3004
|
+
response_data = await self.api_client.call_api(
|
|
3005
|
+
*_param,
|
|
3006
|
+
_request_timeout=_request_timeout
|
|
3007
|
+
)
|
|
3008
|
+
await response_data.read()
|
|
3009
|
+
return self.api_client.response_deserialize(
|
|
3010
|
+
response_data=response_data,
|
|
3011
|
+
response_types_map=_response_types_map,
|
|
3012
|
+
).data
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
@validate_call
|
|
3016
|
+
async def apps_authentication_api_resend_verification_with_http_info(
|
|
3017
|
+
self,
|
|
3018
|
+
_request_timeout: Union[
|
|
3019
|
+
None,
|
|
3020
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3021
|
+
Tuple[
|
|
3022
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3023
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3024
|
+
]
|
|
3025
|
+
] = None,
|
|
3026
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3027
|
+
_content_type: Optional[StrictStr] = None,
|
|
3028
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3029
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3030
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
3031
|
+
"""Resend Verification
|
|
3032
|
+
|
|
3033
|
+
Resend verification email.
|
|
3034
|
+
|
|
3035
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3036
|
+
number provided, it will be total request
|
|
3037
|
+
timeout. It can also be a pair (tuple) of
|
|
3038
|
+
(connection, read) timeouts.
|
|
3039
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3040
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3041
|
+
request; this effectively ignores the
|
|
3042
|
+
authentication in the spec for a single request.
|
|
3043
|
+
:type _request_auth: dict, optional
|
|
3044
|
+
:param _content_type: force content-type for the request.
|
|
3045
|
+
:type _content_type: str, Optional
|
|
3046
|
+
:param _headers: set to override the headers for a single
|
|
3047
|
+
request; this effectively ignores the headers
|
|
3048
|
+
in the spec for a single request.
|
|
3049
|
+
:type _headers: dict, optional
|
|
3050
|
+
:param _host_index: set to override the host_index for a single
|
|
3051
|
+
request; this effectively ignores the host_index
|
|
3052
|
+
in the spec for a single request.
|
|
3053
|
+
:type _host_index: int, optional
|
|
3054
|
+
:return: Returns the result object.
|
|
3055
|
+
""" # noqa: E501
|
|
3056
|
+
|
|
3057
|
+
_param = self._apps_authentication_api_resend_verification_serialize(
|
|
3058
|
+
_request_auth=_request_auth,
|
|
3059
|
+
_content_type=_content_type,
|
|
3060
|
+
_headers=_headers,
|
|
3061
|
+
_host_index=_host_index
|
|
3062
|
+
)
|
|
3063
|
+
|
|
3064
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3065
|
+
'200': "Dict[str, object]",
|
|
3066
|
+
}
|
|
3067
|
+
response_data = await self.api_client.call_api(
|
|
3068
|
+
*_param,
|
|
3069
|
+
_request_timeout=_request_timeout
|
|
3070
|
+
)
|
|
3071
|
+
await response_data.read()
|
|
3072
|
+
return self.api_client.response_deserialize(
|
|
3073
|
+
response_data=response_data,
|
|
3074
|
+
response_types_map=_response_types_map,
|
|
3075
|
+
)
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
@validate_call
|
|
3079
|
+
async def apps_authentication_api_resend_verification_without_preload_content(
|
|
3080
|
+
self,
|
|
3081
|
+
_request_timeout: Union[
|
|
3082
|
+
None,
|
|
3083
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3084
|
+
Tuple[
|
|
3085
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3086
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3087
|
+
]
|
|
3088
|
+
] = None,
|
|
3089
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3090
|
+
_content_type: Optional[StrictStr] = None,
|
|
3091
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3092
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3093
|
+
) -> RESTResponseType:
|
|
3094
|
+
"""Resend Verification
|
|
3095
|
+
|
|
3096
|
+
Resend verification email.
|
|
3097
|
+
|
|
3098
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3099
|
+
number provided, it will be total request
|
|
3100
|
+
timeout. It can also be a pair (tuple) of
|
|
3101
|
+
(connection, read) timeouts.
|
|
3102
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3103
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3104
|
+
request; this effectively ignores the
|
|
3105
|
+
authentication in the spec for a single request.
|
|
3106
|
+
:type _request_auth: dict, optional
|
|
3107
|
+
:param _content_type: force content-type for the request.
|
|
3108
|
+
:type _content_type: str, Optional
|
|
3109
|
+
:param _headers: set to override the headers for a single
|
|
3110
|
+
request; this effectively ignores the headers
|
|
3111
|
+
in the spec for a single request.
|
|
3112
|
+
:type _headers: dict, optional
|
|
3113
|
+
:param _host_index: set to override the host_index for a single
|
|
3114
|
+
request; this effectively ignores the host_index
|
|
3115
|
+
in the spec for a single request.
|
|
3116
|
+
:type _host_index: int, optional
|
|
3117
|
+
:return: Returns the result object.
|
|
3118
|
+
""" # noqa: E501
|
|
3119
|
+
|
|
3120
|
+
_param = self._apps_authentication_api_resend_verification_serialize(
|
|
3121
|
+
_request_auth=_request_auth,
|
|
3122
|
+
_content_type=_content_type,
|
|
3123
|
+
_headers=_headers,
|
|
3124
|
+
_host_index=_host_index
|
|
3125
|
+
)
|
|
3126
|
+
|
|
3127
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3128
|
+
'200': "Dict[str, object]",
|
|
3129
|
+
}
|
|
3130
|
+
response_data = await self.api_client.call_api(
|
|
3131
|
+
*_param,
|
|
3132
|
+
_request_timeout=_request_timeout
|
|
3133
|
+
)
|
|
3134
|
+
return response_data.response
|
|
3135
|
+
|
|
3136
|
+
|
|
3137
|
+
def _apps_authentication_api_resend_verification_serialize(
|
|
3138
|
+
self,
|
|
3139
|
+
_request_auth,
|
|
3140
|
+
_content_type,
|
|
3141
|
+
_headers,
|
|
3142
|
+
_host_index,
|
|
3143
|
+
) -> RequestSerialized:
|
|
3144
|
+
|
|
3145
|
+
_host = None
|
|
3146
|
+
|
|
3147
|
+
_collection_formats: Dict[str, str] = {
|
|
3148
|
+
}
|
|
3149
|
+
|
|
3150
|
+
_path_params: Dict[str, str] = {}
|
|
3151
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3152
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3153
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3154
|
+
_files: Dict[
|
|
3155
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3156
|
+
] = {}
|
|
3157
|
+
_body_params: Optional[bytes] = None
|
|
3158
|
+
|
|
3159
|
+
# process the path parameters
|
|
3160
|
+
# process the query parameters
|
|
3161
|
+
# process the header parameters
|
|
3162
|
+
# process the form parameters
|
|
3163
|
+
# process the body parameter
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
# set the HTTP header `Accept`
|
|
3167
|
+
if 'Accept' not in _header_params:
|
|
3168
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3169
|
+
[
|
|
3170
|
+
'application/json'
|
|
3171
|
+
]
|
|
3172
|
+
)
|
|
3173
|
+
|
|
3174
|
+
|
|
3175
|
+
# authentication setting
|
|
3176
|
+
_auth_settings: List[str] = [
|
|
3177
|
+
'JWTBearer'
|
|
3178
|
+
]
|
|
3179
|
+
|
|
3180
|
+
return self.api_client.param_serialize(
|
|
3181
|
+
method='POST',
|
|
3182
|
+
resource_path='/api/v1/auth/resend-verification',
|
|
3183
|
+
path_params=_path_params,
|
|
3184
|
+
query_params=_query_params,
|
|
3185
|
+
header_params=_header_params,
|
|
3186
|
+
body=_body_params,
|
|
3187
|
+
post_params=_form_params,
|
|
3188
|
+
files=_files,
|
|
3189
|
+
auth_settings=_auth_settings,
|
|
3190
|
+
collection_formats=_collection_formats,
|
|
3191
|
+
_host=_host,
|
|
3192
|
+
_request_auth=_request_auth
|
|
3193
|
+
)
|
|
3194
|
+
|
|
3195
|
+
|
|
3196
|
+
|
|
3197
|
+
|
|
3198
|
+
@validate_call
|
|
3199
|
+
async def apps_authentication_api_resend_verification_email(
|
|
3200
|
+
self,
|
|
3201
|
+
resend_verification_schema: ResendVerificationSchema,
|
|
3202
|
+
_request_timeout: Union[
|
|
3203
|
+
None,
|
|
3204
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3205
|
+
Tuple[
|
|
3206
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3207
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3208
|
+
]
|
|
3209
|
+
] = None,
|
|
3210
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3211
|
+
_content_type: Optional[StrictStr] = None,
|
|
3212
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3213
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3214
|
+
) -> Dict[str, object]:
|
|
3215
|
+
"""Resend Verification Email
|
|
3216
|
+
|
|
3217
|
+
Resend verification email (unauthenticated endpoint with rate limiting). Allows users who haven't verified their email to request a new verification email. Rate limited to 3 requests per hour per email to prevent abuse.
|
|
3218
|
+
|
|
3219
|
+
:param resend_verification_schema: (required)
|
|
3220
|
+
:type resend_verification_schema: ResendVerificationSchema
|
|
3221
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3222
|
+
number provided, it will be total request
|
|
3223
|
+
timeout. It can also be a pair (tuple) of
|
|
3224
|
+
(connection, read) timeouts.
|
|
3225
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3226
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3227
|
+
request; this effectively ignores the
|
|
3228
|
+
authentication in the spec for a single request.
|
|
3229
|
+
:type _request_auth: dict, optional
|
|
3230
|
+
:param _content_type: force content-type for the request.
|
|
3231
|
+
:type _content_type: str, Optional
|
|
3232
|
+
:param _headers: set to override the headers for a single
|
|
3233
|
+
request; this effectively ignores the headers
|
|
3234
|
+
in the spec for a single request.
|
|
3235
|
+
:type _headers: dict, optional
|
|
3236
|
+
:param _host_index: set to override the host_index for a single
|
|
3237
|
+
request; this effectively ignores the host_index
|
|
3238
|
+
in the spec for a single request.
|
|
3239
|
+
:type _host_index: int, optional
|
|
3240
|
+
:return: Returns the result object.
|
|
3241
|
+
""" # noqa: E501
|
|
3242
|
+
|
|
3243
|
+
_param = self._apps_authentication_api_resend_verification_email_serialize(
|
|
3244
|
+
resend_verification_schema=resend_verification_schema,
|
|
3245
|
+
_request_auth=_request_auth,
|
|
3246
|
+
_content_type=_content_type,
|
|
3247
|
+
_headers=_headers,
|
|
3248
|
+
_host_index=_host_index
|
|
3249
|
+
)
|
|
3250
|
+
|
|
3251
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3252
|
+
'200': "Dict[str, object]",
|
|
3253
|
+
'400': "Dict[str, object]",
|
|
3254
|
+
'429': "Dict[str, object]",
|
|
3255
|
+
}
|
|
3256
|
+
response_data = await self.api_client.call_api(
|
|
3257
|
+
*_param,
|
|
3258
|
+
_request_timeout=_request_timeout
|
|
3259
|
+
)
|
|
3260
|
+
await response_data.read()
|
|
3261
|
+
return self.api_client.response_deserialize(
|
|
3262
|
+
response_data=response_data,
|
|
3263
|
+
response_types_map=_response_types_map,
|
|
3264
|
+
).data
|
|
3265
|
+
|
|
3266
|
+
|
|
3267
|
+
@validate_call
|
|
3268
|
+
async def apps_authentication_api_resend_verification_email_with_http_info(
|
|
3269
|
+
self,
|
|
3270
|
+
resend_verification_schema: ResendVerificationSchema,
|
|
3271
|
+
_request_timeout: Union[
|
|
3272
|
+
None,
|
|
3273
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3274
|
+
Tuple[
|
|
3275
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3276
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3277
|
+
]
|
|
3278
|
+
] = None,
|
|
3279
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3280
|
+
_content_type: Optional[StrictStr] = None,
|
|
3281
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3282
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3283
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
3284
|
+
"""Resend Verification Email
|
|
3285
|
+
|
|
3286
|
+
Resend verification email (unauthenticated endpoint with rate limiting). Allows users who haven't verified their email to request a new verification email. Rate limited to 3 requests per hour per email to prevent abuse.
|
|
3287
|
+
|
|
3288
|
+
:param resend_verification_schema: (required)
|
|
3289
|
+
:type resend_verification_schema: ResendVerificationSchema
|
|
3290
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3291
|
+
number provided, it will be total request
|
|
3292
|
+
timeout. It can also be a pair (tuple) of
|
|
3293
|
+
(connection, read) timeouts.
|
|
3294
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3295
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3296
|
+
request; this effectively ignores the
|
|
3297
|
+
authentication in the spec for a single request.
|
|
3298
|
+
:type _request_auth: dict, optional
|
|
3299
|
+
:param _content_type: force content-type for the request.
|
|
3300
|
+
:type _content_type: str, Optional
|
|
3301
|
+
:param _headers: set to override the headers for a single
|
|
3302
|
+
request; this effectively ignores the headers
|
|
3303
|
+
in the spec for a single request.
|
|
3304
|
+
:type _headers: dict, optional
|
|
3305
|
+
:param _host_index: set to override the host_index for a single
|
|
3306
|
+
request; this effectively ignores the host_index
|
|
3307
|
+
in the spec for a single request.
|
|
3308
|
+
:type _host_index: int, optional
|
|
3309
|
+
:return: Returns the result object.
|
|
3310
|
+
""" # noqa: E501
|
|
3311
|
+
|
|
3312
|
+
_param = self._apps_authentication_api_resend_verification_email_serialize(
|
|
3313
|
+
resend_verification_schema=resend_verification_schema,
|
|
3314
|
+
_request_auth=_request_auth,
|
|
3315
|
+
_content_type=_content_type,
|
|
3316
|
+
_headers=_headers,
|
|
3317
|
+
_host_index=_host_index
|
|
3318
|
+
)
|
|
3319
|
+
|
|
3320
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3321
|
+
'200': "Dict[str, object]",
|
|
3322
|
+
'400': "Dict[str, object]",
|
|
3323
|
+
'429': "Dict[str, object]",
|
|
3324
|
+
}
|
|
3325
|
+
response_data = await self.api_client.call_api(
|
|
3326
|
+
*_param,
|
|
3327
|
+
_request_timeout=_request_timeout
|
|
3328
|
+
)
|
|
3329
|
+
await response_data.read()
|
|
3330
|
+
return self.api_client.response_deserialize(
|
|
3331
|
+
response_data=response_data,
|
|
3332
|
+
response_types_map=_response_types_map,
|
|
3333
|
+
)
|
|
3334
|
+
|
|
3335
|
+
|
|
3336
|
+
@validate_call
|
|
3337
|
+
async def apps_authentication_api_resend_verification_email_without_preload_content(
|
|
3338
|
+
self,
|
|
3339
|
+
resend_verification_schema: ResendVerificationSchema,
|
|
3340
|
+
_request_timeout: Union[
|
|
3341
|
+
None,
|
|
3342
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3343
|
+
Tuple[
|
|
3344
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3345
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3346
|
+
]
|
|
3347
|
+
] = None,
|
|
3348
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3349
|
+
_content_type: Optional[StrictStr] = None,
|
|
3350
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3351
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3352
|
+
) -> RESTResponseType:
|
|
3353
|
+
"""Resend Verification Email
|
|
3354
|
+
|
|
3355
|
+
Resend verification email (unauthenticated endpoint with rate limiting). Allows users who haven't verified their email to request a new verification email. Rate limited to 3 requests per hour per email to prevent abuse.
|
|
3356
|
+
|
|
3357
|
+
:param resend_verification_schema: (required)
|
|
3358
|
+
:type resend_verification_schema: ResendVerificationSchema
|
|
3359
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3360
|
+
number provided, it will be total request
|
|
3361
|
+
timeout. It can also be a pair (tuple) of
|
|
3362
|
+
(connection, read) timeouts.
|
|
3363
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3364
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3365
|
+
request; this effectively ignores the
|
|
3366
|
+
authentication in the spec for a single request.
|
|
3367
|
+
:type _request_auth: dict, optional
|
|
3368
|
+
:param _content_type: force content-type for the request.
|
|
3369
|
+
:type _content_type: str, Optional
|
|
3370
|
+
:param _headers: set to override the headers for a single
|
|
3371
|
+
request; this effectively ignores the headers
|
|
3372
|
+
in the spec for a single request.
|
|
3373
|
+
:type _headers: dict, optional
|
|
3374
|
+
:param _host_index: set to override the host_index for a single
|
|
3375
|
+
request; this effectively ignores the host_index
|
|
3376
|
+
in the spec for a single request.
|
|
3377
|
+
:type _host_index: int, optional
|
|
3378
|
+
:return: Returns the result object.
|
|
3379
|
+
""" # noqa: E501
|
|
3380
|
+
|
|
3381
|
+
_param = self._apps_authentication_api_resend_verification_email_serialize(
|
|
3382
|
+
resend_verification_schema=resend_verification_schema,
|
|
3383
|
+
_request_auth=_request_auth,
|
|
3384
|
+
_content_type=_content_type,
|
|
3385
|
+
_headers=_headers,
|
|
3386
|
+
_host_index=_host_index
|
|
3387
|
+
)
|
|
3388
|
+
|
|
3389
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3390
|
+
'200': "Dict[str, object]",
|
|
3391
|
+
'400': "Dict[str, object]",
|
|
3392
|
+
'429': "Dict[str, object]",
|
|
3393
|
+
}
|
|
3394
|
+
response_data = await self.api_client.call_api(
|
|
3395
|
+
*_param,
|
|
3396
|
+
_request_timeout=_request_timeout
|
|
3397
|
+
)
|
|
3398
|
+
return response_data.response
|
|
3399
|
+
|
|
3400
|
+
|
|
3401
|
+
def _apps_authentication_api_resend_verification_email_serialize(
|
|
3402
|
+
self,
|
|
3403
|
+
resend_verification_schema,
|
|
3404
|
+
_request_auth,
|
|
3405
|
+
_content_type,
|
|
3406
|
+
_headers,
|
|
3407
|
+
_host_index,
|
|
3408
|
+
) -> RequestSerialized:
|
|
3409
|
+
|
|
3410
|
+
_host = None
|
|
3411
|
+
|
|
3412
|
+
_collection_formats: Dict[str, str] = {
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
_path_params: Dict[str, str] = {}
|
|
3416
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3417
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3418
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3419
|
+
_files: Dict[
|
|
3420
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3421
|
+
] = {}
|
|
3422
|
+
_body_params: Optional[bytes] = None
|
|
3423
|
+
|
|
3424
|
+
# process the path parameters
|
|
3425
|
+
# process the query parameters
|
|
3426
|
+
# process the header parameters
|
|
3427
|
+
# process the form parameters
|
|
3428
|
+
# process the body parameter
|
|
3429
|
+
if resend_verification_schema is not None:
|
|
3430
|
+
_body_params = resend_verification_schema
|
|
3431
|
+
|
|
3432
|
+
|
|
3433
|
+
# set the HTTP header `Accept`
|
|
3434
|
+
if 'Accept' not in _header_params:
|
|
3435
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3436
|
+
[
|
|
3437
|
+
'application/json'
|
|
3438
|
+
]
|
|
3439
|
+
)
|
|
3440
|
+
|
|
3441
|
+
# set the HTTP header `Content-Type`
|
|
3442
|
+
if _content_type:
|
|
3443
|
+
_header_params['Content-Type'] = _content_type
|
|
3444
|
+
else:
|
|
3445
|
+
_default_content_type = (
|
|
3446
|
+
self.api_client.select_header_content_type(
|
|
3447
|
+
[
|
|
3448
|
+
'application/json'
|
|
3449
|
+
]
|
|
3450
|
+
)
|
|
3451
|
+
)
|
|
3452
|
+
if _default_content_type is not None:
|
|
3453
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3454
|
+
|
|
3455
|
+
# authentication setting
|
|
3456
|
+
_auth_settings: List[str] = [
|
|
3457
|
+
]
|
|
3458
|
+
|
|
3459
|
+
return self.api_client.param_serialize(
|
|
3460
|
+
method='POST',
|
|
3461
|
+
resource_path='/api/v1/auth/resend-verification-email',
|
|
3462
|
+
path_params=_path_params,
|
|
3463
|
+
query_params=_query_params,
|
|
3464
|
+
header_params=_header_params,
|
|
3465
|
+
body=_body_params,
|
|
3466
|
+
post_params=_form_params,
|
|
3467
|
+
files=_files,
|
|
3468
|
+
auth_settings=_auth_settings,
|
|
3469
|
+
collection_formats=_collection_formats,
|
|
3470
|
+
_host=_host,
|
|
3471
|
+
_request_auth=_request_auth
|
|
3472
|
+
)
|
|
3473
|
+
|
|
3474
|
+
|
|
3475
|
+
|
|
3476
|
+
|
|
3477
|
+
@validate_call
|
|
3478
|
+
async def apps_authentication_api_reset_password(
|
|
3479
|
+
self,
|
|
3480
|
+
reset_password_schema: ResetPasswordSchema,
|
|
3481
|
+
_request_timeout: Union[
|
|
3482
|
+
None,
|
|
3483
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3484
|
+
Tuple[
|
|
3485
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3486
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3487
|
+
]
|
|
3488
|
+
] = None,
|
|
3489
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3490
|
+
_content_type: Optional[StrictStr] = None,
|
|
3491
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3492
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3493
|
+
) -> None:
|
|
3494
|
+
"""Reset Password
|
|
3495
|
+
|
|
3496
|
+
DEPRECATED: This endpoint used Django's default_token_generator with UID encoding. This flow is no longer supported. All password reset links now use the simpler /password-reset/confirm endpoint with hashed token storage. If you have an old reset link, please request a new one via /forgot-password.
|
|
3497
|
+
|
|
3498
|
+
:param reset_password_schema: (required)
|
|
3499
|
+
:type reset_password_schema: ResetPasswordSchema
|
|
3500
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3501
|
+
number provided, it will be total request
|
|
3502
|
+
timeout. It can also be a pair (tuple) of
|
|
3503
|
+
(connection, read) timeouts.
|
|
3504
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3505
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3506
|
+
request; this effectively ignores the
|
|
3507
|
+
authentication in the spec for a single request.
|
|
3508
|
+
:type _request_auth: dict, optional
|
|
3509
|
+
:param _content_type: force content-type for the request.
|
|
3510
|
+
:type _content_type: str, Optional
|
|
3511
|
+
:param _headers: set to override the headers for a single
|
|
3512
|
+
request; this effectively ignores the headers
|
|
3513
|
+
in the spec for a single request.
|
|
3514
|
+
:type _headers: dict, optional
|
|
3515
|
+
:param _host_index: set to override the host_index for a single
|
|
3516
|
+
request; this effectively ignores the host_index
|
|
3517
|
+
in the spec for a single request.
|
|
3518
|
+
:type _host_index: int, optional
|
|
3519
|
+
:return: Returns the result object.
|
|
3520
|
+
""" # noqa: E501
|
|
3521
|
+
|
|
3522
|
+
_param = self._apps_authentication_api_reset_password_serialize(
|
|
3523
|
+
reset_password_schema=reset_password_schema,
|
|
3524
|
+
_request_auth=_request_auth,
|
|
3525
|
+
_content_type=_content_type,
|
|
3526
|
+
_headers=_headers,
|
|
3527
|
+
_host_index=_host_index
|
|
3528
|
+
)
|
|
3529
|
+
|
|
3530
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3531
|
+
'410': "Dict[str, object]",
|
|
3532
|
+
}
|
|
3533
|
+
response_data = await self.api_client.call_api(
|
|
3534
|
+
*_param,
|
|
3535
|
+
_request_timeout=_request_timeout
|
|
3536
|
+
)
|
|
3537
|
+
await response_data.read()
|
|
3538
|
+
return self.api_client.response_deserialize(
|
|
3539
|
+
response_data=response_data,
|
|
3540
|
+
response_types_map=_response_types_map,
|
|
3541
|
+
).data
|
|
3542
|
+
|
|
3543
|
+
|
|
3544
|
+
@validate_call
|
|
3545
|
+
async def apps_authentication_api_reset_password_with_http_info(
|
|
3546
|
+
self,
|
|
3547
|
+
reset_password_schema: ResetPasswordSchema,
|
|
3548
|
+
_request_timeout: Union[
|
|
3549
|
+
None,
|
|
3550
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3551
|
+
Tuple[
|
|
3552
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3553
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3554
|
+
]
|
|
3555
|
+
] = None,
|
|
3556
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3557
|
+
_content_type: Optional[StrictStr] = None,
|
|
3558
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3559
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3560
|
+
) -> ApiResponse[None]:
|
|
3561
|
+
"""Reset Password
|
|
3562
|
+
|
|
3563
|
+
DEPRECATED: This endpoint used Django's default_token_generator with UID encoding. This flow is no longer supported. All password reset links now use the simpler /password-reset/confirm endpoint with hashed token storage. If you have an old reset link, please request a new one via /forgot-password.
|
|
3564
|
+
|
|
3565
|
+
:param reset_password_schema: (required)
|
|
3566
|
+
:type reset_password_schema: ResetPasswordSchema
|
|
3567
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3568
|
+
number provided, it will be total request
|
|
3569
|
+
timeout. It can also be a pair (tuple) of
|
|
3570
|
+
(connection, read) timeouts.
|
|
3571
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3572
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3573
|
+
request; this effectively ignores the
|
|
3574
|
+
authentication in the spec for a single request.
|
|
3575
|
+
:type _request_auth: dict, optional
|
|
3576
|
+
:param _content_type: force content-type for the request.
|
|
3577
|
+
:type _content_type: str, Optional
|
|
3578
|
+
:param _headers: set to override the headers for a single
|
|
3579
|
+
request; this effectively ignores the headers
|
|
3580
|
+
in the spec for a single request.
|
|
3581
|
+
:type _headers: dict, optional
|
|
3582
|
+
:param _host_index: set to override the host_index for a single
|
|
3583
|
+
request; this effectively ignores the host_index
|
|
3584
|
+
in the spec for a single request.
|
|
3585
|
+
:type _host_index: int, optional
|
|
3586
|
+
:return: Returns the result object.
|
|
3587
|
+
""" # noqa: E501
|
|
3588
|
+
|
|
3589
|
+
_param = self._apps_authentication_api_reset_password_serialize(
|
|
3590
|
+
reset_password_schema=reset_password_schema,
|
|
3591
|
+
_request_auth=_request_auth,
|
|
3592
|
+
_content_type=_content_type,
|
|
3593
|
+
_headers=_headers,
|
|
3594
|
+
_host_index=_host_index
|
|
3595
|
+
)
|
|
3596
|
+
|
|
3597
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3598
|
+
'410': "Dict[str, object]",
|
|
3599
|
+
}
|
|
3600
|
+
response_data = await self.api_client.call_api(
|
|
3601
|
+
*_param,
|
|
3602
|
+
_request_timeout=_request_timeout
|
|
3603
|
+
)
|
|
3604
|
+
await response_data.read()
|
|
3605
|
+
return self.api_client.response_deserialize(
|
|
3606
|
+
response_data=response_data,
|
|
3607
|
+
response_types_map=_response_types_map,
|
|
3608
|
+
)
|
|
3609
|
+
|
|
3610
|
+
|
|
3611
|
+
@validate_call
|
|
3612
|
+
async def apps_authentication_api_reset_password_without_preload_content(
|
|
3613
|
+
self,
|
|
3614
|
+
reset_password_schema: ResetPasswordSchema,
|
|
3615
|
+
_request_timeout: Union[
|
|
3616
|
+
None,
|
|
3617
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3618
|
+
Tuple[
|
|
3619
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3620
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3621
|
+
]
|
|
3622
|
+
] = None,
|
|
3623
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3624
|
+
_content_type: Optional[StrictStr] = None,
|
|
3625
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3626
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3627
|
+
) -> RESTResponseType:
|
|
3628
|
+
"""Reset Password
|
|
3629
|
+
|
|
3630
|
+
DEPRECATED: This endpoint used Django's default_token_generator with UID encoding. This flow is no longer supported. All password reset links now use the simpler /password-reset/confirm endpoint with hashed token storage. If you have an old reset link, please request a new one via /forgot-password.
|
|
3631
|
+
|
|
3632
|
+
:param reset_password_schema: (required)
|
|
3633
|
+
:type reset_password_schema: ResetPasswordSchema
|
|
3634
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3635
|
+
number provided, it will be total request
|
|
3636
|
+
timeout. It can also be a pair (tuple) of
|
|
3637
|
+
(connection, read) timeouts.
|
|
3638
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3639
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3640
|
+
request; this effectively ignores the
|
|
3641
|
+
authentication in the spec for a single request.
|
|
3642
|
+
:type _request_auth: dict, optional
|
|
3643
|
+
:param _content_type: force content-type for the request.
|
|
3644
|
+
:type _content_type: str, Optional
|
|
3645
|
+
:param _headers: set to override the headers for a single
|
|
3646
|
+
request; this effectively ignores the headers
|
|
3647
|
+
in the spec for a single request.
|
|
3648
|
+
:type _headers: dict, optional
|
|
3649
|
+
:param _host_index: set to override the host_index for a single
|
|
3650
|
+
request; this effectively ignores the host_index
|
|
3651
|
+
in the spec for a single request.
|
|
3652
|
+
:type _host_index: int, optional
|
|
3653
|
+
:return: Returns the result object.
|
|
3654
|
+
""" # noqa: E501
|
|
3655
|
+
|
|
3656
|
+
_param = self._apps_authentication_api_reset_password_serialize(
|
|
3657
|
+
reset_password_schema=reset_password_schema,
|
|
3658
|
+
_request_auth=_request_auth,
|
|
3659
|
+
_content_type=_content_type,
|
|
3660
|
+
_headers=_headers,
|
|
3661
|
+
_host_index=_host_index
|
|
3662
|
+
)
|
|
3663
|
+
|
|
3664
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3665
|
+
'410': "Dict[str, object]",
|
|
3666
|
+
}
|
|
3667
|
+
response_data = await self.api_client.call_api(
|
|
3668
|
+
*_param,
|
|
3669
|
+
_request_timeout=_request_timeout
|
|
3670
|
+
)
|
|
3671
|
+
return response_data.response
|
|
3672
|
+
|
|
3673
|
+
|
|
3674
|
+
def _apps_authentication_api_reset_password_serialize(
|
|
3675
|
+
self,
|
|
3676
|
+
reset_password_schema,
|
|
3677
|
+
_request_auth,
|
|
3678
|
+
_content_type,
|
|
3679
|
+
_headers,
|
|
3680
|
+
_host_index,
|
|
3681
|
+
) -> RequestSerialized:
|
|
3682
|
+
|
|
3683
|
+
_host = None
|
|
3684
|
+
|
|
3685
|
+
_collection_formats: Dict[str, str] = {
|
|
3686
|
+
}
|
|
3687
|
+
|
|
3688
|
+
_path_params: Dict[str, str] = {}
|
|
3689
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3690
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3691
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3692
|
+
_files: Dict[
|
|
3693
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3694
|
+
] = {}
|
|
3695
|
+
_body_params: Optional[bytes] = None
|
|
3696
|
+
|
|
3697
|
+
# process the path parameters
|
|
3698
|
+
# process the query parameters
|
|
3699
|
+
# process the header parameters
|
|
3700
|
+
# process the form parameters
|
|
3701
|
+
# process the body parameter
|
|
3702
|
+
if reset_password_schema is not None:
|
|
3703
|
+
_body_params = reset_password_schema
|
|
3704
|
+
|
|
3705
|
+
|
|
3706
|
+
# set the HTTP header `Accept`
|
|
3707
|
+
if 'Accept' not in _header_params:
|
|
3708
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
3709
|
+
[
|
|
3710
|
+
'application/json'
|
|
3711
|
+
]
|
|
3712
|
+
)
|
|
3713
|
+
|
|
3714
|
+
# set the HTTP header `Content-Type`
|
|
3715
|
+
if _content_type:
|
|
3716
|
+
_header_params['Content-Type'] = _content_type
|
|
3717
|
+
else:
|
|
3718
|
+
_default_content_type = (
|
|
3719
|
+
self.api_client.select_header_content_type(
|
|
3720
|
+
[
|
|
3721
|
+
'application/json'
|
|
3722
|
+
]
|
|
3723
|
+
)
|
|
3724
|
+
)
|
|
3725
|
+
if _default_content_type is not None:
|
|
3726
|
+
_header_params['Content-Type'] = _default_content_type
|
|
3727
|
+
|
|
3728
|
+
# authentication setting
|
|
3729
|
+
_auth_settings: List[str] = [
|
|
3730
|
+
]
|
|
3731
|
+
|
|
3732
|
+
return self.api_client.param_serialize(
|
|
3733
|
+
method='POST',
|
|
3734
|
+
resource_path='/api/v1/auth/reset-password',
|
|
3735
|
+
path_params=_path_params,
|
|
3736
|
+
query_params=_query_params,
|
|
3737
|
+
header_params=_header_params,
|
|
3738
|
+
body=_body_params,
|
|
3739
|
+
post_params=_form_params,
|
|
3740
|
+
files=_files,
|
|
3741
|
+
auth_settings=_auth_settings,
|
|
3742
|
+
collection_formats=_collection_formats,
|
|
3743
|
+
_host=_host,
|
|
3744
|
+
_request_auth=_request_auth
|
|
3745
|
+
)
|
|
3746
|
+
|
|
3747
|
+
|
|
3748
|
+
|
|
3749
|
+
|
|
3750
|
+
@validate_call
|
|
3751
|
+
async def apps_authentication_api_test_api_key_auth(
|
|
3752
|
+
self,
|
|
3753
|
+
_request_timeout: Union[
|
|
3754
|
+
None,
|
|
3755
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3756
|
+
Tuple[
|
|
3757
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3758
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3759
|
+
]
|
|
3760
|
+
] = None,
|
|
3761
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3762
|
+
_content_type: Optional[StrictStr] = None,
|
|
3763
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3764
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3765
|
+
) -> None:
|
|
3766
|
+
"""Test Api Key Auth
|
|
3767
|
+
|
|
3768
|
+
Test endpoint for API key authentication.
|
|
3769
|
+
|
|
3770
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3771
|
+
number provided, it will be total request
|
|
3772
|
+
timeout. It can also be a pair (tuple) of
|
|
3773
|
+
(connection, read) timeouts.
|
|
3774
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3775
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3776
|
+
request; this effectively ignores the
|
|
3777
|
+
authentication in the spec for a single request.
|
|
3778
|
+
:type _request_auth: dict, optional
|
|
3779
|
+
:param _content_type: force content-type for the request.
|
|
3780
|
+
:type _content_type: str, Optional
|
|
3781
|
+
:param _headers: set to override the headers for a single
|
|
3782
|
+
request; this effectively ignores the headers
|
|
3783
|
+
in the spec for a single request.
|
|
3784
|
+
:type _headers: dict, optional
|
|
3785
|
+
:param _host_index: set to override the host_index for a single
|
|
3786
|
+
request; this effectively ignores the host_index
|
|
3787
|
+
in the spec for a single request.
|
|
3788
|
+
:type _host_index: int, optional
|
|
3789
|
+
:return: Returns the result object.
|
|
3790
|
+
""" # noqa: E501
|
|
3791
|
+
|
|
3792
|
+
_param = self._apps_authentication_api_test_api_key_auth_serialize(
|
|
3793
|
+
_request_auth=_request_auth,
|
|
3794
|
+
_content_type=_content_type,
|
|
3795
|
+
_headers=_headers,
|
|
3796
|
+
_host_index=_host_index
|
|
3797
|
+
)
|
|
3798
|
+
|
|
3799
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3800
|
+
'200': None,
|
|
3801
|
+
}
|
|
3802
|
+
response_data = await self.api_client.call_api(
|
|
3803
|
+
*_param,
|
|
3804
|
+
_request_timeout=_request_timeout
|
|
3805
|
+
)
|
|
3806
|
+
await response_data.read()
|
|
3807
|
+
return self.api_client.response_deserialize(
|
|
3808
|
+
response_data=response_data,
|
|
3809
|
+
response_types_map=_response_types_map,
|
|
3810
|
+
).data
|
|
3811
|
+
|
|
3812
|
+
|
|
3813
|
+
@validate_call
|
|
3814
|
+
async def apps_authentication_api_test_api_key_auth_with_http_info(
|
|
3815
|
+
self,
|
|
3816
|
+
_request_timeout: Union[
|
|
3817
|
+
None,
|
|
3818
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3819
|
+
Tuple[
|
|
3820
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3821
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3822
|
+
]
|
|
3823
|
+
] = None,
|
|
3824
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3825
|
+
_content_type: Optional[StrictStr] = None,
|
|
3826
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3827
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3828
|
+
) -> ApiResponse[None]:
|
|
3829
|
+
"""Test Api Key Auth
|
|
3830
|
+
|
|
3831
|
+
Test endpoint for API key authentication.
|
|
3832
|
+
|
|
3833
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3834
|
+
number provided, it will be total request
|
|
3835
|
+
timeout. It can also be a pair (tuple) of
|
|
3836
|
+
(connection, read) timeouts.
|
|
3837
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3838
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3839
|
+
request; this effectively ignores the
|
|
3840
|
+
authentication in the spec for a single request.
|
|
3841
|
+
:type _request_auth: dict, optional
|
|
3842
|
+
:param _content_type: force content-type for the request.
|
|
3843
|
+
:type _content_type: str, Optional
|
|
3844
|
+
:param _headers: set to override the headers for a single
|
|
3845
|
+
request; this effectively ignores the headers
|
|
3846
|
+
in the spec for a single request.
|
|
3847
|
+
:type _headers: dict, optional
|
|
3848
|
+
:param _host_index: set to override the host_index for a single
|
|
3849
|
+
request; this effectively ignores the host_index
|
|
3850
|
+
in the spec for a single request.
|
|
3851
|
+
:type _host_index: int, optional
|
|
3852
|
+
:return: Returns the result object.
|
|
3853
|
+
""" # noqa: E501
|
|
3854
|
+
|
|
3855
|
+
_param = self._apps_authentication_api_test_api_key_auth_serialize(
|
|
3856
|
+
_request_auth=_request_auth,
|
|
3857
|
+
_content_type=_content_type,
|
|
3858
|
+
_headers=_headers,
|
|
3859
|
+
_host_index=_host_index
|
|
3860
|
+
)
|
|
3861
|
+
|
|
3862
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3863
|
+
'200': None,
|
|
3864
|
+
}
|
|
3865
|
+
response_data = await self.api_client.call_api(
|
|
3866
|
+
*_param,
|
|
3867
|
+
_request_timeout=_request_timeout
|
|
3868
|
+
)
|
|
3869
|
+
await response_data.read()
|
|
3870
|
+
return self.api_client.response_deserialize(
|
|
3871
|
+
response_data=response_data,
|
|
3872
|
+
response_types_map=_response_types_map,
|
|
3873
|
+
)
|
|
3874
|
+
|
|
3875
|
+
|
|
3876
|
+
@validate_call
|
|
3877
|
+
async def apps_authentication_api_test_api_key_auth_without_preload_content(
|
|
3878
|
+
self,
|
|
3879
|
+
_request_timeout: Union[
|
|
3880
|
+
None,
|
|
3881
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3882
|
+
Tuple[
|
|
3883
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3884
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3885
|
+
]
|
|
3886
|
+
] = None,
|
|
3887
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
3888
|
+
_content_type: Optional[StrictStr] = None,
|
|
3889
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
3890
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
3891
|
+
) -> RESTResponseType:
|
|
3892
|
+
"""Test Api Key Auth
|
|
3893
|
+
|
|
3894
|
+
Test endpoint for API key authentication.
|
|
3895
|
+
|
|
3896
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3897
|
+
number provided, it will be total request
|
|
3898
|
+
timeout. It can also be a pair (tuple) of
|
|
3899
|
+
(connection, read) timeouts.
|
|
3900
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
3901
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
3902
|
+
request; this effectively ignores the
|
|
3903
|
+
authentication in the spec for a single request.
|
|
3904
|
+
:type _request_auth: dict, optional
|
|
3905
|
+
:param _content_type: force content-type for the request.
|
|
3906
|
+
:type _content_type: str, Optional
|
|
3907
|
+
:param _headers: set to override the headers for a single
|
|
3908
|
+
request; this effectively ignores the headers
|
|
3909
|
+
in the spec for a single request.
|
|
3910
|
+
:type _headers: dict, optional
|
|
3911
|
+
:param _host_index: set to override the host_index for a single
|
|
3912
|
+
request; this effectively ignores the host_index
|
|
3913
|
+
in the spec for a single request.
|
|
3914
|
+
:type _host_index: int, optional
|
|
3915
|
+
:return: Returns the result object.
|
|
3916
|
+
""" # noqa: E501
|
|
3917
|
+
|
|
3918
|
+
_param = self._apps_authentication_api_test_api_key_auth_serialize(
|
|
3919
|
+
_request_auth=_request_auth,
|
|
3920
|
+
_content_type=_content_type,
|
|
3921
|
+
_headers=_headers,
|
|
3922
|
+
_host_index=_host_index
|
|
3923
|
+
)
|
|
3924
|
+
|
|
3925
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
3926
|
+
'200': None,
|
|
3927
|
+
}
|
|
3928
|
+
response_data = await self.api_client.call_api(
|
|
3929
|
+
*_param,
|
|
3930
|
+
_request_timeout=_request_timeout
|
|
3931
|
+
)
|
|
3932
|
+
return response_data.response
|
|
3933
|
+
|
|
3934
|
+
|
|
3935
|
+
def _apps_authentication_api_test_api_key_auth_serialize(
|
|
3936
|
+
self,
|
|
3937
|
+
_request_auth,
|
|
3938
|
+
_content_type,
|
|
3939
|
+
_headers,
|
|
3940
|
+
_host_index,
|
|
3941
|
+
) -> RequestSerialized:
|
|
3942
|
+
|
|
3943
|
+
_host = None
|
|
3944
|
+
|
|
3945
|
+
_collection_formats: Dict[str, str] = {
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
_path_params: Dict[str, str] = {}
|
|
3949
|
+
_query_params: List[Tuple[str, str]] = []
|
|
3950
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
3951
|
+
_form_params: List[Tuple[str, str]] = []
|
|
3952
|
+
_files: Dict[
|
|
3953
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
3954
|
+
] = {}
|
|
3955
|
+
_body_params: Optional[bytes] = None
|
|
3956
|
+
|
|
3957
|
+
# process the path parameters
|
|
3958
|
+
# process the query parameters
|
|
3959
|
+
# process the header parameters
|
|
3960
|
+
# process the form parameters
|
|
3961
|
+
# process the body parameter
|
|
3962
|
+
|
|
3963
|
+
|
|
3964
|
+
|
|
3965
|
+
|
|
3966
|
+
# authentication setting
|
|
3967
|
+
_auth_settings: List[str] = [
|
|
3968
|
+
'APIKeyBearer'
|
|
3969
|
+
]
|
|
3970
|
+
|
|
3971
|
+
return self.api_client.param_serialize(
|
|
3972
|
+
method='GET',
|
|
3973
|
+
resource_path='/api/v1/auth/test-api-key',
|
|
3974
|
+
path_params=_path_params,
|
|
3975
|
+
query_params=_query_params,
|
|
3976
|
+
header_params=_header_params,
|
|
3977
|
+
body=_body_params,
|
|
3978
|
+
post_params=_form_params,
|
|
3979
|
+
files=_files,
|
|
3980
|
+
auth_settings=_auth_settings,
|
|
3981
|
+
collection_formats=_collection_formats,
|
|
3982
|
+
_host=_host,
|
|
3983
|
+
_request_auth=_request_auth
|
|
3984
|
+
)
|
|
3985
|
+
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
|
|
3989
|
+
@validate_call
|
|
3990
|
+
async def apps_authentication_api_test_jwt_auth(
|
|
3991
|
+
self,
|
|
3992
|
+
_request_timeout: Union[
|
|
3993
|
+
None,
|
|
3994
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3995
|
+
Tuple[
|
|
3996
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
3997
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
3998
|
+
]
|
|
3999
|
+
] = None,
|
|
4000
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4001
|
+
_content_type: Optional[StrictStr] = None,
|
|
4002
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4003
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4004
|
+
) -> None:
|
|
4005
|
+
"""Test Jwt Auth
|
|
4006
|
+
|
|
4007
|
+
Test endpoint for JWT authentication.
|
|
4008
|
+
|
|
4009
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4010
|
+
number provided, it will be total request
|
|
4011
|
+
timeout. It can also be a pair (tuple) of
|
|
4012
|
+
(connection, read) timeouts.
|
|
4013
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4014
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4015
|
+
request; this effectively ignores the
|
|
4016
|
+
authentication in the spec for a single request.
|
|
4017
|
+
:type _request_auth: dict, optional
|
|
4018
|
+
:param _content_type: force content-type for the request.
|
|
4019
|
+
:type _content_type: str, Optional
|
|
4020
|
+
:param _headers: set to override the headers for a single
|
|
4021
|
+
request; this effectively ignores the headers
|
|
4022
|
+
in the spec for a single request.
|
|
4023
|
+
:type _headers: dict, optional
|
|
4024
|
+
:param _host_index: set to override the host_index for a single
|
|
4025
|
+
request; this effectively ignores the host_index
|
|
4026
|
+
in the spec for a single request.
|
|
4027
|
+
:type _host_index: int, optional
|
|
4028
|
+
:return: Returns the result object.
|
|
4029
|
+
""" # noqa: E501
|
|
4030
|
+
|
|
4031
|
+
_param = self._apps_authentication_api_test_jwt_auth_serialize(
|
|
4032
|
+
_request_auth=_request_auth,
|
|
4033
|
+
_content_type=_content_type,
|
|
4034
|
+
_headers=_headers,
|
|
4035
|
+
_host_index=_host_index
|
|
4036
|
+
)
|
|
4037
|
+
|
|
4038
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4039
|
+
'200': None,
|
|
4040
|
+
}
|
|
4041
|
+
response_data = await self.api_client.call_api(
|
|
4042
|
+
*_param,
|
|
4043
|
+
_request_timeout=_request_timeout
|
|
4044
|
+
)
|
|
4045
|
+
await response_data.read()
|
|
4046
|
+
return self.api_client.response_deserialize(
|
|
4047
|
+
response_data=response_data,
|
|
4048
|
+
response_types_map=_response_types_map,
|
|
4049
|
+
).data
|
|
4050
|
+
|
|
4051
|
+
|
|
4052
|
+
@validate_call
|
|
4053
|
+
async def apps_authentication_api_test_jwt_auth_with_http_info(
|
|
4054
|
+
self,
|
|
4055
|
+
_request_timeout: Union[
|
|
4056
|
+
None,
|
|
4057
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4058
|
+
Tuple[
|
|
4059
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4060
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4061
|
+
]
|
|
4062
|
+
] = None,
|
|
4063
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4064
|
+
_content_type: Optional[StrictStr] = None,
|
|
4065
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4066
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4067
|
+
) -> ApiResponse[None]:
|
|
4068
|
+
"""Test Jwt Auth
|
|
4069
|
+
|
|
4070
|
+
Test endpoint for JWT authentication.
|
|
4071
|
+
|
|
4072
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4073
|
+
number provided, it will be total request
|
|
4074
|
+
timeout. It can also be a pair (tuple) of
|
|
4075
|
+
(connection, read) timeouts.
|
|
4076
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4077
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4078
|
+
request; this effectively ignores the
|
|
4079
|
+
authentication in the spec for a single request.
|
|
4080
|
+
:type _request_auth: dict, optional
|
|
4081
|
+
:param _content_type: force content-type for the request.
|
|
4082
|
+
:type _content_type: str, Optional
|
|
4083
|
+
:param _headers: set to override the headers for a single
|
|
4084
|
+
request; this effectively ignores the headers
|
|
4085
|
+
in the spec for a single request.
|
|
4086
|
+
:type _headers: dict, optional
|
|
4087
|
+
:param _host_index: set to override the host_index for a single
|
|
4088
|
+
request; this effectively ignores the host_index
|
|
4089
|
+
in the spec for a single request.
|
|
4090
|
+
:type _host_index: int, optional
|
|
4091
|
+
:return: Returns the result object.
|
|
4092
|
+
""" # noqa: E501
|
|
4093
|
+
|
|
4094
|
+
_param = self._apps_authentication_api_test_jwt_auth_serialize(
|
|
4095
|
+
_request_auth=_request_auth,
|
|
4096
|
+
_content_type=_content_type,
|
|
4097
|
+
_headers=_headers,
|
|
4098
|
+
_host_index=_host_index
|
|
4099
|
+
)
|
|
4100
|
+
|
|
4101
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4102
|
+
'200': None,
|
|
4103
|
+
}
|
|
4104
|
+
response_data = await self.api_client.call_api(
|
|
4105
|
+
*_param,
|
|
4106
|
+
_request_timeout=_request_timeout
|
|
4107
|
+
)
|
|
4108
|
+
await response_data.read()
|
|
4109
|
+
return self.api_client.response_deserialize(
|
|
4110
|
+
response_data=response_data,
|
|
4111
|
+
response_types_map=_response_types_map,
|
|
4112
|
+
)
|
|
4113
|
+
|
|
4114
|
+
|
|
4115
|
+
@validate_call
|
|
4116
|
+
async def apps_authentication_api_test_jwt_auth_without_preload_content(
|
|
4117
|
+
self,
|
|
4118
|
+
_request_timeout: Union[
|
|
4119
|
+
None,
|
|
4120
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4121
|
+
Tuple[
|
|
4122
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4123
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4124
|
+
]
|
|
4125
|
+
] = None,
|
|
4126
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4127
|
+
_content_type: Optional[StrictStr] = None,
|
|
4128
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4129
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4130
|
+
) -> RESTResponseType:
|
|
4131
|
+
"""Test Jwt Auth
|
|
4132
|
+
|
|
4133
|
+
Test endpoint for JWT authentication.
|
|
4134
|
+
|
|
4135
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4136
|
+
number provided, it will be total request
|
|
4137
|
+
timeout. It can also be a pair (tuple) of
|
|
4138
|
+
(connection, read) timeouts.
|
|
4139
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4140
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4141
|
+
request; this effectively ignores the
|
|
4142
|
+
authentication in the spec for a single request.
|
|
4143
|
+
:type _request_auth: dict, optional
|
|
4144
|
+
:param _content_type: force content-type for the request.
|
|
4145
|
+
:type _content_type: str, Optional
|
|
4146
|
+
:param _headers: set to override the headers for a single
|
|
4147
|
+
request; this effectively ignores the headers
|
|
4148
|
+
in the spec for a single request.
|
|
4149
|
+
:type _headers: dict, optional
|
|
4150
|
+
:param _host_index: set to override the host_index for a single
|
|
4151
|
+
request; this effectively ignores the host_index
|
|
4152
|
+
in the spec for a single request.
|
|
4153
|
+
:type _host_index: int, optional
|
|
4154
|
+
:return: Returns the result object.
|
|
4155
|
+
""" # noqa: E501
|
|
4156
|
+
|
|
4157
|
+
_param = self._apps_authentication_api_test_jwt_auth_serialize(
|
|
4158
|
+
_request_auth=_request_auth,
|
|
4159
|
+
_content_type=_content_type,
|
|
4160
|
+
_headers=_headers,
|
|
4161
|
+
_host_index=_host_index
|
|
4162
|
+
)
|
|
4163
|
+
|
|
4164
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4165
|
+
'200': None,
|
|
4166
|
+
}
|
|
4167
|
+
response_data = await self.api_client.call_api(
|
|
4168
|
+
*_param,
|
|
4169
|
+
_request_timeout=_request_timeout
|
|
4170
|
+
)
|
|
4171
|
+
return response_data.response
|
|
4172
|
+
|
|
4173
|
+
|
|
4174
|
+
def _apps_authentication_api_test_jwt_auth_serialize(
|
|
4175
|
+
self,
|
|
4176
|
+
_request_auth,
|
|
4177
|
+
_content_type,
|
|
4178
|
+
_headers,
|
|
4179
|
+
_host_index,
|
|
4180
|
+
) -> RequestSerialized:
|
|
4181
|
+
|
|
4182
|
+
_host = None
|
|
4183
|
+
|
|
4184
|
+
_collection_formats: Dict[str, str] = {
|
|
4185
|
+
}
|
|
4186
|
+
|
|
4187
|
+
_path_params: Dict[str, str] = {}
|
|
4188
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4189
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4190
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4191
|
+
_files: Dict[
|
|
4192
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4193
|
+
] = {}
|
|
4194
|
+
_body_params: Optional[bytes] = None
|
|
4195
|
+
|
|
4196
|
+
# process the path parameters
|
|
4197
|
+
# process the query parameters
|
|
4198
|
+
# process the header parameters
|
|
4199
|
+
# process the form parameters
|
|
4200
|
+
# process the body parameter
|
|
4201
|
+
|
|
4202
|
+
|
|
4203
|
+
|
|
4204
|
+
|
|
4205
|
+
# authentication setting
|
|
4206
|
+
_auth_settings: List[str] = [
|
|
4207
|
+
'JWTBearer'
|
|
4208
|
+
]
|
|
4209
|
+
|
|
4210
|
+
return self.api_client.param_serialize(
|
|
4211
|
+
method='GET',
|
|
4212
|
+
resource_path='/api/v1/auth/test-auth',
|
|
4213
|
+
path_params=_path_params,
|
|
4214
|
+
query_params=_query_params,
|
|
4215
|
+
header_params=_header_params,
|
|
4216
|
+
body=_body_params,
|
|
4217
|
+
post_params=_form_params,
|
|
4218
|
+
files=_files,
|
|
4219
|
+
auth_settings=_auth_settings,
|
|
4220
|
+
collection_formats=_collection_formats,
|
|
4221
|
+
_host=_host,
|
|
4222
|
+
_request_auth=_request_auth
|
|
4223
|
+
)
|
|
4224
|
+
|
|
4225
|
+
|
|
4226
|
+
|
|
4227
|
+
|
|
4228
|
+
@validate_call
|
|
4229
|
+
async def apps_authentication_api_verify_email(
|
|
4230
|
+
self,
|
|
4231
|
+
token: StrictStr,
|
|
4232
|
+
_request_timeout: Union[
|
|
4233
|
+
None,
|
|
4234
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4235
|
+
Tuple[
|
|
4236
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4237
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4238
|
+
]
|
|
4239
|
+
] = None,
|
|
4240
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4241
|
+
_content_type: Optional[StrictStr] = None,
|
|
4242
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4243
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4244
|
+
) -> Dict[str, object]:
|
|
4245
|
+
"""Verify Email
|
|
4246
|
+
|
|
4247
|
+
Verify email address (query parameter format).
|
|
4248
|
+
|
|
4249
|
+
:param token: (required)
|
|
4250
|
+
:type token: str
|
|
4251
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4252
|
+
number provided, it will be total request
|
|
4253
|
+
timeout. It can also be a pair (tuple) of
|
|
4254
|
+
(connection, read) timeouts.
|
|
4255
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4256
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4257
|
+
request; this effectively ignores the
|
|
4258
|
+
authentication in the spec for a single request.
|
|
4259
|
+
:type _request_auth: dict, optional
|
|
4260
|
+
:param _content_type: force content-type for the request.
|
|
4261
|
+
:type _content_type: str, Optional
|
|
4262
|
+
:param _headers: set to override the headers for a single
|
|
4263
|
+
request; this effectively ignores the headers
|
|
4264
|
+
in the spec for a single request.
|
|
4265
|
+
:type _headers: dict, optional
|
|
4266
|
+
:param _host_index: set to override the host_index for a single
|
|
4267
|
+
request; this effectively ignores the host_index
|
|
4268
|
+
in the spec for a single request.
|
|
4269
|
+
:type _host_index: int, optional
|
|
4270
|
+
:return: Returns the result object.
|
|
4271
|
+
""" # noqa: E501
|
|
4272
|
+
|
|
4273
|
+
_param = self._apps_authentication_api_verify_email_serialize(
|
|
4274
|
+
token=token,
|
|
4275
|
+
_request_auth=_request_auth,
|
|
4276
|
+
_content_type=_content_type,
|
|
4277
|
+
_headers=_headers,
|
|
4278
|
+
_host_index=_host_index
|
|
4279
|
+
)
|
|
4280
|
+
|
|
4281
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4282
|
+
'200': "Dict[str, object]",
|
|
4283
|
+
'400': "Dict[str, object]",
|
|
4284
|
+
}
|
|
4285
|
+
response_data = await self.api_client.call_api(
|
|
4286
|
+
*_param,
|
|
4287
|
+
_request_timeout=_request_timeout
|
|
4288
|
+
)
|
|
4289
|
+
await response_data.read()
|
|
4290
|
+
return self.api_client.response_deserialize(
|
|
4291
|
+
response_data=response_data,
|
|
4292
|
+
response_types_map=_response_types_map,
|
|
4293
|
+
).data
|
|
4294
|
+
|
|
4295
|
+
|
|
4296
|
+
@validate_call
|
|
4297
|
+
async def apps_authentication_api_verify_email_with_http_info(
|
|
4298
|
+
self,
|
|
4299
|
+
token: StrictStr,
|
|
4300
|
+
_request_timeout: Union[
|
|
4301
|
+
None,
|
|
4302
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4303
|
+
Tuple[
|
|
4304
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4305
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4306
|
+
]
|
|
4307
|
+
] = None,
|
|
4308
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4309
|
+
_content_type: Optional[StrictStr] = None,
|
|
4310
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4311
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4312
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
4313
|
+
"""Verify Email
|
|
4314
|
+
|
|
4315
|
+
Verify email address (query parameter format).
|
|
4316
|
+
|
|
4317
|
+
:param token: (required)
|
|
4318
|
+
:type token: str
|
|
4319
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4320
|
+
number provided, it will be total request
|
|
4321
|
+
timeout. It can also be a pair (tuple) of
|
|
4322
|
+
(connection, read) timeouts.
|
|
4323
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4324
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4325
|
+
request; this effectively ignores the
|
|
4326
|
+
authentication in the spec for a single request.
|
|
4327
|
+
:type _request_auth: dict, optional
|
|
4328
|
+
:param _content_type: force content-type for the request.
|
|
4329
|
+
:type _content_type: str, Optional
|
|
4330
|
+
:param _headers: set to override the headers for a single
|
|
4331
|
+
request; this effectively ignores the headers
|
|
4332
|
+
in the spec for a single request.
|
|
4333
|
+
:type _headers: dict, optional
|
|
4334
|
+
:param _host_index: set to override the host_index for a single
|
|
4335
|
+
request; this effectively ignores the host_index
|
|
4336
|
+
in the spec for a single request.
|
|
4337
|
+
:type _host_index: int, optional
|
|
4338
|
+
:return: Returns the result object.
|
|
4339
|
+
""" # noqa: E501
|
|
4340
|
+
|
|
4341
|
+
_param = self._apps_authentication_api_verify_email_serialize(
|
|
4342
|
+
token=token,
|
|
4343
|
+
_request_auth=_request_auth,
|
|
4344
|
+
_content_type=_content_type,
|
|
4345
|
+
_headers=_headers,
|
|
4346
|
+
_host_index=_host_index
|
|
4347
|
+
)
|
|
4348
|
+
|
|
4349
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4350
|
+
'200': "Dict[str, object]",
|
|
4351
|
+
'400': "Dict[str, object]",
|
|
4352
|
+
}
|
|
4353
|
+
response_data = await self.api_client.call_api(
|
|
4354
|
+
*_param,
|
|
4355
|
+
_request_timeout=_request_timeout
|
|
4356
|
+
)
|
|
4357
|
+
await response_data.read()
|
|
4358
|
+
return self.api_client.response_deserialize(
|
|
4359
|
+
response_data=response_data,
|
|
4360
|
+
response_types_map=_response_types_map,
|
|
4361
|
+
)
|
|
4362
|
+
|
|
4363
|
+
|
|
4364
|
+
@validate_call
|
|
4365
|
+
async def apps_authentication_api_verify_email_without_preload_content(
|
|
4366
|
+
self,
|
|
4367
|
+
token: StrictStr,
|
|
4368
|
+
_request_timeout: Union[
|
|
4369
|
+
None,
|
|
4370
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4371
|
+
Tuple[
|
|
4372
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4373
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4374
|
+
]
|
|
4375
|
+
] = None,
|
|
4376
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4377
|
+
_content_type: Optional[StrictStr] = None,
|
|
4378
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4379
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4380
|
+
) -> RESTResponseType:
|
|
4381
|
+
"""Verify Email
|
|
4382
|
+
|
|
4383
|
+
Verify email address (query parameter format).
|
|
4384
|
+
|
|
4385
|
+
:param token: (required)
|
|
4386
|
+
:type token: str
|
|
4387
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4388
|
+
number provided, it will be total request
|
|
4389
|
+
timeout. It can also be a pair (tuple) of
|
|
4390
|
+
(connection, read) timeouts.
|
|
4391
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4392
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4393
|
+
request; this effectively ignores the
|
|
4394
|
+
authentication in the spec for a single request.
|
|
4395
|
+
:type _request_auth: dict, optional
|
|
4396
|
+
:param _content_type: force content-type for the request.
|
|
4397
|
+
:type _content_type: str, Optional
|
|
4398
|
+
:param _headers: set to override the headers for a single
|
|
4399
|
+
request; this effectively ignores the headers
|
|
4400
|
+
in the spec for a single request.
|
|
4401
|
+
:type _headers: dict, optional
|
|
4402
|
+
:param _host_index: set to override the host_index for a single
|
|
4403
|
+
request; this effectively ignores the host_index
|
|
4404
|
+
in the spec for a single request.
|
|
4405
|
+
:type _host_index: int, optional
|
|
4406
|
+
:return: Returns the result object.
|
|
4407
|
+
""" # noqa: E501
|
|
4408
|
+
|
|
4409
|
+
_param = self._apps_authentication_api_verify_email_serialize(
|
|
4410
|
+
token=token,
|
|
4411
|
+
_request_auth=_request_auth,
|
|
4412
|
+
_content_type=_content_type,
|
|
4413
|
+
_headers=_headers,
|
|
4414
|
+
_host_index=_host_index
|
|
4415
|
+
)
|
|
4416
|
+
|
|
4417
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4418
|
+
'200': "Dict[str, object]",
|
|
4419
|
+
'400': "Dict[str, object]",
|
|
4420
|
+
}
|
|
4421
|
+
response_data = await self.api_client.call_api(
|
|
4422
|
+
*_param,
|
|
4423
|
+
_request_timeout=_request_timeout
|
|
4424
|
+
)
|
|
4425
|
+
return response_data.response
|
|
4426
|
+
|
|
4427
|
+
|
|
4428
|
+
def _apps_authentication_api_verify_email_serialize(
|
|
4429
|
+
self,
|
|
4430
|
+
token,
|
|
4431
|
+
_request_auth,
|
|
4432
|
+
_content_type,
|
|
4433
|
+
_headers,
|
|
4434
|
+
_host_index,
|
|
4435
|
+
) -> RequestSerialized:
|
|
4436
|
+
|
|
4437
|
+
_host = None
|
|
4438
|
+
|
|
4439
|
+
_collection_formats: Dict[str, str] = {
|
|
4440
|
+
}
|
|
4441
|
+
|
|
4442
|
+
_path_params: Dict[str, str] = {}
|
|
4443
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4444
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4445
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4446
|
+
_files: Dict[
|
|
4447
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4448
|
+
] = {}
|
|
4449
|
+
_body_params: Optional[bytes] = None
|
|
4450
|
+
|
|
4451
|
+
# process the path parameters
|
|
4452
|
+
# process the query parameters
|
|
4453
|
+
if token is not None:
|
|
4454
|
+
|
|
4455
|
+
_query_params.append(('token', token))
|
|
4456
|
+
|
|
4457
|
+
# process the header parameters
|
|
4458
|
+
# process the form parameters
|
|
4459
|
+
# process the body parameter
|
|
4460
|
+
|
|
4461
|
+
|
|
4462
|
+
# set the HTTP header `Accept`
|
|
4463
|
+
if 'Accept' not in _header_params:
|
|
4464
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4465
|
+
[
|
|
4466
|
+
'application/json'
|
|
4467
|
+
]
|
|
4468
|
+
)
|
|
4469
|
+
|
|
4470
|
+
|
|
4471
|
+
# authentication setting
|
|
4472
|
+
_auth_settings: List[str] = [
|
|
4473
|
+
]
|
|
4474
|
+
|
|
4475
|
+
return self.api_client.param_serialize(
|
|
4476
|
+
method='GET',
|
|
4477
|
+
resource_path='/api/v1/auth/verify-email',
|
|
4478
|
+
path_params=_path_params,
|
|
4479
|
+
query_params=_query_params,
|
|
4480
|
+
header_params=_header_params,
|
|
4481
|
+
body=_body_params,
|
|
4482
|
+
post_params=_form_params,
|
|
4483
|
+
files=_files,
|
|
4484
|
+
auth_settings=_auth_settings,
|
|
4485
|
+
collection_formats=_collection_formats,
|
|
4486
|
+
_host=_host,
|
|
4487
|
+
_request_auth=_request_auth
|
|
4488
|
+
)
|
|
4489
|
+
|
|
4490
|
+
|
|
4491
|
+
|
|
4492
|
+
|
|
4493
|
+
@validate_call
|
|
4494
|
+
async def apps_authentication_api_verify_email_path(
|
|
4495
|
+
self,
|
|
4496
|
+
token: StrictStr,
|
|
4497
|
+
_request_timeout: Union[
|
|
4498
|
+
None,
|
|
4499
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4500
|
+
Tuple[
|
|
4501
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4502
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4503
|
+
]
|
|
4504
|
+
] = None,
|
|
4505
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4506
|
+
_content_type: Optional[StrictStr] = None,
|
|
4507
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4508
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4509
|
+
) -> Dict[str, object]:
|
|
4510
|
+
"""Verify Email Path
|
|
4511
|
+
|
|
4512
|
+
Verify email address (path parameter format for backwards compatibility).
|
|
4513
|
+
|
|
4514
|
+
:param token: (required)
|
|
4515
|
+
:type token: str
|
|
4516
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4517
|
+
number provided, it will be total request
|
|
4518
|
+
timeout. It can also be a pair (tuple) of
|
|
4519
|
+
(connection, read) timeouts.
|
|
4520
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4521
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4522
|
+
request; this effectively ignores the
|
|
4523
|
+
authentication in the spec for a single request.
|
|
4524
|
+
:type _request_auth: dict, optional
|
|
4525
|
+
:param _content_type: force content-type for the request.
|
|
4526
|
+
:type _content_type: str, Optional
|
|
4527
|
+
:param _headers: set to override the headers for a single
|
|
4528
|
+
request; this effectively ignores the headers
|
|
4529
|
+
in the spec for a single request.
|
|
4530
|
+
:type _headers: dict, optional
|
|
4531
|
+
:param _host_index: set to override the host_index for a single
|
|
4532
|
+
request; this effectively ignores the host_index
|
|
4533
|
+
in the spec for a single request.
|
|
4534
|
+
:type _host_index: int, optional
|
|
4535
|
+
:return: Returns the result object.
|
|
4536
|
+
""" # noqa: E501
|
|
4537
|
+
|
|
4538
|
+
_param = self._apps_authentication_api_verify_email_path_serialize(
|
|
4539
|
+
token=token,
|
|
4540
|
+
_request_auth=_request_auth,
|
|
4541
|
+
_content_type=_content_type,
|
|
4542
|
+
_headers=_headers,
|
|
4543
|
+
_host_index=_host_index
|
|
4544
|
+
)
|
|
4545
|
+
|
|
4546
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4547
|
+
'200': "Dict[str, object]",
|
|
4548
|
+
'400': "Dict[str, object]",
|
|
4549
|
+
}
|
|
4550
|
+
response_data = await self.api_client.call_api(
|
|
4551
|
+
*_param,
|
|
4552
|
+
_request_timeout=_request_timeout
|
|
4553
|
+
)
|
|
4554
|
+
await response_data.read()
|
|
4555
|
+
return self.api_client.response_deserialize(
|
|
4556
|
+
response_data=response_data,
|
|
4557
|
+
response_types_map=_response_types_map,
|
|
4558
|
+
).data
|
|
4559
|
+
|
|
4560
|
+
|
|
4561
|
+
@validate_call
|
|
4562
|
+
async def apps_authentication_api_verify_email_path_with_http_info(
|
|
4563
|
+
self,
|
|
4564
|
+
token: StrictStr,
|
|
4565
|
+
_request_timeout: Union[
|
|
4566
|
+
None,
|
|
4567
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4568
|
+
Tuple[
|
|
4569
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4570
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4571
|
+
]
|
|
4572
|
+
] = None,
|
|
4573
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4574
|
+
_content_type: Optional[StrictStr] = None,
|
|
4575
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4576
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4577
|
+
) -> ApiResponse[Dict[str, object]]:
|
|
4578
|
+
"""Verify Email Path
|
|
4579
|
+
|
|
4580
|
+
Verify email address (path parameter format for backwards compatibility).
|
|
4581
|
+
|
|
4582
|
+
:param token: (required)
|
|
4583
|
+
:type token: str
|
|
4584
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4585
|
+
number provided, it will be total request
|
|
4586
|
+
timeout. It can also be a pair (tuple) of
|
|
4587
|
+
(connection, read) timeouts.
|
|
4588
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4589
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4590
|
+
request; this effectively ignores the
|
|
4591
|
+
authentication in the spec for a single request.
|
|
4592
|
+
:type _request_auth: dict, optional
|
|
4593
|
+
:param _content_type: force content-type for the request.
|
|
4594
|
+
:type _content_type: str, Optional
|
|
4595
|
+
:param _headers: set to override the headers for a single
|
|
4596
|
+
request; this effectively ignores the headers
|
|
4597
|
+
in the spec for a single request.
|
|
4598
|
+
:type _headers: dict, optional
|
|
4599
|
+
:param _host_index: set to override the host_index for a single
|
|
4600
|
+
request; this effectively ignores the host_index
|
|
4601
|
+
in the spec for a single request.
|
|
4602
|
+
:type _host_index: int, optional
|
|
4603
|
+
:return: Returns the result object.
|
|
4604
|
+
""" # noqa: E501
|
|
4605
|
+
|
|
4606
|
+
_param = self._apps_authentication_api_verify_email_path_serialize(
|
|
4607
|
+
token=token,
|
|
4608
|
+
_request_auth=_request_auth,
|
|
4609
|
+
_content_type=_content_type,
|
|
4610
|
+
_headers=_headers,
|
|
4611
|
+
_host_index=_host_index
|
|
4612
|
+
)
|
|
4613
|
+
|
|
4614
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4615
|
+
'200': "Dict[str, object]",
|
|
4616
|
+
'400': "Dict[str, object]",
|
|
4617
|
+
}
|
|
4618
|
+
response_data = await self.api_client.call_api(
|
|
4619
|
+
*_param,
|
|
4620
|
+
_request_timeout=_request_timeout
|
|
4621
|
+
)
|
|
4622
|
+
await response_data.read()
|
|
4623
|
+
return self.api_client.response_deserialize(
|
|
4624
|
+
response_data=response_data,
|
|
4625
|
+
response_types_map=_response_types_map,
|
|
4626
|
+
)
|
|
4627
|
+
|
|
4628
|
+
|
|
4629
|
+
@validate_call
|
|
4630
|
+
async def apps_authentication_api_verify_email_path_without_preload_content(
|
|
4631
|
+
self,
|
|
4632
|
+
token: StrictStr,
|
|
4633
|
+
_request_timeout: Union[
|
|
4634
|
+
None,
|
|
4635
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4636
|
+
Tuple[
|
|
4637
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
4638
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
4639
|
+
]
|
|
4640
|
+
] = None,
|
|
4641
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
4642
|
+
_content_type: Optional[StrictStr] = None,
|
|
4643
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
4644
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
4645
|
+
) -> RESTResponseType:
|
|
4646
|
+
"""Verify Email Path
|
|
4647
|
+
|
|
4648
|
+
Verify email address (path parameter format for backwards compatibility).
|
|
4649
|
+
|
|
4650
|
+
:param token: (required)
|
|
4651
|
+
:type token: str
|
|
4652
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
4653
|
+
number provided, it will be total request
|
|
4654
|
+
timeout. It can also be a pair (tuple) of
|
|
4655
|
+
(connection, read) timeouts.
|
|
4656
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
4657
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
4658
|
+
request; this effectively ignores the
|
|
4659
|
+
authentication in the spec for a single request.
|
|
4660
|
+
:type _request_auth: dict, optional
|
|
4661
|
+
:param _content_type: force content-type for the request.
|
|
4662
|
+
:type _content_type: str, Optional
|
|
4663
|
+
:param _headers: set to override the headers for a single
|
|
4664
|
+
request; this effectively ignores the headers
|
|
4665
|
+
in the spec for a single request.
|
|
4666
|
+
:type _headers: dict, optional
|
|
4667
|
+
:param _host_index: set to override the host_index for a single
|
|
4668
|
+
request; this effectively ignores the host_index
|
|
4669
|
+
in the spec for a single request.
|
|
4670
|
+
:type _host_index: int, optional
|
|
4671
|
+
:return: Returns the result object.
|
|
4672
|
+
""" # noqa: E501
|
|
4673
|
+
|
|
4674
|
+
_param = self._apps_authentication_api_verify_email_path_serialize(
|
|
4675
|
+
token=token,
|
|
4676
|
+
_request_auth=_request_auth,
|
|
4677
|
+
_content_type=_content_type,
|
|
4678
|
+
_headers=_headers,
|
|
4679
|
+
_host_index=_host_index
|
|
4680
|
+
)
|
|
4681
|
+
|
|
4682
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
4683
|
+
'200': "Dict[str, object]",
|
|
4684
|
+
'400': "Dict[str, object]",
|
|
4685
|
+
}
|
|
4686
|
+
response_data = await self.api_client.call_api(
|
|
4687
|
+
*_param,
|
|
4688
|
+
_request_timeout=_request_timeout
|
|
4689
|
+
)
|
|
4690
|
+
return response_data.response
|
|
4691
|
+
|
|
4692
|
+
|
|
4693
|
+
def _apps_authentication_api_verify_email_path_serialize(
|
|
4694
|
+
self,
|
|
4695
|
+
token,
|
|
4696
|
+
_request_auth,
|
|
4697
|
+
_content_type,
|
|
4698
|
+
_headers,
|
|
4699
|
+
_host_index,
|
|
4700
|
+
) -> RequestSerialized:
|
|
4701
|
+
|
|
4702
|
+
_host = None
|
|
4703
|
+
|
|
4704
|
+
_collection_formats: Dict[str, str] = {
|
|
4705
|
+
}
|
|
4706
|
+
|
|
4707
|
+
_path_params: Dict[str, str] = {}
|
|
4708
|
+
_query_params: List[Tuple[str, str]] = []
|
|
4709
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
4710
|
+
_form_params: List[Tuple[str, str]] = []
|
|
4711
|
+
_files: Dict[
|
|
4712
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
4713
|
+
] = {}
|
|
4714
|
+
_body_params: Optional[bytes] = None
|
|
4715
|
+
|
|
4716
|
+
# process the path parameters
|
|
4717
|
+
if token is not None:
|
|
4718
|
+
_path_params['token'] = token
|
|
4719
|
+
# process the query parameters
|
|
4720
|
+
# process the header parameters
|
|
4721
|
+
# process the form parameters
|
|
4722
|
+
# process the body parameter
|
|
4723
|
+
|
|
4724
|
+
|
|
4725
|
+
# set the HTTP header `Accept`
|
|
4726
|
+
if 'Accept' not in _header_params:
|
|
4727
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
4728
|
+
[
|
|
4729
|
+
'application/json'
|
|
4730
|
+
]
|
|
4731
|
+
)
|
|
4732
|
+
|
|
4733
|
+
|
|
4734
|
+
# authentication setting
|
|
4735
|
+
_auth_settings: List[str] = [
|
|
4736
|
+
]
|
|
4737
|
+
|
|
4738
|
+
return self.api_client.param_serialize(
|
|
4739
|
+
method='GET',
|
|
4740
|
+
resource_path='/api/v1/auth/verify-email/{token}',
|
|
4741
|
+
path_params=_path_params,
|
|
4742
|
+
query_params=_query_params,
|
|
4743
|
+
header_params=_header_params,
|
|
4744
|
+
body=_body_params,
|
|
4745
|
+
post_params=_form_params,
|
|
4746
|
+
files=_files,
|
|
4747
|
+
auth_settings=_auth_settings,
|
|
4748
|
+
collection_formats=_collection_formats,
|
|
4749
|
+
_host=_host,
|
|
4750
|
+
_request_auth=_request_auth
|
|
4751
|
+
)
|
|
4752
|
+
|
|
4753
|
+
|