mudbase 1.1.4
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +21 -0
- data/Rakefile +10 -0
- data/docs/AddCustomRoleRequest.md +28 -0
- data/docs/AddCustomRoleRequestDefaultPermissionsInner.md +20 -0
- data/docs/AddParticipant200Response.md +20 -0
- data/docs/AddParticipant200ResponseData.md +18 -0
- data/docs/AddParticipant200ResponseDataParticipantsInner.md +22 -0
- data/docs/AddParticipantRequest.md +20 -0
- data/docs/AddReaction200Response.md +20 -0
- data/docs/AddReaction200ResponseDataInner.md +20 -0
- data/docs/AddReactionRequest.md +18 -0
- data/docs/ApiKey.md +36 -0
- data/docs/ApiKeyPermission.md +20 -0
- data/docs/ApiKeyUsage.md +20 -0
- data/docs/ApiKeyUsageResponse.md +24 -0
- data/docs/ApiKeyWithSecret.md +38 -0
- data/docs/AuthConfig.md +20 -0
- data/docs/AuthProvider.md +22 -0
- data/docs/AuthResponse.md +22 -0
- data/docs/AuthenticationApi.md +1066 -0
- data/docs/Billing.md +22 -0
- data/docs/BillingApi.md +677 -0
- data/docs/BillingLastPayment.md +22 -0
- data/docs/BroadcastNonCustodialTransaction200Response.md +22 -0
- data/docs/BroadcastNonCustodialTransaction200ResponseData.md +24 -0
- data/docs/BroadcastNonCustodialTransactionRequest.md +22 -0
- data/docs/Bucket.md +28 -0
- data/docs/BucketListResponse.md +22 -0
- data/docs/BucketResponse.md +22 -0
- data/docs/BucketsApi.md +385 -0
- data/docs/ChangePasswordRequest.md +20 -0
- data/docs/ChatApi.md +907 -0
- data/docs/CheckFeatureAccess200Response.md +20 -0
- data/docs/CheckSubscription200Response.md +20 -0
- data/docs/CheckSubscription200ResponseSubscription.md +20 -0
- data/docs/CheckUserPresence200Response.md +20 -0
- data/docs/CheckUserPresence200ResponsePresenceValue.md +20 -0
- data/docs/CheckUserPresenceRequest.md +18 -0
- data/docs/Collection.md +34 -0
- data/docs/CollectionsApi.md +367 -0
- data/docs/ComplianceApi.md +77 -0
- data/docs/ConfirmDirectUpload400Response.md +20 -0
- data/docs/ConfirmDirectUploadRequest.md +30 -0
- data/docs/ConfirmLocalPasswordResetWithOtpRequest.md +24 -0
- data/docs/ConfirmUploadResponse.md +22 -0
- data/docs/ConfirmUploadResponseScan.md +24 -0
- data/docs/ConvertAnonymousAccount200Response.md +22 -0
- data/docs/ConvertAnonymousAccountRequest.md +24 -0
- data/docs/CreateAnonymousSession200Response.md +24 -0
- data/docs/CreateAnonymousSession200ResponseUser.md +28 -0
- data/docs/CreateAnonymousSessionRequest.md +20 -0
- data/docs/CreateApiKeyRequest.md +26 -0
- data/docs/CreateBucketRequest.md +22 -0
- data/docs/CreateChat201Response.md +20 -0
- data/docs/CreateChat201ResponseData.md +26 -0
- data/docs/CreateChatRequest.md +26 -0
- data/docs/CreateCheckoutSession200Response.md +20 -0
- data/docs/CreateCheckoutSession200ResponseData.md +38 -0
- data/docs/CreateCheckoutSession200ResponseDataPaymentOptionsInner.md +28 -0
- data/docs/CreateCheckoutSession400Response.md +18 -0
- data/docs/CreateCheckoutSessionRequest.md +26 -0
- data/docs/CreateCheckoutSessionRequestCustomerInfo.md +20 -0
- data/docs/CreateCollection201Response.md +20 -0
- data/docs/CreateCollectionRequest.md +26 -0
- data/docs/CreateFunctionRequest.md +26 -0
- data/docs/CreateProjectRequest.md +22 -0
- data/docs/CreateWalletWebhook201Response.md +22 -0
- data/docs/CreateWalletWebhookRequest.md +26 -0
- data/docs/CreateWalletWebhookRequestFilters.md +20 -0
- data/docs/DataApi.md +387 -0
- data/docs/DataListResponse.md +20 -0
- data/docs/DataListResponseDataInner.md +22 -0
- data/docs/DataResponse.md +20 -0
- data/docs/DatabaseConfig.md +18 -0
- data/docs/DeleteFunction200Response.md +20 -0
- data/docs/Disable2FARequest.md +20 -0
- data/docs/DownloadBucketFile403Response.md +18 -0
- data/docs/DownloadBucketFile404Response.md +18 -0
- data/docs/EditMessage200Response.md +20 -0
- data/docs/EditMessage200ResponseData.md +22 -0
- data/docs/EditMessageRequest.md +18 -0
- data/docs/EmailRequest.md +28 -0
- data/docs/EmailRequestTo.md +49 -0
- data/docs/EraseUserData200Response.md +20 -0
- data/docs/EraseUserData200ResponseDetails.md +26 -0
- data/docs/EraseUserDataRequest.md +20 -0
- data/docs/Error.md +28 -0
- data/docs/ErrorDetails.md +49 -0
- data/docs/EstimateNonCustodialGas200Response.md +20 -0
- data/docs/EstimateNonCustodialGas200ResponseData.md +38 -0
- data/docs/EstimateNonCustodialGasRequest.md +20 -0
- data/docs/EstimateNonCustodialGasRequestTransaction.md +28 -0
- data/docs/ExecuteFunctionRequest.md +18 -0
- data/docs/ExecuteIntegrationRequest.md +24 -0
- data/docs/ExportUserData200Response.md +32 -0
- data/docs/Field.md +30 -0
- data/docs/FieldDefault.md +51 -0
- data/docs/FileListResponse.md +20 -0
- data/docs/FileMetadata.md +40 -0
- data/docs/FileResponse.md +20 -0
- data/docs/FileUploadResponse.md +20 -0
- data/docs/FilesApi.md +702 -0
- data/docs/Function.md +36 -0
- data/docs/FunctionExecution.md +38 -0
- data/docs/FunctionExecutionResponse.md +20 -0
- data/docs/FunctionExecutionResponseData.md +24 -0
- data/docs/FunctionListResponse.md +20 -0
- data/docs/FunctionListResponseData.md +20 -0
- data/docs/FunctionLogsResponse.md +20 -0
- data/docs/FunctionLogsResponseData.md +20 -0
- data/docs/FunctionResponse.md +20 -0
- data/docs/FunctionStats.md +26 -0
- data/docs/FunctionTrigger.md +30 -0
- data/docs/FunctionsApi.md +1106 -0
- data/docs/GeneratePresignedUploadRequest.md +26 -0
- data/docs/GenerateSignedUrlRequest.md +18 -0
- data/docs/GetActiveUsers200Response.md +22 -0
- data/docs/GetActiveUsers200ResponseUsersInner.md +22 -0
- data/docs/GetAvailableOAuthProviders200Response.md +20 -0
- data/docs/GetAvailableOAuthProviders200ResponseProvidersInner.md +28 -0
- data/docs/GetAvailableRoles200Response.md +20 -0
- data/docs/GetAvailableRoles200ResponseDataInner.md +30 -0
- data/docs/GetCancelParams200Response.md +20 -0
- data/docs/GetCancelParams200ResponseData.md +36 -0
- data/docs/GetCancelParamsRequest.md +22 -0
- data/docs/GetChatDetails200Response.md +20 -0
- data/docs/GetChatDetails200ResponseData.md +22 -0
- data/docs/GetChatDetails200ResponseDataParticipantsInner.md +20 -0
- data/docs/GetChatMessages200Response.md +20 -0
- data/docs/GetChatMessages200ResponseData.md +20 -0
- data/docs/GetChatMessages200ResponseDataMessagesInner.md +24 -0
- data/docs/GetChatMessages200ResponseDataMessagesInnerSender.md +20 -0
- data/docs/GetCheckoutPayment200Response.md +20 -0
- data/docs/GetCheckoutPayment200ResponseData.md +34 -0
- data/docs/GetCurrentUser200Response.md +18 -0
- data/docs/GetEventThroughput200Response.md +26 -0
- data/docs/GetFunctionVersions200Response.md +20 -0
- data/docs/GetFunctionVersions200ResponseData.md +18 -0
- data/docs/GetFunctionVersions200ResponseDataVersionsInner.md +28 -0
- data/docs/GetHistoricalAnalytics200Response.md +24 -0
- data/docs/GetHistoricalAnalytics200ResponseDataInner.md +22 -0
- data/docs/GetIntegrations200Response.md +18 -0
- data/docs/GetIntegrations200ResponseIntegrationsInner.md +24 -0
- data/docs/GetLocalSession200Response.md +20 -0
- data/docs/GetMultiRoleConfig200Response.md +20 -0
- data/docs/GetMultiRoleConfig200ResponseData.md +24 -0
- data/docs/GetNonCustodialBalance200Response.md +20 -0
- data/docs/GetNonCustodialTransactionByHash200Response.md +20 -0
- data/docs/GetNonCustodialTransactionByHash400Response.md +20 -0
- data/docs/GetNonCustodialTransactions200Response.md +22 -0
- data/docs/GetNonCustodialTransactions200ResponsePagination.md +30 -0
- data/docs/GetProjectAnalytics200Response.md +26 -0
- data/docs/GetPublicPlans200Response.md +18 -0
- data/docs/GetRoleElevationStatus200Response.md +18 -0
- data/docs/GetSearchAnalytics200Response.md +24 -0
- data/docs/GetSearchAnalytics200ResponseTopQueriesInner.md +20 -0
- data/docs/GetSearchSuggestions200Response.md +18 -0
- data/docs/GetSpeedUpParams200Response.md +20 -0
- data/docs/GetSpeedUpParams200ResponseData.md +36 -0
- data/docs/GetSpeedUpParamsRequest.md +22 -0
- data/docs/GetUserChats200Response.md +20 -0
- data/docs/GetUserChats200ResponseData.md +20 -0
- data/docs/GetUserChats200ResponseDataChatsInner.md +26 -0
- data/docs/GetUserChats200ResponseDataChatsInnerLastMessage.md +18 -0
- data/docs/GetWalletWebhookLogs200Response.md +20 -0
- data/docs/HandleCryptoPaymentWebhook200Response.md +18 -0
- data/docs/HandleCryptoPaymentWebhookRequest.md +20 -0
- data/docs/HandleCryptoPaymentWebhookRequestData.md +30 -0
- data/docs/HandleFlutterwaveWebhookRequest.md +20 -0
- data/docs/HandleFlutterwaveWebhookRequestData.md +32 -0
- data/docs/HandleFlutterwaveWebhookRequestDataCustomer.md +20 -0
- data/docs/HealthApi.md +136 -0
- data/docs/HealthResponse.md +26 -0
- data/docs/HealthResponseServices.md +26 -0
- data/docs/InitializePaymentForProjectRequest.md +24 -0
- data/docs/InitializePaymentForProjectRequestCustomer.md +20 -0
- data/docs/InitiateOAuth200Response.md +18 -0
- data/docs/InitiateOAuth400Response.md +18 -0
- data/docs/InitiateOAuth404Response.md +18 -0
- data/docs/IntegrationsApi.md +151 -0
- data/docs/InviteMemberRequest.md +20 -0
- data/docs/Limits.md +30 -0
- data/docs/LinkOAuthProvider200Response.md +18 -0
- data/docs/ListCollections200Response.md +20 -0
- data/docs/ListNonCustodialAddresses200Response.md +22 -0
- data/docs/ListOAuthProviders200Response.md +18 -0
- data/docs/ListOAuthProviders200ResponseProvidersInner.md +24 -0
- data/docs/ListWalletWebhooks200Response.md +22 -0
- data/docs/LogSecurityEvent200Response.md +20 -0
- data/docs/LogSecurityEvent200ResponseEvent.md +24 -0
- data/docs/LogSecurityEventRequest.md +22 -0
- data/docs/LogSecurityEventRequestDetails.md +28 -0
- data/docs/LoginLocalUser200Response.md +22 -0
- data/docs/LoginLocalUser200ResponseUser.md +30 -0
- data/docs/LoginLocalUser403Response.md +22 -0
- data/docs/LoginLocalUserRequest.md +22 -0
- data/docs/LoginRequest.md +20 -0
- data/docs/MagicLinkRequest.md +22 -0
- data/docs/MarkMessagesAsRead200Response.md +20 -0
- data/docs/MarkMessagesAsRead200ResponseData.md +18 -0
- data/docs/MarkMessagesAsReadRequest.md +18 -0
- data/docs/Message.md +36 -0
- data/docs/MessageHistoryResponse.md +20 -0
- data/docs/MessageHistoryResponseData.md +20 -0
- data/docs/MessageResponse.md +18 -0
- data/docs/MessageSentResponse.md +20 -0
- data/docs/MessageSentResponseData.md +32 -0
- data/docs/MessageStatsResponse.md +20 -0
- data/docs/MessageStatsResponseData.md +26 -0
- data/docs/MessageStatsResponseDataByStatus.md +22 -0
- data/docs/MessageStatsResponseDataByType.md +22 -0
- data/docs/MessageStatsResponseDataPeriod.md +20 -0
- data/docs/MessagingApi.md +379 -0
- data/docs/MultiRoleFeatureApi.md +654 -0
- data/docs/NonCustodialAddress.md +40 -0
- data/docs/NonCustodialAddressResponse.md +22 -0
- data/docs/OTPSendRequest.md +24 -0
- data/docs/OTPVerifyRequest.md +22 -0
- data/docs/OauthCallback200Response.md +20 -0
- data/docs/OauthSignupWithRole400Response.md +20 -0
- data/docs/Organization.md +42 -0
- data/docs/OrganizationSummary.md +22 -0
- data/docs/Pagination.md +24 -0
- data/docs/PaymentIntent.md +52 -0
- data/docs/PaymentRefund.md +46 -0
- data/docs/PaymentSubscription.md +46 -0
- data/docs/Permission.md +24 -0
- data/docs/Plan.md +26 -0
- data/docs/PresignedPostResponse.md +24 -0
- data/docs/Project.md +40 -0
- data/docs/ProjectSettings.md +30 -0
- data/docs/ProjectSummary.md +22 -0
- data/docs/ProjectUsage.md +26 -0
- data/docs/ProjectUsageResponse.md +20 -0
- data/docs/ProjectUsageStatsResponse.md +22 -0
- data/docs/ProjectUsageStatsResponseProject.md +20 -0
- data/docs/PushNotificationRequest.md +26 -0
- data/docs/RateLimit.md +20 -0
- data/docs/RealTimeAnalyticsApi.md +367 -0
- data/docs/RecordUsageRequest.md +22 -0
- data/docs/RegisterLocalUser201Response.md +28 -0
- data/docs/RegisterLocalUser201ResponseUser.md +28 -0
- data/docs/RegisterLocalUser429Response.md +30 -0
- data/docs/RegisterLocalUserRequest.md +26 -0
- data/docs/RegisterNonCustodialAddressRequest.md +26 -0
- data/docs/RegisterRequest.md +26 -0
- data/docs/RegisterWithRoleRequest.md +26 -0
- data/docs/RemoveParticipantRequest.md +18 -0
- data/docs/RemoveReaction200Response.md +20 -0
- data/docs/RemoveReaction200ResponseDataInner.md +22 -0
- data/docs/RequestLocalPasswordResetRequest.md +20 -0
- data/docs/RequestRoleElevation200Response.md +28 -0
- data/docs/RequestRoleElevationRequest.md +18 -0
- data/docs/ResetLocalPasswordRequest.md +20 -0
- data/docs/RoleElevationApi.md +224 -0
- data/docs/RollbackFunctionRequest.md +18 -0
- data/docs/SMSRequest.md +22 -0
- data/docs/SearchApi.md +239 -0
- data/docs/SearchResponse.md +20 -0
- data/docs/SearchResponseData.md +24 -0
- data/docs/SearchResult.md +22 -0
- data/docs/SearchResultItem.md +20 -0
- data/docs/SendMessage201Response.md +20 -0
- data/docs/SendMessage201ResponseData.md +24 -0
- data/docs/SendMessageRequest.md +24 -0
- data/docs/SessionResponse.md +20 -0
- data/docs/SignedUrlResponse.md +24 -0
- data/docs/SimulateFunctionTriggerRequest.md +22 -0
- data/docs/StorageConfig.md +18 -0
- data/docs/SystemStatusResponse.md +20 -0
- data/docs/SystemStatusResponseData.md +28 -0
- data/docs/SystemStatusResponseDataCpu.md +20 -0
- data/docs/SystemStatusResponseDataDatabase.md +22 -0
- data/docs/SystemStatusResponseDataMemory.md +22 -0
- data/docs/SystemStatusResponseDataRequests.md +24 -0
- data/docs/SystemStatusResponseDataStorage.md +22 -0
- data/docs/TestWalletWebhook200Response.md +20 -0
- data/docs/TestWalletWebhookRequest.md +24 -0
- data/docs/ToggleRoleRequest.md +18 -0
- data/docs/TriggerFunctionWebhook200Response.md +22 -0
- data/docs/TriggerFunctionWebhook400Response.md +20 -0
- data/docs/TriggerFunctionWebhook401Response.md +20 -0
- data/docs/TriggerWebhookRequest.md +26 -0
- data/docs/TwoFASetupResponse.md +22 -0
- data/docs/UnlinkOAuthProvider200Response.md +20 -0
- data/docs/UpdateApiKeyRequest.md +24 -0
- data/docs/UpdateBucketRequest.md +22 -0
- data/docs/UpdateCollectionPermissionsRequest.md +20 -0
- data/docs/UpdateCollectionRequest.md +24 -0
- data/docs/UpdateFunctionRequest.md +34 -0
- data/docs/UpdateFunctionRequestLimits.md +24 -0
- data/docs/UpdateFunctionRequestRetryPolicy.md +22 -0
- data/docs/UpdateMultiRoleSettings200Response.md +22 -0
- data/docs/UpdateMultiRoleSettingsRequest.md +22 -0
- data/docs/UpdateMultiRoleSettingsRequestSettings.md +20 -0
- data/docs/UpdateOrganizationRequest.md +26 -0
- data/docs/UpdateProjectRequest.md +26 -0
- data/docs/UpdateProjectRoleRequest.md +28 -0
- data/docs/UpdateUserProfile200Response.md +20 -0
- data/docs/UpdateUserRequest.md +22 -0
- data/docs/UpdateWalletWebhook200Response.md +20 -0
- data/docs/UpdateWalletWebhookRequest.md +24 -0
- data/docs/UploadFilesToBucketMetadataRequest.md +20 -0
- data/docs/UploadFilesToBucketRequest.md +22 -0
- data/docs/UploadVerificationDocumentsRequest.md +20 -0
- data/docs/UploadVerificationDocumentsRequestDocumentsInner.md +20 -0
- data/docs/Usage.md +30 -0
- data/docs/UsageApi.md +153 -0
- data/docs/UsageResponse.md +24 -0
- data/docs/UsageStatsResponse.md +26 -0
- data/docs/UsageStatsResponsePercentages.md +22 -0
- data/docs/UsageTrendsResponse.md +20 -0
- data/docs/UsageTrendsResponseTrendsInner.md +28 -0
- data/docs/UsageTrendsResponseTrendsInnerId.md +22 -0
- data/docs/User.md +44 -0
- data/docs/UserSummary.md +24 -0
- data/docs/UsersApi.md +901 -0
- data/docs/Verify2FARequest.md +18 -0
- data/docs/VerifyEmailRequest.md +20 -0
- data/docs/VerifyMagicLinkRequest.md +18 -0
- data/docs/VerifyPayment200Response.md +22 -0
- data/docs/VerifyPayment200ResponseData.md +18 -0
- data/docs/VerifyPayment200ResponseDataSubscription.md +24 -0
- data/docs/WalletApi.md +1232 -0
- data/docs/WalletBalance.md +30 -0
- data/docs/WalletTransaction.md +58 -0
- data/docs/WalletTransactionWebhookPayload.md +22 -0
- data/docs/WalletWebhook.md +32 -0
- data/docs/WalletWebhookFilters.md +20 -0
- data/docs/WalletWebhookStats.md +24 -0
- data/docs/WebhookListResponse.md +26 -0
- data/docs/WebhookLog.md +42 -0
- data/docs/WebhookStatsResponse.md +22 -0
- data/docs/WebhookStatsResponseEventStatsInner.md +22 -0
- data/docs/WebhookStatsResponseStatusStatsInner.md +22 -0
- data/docs/WebhooksApi.md +81 -0
- data/git_push.sh +57 -0
- data/lib/mudbase/api/authentication_api.rb +1090 -0
- data/lib/mudbase/api/billing_api.rb +729 -0
- data/lib/mudbase/api/buckets_api.rb +386 -0
- data/lib/mudbase/api/chat_api.rb +968 -0
- data/lib/mudbase/api/collections_api.rb +377 -0
- data/lib/mudbase/api/compliance_api.rb +90 -0
- data/lib/mudbase/api/data_api.rb +423 -0
- data/lib/mudbase/api/files_api.rb +683 -0
- data/lib/mudbase/api/functions_api.rb +1054 -0
- data/lib/mudbase/api/health_api.rb +136 -0
- data/lib/mudbase/api/integrations_api.rb +165 -0
- data/lib/mudbase/api/messaging_api.rb +396 -0
- data/lib/mudbase/api/multi_role_feature_api.rb +699 -0
- data/lib/mudbase/api/real_time_analytics_api.rb +358 -0
- data/lib/mudbase/api/role_elevation_api.rb +236 -0
- data/lib/mudbase/api/search_api.rb +263 -0
- data/lib/mudbase/api/usage_api.rb +152 -0
- data/lib/mudbase/api/users_api.rb +854 -0
- data/lib/mudbase/api/wallet_api.rb +1161 -0
- data/lib/mudbase/api/webhooks_api.rb +85 -0
- data/lib/mudbase/api_client.rb +397 -0
- data/lib/mudbase/api_error.rb +58 -0
- data/lib/mudbase/api_model_base.rb +88 -0
- data/lib/mudbase/configuration.rb +316 -0
- data/lib/mudbase/models/add_custom_role_request.rb +245 -0
- data/lib/mudbase/models/add_custom_role_request_default_permissions_inner.rb +158 -0
- data/lib/mudbase/models/add_participant200_response.rb +156 -0
- data/lib/mudbase/models/add_participant200_response_data.rb +149 -0
- data/lib/mudbase/models/add_participant200_response_data_participants_inner.rb +165 -0
- data/lib/mudbase/models/add_participant_request.rb +207 -0
- data/lib/mudbase/models/add_reaction200_response.rb +158 -0
- data/lib/mudbase/models/add_reaction200_response_data_inner.rb +158 -0
- data/lib/mudbase/models/add_reaction_request.rb +164 -0
- data/lib/mudbase/models/api_key.rb +231 -0
- data/lib/mudbase/models/api_key_permission.rb +209 -0
- data/lib/mudbase/models/api_key_usage.rb +157 -0
- data/lib/mudbase/models/api_key_usage_response.rb +175 -0
- data/lib/mudbase/models/api_key_with_secret.rb +247 -0
- data/lib/mudbase/models/auth_config.rb +162 -0
- data/lib/mudbase/models/auth_provider.rb +166 -0
- data/lib/mudbase/models/auth_response.rb +166 -0
- data/lib/mudbase/models/billing.rb +166 -0
- data/lib/mudbase/models/billing_last_payment.rb +165 -0
- data/lib/mudbase/models/broadcast_non_custodial_transaction200_response.rb +165 -0
- data/lib/mudbase/models/broadcast_non_custodial_transaction200_response_data.rb +175 -0
- data/lib/mudbase/models/broadcast_non_custodial_transaction_request.rb +243 -0
- data/lib/mudbase/models/bucket.rb +193 -0
- data/lib/mudbase/models/bucket_list_response.rb +168 -0
- data/lib/mudbase/models/bucket_response.rb +166 -0
- data/lib/mudbase/models/change_password_request.rb +200 -0
- data/lib/mudbase/models/check_feature_access200_response.rb +156 -0
- data/lib/mudbase/models/check_subscription200_response.rb +156 -0
- data/lib/mudbase/models/check_subscription200_response_subscription.rb +156 -0
- data/lib/mudbase/models/check_user_presence200_response.rb +158 -0
- data/lib/mudbase/models/check_user_presence200_response_presence_value.rb +156 -0
- data/lib/mudbase/models/check_user_presence_request.rb +166 -0
- data/lib/mudbase/models/collection.rb +224 -0
- data/lib/mudbase/models/confirm_direct_upload400_response.rb +156 -0
- data/lib/mudbase/models/confirm_direct_upload_request.rb +236 -0
- data/lib/mudbase/models/confirm_local_password_reset_with_otp_request.rb +280 -0
- data/lib/mudbase/models/confirm_upload_response.rb +200 -0
- data/lib/mudbase/models/confirm_upload_response_scan.rb +176 -0
- data/lib/mudbase/models/convert_anonymous_account200_response.rb +165 -0
- data/lib/mudbase/models/convert_anonymous_account_request.rb +208 -0
- data/lib/mudbase/models/create_anonymous_session200_response.rb +174 -0
- data/lib/mudbase/models/create_anonymous_session200_response_user.rb +192 -0
- data/lib/mudbase/models/create_anonymous_session_request.rb +158 -0
- data/lib/mudbase/models/create_api_key_request.rb +252 -0
- data/lib/mudbase/models/create_bucket_request.rb +188 -0
- data/lib/mudbase/models/create_chat201_response.rb +156 -0
- data/lib/mudbase/models/create_chat201_response_data.rb +185 -0
- data/lib/mudbase/models/create_chat_request.rb +260 -0
- data/lib/mudbase/models/create_checkout_session200_response.rb +156 -0
- data/lib/mudbase/models/create_checkout_session200_response_data.rb +245 -0
- data/lib/mudbase/models/create_checkout_session200_response_data_payment_options_inner.rb +238 -0
- data/lib/mudbase/models/create_checkout_session400_response.rb +147 -0
- data/lib/mudbase/models/create_checkout_session_request.rb +262 -0
- data/lib/mudbase/models/create_checkout_session_request_customer_info.rb +173 -0
- data/lib/mudbase/models/create_collection201_response.rb +156 -0
- data/lib/mudbase/models/create_collection_request.rb +222 -0
- data/lib/mudbase/models/create_function_request.rb +239 -0
- data/lib/mudbase/models/create_project_request.rb +183 -0
- data/lib/mudbase/models/create_wallet_webhook201_response.rb +165 -0
- data/lib/mudbase/models/create_wallet_webhook_request.rb +233 -0
- data/lib/mudbase/models/create_wallet_webhook_request_filters.rb +184 -0
- data/lib/mudbase/models/data_list_response.rb +159 -0
- data/lib/mudbase/models/data_list_response_data_inner.rb +169 -0
- data/lib/mudbase/models/data_response.rb +157 -0
- data/lib/mudbase/models/database_config.rb +150 -0
- data/lib/mudbase/models/delete_function200_response.rb +156 -0
- data/lib/mudbase/models/disable2_fa_request.rb +190 -0
- data/lib/mudbase/models/download_bucket_file403_response.rb +147 -0
- data/lib/mudbase/models/download_bucket_file404_response.rb +147 -0
- data/lib/mudbase/models/edit_message200_response.rb +156 -0
- data/lib/mudbase/models/edit_message200_response_data.rb +165 -0
- data/lib/mudbase/models/edit_message_request.rb +164 -0
- data/lib/mudbase/models/email_request.rb +227 -0
- data/lib/mudbase/models/email_request_to.rb +104 -0
- data/lib/mudbase/models/erase_user_data200_response.rb +156 -0
- data/lib/mudbase/models/erase_user_data200_response_details.rb +183 -0
- data/lib/mudbase/models/erase_user_data_request.rb +198 -0
- data/lib/mudbase/models/error.rb +193 -0
- data/lib/mudbase/models/error_details.rb +104 -0
- data/lib/mudbase/models/estimate_non_custodial_gas200_response.rb +156 -0
- data/lib/mudbase/models/estimate_non_custodial_gas200_response_data.rb +248 -0
- data/lib/mudbase/models/estimate_non_custodial_gas_request.rb +198 -0
- data/lib/mudbase/models/estimate_non_custodial_gas_request_transaction.rb +216 -0
- data/lib/mudbase/models/execute_function_request.rb +148 -0
- data/lib/mudbase/models/execute_integration_request.rb +232 -0
- data/lib/mudbase/models/export_user_data200_response.rb +222 -0
- data/lib/mudbase/models/field.rb +260 -0
- data/lib/mudbase/models/field_default.rb +105 -0
- data/lib/mudbase/models/file_list_response.rb +159 -0
- data/lib/mudbase/models/file_metadata.rb +247 -0
- data/lib/mudbase/models/file_response.rb +157 -0
- data/lib/mudbase/models/file_upload_response.rb +157 -0
- data/lib/mudbase/models/function.rb +229 -0
- data/lib/mudbase/models/function_execution.rb +272 -0
- data/lib/mudbase/models/function_execution_response.rb +157 -0
- data/lib/mudbase/models/function_execution_response_data.rb +175 -0
- data/lib/mudbase/models/function_list_response.rb +157 -0
- data/lib/mudbase/models/function_list_response_data.rb +158 -0
- data/lib/mudbase/models/function_logs_response.rb +157 -0
- data/lib/mudbase/models/function_logs_response_data.rb +158 -0
- data/lib/mudbase/models/function_response.rb +157 -0
- data/lib/mudbase/models/function_stats.rb +184 -0
- data/lib/mudbase/models/function_trigger.rb +261 -0
- data/lib/mudbase/models/generate_presigned_upload_request.rb +221 -0
- data/lib/mudbase/models/generate_signed_url_request.rb +149 -0
- data/lib/mudbase/models/get_active_users200_response.rb +167 -0
- data/lib/mudbase/models/get_active_users200_response_users_inner.rb +165 -0
- data/lib/mudbase/models/get_available_o_auth_providers200_response.rb +158 -0
- data/lib/mudbase/models/get_available_o_auth_providers200_response_providers_inner.rb +196 -0
- data/lib/mudbase/models/get_available_roles200_response.rb +158 -0
- data/lib/mudbase/models/get_available_roles200_response_data_inner.rb +201 -0
- data/lib/mudbase/models/get_cancel_params200_response.rb +156 -0
- data/lib/mudbase/models/get_cancel_params200_response_data.rb +231 -0
- data/lib/mudbase/models/get_cancel_params_request.rb +208 -0
- data/lib/mudbase/models/get_chat_details200_response.rb +156 -0
- data/lib/mudbase/models/get_chat_details200_response_data.rb +167 -0
- data/lib/mudbase/models/get_chat_details200_response_data_participants_inner.rb +156 -0
- data/lib/mudbase/models/get_chat_messages200_response.rb +156 -0
- data/lib/mudbase/models/get_chat_messages200_response_data.rb +158 -0
- data/lib/mudbase/models/get_chat_messages200_response_data_messages_inner.rb +174 -0
- data/lib/mudbase/models/get_chat_messages200_response_data_messages_inner_sender.rb +156 -0
- data/lib/mudbase/models/get_checkout_payment200_response.rb +156 -0
- data/lib/mudbase/models/get_checkout_payment200_response_data.rb +224 -0
- data/lib/mudbase/models/get_current_user200_response.rb +147 -0
- data/lib/mudbase/models/get_event_throughput200_response.rb +185 -0
- data/lib/mudbase/models/get_function_versions200_response.rb +156 -0
- data/lib/mudbase/models/get_function_versions200_response_data.rb +149 -0
- data/lib/mudbase/models/get_function_versions200_response_data_versions_inner.rb +192 -0
- data/lib/mudbase/models/get_historical_analytics200_response.rb +176 -0
- data/lib/mudbase/models/get_historical_analytics200_response_data_inner.rb +165 -0
- data/lib/mudbase/models/get_integrations200_response.rb +149 -0
- data/lib/mudbase/models/get_integrations200_response_integrations_inner.rb +174 -0
- data/lib/mudbase/models/get_local_session200_response.rb +156 -0
- data/lib/mudbase/models/get_multi_role_config200_response.rb +156 -0
- data/lib/mudbase/models/get_multi_role_config200_response_data.rb +176 -0
- data/lib/mudbase/models/get_non_custodial_balance200_response.rb +156 -0
- data/lib/mudbase/models/get_non_custodial_transaction_by_hash200_response.rb +156 -0
- data/lib/mudbase/models/get_non_custodial_transaction_by_hash400_response.rb +156 -0
- data/lib/mudbase/models/get_non_custodial_transactions200_response.rb +167 -0
- data/lib/mudbase/models/get_non_custodial_transactions200_response_pagination.rb +201 -0
- data/lib/mudbase/models/get_project_analytics200_response.rb +183 -0
- data/lib/mudbase/models/get_public_plans200_response.rb +149 -0
- data/lib/mudbase/models/get_role_elevation_status200_response.rb +149 -0
- data/lib/mudbase/models/get_search_analytics200_response.rb +176 -0
- data/lib/mudbase/models/get_search_analytics200_response_top_queries_inner.rb +156 -0
- data/lib/mudbase/models/get_search_suggestions200_response.rb +149 -0
- data/lib/mudbase/models/get_speed_up_params200_response.rb +156 -0
- data/lib/mudbase/models/get_speed_up_params200_response_data.rb +229 -0
- data/lib/mudbase/models/get_speed_up_params_request.rb +209 -0
- data/lib/mudbase/models/get_user_chats200_response.rb +156 -0
- data/lib/mudbase/models/get_user_chats200_response_data.rb +158 -0
- data/lib/mudbase/models/get_user_chats200_response_data_chats_inner.rb +183 -0
- data/lib/mudbase/models/get_user_chats200_response_data_chats_inner_last_message.rb +147 -0
- data/lib/mudbase/models/get_wallet_webhook_logs200_response.rb +158 -0
- data/lib/mudbase/models/handle_crypto_payment_webhook200_response.rb +147 -0
- data/lib/mudbase/models/handle_crypto_payment_webhook_request.rb +214 -0
- data/lib/mudbase/models/handle_crypto_payment_webhook_request_data.rb +201 -0
- data/lib/mudbase/models/handle_flutterwave_webhook_request.rb +157 -0
- data/lib/mudbase/models/handle_flutterwave_webhook_request_data.rb +211 -0
- data/lib/mudbase/models/handle_flutterwave_webhook_request_data_customer.rb +156 -0
- data/lib/mudbase/models/health_response.rb +218 -0
- data/lib/mudbase/models/health_response_services.rb +183 -0
- data/lib/mudbase/models/initialize_payment_for_project_request.rb +219 -0
- data/lib/mudbase/models/initialize_payment_for_project_request_customer.rb +173 -0
- data/lib/mudbase/models/initiate_o_auth200_response.rb +148 -0
- data/lib/mudbase/models/initiate_o_auth400_response.rb +147 -0
- data/lib/mudbase/models/initiate_o_auth404_response.rb +147 -0
- data/lib/mudbase/models/invite_member_request.rb +215 -0
- data/lib/mudbase/models/limits.rb +202 -0
- data/lib/mudbase/models/link_o_auth_provider200_response.rb +147 -0
- data/lib/mudbase/models/list_collections200_response.rb +158 -0
- data/lib/mudbase/models/list_non_custodial_addresses200_response.rb +167 -0
- data/lib/mudbase/models/list_o_auth_providers200_response.rb +149 -0
- data/lib/mudbase/models/list_o_auth_providers200_response_providers_inner.rb +174 -0
- data/lib/mudbase/models/list_wallet_webhooks200_response.rb +167 -0
- data/lib/mudbase/models/log_security_event200_response.rb +156 -0
- data/lib/mudbase/models/log_security_event200_response_event.rb +174 -0
- data/lib/mudbase/models/log_security_event_request.rb +225 -0
- data/lib/mudbase/models/log_security_event_request_details.rb +192 -0
- data/lib/mudbase/models/login_local_user200_response.rb +165 -0
- data/lib/mudbase/models/login_local_user200_response_user.rb +201 -0
- data/lib/mudbase/models/login_local_user403_response.rb +165 -0
- data/lib/mudbase/models/login_local_user_request.rb +199 -0
- data/lib/mudbase/models/login_request.rb +191 -0
- data/lib/mudbase/models/magic_link_request.rb +200 -0
- data/lib/mudbase/models/mark_messages_as_read200_response.rb +156 -0
- data/lib/mudbase/models/mark_messages_as_read200_response_data.rb +147 -0
- data/lib/mudbase/models/mark_messages_as_read_request.rb +166 -0
- data/lib/mudbase/models/message.rb +275 -0
- data/lib/mudbase/models/message_history_response.rb +157 -0
- data/lib/mudbase/models/message_history_response_data.rb +158 -0
- data/lib/mudbase/models/message_response.rb +148 -0
- data/lib/mudbase/models/message_sent_response.rb +157 -0
- data/lib/mudbase/models/message_sent_response_data.rb +210 -0
- data/lib/mudbase/models/message_stats_response.rb +157 -0
- data/lib/mudbase/models/message_stats_response_data.rb +183 -0
- data/lib/mudbase/models/message_stats_response_data_by_status.rb +165 -0
- data/lib/mudbase/models/message_stats_response_data_by_type.rb +165 -0
- data/lib/mudbase/models/message_stats_response_data_period.rb +156 -0
- data/lib/mudbase/models/non_custodial_address.rb +284 -0
- data/lib/mudbase/models/non_custodial_address_response.rb +166 -0
- data/lib/mudbase/models/oauth_callback200_response.rb +156 -0
- data/lib/mudbase/models/oauth_signup_with_role400_response.rb +156 -0
- data/lib/mudbase/models/organization.rb +257 -0
- data/lib/mudbase/models/organization_summary.rb +166 -0
- data/lib/mudbase/models/otp_send_request.rb +233 -0
- data/lib/mudbase/models/otp_verify_request.rb +200 -0
- data/lib/mudbase/models/pagination.rb +175 -0
- data/lib/mudbase/models/payment_intent.rb +393 -0
- data/lib/mudbase/models/payment_refund.rb +319 -0
- data/lib/mudbase/models/payment_subscription.rb +357 -0
- data/lib/mudbase/models/permission.rb +201 -0
- data/lib/mudbase/models/plan.rb +186 -0
- data/lib/mudbase/models/presigned_post_response.rb +179 -0
- data/lib/mudbase/models/project.rb +247 -0
- data/lib/mudbase/models/project_settings.rb +254 -0
- data/lib/mudbase/models/project_summary.rb +166 -0
- data/lib/mudbase/models/project_usage.rb +184 -0
- data/lib/mudbase/models/project_usage_response.rb +157 -0
- data/lib/mudbase/models/project_usage_stats_response.rb +166 -0
- data/lib/mudbase/models/project_usage_stats_response_project.rb +156 -0
- data/lib/mudbase/models/push_notification_request.rb +237 -0
- data/lib/mudbase/models/rate_limit.rb +157 -0
- data/lib/mudbase/models/record_usage_request.rb +219 -0
- data/lib/mudbase/models/register_local_user201_response.rb +196 -0
- data/lib/mudbase/models/register_local_user201_response_user.rb +192 -0
- data/lib/mudbase/models/register_local_user429_response.rb +208 -0
- data/lib/mudbase/models/register_local_user_request.rb +277 -0
- data/lib/mudbase/models/register_non_custodial_address_request.rb +246 -0
- data/lib/mudbase/models/register_request.rb +261 -0
- data/lib/mudbase/models/register_with_role_request.rb +268 -0
- data/lib/mudbase/models/remove_participant_request.rb +164 -0
- data/lib/mudbase/models/remove_reaction200_response.rb +158 -0
- data/lib/mudbase/models/remove_reaction200_response_data_inner.rb +167 -0
- data/lib/mudbase/models/request_local_password_reset_request.rb +174 -0
- data/lib/mudbase/models/request_role_elevation200_response.rb +240 -0
- data/lib/mudbase/models/request_role_elevation_request.rb +164 -0
- data/lib/mudbase/models/reset_local_password_request.rb +182 -0
- data/lib/mudbase/models/rollback_function_request.rb +165 -0
- data/lib/mudbase/models/search_response.rb +157 -0
- data/lib/mudbase/models/search_response_data.rb +176 -0
- data/lib/mudbase/models/search_result.rb +166 -0
- data/lib/mudbase/models/search_result_item.rb +156 -0
- data/lib/mudbase/models/send_message201_response.rb +156 -0
- data/lib/mudbase/models/send_message201_response_data.rb +174 -0
- data/lib/mudbase/models/send_message_request.rb +234 -0
- data/lib/mudbase/models/session_response.rb +157 -0
- data/lib/mudbase/models/signed_url_response.rb +178 -0
- data/lib/mudbase/models/simulate_function_trigger_request.rb +168 -0
- data/lib/mudbase/models/sms_request.rb +200 -0
- data/lib/mudbase/models/storage_config.rb +150 -0
- data/lib/mudbase/models/system_status_response.rb +157 -0
- data/lib/mudbase/models/system_status_response_data.rb +192 -0
- data/lib/mudbase/models/system_status_response_data_cpu.rb +156 -0
- data/lib/mudbase/models/system_status_response_data_database.rb +165 -0
- data/lib/mudbase/models/system_status_response_data_memory.rb +165 -0
- data/lib/mudbase/models/system_status_response_data_requests.rb +174 -0
- data/lib/mudbase/models/system_status_response_data_storage.rb +165 -0
- data/lib/mudbase/models/test_wallet_webhook200_response.rb +156 -0
- data/lib/mudbase/models/test_wallet_webhook_request.rb +191 -0
- data/lib/mudbase/models/toggle_role_request.rb +164 -0
- data/lib/mudbase/models/trigger_function_webhook200_response.rb +168 -0
- data/lib/mudbase/models/trigger_function_webhook400_response.rb +156 -0
- data/lib/mudbase/models/trigger_function_webhook401_response.rb +156 -0
- data/lib/mudbase/models/trigger_webhook_request.rb +254 -0
- data/lib/mudbase/models/two_fa_setup_response.rb +166 -0
- data/lib/mudbase/models/unlink_o_auth_provider200_response.rb +156 -0
- data/lib/mudbase/models/update_api_key_request.rb +205 -0
- data/lib/mudbase/models/update_bucket_request.rb +169 -0
- data/lib/mudbase/models/update_collection_permissions_request.rb +180 -0
- data/lib/mudbase/models/update_collection_request.rb +179 -0
- data/lib/mudbase/models/update_function_request.rb +221 -0
- data/lib/mudbase/models/update_function_request_limits.rb +176 -0
- data/lib/mudbase/models/update_function_request_retry_policy.rb +165 -0
- data/lib/mudbase/models/update_multi_role_settings200_response.rb +165 -0
- data/lib/mudbase/models/update_multi_role_settings_request.rb +165 -0
- data/lib/mudbase/models/update_multi_role_settings_request_settings.rb +156 -0
- data/lib/mudbase/models/update_organization_request.rb +185 -0
- data/lib/mudbase/models/update_project_request.rb +185 -0
- data/lib/mudbase/models/update_project_role_request.rb +192 -0
- data/lib/mudbase/models/update_user_profile200_response.rb +156 -0
- data/lib/mudbase/models/update_user_request.rb +166 -0
- data/lib/mudbase/models/update_wallet_webhook200_response.rb +156 -0
- data/lib/mudbase/models/update_wallet_webhook_request.rb +176 -0
- data/lib/mudbase/models/upload_files_to_bucket_metadata_request.rb +159 -0
- data/lib/mudbase/models/upload_files_to_bucket_request.rb +187 -0
- data/lib/mudbase/models/upload_verification_documents_request.rb +192 -0
- data/lib/mudbase/models/upload_verification_documents_request_documents_inner.rb +156 -0
- data/lib/mudbase/models/usage.rb +202 -0
- data/lib/mudbase/models/usage_response.rb +175 -0
- data/lib/mudbase/models/usage_stats_response.rb +184 -0
- data/lib/mudbase/models/usage_stats_response_percentages.rb +165 -0
- data/lib/mudbase/models/usage_trends_response.rb +159 -0
- data/lib/mudbase/models/usage_trends_response_trends_inner.rb +192 -0
- data/lib/mudbase/models/usage_trends_response_trends_inner_id.rb +165 -0
- data/lib/mudbase/models/user.rb +299 -0
- data/lib/mudbase/models/user_summary.rb +175 -0
- data/lib/mudbase/models/verify2_fa_request.rb +164 -0
- data/lib/mudbase/models/verify_email_request.rb +175 -0
- data/lib/mudbase/models/verify_magic_link_request.rb +164 -0
- data/lib/mudbase/models/verify_payment200_response.rb +165 -0
- data/lib/mudbase/models/verify_payment200_response_data.rb +147 -0
- data/lib/mudbase/models/verify_payment200_response_data_subscription.rb +208 -0
- data/lib/mudbase/models/wallet_balance.rb +205 -0
- data/lib/mudbase/models/wallet_transaction.rb +379 -0
- data/lib/mudbase/models/wallet_transaction_webhook_payload.rb +167 -0
- data/lib/mudbase/models/wallet_webhook.rb +235 -0
- data/lib/mudbase/models/wallet_webhook_filters.rb +182 -0
- data/lib/mudbase/models/wallet_webhook_stats.rb +175 -0
- data/lib/mudbase/models/webhook_list_response.rb +186 -0
- data/lib/mudbase/models/webhook_log.rb +290 -0
- data/lib/mudbase/models/webhook_stats_response.rb +170 -0
- data/lib/mudbase/models/webhook_stats_response_event_stats_inner.rb +165 -0
- data/lib/mudbase/models/webhook_stats_response_status_stats_inner.rb +165 -0
- data/lib/mudbase/version.rb +15 -0
- data/lib/mudbase.rb +374 -0
- data/mudbase.gemspec +39 -0
- data/spec/api/authentication_api_spec.rb +228 -0
- data/spec/api/billing_api_spec.rb +163 -0
- data/spec/api/buckets_api_spec.rb +103 -0
- data/spec/api/chat_api_spec.rb +207 -0
- data/spec/api/collections_api_spec.rb +100 -0
- data/spec/api/compliance_api_spec.rb +47 -0
- data/spec/api/data_api_spec.rb +109 -0
- data/spec/api/files_api_spec.rb +159 -0
- data/spec/api/functions_api_spec.rb +229 -0
- data/spec/api/health_api_spec.rb +57 -0
- data/spec/api/integrations_api_spec.rb +61 -0
- data/spec/api/messaging_api_spec.rb +104 -0
- data/spec/api/multi_role_feature_api_spec.rb +156 -0
- data/spec/api/real_time_analytics_api_spec.rb +98 -0
- data/spec/api/role_elevation_api_spec.rb +74 -0
- data/spec/api/search_api_spec.rb +79 -0
- data/spec/api/usage_api_spec.rb +60 -0
- data/spec/api/users_api_spec.rb +187 -0
- data/spec/api/wallet_api_spec.rb +245 -0
- data/spec/api/webhooks_api_spec.rb +48 -0
- data/spec/models/add_custom_role_request_default_permissions_inner_spec.rb +42 -0
- data/spec/models/add_custom_role_request_spec.rb +66 -0
- data/spec/models/add_participant200_response_data_participants_inner_spec.rb +48 -0
- data/spec/models/add_participant200_response_data_spec.rb +36 -0
- data/spec/models/add_participant200_response_spec.rb +42 -0
- data/spec/models/add_participant_request_spec.rb +46 -0
- data/spec/models/add_reaction200_response_data_inner_spec.rb +42 -0
- data/spec/models/add_reaction200_response_spec.rb +42 -0
- data/spec/models/add_reaction_request_spec.rb +36 -0
- data/spec/models/api_key_permission_spec.rb +50 -0
- data/spec/models/api_key_spec.rb +90 -0
- data/spec/models/api_key_usage_response_spec.rb +54 -0
- data/spec/models/api_key_usage_spec.rb +42 -0
- data/spec/models/api_key_with_secret_spec.rb +96 -0
- data/spec/models/auth_config_spec.rb +42 -0
- data/spec/models/auth_provider_spec.rb +48 -0
- data/spec/models/auth_response_spec.rb +48 -0
- data/spec/models/billing_last_payment_spec.rb +48 -0
- data/spec/models/billing_spec.rb +48 -0
- data/spec/models/broadcast_non_custodial_transaction200_response_data_spec.rb +54 -0
- data/spec/models/broadcast_non_custodial_transaction200_response_spec.rb +48 -0
- data/spec/models/broadcast_non_custodial_transaction_request_spec.rb +52 -0
- data/spec/models/bucket_list_response_spec.rb +48 -0
- data/spec/models/bucket_response_spec.rb +48 -0
- data/spec/models/bucket_spec.rb +66 -0
- data/spec/models/change_password_request_spec.rb +42 -0
- data/spec/models/check_feature_access200_response_spec.rb +42 -0
- data/spec/models/check_subscription200_response_spec.rb +42 -0
- data/spec/models/check_subscription200_response_subscription_spec.rb +42 -0
- data/spec/models/check_user_presence200_response_presence_value_spec.rb +42 -0
- data/spec/models/check_user_presence200_response_spec.rb +42 -0
- data/spec/models/check_user_presence_request_spec.rb +36 -0
- data/spec/models/collection_spec.rb +84 -0
- data/spec/models/confirm_direct_upload400_response_spec.rb +42 -0
- data/spec/models/confirm_direct_upload_request_spec.rb +72 -0
- data/spec/models/confirm_local_password_reset_with_otp_request_spec.rb +54 -0
- data/spec/models/confirm_upload_response_scan_spec.rb +54 -0
- data/spec/models/confirm_upload_response_spec.rb +52 -0
- data/spec/models/convert_anonymous_account200_response_spec.rb +48 -0
- data/spec/models/convert_anonymous_account_request_spec.rb +54 -0
- data/spec/models/create_anonymous_session200_response_spec.rb +54 -0
- data/spec/models/create_anonymous_session200_response_user_spec.rb +66 -0
- data/spec/models/create_anonymous_session_request_spec.rb +42 -0
- data/spec/models/create_api_key_request_spec.rb +60 -0
- data/spec/models/create_bucket_request_spec.rb +48 -0
- data/spec/models/create_chat201_response_data_spec.rb +60 -0
- data/spec/models/create_chat201_response_spec.rb +42 -0
- data/spec/models/create_chat_request_spec.rb +64 -0
- data/spec/models/create_checkout_session200_response_data_payment_options_inner_spec.rb +74 -0
- data/spec/models/create_checkout_session200_response_data_spec.rb +96 -0
- data/spec/models/create_checkout_session200_response_spec.rb +42 -0
- data/spec/models/create_checkout_session400_response_spec.rb +36 -0
- data/spec/models/create_checkout_session_request_customer_info_spec.rb +42 -0
- data/spec/models/create_checkout_session_request_spec.rb +64 -0
- data/spec/models/create_collection201_response_spec.rb +42 -0
- data/spec/models/create_collection_request_spec.rb +60 -0
- data/spec/models/create_function_request_spec.rb +60 -0
- data/spec/models/create_project_request_spec.rb +48 -0
- data/spec/models/create_wallet_webhook201_response_spec.rb +48 -0
- data/spec/models/create_wallet_webhook_request_filters_spec.rb +46 -0
- data/spec/models/create_wallet_webhook_request_spec.rb +64 -0
- data/spec/models/data_list_response_data_inner_spec.rb +48 -0
- data/spec/models/data_list_response_spec.rb +42 -0
- data/spec/models/data_response_spec.rb +42 -0
- data/spec/models/database_config_spec.rb +36 -0
- data/spec/models/delete_function200_response_spec.rb +42 -0
- data/spec/models/disable2_fa_request_spec.rb +42 -0
- data/spec/models/download_bucket_file403_response_spec.rb +36 -0
- data/spec/models/download_bucket_file404_response_spec.rb +36 -0
- data/spec/models/edit_message200_response_data_spec.rb +48 -0
- data/spec/models/edit_message200_response_spec.rb +42 -0
- data/spec/models/edit_message_request_spec.rb +36 -0
- data/spec/models/email_request_spec.rb +66 -0
- data/spec/models/email_request_to_spec.rb +32 -0
- data/spec/models/erase_user_data200_response_details_spec.rb +60 -0
- data/spec/models/erase_user_data200_response_spec.rb +42 -0
- data/spec/models/erase_user_data_request_spec.rb +46 -0
- data/spec/models/error_details_spec.rb +32 -0
- data/spec/models/error_spec.rb +66 -0
- data/spec/models/estimate_non_custodial_gas200_response_data_spec.rb +96 -0
- data/spec/models/estimate_non_custodial_gas200_response_spec.rb +42 -0
- data/spec/models/estimate_non_custodial_gas_request_spec.rb +46 -0
- data/spec/models/estimate_non_custodial_gas_request_transaction_spec.rb +66 -0
- data/spec/models/execute_function_request_spec.rb +36 -0
- data/spec/models/execute_integration_request_spec.rb +58 -0
- data/spec/models/export_user_data200_response_spec.rb +78 -0
- data/spec/models/field_default_spec.rb +32 -0
- data/spec/models/field_spec.rb +76 -0
- data/spec/models/file_list_response_spec.rb +42 -0
- data/spec/models/file_metadata_spec.rb +102 -0
- data/spec/models/file_response_spec.rb +42 -0
- data/spec/models/file_upload_response_spec.rb +42 -0
- data/spec/models/function_execution_response_data_spec.rb +54 -0
- data/spec/models/function_execution_response_spec.rb +42 -0
- data/spec/models/function_execution_spec.rb +100 -0
- data/spec/models/function_list_response_data_spec.rb +42 -0
- data/spec/models/function_list_response_spec.rb +42 -0
- data/spec/models/function_logs_response_data_spec.rb +42 -0
- data/spec/models/function_logs_response_spec.rb +42 -0
- data/spec/models/function_response_spec.rb +42 -0
- data/spec/models/function_spec.rb +90 -0
- data/spec/models/function_stats_spec.rb +60 -0
- data/spec/models/function_trigger_spec.rb +80 -0
- data/spec/models/generate_presigned_upload_request_spec.rb +60 -0
- data/spec/models/generate_signed_url_request_spec.rb +36 -0
- data/spec/models/get_active_users200_response_spec.rb +48 -0
- data/spec/models/get_active_users200_response_users_inner_spec.rb +48 -0
- data/spec/models/get_available_o_auth_providers200_response_providers_inner_spec.rb +66 -0
- data/spec/models/get_available_o_auth_providers200_response_spec.rb +42 -0
- data/spec/models/get_available_roles200_response_data_inner_spec.rb +72 -0
- data/spec/models/get_available_roles200_response_spec.rb +42 -0
- data/spec/models/get_cancel_params200_response_data_spec.rb +90 -0
- data/spec/models/get_cancel_params200_response_spec.rb +42 -0
- data/spec/models/get_cancel_params_request_spec.rb +52 -0
- data/spec/models/get_chat_details200_response_data_participants_inner_spec.rb +42 -0
- data/spec/models/get_chat_details200_response_data_spec.rb +48 -0
- data/spec/models/get_chat_details200_response_spec.rb +42 -0
- data/spec/models/get_chat_messages200_response_data_messages_inner_sender_spec.rb +42 -0
- data/spec/models/get_chat_messages200_response_data_messages_inner_spec.rb +54 -0
- data/spec/models/get_chat_messages200_response_data_spec.rb +42 -0
- data/spec/models/get_chat_messages200_response_spec.rb +42 -0
- data/spec/models/get_checkout_payment200_response_data_spec.rb +84 -0
- data/spec/models/get_checkout_payment200_response_spec.rb +42 -0
- data/spec/models/get_current_user200_response_spec.rb +36 -0
- data/spec/models/get_event_throughput200_response_spec.rb +60 -0
- data/spec/models/get_function_versions200_response_data_spec.rb +36 -0
- data/spec/models/get_function_versions200_response_data_versions_inner_spec.rb +66 -0
- data/spec/models/get_function_versions200_response_spec.rb +42 -0
- data/spec/models/get_historical_analytics200_response_data_inner_spec.rb +48 -0
- data/spec/models/get_historical_analytics200_response_spec.rb +54 -0
- data/spec/models/get_integrations200_response_integrations_inner_spec.rb +54 -0
- data/spec/models/get_integrations200_response_spec.rb +36 -0
- data/spec/models/get_local_session200_response_spec.rb +42 -0
- data/spec/models/get_multi_role_config200_response_data_spec.rb +54 -0
- data/spec/models/get_multi_role_config200_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_balance200_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_transaction_by_hash200_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_transaction_by_hash400_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_transactions200_response_pagination_spec.rb +72 -0
- data/spec/models/get_non_custodial_transactions200_response_spec.rb +48 -0
- data/spec/models/get_project_analytics200_response_spec.rb +60 -0
- data/spec/models/get_public_plans200_response_spec.rb +36 -0
- data/spec/models/get_role_elevation_status200_response_spec.rb +36 -0
- data/spec/models/get_search_analytics200_response_spec.rb +54 -0
- data/spec/models/get_search_analytics200_response_top_queries_inner_spec.rb +42 -0
- data/spec/models/get_search_suggestions200_response_spec.rb +36 -0
- data/spec/models/get_speed_up_params200_response_data_spec.rb +90 -0
- data/spec/models/get_speed_up_params200_response_spec.rb +42 -0
- data/spec/models/get_speed_up_params_request_spec.rb +52 -0
- data/spec/models/get_user_chats200_response_data_chats_inner_last_message_spec.rb +36 -0
- data/spec/models/get_user_chats200_response_data_chats_inner_spec.rb +60 -0
- data/spec/models/get_user_chats200_response_data_spec.rb +42 -0
- data/spec/models/get_user_chats200_response_spec.rb +42 -0
- data/spec/models/get_wallet_webhook_logs200_response_spec.rb +42 -0
- data/spec/models/handle_crypto_payment_webhook200_response_spec.rb +36 -0
- data/spec/models/handle_crypto_payment_webhook_request_data_spec.rb +72 -0
- data/spec/models/handle_crypto_payment_webhook_request_spec.rb +46 -0
- data/spec/models/handle_flutterwave_webhook_request_data_customer_spec.rb +42 -0
- data/spec/models/handle_flutterwave_webhook_request_data_spec.rb +78 -0
- data/spec/models/handle_flutterwave_webhook_request_spec.rb +42 -0
- data/spec/models/health_response_services_spec.rb +60 -0
- data/spec/models/health_response_spec.rb +64 -0
- data/spec/models/initialize_payment_for_project_request_customer_spec.rb +42 -0
- data/spec/models/initialize_payment_for_project_request_spec.rb +54 -0
- data/spec/models/initiate_o_auth200_response_spec.rb +36 -0
- data/spec/models/initiate_o_auth400_response_spec.rb +36 -0
- data/spec/models/initiate_o_auth404_response_spec.rb +36 -0
- data/spec/models/invite_member_request_spec.rb +46 -0
- data/spec/models/limits_spec.rb +72 -0
- data/spec/models/link_o_auth_provider200_response_spec.rb +36 -0
- data/spec/models/list_collections200_response_spec.rb +42 -0
- data/spec/models/list_non_custodial_addresses200_response_spec.rb +48 -0
- data/spec/models/list_o_auth_providers200_response_providers_inner_spec.rb +54 -0
- data/spec/models/list_o_auth_providers200_response_spec.rb +36 -0
- data/spec/models/list_wallet_webhooks200_response_spec.rb +48 -0
- data/spec/models/log_security_event200_response_event_spec.rb +54 -0
- data/spec/models/log_security_event200_response_spec.rb +42 -0
- data/spec/models/log_security_event_request_details_spec.rb +66 -0
- data/spec/models/log_security_event_request_spec.rb +56 -0
- data/spec/models/login_local_user200_response_spec.rb +48 -0
- data/spec/models/login_local_user200_response_user_spec.rb +72 -0
- data/spec/models/login_local_user403_response_spec.rb +48 -0
- data/spec/models/login_local_user_request_spec.rb +48 -0
- data/spec/models/login_request_spec.rb +42 -0
- data/spec/models/magic_link_request_spec.rb +48 -0
- data/spec/models/mark_messages_as_read200_response_data_spec.rb +36 -0
- data/spec/models/mark_messages_as_read200_response_spec.rb +42 -0
- data/spec/models/mark_messages_as_read_request_spec.rb +36 -0
- data/spec/models/message_history_response_data_spec.rb +42 -0
- data/spec/models/message_history_response_spec.rb +42 -0
- data/spec/models/message_response_spec.rb +36 -0
- data/spec/models/message_sent_response_data_spec.rb +78 -0
- data/spec/models/message_sent_response_spec.rb +42 -0
- data/spec/models/message_spec.rb +98 -0
- data/spec/models/message_stats_response_data_by_status_spec.rb +48 -0
- data/spec/models/message_stats_response_data_by_type_spec.rb +48 -0
- data/spec/models/message_stats_response_data_period_spec.rb +42 -0
- data/spec/models/message_stats_response_data_spec.rb +60 -0
- data/spec/models/message_stats_response_spec.rb +42 -0
- data/spec/models/non_custodial_address_response_spec.rb +48 -0
- data/spec/models/non_custodial_address_spec.rb +106 -0
- data/spec/models/oauth_callback200_response_spec.rb +42 -0
- data/spec/models/oauth_signup_with_role400_response_spec.rb +42 -0
- data/spec/models/organization_spec.rb +108 -0
- data/spec/models/organization_summary_spec.rb +48 -0
- data/spec/models/otp_send_request_spec.rb +58 -0
- data/spec/models/otp_verify_request_spec.rb +48 -0
- data/spec/models/pagination_spec.rb +54 -0
- data/spec/models/payment_intent_spec.rb +158 -0
- data/spec/models/payment_refund_spec.rb +124 -0
- data/spec/models/payment_subscription_spec.rb +136 -0
- data/spec/models/permission_spec.rb +58 -0
- data/spec/models/plan_spec.rb +60 -0
- data/spec/models/presigned_post_response_spec.rb +54 -0
- data/spec/models/project_settings_spec.rb +76 -0
- data/spec/models/project_spec.rb +102 -0
- data/spec/models/project_summary_spec.rb +48 -0
- data/spec/models/project_usage_response_spec.rb +42 -0
- data/spec/models/project_usage_spec.rb +60 -0
- data/spec/models/project_usage_stats_response_project_spec.rb +42 -0
- data/spec/models/project_usage_stats_response_spec.rb +48 -0
- data/spec/models/push_notification_request_spec.rb +60 -0
- data/spec/models/rate_limit_spec.rb +42 -0
- data/spec/models/record_usage_request_spec.rb +48 -0
- data/spec/models/register_local_user201_response_spec.rb +66 -0
- data/spec/models/register_local_user201_response_user_spec.rb +66 -0
- data/spec/models/register_local_user429_response_spec.rb +72 -0
- data/spec/models/register_local_user_request_spec.rb +60 -0
- data/spec/models/register_non_custodial_address_request_spec.rb +64 -0
- data/spec/models/register_request_spec.rb +60 -0
- data/spec/models/register_with_role_request_spec.rb +60 -0
- data/spec/models/remove_participant_request_spec.rb +36 -0
- data/spec/models/remove_reaction200_response_data_inner_spec.rb +48 -0
- data/spec/models/remove_reaction200_response_spec.rb +42 -0
- data/spec/models/request_local_password_reset_request_spec.rb +42 -0
- data/spec/models/request_role_elevation200_response_spec.rb +74 -0
- data/spec/models/request_role_elevation_request_spec.rb +36 -0
- data/spec/models/reset_local_password_request_spec.rb +42 -0
- data/spec/models/rollback_function_request_spec.rb +36 -0
- data/spec/models/search_response_data_spec.rb +54 -0
- data/spec/models/search_response_spec.rb +42 -0
- data/spec/models/search_result_item_spec.rb +42 -0
- data/spec/models/search_result_spec.rb +48 -0
- data/spec/models/send_message201_response_data_spec.rb +54 -0
- data/spec/models/send_message201_response_spec.rb +42 -0
- data/spec/models/send_message_request_spec.rb +58 -0
- data/spec/models/session_response_spec.rb +42 -0
- data/spec/models/signed_url_response_spec.rb +54 -0
- data/spec/models/simulate_function_trigger_request_spec.rb +48 -0
- data/spec/models/sms_request_spec.rb +48 -0
- data/spec/models/storage_config_spec.rb +36 -0
- data/spec/models/system_status_response_data_cpu_spec.rb +42 -0
- data/spec/models/system_status_response_data_database_spec.rb +48 -0
- data/spec/models/system_status_response_data_memory_spec.rb +48 -0
- data/spec/models/system_status_response_data_requests_spec.rb +54 -0
- data/spec/models/system_status_response_data_spec.rb +66 -0
- data/spec/models/system_status_response_data_storage_spec.rb +48 -0
- data/spec/models/system_status_response_spec.rb +42 -0
- data/spec/models/test_wallet_webhook200_response_spec.rb +42 -0
- data/spec/models/test_wallet_webhook_request_spec.rb +54 -0
- data/spec/models/toggle_role_request_spec.rb +36 -0
- data/spec/models/trigger_function_webhook200_response_spec.rb +48 -0
- data/spec/models/trigger_function_webhook400_response_spec.rb +42 -0
- data/spec/models/trigger_function_webhook401_response_spec.rb +42 -0
- data/spec/models/trigger_webhook_request_spec.rb +60 -0
- data/spec/models/two_fa_setup_response_spec.rb +48 -0
- data/spec/models/unlink_o_auth_provider200_response_spec.rb +42 -0
- data/spec/models/update_api_key_request_spec.rb +54 -0
- data/spec/models/update_bucket_request_spec.rb +48 -0
- data/spec/models/update_collection_permissions_request_spec.rb +46 -0
- data/spec/models/update_collection_request_spec.rb +54 -0
- data/spec/models/update_function_request_limits_spec.rb +54 -0
- data/spec/models/update_function_request_retry_policy_spec.rb +48 -0
- data/spec/models/update_function_request_spec.rb +84 -0
- data/spec/models/update_multi_role_settings200_response_spec.rb +48 -0
- data/spec/models/update_multi_role_settings_request_settings_spec.rb +42 -0
- data/spec/models/update_multi_role_settings_request_spec.rb +48 -0
- data/spec/models/update_organization_request_spec.rb +60 -0
- data/spec/models/update_project_request_spec.rb +60 -0
- data/spec/models/update_project_role_request_spec.rb +66 -0
- data/spec/models/update_user_profile200_response_spec.rb +42 -0
- data/spec/models/update_user_request_spec.rb +48 -0
- data/spec/models/update_wallet_webhook200_response_spec.rb +42 -0
- data/spec/models/update_wallet_webhook_request_spec.rb +54 -0
- data/spec/models/upload_files_to_bucket_metadata_request_spec.rb +42 -0
- data/spec/models/upload_files_to_bucket_request_spec.rb +48 -0
- data/spec/models/upload_verification_documents_request_documents_inner_spec.rb +42 -0
- data/spec/models/upload_verification_documents_request_spec.rb +42 -0
- data/spec/models/usage_response_spec.rb +54 -0
- data/spec/models/usage_spec.rb +72 -0
- data/spec/models/usage_stats_response_percentages_spec.rb +48 -0
- data/spec/models/usage_stats_response_spec.rb +60 -0
- data/spec/models/usage_trends_response_spec.rb +42 -0
- data/spec/models/usage_trends_response_trends_inner_id_spec.rb +48 -0
- data/spec/models/usage_trends_response_trends_inner_spec.rb +66 -0
- data/spec/models/user_spec.rb +118 -0
- data/spec/models/user_summary_spec.rb +54 -0
- data/spec/models/verify2_fa_request_spec.rb +36 -0
- data/spec/models/verify_email_request_spec.rb +42 -0
- data/spec/models/verify_magic_link_request_spec.rb +36 -0
- data/spec/models/verify_payment200_response_data_spec.rb +36 -0
- data/spec/models/verify_payment200_response_data_subscription_spec.rb +58 -0
- data/spec/models/verify_payment200_response_spec.rb +48 -0
- data/spec/models/wallet_balance_spec.rb +72 -0
- data/spec/models/wallet_transaction_spec.rb +164 -0
- data/spec/models/wallet_transaction_webhook_payload_spec.rb +48 -0
- data/spec/models/wallet_webhook_filters_spec.rb +46 -0
- data/spec/models/wallet_webhook_spec.rb +82 -0
- data/spec/models/wallet_webhook_stats_spec.rb +54 -0
- data/spec/models/webhook_list_response_spec.rb +60 -0
- data/spec/models/webhook_log_spec.rb +112 -0
- data/spec/models/webhook_stats_response_event_stats_inner_spec.rb +48 -0
- data/spec/models/webhook_stats_response_spec.rb +48 -0
- data/spec/models/webhook_stats_response_status_stats_inner_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1451 -0
|
@@ -0,0 +1,1066 @@
|
|
|
1
|
+
# Mudbase::AuthenticationApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://cloud.mudbase.dev*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**confirm_local_password_reset_with_otp**](AuthenticationApi.md#confirm_local_password_reset_with_otp) | **POST** /api/auth/local/password-reset/confirm | Confirm password reset with OTP (project-based) |
|
|
8
|
+
| [**convert_anonymous_account**](AuthenticationApi.md#convert_anonymous_account) | **POST** /api/auth/anonymous/convert | Convert anonymous account to full account |
|
|
9
|
+
| [**create_anonymous_session**](AuthenticationApi.md#create_anonymous_session) | **POST** /api/auth/anonymous | Create anonymous session |
|
|
10
|
+
| [**get_available_o_auth_providers**](AuthenticationApi.md#get_available_o_auth_providers) | **GET** /api/auth/oauth/providers/available | Get all available OAuth providers |
|
|
11
|
+
| [**get_local_session**](AuthenticationApi.md#get_local_session) | **GET** /api/auth/local/session | Get current session (project-based) |
|
|
12
|
+
| [**initiate_o_auth**](AuthenticationApi.md#initiate_o_auth) | **GET** /api/auth/oauth/{provider}/{projectId} | Initiate OAuth authentication |
|
|
13
|
+
| [**login_local_user**](AuthenticationApi.md#login_local_user) | **POST** /api/auth/local/login | Login user (project-based) |
|
|
14
|
+
| [**logout_local_user**](AuthenticationApi.md#logout_local_user) | **POST** /api/auth/local/logout | Logout user (project-based) |
|
|
15
|
+
| [**oauth_callback**](AuthenticationApi.md#oauth_callback) | **GET** /api/auth/oauth/callback/{provider} | OAuth callback handler |
|
|
16
|
+
| [**register_local_user**](AuthenticationApi.md#register_local_user) | **POST** /api/auth/local/register | Register new user (project-based) |
|
|
17
|
+
| [**request_local_password_reset**](AuthenticationApi.md#request_local_password_reset) | **POST** /api/auth/local/password-reset | Request password reset (project-based, OTP) |
|
|
18
|
+
| [**reset_local_password**](AuthenticationApi.md#reset_local_password) | **POST** /api/auth/local/password-reset/{token} | Reset password with token (project-based, legacy) |
|
|
19
|
+
| [**send_magic_link**](AuthenticationApi.md#send_magic_link) | **POST** /api/auth/magic-link/send | Send magic link |
|
|
20
|
+
| [**send_otp**](AuthenticationApi.md#send_otp) | **POST** /api/auth/otp/send | Send OTP code |
|
|
21
|
+
| [**verify_magic_link**](AuthenticationApi.md#verify_magic_link) | **POST** /api/auth/magic-link/verify | Verify magic link |
|
|
22
|
+
| [**verify_otp**](AuthenticationApi.md#verify_otp) | **POST** /api/auth/otp/verify | Verify OTP code |
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## confirm_local_password_reset_with_otp
|
|
26
|
+
|
|
27
|
+
> <MessageResponse> confirm_local_password_reset_with_otp(confirm_local_password_reset_with_otp_request)
|
|
28
|
+
|
|
29
|
+
Confirm password reset with OTP (project-based)
|
|
30
|
+
|
|
31
|
+
Set new password using the OTP sent to the user's email. Call after POST /api/auth/local/password-reset with projectId. Rate limited (OTP limit). If the user's email was not yet verified, it is marked as verified upon successful reset.
|
|
32
|
+
|
|
33
|
+
### Examples
|
|
34
|
+
|
|
35
|
+
```ruby
|
|
36
|
+
require 'time'
|
|
37
|
+
require 'mudbase'
|
|
38
|
+
|
|
39
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
40
|
+
confirm_local_password_reset_with_otp_request = Mudbase::ConfirmLocalPasswordResetWithOtpRequest.new({email: 'user@example.com', project_id: '685ad30be129932fbb7a1047', otp: '123456', new_password: 'NewSecurePass123!'}) # ConfirmLocalPasswordResetWithOtpRequest | Email, projectId, OTP code, and new password.
|
|
41
|
+
|
|
42
|
+
begin
|
|
43
|
+
# Confirm password reset with OTP (project-based)
|
|
44
|
+
result = api_instance.confirm_local_password_reset_with_otp(confirm_local_password_reset_with_otp_request)
|
|
45
|
+
p result
|
|
46
|
+
rescue Mudbase::ApiError => e
|
|
47
|
+
puts "Error when calling AuthenticationApi->confirm_local_password_reset_with_otp: #{e}"
|
|
48
|
+
end
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
#### Using the confirm_local_password_reset_with_otp_with_http_info variant
|
|
52
|
+
|
|
53
|
+
This returns an Array which contains the response data, status code and headers.
|
|
54
|
+
|
|
55
|
+
> <Array(<MessageResponse>, Integer, Hash)> confirm_local_password_reset_with_otp_with_http_info(confirm_local_password_reset_with_otp_request)
|
|
56
|
+
|
|
57
|
+
```ruby
|
|
58
|
+
begin
|
|
59
|
+
# Confirm password reset with OTP (project-based)
|
|
60
|
+
data, status_code, headers = api_instance.confirm_local_password_reset_with_otp_with_http_info(confirm_local_password_reset_with_otp_request)
|
|
61
|
+
p status_code # => 2xx
|
|
62
|
+
p headers # => { ... }
|
|
63
|
+
p data # => <MessageResponse>
|
|
64
|
+
rescue Mudbase::ApiError => e
|
|
65
|
+
puts "Error when calling AuthenticationApi->confirm_local_password_reset_with_otp_with_http_info: #{e}"
|
|
66
|
+
end
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### Parameters
|
|
70
|
+
|
|
71
|
+
| Name | Type | Description | Notes |
|
|
72
|
+
| ---- | ---- | ----------- | ----- |
|
|
73
|
+
| **confirm_local_password_reset_with_otp_request** | [**ConfirmLocalPasswordResetWithOtpRequest**](ConfirmLocalPasswordResetWithOtpRequest.md) | Email, projectId, OTP code, and new password. | |
|
|
74
|
+
|
|
75
|
+
### Return type
|
|
76
|
+
|
|
77
|
+
[**MessageResponse**](MessageResponse.md)
|
|
78
|
+
|
|
79
|
+
### Authorization
|
|
80
|
+
|
|
81
|
+
No authorization required
|
|
82
|
+
|
|
83
|
+
### HTTP request headers
|
|
84
|
+
|
|
85
|
+
- **Content-Type**: application/json
|
|
86
|
+
- **Accept**: application/json
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
## convert_anonymous_account
|
|
90
|
+
|
|
91
|
+
> <ConvertAnonymousAccount200Response> convert_anonymous_account(convert_anonymous_account_request)
|
|
92
|
+
|
|
93
|
+
Convert anonymous account to full account
|
|
94
|
+
|
|
95
|
+
Convert an anonymous user session to a full authenticated account. Preserves user data. Requires JWT Bearer token (ProjectBearerAuth). API keys are not supported for this endpoint.
|
|
96
|
+
|
|
97
|
+
### Examples
|
|
98
|
+
|
|
99
|
+
```ruby
|
|
100
|
+
require 'time'
|
|
101
|
+
require 'mudbase'
|
|
102
|
+
# setup authorization
|
|
103
|
+
Mudbase.configure do |config|
|
|
104
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
105
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
109
|
+
convert_anonymous_account_request = Mudbase::ConvertAnonymousAccountRequest.new({email: 'user@example.com', password: 'SecurePassword123!'}) # ConvertAnonymousAccountRequest | Email, password, and optional firstName, lastName for the new full account.
|
|
110
|
+
|
|
111
|
+
begin
|
|
112
|
+
# Convert anonymous account to full account
|
|
113
|
+
result = api_instance.convert_anonymous_account(convert_anonymous_account_request)
|
|
114
|
+
p result
|
|
115
|
+
rescue Mudbase::ApiError => e
|
|
116
|
+
puts "Error when calling AuthenticationApi->convert_anonymous_account: #{e}"
|
|
117
|
+
end
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
#### Using the convert_anonymous_account_with_http_info variant
|
|
121
|
+
|
|
122
|
+
This returns an Array which contains the response data, status code and headers.
|
|
123
|
+
|
|
124
|
+
> <Array(<ConvertAnonymousAccount200Response>, Integer, Hash)> convert_anonymous_account_with_http_info(convert_anonymous_account_request)
|
|
125
|
+
|
|
126
|
+
```ruby
|
|
127
|
+
begin
|
|
128
|
+
# Convert anonymous account to full account
|
|
129
|
+
data, status_code, headers = api_instance.convert_anonymous_account_with_http_info(convert_anonymous_account_request)
|
|
130
|
+
p status_code # => 2xx
|
|
131
|
+
p headers # => { ... }
|
|
132
|
+
p data # => <ConvertAnonymousAccount200Response>
|
|
133
|
+
rescue Mudbase::ApiError => e
|
|
134
|
+
puts "Error when calling AuthenticationApi->convert_anonymous_account_with_http_info: #{e}"
|
|
135
|
+
end
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### Parameters
|
|
139
|
+
|
|
140
|
+
| Name | Type | Description | Notes |
|
|
141
|
+
| ---- | ---- | ----------- | ----- |
|
|
142
|
+
| **convert_anonymous_account_request** | [**ConvertAnonymousAccountRequest**](ConvertAnonymousAccountRequest.md) | Email, password, and optional firstName, lastName for the new full account. | |
|
|
143
|
+
|
|
144
|
+
### Return type
|
|
145
|
+
|
|
146
|
+
[**ConvertAnonymousAccount200Response**](ConvertAnonymousAccount200Response.md)
|
|
147
|
+
|
|
148
|
+
### Authorization
|
|
149
|
+
|
|
150
|
+
[ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
151
|
+
|
|
152
|
+
### HTTP request headers
|
|
153
|
+
|
|
154
|
+
- **Content-Type**: application/json
|
|
155
|
+
- **Accept**: application/json
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
## create_anonymous_session
|
|
159
|
+
|
|
160
|
+
> <CreateAnonymousSession200Response> create_anonymous_session(opts)
|
|
161
|
+
|
|
162
|
+
Create anonymous session
|
|
163
|
+
|
|
164
|
+
Create an anonymous user session for guest access. Users can later convert to full accounts.
|
|
165
|
+
|
|
166
|
+
### Examples
|
|
167
|
+
|
|
168
|
+
```ruby
|
|
169
|
+
require 'time'
|
|
170
|
+
require 'mudbase'
|
|
171
|
+
|
|
172
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
173
|
+
opts = {
|
|
174
|
+
create_anonymous_session_request: Mudbase::CreateAnonymousSessionRequest.new # CreateAnonymousSessionRequest | Optional projectId and deviceId for the anonymous session.
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
begin
|
|
178
|
+
# Create anonymous session
|
|
179
|
+
result = api_instance.create_anonymous_session(opts)
|
|
180
|
+
p result
|
|
181
|
+
rescue Mudbase::ApiError => e
|
|
182
|
+
puts "Error when calling AuthenticationApi->create_anonymous_session: #{e}"
|
|
183
|
+
end
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
#### Using the create_anonymous_session_with_http_info variant
|
|
187
|
+
|
|
188
|
+
This returns an Array which contains the response data, status code and headers.
|
|
189
|
+
|
|
190
|
+
> <Array(<CreateAnonymousSession200Response>, Integer, Hash)> create_anonymous_session_with_http_info(opts)
|
|
191
|
+
|
|
192
|
+
```ruby
|
|
193
|
+
begin
|
|
194
|
+
# Create anonymous session
|
|
195
|
+
data, status_code, headers = api_instance.create_anonymous_session_with_http_info(opts)
|
|
196
|
+
p status_code # => 2xx
|
|
197
|
+
p headers # => { ... }
|
|
198
|
+
p data # => <CreateAnonymousSession200Response>
|
|
199
|
+
rescue Mudbase::ApiError => e
|
|
200
|
+
puts "Error when calling AuthenticationApi->create_anonymous_session_with_http_info: #{e}"
|
|
201
|
+
end
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Parameters
|
|
205
|
+
|
|
206
|
+
| Name | Type | Description | Notes |
|
|
207
|
+
| ---- | ---- | ----------- | ----- |
|
|
208
|
+
| **create_anonymous_session_request** | [**CreateAnonymousSessionRequest**](CreateAnonymousSessionRequest.md) | Optional projectId and deviceId for the anonymous session. | [optional] |
|
|
209
|
+
|
|
210
|
+
### Return type
|
|
211
|
+
|
|
212
|
+
[**CreateAnonymousSession200Response**](CreateAnonymousSession200Response.md)
|
|
213
|
+
|
|
214
|
+
### Authorization
|
|
215
|
+
|
|
216
|
+
No authorization required
|
|
217
|
+
|
|
218
|
+
### HTTP request headers
|
|
219
|
+
|
|
220
|
+
- **Content-Type**: application/json
|
|
221
|
+
- **Accept**: application/json
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
## get_available_o_auth_providers
|
|
225
|
+
|
|
226
|
+
> <GetAvailableOAuthProviders200Response> get_available_o_auth_providers
|
|
227
|
+
|
|
228
|
+
Get all available OAuth providers
|
|
229
|
+
|
|
230
|
+
Returns a list of all supported OAuth providers with their configuration details
|
|
231
|
+
|
|
232
|
+
### Examples
|
|
233
|
+
|
|
234
|
+
```ruby
|
|
235
|
+
require 'time'
|
|
236
|
+
require 'mudbase'
|
|
237
|
+
|
|
238
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
239
|
+
|
|
240
|
+
begin
|
|
241
|
+
# Get all available OAuth providers
|
|
242
|
+
result = api_instance.get_available_o_auth_providers
|
|
243
|
+
p result
|
|
244
|
+
rescue Mudbase::ApiError => e
|
|
245
|
+
puts "Error when calling AuthenticationApi->get_available_o_auth_providers: #{e}"
|
|
246
|
+
end
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
#### Using the get_available_o_auth_providers_with_http_info variant
|
|
250
|
+
|
|
251
|
+
This returns an Array which contains the response data, status code and headers.
|
|
252
|
+
|
|
253
|
+
> <Array(<GetAvailableOAuthProviders200Response>, Integer, Hash)> get_available_o_auth_providers_with_http_info
|
|
254
|
+
|
|
255
|
+
```ruby
|
|
256
|
+
begin
|
|
257
|
+
# Get all available OAuth providers
|
|
258
|
+
data, status_code, headers = api_instance.get_available_o_auth_providers_with_http_info
|
|
259
|
+
p status_code # => 2xx
|
|
260
|
+
p headers # => { ... }
|
|
261
|
+
p data # => <GetAvailableOAuthProviders200Response>
|
|
262
|
+
rescue Mudbase::ApiError => e
|
|
263
|
+
puts "Error when calling AuthenticationApi->get_available_o_auth_providers_with_http_info: #{e}"
|
|
264
|
+
end
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Parameters
|
|
268
|
+
|
|
269
|
+
This endpoint does not need any parameter.
|
|
270
|
+
|
|
271
|
+
### Return type
|
|
272
|
+
|
|
273
|
+
[**GetAvailableOAuthProviders200Response**](GetAvailableOAuthProviders200Response.md)
|
|
274
|
+
|
|
275
|
+
### Authorization
|
|
276
|
+
|
|
277
|
+
No authorization required
|
|
278
|
+
|
|
279
|
+
### HTTP request headers
|
|
280
|
+
|
|
281
|
+
- **Content-Type**: Not defined
|
|
282
|
+
- **Accept**: application/json
|
|
283
|
+
|
|
284
|
+
|
|
285
|
+
## get_local_session
|
|
286
|
+
|
|
287
|
+
> <GetLocalSession200Response> get_local_session(project_id)
|
|
288
|
+
|
|
289
|
+
Get current session (project-based)
|
|
290
|
+
|
|
291
|
+
Get the current authenticated user session (project-based). Requires JWT Bearer token (ProjectBearerAuth). API keys are not supported for this endpoint.
|
|
292
|
+
|
|
293
|
+
### Examples
|
|
294
|
+
|
|
295
|
+
```ruby
|
|
296
|
+
require 'time'
|
|
297
|
+
require 'mudbase'
|
|
298
|
+
# setup authorization
|
|
299
|
+
Mudbase.configure do |config|
|
|
300
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
301
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
302
|
+
end
|
|
303
|
+
|
|
304
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
305
|
+
project_id = 'project_id_example' # String | Project ID to get session for.
|
|
306
|
+
|
|
307
|
+
begin
|
|
308
|
+
# Get current session (project-based)
|
|
309
|
+
result = api_instance.get_local_session(project_id)
|
|
310
|
+
p result
|
|
311
|
+
rescue Mudbase::ApiError => e
|
|
312
|
+
puts "Error when calling AuthenticationApi->get_local_session: #{e}"
|
|
313
|
+
end
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
#### Using the get_local_session_with_http_info variant
|
|
317
|
+
|
|
318
|
+
This returns an Array which contains the response data, status code and headers.
|
|
319
|
+
|
|
320
|
+
> <Array(<GetLocalSession200Response>, Integer, Hash)> get_local_session_with_http_info(project_id)
|
|
321
|
+
|
|
322
|
+
```ruby
|
|
323
|
+
begin
|
|
324
|
+
# Get current session (project-based)
|
|
325
|
+
data, status_code, headers = api_instance.get_local_session_with_http_info(project_id)
|
|
326
|
+
p status_code # => 2xx
|
|
327
|
+
p headers # => { ... }
|
|
328
|
+
p data # => <GetLocalSession200Response>
|
|
329
|
+
rescue Mudbase::ApiError => e
|
|
330
|
+
puts "Error when calling AuthenticationApi->get_local_session_with_http_info: #{e}"
|
|
331
|
+
end
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### Parameters
|
|
335
|
+
|
|
336
|
+
| Name | Type | Description | Notes |
|
|
337
|
+
| ---- | ---- | ----------- | ----- |
|
|
338
|
+
| **project_id** | **String** | Project ID to get session for. | |
|
|
339
|
+
|
|
340
|
+
### Return type
|
|
341
|
+
|
|
342
|
+
[**GetLocalSession200Response**](GetLocalSession200Response.md)
|
|
343
|
+
|
|
344
|
+
### Authorization
|
|
345
|
+
|
|
346
|
+
[ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
347
|
+
|
|
348
|
+
### HTTP request headers
|
|
349
|
+
|
|
350
|
+
- **Content-Type**: Not defined
|
|
351
|
+
- **Accept**: application/json
|
|
352
|
+
|
|
353
|
+
|
|
354
|
+
## initiate_o_auth
|
|
355
|
+
|
|
356
|
+
> <InitiateOAuth200Response> initiate_o_auth(provider, project_id, opts)
|
|
357
|
+
|
|
358
|
+
Initiate OAuth authentication
|
|
359
|
+
|
|
360
|
+
Initiates OAuth authentication flow for a specified provider and project. The OAuth provider must be configured and enabled for the project first. After user authentication, redirects to the OAuth provider's consent screen.
|
|
361
|
+
|
|
362
|
+
### Examples
|
|
363
|
+
|
|
364
|
+
```ruby
|
|
365
|
+
require 'time'
|
|
366
|
+
require 'mudbase'
|
|
367
|
+
|
|
368
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
369
|
+
provider = 'google' # String | OAuth provider identifier (e.g. google, github).
|
|
370
|
+
project_id = '685ad30be129932fbb7a1047' # String | Project ID for which OAuth is configured.
|
|
371
|
+
opts = {
|
|
372
|
+
redirect_url: 'https://client.app/auth/callback' # String | The URL to redirect to after authentication. Must be pre-registered in project settings.
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
begin
|
|
376
|
+
# Initiate OAuth authentication
|
|
377
|
+
result = api_instance.initiate_o_auth(provider, project_id, opts)
|
|
378
|
+
p result
|
|
379
|
+
rescue Mudbase::ApiError => e
|
|
380
|
+
puts "Error when calling AuthenticationApi->initiate_o_auth: #{e}"
|
|
381
|
+
end
|
|
382
|
+
```
|
|
383
|
+
|
|
384
|
+
#### Using the initiate_o_auth_with_http_info variant
|
|
385
|
+
|
|
386
|
+
This returns an Array which contains the response data, status code and headers.
|
|
387
|
+
|
|
388
|
+
> <Array(<InitiateOAuth200Response>, Integer, Hash)> initiate_o_auth_with_http_info(provider, project_id, opts)
|
|
389
|
+
|
|
390
|
+
```ruby
|
|
391
|
+
begin
|
|
392
|
+
# Initiate OAuth authentication
|
|
393
|
+
data, status_code, headers = api_instance.initiate_o_auth_with_http_info(provider, project_id, opts)
|
|
394
|
+
p status_code # => 2xx
|
|
395
|
+
p headers # => { ... }
|
|
396
|
+
p data # => <InitiateOAuth200Response>
|
|
397
|
+
rescue Mudbase::ApiError => e
|
|
398
|
+
puts "Error when calling AuthenticationApi->initiate_o_auth_with_http_info: #{e}"
|
|
399
|
+
end
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Parameters
|
|
403
|
+
|
|
404
|
+
| Name | Type | Description | Notes |
|
|
405
|
+
| ---- | ---- | ----------- | ----- |
|
|
406
|
+
| **provider** | **String** | OAuth provider identifier (e.g. google, github). | |
|
|
407
|
+
| **project_id** | **String** | Project ID for which OAuth is configured. | |
|
|
408
|
+
| **redirect_url** | **String** | The URL to redirect to after authentication. Must be pre-registered in project settings. | [optional] |
|
|
409
|
+
|
|
410
|
+
### Return type
|
|
411
|
+
|
|
412
|
+
[**InitiateOAuth200Response**](InitiateOAuth200Response.md)
|
|
413
|
+
|
|
414
|
+
### Authorization
|
|
415
|
+
|
|
416
|
+
No authorization required
|
|
417
|
+
|
|
418
|
+
### HTTP request headers
|
|
419
|
+
|
|
420
|
+
- **Content-Type**: Not defined
|
|
421
|
+
- **Accept**: application/json
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
## login_local_user
|
|
425
|
+
|
|
426
|
+
> <LoginLocalUser200Response> login_local_user(login_local_user_request)
|
|
427
|
+
|
|
428
|
+
Login user (project-based)
|
|
429
|
+
|
|
430
|
+
When the project has **requireEmailVerification** enabled and the user has not verified their email, returns 403 with code **EMAIL_VERIFICATION_REQUIRED** (user must verify email first, then login again).
|
|
431
|
+
|
|
432
|
+
### Examples
|
|
433
|
+
|
|
434
|
+
```ruby
|
|
435
|
+
require 'time'
|
|
436
|
+
require 'mudbase'
|
|
437
|
+
|
|
438
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
439
|
+
login_local_user_request = Mudbase::LoginLocalUserRequest.new({email: 'email_example', password: 'password_example'}) # LoginLocalUserRequest | Login credentials (email, password) and project ID.
|
|
440
|
+
|
|
441
|
+
begin
|
|
442
|
+
# Login user (project-based)
|
|
443
|
+
result = api_instance.login_local_user(login_local_user_request)
|
|
444
|
+
p result
|
|
445
|
+
rescue Mudbase::ApiError => e
|
|
446
|
+
puts "Error when calling AuthenticationApi->login_local_user: #{e}"
|
|
447
|
+
end
|
|
448
|
+
```
|
|
449
|
+
|
|
450
|
+
#### Using the login_local_user_with_http_info variant
|
|
451
|
+
|
|
452
|
+
This returns an Array which contains the response data, status code and headers.
|
|
453
|
+
|
|
454
|
+
> <Array(<LoginLocalUser200Response>, Integer, Hash)> login_local_user_with_http_info(login_local_user_request)
|
|
455
|
+
|
|
456
|
+
```ruby
|
|
457
|
+
begin
|
|
458
|
+
# Login user (project-based)
|
|
459
|
+
data, status_code, headers = api_instance.login_local_user_with_http_info(login_local_user_request)
|
|
460
|
+
p status_code # => 2xx
|
|
461
|
+
p headers # => { ... }
|
|
462
|
+
p data # => <LoginLocalUser200Response>
|
|
463
|
+
rescue Mudbase::ApiError => e
|
|
464
|
+
puts "Error when calling AuthenticationApi->login_local_user_with_http_info: #{e}"
|
|
465
|
+
end
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
### Parameters
|
|
469
|
+
|
|
470
|
+
| Name | Type | Description | Notes |
|
|
471
|
+
| ---- | ---- | ----------- | ----- |
|
|
472
|
+
| **login_local_user_request** | [**LoginLocalUserRequest**](LoginLocalUserRequest.md) | Login credentials (email, password) and project ID. | |
|
|
473
|
+
|
|
474
|
+
### Return type
|
|
475
|
+
|
|
476
|
+
[**LoginLocalUser200Response**](LoginLocalUser200Response.md)
|
|
477
|
+
|
|
478
|
+
### Authorization
|
|
479
|
+
|
|
480
|
+
No authorization required
|
|
481
|
+
|
|
482
|
+
### HTTP request headers
|
|
483
|
+
|
|
484
|
+
- **Content-Type**: application/json
|
|
485
|
+
- **Accept**: application/json
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
## logout_local_user
|
|
489
|
+
|
|
490
|
+
> <MessageResponse> logout_local_user
|
|
491
|
+
|
|
492
|
+
Logout user (project-based)
|
|
493
|
+
|
|
494
|
+
Logout the current authenticated user session (project-based). Requires JWT Bearer token (ProjectBearerAuth). API keys are not supported for this endpoint.
|
|
495
|
+
|
|
496
|
+
### Examples
|
|
497
|
+
|
|
498
|
+
```ruby
|
|
499
|
+
require 'time'
|
|
500
|
+
require 'mudbase'
|
|
501
|
+
# setup authorization
|
|
502
|
+
Mudbase.configure do |config|
|
|
503
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
504
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
508
|
+
|
|
509
|
+
begin
|
|
510
|
+
# Logout user (project-based)
|
|
511
|
+
result = api_instance.logout_local_user
|
|
512
|
+
p result
|
|
513
|
+
rescue Mudbase::ApiError => e
|
|
514
|
+
puts "Error when calling AuthenticationApi->logout_local_user: #{e}"
|
|
515
|
+
end
|
|
516
|
+
```
|
|
517
|
+
|
|
518
|
+
#### Using the logout_local_user_with_http_info variant
|
|
519
|
+
|
|
520
|
+
This returns an Array which contains the response data, status code and headers.
|
|
521
|
+
|
|
522
|
+
> <Array(<MessageResponse>, Integer, Hash)> logout_local_user_with_http_info
|
|
523
|
+
|
|
524
|
+
```ruby
|
|
525
|
+
begin
|
|
526
|
+
# Logout user (project-based)
|
|
527
|
+
data, status_code, headers = api_instance.logout_local_user_with_http_info
|
|
528
|
+
p status_code # => 2xx
|
|
529
|
+
p headers # => { ... }
|
|
530
|
+
p data # => <MessageResponse>
|
|
531
|
+
rescue Mudbase::ApiError => e
|
|
532
|
+
puts "Error when calling AuthenticationApi->logout_local_user_with_http_info: #{e}"
|
|
533
|
+
end
|
|
534
|
+
```
|
|
535
|
+
|
|
536
|
+
### Parameters
|
|
537
|
+
|
|
538
|
+
This endpoint does not need any parameter.
|
|
539
|
+
|
|
540
|
+
### Return type
|
|
541
|
+
|
|
542
|
+
[**MessageResponse**](MessageResponse.md)
|
|
543
|
+
|
|
544
|
+
### Authorization
|
|
545
|
+
|
|
546
|
+
[ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
547
|
+
|
|
548
|
+
### HTTP request headers
|
|
549
|
+
|
|
550
|
+
- **Content-Type**: Not defined
|
|
551
|
+
- **Accept**: application/json
|
|
552
|
+
|
|
553
|
+
|
|
554
|
+
## oauth_callback
|
|
555
|
+
|
|
556
|
+
> <OauthCallback200Response> oauth_callback(provider)
|
|
557
|
+
|
|
558
|
+
OAuth callback handler
|
|
559
|
+
|
|
560
|
+
OAuth provider redirects the user here after consent. The server exchanges the code for tokens, creates or finds the user, and redirects to the client with token (or error) in query or fragment.
|
|
561
|
+
|
|
562
|
+
### Examples
|
|
563
|
+
|
|
564
|
+
```ruby
|
|
565
|
+
require 'time'
|
|
566
|
+
require 'mudbase'
|
|
567
|
+
|
|
568
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
569
|
+
provider = 'provider_example' # String | OAuth provider identifier (e.g. google, github).
|
|
570
|
+
|
|
571
|
+
begin
|
|
572
|
+
# OAuth callback handler
|
|
573
|
+
result = api_instance.oauth_callback(provider)
|
|
574
|
+
p result
|
|
575
|
+
rescue Mudbase::ApiError => e
|
|
576
|
+
puts "Error when calling AuthenticationApi->oauth_callback: #{e}"
|
|
577
|
+
end
|
|
578
|
+
```
|
|
579
|
+
|
|
580
|
+
#### Using the oauth_callback_with_http_info variant
|
|
581
|
+
|
|
582
|
+
This returns an Array which contains the response data, status code and headers.
|
|
583
|
+
|
|
584
|
+
> <Array(<OauthCallback200Response>, Integer, Hash)> oauth_callback_with_http_info(provider)
|
|
585
|
+
|
|
586
|
+
```ruby
|
|
587
|
+
begin
|
|
588
|
+
# OAuth callback handler
|
|
589
|
+
data, status_code, headers = api_instance.oauth_callback_with_http_info(provider)
|
|
590
|
+
p status_code # => 2xx
|
|
591
|
+
p headers # => { ... }
|
|
592
|
+
p data # => <OauthCallback200Response>
|
|
593
|
+
rescue Mudbase::ApiError => e
|
|
594
|
+
puts "Error when calling AuthenticationApi->oauth_callback_with_http_info: #{e}"
|
|
595
|
+
end
|
|
596
|
+
```
|
|
597
|
+
|
|
598
|
+
### Parameters
|
|
599
|
+
|
|
600
|
+
| Name | Type | Description | Notes |
|
|
601
|
+
| ---- | ---- | ----------- | ----- |
|
|
602
|
+
| **provider** | **String** | OAuth provider identifier (e.g. google, github). | |
|
|
603
|
+
|
|
604
|
+
### Return type
|
|
605
|
+
|
|
606
|
+
[**OauthCallback200Response**](OauthCallback200Response.md)
|
|
607
|
+
|
|
608
|
+
### Authorization
|
|
609
|
+
|
|
610
|
+
No authorization required
|
|
611
|
+
|
|
612
|
+
### HTTP request headers
|
|
613
|
+
|
|
614
|
+
- **Content-Type**: Not defined
|
|
615
|
+
- **Accept**: application/json
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
## register_local_user
|
|
619
|
+
|
|
620
|
+
> <RegisterLocalUser201Response> register_local_user(register_local_user_request)
|
|
621
|
+
|
|
622
|
+
Register new user (project-based)
|
|
623
|
+
|
|
624
|
+
When the project has **requireEmailVerification** enabled (default), the response is 201 with **requireVerification: true** and **no token**; the user must verify their email then sign in via login. When email verification is disabled, a token and refreshToken are returned.
|
|
625
|
+
|
|
626
|
+
### Examples
|
|
627
|
+
|
|
628
|
+
```ruby
|
|
629
|
+
require 'time'
|
|
630
|
+
require 'mudbase'
|
|
631
|
+
|
|
632
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
633
|
+
register_local_user_request = Mudbase::RegisterLocalUserRequest.new({email: 'email_example', password: 'password_example', first_name: 'first_name_example', last_name: 'last_name_example', project_id: 'project_id_example'}) # RegisterLocalUserRequest | Registration payload (email, password, firstName, lastName, projectId).
|
|
634
|
+
|
|
635
|
+
begin
|
|
636
|
+
# Register new user (project-based)
|
|
637
|
+
result = api_instance.register_local_user(register_local_user_request)
|
|
638
|
+
p result
|
|
639
|
+
rescue Mudbase::ApiError => e
|
|
640
|
+
puts "Error when calling AuthenticationApi->register_local_user: #{e}"
|
|
641
|
+
end
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
#### Using the register_local_user_with_http_info variant
|
|
645
|
+
|
|
646
|
+
This returns an Array which contains the response data, status code and headers.
|
|
647
|
+
|
|
648
|
+
> <Array(<RegisterLocalUser201Response>, Integer, Hash)> register_local_user_with_http_info(register_local_user_request)
|
|
649
|
+
|
|
650
|
+
```ruby
|
|
651
|
+
begin
|
|
652
|
+
# Register new user (project-based)
|
|
653
|
+
data, status_code, headers = api_instance.register_local_user_with_http_info(register_local_user_request)
|
|
654
|
+
p status_code # => 2xx
|
|
655
|
+
p headers # => { ... }
|
|
656
|
+
p data # => <RegisterLocalUser201Response>
|
|
657
|
+
rescue Mudbase::ApiError => e
|
|
658
|
+
puts "Error when calling AuthenticationApi->register_local_user_with_http_info: #{e}"
|
|
659
|
+
end
|
|
660
|
+
```
|
|
661
|
+
|
|
662
|
+
### Parameters
|
|
663
|
+
|
|
664
|
+
| Name | Type | Description | Notes |
|
|
665
|
+
| ---- | ---- | ----------- | ----- |
|
|
666
|
+
| **register_local_user_request** | [**RegisterLocalUserRequest**](RegisterLocalUserRequest.md) | Registration payload (email, password, firstName, lastName, projectId). | |
|
|
667
|
+
|
|
668
|
+
### Return type
|
|
669
|
+
|
|
670
|
+
[**RegisterLocalUser201Response**](RegisterLocalUser201Response.md)
|
|
671
|
+
|
|
672
|
+
### Authorization
|
|
673
|
+
|
|
674
|
+
No authorization required
|
|
675
|
+
|
|
676
|
+
### HTTP request headers
|
|
677
|
+
|
|
678
|
+
- **Content-Type**: application/json
|
|
679
|
+
- **Accept**: application/json
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
## request_local_password_reset
|
|
683
|
+
|
|
684
|
+
> <MessageResponse> request_local_password_reset(request_local_password_reset_request)
|
|
685
|
+
|
|
686
|
+
Request password reset (project-based, OTP)
|
|
687
|
+
|
|
688
|
+
When projectId is provided, sends a 6-digit OTP to the user's email (project-based reset uses OTP, not link). When projectId is omitted, sends a token link (org/platform local account). Rate limited.
|
|
689
|
+
|
|
690
|
+
### Examples
|
|
691
|
+
|
|
692
|
+
```ruby
|
|
693
|
+
require 'time'
|
|
694
|
+
require 'mudbase'
|
|
695
|
+
|
|
696
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
697
|
+
request_local_password_reset_request = Mudbase::RequestLocalPasswordResetRequest.new({email: 'user@example.com'}) # RequestLocalPasswordResetRequest | Email and optional projectId for project-based OTP or org token link.
|
|
698
|
+
|
|
699
|
+
begin
|
|
700
|
+
# Request password reset (project-based, OTP)
|
|
701
|
+
result = api_instance.request_local_password_reset(request_local_password_reset_request)
|
|
702
|
+
p result
|
|
703
|
+
rescue Mudbase::ApiError => e
|
|
704
|
+
puts "Error when calling AuthenticationApi->request_local_password_reset: #{e}"
|
|
705
|
+
end
|
|
706
|
+
```
|
|
707
|
+
|
|
708
|
+
#### Using the request_local_password_reset_with_http_info variant
|
|
709
|
+
|
|
710
|
+
This returns an Array which contains the response data, status code and headers.
|
|
711
|
+
|
|
712
|
+
> <Array(<MessageResponse>, Integer, Hash)> request_local_password_reset_with_http_info(request_local_password_reset_request)
|
|
713
|
+
|
|
714
|
+
```ruby
|
|
715
|
+
begin
|
|
716
|
+
# Request password reset (project-based, OTP)
|
|
717
|
+
data, status_code, headers = api_instance.request_local_password_reset_with_http_info(request_local_password_reset_request)
|
|
718
|
+
p status_code # => 2xx
|
|
719
|
+
p headers # => { ... }
|
|
720
|
+
p data # => <MessageResponse>
|
|
721
|
+
rescue Mudbase::ApiError => e
|
|
722
|
+
puts "Error when calling AuthenticationApi->request_local_password_reset_with_http_info: #{e}"
|
|
723
|
+
end
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
### Parameters
|
|
727
|
+
|
|
728
|
+
| Name | Type | Description | Notes |
|
|
729
|
+
| ---- | ---- | ----------- | ----- |
|
|
730
|
+
| **request_local_password_reset_request** | [**RequestLocalPasswordResetRequest**](RequestLocalPasswordResetRequest.md) | Email and optional projectId for project-based OTP or org token link. | |
|
|
731
|
+
|
|
732
|
+
### Return type
|
|
733
|
+
|
|
734
|
+
[**MessageResponse**](MessageResponse.md)
|
|
735
|
+
|
|
736
|
+
### Authorization
|
|
737
|
+
|
|
738
|
+
No authorization required
|
|
739
|
+
|
|
740
|
+
### HTTP request headers
|
|
741
|
+
|
|
742
|
+
- **Content-Type**: application/json
|
|
743
|
+
- **Accept**: application/json
|
|
744
|
+
|
|
745
|
+
|
|
746
|
+
## reset_local_password
|
|
747
|
+
|
|
748
|
+
> <MessageResponse> reset_local_password(token, reset_local_password_request)
|
|
749
|
+
|
|
750
|
+
Reset password with token (project-based, legacy)
|
|
751
|
+
|
|
752
|
+
Legacy token-based completion. Prefer OTP flow: use POST .../password-reset/confirm with the OTP sent to email for project-based resets.
|
|
753
|
+
|
|
754
|
+
### Examples
|
|
755
|
+
|
|
756
|
+
```ruby
|
|
757
|
+
require 'time'
|
|
758
|
+
require 'mudbase'
|
|
759
|
+
|
|
760
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
761
|
+
token = 'token_example' # String | Password reset token from email link.
|
|
762
|
+
reset_local_password_request = Mudbase::ResetLocalPasswordRequest.new({password: 'NewSecurePass123!'}) # ResetLocalPasswordRequest | New password and optional projectId.
|
|
763
|
+
|
|
764
|
+
begin
|
|
765
|
+
# Reset password with token (project-based, legacy)
|
|
766
|
+
result = api_instance.reset_local_password(token, reset_local_password_request)
|
|
767
|
+
p result
|
|
768
|
+
rescue Mudbase::ApiError => e
|
|
769
|
+
puts "Error when calling AuthenticationApi->reset_local_password: #{e}"
|
|
770
|
+
end
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
#### Using the reset_local_password_with_http_info variant
|
|
774
|
+
|
|
775
|
+
This returns an Array which contains the response data, status code and headers.
|
|
776
|
+
|
|
777
|
+
> <Array(<MessageResponse>, Integer, Hash)> reset_local_password_with_http_info(token, reset_local_password_request)
|
|
778
|
+
|
|
779
|
+
```ruby
|
|
780
|
+
begin
|
|
781
|
+
# Reset password with token (project-based, legacy)
|
|
782
|
+
data, status_code, headers = api_instance.reset_local_password_with_http_info(token, reset_local_password_request)
|
|
783
|
+
p status_code # => 2xx
|
|
784
|
+
p headers # => { ... }
|
|
785
|
+
p data # => <MessageResponse>
|
|
786
|
+
rescue Mudbase::ApiError => e
|
|
787
|
+
puts "Error when calling AuthenticationApi->reset_local_password_with_http_info: #{e}"
|
|
788
|
+
end
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
### Parameters
|
|
792
|
+
|
|
793
|
+
| Name | Type | Description | Notes |
|
|
794
|
+
| ---- | ---- | ----------- | ----- |
|
|
795
|
+
| **token** | **String** | Password reset token from email link. | |
|
|
796
|
+
| **reset_local_password_request** | [**ResetLocalPasswordRequest**](ResetLocalPasswordRequest.md) | New password and optional projectId. | |
|
|
797
|
+
|
|
798
|
+
### Return type
|
|
799
|
+
|
|
800
|
+
[**MessageResponse**](MessageResponse.md)
|
|
801
|
+
|
|
802
|
+
### Authorization
|
|
803
|
+
|
|
804
|
+
No authorization required
|
|
805
|
+
|
|
806
|
+
### HTTP request headers
|
|
807
|
+
|
|
808
|
+
- **Content-Type**: application/json
|
|
809
|
+
- **Accept**: application/json
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
## send_magic_link
|
|
813
|
+
|
|
814
|
+
> <MessageResponse> send_magic_link(magic_link_request)
|
|
815
|
+
|
|
816
|
+
Send magic link
|
|
817
|
+
|
|
818
|
+
Sends a one-time magic link to the given email for the project. The user clicks the link and is authenticated without a password. Use verify endpoint with the token from the link. Public endpoint; rate limited.
|
|
819
|
+
|
|
820
|
+
### Examples
|
|
821
|
+
|
|
822
|
+
```ruby
|
|
823
|
+
require 'time'
|
|
824
|
+
require 'mudbase'
|
|
825
|
+
|
|
826
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
827
|
+
magic_link_request = Mudbase::MagicLinkRequest.new({email: 'email_example', project_id: 'project_id_example'}) # MagicLinkRequest | Email, projectId, and optional redirect URL for the magic link.
|
|
828
|
+
|
|
829
|
+
begin
|
|
830
|
+
# Send magic link
|
|
831
|
+
result = api_instance.send_magic_link(magic_link_request)
|
|
832
|
+
p result
|
|
833
|
+
rescue Mudbase::ApiError => e
|
|
834
|
+
puts "Error when calling AuthenticationApi->send_magic_link: #{e}"
|
|
835
|
+
end
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
#### Using the send_magic_link_with_http_info variant
|
|
839
|
+
|
|
840
|
+
This returns an Array which contains the response data, status code and headers.
|
|
841
|
+
|
|
842
|
+
> <Array(<MessageResponse>, Integer, Hash)> send_magic_link_with_http_info(magic_link_request)
|
|
843
|
+
|
|
844
|
+
```ruby
|
|
845
|
+
begin
|
|
846
|
+
# Send magic link
|
|
847
|
+
data, status_code, headers = api_instance.send_magic_link_with_http_info(magic_link_request)
|
|
848
|
+
p status_code # => 2xx
|
|
849
|
+
p headers # => { ... }
|
|
850
|
+
p data # => <MessageResponse>
|
|
851
|
+
rescue Mudbase::ApiError => e
|
|
852
|
+
puts "Error when calling AuthenticationApi->send_magic_link_with_http_info: #{e}"
|
|
853
|
+
end
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
### Parameters
|
|
857
|
+
|
|
858
|
+
| Name | Type | Description | Notes |
|
|
859
|
+
| ---- | ---- | ----------- | ----- |
|
|
860
|
+
| **magic_link_request** | [**MagicLinkRequest**](MagicLinkRequest.md) | Email, projectId, and optional redirect URL for the magic link. | |
|
|
861
|
+
|
|
862
|
+
### Return type
|
|
863
|
+
|
|
864
|
+
[**MessageResponse**](MessageResponse.md)
|
|
865
|
+
|
|
866
|
+
### Authorization
|
|
867
|
+
|
|
868
|
+
No authorization required
|
|
869
|
+
|
|
870
|
+
### HTTP request headers
|
|
871
|
+
|
|
872
|
+
- **Content-Type**: application/json
|
|
873
|
+
- **Accept**: application/json
|
|
874
|
+
|
|
875
|
+
|
|
876
|
+
## send_otp
|
|
877
|
+
|
|
878
|
+
> <MessageResponse> send_otp(otp_send_request)
|
|
879
|
+
|
|
880
|
+
Send OTP code
|
|
881
|
+
|
|
882
|
+
Sends a one-time code via SMS or email for the given project. Use verify endpoint to exchange the code for a session. Public endpoint; rate limited.
|
|
883
|
+
|
|
884
|
+
### Examples
|
|
885
|
+
|
|
886
|
+
```ruby
|
|
887
|
+
require 'time'
|
|
888
|
+
require 'mudbase'
|
|
889
|
+
|
|
890
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
891
|
+
otp_send_request = Mudbase::OTPSendRequest.new({project_id: 'project_id_example', method: 'sms'}) # OTPSendRequest | Project ID, delivery method (sms/email), and phone or email.
|
|
892
|
+
|
|
893
|
+
begin
|
|
894
|
+
# Send OTP code
|
|
895
|
+
result = api_instance.send_otp(otp_send_request)
|
|
896
|
+
p result
|
|
897
|
+
rescue Mudbase::ApiError => e
|
|
898
|
+
puts "Error when calling AuthenticationApi->send_otp: #{e}"
|
|
899
|
+
end
|
|
900
|
+
```
|
|
901
|
+
|
|
902
|
+
#### Using the send_otp_with_http_info variant
|
|
903
|
+
|
|
904
|
+
This returns an Array which contains the response data, status code and headers.
|
|
905
|
+
|
|
906
|
+
> <Array(<MessageResponse>, Integer, Hash)> send_otp_with_http_info(otp_send_request)
|
|
907
|
+
|
|
908
|
+
```ruby
|
|
909
|
+
begin
|
|
910
|
+
# Send OTP code
|
|
911
|
+
data, status_code, headers = api_instance.send_otp_with_http_info(otp_send_request)
|
|
912
|
+
p status_code # => 2xx
|
|
913
|
+
p headers # => { ... }
|
|
914
|
+
p data # => <MessageResponse>
|
|
915
|
+
rescue Mudbase::ApiError => e
|
|
916
|
+
puts "Error when calling AuthenticationApi->send_otp_with_http_info: #{e}"
|
|
917
|
+
end
|
|
918
|
+
```
|
|
919
|
+
|
|
920
|
+
### Parameters
|
|
921
|
+
|
|
922
|
+
| Name | Type | Description | Notes |
|
|
923
|
+
| ---- | ---- | ----------- | ----- |
|
|
924
|
+
| **otp_send_request** | [**OTPSendRequest**](OTPSendRequest.md) | Project ID, delivery method (sms/email), and phone or email. | |
|
|
925
|
+
|
|
926
|
+
### Return type
|
|
927
|
+
|
|
928
|
+
[**MessageResponse**](MessageResponse.md)
|
|
929
|
+
|
|
930
|
+
### Authorization
|
|
931
|
+
|
|
932
|
+
No authorization required
|
|
933
|
+
|
|
934
|
+
### HTTP request headers
|
|
935
|
+
|
|
936
|
+
- **Content-Type**: application/json
|
|
937
|
+
- **Accept**: application/json
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
## verify_magic_link
|
|
941
|
+
|
|
942
|
+
> <AuthResponse> verify_magic_link(verify_magic_link_request)
|
|
943
|
+
|
|
944
|
+
Verify magic link
|
|
945
|
+
|
|
946
|
+
Exchanges the magic link token (from the link sent by send) for a session. Returns token and user on success. Token is short-lived and single-use.
|
|
947
|
+
|
|
948
|
+
### Examples
|
|
949
|
+
|
|
950
|
+
```ruby
|
|
951
|
+
require 'time'
|
|
952
|
+
require 'mudbase'
|
|
953
|
+
|
|
954
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
955
|
+
verify_magic_link_request = Mudbase::VerifyMagicLinkRequest.new({token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20iLCJwcm9qZWN0SWQiOiI2ODVhZDMwYmUxMjk5MzJmYmI3YTEwNDciLCJpYXQiOjE3NTA3ODA4OTgsImV4cCI6MTc1MDc4NDQ5OH0.example'}) # VerifyMagicLinkRequest | The token from the magic link URL.
|
|
956
|
+
|
|
957
|
+
begin
|
|
958
|
+
# Verify magic link
|
|
959
|
+
result = api_instance.verify_magic_link(verify_magic_link_request)
|
|
960
|
+
p result
|
|
961
|
+
rescue Mudbase::ApiError => e
|
|
962
|
+
puts "Error when calling AuthenticationApi->verify_magic_link: #{e}"
|
|
963
|
+
end
|
|
964
|
+
```
|
|
965
|
+
|
|
966
|
+
#### Using the verify_magic_link_with_http_info variant
|
|
967
|
+
|
|
968
|
+
This returns an Array which contains the response data, status code and headers.
|
|
969
|
+
|
|
970
|
+
> <Array(<AuthResponse>, Integer, Hash)> verify_magic_link_with_http_info(verify_magic_link_request)
|
|
971
|
+
|
|
972
|
+
```ruby
|
|
973
|
+
begin
|
|
974
|
+
# Verify magic link
|
|
975
|
+
data, status_code, headers = api_instance.verify_magic_link_with_http_info(verify_magic_link_request)
|
|
976
|
+
p status_code # => 2xx
|
|
977
|
+
p headers # => { ... }
|
|
978
|
+
p data # => <AuthResponse>
|
|
979
|
+
rescue Mudbase::ApiError => e
|
|
980
|
+
puts "Error when calling AuthenticationApi->verify_magic_link_with_http_info: #{e}"
|
|
981
|
+
end
|
|
982
|
+
```
|
|
983
|
+
|
|
984
|
+
### Parameters
|
|
985
|
+
|
|
986
|
+
| Name | Type | Description | Notes |
|
|
987
|
+
| ---- | ---- | ----------- | ----- |
|
|
988
|
+
| **verify_magic_link_request** | [**VerifyMagicLinkRequest**](VerifyMagicLinkRequest.md) | The token from the magic link URL. | |
|
|
989
|
+
|
|
990
|
+
### Return type
|
|
991
|
+
|
|
992
|
+
[**AuthResponse**](AuthResponse.md)
|
|
993
|
+
|
|
994
|
+
### Authorization
|
|
995
|
+
|
|
996
|
+
No authorization required
|
|
997
|
+
|
|
998
|
+
### HTTP request headers
|
|
999
|
+
|
|
1000
|
+
- **Content-Type**: application/json
|
|
1001
|
+
- **Accept**: application/json
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
## verify_otp
|
|
1005
|
+
|
|
1006
|
+
> <AuthResponse> verify_otp(otp_verify_request)
|
|
1007
|
+
|
|
1008
|
+
Verify OTP code
|
|
1009
|
+
|
|
1010
|
+
Verifies the OTP code and returns a session token and user. Public endpoint.
|
|
1011
|
+
|
|
1012
|
+
### Examples
|
|
1013
|
+
|
|
1014
|
+
```ruby
|
|
1015
|
+
require 'time'
|
|
1016
|
+
require 'mudbase'
|
|
1017
|
+
|
|
1018
|
+
api_instance = Mudbase::AuthenticationApi.new
|
|
1019
|
+
otp_verify_request = Mudbase::OTPVerifyRequest.new({otp: 'otp_example', project_id: 'project_id_example'}) # OTPVerifyRequest | Identifier (phone/email), OTP code, and project ID.
|
|
1020
|
+
|
|
1021
|
+
begin
|
|
1022
|
+
# Verify OTP code
|
|
1023
|
+
result = api_instance.verify_otp(otp_verify_request)
|
|
1024
|
+
p result
|
|
1025
|
+
rescue Mudbase::ApiError => e
|
|
1026
|
+
puts "Error when calling AuthenticationApi->verify_otp: #{e}"
|
|
1027
|
+
end
|
|
1028
|
+
```
|
|
1029
|
+
|
|
1030
|
+
#### Using the verify_otp_with_http_info variant
|
|
1031
|
+
|
|
1032
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1033
|
+
|
|
1034
|
+
> <Array(<AuthResponse>, Integer, Hash)> verify_otp_with_http_info(otp_verify_request)
|
|
1035
|
+
|
|
1036
|
+
```ruby
|
|
1037
|
+
begin
|
|
1038
|
+
# Verify OTP code
|
|
1039
|
+
data, status_code, headers = api_instance.verify_otp_with_http_info(otp_verify_request)
|
|
1040
|
+
p status_code # => 2xx
|
|
1041
|
+
p headers # => { ... }
|
|
1042
|
+
p data # => <AuthResponse>
|
|
1043
|
+
rescue Mudbase::ApiError => e
|
|
1044
|
+
puts "Error when calling AuthenticationApi->verify_otp_with_http_info: #{e}"
|
|
1045
|
+
end
|
|
1046
|
+
```
|
|
1047
|
+
|
|
1048
|
+
### Parameters
|
|
1049
|
+
|
|
1050
|
+
| Name | Type | Description | Notes |
|
|
1051
|
+
| ---- | ---- | ----------- | ----- |
|
|
1052
|
+
| **otp_verify_request** | [**OTPVerifyRequest**](OTPVerifyRequest.md) | Identifier (phone/email), OTP code, and project ID. | |
|
|
1053
|
+
|
|
1054
|
+
### Return type
|
|
1055
|
+
|
|
1056
|
+
[**AuthResponse**](AuthResponse.md)
|
|
1057
|
+
|
|
1058
|
+
### Authorization
|
|
1059
|
+
|
|
1060
|
+
No authorization required
|
|
1061
|
+
|
|
1062
|
+
### HTTP request headers
|
|
1063
|
+
|
|
1064
|
+
- **Content-Type**: application/json
|
|
1065
|
+
- **Accept**: application/json
|
|
1066
|
+
|