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
|
@@ -0,0 +1,1158 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MUDBASESDK
|
|
3
|
+
|
|
4
|
+
#MUDBASE is a scalable, real-time, and secure Backend-as-a-Service (BaaS) platform designed for modern applications. Built with custom logic, it offers fine-grained control, extensibility, and enterprise-grade security. ## Features - 🔐 Multi-provider authentication (30+ OAuth providers) - 📊 Real-time database with collections - 📁 File storage and management - 🔑 API key management with permissions - 🔗 Webhook system with retry logic - ⚡ Serverless functions - 💬 Multi-channel messaging (Push, Email, SMS) - 📈 Usage analytics and monitoring - 🌐 Real-time WebSocket events - 🔍 Full-text search capabilities - 💳 Billing: Flutterwave only for fiat (platform subscriptions + org payment processing with 7% + $0.50 split); crypto payment processor for multi-chain checkout - 📡 Block-based multi-chain wallet monitoring (ETH/UTXO scanners, GetBlock, scanner metrics API)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.1.9
|
|
7
|
+
Contact: support@mudbase.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.20.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Mudbase
|
|
16
|
+
class AuthApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Confirm password reset with OTP
|
|
23
|
+
# 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.
|
|
24
|
+
# @param auth_confirm_password_reset_request [AuthConfirmPasswordResetRequest] Email, projectId, OTP code, and new password.
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [MessageResponse]
|
|
27
|
+
def auth_confirm_password_reset(auth_confirm_password_reset_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = auth_confirm_password_reset_with_http_info(auth_confirm_password_reset_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Confirm password reset with OTP
|
|
33
|
+
# 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.
|
|
34
|
+
# @param auth_confirm_password_reset_request [AuthConfirmPasswordResetRequest] Email, projectId, OTP code, and new password.
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
37
|
+
def auth_confirm_password_reset_with_http_info(auth_confirm_password_reset_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_confirm_password_reset ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'auth_confirm_password_reset_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && auth_confirm_password_reset_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'auth_confirm_password_reset_request' when calling AuthApi.auth_confirm_password_reset"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api/auth/local/password-reset/confirm'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_confirm_password_reset_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || []
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"AuthApi.auth_confirm_password_reset",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_confirm_password_reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Convert anonymous account to full account
|
|
91
|
+
# 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.
|
|
92
|
+
# @param auth_convert_anonymous_request [AuthConvertAnonymousRequest] Email, password, and optional firstName, lastName for the new full account.
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [AuthConvertAnonymous200Response]
|
|
95
|
+
def auth_convert_anonymous(auth_convert_anonymous_request, opts = {})
|
|
96
|
+
data, _status_code, _headers = auth_convert_anonymous_with_http_info(auth_convert_anonymous_request, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Convert anonymous account to full account
|
|
101
|
+
# 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.
|
|
102
|
+
# @param auth_convert_anonymous_request [AuthConvertAnonymousRequest] Email, password, and optional firstName, lastName for the new full account.
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(AuthConvertAnonymous200Response, Integer, Hash)>] AuthConvertAnonymous200Response data, response status code and response headers
|
|
105
|
+
def auth_convert_anonymous_with_http_info(auth_convert_anonymous_request, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_convert_anonymous ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'auth_convert_anonymous_request' is set
|
|
110
|
+
if @api_client.config.client_side_validation && auth_convert_anonymous_request.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'auth_convert_anonymous_request' when calling AuthApi.auth_convert_anonymous"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/api/auth/anonymous/convert'
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
123
|
+
# HTTP header 'Content-Type'
|
|
124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
125
|
+
if !content_type.nil?
|
|
126
|
+
header_params['Content-Type'] = content_type
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# form parameters
|
|
130
|
+
form_params = opts[:form_params] || {}
|
|
131
|
+
|
|
132
|
+
# http body (model)
|
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_convert_anonymous_request)
|
|
134
|
+
|
|
135
|
+
# return_type
|
|
136
|
+
return_type = opts[:debug_return_type] || 'AuthConvertAnonymous200Response'
|
|
137
|
+
|
|
138
|
+
# auth_names
|
|
139
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
140
|
+
|
|
141
|
+
new_options = opts.merge(
|
|
142
|
+
:operation => :"AuthApi.auth_convert_anonymous",
|
|
143
|
+
:header_params => header_params,
|
|
144
|
+
:query_params => query_params,
|
|
145
|
+
:form_params => form_params,
|
|
146
|
+
:body => post_body,
|
|
147
|
+
:auth_names => auth_names,
|
|
148
|
+
:return_type => return_type
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_convert_anonymous\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Create anonymous session
|
|
159
|
+
# Create an anonymous user session for guest access. Users can later convert to full accounts.
|
|
160
|
+
# @param [Hash] opts the optional parameters
|
|
161
|
+
# @option opts [AuthCreateAnonymousRequest] :auth_create_anonymous_request Optional projectId and deviceId for the anonymous session.
|
|
162
|
+
# @return [AuthCreateAnonymous200Response]
|
|
163
|
+
def auth_create_anonymous(opts = {})
|
|
164
|
+
data, _status_code, _headers = auth_create_anonymous_with_http_info(opts)
|
|
165
|
+
data
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Create anonymous session
|
|
169
|
+
# Create an anonymous user session for guest access. Users can later convert to full accounts.
|
|
170
|
+
# @param [Hash] opts the optional parameters
|
|
171
|
+
# @option opts [AuthCreateAnonymousRequest] :auth_create_anonymous_request Optional projectId and deviceId for the anonymous session.
|
|
172
|
+
# @return [Array<(AuthCreateAnonymous200Response, Integer, Hash)>] AuthCreateAnonymous200Response data, response status code and response headers
|
|
173
|
+
def auth_create_anonymous_with_http_info(opts = {})
|
|
174
|
+
if @api_client.config.debugging
|
|
175
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_create_anonymous ...'
|
|
176
|
+
end
|
|
177
|
+
# resource path
|
|
178
|
+
local_var_path = '/api/auth/anonymous'
|
|
179
|
+
|
|
180
|
+
# query parameters
|
|
181
|
+
query_params = opts[:query_params] || {}
|
|
182
|
+
|
|
183
|
+
# header parameters
|
|
184
|
+
header_params = opts[:header_params] || {}
|
|
185
|
+
# HTTP header 'Accept' (if needed)
|
|
186
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
187
|
+
# HTTP header 'Content-Type'
|
|
188
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
189
|
+
if !content_type.nil?
|
|
190
|
+
header_params['Content-Type'] = content_type
|
|
191
|
+
end
|
|
192
|
+
|
|
193
|
+
# form parameters
|
|
194
|
+
form_params = opts[:form_params] || {}
|
|
195
|
+
|
|
196
|
+
# http body (model)
|
|
197
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'auth_create_anonymous_request'])
|
|
198
|
+
|
|
199
|
+
# return_type
|
|
200
|
+
return_type = opts[:debug_return_type] || 'AuthCreateAnonymous200Response'
|
|
201
|
+
|
|
202
|
+
# auth_names
|
|
203
|
+
auth_names = opts[:debug_auth_names] || []
|
|
204
|
+
|
|
205
|
+
new_options = opts.merge(
|
|
206
|
+
:operation => :"AuthApi.auth_create_anonymous",
|
|
207
|
+
:header_params => header_params,
|
|
208
|
+
:query_params => query_params,
|
|
209
|
+
:form_params => form_params,
|
|
210
|
+
:body => post_body,
|
|
211
|
+
:auth_names => auth_names,
|
|
212
|
+
:return_type => return_type
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
216
|
+
if @api_client.config.debugging
|
|
217
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_create_anonymous\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
218
|
+
end
|
|
219
|
+
return data, status_code, headers
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Get all available OAuth providers
|
|
223
|
+
# Returns a list of all supported OAuth providers with their configuration details
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @return [AuthGetOAuthProviders200Response]
|
|
226
|
+
def auth_get_o_auth_providers(opts = {})
|
|
227
|
+
data, _status_code, _headers = auth_get_o_auth_providers_with_http_info(opts)
|
|
228
|
+
data
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Get all available OAuth providers
|
|
232
|
+
# Returns a list of all supported OAuth providers with their configuration details
|
|
233
|
+
# @param [Hash] opts the optional parameters
|
|
234
|
+
# @return [Array<(AuthGetOAuthProviders200Response, Integer, Hash)>] AuthGetOAuthProviders200Response data, response status code and response headers
|
|
235
|
+
def auth_get_o_auth_providers_with_http_info(opts = {})
|
|
236
|
+
if @api_client.config.debugging
|
|
237
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_get_o_auth_providers ...'
|
|
238
|
+
end
|
|
239
|
+
# resource path
|
|
240
|
+
local_var_path = '/api/auth/oauth/providers/available'
|
|
241
|
+
|
|
242
|
+
# query parameters
|
|
243
|
+
query_params = opts[:query_params] || {}
|
|
244
|
+
|
|
245
|
+
# header parameters
|
|
246
|
+
header_params = opts[:header_params] || {}
|
|
247
|
+
# HTTP header 'Accept' (if needed)
|
|
248
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
249
|
+
|
|
250
|
+
# form parameters
|
|
251
|
+
form_params = opts[:form_params] || {}
|
|
252
|
+
|
|
253
|
+
# http body (model)
|
|
254
|
+
post_body = opts[:debug_body]
|
|
255
|
+
|
|
256
|
+
# return_type
|
|
257
|
+
return_type = opts[:debug_return_type] || 'AuthGetOAuthProviders200Response'
|
|
258
|
+
|
|
259
|
+
# auth_names
|
|
260
|
+
auth_names = opts[:debug_auth_names] || []
|
|
261
|
+
|
|
262
|
+
new_options = opts.merge(
|
|
263
|
+
:operation => :"AuthApi.auth_get_o_auth_providers",
|
|
264
|
+
:header_params => header_params,
|
|
265
|
+
:query_params => query_params,
|
|
266
|
+
:form_params => form_params,
|
|
267
|
+
:body => post_body,
|
|
268
|
+
:auth_names => auth_names,
|
|
269
|
+
:return_type => return_type
|
|
270
|
+
)
|
|
271
|
+
|
|
272
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
273
|
+
if @api_client.config.debugging
|
|
274
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_get_o_auth_providers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
275
|
+
end
|
|
276
|
+
return data, status_code, headers
|
|
277
|
+
end
|
|
278
|
+
|
|
279
|
+
# Get current session
|
|
280
|
+
# Get the current authenticated user session. Requires JWT Bearer token (BearerToken). API keys are not supported for this endpoint.
|
|
281
|
+
# @param project_id [String] Project ID to get session for.
|
|
282
|
+
# @param [Hash] opts the optional parameters
|
|
283
|
+
# @return [AuthGetSession200Response]
|
|
284
|
+
def auth_get_session(project_id, opts = {})
|
|
285
|
+
data, _status_code, _headers = auth_get_session_with_http_info(project_id, opts)
|
|
286
|
+
data
|
|
287
|
+
end
|
|
288
|
+
|
|
289
|
+
# Get current session
|
|
290
|
+
# Get the current authenticated user session. Requires JWT Bearer token (BearerToken). API keys are not supported for this endpoint.
|
|
291
|
+
# @param project_id [String] Project ID to get session for.
|
|
292
|
+
# @param [Hash] opts the optional parameters
|
|
293
|
+
# @return [Array<(AuthGetSession200Response, Integer, Hash)>] AuthGetSession200Response data, response status code and response headers
|
|
294
|
+
def auth_get_session_with_http_info(project_id, opts = {})
|
|
295
|
+
if @api_client.config.debugging
|
|
296
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_get_session ...'
|
|
297
|
+
end
|
|
298
|
+
# verify the required parameter 'project_id' is set
|
|
299
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
300
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling AuthApi.auth_get_session"
|
|
301
|
+
end
|
|
302
|
+
# resource path
|
|
303
|
+
local_var_path = '/api/auth/local/session'
|
|
304
|
+
|
|
305
|
+
# query parameters
|
|
306
|
+
query_params = opts[:query_params] || {}
|
|
307
|
+
query_params[:'projectId'] = project_id
|
|
308
|
+
|
|
309
|
+
# header parameters
|
|
310
|
+
header_params = opts[:header_params] || {}
|
|
311
|
+
# HTTP header 'Accept' (if needed)
|
|
312
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
313
|
+
|
|
314
|
+
# form parameters
|
|
315
|
+
form_params = opts[:form_params] || {}
|
|
316
|
+
|
|
317
|
+
# http body (model)
|
|
318
|
+
post_body = opts[:debug_body]
|
|
319
|
+
|
|
320
|
+
# return_type
|
|
321
|
+
return_type = opts[:debug_return_type] || 'AuthGetSession200Response'
|
|
322
|
+
|
|
323
|
+
# auth_names
|
|
324
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
325
|
+
|
|
326
|
+
new_options = opts.merge(
|
|
327
|
+
:operation => :"AuthApi.auth_get_session",
|
|
328
|
+
:header_params => header_params,
|
|
329
|
+
:query_params => query_params,
|
|
330
|
+
:form_params => form_params,
|
|
331
|
+
:body => post_body,
|
|
332
|
+
:auth_names => auth_names,
|
|
333
|
+
:return_type => return_type
|
|
334
|
+
)
|
|
335
|
+
|
|
336
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
337
|
+
if @api_client.config.debugging
|
|
338
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_get_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
339
|
+
end
|
|
340
|
+
return data, status_code, headers
|
|
341
|
+
end
|
|
342
|
+
|
|
343
|
+
# Login user
|
|
344
|
+
# 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).
|
|
345
|
+
# @param auth_login_request [AuthLoginRequest] Login credentials (email, password) and project ID.
|
|
346
|
+
# @param [Hash] opts the optional parameters
|
|
347
|
+
# @return [AuthLogin200Response]
|
|
348
|
+
def auth_login(auth_login_request, opts = {})
|
|
349
|
+
data, _status_code, _headers = auth_login_with_http_info(auth_login_request, opts)
|
|
350
|
+
data
|
|
351
|
+
end
|
|
352
|
+
|
|
353
|
+
# Login user
|
|
354
|
+
# 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).
|
|
355
|
+
# @param auth_login_request [AuthLoginRequest] Login credentials (email, password) and project ID.
|
|
356
|
+
# @param [Hash] opts the optional parameters
|
|
357
|
+
# @return [Array<(AuthLogin200Response, Integer, Hash)>] AuthLogin200Response data, response status code and response headers
|
|
358
|
+
def auth_login_with_http_info(auth_login_request, opts = {})
|
|
359
|
+
if @api_client.config.debugging
|
|
360
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_login ...'
|
|
361
|
+
end
|
|
362
|
+
# verify the required parameter 'auth_login_request' is set
|
|
363
|
+
if @api_client.config.client_side_validation && auth_login_request.nil?
|
|
364
|
+
fail ArgumentError, "Missing the required parameter 'auth_login_request' when calling AuthApi.auth_login"
|
|
365
|
+
end
|
|
366
|
+
# resource path
|
|
367
|
+
local_var_path = '/api/auth/local/login'
|
|
368
|
+
|
|
369
|
+
# query parameters
|
|
370
|
+
query_params = opts[:query_params] || {}
|
|
371
|
+
|
|
372
|
+
# header parameters
|
|
373
|
+
header_params = opts[:header_params] || {}
|
|
374
|
+
# HTTP header 'Accept' (if needed)
|
|
375
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
376
|
+
# HTTP header 'Content-Type'
|
|
377
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
378
|
+
if !content_type.nil?
|
|
379
|
+
header_params['Content-Type'] = content_type
|
|
380
|
+
end
|
|
381
|
+
|
|
382
|
+
# form parameters
|
|
383
|
+
form_params = opts[:form_params] || {}
|
|
384
|
+
|
|
385
|
+
# http body (model)
|
|
386
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_login_request)
|
|
387
|
+
|
|
388
|
+
# return_type
|
|
389
|
+
return_type = opts[:debug_return_type] || 'AuthLogin200Response'
|
|
390
|
+
|
|
391
|
+
# auth_names
|
|
392
|
+
auth_names = opts[:debug_auth_names] || []
|
|
393
|
+
|
|
394
|
+
new_options = opts.merge(
|
|
395
|
+
:operation => :"AuthApi.auth_login",
|
|
396
|
+
:header_params => header_params,
|
|
397
|
+
:query_params => query_params,
|
|
398
|
+
:form_params => form_params,
|
|
399
|
+
:body => post_body,
|
|
400
|
+
:auth_names => auth_names,
|
|
401
|
+
:return_type => return_type
|
|
402
|
+
)
|
|
403
|
+
|
|
404
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
405
|
+
if @api_client.config.debugging
|
|
406
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_login\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
407
|
+
end
|
|
408
|
+
return data, status_code, headers
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
# Logout user
|
|
412
|
+
# Logout the current authenticated user session. Requires JWT Bearer token (BearerToken). API keys are not supported for this endpoint.
|
|
413
|
+
# @param [Hash] opts the optional parameters
|
|
414
|
+
# @return [MessageResponse]
|
|
415
|
+
def auth_logout(opts = {})
|
|
416
|
+
data, _status_code, _headers = auth_logout_with_http_info(opts)
|
|
417
|
+
data
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Logout user
|
|
421
|
+
# Logout the current authenticated user session. Requires JWT Bearer token (BearerToken). API keys are not supported for this endpoint.
|
|
422
|
+
# @param [Hash] opts the optional parameters
|
|
423
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
424
|
+
def auth_logout_with_http_info(opts = {})
|
|
425
|
+
if @api_client.config.debugging
|
|
426
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_logout ...'
|
|
427
|
+
end
|
|
428
|
+
# resource path
|
|
429
|
+
local_var_path = '/api/auth/local/logout'
|
|
430
|
+
|
|
431
|
+
# query parameters
|
|
432
|
+
query_params = opts[:query_params] || {}
|
|
433
|
+
|
|
434
|
+
# header parameters
|
|
435
|
+
header_params = opts[:header_params] || {}
|
|
436
|
+
# HTTP header 'Accept' (if needed)
|
|
437
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
438
|
+
|
|
439
|
+
# form parameters
|
|
440
|
+
form_params = opts[:form_params] || {}
|
|
441
|
+
|
|
442
|
+
# http body (model)
|
|
443
|
+
post_body = opts[:debug_body]
|
|
444
|
+
|
|
445
|
+
# return_type
|
|
446
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
447
|
+
|
|
448
|
+
# auth_names
|
|
449
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
450
|
+
|
|
451
|
+
new_options = opts.merge(
|
|
452
|
+
:operation => :"AuthApi.auth_logout",
|
|
453
|
+
:header_params => header_params,
|
|
454
|
+
:query_params => query_params,
|
|
455
|
+
:form_params => form_params,
|
|
456
|
+
:body => post_body,
|
|
457
|
+
:auth_names => auth_names,
|
|
458
|
+
:return_type => return_type
|
|
459
|
+
)
|
|
460
|
+
|
|
461
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
462
|
+
if @api_client.config.debugging
|
|
463
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_logout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
464
|
+
end
|
|
465
|
+
return data, status_code, headers
|
|
466
|
+
end
|
|
467
|
+
|
|
468
|
+
# OAuth callback handler
|
|
469
|
+
# 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.
|
|
470
|
+
# @param provider [String] OAuth provider identifier (e.g. google, github).
|
|
471
|
+
# @param [Hash] opts the optional parameters
|
|
472
|
+
# @return [AuthOauthCallback200Response]
|
|
473
|
+
def auth_oauth_callback(provider, opts = {})
|
|
474
|
+
data, _status_code, _headers = auth_oauth_callback_with_http_info(provider, opts)
|
|
475
|
+
data
|
|
476
|
+
end
|
|
477
|
+
|
|
478
|
+
# OAuth callback handler
|
|
479
|
+
# 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.
|
|
480
|
+
# @param provider [String] OAuth provider identifier (e.g. google, github).
|
|
481
|
+
# @param [Hash] opts the optional parameters
|
|
482
|
+
# @return [Array<(AuthOauthCallback200Response, Integer, Hash)>] AuthOauthCallback200Response data, response status code and response headers
|
|
483
|
+
def auth_oauth_callback_with_http_info(provider, opts = {})
|
|
484
|
+
if @api_client.config.debugging
|
|
485
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_oauth_callback ...'
|
|
486
|
+
end
|
|
487
|
+
# verify the required parameter 'provider' is set
|
|
488
|
+
if @api_client.config.client_side_validation && provider.nil?
|
|
489
|
+
fail ArgumentError, "Missing the required parameter 'provider' when calling AuthApi.auth_oauth_callback"
|
|
490
|
+
end
|
|
491
|
+
# resource path
|
|
492
|
+
local_var_path = '/api/auth/oauth/callback/{provider}'.sub('{' + 'provider' + '}', CGI.escape(provider.to_s))
|
|
493
|
+
|
|
494
|
+
# query parameters
|
|
495
|
+
query_params = opts[:query_params] || {}
|
|
496
|
+
|
|
497
|
+
# header parameters
|
|
498
|
+
header_params = opts[:header_params] || {}
|
|
499
|
+
# HTTP header 'Accept' (if needed)
|
|
500
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
501
|
+
|
|
502
|
+
# form parameters
|
|
503
|
+
form_params = opts[:form_params] || {}
|
|
504
|
+
|
|
505
|
+
# http body (model)
|
|
506
|
+
post_body = opts[:debug_body]
|
|
507
|
+
|
|
508
|
+
# return_type
|
|
509
|
+
return_type = opts[:debug_return_type] || 'AuthOauthCallback200Response'
|
|
510
|
+
|
|
511
|
+
# auth_names
|
|
512
|
+
auth_names = opts[:debug_auth_names] || []
|
|
513
|
+
|
|
514
|
+
new_options = opts.merge(
|
|
515
|
+
:operation => :"AuthApi.auth_oauth_callback",
|
|
516
|
+
:header_params => header_params,
|
|
517
|
+
:query_params => query_params,
|
|
518
|
+
:form_params => form_params,
|
|
519
|
+
:body => post_body,
|
|
520
|
+
:auth_names => auth_names,
|
|
521
|
+
:return_type => return_type
|
|
522
|
+
)
|
|
523
|
+
|
|
524
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
525
|
+
if @api_client.config.debugging
|
|
526
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_oauth_callback\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
527
|
+
end
|
|
528
|
+
return data, status_code, headers
|
|
529
|
+
end
|
|
530
|
+
|
|
531
|
+
# Initiate OAuth authentication
|
|
532
|
+
# 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.
|
|
533
|
+
# @param provider [String] OAuth provider identifier (e.g. google, github).
|
|
534
|
+
# @param project_id [String] Project ID for which OAuth is configured.
|
|
535
|
+
# @param [Hash] opts the optional parameters
|
|
536
|
+
# @option opts [String] :redirect_url The URL to redirect to after authentication. Must be pre-registered in project settings.
|
|
537
|
+
# @return [AuthOauthInitiate200Response]
|
|
538
|
+
def auth_oauth_initiate(provider, project_id, opts = {})
|
|
539
|
+
data, _status_code, _headers = auth_oauth_initiate_with_http_info(provider, project_id, opts)
|
|
540
|
+
data
|
|
541
|
+
end
|
|
542
|
+
|
|
543
|
+
# Initiate OAuth authentication
|
|
544
|
+
# 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.
|
|
545
|
+
# @param provider [String] OAuth provider identifier (e.g. google, github).
|
|
546
|
+
# @param project_id [String] Project ID for which OAuth is configured.
|
|
547
|
+
# @param [Hash] opts the optional parameters
|
|
548
|
+
# @option opts [String] :redirect_url The URL to redirect to after authentication. Must be pre-registered in project settings.
|
|
549
|
+
# @return [Array<(AuthOauthInitiate200Response, Integer, Hash)>] AuthOauthInitiate200Response data, response status code and response headers
|
|
550
|
+
def auth_oauth_initiate_with_http_info(provider, project_id, opts = {})
|
|
551
|
+
if @api_client.config.debugging
|
|
552
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_oauth_initiate ...'
|
|
553
|
+
end
|
|
554
|
+
# verify the required parameter 'provider' is set
|
|
555
|
+
if @api_client.config.client_side_validation && provider.nil?
|
|
556
|
+
fail ArgumentError, "Missing the required parameter 'provider' when calling AuthApi.auth_oauth_initiate"
|
|
557
|
+
end
|
|
558
|
+
# verify enum value
|
|
559
|
+
allowable_values = ["google", "github", "facebook", "microsoft", "apple", "twitter", "discord", "linkedin", "dropbox", "slack", "reddit", "twitch", "figma", "zoom", "bitbucket", "salesforce", "shopify", "line", "spotify", "strava", "paypal", "asana", "trello", "okta", "gitea", "yandex", "yahoo", "vk", "meetup"]
|
|
560
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(provider)
|
|
561
|
+
fail ArgumentError, "invalid value for \"provider\", must be one of #{allowable_values}"
|
|
562
|
+
end
|
|
563
|
+
# verify the required parameter 'project_id' is set
|
|
564
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
565
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling AuthApi.auth_oauth_initiate"
|
|
566
|
+
end
|
|
567
|
+
# resource path
|
|
568
|
+
local_var_path = '/api/auth/oauth/{provider}/{projectId}'.sub('{' + 'provider' + '}', CGI.escape(provider.to_s)).sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
|
569
|
+
|
|
570
|
+
# query parameters
|
|
571
|
+
query_params = opts[:query_params] || {}
|
|
572
|
+
query_params[:'redirect_url'] = opts[:'redirect_url'] if !opts[:'redirect_url'].nil?
|
|
573
|
+
|
|
574
|
+
# header parameters
|
|
575
|
+
header_params = opts[:header_params] || {}
|
|
576
|
+
# HTTP header 'Accept' (if needed)
|
|
577
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
578
|
+
|
|
579
|
+
# form parameters
|
|
580
|
+
form_params = opts[:form_params] || {}
|
|
581
|
+
|
|
582
|
+
# http body (model)
|
|
583
|
+
post_body = opts[:debug_body]
|
|
584
|
+
|
|
585
|
+
# return_type
|
|
586
|
+
return_type = opts[:debug_return_type] || 'AuthOauthInitiate200Response'
|
|
587
|
+
|
|
588
|
+
# auth_names
|
|
589
|
+
auth_names = opts[:debug_auth_names] || []
|
|
590
|
+
|
|
591
|
+
new_options = opts.merge(
|
|
592
|
+
:operation => :"AuthApi.auth_oauth_initiate",
|
|
593
|
+
:header_params => header_params,
|
|
594
|
+
:query_params => query_params,
|
|
595
|
+
:form_params => form_params,
|
|
596
|
+
:body => post_body,
|
|
597
|
+
:auth_names => auth_names,
|
|
598
|
+
:return_type => return_type
|
|
599
|
+
)
|
|
600
|
+
|
|
601
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
602
|
+
if @api_client.config.debugging
|
|
603
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_oauth_initiate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
604
|
+
end
|
|
605
|
+
return data, status_code, headers
|
|
606
|
+
end
|
|
607
|
+
|
|
608
|
+
# Refresh access token (org and project)
|
|
609
|
+
# 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).
|
|
610
|
+
# @param auth_refresh_request [AuthRefreshRequest] JSON body containing the refresh token to exchange for a new access token and refresh token (token rotation).
|
|
611
|
+
# @param [Hash] opts the optional parameters
|
|
612
|
+
# @return [AuthRefresh200Response]
|
|
613
|
+
def auth_refresh(auth_refresh_request, opts = {})
|
|
614
|
+
data, _status_code, _headers = auth_refresh_with_http_info(auth_refresh_request, opts)
|
|
615
|
+
data
|
|
616
|
+
end
|
|
617
|
+
|
|
618
|
+
# Refresh access token (org and project)
|
|
619
|
+
# 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).
|
|
620
|
+
# @param auth_refresh_request [AuthRefreshRequest] JSON body containing the refresh token to exchange for a new access token and refresh token (token rotation).
|
|
621
|
+
# @param [Hash] opts the optional parameters
|
|
622
|
+
# @return [Array<(AuthRefresh200Response, Integer, Hash)>] AuthRefresh200Response data, response status code and response headers
|
|
623
|
+
def auth_refresh_with_http_info(auth_refresh_request, opts = {})
|
|
624
|
+
if @api_client.config.debugging
|
|
625
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_refresh ...'
|
|
626
|
+
end
|
|
627
|
+
# verify the required parameter 'auth_refresh_request' is set
|
|
628
|
+
if @api_client.config.client_side_validation && auth_refresh_request.nil?
|
|
629
|
+
fail ArgumentError, "Missing the required parameter 'auth_refresh_request' when calling AuthApi.auth_refresh"
|
|
630
|
+
end
|
|
631
|
+
# resource path
|
|
632
|
+
local_var_path = '/api/auth/refresh'
|
|
633
|
+
|
|
634
|
+
# query parameters
|
|
635
|
+
query_params = opts[:query_params] || {}
|
|
636
|
+
|
|
637
|
+
# header parameters
|
|
638
|
+
header_params = opts[:header_params] || {}
|
|
639
|
+
# HTTP header 'Accept' (if needed)
|
|
640
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
641
|
+
# HTTP header 'Content-Type'
|
|
642
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
643
|
+
if !content_type.nil?
|
|
644
|
+
header_params['Content-Type'] = content_type
|
|
645
|
+
end
|
|
646
|
+
|
|
647
|
+
# form parameters
|
|
648
|
+
form_params = opts[:form_params] || {}
|
|
649
|
+
|
|
650
|
+
# http body (model)
|
|
651
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_refresh_request)
|
|
652
|
+
|
|
653
|
+
# return_type
|
|
654
|
+
return_type = opts[:debug_return_type] || 'AuthRefresh200Response'
|
|
655
|
+
|
|
656
|
+
# auth_names
|
|
657
|
+
auth_names = opts[:debug_auth_names] || []
|
|
658
|
+
|
|
659
|
+
new_options = opts.merge(
|
|
660
|
+
:operation => :"AuthApi.auth_refresh",
|
|
661
|
+
:header_params => header_params,
|
|
662
|
+
:query_params => query_params,
|
|
663
|
+
:form_params => form_params,
|
|
664
|
+
:body => post_body,
|
|
665
|
+
:auth_names => auth_names,
|
|
666
|
+
:return_type => return_type
|
|
667
|
+
)
|
|
668
|
+
|
|
669
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
670
|
+
if @api_client.config.debugging
|
|
671
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
672
|
+
end
|
|
673
|
+
return data, status_code, headers
|
|
674
|
+
end
|
|
675
|
+
|
|
676
|
+
# Register new user
|
|
677
|
+
# 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.
|
|
678
|
+
# @param auth_register_request [AuthRegisterRequest] Registration payload (email, password, firstName, lastName, projectId).
|
|
679
|
+
# @param [Hash] opts the optional parameters
|
|
680
|
+
# @return [AuthRegister201Response]
|
|
681
|
+
def auth_register(auth_register_request, opts = {})
|
|
682
|
+
data, _status_code, _headers = auth_register_with_http_info(auth_register_request, opts)
|
|
683
|
+
data
|
|
684
|
+
end
|
|
685
|
+
|
|
686
|
+
# Register new user
|
|
687
|
+
# 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.
|
|
688
|
+
# @param auth_register_request [AuthRegisterRequest] Registration payload (email, password, firstName, lastName, projectId).
|
|
689
|
+
# @param [Hash] opts the optional parameters
|
|
690
|
+
# @return [Array<(AuthRegister201Response, Integer, Hash)>] AuthRegister201Response data, response status code and response headers
|
|
691
|
+
def auth_register_with_http_info(auth_register_request, opts = {})
|
|
692
|
+
if @api_client.config.debugging
|
|
693
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_register ...'
|
|
694
|
+
end
|
|
695
|
+
# verify the required parameter 'auth_register_request' is set
|
|
696
|
+
if @api_client.config.client_side_validation && auth_register_request.nil?
|
|
697
|
+
fail ArgumentError, "Missing the required parameter 'auth_register_request' when calling AuthApi.auth_register"
|
|
698
|
+
end
|
|
699
|
+
# resource path
|
|
700
|
+
local_var_path = '/api/auth/local/register'
|
|
701
|
+
|
|
702
|
+
# query parameters
|
|
703
|
+
query_params = opts[:query_params] || {}
|
|
704
|
+
|
|
705
|
+
# header parameters
|
|
706
|
+
header_params = opts[:header_params] || {}
|
|
707
|
+
# HTTP header 'Accept' (if needed)
|
|
708
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
709
|
+
# HTTP header 'Content-Type'
|
|
710
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
711
|
+
if !content_type.nil?
|
|
712
|
+
header_params['Content-Type'] = content_type
|
|
713
|
+
end
|
|
714
|
+
|
|
715
|
+
# form parameters
|
|
716
|
+
form_params = opts[:form_params] || {}
|
|
717
|
+
|
|
718
|
+
# http body (model)
|
|
719
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_register_request)
|
|
720
|
+
|
|
721
|
+
# return_type
|
|
722
|
+
return_type = opts[:debug_return_type] || 'AuthRegister201Response'
|
|
723
|
+
|
|
724
|
+
# auth_names
|
|
725
|
+
auth_names = opts[:debug_auth_names] || []
|
|
726
|
+
|
|
727
|
+
new_options = opts.merge(
|
|
728
|
+
:operation => :"AuthApi.auth_register",
|
|
729
|
+
:header_params => header_params,
|
|
730
|
+
:query_params => query_params,
|
|
731
|
+
:form_params => form_params,
|
|
732
|
+
:body => post_body,
|
|
733
|
+
:auth_names => auth_names,
|
|
734
|
+
:return_type => return_type
|
|
735
|
+
)
|
|
736
|
+
|
|
737
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
738
|
+
if @api_client.config.debugging
|
|
739
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_register\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
740
|
+
end
|
|
741
|
+
return data, status_code, headers
|
|
742
|
+
end
|
|
743
|
+
|
|
744
|
+
# Request password reset (OTP)
|
|
745
|
+
# 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.
|
|
746
|
+
# @param auth_request_password_reset_request [AuthRequestPasswordResetRequest] Email and optional projectId for app OTP or org token link.
|
|
747
|
+
# @param [Hash] opts the optional parameters
|
|
748
|
+
# @return [MessageResponse]
|
|
749
|
+
def auth_request_password_reset(auth_request_password_reset_request, opts = {})
|
|
750
|
+
data, _status_code, _headers = auth_request_password_reset_with_http_info(auth_request_password_reset_request, opts)
|
|
751
|
+
data
|
|
752
|
+
end
|
|
753
|
+
|
|
754
|
+
# Request password reset (OTP)
|
|
755
|
+
# 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.
|
|
756
|
+
# @param auth_request_password_reset_request [AuthRequestPasswordResetRequest] Email and optional projectId for app OTP or org token link.
|
|
757
|
+
# @param [Hash] opts the optional parameters
|
|
758
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
759
|
+
def auth_request_password_reset_with_http_info(auth_request_password_reset_request, opts = {})
|
|
760
|
+
if @api_client.config.debugging
|
|
761
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_request_password_reset ...'
|
|
762
|
+
end
|
|
763
|
+
# verify the required parameter 'auth_request_password_reset_request' is set
|
|
764
|
+
if @api_client.config.client_side_validation && auth_request_password_reset_request.nil?
|
|
765
|
+
fail ArgumentError, "Missing the required parameter 'auth_request_password_reset_request' when calling AuthApi.auth_request_password_reset"
|
|
766
|
+
end
|
|
767
|
+
# resource path
|
|
768
|
+
local_var_path = '/api/auth/local/password-reset'
|
|
769
|
+
|
|
770
|
+
# query parameters
|
|
771
|
+
query_params = opts[:query_params] || {}
|
|
772
|
+
|
|
773
|
+
# header parameters
|
|
774
|
+
header_params = opts[:header_params] || {}
|
|
775
|
+
# HTTP header 'Accept' (if needed)
|
|
776
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
777
|
+
# HTTP header 'Content-Type'
|
|
778
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
779
|
+
if !content_type.nil?
|
|
780
|
+
header_params['Content-Type'] = content_type
|
|
781
|
+
end
|
|
782
|
+
|
|
783
|
+
# form parameters
|
|
784
|
+
form_params = opts[:form_params] || {}
|
|
785
|
+
|
|
786
|
+
# http body (model)
|
|
787
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_request_password_reset_request)
|
|
788
|
+
|
|
789
|
+
# return_type
|
|
790
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
791
|
+
|
|
792
|
+
# auth_names
|
|
793
|
+
auth_names = opts[:debug_auth_names] || []
|
|
794
|
+
|
|
795
|
+
new_options = opts.merge(
|
|
796
|
+
:operation => :"AuthApi.auth_request_password_reset",
|
|
797
|
+
:header_params => header_params,
|
|
798
|
+
:query_params => query_params,
|
|
799
|
+
:form_params => form_params,
|
|
800
|
+
:body => post_body,
|
|
801
|
+
:auth_names => auth_names,
|
|
802
|
+
:return_type => return_type
|
|
803
|
+
)
|
|
804
|
+
|
|
805
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
806
|
+
if @api_client.config.debugging
|
|
807
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_request_password_reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
808
|
+
end
|
|
809
|
+
return data, status_code, headers
|
|
810
|
+
end
|
|
811
|
+
|
|
812
|
+
# Reset password with token (legacy)
|
|
813
|
+
# Legacy token-based completion. Prefer OTP flow: use POST .../password-reset/confirm with the OTP sent to email for app resets.
|
|
814
|
+
# @param token [String] Password reset token from email link.
|
|
815
|
+
# @param auth_reset_password_request [AuthResetPasswordRequest] New password and optional projectId.
|
|
816
|
+
# @param [Hash] opts the optional parameters
|
|
817
|
+
# @return [MessageResponse]
|
|
818
|
+
def auth_reset_password(token, auth_reset_password_request, opts = {})
|
|
819
|
+
data, _status_code, _headers = auth_reset_password_with_http_info(token, auth_reset_password_request, opts)
|
|
820
|
+
data
|
|
821
|
+
end
|
|
822
|
+
|
|
823
|
+
# Reset password with token (legacy)
|
|
824
|
+
# Legacy token-based completion. Prefer OTP flow: use POST .../password-reset/confirm with the OTP sent to email for app resets.
|
|
825
|
+
# @param token [String] Password reset token from email link.
|
|
826
|
+
# @param auth_reset_password_request [AuthResetPasswordRequest] New password and optional projectId.
|
|
827
|
+
# @param [Hash] opts the optional parameters
|
|
828
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
829
|
+
def auth_reset_password_with_http_info(token, auth_reset_password_request, opts = {})
|
|
830
|
+
if @api_client.config.debugging
|
|
831
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_reset_password ...'
|
|
832
|
+
end
|
|
833
|
+
# verify the required parameter 'token' is set
|
|
834
|
+
if @api_client.config.client_side_validation && token.nil?
|
|
835
|
+
fail ArgumentError, "Missing the required parameter 'token' when calling AuthApi.auth_reset_password"
|
|
836
|
+
end
|
|
837
|
+
# verify the required parameter 'auth_reset_password_request' is set
|
|
838
|
+
if @api_client.config.client_side_validation && auth_reset_password_request.nil?
|
|
839
|
+
fail ArgumentError, "Missing the required parameter 'auth_reset_password_request' when calling AuthApi.auth_reset_password"
|
|
840
|
+
end
|
|
841
|
+
# resource path
|
|
842
|
+
local_var_path = '/api/auth/local/password-reset/{token}'.sub('{' + 'token' + '}', CGI.escape(token.to_s))
|
|
843
|
+
|
|
844
|
+
# query parameters
|
|
845
|
+
query_params = opts[:query_params] || {}
|
|
846
|
+
|
|
847
|
+
# header parameters
|
|
848
|
+
header_params = opts[:header_params] || {}
|
|
849
|
+
# HTTP header 'Accept' (if needed)
|
|
850
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
851
|
+
# HTTP header 'Content-Type'
|
|
852
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
853
|
+
if !content_type.nil?
|
|
854
|
+
header_params['Content-Type'] = content_type
|
|
855
|
+
end
|
|
856
|
+
|
|
857
|
+
# form parameters
|
|
858
|
+
form_params = opts[:form_params] || {}
|
|
859
|
+
|
|
860
|
+
# http body (model)
|
|
861
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_reset_password_request)
|
|
862
|
+
|
|
863
|
+
# return_type
|
|
864
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
865
|
+
|
|
866
|
+
# auth_names
|
|
867
|
+
auth_names = opts[:debug_auth_names] || []
|
|
868
|
+
|
|
869
|
+
new_options = opts.merge(
|
|
870
|
+
:operation => :"AuthApi.auth_reset_password",
|
|
871
|
+
:header_params => header_params,
|
|
872
|
+
:query_params => query_params,
|
|
873
|
+
:form_params => form_params,
|
|
874
|
+
:body => post_body,
|
|
875
|
+
:auth_names => auth_names,
|
|
876
|
+
:return_type => return_type
|
|
877
|
+
)
|
|
878
|
+
|
|
879
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
880
|
+
if @api_client.config.debugging
|
|
881
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_reset_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
882
|
+
end
|
|
883
|
+
return data, status_code, headers
|
|
884
|
+
end
|
|
885
|
+
|
|
886
|
+
# Send magic link
|
|
887
|
+
# 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.
|
|
888
|
+
# @param magic_link_request [MagicLinkRequest] Email, projectId, and optional redirect URL for the magic link.
|
|
889
|
+
# @param [Hash] opts the optional parameters
|
|
890
|
+
# @return [MessageResponse]
|
|
891
|
+
def auth_send_magic_link(magic_link_request, opts = {})
|
|
892
|
+
data, _status_code, _headers = auth_send_magic_link_with_http_info(magic_link_request, opts)
|
|
893
|
+
data
|
|
894
|
+
end
|
|
895
|
+
|
|
896
|
+
# Send magic link
|
|
897
|
+
# 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.
|
|
898
|
+
# @param magic_link_request [MagicLinkRequest] Email, projectId, and optional redirect URL for the magic link.
|
|
899
|
+
# @param [Hash] opts the optional parameters
|
|
900
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
901
|
+
def auth_send_magic_link_with_http_info(magic_link_request, opts = {})
|
|
902
|
+
if @api_client.config.debugging
|
|
903
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_send_magic_link ...'
|
|
904
|
+
end
|
|
905
|
+
# verify the required parameter 'magic_link_request' is set
|
|
906
|
+
if @api_client.config.client_side_validation && magic_link_request.nil?
|
|
907
|
+
fail ArgumentError, "Missing the required parameter 'magic_link_request' when calling AuthApi.auth_send_magic_link"
|
|
908
|
+
end
|
|
909
|
+
# resource path
|
|
910
|
+
local_var_path = '/api/auth/magic-link/send'
|
|
911
|
+
|
|
912
|
+
# query parameters
|
|
913
|
+
query_params = opts[:query_params] || {}
|
|
914
|
+
|
|
915
|
+
# header parameters
|
|
916
|
+
header_params = opts[:header_params] || {}
|
|
917
|
+
# HTTP header 'Accept' (if needed)
|
|
918
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
919
|
+
# HTTP header 'Content-Type'
|
|
920
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
921
|
+
if !content_type.nil?
|
|
922
|
+
header_params['Content-Type'] = content_type
|
|
923
|
+
end
|
|
924
|
+
|
|
925
|
+
# form parameters
|
|
926
|
+
form_params = opts[:form_params] || {}
|
|
927
|
+
|
|
928
|
+
# http body (model)
|
|
929
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(magic_link_request)
|
|
930
|
+
|
|
931
|
+
# return_type
|
|
932
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
933
|
+
|
|
934
|
+
# auth_names
|
|
935
|
+
auth_names = opts[:debug_auth_names] || []
|
|
936
|
+
|
|
937
|
+
new_options = opts.merge(
|
|
938
|
+
:operation => :"AuthApi.auth_send_magic_link",
|
|
939
|
+
:header_params => header_params,
|
|
940
|
+
:query_params => query_params,
|
|
941
|
+
:form_params => form_params,
|
|
942
|
+
:body => post_body,
|
|
943
|
+
:auth_names => auth_names,
|
|
944
|
+
:return_type => return_type
|
|
945
|
+
)
|
|
946
|
+
|
|
947
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
948
|
+
if @api_client.config.debugging
|
|
949
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_send_magic_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
950
|
+
end
|
|
951
|
+
return data, status_code, headers
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# Send OTP code
|
|
955
|
+
# 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.
|
|
956
|
+
# @param otp_send_request [OTPSendRequest] Project ID, delivery method (sms/email), and phone or email.
|
|
957
|
+
# @param [Hash] opts the optional parameters
|
|
958
|
+
# @return [MessageResponse]
|
|
959
|
+
def auth_send_otp(otp_send_request, opts = {})
|
|
960
|
+
data, _status_code, _headers = auth_send_otp_with_http_info(otp_send_request, opts)
|
|
961
|
+
data
|
|
962
|
+
end
|
|
963
|
+
|
|
964
|
+
# Send OTP code
|
|
965
|
+
# 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.
|
|
966
|
+
# @param otp_send_request [OTPSendRequest] Project ID, delivery method (sms/email), and phone or email.
|
|
967
|
+
# @param [Hash] opts the optional parameters
|
|
968
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
969
|
+
def auth_send_otp_with_http_info(otp_send_request, opts = {})
|
|
970
|
+
if @api_client.config.debugging
|
|
971
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_send_otp ...'
|
|
972
|
+
end
|
|
973
|
+
# verify the required parameter 'otp_send_request' is set
|
|
974
|
+
if @api_client.config.client_side_validation && otp_send_request.nil?
|
|
975
|
+
fail ArgumentError, "Missing the required parameter 'otp_send_request' when calling AuthApi.auth_send_otp"
|
|
976
|
+
end
|
|
977
|
+
# resource path
|
|
978
|
+
local_var_path = '/api/auth/otp/send'
|
|
979
|
+
|
|
980
|
+
# query parameters
|
|
981
|
+
query_params = opts[:query_params] || {}
|
|
982
|
+
|
|
983
|
+
# header parameters
|
|
984
|
+
header_params = opts[:header_params] || {}
|
|
985
|
+
# HTTP header 'Accept' (if needed)
|
|
986
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
987
|
+
# HTTP header 'Content-Type'
|
|
988
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
989
|
+
if !content_type.nil?
|
|
990
|
+
header_params['Content-Type'] = content_type
|
|
991
|
+
end
|
|
992
|
+
|
|
993
|
+
# form parameters
|
|
994
|
+
form_params = opts[:form_params] || {}
|
|
995
|
+
|
|
996
|
+
# http body (model)
|
|
997
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(otp_send_request)
|
|
998
|
+
|
|
999
|
+
# return_type
|
|
1000
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
1001
|
+
|
|
1002
|
+
# auth_names
|
|
1003
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1004
|
+
|
|
1005
|
+
new_options = opts.merge(
|
|
1006
|
+
:operation => :"AuthApi.auth_send_otp",
|
|
1007
|
+
:header_params => header_params,
|
|
1008
|
+
:query_params => query_params,
|
|
1009
|
+
:form_params => form_params,
|
|
1010
|
+
:body => post_body,
|
|
1011
|
+
:auth_names => auth_names,
|
|
1012
|
+
:return_type => return_type
|
|
1013
|
+
)
|
|
1014
|
+
|
|
1015
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1016
|
+
if @api_client.config.debugging
|
|
1017
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_send_otp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1018
|
+
end
|
|
1019
|
+
return data, status_code, headers
|
|
1020
|
+
end
|
|
1021
|
+
|
|
1022
|
+
# Verify magic link
|
|
1023
|
+
# 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.
|
|
1024
|
+
# @param auth_verify_magic_link_request [AuthVerifyMagicLinkRequest] The token from the magic link URL.
|
|
1025
|
+
# @param [Hash] opts the optional parameters
|
|
1026
|
+
# @return [AuthResponse]
|
|
1027
|
+
def auth_verify_magic_link(auth_verify_magic_link_request, opts = {})
|
|
1028
|
+
data, _status_code, _headers = auth_verify_magic_link_with_http_info(auth_verify_magic_link_request, opts)
|
|
1029
|
+
data
|
|
1030
|
+
end
|
|
1031
|
+
|
|
1032
|
+
# Verify magic link
|
|
1033
|
+
# 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.
|
|
1034
|
+
# @param auth_verify_magic_link_request [AuthVerifyMagicLinkRequest] The token from the magic link URL.
|
|
1035
|
+
# @param [Hash] opts the optional parameters
|
|
1036
|
+
# @return [Array<(AuthResponse, Integer, Hash)>] AuthResponse data, response status code and response headers
|
|
1037
|
+
def auth_verify_magic_link_with_http_info(auth_verify_magic_link_request, opts = {})
|
|
1038
|
+
if @api_client.config.debugging
|
|
1039
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_verify_magic_link ...'
|
|
1040
|
+
end
|
|
1041
|
+
# verify the required parameter 'auth_verify_magic_link_request' is set
|
|
1042
|
+
if @api_client.config.client_side_validation && auth_verify_magic_link_request.nil?
|
|
1043
|
+
fail ArgumentError, "Missing the required parameter 'auth_verify_magic_link_request' when calling AuthApi.auth_verify_magic_link"
|
|
1044
|
+
end
|
|
1045
|
+
# resource path
|
|
1046
|
+
local_var_path = '/api/auth/magic-link/verify'
|
|
1047
|
+
|
|
1048
|
+
# query parameters
|
|
1049
|
+
query_params = opts[:query_params] || {}
|
|
1050
|
+
|
|
1051
|
+
# header parameters
|
|
1052
|
+
header_params = opts[:header_params] || {}
|
|
1053
|
+
# HTTP header 'Accept' (if needed)
|
|
1054
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1055
|
+
# HTTP header 'Content-Type'
|
|
1056
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1057
|
+
if !content_type.nil?
|
|
1058
|
+
header_params['Content-Type'] = content_type
|
|
1059
|
+
end
|
|
1060
|
+
|
|
1061
|
+
# form parameters
|
|
1062
|
+
form_params = opts[:form_params] || {}
|
|
1063
|
+
|
|
1064
|
+
# http body (model)
|
|
1065
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(auth_verify_magic_link_request)
|
|
1066
|
+
|
|
1067
|
+
# return_type
|
|
1068
|
+
return_type = opts[:debug_return_type] || 'AuthResponse'
|
|
1069
|
+
|
|
1070
|
+
# auth_names
|
|
1071
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1072
|
+
|
|
1073
|
+
new_options = opts.merge(
|
|
1074
|
+
:operation => :"AuthApi.auth_verify_magic_link",
|
|
1075
|
+
:header_params => header_params,
|
|
1076
|
+
:query_params => query_params,
|
|
1077
|
+
:form_params => form_params,
|
|
1078
|
+
:body => post_body,
|
|
1079
|
+
:auth_names => auth_names,
|
|
1080
|
+
:return_type => return_type
|
|
1081
|
+
)
|
|
1082
|
+
|
|
1083
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1084
|
+
if @api_client.config.debugging
|
|
1085
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_verify_magic_link\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1086
|
+
end
|
|
1087
|
+
return data, status_code, headers
|
|
1088
|
+
end
|
|
1089
|
+
|
|
1090
|
+
# Verify OTP code
|
|
1091
|
+
# Verifies the OTP code and returns a session token and user. Public endpoint.
|
|
1092
|
+
# @param otp_verify_request [OTPVerifyRequest] Identifier (phone/email), OTP code, and project ID.
|
|
1093
|
+
# @param [Hash] opts the optional parameters
|
|
1094
|
+
# @return [AuthResponse]
|
|
1095
|
+
def auth_verify_otp(otp_verify_request, opts = {})
|
|
1096
|
+
data, _status_code, _headers = auth_verify_otp_with_http_info(otp_verify_request, opts)
|
|
1097
|
+
data
|
|
1098
|
+
end
|
|
1099
|
+
|
|
1100
|
+
# Verify OTP code
|
|
1101
|
+
# Verifies the OTP code and returns a session token and user. Public endpoint.
|
|
1102
|
+
# @param otp_verify_request [OTPVerifyRequest] Identifier (phone/email), OTP code, and project ID.
|
|
1103
|
+
# @param [Hash] opts the optional parameters
|
|
1104
|
+
# @return [Array<(AuthResponse, Integer, Hash)>] AuthResponse data, response status code and response headers
|
|
1105
|
+
def auth_verify_otp_with_http_info(otp_verify_request, opts = {})
|
|
1106
|
+
if @api_client.config.debugging
|
|
1107
|
+
@api_client.config.logger.debug 'Calling API: AuthApi.auth_verify_otp ...'
|
|
1108
|
+
end
|
|
1109
|
+
# verify the required parameter 'otp_verify_request' is set
|
|
1110
|
+
if @api_client.config.client_side_validation && otp_verify_request.nil?
|
|
1111
|
+
fail ArgumentError, "Missing the required parameter 'otp_verify_request' when calling AuthApi.auth_verify_otp"
|
|
1112
|
+
end
|
|
1113
|
+
# resource path
|
|
1114
|
+
local_var_path = '/api/auth/otp/verify'
|
|
1115
|
+
|
|
1116
|
+
# query parameters
|
|
1117
|
+
query_params = opts[:query_params] || {}
|
|
1118
|
+
|
|
1119
|
+
# header parameters
|
|
1120
|
+
header_params = opts[:header_params] || {}
|
|
1121
|
+
# HTTP header 'Accept' (if needed)
|
|
1122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1123
|
+
# HTTP header 'Content-Type'
|
|
1124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1125
|
+
if !content_type.nil?
|
|
1126
|
+
header_params['Content-Type'] = content_type
|
|
1127
|
+
end
|
|
1128
|
+
|
|
1129
|
+
# form parameters
|
|
1130
|
+
form_params = opts[:form_params] || {}
|
|
1131
|
+
|
|
1132
|
+
# http body (model)
|
|
1133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(otp_verify_request)
|
|
1134
|
+
|
|
1135
|
+
# return_type
|
|
1136
|
+
return_type = opts[:debug_return_type] || 'AuthResponse'
|
|
1137
|
+
|
|
1138
|
+
# auth_names
|
|
1139
|
+
auth_names = opts[:debug_auth_names] || []
|
|
1140
|
+
|
|
1141
|
+
new_options = opts.merge(
|
|
1142
|
+
:operation => :"AuthApi.auth_verify_otp",
|
|
1143
|
+
:header_params => header_params,
|
|
1144
|
+
:query_params => query_params,
|
|
1145
|
+
:form_params => form_params,
|
|
1146
|
+
:body => post_body,
|
|
1147
|
+
:auth_names => auth_names,
|
|
1148
|
+
:return_type => return_type
|
|
1149
|
+
)
|
|
1150
|
+
|
|
1151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1152
|
+
if @api_client.config.debugging
|
|
1153
|
+
@api_client.config.logger.debug "API called: AuthApi#auth_verify_otp\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1154
|
+
end
|
|
1155
|
+
return data, status_code, headers
|
|
1156
|
+
end
|
|
1157
|
+
end
|
|
1158
|
+
end
|