mudbase 1.0.0
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/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/AuthApi.md +1131 -0
- data/docs/AuthConfig.md +20 -0
- data/docs/AuthConfirmPasswordResetRequest.md +24 -0
- data/docs/AuthConvertAnonymous200Response.md +26 -0
- data/docs/AuthConvertAnonymousRequest.md +24 -0
- data/docs/AuthCreateAnonymous200Response.md +26 -0
- data/docs/AuthCreateAnonymous200ResponseUser.md +28 -0
- data/docs/AuthCreateAnonymousRequest.md +20 -0
- data/docs/AuthGetOAuthProviders200Response.md +20 -0
- data/docs/AuthGetOAuthProviders200ResponseProvidersInner.md +28 -0
- data/docs/AuthGetSession200Response.md +20 -0
- data/docs/AuthLogin200Response.md +26 -0
- data/docs/AuthLogin200ResponseUser.md +30 -0
- data/docs/AuthLogin403Response.md +22 -0
- data/docs/AuthLoginRequest.md +22 -0
- data/docs/AuthOauthCallback200Response.md +20 -0
- data/docs/AuthOauthInitiate200Response.md +18 -0
- data/docs/AuthOauthInitiate400Response.md +18 -0
- data/docs/AuthOauthSignupWithRole400Response.md +20 -0
- data/docs/AuthProvider.md +22 -0
- data/docs/AuthRefresh200Response.md +24 -0
- data/docs/AuthRefresh400Response.md +18 -0
- data/docs/AuthRefreshRequest.md +18 -0
- data/docs/AuthRegister201Response.md +28 -0
- data/docs/AuthRegister201ResponseUser.md +28 -0
- data/docs/AuthRegister429Response.md +30 -0
- data/docs/AuthRegisterRequest.md +26 -0
- data/docs/AuthRegisterWithRoleRequest.md +26 -0
- data/docs/AuthRequestPasswordResetRequest.md +20 -0
- data/docs/AuthResetPasswordRequest.md +20 -0
- data/docs/AuthResponse.md +26 -0
- data/docs/AuthVerifyMagicLinkRequest.md +18 -0
- data/docs/Billing.md +22 -0
- data/docs/BillingApi.md +677 -0
- data/docs/BillingCheckFeatureAccess200Response.md +20 -0
- data/docs/BillingCheckSubscription200Response.md +20 -0
- data/docs/BillingCheckSubscription200ResponseSubscription.md +20 -0
- data/docs/BillingCreateCheckoutSession200Response.md +20 -0
- data/docs/BillingCreateCheckoutSession200ResponseData.md +38 -0
- data/docs/BillingCreateCheckoutSession200ResponseDataPaymentOptionsInner.md +28 -0
- data/docs/BillingCreateCheckoutSessionRequest.md +26 -0
- data/docs/BillingCreateCheckoutSessionRequestCustomerInfo.md +20 -0
- data/docs/BillingGetCheckoutPayment200Response.md +20 -0
- data/docs/BillingGetCheckoutPayment200ResponseData.md +34 -0
- data/docs/BillingGetPublicPlans200Response.md +18 -0
- data/docs/BillingHandleCryptoWebhook200Response.md +18 -0
- data/docs/BillingHandleCryptoWebhookRequest.md +20 -0
- data/docs/BillingHandleCryptoWebhookRequestData.md +30 -0
- data/docs/BillingHandleFlutterwaveWebhookRequest.md +20 -0
- data/docs/BillingHandleFlutterwaveWebhookRequestData.md +32 -0
- data/docs/BillingHandleFlutterwaveWebhookRequestDataCustomer.md +20 -0
- data/docs/BillingInitializePaymentRequest.md +24 -0
- data/docs/BillingInitializePaymentRequestCustomer.md +20 -0
- data/docs/BillingLastPayment.md +22 -0
- data/docs/BillingRecordUsageRequest.md +22 -0
- data/docs/BillingVerifyPayment200Response.md +22 -0
- data/docs/BillingVerifyPayment200ResponseData.md +18 -0
- data/docs/BillingVerifyPayment200ResponseDataSubscription.md +24 -0
- data/docs/Bucket.md +28 -0
- data/docs/BucketListResponse.md +22 -0
- data/docs/BucketResponse.md +22 -0
- data/docs/ChangePasswordRequest.md +20 -0
- data/docs/ChatAddParticipant200Response.md +20 -0
- data/docs/ChatAddParticipant200ResponseData.md +18 -0
- data/docs/ChatAddParticipant200ResponseDataParticipantsInner.md +22 -0
- data/docs/ChatAddParticipantRequest.md +20 -0
- data/docs/ChatAddReaction200Response.md +20 -0
- data/docs/ChatAddReaction200ResponseDataInner.md +20 -0
- data/docs/ChatAddReactionRequest.md +18 -0
- data/docs/ChatApi.md +907 -0
- data/docs/ChatCreate201Response.md +20 -0
- data/docs/ChatCreate201ResponseData.md +26 -0
- data/docs/ChatCreateRequest.md +26 -0
- data/docs/ChatEditMessage200Response.md +20 -0
- data/docs/ChatEditMessage200ResponseData.md +22 -0
- data/docs/ChatEditMessageRequest.md +18 -0
- data/docs/ChatGet200Response.md +20 -0
- data/docs/ChatGet200ResponseData.md +22 -0
- data/docs/ChatGet200ResponseDataParticipantsInner.md +20 -0
- data/docs/ChatGetMessages200Response.md +20 -0
- data/docs/ChatGetMessages200ResponseData.md +20 -0
- data/docs/ChatGetMessages200ResponseDataMessagesInner.md +24 -0
- data/docs/ChatGetMessages200ResponseDataMessagesInnerSender.md +20 -0
- data/docs/ChatList200Response.md +20 -0
- data/docs/ChatList200ResponseData.md +20 -0
- data/docs/ChatList200ResponseDataChatsInner.md +26 -0
- data/docs/ChatList200ResponseDataChatsInnerLastMessage.md +18 -0
- data/docs/ChatMarkAsRead200Response.md +20 -0
- data/docs/ChatMarkAsRead200ResponseData.md +18 -0
- data/docs/ChatMarkAsReadRequest.md +18 -0
- data/docs/ChatRemoveParticipantRequest.md +18 -0
- data/docs/ChatRemoveReaction200Response.md +20 -0
- data/docs/ChatRemoveReaction200ResponseDataInner.md +22 -0
- data/docs/ChatSendMessage201Response.md +20 -0
- data/docs/ChatSendMessage201ResponseData.md +24 -0
- data/docs/ChatSendMessageRequest.md +24 -0
- data/docs/Collection.md +34 -0
- data/docs/CollectionsApi.md +367 -0
- data/docs/CollectionsCreate201Response.md +20 -0
- data/docs/CollectionsList200Response.md +20 -0
- data/docs/ComplianceApi.md +77 -0
- data/docs/ComplianceLogSecurityEvent200Response.md +20 -0
- data/docs/ComplianceLogSecurityEvent200ResponseEvent.md +24 -0
- data/docs/ComplianceLogSecurityEventRequest.md +22 -0
- data/docs/ComplianceLogSecurityEventRequestDetails.md +28 -0
- data/docs/ConfirmUploadResponse.md +22 -0
- data/docs/ConfirmUploadResponseScan.md +24 -0
- data/docs/CreateApiKeyRequest.md +26 -0
- data/docs/CreateBucketRequest.md +22 -0
- data/docs/CreateCollectionRequest.md +26 -0
- data/docs/CreateFunctionRequest.md +26 -0
- data/docs/CreateProjectRequest.md +22 -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/EmailRequest.md +28 -0
- data/docs/EmailRequestTo.md +49 -0
- data/docs/Error.md +28 -0
- data/docs/ErrorDetails.md +49 -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/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/FunctionsDelete200Response.md +20 -0
- data/docs/FunctionsExecuteRequest.md +18 -0
- data/docs/FunctionsGetVersions200Response.md +20 -0
- data/docs/FunctionsGetVersions200ResponseData.md +18 -0
- data/docs/FunctionsGetVersions200ResponseDataVersionsInner.md +28 -0
- data/docs/FunctionsRollbackRequest.md +18 -0
- data/docs/FunctionsSimulateRequest.md +22 -0
- data/docs/FunctionsTriggerWebhook200Response.md +22 -0
- data/docs/FunctionsTriggerWebhook400Response.md +20 -0
- data/docs/FunctionsTriggerWebhook401Response.md +20 -0
- data/docs/HealthApi.md +136 -0
- data/docs/HealthResponse.md +26 -0
- data/docs/HealthResponseServices.md +26 -0
- data/docs/IntegrationsApi.md +151 -0
- data/docs/IntegrationsExecuteRequest.md +24 -0
- data/docs/IntegrationsList200Response.md +18 -0
- data/docs/IntegrationsList200ResponseIntegrationsInner.md +24 -0
- data/docs/InviteMemberRequest.md +20 -0
- data/docs/Limits.md +30 -0
- data/docs/LoginRequest.md +20 -0
- data/docs/MagicLinkRequest.md +22 -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/MultiRoleAddRoleRequest.md +28 -0
- data/docs/MultiRoleAddRoleRequestDefaultPermissionsInner.md +20 -0
- data/docs/MultiRoleApi.md +654 -0
- data/docs/MultiRoleGetAvailableRoles200Response.md +20 -0
- data/docs/MultiRoleGetAvailableRoles200ResponseDataInner.md +30 -0
- data/docs/MultiRoleGetConfig200Response.md +20 -0
- data/docs/MultiRoleGetConfig200ResponseData.md +24 -0
- data/docs/MultiRoleToggleRoleRequest.md +18 -0
- data/docs/MultiRoleUpdateCollectionPermissionsRequest.md +20 -0
- data/docs/MultiRoleUpdateRoleRequest.md +28 -0
- data/docs/MultiRoleUpdateSettings200Response.md +22 -0
- data/docs/MultiRoleUpdateSettingsRequest.md +22 -0
- data/docs/MultiRoleUpdateSettingsRequestSettings.md +20 -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/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/RealtimeAnalyticsCheckUserPresence200Response.md +20 -0
- data/docs/RealtimeAnalyticsCheckUserPresence200ResponsePresenceValue.md +20 -0
- data/docs/RealtimeAnalyticsCheckUserPresenceRequest.md +18 -0
- data/docs/RealtimeAnalyticsGetActiveUsers200Response.md +22 -0
- data/docs/RealtimeAnalyticsGetActiveUsers200ResponseUsersInner.md +22 -0
- data/docs/RealtimeAnalyticsGetEventThroughput200Response.md +26 -0
- data/docs/RealtimeAnalyticsGetHistoricalAnalytics200Response.md +24 -0
- data/docs/RealtimeAnalyticsGetHistoricalAnalytics200ResponseDataInner.md +22 -0
- data/docs/RealtimeAnalyticsGetProject200Response.md +26 -0
- data/docs/RegisterRequest.md +26 -0
- data/docs/RoleElevationApi.md +224 -0
- data/docs/RoleElevationGetStatus200Response.md +18 -0
- data/docs/RoleElevationRequest200Response.md +28 -0
- data/docs/RoleElevationRequestRequest.md +18 -0
- data/docs/RoleElevationUploadDocumentsRequest.md +20 -0
- data/docs/RoleElevationUploadDocumentsRequestDocumentsInner.md +20 -0
- data/docs/SMSRequest.md +22 -0
- data/docs/SearchApi.md +239 -0
- data/docs/SearchGetAnalytics200Response.md +24 -0
- data/docs/SearchGetAnalytics200ResponseTopQueriesInner.md +20 -0
- data/docs/SearchGetSuggestions200Response.md +18 -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/SessionResponse.md +20 -0
- data/docs/SignedUrlResponse.md +24 -0
- data/docs/StorageApi.md +1080 -0
- data/docs/StorageConfig.md +18 -0
- data/docs/StorageConfirmUpload400Response.md +20 -0
- data/docs/StorageConfirmUploadRequest.md +30 -0
- data/docs/StorageDownloadBucketFile403Response.md +18 -0
- data/docs/StorageDownloadBucketFile404Response.md +18 -0
- data/docs/StorageGetPresignedUploadRequest.md +26 -0
- data/docs/StorageGetSignedUrlRequest.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/TriggerWebhookRequest.md +26 -0
- data/docs/TwoFASetupResponse.md +22 -0
- data/docs/UpdateApiKeyRequest.md +24 -0
- data/docs/UpdateBucketRequest.md +22 -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/UpdateOrganizationRequest.md +26 -0
- data/docs/UpdateProjectRequest.md +26 -0
- data/docs/UpdateUserRequest.md +22 -0
- data/docs/UploadFilesToBucketMetadataRequest.md +20 -0
- data/docs/UploadFilesToBucketRequest.md +22 -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/UsersDisable2faRequest.md +20 -0
- data/docs/UsersEraseData200Response.md +20 -0
- data/docs/UsersEraseData200ResponseDetails.md +26 -0
- data/docs/UsersEraseDataRequest.md +20 -0
- data/docs/UsersExportData200Response.md +32 -0
- data/docs/UsersGet200Response.md +18 -0
- data/docs/UsersLinkOAuthProvider200Response.md +18 -0
- data/docs/UsersListOAuthProviders200Response.md +18 -0
- data/docs/UsersListOAuthProviders200ResponseProvidersInner.md +24 -0
- data/docs/UsersUnlinkOAuthProvider200Response.md +20 -0
- data/docs/UsersUpdate200Response.md +20 -0
- data/docs/UsersVerify2faRequest.md +18 -0
- data/docs/UsersVerifyEmailRequest.md +20 -0
- data/docs/WalletApi.md +1232 -0
- data/docs/WalletBalance.md +30 -0
- data/docs/WalletBroadcastTransaction200Response.md +22 -0
- data/docs/WalletBroadcastTransaction200ResponseData.md +24 -0
- data/docs/WalletBroadcastTransactionRequest.md +22 -0
- data/docs/WalletCreateWebhook201Response.md +22 -0
- data/docs/WalletCreateWebhookRequest.md +26 -0
- data/docs/WalletCreateWebhookRequestFilters.md +20 -0
- data/docs/WalletEstimateGas200Response.md +20 -0
- data/docs/WalletEstimateGas200ResponseData.md +38 -0
- data/docs/WalletEstimateGasRequest.md +20 -0
- data/docs/WalletEstimateGasRequestTransaction.md +28 -0
- data/docs/WalletGetBalance200Response.md +20 -0
- data/docs/WalletGetCancelParams200Response.md +20 -0
- data/docs/WalletGetCancelParams200ResponseData.md +36 -0
- data/docs/WalletGetCancelParamsRequest.md +22 -0
- data/docs/WalletGetSpeedUpParams200Response.md +20 -0
- data/docs/WalletGetSpeedUpParams200ResponseData.md +36 -0
- data/docs/WalletGetSpeedUpParamsRequest.md +22 -0
- data/docs/WalletGetTransactionByHash200Response.md +20 -0
- data/docs/WalletGetTransactionByHash400Response.md +20 -0
- data/docs/WalletGetTransactions200Response.md +22 -0
- data/docs/WalletGetTransactions200ResponsePagination.md +30 -0
- data/docs/WalletGetWebhookLogs200Response.md +20 -0
- data/docs/WalletListAddresses200Response.md +22 -0
- data/docs/WalletListWebhooks200Response.md +22 -0
- data/docs/WalletRegisterAddressRequest.md +26 -0
- data/docs/WalletTestWebhook200Response.md +20 -0
- data/docs/WalletTestWebhookRequest.md +24 -0
- data/docs/WalletTransaction.md +58 -0
- data/docs/WalletTransactionWebhookPayload.md +22 -0
- data/docs/WalletUpdateWebhook200Response.md +20 -0
- data/docs/WalletUpdateWebhookRequest.md +24 -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/auth_api.rb +1158 -0
- data/lib/mudbase/api/billing_api.rb +729 -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/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_api.rb +699 -0
- data/lib/mudbase/api/realtime_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/storage_api.rb +1047 -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/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_confirm_password_reset_request.rb +280 -0
- data/lib/mudbase/models/auth_convert_anonymous200_response.rb +183 -0
- data/lib/mudbase/models/auth_convert_anonymous_request.rb +208 -0
- data/lib/mudbase/models/auth_create_anonymous200_response.rb +184 -0
- data/lib/mudbase/models/auth_create_anonymous200_response_user.rb +192 -0
- data/lib/mudbase/models/auth_create_anonymous_request.rb +158 -0
- data/lib/mudbase/models/auth_get_o_auth_providers200_response.rb +158 -0
- data/lib/mudbase/models/auth_get_o_auth_providers200_response_providers_inner.rb +196 -0
- data/lib/mudbase/models/auth_get_session200_response.rb +156 -0
- data/lib/mudbase/models/auth_login200_response.rb +186 -0
- data/lib/mudbase/models/auth_login200_response_user.rb +201 -0
- data/lib/mudbase/models/auth_login403_response.rb +165 -0
- data/lib/mudbase/models/auth_login_request.rb +199 -0
- data/lib/mudbase/models/auth_oauth_callback200_response.rb +156 -0
- data/lib/mudbase/models/auth_oauth_initiate200_response.rb +148 -0
- data/lib/mudbase/models/auth_oauth_initiate400_response.rb +147 -0
- data/lib/mudbase/models/auth_oauth_signup_with_role400_response.rb +156 -0
- data/lib/mudbase/models/auth_provider.rb +166 -0
- data/lib/mudbase/models/auth_refresh200_response.rb +177 -0
- data/lib/mudbase/models/auth_refresh400_response.rb +147 -0
- data/lib/mudbase/models/auth_refresh_request.rb +165 -0
- data/lib/mudbase/models/auth_register201_response.rb +196 -0
- data/lib/mudbase/models/auth_register201_response_user.rb +192 -0
- data/lib/mudbase/models/auth_register429_response.rb +226 -0
- data/lib/mudbase/models/auth_register_request.rb +277 -0
- data/lib/mudbase/models/auth_register_with_role_request.rb +268 -0
- data/lib/mudbase/models/auth_request_password_reset_request.rb +174 -0
- data/lib/mudbase/models/auth_reset_password_request.rb +182 -0
- data/lib/mudbase/models/auth_response.rb +187 -0
- data/lib/mudbase/models/auth_verify_magic_link_request.rb +164 -0
- data/lib/mudbase/models/billing.rb +166 -0
- data/lib/mudbase/models/billing_check_feature_access200_response.rb +156 -0
- data/lib/mudbase/models/billing_check_subscription200_response.rb +156 -0
- data/lib/mudbase/models/billing_check_subscription200_response_subscription.rb +156 -0
- data/lib/mudbase/models/billing_create_checkout_session200_response.rb +156 -0
- data/lib/mudbase/models/billing_create_checkout_session200_response_data.rb +245 -0
- data/lib/mudbase/models/billing_create_checkout_session200_response_data_payment_options_inner.rb +238 -0
- data/lib/mudbase/models/billing_create_checkout_session_request.rb +262 -0
- data/lib/mudbase/models/billing_create_checkout_session_request_customer_info.rb +173 -0
- data/lib/mudbase/models/billing_get_checkout_payment200_response.rb +156 -0
- data/lib/mudbase/models/billing_get_checkout_payment200_response_data.rb +224 -0
- data/lib/mudbase/models/billing_get_public_plans200_response.rb +149 -0
- data/lib/mudbase/models/billing_handle_crypto_webhook200_response.rb +147 -0
- data/lib/mudbase/models/billing_handle_crypto_webhook_request.rb +214 -0
- data/lib/mudbase/models/billing_handle_crypto_webhook_request_data.rb +201 -0
- data/lib/mudbase/models/billing_handle_flutterwave_webhook_request.rb +157 -0
- data/lib/mudbase/models/billing_handle_flutterwave_webhook_request_data.rb +211 -0
- data/lib/mudbase/models/billing_handle_flutterwave_webhook_request_data_customer.rb +156 -0
- data/lib/mudbase/models/billing_initialize_payment_request.rb +219 -0
- data/lib/mudbase/models/billing_initialize_payment_request_customer.rb +173 -0
- data/lib/mudbase/models/billing_last_payment.rb +165 -0
- data/lib/mudbase/models/billing_record_usage_request.rb +219 -0
- data/lib/mudbase/models/billing_verify_payment200_response.rb +165 -0
- data/lib/mudbase/models/billing_verify_payment200_response_data.rb +147 -0
- data/lib/mudbase/models/billing_verify_payment200_response_data_subscription.rb +208 -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/chat_add_participant200_response.rb +156 -0
- data/lib/mudbase/models/chat_add_participant200_response_data.rb +149 -0
- data/lib/mudbase/models/chat_add_participant200_response_data_participants_inner.rb +165 -0
- data/lib/mudbase/models/chat_add_participant_request.rb +207 -0
- data/lib/mudbase/models/chat_add_reaction200_response.rb +158 -0
- data/lib/mudbase/models/chat_add_reaction200_response_data_inner.rb +158 -0
- data/lib/mudbase/models/chat_add_reaction_request.rb +164 -0
- data/lib/mudbase/models/chat_create201_response.rb +156 -0
- data/lib/mudbase/models/chat_create201_response_data.rb +185 -0
- data/lib/mudbase/models/chat_create_request.rb +260 -0
- data/lib/mudbase/models/chat_edit_message200_response.rb +156 -0
- data/lib/mudbase/models/chat_edit_message200_response_data.rb +165 -0
- data/lib/mudbase/models/chat_edit_message_request.rb +164 -0
- data/lib/mudbase/models/chat_get200_response.rb +156 -0
- data/lib/mudbase/models/chat_get200_response_data.rb +167 -0
- data/lib/mudbase/models/chat_get200_response_data_participants_inner.rb +156 -0
- data/lib/mudbase/models/chat_get_messages200_response.rb +156 -0
- data/lib/mudbase/models/chat_get_messages200_response_data.rb +158 -0
- data/lib/mudbase/models/chat_get_messages200_response_data_messages_inner.rb +174 -0
- data/lib/mudbase/models/chat_get_messages200_response_data_messages_inner_sender.rb +156 -0
- data/lib/mudbase/models/chat_list200_response.rb +156 -0
- data/lib/mudbase/models/chat_list200_response_data.rb +158 -0
- data/lib/mudbase/models/chat_list200_response_data_chats_inner.rb +183 -0
- data/lib/mudbase/models/chat_list200_response_data_chats_inner_last_message.rb +147 -0
- data/lib/mudbase/models/chat_mark_as_read200_response.rb +156 -0
- data/lib/mudbase/models/chat_mark_as_read200_response_data.rb +147 -0
- data/lib/mudbase/models/chat_mark_as_read_request.rb +166 -0
- data/lib/mudbase/models/chat_remove_participant_request.rb +164 -0
- data/lib/mudbase/models/chat_remove_reaction200_response.rb +158 -0
- data/lib/mudbase/models/chat_remove_reaction200_response_data_inner.rb +167 -0
- data/lib/mudbase/models/chat_send_message201_response.rb +156 -0
- data/lib/mudbase/models/chat_send_message201_response_data.rb +174 -0
- data/lib/mudbase/models/chat_send_message_request.rb +234 -0
- data/lib/mudbase/models/collection.rb +224 -0
- data/lib/mudbase/models/collections_create201_response.rb +156 -0
- data/lib/mudbase/models/collections_list200_response.rb +158 -0
- data/lib/mudbase/models/compliance_log_security_event200_response.rb +156 -0
- data/lib/mudbase/models/compliance_log_security_event200_response_event.rb +174 -0
- data/lib/mudbase/models/compliance_log_security_event_request.rb +225 -0
- data/lib/mudbase/models/compliance_log_security_event_request_details.rb +192 -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/create_api_key_request.rb +252 -0
- data/lib/mudbase/models/create_bucket_request.rb +188 -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/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/email_request.rb +227 -0
- data/lib/mudbase/models/email_request_to.rb +104 -0
- data/lib/mudbase/models/error.rb +211 -0
- data/lib/mudbase/models/error_details.rb +104 -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/functions_delete200_response.rb +156 -0
- data/lib/mudbase/models/functions_execute_request.rb +148 -0
- data/lib/mudbase/models/functions_get_versions200_response.rb +156 -0
- data/lib/mudbase/models/functions_get_versions200_response_data.rb +149 -0
- data/lib/mudbase/models/functions_get_versions200_response_data_versions_inner.rb +192 -0
- data/lib/mudbase/models/functions_rollback_request.rb +165 -0
- data/lib/mudbase/models/functions_simulate_request.rb +168 -0
- data/lib/mudbase/models/functions_trigger_webhook200_response.rb +168 -0
- data/lib/mudbase/models/functions_trigger_webhook400_response.rb +156 -0
- data/lib/mudbase/models/functions_trigger_webhook401_response.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/integrations_execute_request.rb +232 -0
- data/lib/mudbase/models/integrations_list200_response.rb +149 -0
- data/lib/mudbase/models/integrations_list200_response_integrations_inner.rb +174 -0
- data/lib/mudbase/models/invite_member_request.rb +215 -0
- data/lib/mudbase/models/limits.rb +202 -0
- data/lib/mudbase/models/login_request.rb +191 -0
- data/lib/mudbase/models/magic_link_request.rb +200 -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/multi_role_add_role_request.rb +245 -0
- data/lib/mudbase/models/multi_role_add_role_request_default_permissions_inner.rb +158 -0
- data/lib/mudbase/models/multi_role_get_available_roles200_response.rb +158 -0
- data/lib/mudbase/models/multi_role_get_available_roles200_response_data_inner.rb +201 -0
- data/lib/mudbase/models/multi_role_get_config200_response.rb +156 -0
- data/lib/mudbase/models/multi_role_get_config200_response_data.rb +176 -0
- data/lib/mudbase/models/multi_role_toggle_role_request.rb +164 -0
- data/lib/mudbase/models/multi_role_update_collection_permissions_request.rb +180 -0
- data/lib/mudbase/models/multi_role_update_role_request.rb +192 -0
- data/lib/mudbase/models/multi_role_update_settings200_response.rb +165 -0
- data/lib/mudbase/models/multi_role_update_settings_request.rb +165 -0
- data/lib/mudbase/models/multi_role_update_settings_request_settings.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/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/realtime_analytics_check_user_presence200_response.rb +158 -0
- data/lib/mudbase/models/realtime_analytics_check_user_presence200_response_presence_value.rb +156 -0
- data/lib/mudbase/models/realtime_analytics_check_user_presence_request.rb +166 -0
- data/lib/mudbase/models/realtime_analytics_get_active_users200_response.rb +167 -0
- data/lib/mudbase/models/realtime_analytics_get_active_users200_response_users_inner.rb +165 -0
- data/lib/mudbase/models/realtime_analytics_get_event_throughput200_response.rb +185 -0
- data/lib/mudbase/models/realtime_analytics_get_historical_analytics200_response.rb +176 -0
- data/lib/mudbase/models/realtime_analytics_get_historical_analytics200_response_data_inner.rb +165 -0
- data/lib/mudbase/models/realtime_analytics_get_project200_response.rb +183 -0
- data/lib/mudbase/models/register_request.rb +261 -0
- data/lib/mudbase/models/role_elevation_get_status200_response.rb +149 -0
- data/lib/mudbase/models/role_elevation_request200_response.rb +240 -0
- data/lib/mudbase/models/role_elevation_request_request.rb +164 -0
- data/lib/mudbase/models/role_elevation_upload_documents_request.rb +192 -0
- data/lib/mudbase/models/role_elevation_upload_documents_request_documents_inner.rb +156 -0
- data/lib/mudbase/models/search_get_analytics200_response.rb +176 -0
- data/lib/mudbase/models/search_get_analytics200_response_top_queries_inner.rb +156 -0
- data/lib/mudbase/models/search_get_suggestions200_response.rb +149 -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/session_response.rb +157 -0
- data/lib/mudbase/models/signed_url_response.rb +178 -0
- data/lib/mudbase/models/sms_request.rb +200 -0
- data/lib/mudbase/models/storage_config.rb +150 -0
- data/lib/mudbase/models/storage_confirm_upload400_response.rb +156 -0
- data/lib/mudbase/models/storage_confirm_upload_request.rb +236 -0
- data/lib/mudbase/models/storage_download_bucket_file403_response.rb +147 -0
- data/lib/mudbase/models/storage_download_bucket_file404_response.rb +147 -0
- data/lib/mudbase/models/storage_get_presigned_upload_request.rb +221 -0
- data/lib/mudbase/models/storage_get_signed_url_request.rb +149 -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/trigger_webhook_request.rb +254 -0
- data/lib/mudbase/models/two_fa_setup_response.rb +166 -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_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_organization_request.rb +185 -0
- data/lib/mudbase/models/update_project_request.rb +185 -0
- data/lib/mudbase/models/update_user_request.rb +166 -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/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/users_disable2fa_request.rb +190 -0
- data/lib/mudbase/models/users_erase_data200_response.rb +156 -0
- data/lib/mudbase/models/users_erase_data200_response_details.rb +183 -0
- data/lib/mudbase/models/users_erase_data_request.rb +198 -0
- data/lib/mudbase/models/users_export_data200_response.rb +222 -0
- data/lib/mudbase/models/users_get200_response.rb +147 -0
- data/lib/mudbase/models/users_link_o_auth_provider200_response.rb +147 -0
- data/lib/mudbase/models/users_list_o_auth_providers200_response.rb +149 -0
- data/lib/mudbase/models/users_list_o_auth_providers200_response_providers_inner.rb +174 -0
- data/lib/mudbase/models/users_unlink_o_auth_provider200_response.rb +156 -0
- data/lib/mudbase/models/users_update200_response.rb +156 -0
- data/lib/mudbase/models/users_verify2fa_request.rb +164 -0
- data/lib/mudbase/models/users_verify_email_request.rb +175 -0
- data/lib/mudbase/models/wallet_balance.rb +205 -0
- data/lib/mudbase/models/wallet_broadcast_transaction200_response.rb +165 -0
- data/lib/mudbase/models/wallet_broadcast_transaction200_response_data.rb +175 -0
- data/lib/mudbase/models/wallet_broadcast_transaction_request.rb +243 -0
- data/lib/mudbase/models/wallet_create_webhook201_response.rb +165 -0
- data/lib/mudbase/models/wallet_create_webhook_request.rb +233 -0
- data/lib/mudbase/models/wallet_create_webhook_request_filters.rb +184 -0
- data/lib/mudbase/models/wallet_estimate_gas200_response.rb +156 -0
- data/lib/mudbase/models/wallet_estimate_gas200_response_data.rb +248 -0
- data/lib/mudbase/models/wallet_estimate_gas_request.rb +198 -0
- data/lib/mudbase/models/wallet_estimate_gas_request_transaction.rb +216 -0
- data/lib/mudbase/models/wallet_get_balance200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_cancel_params200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_cancel_params200_response_data.rb +231 -0
- data/lib/mudbase/models/wallet_get_cancel_params_request.rb +208 -0
- data/lib/mudbase/models/wallet_get_speed_up_params200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_speed_up_params200_response_data.rb +229 -0
- data/lib/mudbase/models/wallet_get_speed_up_params_request.rb +209 -0
- data/lib/mudbase/models/wallet_get_transaction_by_hash200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_transaction_by_hash400_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_transactions200_response.rb +167 -0
- data/lib/mudbase/models/wallet_get_transactions200_response_pagination.rb +201 -0
- data/lib/mudbase/models/wallet_get_webhook_logs200_response.rb +158 -0
- data/lib/mudbase/models/wallet_list_addresses200_response.rb +167 -0
- data/lib/mudbase/models/wallet_list_webhooks200_response.rb +167 -0
- data/lib/mudbase/models/wallet_register_address_request.rb +246 -0
- data/lib/mudbase/models/wallet_test_webhook200_response.rb +156 -0
- data/lib/mudbase/models/wallet_test_webhook_request.rb +191 -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_update_webhook200_response.rb +156 -0
- data/lib/mudbase/models/wallet_update_webhook_request.rb +176 -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/auth_api_spec.rb +240 -0
- data/spec/api/billing_api_spec.rb +163 -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/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_api_spec.rb +156 -0
- data/spec/api/realtime_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/storage_api_spec.rb +227 -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/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_confirm_password_reset_request_spec.rb +54 -0
- data/spec/models/auth_convert_anonymous200_response_spec.rb +60 -0
- data/spec/models/auth_convert_anonymous_request_spec.rb +54 -0
- data/spec/models/auth_create_anonymous200_response_spec.rb +60 -0
- data/spec/models/auth_create_anonymous200_response_user_spec.rb +66 -0
- data/spec/models/auth_create_anonymous_request_spec.rb +42 -0
- data/spec/models/auth_get_o_auth_providers200_response_providers_inner_spec.rb +66 -0
- data/spec/models/auth_get_o_auth_providers200_response_spec.rb +42 -0
- data/spec/models/auth_get_session200_response_spec.rb +42 -0
- data/spec/models/auth_login200_response_spec.rb +60 -0
- data/spec/models/auth_login200_response_user_spec.rb +72 -0
- data/spec/models/auth_login403_response_spec.rb +48 -0
- data/spec/models/auth_login_request_spec.rb +48 -0
- data/spec/models/auth_oauth_callback200_response_spec.rb +42 -0
- data/spec/models/auth_oauth_initiate200_response_spec.rb +36 -0
- data/spec/models/auth_oauth_initiate400_response_spec.rb +36 -0
- data/spec/models/auth_oauth_signup_with_role400_response_spec.rb +42 -0
- data/spec/models/auth_provider_spec.rb +48 -0
- data/spec/models/auth_refresh200_response_spec.rb +54 -0
- data/spec/models/auth_refresh400_response_spec.rb +36 -0
- data/spec/models/auth_refresh_request_spec.rb +36 -0
- data/spec/models/auth_register201_response_spec.rb +66 -0
- data/spec/models/auth_register201_response_user_spec.rb +66 -0
- data/spec/models/auth_register429_response_spec.rb +72 -0
- data/spec/models/auth_register_request_spec.rb +60 -0
- data/spec/models/auth_register_with_role_request_spec.rb +60 -0
- data/spec/models/auth_request_password_reset_request_spec.rb +42 -0
- data/spec/models/auth_reset_password_request_spec.rb +42 -0
- data/spec/models/auth_response_spec.rb +60 -0
- data/spec/models/auth_verify_magic_link_request_spec.rb +36 -0
- data/spec/models/billing_check_feature_access200_response_spec.rb +42 -0
- data/spec/models/billing_check_subscription200_response_spec.rb +42 -0
- data/spec/models/billing_check_subscription200_response_subscription_spec.rb +42 -0
- data/spec/models/billing_create_checkout_session200_response_data_payment_options_inner_spec.rb +74 -0
- data/spec/models/billing_create_checkout_session200_response_data_spec.rb +96 -0
- data/spec/models/billing_create_checkout_session200_response_spec.rb +42 -0
- data/spec/models/billing_create_checkout_session_request_customer_info_spec.rb +42 -0
- data/spec/models/billing_create_checkout_session_request_spec.rb +64 -0
- data/spec/models/billing_get_checkout_payment200_response_data_spec.rb +84 -0
- data/spec/models/billing_get_checkout_payment200_response_spec.rb +42 -0
- data/spec/models/billing_get_public_plans200_response_spec.rb +36 -0
- data/spec/models/billing_handle_crypto_webhook200_response_spec.rb +36 -0
- data/spec/models/billing_handle_crypto_webhook_request_data_spec.rb +72 -0
- data/spec/models/billing_handle_crypto_webhook_request_spec.rb +46 -0
- data/spec/models/billing_handle_flutterwave_webhook_request_data_customer_spec.rb +42 -0
- data/spec/models/billing_handle_flutterwave_webhook_request_data_spec.rb +78 -0
- data/spec/models/billing_handle_flutterwave_webhook_request_spec.rb +42 -0
- data/spec/models/billing_initialize_payment_request_customer_spec.rb +42 -0
- data/spec/models/billing_initialize_payment_request_spec.rb +54 -0
- data/spec/models/billing_last_payment_spec.rb +48 -0
- data/spec/models/billing_record_usage_request_spec.rb +48 -0
- data/spec/models/billing_spec.rb +48 -0
- data/spec/models/billing_verify_payment200_response_data_spec.rb +36 -0
- data/spec/models/billing_verify_payment200_response_data_subscription_spec.rb +58 -0
- data/spec/models/billing_verify_payment200_response_spec.rb +48 -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/chat_add_participant200_response_data_participants_inner_spec.rb +48 -0
- data/spec/models/chat_add_participant200_response_data_spec.rb +36 -0
- data/spec/models/chat_add_participant200_response_spec.rb +42 -0
- data/spec/models/chat_add_participant_request_spec.rb +46 -0
- data/spec/models/chat_add_reaction200_response_data_inner_spec.rb +42 -0
- data/spec/models/chat_add_reaction200_response_spec.rb +42 -0
- data/spec/models/chat_add_reaction_request_spec.rb +36 -0
- data/spec/models/chat_create201_response_data_spec.rb +60 -0
- data/spec/models/chat_create201_response_spec.rb +42 -0
- data/spec/models/chat_create_request_spec.rb +64 -0
- data/spec/models/chat_edit_message200_response_data_spec.rb +48 -0
- data/spec/models/chat_edit_message200_response_spec.rb +42 -0
- data/spec/models/chat_edit_message_request_spec.rb +36 -0
- data/spec/models/chat_get200_response_data_participants_inner_spec.rb +42 -0
- data/spec/models/chat_get200_response_data_spec.rb +48 -0
- data/spec/models/chat_get200_response_spec.rb +42 -0
- data/spec/models/chat_get_messages200_response_data_messages_inner_sender_spec.rb +42 -0
- data/spec/models/chat_get_messages200_response_data_messages_inner_spec.rb +54 -0
- data/spec/models/chat_get_messages200_response_data_spec.rb +42 -0
- data/spec/models/chat_get_messages200_response_spec.rb +42 -0
- data/spec/models/chat_list200_response_data_chats_inner_last_message_spec.rb +36 -0
- data/spec/models/chat_list200_response_data_chats_inner_spec.rb +60 -0
- data/spec/models/chat_list200_response_data_spec.rb +42 -0
- data/spec/models/chat_list200_response_spec.rb +42 -0
- data/spec/models/chat_mark_as_read200_response_data_spec.rb +36 -0
- data/spec/models/chat_mark_as_read200_response_spec.rb +42 -0
- data/spec/models/chat_mark_as_read_request_spec.rb +36 -0
- data/spec/models/chat_remove_participant_request_spec.rb +36 -0
- data/spec/models/chat_remove_reaction200_response_data_inner_spec.rb +48 -0
- data/spec/models/chat_remove_reaction200_response_spec.rb +42 -0
- data/spec/models/chat_send_message201_response_data_spec.rb +54 -0
- data/spec/models/chat_send_message201_response_spec.rb +42 -0
- data/spec/models/chat_send_message_request_spec.rb +58 -0
- data/spec/models/collection_spec.rb +84 -0
- data/spec/models/collections_create201_response_spec.rb +42 -0
- data/spec/models/collections_list200_response_spec.rb +42 -0
- data/spec/models/compliance_log_security_event200_response_event_spec.rb +54 -0
- data/spec/models/compliance_log_security_event200_response_spec.rb +42 -0
- data/spec/models/compliance_log_security_event_request_details_spec.rb +66 -0
- data/spec/models/compliance_log_security_event_request_spec.rb +56 -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/create_api_key_request_spec.rb +60 -0
- data/spec/models/create_bucket_request_spec.rb +48 -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/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/email_request_spec.rb +66 -0
- data/spec/models/email_request_to_spec.rb +32 -0
- data/spec/models/error_details_spec.rb +32 -0
- data/spec/models/error_spec.rb +66 -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/functions_delete200_response_spec.rb +42 -0
- data/spec/models/functions_execute_request_spec.rb +36 -0
- data/spec/models/functions_get_versions200_response_data_spec.rb +36 -0
- data/spec/models/functions_get_versions200_response_data_versions_inner_spec.rb +66 -0
- data/spec/models/functions_get_versions200_response_spec.rb +42 -0
- data/spec/models/functions_rollback_request_spec.rb +36 -0
- data/spec/models/functions_simulate_request_spec.rb +48 -0
- data/spec/models/functions_trigger_webhook200_response_spec.rb +48 -0
- data/spec/models/functions_trigger_webhook400_response_spec.rb +42 -0
- data/spec/models/functions_trigger_webhook401_response_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/integrations_execute_request_spec.rb +58 -0
- data/spec/models/integrations_list200_response_integrations_inner_spec.rb +54 -0
- data/spec/models/integrations_list200_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/login_request_spec.rb +42 -0
- data/spec/models/magic_link_request_spec.rb +48 -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/multi_role_add_role_request_default_permissions_inner_spec.rb +42 -0
- data/spec/models/multi_role_add_role_request_spec.rb +66 -0
- data/spec/models/multi_role_get_available_roles200_response_data_inner_spec.rb +72 -0
- data/spec/models/multi_role_get_available_roles200_response_spec.rb +42 -0
- data/spec/models/multi_role_get_config200_response_data_spec.rb +54 -0
- data/spec/models/multi_role_get_config200_response_spec.rb +42 -0
- data/spec/models/multi_role_toggle_role_request_spec.rb +36 -0
- data/spec/models/multi_role_update_collection_permissions_request_spec.rb +46 -0
- data/spec/models/multi_role_update_role_request_spec.rb +66 -0
- data/spec/models/multi_role_update_settings200_response_spec.rb +48 -0
- data/spec/models/multi_role_update_settings_request_settings_spec.rb +42 -0
- data/spec/models/multi_role_update_settings_request_spec.rb +48 -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/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/realtime_analytics_check_user_presence200_response_presence_value_spec.rb +42 -0
- data/spec/models/realtime_analytics_check_user_presence200_response_spec.rb +42 -0
- data/spec/models/realtime_analytics_check_user_presence_request_spec.rb +36 -0
- data/spec/models/realtime_analytics_get_active_users200_response_spec.rb +48 -0
- data/spec/models/realtime_analytics_get_active_users200_response_users_inner_spec.rb +48 -0
- data/spec/models/realtime_analytics_get_event_throughput200_response_spec.rb +60 -0
- data/spec/models/realtime_analytics_get_historical_analytics200_response_data_inner_spec.rb +48 -0
- data/spec/models/realtime_analytics_get_historical_analytics200_response_spec.rb +54 -0
- data/spec/models/realtime_analytics_get_project200_response_spec.rb +60 -0
- data/spec/models/register_request_spec.rb +60 -0
- data/spec/models/role_elevation_get_status200_response_spec.rb +36 -0
- data/spec/models/role_elevation_request200_response_spec.rb +74 -0
- data/spec/models/role_elevation_request_request_spec.rb +36 -0
- data/spec/models/role_elevation_upload_documents_request_documents_inner_spec.rb +42 -0
- data/spec/models/role_elevation_upload_documents_request_spec.rb +42 -0
- data/spec/models/search_get_analytics200_response_spec.rb +54 -0
- data/spec/models/search_get_analytics200_response_top_queries_inner_spec.rb +42 -0
- data/spec/models/search_get_suggestions200_response_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/session_response_spec.rb +42 -0
- data/spec/models/signed_url_response_spec.rb +54 -0
- data/spec/models/sms_request_spec.rb +48 -0
- data/spec/models/storage_config_spec.rb +36 -0
- data/spec/models/storage_confirm_upload400_response_spec.rb +42 -0
- data/spec/models/storage_confirm_upload_request_spec.rb +72 -0
- data/spec/models/storage_download_bucket_file403_response_spec.rb +36 -0
- data/spec/models/storage_download_bucket_file404_response_spec.rb +36 -0
- data/spec/models/storage_get_presigned_upload_request_spec.rb +60 -0
- data/spec/models/storage_get_signed_url_request_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/trigger_webhook_request_spec.rb +60 -0
- data/spec/models/two_fa_setup_response_spec.rb +48 -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_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_organization_request_spec.rb +60 -0
- data/spec/models/update_project_request_spec.rb +60 -0
- data/spec/models/update_user_request_spec.rb +48 -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/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/users_disable2fa_request_spec.rb +42 -0
- data/spec/models/users_erase_data200_response_details_spec.rb +60 -0
- data/spec/models/users_erase_data200_response_spec.rb +42 -0
- data/spec/models/users_erase_data_request_spec.rb +46 -0
- data/spec/models/users_export_data200_response_spec.rb +78 -0
- data/spec/models/users_get200_response_spec.rb +36 -0
- data/spec/models/users_link_o_auth_provider200_response_spec.rb +36 -0
- data/spec/models/users_list_o_auth_providers200_response_providers_inner_spec.rb +54 -0
- data/spec/models/users_list_o_auth_providers200_response_spec.rb +36 -0
- data/spec/models/users_unlink_o_auth_provider200_response_spec.rb +42 -0
- data/spec/models/users_update200_response_spec.rb +42 -0
- data/spec/models/users_verify2fa_request_spec.rb +36 -0
- data/spec/models/users_verify_email_request_spec.rb +42 -0
- data/spec/models/wallet_balance_spec.rb +72 -0
- data/spec/models/wallet_broadcast_transaction200_response_data_spec.rb +54 -0
- data/spec/models/wallet_broadcast_transaction200_response_spec.rb +48 -0
- data/spec/models/wallet_broadcast_transaction_request_spec.rb +52 -0
- data/spec/models/wallet_create_webhook201_response_spec.rb +48 -0
- data/spec/models/wallet_create_webhook_request_filters_spec.rb +46 -0
- data/spec/models/wallet_create_webhook_request_spec.rb +64 -0
- data/spec/models/wallet_estimate_gas200_response_data_spec.rb +96 -0
- data/spec/models/wallet_estimate_gas200_response_spec.rb +42 -0
- data/spec/models/wallet_estimate_gas_request_spec.rb +46 -0
- data/spec/models/wallet_estimate_gas_request_transaction_spec.rb +66 -0
- data/spec/models/wallet_get_balance200_response_spec.rb +42 -0
- data/spec/models/wallet_get_cancel_params200_response_data_spec.rb +90 -0
- data/spec/models/wallet_get_cancel_params200_response_spec.rb +42 -0
- data/spec/models/wallet_get_cancel_params_request_spec.rb +52 -0
- data/spec/models/wallet_get_speed_up_params200_response_data_spec.rb +90 -0
- data/spec/models/wallet_get_speed_up_params200_response_spec.rb +42 -0
- data/spec/models/wallet_get_speed_up_params_request_spec.rb +52 -0
- data/spec/models/wallet_get_transaction_by_hash200_response_spec.rb +42 -0
- data/spec/models/wallet_get_transaction_by_hash400_response_spec.rb +42 -0
- data/spec/models/wallet_get_transactions200_response_pagination_spec.rb +72 -0
- data/spec/models/wallet_get_transactions200_response_spec.rb +48 -0
- data/spec/models/wallet_get_webhook_logs200_response_spec.rb +42 -0
- data/spec/models/wallet_list_addresses200_response_spec.rb +48 -0
- data/spec/models/wallet_list_webhooks200_response_spec.rb +48 -0
- data/spec/models/wallet_register_address_request_spec.rb +64 -0
- data/spec/models/wallet_test_webhook200_response_spec.rb +42 -0
- data/spec/models/wallet_test_webhook_request_spec.rb +54 -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_update_webhook200_response_spec.rb +42 -0
- data/spec/models/wallet_update_webhook_request_spec.rb +54 -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 +1443 -0
data/docs/AuthApi.md
ADDED
|
@@ -0,0 +1,1131 @@
|
|
|
1
|
+
# Mudbase::AuthApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://cloud.mudbase.dev*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**auth_confirm_password_reset**](AuthApi.md#auth_confirm_password_reset) | **POST** /api/auth/local/password-reset/confirm | Confirm password reset with OTP |
|
|
8
|
+
| [**auth_convert_anonymous**](AuthApi.md#auth_convert_anonymous) | **POST** /api/auth/anonymous/convert | Convert anonymous account to full account |
|
|
9
|
+
| [**auth_create_anonymous**](AuthApi.md#auth_create_anonymous) | **POST** /api/auth/anonymous | Create anonymous session |
|
|
10
|
+
| [**auth_get_o_auth_providers**](AuthApi.md#auth_get_o_auth_providers) | **GET** /api/auth/oauth/providers/available | Get all available OAuth providers |
|
|
11
|
+
| [**auth_get_session**](AuthApi.md#auth_get_session) | **GET** /api/auth/local/session | Get current session |
|
|
12
|
+
| [**auth_login**](AuthApi.md#auth_login) | **POST** /api/auth/local/login | Login user |
|
|
13
|
+
| [**auth_logout**](AuthApi.md#auth_logout) | **POST** /api/auth/local/logout | Logout user |
|
|
14
|
+
| [**auth_oauth_callback**](AuthApi.md#auth_oauth_callback) | **GET** /api/auth/oauth/callback/{provider} | OAuth callback handler |
|
|
15
|
+
| [**auth_oauth_initiate**](AuthApi.md#auth_oauth_initiate) | **GET** /api/auth/oauth/{provider}/{projectId} | Initiate OAuth authentication |
|
|
16
|
+
| [**auth_refresh**](AuthApi.md#auth_refresh) | **POST** /api/auth/refresh | Refresh access token (org and project) |
|
|
17
|
+
| [**auth_register**](AuthApi.md#auth_register) | **POST** /api/auth/local/register | Register new user |
|
|
18
|
+
| [**auth_request_password_reset**](AuthApi.md#auth_request_password_reset) | **POST** /api/auth/local/password-reset | Request password reset (OTP) |
|
|
19
|
+
| [**auth_reset_password**](AuthApi.md#auth_reset_password) | **POST** /api/auth/local/password-reset/{token} | Reset password with token (legacy) |
|
|
20
|
+
| [**auth_send_magic_link**](AuthApi.md#auth_send_magic_link) | **POST** /api/auth/magic-link/send | Send magic link |
|
|
21
|
+
| [**auth_send_otp**](AuthApi.md#auth_send_otp) | **POST** /api/auth/otp/send | Send OTP code |
|
|
22
|
+
| [**auth_verify_magic_link**](AuthApi.md#auth_verify_magic_link) | **POST** /api/auth/magic-link/verify | Verify magic link |
|
|
23
|
+
| [**auth_verify_otp**](AuthApi.md#auth_verify_otp) | **POST** /api/auth/otp/verify | Verify OTP code |
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## auth_confirm_password_reset
|
|
27
|
+
|
|
28
|
+
> <MessageResponse> auth_confirm_password_reset(auth_confirm_password_reset_request)
|
|
29
|
+
|
|
30
|
+
Confirm password reset with OTP
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
### Examples
|
|
35
|
+
|
|
36
|
+
```ruby
|
|
37
|
+
require 'time'
|
|
38
|
+
require 'mudbase'
|
|
39
|
+
|
|
40
|
+
api_instance = Mudbase::AuthApi.new
|
|
41
|
+
auth_confirm_password_reset_request = Mudbase::AuthConfirmPasswordResetRequest.new({email: 'user@example.com', project_id: '685ad30be129932fbb7a1047', otp: '123456', new_password: 'NewSecurePass123!'}) # AuthConfirmPasswordResetRequest | Email, projectId, OTP code, and new password.
|
|
42
|
+
|
|
43
|
+
begin
|
|
44
|
+
# Confirm password reset with OTP
|
|
45
|
+
result = api_instance.auth_confirm_password_reset(auth_confirm_password_reset_request)
|
|
46
|
+
p result
|
|
47
|
+
rescue Mudbase::ApiError => e
|
|
48
|
+
puts "Error when calling AuthApi->auth_confirm_password_reset: #{e}"
|
|
49
|
+
end
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
#### Using the auth_confirm_password_reset_with_http_info variant
|
|
53
|
+
|
|
54
|
+
This returns an Array which contains the response data, status code and headers.
|
|
55
|
+
|
|
56
|
+
> <Array(<MessageResponse>, Integer, Hash)> auth_confirm_password_reset_with_http_info(auth_confirm_password_reset_request)
|
|
57
|
+
|
|
58
|
+
```ruby
|
|
59
|
+
begin
|
|
60
|
+
# Confirm password reset with OTP
|
|
61
|
+
data, status_code, headers = api_instance.auth_confirm_password_reset_with_http_info(auth_confirm_password_reset_request)
|
|
62
|
+
p status_code # => 2xx
|
|
63
|
+
p headers # => { ... }
|
|
64
|
+
p data # => <MessageResponse>
|
|
65
|
+
rescue Mudbase::ApiError => e
|
|
66
|
+
puts "Error when calling AuthApi->auth_confirm_password_reset_with_http_info: #{e}"
|
|
67
|
+
end
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Parameters
|
|
71
|
+
|
|
72
|
+
| Name | Type | Description | Notes |
|
|
73
|
+
| ---- | ---- | ----------- | ----- |
|
|
74
|
+
| **auth_confirm_password_reset_request** | [**AuthConfirmPasswordResetRequest**](AuthConfirmPasswordResetRequest.md) | Email, projectId, OTP code, and new password. | |
|
|
75
|
+
|
|
76
|
+
### Return type
|
|
77
|
+
|
|
78
|
+
[**MessageResponse**](MessageResponse.md)
|
|
79
|
+
|
|
80
|
+
### Authorization
|
|
81
|
+
|
|
82
|
+
No authorization required
|
|
83
|
+
|
|
84
|
+
### HTTP request headers
|
|
85
|
+
|
|
86
|
+
- **Content-Type**: application/json
|
|
87
|
+
- **Accept**: application/json
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
## auth_convert_anonymous
|
|
91
|
+
|
|
92
|
+
> <AuthConvertAnonymous200Response> auth_convert_anonymous(auth_convert_anonymous_request)
|
|
93
|
+
|
|
94
|
+
Convert anonymous account to full account
|
|
95
|
+
|
|
96
|
+
Convert an anonymous user session to a full authenticated account. Preserves user data. Requires JWT Bearer token (BearerToken). API keys are not supported for this endpoint.
|
|
97
|
+
|
|
98
|
+
### Examples
|
|
99
|
+
|
|
100
|
+
```ruby
|
|
101
|
+
require 'time'
|
|
102
|
+
require 'mudbase'
|
|
103
|
+
# setup authorization
|
|
104
|
+
Mudbase.configure do |config|
|
|
105
|
+
# Configure Bearer authorization (JWT): BearerToken
|
|
106
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
api_instance = Mudbase::AuthApi.new
|
|
110
|
+
auth_convert_anonymous_request = Mudbase::AuthConvertAnonymousRequest.new({email: 'user@example.com', password: 'SecurePassword123!'}) # AuthConvertAnonymousRequest | Email, password, and optional firstName, lastName for the new full account.
|
|
111
|
+
|
|
112
|
+
begin
|
|
113
|
+
# Convert anonymous account to full account
|
|
114
|
+
result = api_instance.auth_convert_anonymous(auth_convert_anonymous_request)
|
|
115
|
+
p result
|
|
116
|
+
rescue Mudbase::ApiError => e
|
|
117
|
+
puts "Error when calling AuthApi->auth_convert_anonymous: #{e}"
|
|
118
|
+
end
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
#### Using the auth_convert_anonymous_with_http_info variant
|
|
122
|
+
|
|
123
|
+
This returns an Array which contains the response data, status code and headers.
|
|
124
|
+
|
|
125
|
+
> <Array(<AuthConvertAnonymous200Response>, Integer, Hash)> auth_convert_anonymous_with_http_info(auth_convert_anonymous_request)
|
|
126
|
+
|
|
127
|
+
```ruby
|
|
128
|
+
begin
|
|
129
|
+
# Convert anonymous account to full account
|
|
130
|
+
data, status_code, headers = api_instance.auth_convert_anonymous_with_http_info(auth_convert_anonymous_request)
|
|
131
|
+
p status_code # => 2xx
|
|
132
|
+
p headers # => { ... }
|
|
133
|
+
p data # => <AuthConvertAnonymous200Response>
|
|
134
|
+
rescue Mudbase::ApiError => e
|
|
135
|
+
puts "Error when calling AuthApi->auth_convert_anonymous_with_http_info: #{e}"
|
|
136
|
+
end
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### Parameters
|
|
140
|
+
|
|
141
|
+
| Name | Type | Description | Notes |
|
|
142
|
+
| ---- | ---- | ----------- | ----- |
|
|
143
|
+
| **auth_convert_anonymous_request** | [**AuthConvertAnonymousRequest**](AuthConvertAnonymousRequest.md) | Email, password, and optional firstName, lastName for the new full account. | |
|
|
144
|
+
|
|
145
|
+
### Return type
|
|
146
|
+
|
|
147
|
+
[**AuthConvertAnonymous200Response**](AuthConvertAnonymous200Response.md)
|
|
148
|
+
|
|
149
|
+
### Authorization
|
|
150
|
+
|
|
151
|
+
[BearerToken](../README.md#BearerToken)
|
|
152
|
+
|
|
153
|
+
### HTTP request headers
|
|
154
|
+
|
|
155
|
+
- **Content-Type**: application/json
|
|
156
|
+
- **Accept**: application/json
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
## auth_create_anonymous
|
|
160
|
+
|
|
161
|
+
> <AuthCreateAnonymous200Response> auth_create_anonymous(opts)
|
|
162
|
+
|
|
163
|
+
Create anonymous session
|
|
164
|
+
|
|
165
|
+
Create an anonymous user session for guest access. Users can later convert to full accounts.
|
|
166
|
+
|
|
167
|
+
### Examples
|
|
168
|
+
|
|
169
|
+
```ruby
|
|
170
|
+
require 'time'
|
|
171
|
+
require 'mudbase'
|
|
172
|
+
|
|
173
|
+
api_instance = Mudbase::AuthApi.new
|
|
174
|
+
opts = {
|
|
175
|
+
auth_create_anonymous_request: Mudbase::AuthCreateAnonymousRequest.new # AuthCreateAnonymousRequest | Optional projectId and deviceId for the anonymous session.
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
begin
|
|
179
|
+
# Create anonymous session
|
|
180
|
+
result = api_instance.auth_create_anonymous(opts)
|
|
181
|
+
p result
|
|
182
|
+
rescue Mudbase::ApiError => e
|
|
183
|
+
puts "Error when calling AuthApi->auth_create_anonymous: #{e}"
|
|
184
|
+
end
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
#### Using the auth_create_anonymous_with_http_info variant
|
|
188
|
+
|
|
189
|
+
This returns an Array which contains the response data, status code and headers.
|
|
190
|
+
|
|
191
|
+
> <Array(<AuthCreateAnonymous200Response>, Integer, Hash)> auth_create_anonymous_with_http_info(opts)
|
|
192
|
+
|
|
193
|
+
```ruby
|
|
194
|
+
begin
|
|
195
|
+
# Create anonymous session
|
|
196
|
+
data, status_code, headers = api_instance.auth_create_anonymous_with_http_info(opts)
|
|
197
|
+
p status_code # => 2xx
|
|
198
|
+
p headers # => { ... }
|
|
199
|
+
p data # => <AuthCreateAnonymous200Response>
|
|
200
|
+
rescue Mudbase::ApiError => e
|
|
201
|
+
puts "Error when calling AuthApi->auth_create_anonymous_with_http_info: #{e}"
|
|
202
|
+
end
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
### Parameters
|
|
206
|
+
|
|
207
|
+
| Name | Type | Description | Notes |
|
|
208
|
+
| ---- | ---- | ----------- | ----- |
|
|
209
|
+
| **auth_create_anonymous_request** | [**AuthCreateAnonymousRequest**](AuthCreateAnonymousRequest.md) | Optional projectId and deviceId for the anonymous session. | [optional] |
|
|
210
|
+
|
|
211
|
+
### Return type
|
|
212
|
+
|
|
213
|
+
[**AuthCreateAnonymous200Response**](AuthCreateAnonymous200Response.md)
|
|
214
|
+
|
|
215
|
+
### Authorization
|
|
216
|
+
|
|
217
|
+
No authorization required
|
|
218
|
+
|
|
219
|
+
### HTTP request headers
|
|
220
|
+
|
|
221
|
+
- **Content-Type**: application/json
|
|
222
|
+
- **Accept**: application/json
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
## auth_get_o_auth_providers
|
|
226
|
+
|
|
227
|
+
> <AuthGetOAuthProviders200Response> auth_get_o_auth_providers
|
|
228
|
+
|
|
229
|
+
Get all available OAuth providers
|
|
230
|
+
|
|
231
|
+
Returns a list of all supported OAuth providers with their configuration details
|
|
232
|
+
|
|
233
|
+
### Examples
|
|
234
|
+
|
|
235
|
+
```ruby
|
|
236
|
+
require 'time'
|
|
237
|
+
require 'mudbase'
|
|
238
|
+
|
|
239
|
+
api_instance = Mudbase::AuthApi.new
|
|
240
|
+
|
|
241
|
+
begin
|
|
242
|
+
# Get all available OAuth providers
|
|
243
|
+
result = api_instance.auth_get_o_auth_providers
|
|
244
|
+
p result
|
|
245
|
+
rescue Mudbase::ApiError => e
|
|
246
|
+
puts "Error when calling AuthApi->auth_get_o_auth_providers: #{e}"
|
|
247
|
+
end
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
#### Using the auth_get_o_auth_providers_with_http_info variant
|
|
251
|
+
|
|
252
|
+
This returns an Array which contains the response data, status code and headers.
|
|
253
|
+
|
|
254
|
+
> <Array(<AuthGetOAuthProviders200Response>, Integer, Hash)> auth_get_o_auth_providers_with_http_info
|
|
255
|
+
|
|
256
|
+
```ruby
|
|
257
|
+
begin
|
|
258
|
+
# Get all available OAuth providers
|
|
259
|
+
data, status_code, headers = api_instance.auth_get_o_auth_providers_with_http_info
|
|
260
|
+
p status_code # => 2xx
|
|
261
|
+
p headers # => { ... }
|
|
262
|
+
p data # => <AuthGetOAuthProviders200Response>
|
|
263
|
+
rescue Mudbase::ApiError => e
|
|
264
|
+
puts "Error when calling AuthApi->auth_get_o_auth_providers_with_http_info: #{e}"
|
|
265
|
+
end
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### Parameters
|
|
269
|
+
|
|
270
|
+
This endpoint does not need any parameter.
|
|
271
|
+
|
|
272
|
+
### Return type
|
|
273
|
+
|
|
274
|
+
[**AuthGetOAuthProviders200Response**](AuthGetOAuthProviders200Response.md)
|
|
275
|
+
|
|
276
|
+
### Authorization
|
|
277
|
+
|
|
278
|
+
No authorization required
|
|
279
|
+
|
|
280
|
+
### HTTP request headers
|
|
281
|
+
|
|
282
|
+
- **Content-Type**: Not defined
|
|
283
|
+
- **Accept**: application/json
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
## auth_get_session
|
|
287
|
+
|
|
288
|
+
> <AuthGetSession200Response> auth_get_session(project_id)
|
|
289
|
+
|
|
290
|
+
Get current session
|
|
291
|
+
|
|
292
|
+
Get the current authenticated user session. Requires JWT Bearer token (BearerToken). API keys are not supported for this endpoint.
|
|
293
|
+
|
|
294
|
+
### Examples
|
|
295
|
+
|
|
296
|
+
```ruby
|
|
297
|
+
require 'time'
|
|
298
|
+
require 'mudbase'
|
|
299
|
+
# setup authorization
|
|
300
|
+
Mudbase.configure do |config|
|
|
301
|
+
# Configure Bearer authorization (JWT): BearerToken
|
|
302
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
api_instance = Mudbase::AuthApi.new
|
|
306
|
+
project_id = 'project_id_example' # String | Project ID to get session for.
|
|
307
|
+
|
|
308
|
+
begin
|
|
309
|
+
# Get current session
|
|
310
|
+
result = api_instance.auth_get_session(project_id)
|
|
311
|
+
p result
|
|
312
|
+
rescue Mudbase::ApiError => e
|
|
313
|
+
puts "Error when calling AuthApi->auth_get_session: #{e}"
|
|
314
|
+
end
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
#### Using the auth_get_session_with_http_info variant
|
|
318
|
+
|
|
319
|
+
This returns an Array which contains the response data, status code and headers.
|
|
320
|
+
|
|
321
|
+
> <Array(<AuthGetSession200Response>, Integer, Hash)> auth_get_session_with_http_info(project_id)
|
|
322
|
+
|
|
323
|
+
```ruby
|
|
324
|
+
begin
|
|
325
|
+
# Get current session
|
|
326
|
+
data, status_code, headers = api_instance.auth_get_session_with_http_info(project_id)
|
|
327
|
+
p status_code # => 2xx
|
|
328
|
+
p headers # => { ... }
|
|
329
|
+
p data # => <AuthGetSession200Response>
|
|
330
|
+
rescue Mudbase::ApiError => e
|
|
331
|
+
puts "Error when calling AuthApi->auth_get_session_with_http_info: #{e}"
|
|
332
|
+
end
|
|
333
|
+
```
|
|
334
|
+
|
|
335
|
+
### Parameters
|
|
336
|
+
|
|
337
|
+
| Name | Type | Description | Notes |
|
|
338
|
+
| ---- | ---- | ----------- | ----- |
|
|
339
|
+
| **project_id** | **String** | Project ID to get session for. | |
|
|
340
|
+
|
|
341
|
+
### Return type
|
|
342
|
+
|
|
343
|
+
[**AuthGetSession200Response**](AuthGetSession200Response.md)
|
|
344
|
+
|
|
345
|
+
### Authorization
|
|
346
|
+
|
|
347
|
+
[BearerToken](../README.md#BearerToken)
|
|
348
|
+
|
|
349
|
+
### HTTP request headers
|
|
350
|
+
|
|
351
|
+
- **Content-Type**: Not defined
|
|
352
|
+
- **Accept**: application/json
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
## auth_login
|
|
356
|
+
|
|
357
|
+
> <AuthLogin200Response> auth_login(auth_login_request)
|
|
358
|
+
|
|
359
|
+
Login user
|
|
360
|
+
|
|
361
|
+
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).
|
|
362
|
+
|
|
363
|
+
### Examples
|
|
364
|
+
|
|
365
|
+
```ruby
|
|
366
|
+
require 'time'
|
|
367
|
+
require 'mudbase'
|
|
368
|
+
|
|
369
|
+
api_instance = Mudbase::AuthApi.new
|
|
370
|
+
auth_login_request = Mudbase::AuthLoginRequest.new({email: 'email_example', password: 'password_example'}) # AuthLoginRequest | Login credentials (email, password) and project ID.
|
|
371
|
+
|
|
372
|
+
begin
|
|
373
|
+
# Login user
|
|
374
|
+
result = api_instance.auth_login(auth_login_request)
|
|
375
|
+
p result
|
|
376
|
+
rescue Mudbase::ApiError => e
|
|
377
|
+
puts "Error when calling AuthApi->auth_login: #{e}"
|
|
378
|
+
end
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
#### Using the auth_login_with_http_info variant
|
|
382
|
+
|
|
383
|
+
This returns an Array which contains the response data, status code and headers.
|
|
384
|
+
|
|
385
|
+
> <Array(<AuthLogin200Response>, Integer, Hash)> auth_login_with_http_info(auth_login_request)
|
|
386
|
+
|
|
387
|
+
```ruby
|
|
388
|
+
begin
|
|
389
|
+
# Login user
|
|
390
|
+
data, status_code, headers = api_instance.auth_login_with_http_info(auth_login_request)
|
|
391
|
+
p status_code # => 2xx
|
|
392
|
+
p headers # => { ... }
|
|
393
|
+
p data # => <AuthLogin200Response>
|
|
394
|
+
rescue Mudbase::ApiError => e
|
|
395
|
+
puts "Error when calling AuthApi->auth_login_with_http_info: #{e}"
|
|
396
|
+
end
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
### Parameters
|
|
400
|
+
|
|
401
|
+
| Name | Type | Description | Notes |
|
|
402
|
+
| ---- | ---- | ----------- | ----- |
|
|
403
|
+
| **auth_login_request** | [**AuthLoginRequest**](AuthLoginRequest.md) | Login credentials (email, password) and project ID. | |
|
|
404
|
+
|
|
405
|
+
### Return type
|
|
406
|
+
|
|
407
|
+
[**AuthLogin200Response**](AuthLogin200Response.md)
|
|
408
|
+
|
|
409
|
+
### Authorization
|
|
410
|
+
|
|
411
|
+
No authorization required
|
|
412
|
+
|
|
413
|
+
### HTTP request headers
|
|
414
|
+
|
|
415
|
+
- **Content-Type**: application/json
|
|
416
|
+
- **Accept**: application/json
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
## auth_logout
|
|
420
|
+
|
|
421
|
+
> <MessageResponse> auth_logout
|
|
422
|
+
|
|
423
|
+
Logout user
|
|
424
|
+
|
|
425
|
+
Logout the current authenticated user session. Requires JWT Bearer token (BearerToken). API keys are not supported for this endpoint.
|
|
426
|
+
|
|
427
|
+
### Examples
|
|
428
|
+
|
|
429
|
+
```ruby
|
|
430
|
+
require 'time'
|
|
431
|
+
require 'mudbase'
|
|
432
|
+
# setup authorization
|
|
433
|
+
Mudbase.configure do |config|
|
|
434
|
+
# Configure Bearer authorization (JWT): BearerToken
|
|
435
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
436
|
+
end
|
|
437
|
+
|
|
438
|
+
api_instance = Mudbase::AuthApi.new
|
|
439
|
+
|
|
440
|
+
begin
|
|
441
|
+
# Logout user
|
|
442
|
+
result = api_instance.auth_logout
|
|
443
|
+
p result
|
|
444
|
+
rescue Mudbase::ApiError => e
|
|
445
|
+
puts "Error when calling AuthApi->auth_logout: #{e}"
|
|
446
|
+
end
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
#### Using the auth_logout_with_http_info variant
|
|
450
|
+
|
|
451
|
+
This returns an Array which contains the response data, status code and headers.
|
|
452
|
+
|
|
453
|
+
> <Array(<MessageResponse>, Integer, Hash)> auth_logout_with_http_info
|
|
454
|
+
|
|
455
|
+
```ruby
|
|
456
|
+
begin
|
|
457
|
+
# Logout user
|
|
458
|
+
data, status_code, headers = api_instance.auth_logout_with_http_info
|
|
459
|
+
p status_code # => 2xx
|
|
460
|
+
p headers # => { ... }
|
|
461
|
+
p data # => <MessageResponse>
|
|
462
|
+
rescue Mudbase::ApiError => e
|
|
463
|
+
puts "Error when calling AuthApi->auth_logout_with_http_info: #{e}"
|
|
464
|
+
end
|
|
465
|
+
```
|
|
466
|
+
|
|
467
|
+
### Parameters
|
|
468
|
+
|
|
469
|
+
This endpoint does not need any parameter.
|
|
470
|
+
|
|
471
|
+
### Return type
|
|
472
|
+
|
|
473
|
+
[**MessageResponse**](MessageResponse.md)
|
|
474
|
+
|
|
475
|
+
### Authorization
|
|
476
|
+
|
|
477
|
+
[BearerToken](../README.md#BearerToken)
|
|
478
|
+
|
|
479
|
+
### HTTP request headers
|
|
480
|
+
|
|
481
|
+
- **Content-Type**: Not defined
|
|
482
|
+
- **Accept**: application/json
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
## auth_oauth_callback
|
|
486
|
+
|
|
487
|
+
> <AuthOauthCallback200Response> auth_oauth_callback(provider)
|
|
488
|
+
|
|
489
|
+
OAuth callback handler
|
|
490
|
+
|
|
491
|
+
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, refreshToken, and expiresIn in query params.
|
|
492
|
+
|
|
493
|
+
### Examples
|
|
494
|
+
|
|
495
|
+
```ruby
|
|
496
|
+
require 'time'
|
|
497
|
+
require 'mudbase'
|
|
498
|
+
|
|
499
|
+
api_instance = Mudbase::AuthApi.new
|
|
500
|
+
provider = 'provider_example' # String | OAuth provider identifier (e.g. google, github).
|
|
501
|
+
|
|
502
|
+
begin
|
|
503
|
+
# OAuth callback handler
|
|
504
|
+
result = api_instance.auth_oauth_callback(provider)
|
|
505
|
+
p result
|
|
506
|
+
rescue Mudbase::ApiError => e
|
|
507
|
+
puts "Error when calling AuthApi->auth_oauth_callback: #{e}"
|
|
508
|
+
end
|
|
509
|
+
```
|
|
510
|
+
|
|
511
|
+
#### Using the auth_oauth_callback_with_http_info variant
|
|
512
|
+
|
|
513
|
+
This returns an Array which contains the response data, status code and headers.
|
|
514
|
+
|
|
515
|
+
> <Array(<AuthOauthCallback200Response>, Integer, Hash)> auth_oauth_callback_with_http_info(provider)
|
|
516
|
+
|
|
517
|
+
```ruby
|
|
518
|
+
begin
|
|
519
|
+
# OAuth callback handler
|
|
520
|
+
data, status_code, headers = api_instance.auth_oauth_callback_with_http_info(provider)
|
|
521
|
+
p status_code # => 2xx
|
|
522
|
+
p headers # => { ... }
|
|
523
|
+
p data # => <AuthOauthCallback200Response>
|
|
524
|
+
rescue Mudbase::ApiError => e
|
|
525
|
+
puts "Error when calling AuthApi->auth_oauth_callback_with_http_info: #{e}"
|
|
526
|
+
end
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
### Parameters
|
|
530
|
+
|
|
531
|
+
| Name | Type | Description | Notes |
|
|
532
|
+
| ---- | ---- | ----------- | ----- |
|
|
533
|
+
| **provider** | **String** | OAuth provider identifier (e.g. google, github). | |
|
|
534
|
+
|
|
535
|
+
### Return type
|
|
536
|
+
|
|
537
|
+
[**AuthOauthCallback200Response**](AuthOauthCallback200Response.md)
|
|
538
|
+
|
|
539
|
+
### Authorization
|
|
540
|
+
|
|
541
|
+
No authorization required
|
|
542
|
+
|
|
543
|
+
### HTTP request headers
|
|
544
|
+
|
|
545
|
+
- **Content-Type**: Not defined
|
|
546
|
+
- **Accept**: application/json
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
## auth_oauth_initiate
|
|
550
|
+
|
|
551
|
+
> <AuthOauthInitiate200Response> auth_oauth_initiate(provider, project_id, opts)
|
|
552
|
+
|
|
553
|
+
Initiate OAuth authentication
|
|
554
|
+
|
|
555
|
+
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.
|
|
556
|
+
|
|
557
|
+
### Examples
|
|
558
|
+
|
|
559
|
+
```ruby
|
|
560
|
+
require 'time'
|
|
561
|
+
require 'mudbase'
|
|
562
|
+
|
|
563
|
+
api_instance = Mudbase::AuthApi.new
|
|
564
|
+
provider = 'google' # String | OAuth provider identifier (e.g. google, github).
|
|
565
|
+
project_id = '685ad30be129932fbb7a1047' # String | Project ID for which OAuth is configured.
|
|
566
|
+
opts = {
|
|
567
|
+
redirect_url: 'https://client.app/auth/callback' # String | The URL to redirect to after authentication. Must be pre-registered in project settings.
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
begin
|
|
571
|
+
# Initiate OAuth authentication
|
|
572
|
+
result = api_instance.auth_oauth_initiate(provider, project_id, opts)
|
|
573
|
+
p result
|
|
574
|
+
rescue Mudbase::ApiError => e
|
|
575
|
+
puts "Error when calling AuthApi->auth_oauth_initiate: #{e}"
|
|
576
|
+
end
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
#### Using the auth_oauth_initiate_with_http_info variant
|
|
580
|
+
|
|
581
|
+
This returns an Array which contains the response data, status code and headers.
|
|
582
|
+
|
|
583
|
+
> <Array(<AuthOauthInitiate200Response>, Integer, Hash)> auth_oauth_initiate_with_http_info(provider, project_id, opts)
|
|
584
|
+
|
|
585
|
+
```ruby
|
|
586
|
+
begin
|
|
587
|
+
# Initiate OAuth authentication
|
|
588
|
+
data, status_code, headers = api_instance.auth_oauth_initiate_with_http_info(provider, project_id, opts)
|
|
589
|
+
p status_code # => 2xx
|
|
590
|
+
p headers # => { ... }
|
|
591
|
+
p data # => <AuthOauthInitiate200Response>
|
|
592
|
+
rescue Mudbase::ApiError => e
|
|
593
|
+
puts "Error when calling AuthApi->auth_oauth_initiate_with_http_info: #{e}"
|
|
594
|
+
end
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
### Parameters
|
|
598
|
+
|
|
599
|
+
| Name | Type | Description | Notes |
|
|
600
|
+
| ---- | ---- | ----------- | ----- |
|
|
601
|
+
| **provider** | **String** | OAuth provider identifier (e.g. google, github). | |
|
|
602
|
+
| **project_id** | **String** | Project ID for which OAuth is configured. | |
|
|
603
|
+
| **redirect_url** | **String** | The URL to redirect to after authentication. Must be pre-registered in project settings. | [optional] |
|
|
604
|
+
|
|
605
|
+
### Return type
|
|
606
|
+
|
|
607
|
+
[**AuthOauthInitiate200Response**](AuthOauthInitiate200Response.md)
|
|
608
|
+
|
|
609
|
+
### Authorization
|
|
610
|
+
|
|
611
|
+
No authorization required
|
|
612
|
+
|
|
613
|
+
### HTTP request headers
|
|
614
|
+
|
|
615
|
+
- **Content-Type**: Not defined
|
|
616
|
+
- **Accept**: application/json
|
|
617
|
+
|
|
618
|
+
|
|
619
|
+
## auth_refresh
|
|
620
|
+
|
|
621
|
+
> <AuthRefresh200Response> auth_refresh(auth_refresh_request)
|
|
622
|
+
|
|
623
|
+
Refresh access token (org and project)
|
|
624
|
+
|
|
625
|
+
Exchange a valid refresh token for a new JWT access token and refresh token. Works for both **organization** (platform/dashboard) and **app** auth; the same endpoint is used. The previous refresh token is invalidated (rotation). If the same refresh token is used again, the session is revoked (reuse detection).
|
|
626
|
+
|
|
627
|
+
### Examples
|
|
628
|
+
|
|
629
|
+
```ruby
|
|
630
|
+
require 'time'
|
|
631
|
+
require 'mudbase'
|
|
632
|
+
|
|
633
|
+
api_instance = Mudbase::AuthApi.new
|
|
634
|
+
auth_refresh_request = Mudbase::AuthRefreshRequest.new({refresh_token: 'refresh_token_example'}) # AuthRefreshRequest | JSON body containing the refresh token to exchange for a new access token and refresh token (token rotation).
|
|
635
|
+
|
|
636
|
+
begin
|
|
637
|
+
# Refresh access token (org and project)
|
|
638
|
+
result = api_instance.auth_refresh(auth_refresh_request)
|
|
639
|
+
p result
|
|
640
|
+
rescue Mudbase::ApiError => e
|
|
641
|
+
puts "Error when calling AuthApi->auth_refresh: #{e}"
|
|
642
|
+
end
|
|
643
|
+
```
|
|
644
|
+
|
|
645
|
+
#### Using the auth_refresh_with_http_info variant
|
|
646
|
+
|
|
647
|
+
This returns an Array which contains the response data, status code and headers.
|
|
648
|
+
|
|
649
|
+
> <Array(<AuthRefresh200Response>, Integer, Hash)> auth_refresh_with_http_info(auth_refresh_request)
|
|
650
|
+
|
|
651
|
+
```ruby
|
|
652
|
+
begin
|
|
653
|
+
# Refresh access token (org and project)
|
|
654
|
+
data, status_code, headers = api_instance.auth_refresh_with_http_info(auth_refresh_request)
|
|
655
|
+
p status_code # => 2xx
|
|
656
|
+
p headers # => { ... }
|
|
657
|
+
p data # => <AuthRefresh200Response>
|
|
658
|
+
rescue Mudbase::ApiError => e
|
|
659
|
+
puts "Error when calling AuthApi->auth_refresh_with_http_info: #{e}"
|
|
660
|
+
end
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
### Parameters
|
|
664
|
+
|
|
665
|
+
| Name | Type | Description | Notes |
|
|
666
|
+
| ---- | ---- | ----------- | ----- |
|
|
667
|
+
| **auth_refresh_request** | [**AuthRefreshRequest**](AuthRefreshRequest.md) | JSON body containing the refresh token to exchange for a new access token and refresh token (token rotation). | |
|
|
668
|
+
|
|
669
|
+
### Return type
|
|
670
|
+
|
|
671
|
+
[**AuthRefresh200Response**](AuthRefresh200Response.md)
|
|
672
|
+
|
|
673
|
+
### Authorization
|
|
674
|
+
|
|
675
|
+
No authorization required
|
|
676
|
+
|
|
677
|
+
### HTTP request headers
|
|
678
|
+
|
|
679
|
+
- **Content-Type**: application/json
|
|
680
|
+
- **Accept**: application/json
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
## auth_register
|
|
684
|
+
|
|
685
|
+
> <AuthRegister201Response> auth_register(auth_register_request)
|
|
686
|
+
|
|
687
|
+
Register new user
|
|
688
|
+
|
|
689
|
+
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.
|
|
690
|
+
|
|
691
|
+
### Examples
|
|
692
|
+
|
|
693
|
+
```ruby
|
|
694
|
+
require 'time'
|
|
695
|
+
require 'mudbase'
|
|
696
|
+
|
|
697
|
+
api_instance = Mudbase::AuthApi.new
|
|
698
|
+
auth_register_request = Mudbase::AuthRegisterRequest.new({email: 'email_example', password: 'password_example', first_name: 'first_name_example', last_name: 'last_name_example', project_id: 'project_id_example'}) # AuthRegisterRequest | Registration payload (email, password, firstName, lastName, projectId).
|
|
699
|
+
|
|
700
|
+
begin
|
|
701
|
+
# Register new user
|
|
702
|
+
result = api_instance.auth_register(auth_register_request)
|
|
703
|
+
p result
|
|
704
|
+
rescue Mudbase::ApiError => e
|
|
705
|
+
puts "Error when calling AuthApi->auth_register: #{e}"
|
|
706
|
+
end
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
#### Using the auth_register_with_http_info variant
|
|
710
|
+
|
|
711
|
+
This returns an Array which contains the response data, status code and headers.
|
|
712
|
+
|
|
713
|
+
> <Array(<AuthRegister201Response>, Integer, Hash)> auth_register_with_http_info(auth_register_request)
|
|
714
|
+
|
|
715
|
+
```ruby
|
|
716
|
+
begin
|
|
717
|
+
# Register new user
|
|
718
|
+
data, status_code, headers = api_instance.auth_register_with_http_info(auth_register_request)
|
|
719
|
+
p status_code # => 2xx
|
|
720
|
+
p headers # => { ... }
|
|
721
|
+
p data # => <AuthRegister201Response>
|
|
722
|
+
rescue Mudbase::ApiError => e
|
|
723
|
+
puts "Error when calling AuthApi->auth_register_with_http_info: #{e}"
|
|
724
|
+
end
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
### Parameters
|
|
728
|
+
|
|
729
|
+
| Name | Type | Description | Notes |
|
|
730
|
+
| ---- | ---- | ----------- | ----- |
|
|
731
|
+
| **auth_register_request** | [**AuthRegisterRequest**](AuthRegisterRequest.md) | Registration payload (email, password, firstName, lastName, projectId). | |
|
|
732
|
+
|
|
733
|
+
### Return type
|
|
734
|
+
|
|
735
|
+
[**AuthRegister201Response**](AuthRegister201Response.md)
|
|
736
|
+
|
|
737
|
+
### Authorization
|
|
738
|
+
|
|
739
|
+
No authorization required
|
|
740
|
+
|
|
741
|
+
### HTTP request headers
|
|
742
|
+
|
|
743
|
+
- **Content-Type**: application/json
|
|
744
|
+
- **Accept**: application/json
|
|
745
|
+
|
|
746
|
+
|
|
747
|
+
## auth_request_password_reset
|
|
748
|
+
|
|
749
|
+
> <MessageResponse> auth_request_password_reset(auth_request_password_reset_request)
|
|
750
|
+
|
|
751
|
+
Request password reset (OTP)
|
|
752
|
+
|
|
753
|
+
When projectId is provided, sends a 6-digit OTP to the user's email (app reset uses OTP, not link). When projectId is omitted, sends a token link (org/platform local account). Rate limited.
|
|
754
|
+
|
|
755
|
+
### Examples
|
|
756
|
+
|
|
757
|
+
```ruby
|
|
758
|
+
require 'time'
|
|
759
|
+
require 'mudbase'
|
|
760
|
+
|
|
761
|
+
api_instance = Mudbase::AuthApi.new
|
|
762
|
+
auth_request_password_reset_request = Mudbase::AuthRequestPasswordResetRequest.new({email: 'user@example.com'}) # AuthRequestPasswordResetRequest | Email and optional projectId for app OTP or org token link.
|
|
763
|
+
|
|
764
|
+
begin
|
|
765
|
+
# Request password reset (OTP)
|
|
766
|
+
result = api_instance.auth_request_password_reset(auth_request_password_reset_request)
|
|
767
|
+
p result
|
|
768
|
+
rescue Mudbase::ApiError => e
|
|
769
|
+
puts "Error when calling AuthApi->auth_request_password_reset: #{e}"
|
|
770
|
+
end
|
|
771
|
+
```
|
|
772
|
+
|
|
773
|
+
#### Using the auth_request_password_reset_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)> auth_request_password_reset_with_http_info(auth_request_password_reset_request)
|
|
778
|
+
|
|
779
|
+
```ruby
|
|
780
|
+
begin
|
|
781
|
+
# Request password reset (OTP)
|
|
782
|
+
data, status_code, headers = api_instance.auth_request_password_reset_with_http_info(auth_request_password_reset_request)
|
|
783
|
+
p status_code # => 2xx
|
|
784
|
+
p headers # => { ... }
|
|
785
|
+
p data # => <MessageResponse>
|
|
786
|
+
rescue Mudbase::ApiError => e
|
|
787
|
+
puts "Error when calling AuthApi->auth_request_password_reset_with_http_info: #{e}"
|
|
788
|
+
end
|
|
789
|
+
```
|
|
790
|
+
|
|
791
|
+
### Parameters
|
|
792
|
+
|
|
793
|
+
| Name | Type | Description | Notes |
|
|
794
|
+
| ---- | ---- | ----------- | ----- |
|
|
795
|
+
| **auth_request_password_reset_request** | [**AuthRequestPasswordResetRequest**](AuthRequestPasswordResetRequest.md) | Email and optional projectId for app OTP or org token link. | |
|
|
796
|
+
|
|
797
|
+
### Return type
|
|
798
|
+
|
|
799
|
+
[**MessageResponse**](MessageResponse.md)
|
|
800
|
+
|
|
801
|
+
### Authorization
|
|
802
|
+
|
|
803
|
+
No authorization required
|
|
804
|
+
|
|
805
|
+
### HTTP request headers
|
|
806
|
+
|
|
807
|
+
- **Content-Type**: application/json
|
|
808
|
+
- **Accept**: application/json
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
## auth_reset_password
|
|
812
|
+
|
|
813
|
+
> <MessageResponse> auth_reset_password(token, auth_reset_password_request)
|
|
814
|
+
|
|
815
|
+
Reset password with token (legacy)
|
|
816
|
+
|
|
817
|
+
Legacy token-based completion. Prefer OTP flow: use POST .../password-reset/confirm with the OTP sent to email for app resets.
|
|
818
|
+
|
|
819
|
+
### Examples
|
|
820
|
+
|
|
821
|
+
```ruby
|
|
822
|
+
require 'time'
|
|
823
|
+
require 'mudbase'
|
|
824
|
+
|
|
825
|
+
api_instance = Mudbase::AuthApi.new
|
|
826
|
+
token = 'token_example' # String | Password reset token from email link.
|
|
827
|
+
auth_reset_password_request = Mudbase::AuthResetPasswordRequest.new({password: 'NewSecurePass123!'}) # AuthResetPasswordRequest | New password and optional projectId.
|
|
828
|
+
|
|
829
|
+
begin
|
|
830
|
+
# Reset password with token (legacy)
|
|
831
|
+
result = api_instance.auth_reset_password(token, auth_reset_password_request)
|
|
832
|
+
p result
|
|
833
|
+
rescue Mudbase::ApiError => e
|
|
834
|
+
puts "Error when calling AuthApi->auth_reset_password: #{e}"
|
|
835
|
+
end
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
#### Using the auth_reset_password_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)> auth_reset_password_with_http_info(token, auth_reset_password_request)
|
|
843
|
+
|
|
844
|
+
```ruby
|
|
845
|
+
begin
|
|
846
|
+
# Reset password with token (legacy)
|
|
847
|
+
data, status_code, headers = api_instance.auth_reset_password_with_http_info(token, auth_reset_password_request)
|
|
848
|
+
p status_code # => 2xx
|
|
849
|
+
p headers # => { ... }
|
|
850
|
+
p data # => <MessageResponse>
|
|
851
|
+
rescue Mudbase::ApiError => e
|
|
852
|
+
puts "Error when calling AuthApi->auth_reset_password_with_http_info: #{e}"
|
|
853
|
+
end
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
### Parameters
|
|
857
|
+
|
|
858
|
+
| Name | Type | Description | Notes |
|
|
859
|
+
| ---- | ---- | ----------- | ----- |
|
|
860
|
+
| **token** | **String** | Password reset token from email link. | |
|
|
861
|
+
| **auth_reset_password_request** | [**AuthResetPasswordRequest**](AuthResetPasswordRequest.md) | New password and optional projectId. | |
|
|
862
|
+
|
|
863
|
+
### Return type
|
|
864
|
+
|
|
865
|
+
[**MessageResponse**](MessageResponse.md)
|
|
866
|
+
|
|
867
|
+
### Authorization
|
|
868
|
+
|
|
869
|
+
No authorization required
|
|
870
|
+
|
|
871
|
+
### HTTP request headers
|
|
872
|
+
|
|
873
|
+
- **Content-Type**: application/json
|
|
874
|
+
- **Accept**: application/json
|
|
875
|
+
|
|
876
|
+
|
|
877
|
+
## auth_send_magic_link
|
|
878
|
+
|
|
879
|
+
> <MessageResponse> auth_send_magic_link(magic_link_request)
|
|
880
|
+
|
|
881
|
+
Send magic link
|
|
882
|
+
|
|
883
|
+
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.
|
|
884
|
+
|
|
885
|
+
### Examples
|
|
886
|
+
|
|
887
|
+
```ruby
|
|
888
|
+
require 'time'
|
|
889
|
+
require 'mudbase'
|
|
890
|
+
|
|
891
|
+
api_instance = Mudbase::AuthApi.new
|
|
892
|
+
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.
|
|
893
|
+
|
|
894
|
+
begin
|
|
895
|
+
# Send magic link
|
|
896
|
+
result = api_instance.auth_send_magic_link(magic_link_request)
|
|
897
|
+
p result
|
|
898
|
+
rescue Mudbase::ApiError => e
|
|
899
|
+
puts "Error when calling AuthApi->auth_send_magic_link: #{e}"
|
|
900
|
+
end
|
|
901
|
+
```
|
|
902
|
+
|
|
903
|
+
#### Using the auth_send_magic_link_with_http_info variant
|
|
904
|
+
|
|
905
|
+
This returns an Array which contains the response data, status code and headers.
|
|
906
|
+
|
|
907
|
+
> <Array(<MessageResponse>, Integer, Hash)> auth_send_magic_link_with_http_info(magic_link_request)
|
|
908
|
+
|
|
909
|
+
```ruby
|
|
910
|
+
begin
|
|
911
|
+
# Send magic link
|
|
912
|
+
data, status_code, headers = api_instance.auth_send_magic_link_with_http_info(magic_link_request)
|
|
913
|
+
p status_code # => 2xx
|
|
914
|
+
p headers # => { ... }
|
|
915
|
+
p data # => <MessageResponse>
|
|
916
|
+
rescue Mudbase::ApiError => e
|
|
917
|
+
puts "Error when calling AuthApi->auth_send_magic_link_with_http_info: #{e}"
|
|
918
|
+
end
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
### Parameters
|
|
922
|
+
|
|
923
|
+
| Name | Type | Description | Notes |
|
|
924
|
+
| ---- | ---- | ----------- | ----- |
|
|
925
|
+
| **magic_link_request** | [**MagicLinkRequest**](MagicLinkRequest.md) | Email, projectId, and optional redirect URL for the magic link. | |
|
|
926
|
+
|
|
927
|
+
### Return type
|
|
928
|
+
|
|
929
|
+
[**MessageResponse**](MessageResponse.md)
|
|
930
|
+
|
|
931
|
+
### Authorization
|
|
932
|
+
|
|
933
|
+
No authorization required
|
|
934
|
+
|
|
935
|
+
### HTTP request headers
|
|
936
|
+
|
|
937
|
+
- **Content-Type**: application/json
|
|
938
|
+
- **Accept**: application/json
|
|
939
|
+
|
|
940
|
+
|
|
941
|
+
## auth_send_otp
|
|
942
|
+
|
|
943
|
+
> <MessageResponse> auth_send_otp(otp_send_request)
|
|
944
|
+
|
|
945
|
+
Send OTP code
|
|
946
|
+
|
|
947
|
+
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.
|
|
948
|
+
|
|
949
|
+
### Examples
|
|
950
|
+
|
|
951
|
+
```ruby
|
|
952
|
+
require 'time'
|
|
953
|
+
require 'mudbase'
|
|
954
|
+
|
|
955
|
+
api_instance = Mudbase::AuthApi.new
|
|
956
|
+
otp_send_request = Mudbase::OTPSendRequest.new({project_id: 'project_id_example', method: 'sms'}) # OTPSendRequest | Project ID, delivery method (sms/email), and phone or email.
|
|
957
|
+
|
|
958
|
+
begin
|
|
959
|
+
# Send OTP code
|
|
960
|
+
result = api_instance.auth_send_otp(otp_send_request)
|
|
961
|
+
p result
|
|
962
|
+
rescue Mudbase::ApiError => e
|
|
963
|
+
puts "Error when calling AuthApi->auth_send_otp: #{e}"
|
|
964
|
+
end
|
|
965
|
+
```
|
|
966
|
+
|
|
967
|
+
#### Using the auth_send_otp_with_http_info variant
|
|
968
|
+
|
|
969
|
+
This returns an Array which contains the response data, status code and headers.
|
|
970
|
+
|
|
971
|
+
> <Array(<MessageResponse>, Integer, Hash)> auth_send_otp_with_http_info(otp_send_request)
|
|
972
|
+
|
|
973
|
+
```ruby
|
|
974
|
+
begin
|
|
975
|
+
# Send OTP code
|
|
976
|
+
data, status_code, headers = api_instance.auth_send_otp_with_http_info(otp_send_request)
|
|
977
|
+
p status_code # => 2xx
|
|
978
|
+
p headers # => { ... }
|
|
979
|
+
p data # => <MessageResponse>
|
|
980
|
+
rescue Mudbase::ApiError => e
|
|
981
|
+
puts "Error when calling AuthApi->auth_send_otp_with_http_info: #{e}"
|
|
982
|
+
end
|
|
983
|
+
```
|
|
984
|
+
|
|
985
|
+
### Parameters
|
|
986
|
+
|
|
987
|
+
| Name | Type | Description | Notes |
|
|
988
|
+
| ---- | ---- | ----------- | ----- |
|
|
989
|
+
| **otp_send_request** | [**OTPSendRequest**](OTPSendRequest.md) | Project ID, delivery method (sms/email), and phone or email. | |
|
|
990
|
+
|
|
991
|
+
### Return type
|
|
992
|
+
|
|
993
|
+
[**MessageResponse**](MessageResponse.md)
|
|
994
|
+
|
|
995
|
+
### Authorization
|
|
996
|
+
|
|
997
|
+
No authorization required
|
|
998
|
+
|
|
999
|
+
### HTTP request headers
|
|
1000
|
+
|
|
1001
|
+
- **Content-Type**: application/json
|
|
1002
|
+
- **Accept**: application/json
|
|
1003
|
+
|
|
1004
|
+
|
|
1005
|
+
## auth_verify_magic_link
|
|
1006
|
+
|
|
1007
|
+
> <AuthResponse> auth_verify_magic_link(auth_verify_magic_link_request)
|
|
1008
|
+
|
|
1009
|
+
Verify magic link
|
|
1010
|
+
|
|
1011
|
+
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.
|
|
1012
|
+
|
|
1013
|
+
### Examples
|
|
1014
|
+
|
|
1015
|
+
```ruby
|
|
1016
|
+
require 'time'
|
|
1017
|
+
require 'mudbase'
|
|
1018
|
+
|
|
1019
|
+
api_instance = Mudbase::AuthApi.new
|
|
1020
|
+
auth_verify_magic_link_request = Mudbase::AuthVerifyMagicLinkRequest.new({token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InVzZXJAZXhhbXBsZS5jb20iLCJwcm9qZWN0SWQiOiI2ODVhZDMwYmUxMjk5MzJmYmI3YTEwNDciLCJpYXQiOjE3NTA3ODA4OTgsImV4cCI6MTc1MDc4NDQ5OH0.example'}) # AuthVerifyMagicLinkRequest | The token from the magic link URL.
|
|
1021
|
+
|
|
1022
|
+
begin
|
|
1023
|
+
# Verify magic link
|
|
1024
|
+
result = api_instance.auth_verify_magic_link(auth_verify_magic_link_request)
|
|
1025
|
+
p result
|
|
1026
|
+
rescue Mudbase::ApiError => e
|
|
1027
|
+
puts "Error when calling AuthApi->auth_verify_magic_link: #{e}"
|
|
1028
|
+
end
|
|
1029
|
+
```
|
|
1030
|
+
|
|
1031
|
+
#### Using the auth_verify_magic_link_with_http_info variant
|
|
1032
|
+
|
|
1033
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1034
|
+
|
|
1035
|
+
> <Array(<AuthResponse>, Integer, Hash)> auth_verify_magic_link_with_http_info(auth_verify_magic_link_request)
|
|
1036
|
+
|
|
1037
|
+
```ruby
|
|
1038
|
+
begin
|
|
1039
|
+
# Verify magic link
|
|
1040
|
+
data, status_code, headers = api_instance.auth_verify_magic_link_with_http_info(auth_verify_magic_link_request)
|
|
1041
|
+
p status_code # => 2xx
|
|
1042
|
+
p headers # => { ... }
|
|
1043
|
+
p data # => <AuthResponse>
|
|
1044
|
+
rescue Mudbase::ApiError => e
|
|
1045
|
+
puts "Error when calling AuthApi->auth_verify_magic_link_with_http_info: #{e}"
|
|
1046
|
+
end
|
|
1047
|
+
```
|
|
1048
|
+
|
|
1049
|
+
### Parameters
|
|
1050
|
+
|
|
1051
|
+
| Name | Type | Description | Notes |
|
|
1052
|
+
| ---- | ---- | ----------- | ----- |
|
|
1053
|
+
| **auth_verify_magic_link_request** | [**AuthVerifyMagicLinkRequest**](AuthVerifyMagicLinkRequest.md) | The token from the magic link URL. | |
|
|
1054
|
+
|
|
1055
|
+
### Return type
|
|
1056
|
+
|
|
1057
|
+
[**AuthResponse**](AuthResponse.md)
|
|
1058
|
+
|
|
1059
|
+
### Authorization
|
|
1060
|
+
|
|
1061
|
+
No authorization required
|
|
1062
|
+
|
|
1063
|
+
### HTTP request headers
|
|
1064
|
+
|
|
1065
|
+
- **Content-Type**: application/json
|
|
1066
|
+
- **Accept**: application/json
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
## auth_verify_otp
|
|
1070
|
+
|
|
1071
|
+
> <AuthResponse> auth_verify_otp(otp_verify_request)
|
|
1072
|
+
|
|
1073
|
+
Verify OTP code
|
|
1074
|
+
|
|
1075
|
+
Verifies the OTP code and returns a session token and user. Public endpoint.
|
|
1076
|
+
|
|
1077
|
+
### Examples
|
|
1078
|
+
|
|
1079
|
+
```ruby
|
|
1080
|
+
require 'time'
|
|
1081
|
+
require 'mudbase'
|
|
1082
|
+
|
|
1083
|
+
api_instance = Mudbase::AuthApi.new
|
|
1084
|
+
otp_verify_request = Mudbase::OTPVerifyRequest.new({otp: 'otp_example', project_id: 'project_id_example'}) # OTPVerifyRequest | Identifier (phone/email), OTP code, and project ID.
|
|
1085
|
+
|
|
1086
|
+
begin
|
|
1087
|
+
# Verify OTP code
|
|
1088
|
+
result = api_instance.auth_verify_otp(otp_verify_request)
|
|
1089
|
+
p result
|
|
1090
|
+
rescue Mudbase::ApiError => e
|
|
1091
|
+
puts "Error when calling AuthApi->auth_verify_otp: #{e}"
|
|
1092
|
+
end
|
|
1093
|
+
```
|
|
1094
|
+
|
|
1095
|
+
#### Using the auth_verify_otp_with_http_info variant
|
|
1096
|
+
|
|
1097
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1098
|
+
|
|
1099
|
+
> <Array(<AuthResponse>, Integer, Hash)> auth_verify_otp_with_http_info(otp_verify_request)
|
|
1100
|
+
|
|
1101
|
+
```ruby
|
|
1102
|
+
begin
|
|
1103
|
+
# Verify OTP code
|
|
1104
|
+
data, status_code, headers = api_instance.auth_verify_otp_with_http_info(otp_verify_request)
|
|
1105
|
+
p status_code # => 2xx
|
|
1106
|
+
p headers # => { ... }
|
|
1107
|
+
p data # => <AuthResponse>
|
|
1108
|
+
rescue Mudbase::ApiError => e
|
|
1109
|
+
puts "Error when calling AuthApi->auth_verify_otp_with_http_info: #{e}"
|
|
1110
|
+
end
|
|
1111
|
+
```
|
|
1112
|
+
|
|
1113
|
+
### Parameters
|
|
1114
|
+
|
|
1115
|
+
| Name | Type | Description | Notes |
|
|
1116
|
+
| ---- | ---- | ----------- | ----- |
|
|
1117
|
+
| **otp_verify_request** | [**OTPVerifyRequest**](OTPVerifyRequest.md) | Identifier (phone/email), OTP code, and project ID. | |
|
|
1118
|
+
|
|
1119
|
+
### Return type
|
|
1120
|
+
|
|
1121
|
+
[**AuthResponse**](AuthResponse.md)
|
|
1122
|
+
|
|
1123
|
+
### Authorization
|
|
1124
|
+
|
|
1125
|
+
No authorization required
|
|
1126
|
+
|
|
1127
|
+
### HTTP request headers
|
|
1128
|
+
|
|
1129
|
+
- **Content-Type**: application/json
|
|
1130
|
+
- **Accept**: application/json
|
|
1131
|
+
|