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,229 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Mudbase::FunctionsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'FunctionsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Mudbase::FunctionsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of FunctionsApi' do
|
|
30
|
+
it 'should create an instance of FunctionsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Mudbase::FunctionsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for functions_activate
|
|
36
|
+
# Activate function
|
|
37
|
+
# Activate a deactivated function. Active functions can be triggered.
|
|
38
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
39
|
+
# @param function_id Function ID (MongoDB ObjectId) to activate.
|
|
40
|
+
# @param [Hash] opts the optional parameters
|
|
41
|
+
# @return [FunctionResponse]
|
|
42
|
+
describe 'functions_activate test' do
|
|
43
|
+
it 'should work' do
|
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# unit tests for functions_create
|
|
49
|
+
# Create function
|
|
50
|
+
# Create a new serverless function. Trigger types: http, document, file, webhook, wallet, cron, messaging. Sandbox utilities available: db, files, messaging, wallet, utils, env, console.
|
|
51
|
+
# @param project_id Project ID.
|
|
52
|
+
# @param create_function_request Function name, description, code, trigger config, and optional environment.
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @return [FunctionResponse]
|
|
55
|
+
describe 'functions_create test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# unit tests for functions_deactivate
|
|
62
|
+
# Deactivate function
|
|
63
|
+
# Deactivate a function. Deactivated functions will not be triggered.
|
|
64
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
65
|
+
# @param function_id Function ID (MongoDB ObjectId) to deactivate.
|
|
66
|
+
# @param [Hash] opts the optional parameters
|
|
67
|
+
# @return [FunctionResponse]
|
|
68
|
+
describe 'functions_deactivate test' do
|
|
69
|
+
it 'should work' do
|
|
70
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# unit tests for functions_delete
|
|
75
|
+
# Delete function
|
|
76
|
+
# Delete a function permanently. This is a destructive operation.
|
|
77
|
+
# @param project_id Project ID.
|
|
78
|
+
# @param function_id Function ID to delete.
|
|
79
|
+
# @param [Hash] opts the optional parameters
|
|
80
|
+
# @return [FunctionsDelete200Response]
|
|
81
|
+
describe 'functions_delete test' do
|
|
82
|
+
it 'should work' do
|
|
83
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
84
|
+
end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# unit tests for functions_execute
|
|
88
|
+
# Execute function
|
|
89
|
+
# Manually execute a function with custom payload. Payload is merged with auto-injected trigger context. Rate limited (data mutation rate limiter). Enforces maxExecutionsPerMinute/maxExecutionsPerHour.
|
|
90
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
91
|
+
# @param function_id Function ID (MongoDB ObjectId) to execute.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @option opts [FunctionsExecuteRequest] :functions_execute_request Optional JSON payload merged with trigger context (e.g. document, file, webhook body). Omit for no custom input.
|
|
94
|
+
# @return [FunctionExecutionResponse]
|
|
95
|
+
describe 'functions_execute test' do
|
|
96
|
+
it 'should work' do
|
|
97
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# unit tests for functions_get
|
|
102
|
+
# Get function
|
|
103
|
+
# Get function details by ID including createdBy/updatedBy.
|
|
104
|
+
# @param project_id Project ID.
|
|
105
|
+
# @param function_id Function ID.
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [FunctionResponse]
|
|
108
|
+
describe 'functions_get test' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# unit tests for functions_get_logs
|
|
115
|
+
# Get function execution logs
|
|
116
|
+
# Get execution logs with pagination. Includes stats (totalExecutions, successful, failed, successRate, avgExecutionTime, lastRun).
|
|
117
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
118
|
+
# @param function_id Function ID (MongoDB ObjectId) to get logs for.
|
|
119
|
+
# @param [Hash] opts the optional parameters
|
|
120
|
+
# @option opts [Integer] :limit Maximum number of log entries to return.
|
|
121
|
+
# @option opts [Integer] :offset Number of log entries to skip for pagination.
|
|
122
|
+
# @return [FunctionLogsResponse]
|
|
123
|
+
describe 'functions_get_logs test' do
|
|
124
|
+
it 'should work' do
|
|
125
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# unit tests for functions_get_versions
|
|
130
|
+
# Get function versions
|
|
131
|
+
# List all code versions for a function. Used for rollback.
|
|
132
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
133
|
+
# @param function_id Function ID (MongoDB ObjectId) to list versions for.
|
|
134
|
+
# @param [Hash] opts the optional parameters
|
|
135
|
+
# @return [FunctionsGetVersions200Response]
|
|
136
|
+
describe 'functions_get_versions test' do
|
|
137
|
+
it 'should work' do
|
|
138
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
139
|
+
end
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# unit tests for functions_list
|
|
143
|
+
# List functions
|
|
144
|
+
# List serverless functions in a project with optional search and filters. Supports trigger types: http, event, document, file, webhook, wallet, cron, messaging.
|
|
145
|
+
# @param project_id Project ID.
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @option opts [Integer] :page Page number (1-based).
|
|
148
|
+
# @option opts [Integer] :limit Number of functions per page.
|
|
149
|
+
# @option opts [String] :search Search by name or description
|
|
150
|
+
# @option opts [String] :trigger_type Filter by trigger type
|
|
151
|
+
# @option opts [Boolean] :is_active Filter by active status (true/false)
|
|
152
|
+
# @return [FunctionListResponse]
|
|
153
|
+
describe 'functions_list test' do
|
|
154
|
+
it 'should work' do
|
|
155
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
156
|
+
end
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# unit tests for functions_retry
|
|
160
|
+
# Retry failed execution
|
|
161
|
+
# Retry a failed execution by its index (0-based) in the logs. Cannot retry successful executions.
|
|
162
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
163
|
+
# @param function_id Function ID (MongoDB ObjectId) to retry execution for.
|
|
164
|
+
# @param execution_index 0-based index of the execution in logs
|
|
165
|
+
# @param [Hash] opts the optional parameters
|
|
166
|
+
# @return [FunctionExecutionResponse]
|
|
167
|
+
describe 'functions_retry test' do
|
|
168
|
+
it 'should work' do
|
|
169
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
170
|
+
end
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
# unit tests for functions_rollback
|
|
174
|
+
# Rollback to previous version
|
|
175
|
+
# Rollback function code to a previous version. Version number is required.
|
|
176
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
177
|
+
# @param function_id Function ID (MongoDB ObjectId) to rollback.
|
|
178
|
+
# @param functions_rollback_request Version number (integer) to rollback to; use GET .../versions to list available versions.
|
|
179
|
+
# @param [Hash] opts the optional parameters
|
|
180
|
+
# @return [FunctionResponse]
|
|
181
|
+
describe 'functions_rollback test' do
|
|
182
|
+
it 'should work' do
|
|
183
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
184
|
+
end
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# unit tests for functions_simulate
|
|
188
|
+
# Simulate trigger
|
|
189
|
+
# Test a function with simulated trigger context. Use to verify document, file, webhook, wallet, or cron payloads. Executes the function with the provided eventContext merged into the payload.
|
|
190
|
+
# @param project_id Project ID (MongoDB ObjectId) that owns the function.
|
|
191
|
+
# @param function_id Function ID (MongoDB ObjectId) to simulate.
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @option opts [FunctionsSimulateRequest] :functions_simulate_request Simulated trigger (type, event) and eventContext (document, file, webhook, wallet, message, or cron). Merged into the function payload for testing.
|
|
194
|
+
# @return [FunctionExecutionResponse]
|
|
195
|
+
describe 'functions_simulate test' do
|
|
196
|
+
it 'should work' do
|
|
197
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
198
|
+
end
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# unit tests for functions_trigger_webhook
|
|
202
|
+
# Trigger webhook functions
|
|
203
|
+
# Public endpoint for external services to trigger functions with `trigger.type: webhook`. No authentication required. Optionally verify using `X-Webhook-Secret` header (configure per project or via FUNCTION_WEBHOOK_SECRET). Rate limited to 30 requests per 15 minutes per IP.
|
|
204
|
+
# @param project_id Project ID.
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @option opts [String] :x_webhook_secret Optional webhook secret for verification
|
|
207
|
+
# @option opts [Object] :body Payload sent to the triggered function(s).
|
|
208
|
+
# @return [FunctionsTriggerWebhook200Response]
|
|
209
|
+
describe 'functions_trigger_webhook test' do
|
|
210
|
+
it 'should work' do
|
|
211
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
212
|
+
end
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# unit tests for functions_update
|
|
216
|
+
# Update function
|
|
217
|
+
# Update function configuration. Code changes are versioned automatically.
|
|
218
|
+
# @param project_id Project ID.
|
|
219
|
+
# @param function_id Function ID.
|
|
220
|
+
# @param [Hash] opts the optional parameters
|
|
221
|
+
# @option opts [UpdateFunctionRequest] :update_function_request Fields to update (name, description, code, trigger, environment, isActive, limits, retryPolicy).
|
|
222
|
+
# @return [FunctionResponse]
|
|
223
|
+
describe 'functions_update test' do
|
|
224
|
+
it 'should work' do
|
|
225
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
end
|
|
@@ -0,0 +1,57 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Mudbase::HealthApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'HealthApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Mudbase::HealthApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of HealthApi' do
|
|
30
|
+
it 'should create an instance of HealthApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Mudbase::HealthApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for health_check
|
|
36
|
+
# Health check
|
|
37
|
+
# Liveness/readiness probe for load balancers and orchestrators. Returns status of core services (database, redis, storage, email, sms). No authentication required. Use for uptime checks and deployment health gates.
|
|
38
|
+
# @param [Hash] opts the optional parameters
|
|
39
|
+
# @return [HealthResponse]
|
|
40
|
+
describe 'health_check test' do
|
|
41
|
+
it 'should work' do
|
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# unit tests for health_system_status
|
|
47
|
+
# System status
|
|
48
|
+
# Returns detailed system status (uptime, memory, CPU, service health). Requires project JWT or API key. Used for admin or monitoring dashboards.
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [SystemStatusResponse]
|
|
51
|
+
describe 'health_system_status test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Mudbase::IntegrationsApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'IntegrationsApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Mudbase::IntegrationsApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of IntegrationsApi' do
|
|
30
|
+
it 'should create an instance of IntegrationsApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Mudbase::IntegrationsApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for integrations_execute
|
|
36
|
+
# Execute integration
|
|
37
|
+
# Execute an integration action (API call) with specified endpoint and parameters. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
38
|
+
# @param project_id Project ID.
|
|
39
|
+
# @param integration_id Integration ID to execute.
|
|
40
|
+
# @param integrations_execute_request Endpoint path, HTTP method, optional params and body for the integration call.
|
|
41
|
+
# @param [Hash] opts the optional parameters
|
|
42
|
+
# @return [WalletTestWebhook200Response]
|
|
43
|
+
describe 'integrations_execute test' do
|
|
44
|
+
it 'should work' do
|
|
45
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# unit tests for integrations_list
|
|
50
|
+
# Get project integrations
|
|
51
|
+
# List all integrations configured for a project. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
52
|
+
# @param project_id Project ID.
|
|
53
|
+
# @param [Hash] opts the optional parameters
|
|
54
|
+
# @return [IntegrationsList200Response]
|
|
55
|
+
describe 'integrations_list test' do
|
|
56
|
+
it 'should work' do
|
|
57
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
end
|
|
@@ -0,0 +1,104 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Mudbase::MessagingApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'MessagingApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Mudbase::MessagingApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of MessagingApi' do
|
|
30
|
+
it 'should create an instance of MessagingApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Mudbase::MessagingApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for messaging_get_history
|
|
36
|
+
# Get message history
|
|
37
|
+
# Get message history (push, email, SMS) with filtering and pagination. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
38
|
+
# @param project_id Project ID (MongoDB ObjectId) for the messaging project.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @option opts [String] :type Filter by message type (push, email, or sms).
|
|
41
|
+
# @option opts [Integer] :page Page number for pagination (1-based).
|
|
42
|
+
# @option opts [Integer] :limit Maximum number of messages per page.
|
|
43
|
+
# @option opts [String] :status Filter by delivery status.
|
|
44
|
+
# @return [MessageHistoryResponse]
|
|
45
|
+
describe 'messaging_get_history test' do
|
|
46
|
+
it 'should work' do
|
|
47
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# unit tests for messaging_get_stats
|
|
52
|
+
# Get message statistics
|
|
53
|
+
# Get messaging statistics including total messages, success rates, and breakdown by type (push, email, SMS). Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
54
|
+
# @param project_id Project ID (MongoDB ObjectId) for the messaging project.
|
|
55
|
+
# @param [Hash] opts the optional parameters
|
|
56
|
+
# @option opts [Time] :start_date Start of the date range for statistics (ISO 8601).
|
|
57
|
+
# @option opts [Time] :end_date End of the date range for statistics (ISO 8601).
|
|
58
|
+
# @return [MessageStatsResponse]
|
|
59
|
+
describe 'messaging_get_stats test' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# unit tests for messaging_send_email
|
|
66
|
+
# Send transactional email
|
|
67
|
+
# Send a transactional email to one or more recipients. Supports HTML and plain text. Use for verification emails, password resets, notifications, and marketing. Attachments and templates can be configured per project. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
68
|
+
# @param project_id Project ID (MongoDB ObjectId) for the messaging project.
|
|
69
|
+
# @param email_request Recipient(s), subject, HTML and/or plain text body; optional reply-to and attachments.
|
|
70
|
+
# @param [Hash] opts the optional parameters
|
|
71
|
+
# @return [MessageSentResponse]
|
|
72
|
+
describe 'messaging_send_email test' do
|
|
73
|
+
it 'should work' do
|
|
74
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# unit tests for messaging_send_push
|
|
79
|
+
# Send push notification
|
|
80
|
+
# Send a push notification to one or more devices. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
81
|
+
# @param project_id Project ID (MongoDB ObjectId) for the messaging project.
|
|
82
|
+
# @param push_notification_request Device tokens, notification title/body, optional data payload and image URL.
|
|
83
|
+
# @param [Hash] opts the optional parameters
|
|
84
|
+
# @return [MessageSentResponse]
|
|
85
|
+
describe 'messaging_send_push test' do
|
|
86
|
+
it 'should work' do
|
|
87
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# unit tests for messaging_send_sms
|
|
92
|
+
# Send SMS to one or more recipients (E.164 format)
|
|
93
|
+
# Send an SMS message to one or more phone numbers in E.164 format. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
94
|
+
# @param project_id Project ID (MongoDB ObjectId) for the messaging project.
|
|
95
|
+
# @param sms_request Recipient phone number(s), message body, and optional sender ID.
|
|
96
|
+
# @param [Hash] opts the optional parameters
|
|
97
|
+
# @return [MessageSentResponse]
|
|
98
|
+
describe 'messaging_send_sms test' do
|
|
99
|
+
it 'should work' do
|
|
100
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
101
|
+
end
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
end
|
|
@@ -0,0 +1,156 @@
|
|
|
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 'spec_helper'
|
|
14
|
+
require 'json'
|
|
15
|
+
|
|
16
|
+
# Unit tests for Mudbase::MultiRoleApi
|
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
|
18
|
+
# Please update as you see appropriate
|
|
19
|
+
describe 'MultiRoleApi' do
|
|
20
|
+
before do
|
|
21
|
+
# run before each test
|
|
22
|
+
@api_instance = Mudbase::MultiRoleApi.new
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
after do
|
|
26
|
+
# run after each test
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
describe 'test an instance of MultiRoleApi' do
|
|
30
|
+
it 'should create an instance of MultiRoleApi' do
|
|
31
|
+
expect(@api_instance).to be_instance_of(Mudbase::MultiRoleApi)
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
# unit tests for auth_oauth_signup_with_role
|
|
36
|
+
# OAuth signup with specific role
|
|
37
|
+
# Public endpoint that initiates OAuth signup flow with a specific role assigned during registration. The OAuth provider must be configured and enabled for the project first. The role must be available for signup in the project's multi-role configuration. After successful OAuth authentication, the user will be created with the specified role. No authentication required - this is a public signup endpoint.
|
|
38
|
+
# @param role Role slug for signup (e.g. customer, vendor, seller).
|
|
39
|
+
# @param provider OAuth provider (e.g. google, github).
|
|
40
|
+
# @param project_id Project ID.
|
|
41
|
+
# @param [Hash] opts the optional parameters
|
|
42
|
+
# @option opts [String] :redirect_url The URL to redirect to after authentication
|
|
43
|
+
# @return [UsersLinkOAuthProvider200Response]
|
|
44
|
+
describe 'auth_oauth_signup_with_role test' do
|
|
45
|
+
it 'should work' do
|
|
46
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# unit tests for auth_register_with_role
|
|
51
|
+
# Register user with specific role (Local Auth)
|
|
52
|
+
# Public endpoint for user registration with a specific role. The role is specified in the URL path (e.g., /signup/customer, /signup/vendor). No authentication required - this is a public signup endpoint.
|
|
53
|
+
# @param role Role slug for signup (e.g. customer, vendor).
|
|
54
|
+
# @param auth_register_with_role_request Registration payload (email, password, firstName, lastName, projectId).
|
|
55
|
+
# @param [Hash] opts the optional parameters
|
|
56
|
+
# @return [nil]
|
|
57
|
+
describe 'auth_register_with_role test' do
|
|
58
|
+
it 'should work' do
|
|
59
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
60
|
+
end
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# unit tests for multi_role_add_role
|
|
64
|
+
# Add custom role
|
|
65
|
+
# Add a custom role to a project with specific permissions and signup endpoint. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
66
|
+
# @param project_id Project ID.
|
|
67
|
+
# @param multi_role_add_role_request Custom role definition (slug, name, description, signupEndpoint, hierarchy, defaultPermissions).
|
|
68
|
+
# @param [Hash] opts the optional parameters
|
|
69
|
+
# @return [MultiRoleUpdateSettings200Response]
|
|
70
|
+
describe 'multi_role_add_role test' do
|
|
71
|
+
it 'should work' do
|
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# unit tests for multi_role_get_available_roles
|
|
77
|
+
# Get available roles for signup
|
|
78
|
+
# Get all available roles for user signup in a project. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
79
|
+
# @param project_id Project ID.
|
|
80
|
+
# @param [Hash] opts the optional parameters
|
|
81
|
+
# @return [MultiRoleGetAvailableRoles200Response]
|
|
82
|
+
describe 'multi_role_get_available_roles test' do
|
|
83
|
+
it 'should work' do
|
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
85
|
+
end
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# unit tests for multi_role_get_config
|
|
89
|
+
# Get multi-role feature configuration
|
|
90
|
+
# Get the ready-to-use multi-role system configuration for a project
|
|
91
|
+
# @param project_id Project ID.
|
|
92
|
+
# @param [Hash] opts the optional parameters
|
|
93
|
+
# @return [MultiRoleGetConfig200Response]
|
|
94
|
+
describe 'multi_role_get_config test' do
|
|
95
|
+
it 'should work' do
|
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
97
|
+
end
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# unit tests for multi_role_toggle_role
|
|
101
|
+
# Toggle role on/off
|
|
102
|
+
# Enable or disable a role for the project. When disabled, the role is no longer available for signup or assignment.
|
|
103
|
+
# @param project_id Project ID.
|
|
104
|
+
# @param role_slug Role slug to toggle (e.g. vendor, customer).
|
|
105
|
+
# @param multi_role_toggle_role_request Whether the role is enabled (true) or disabled (false).
|
|
106
|
+
# @param [Hash] opts the optional parameters
|
|
107
|
+
# @return [MultiRoleUpdateSettings200Response]
|
|
108
|
+
describe 'multi_role_toggle_role test' do
|
|
109
|
+
it 'should work' do
|
|
110
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# unit tests for multi_role_update_collection_permissions
|
|
115
|
+
# Update collection permissions for a role
|
|
116
|
+
# Update collection-specific permissions for a role in a project. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
117
|
+
# @param project_id Project ID.
|
|
118
|
+
# @param role_slug Role slug (e.g. vendor, customer).
|
|
119
|
+
# @param collection_id Collection ID to set permissions for.
|
|
120
|
+
# @param multi_role_update_collection_permissions_request Allowed actions and optional conditions for the role on this collection.
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @return [MultiRoleUpdateSettings200Response]
|
|
123
|
+
describe 'multi_role_update_collection_permissions test' do
|
|
124
|
+
it 'should work' do
|
|
125
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# unit tests for multi_role_update_role
|
|
130
|
+
# Update role configuration
|
|
131
|
+
# Update an existing role's metadata and requirements (name, description, hierarchy, approval/payment/KYC flags).
|
|
132
|
+
# @param project_id Project ID.
|
|
133
|
+
# @param role_slug Role slug to update (e.g. vendor, customer).
|
|
134
|
+
# @param multi_role_update_role_request Role fields to update (name, description, hierarchy, requiresApproval, requiresPayment, requiresKYC).
|
|
135
|
+
# @param [Hash] opts the optional parameters
|
|
136
|
+
# @return [MultiRoleUpdateSettings200Response]
|
|
137
|
+
describe 'multi_role_update_role test' do
|
|
138
|
+
it 'should work' do
|
|
139
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# unit tests for multi_role_update_settings
|
|
144
|
+
# Update multi-role feature settings
|
|
145
|
+
# Update multi-role feature settings for a project, including enabling/disabling the feature and configuring default roles. Accepts BearerToken (JWT) or ApiKeyAuth (X-API-Key).
|
|
146
|
+
# @param project_id Project ID.
|
|
147
|
+
# @param multi_role_update_settings_request Multi-role settings (e.g. isEnabled, defaultRole, allowMultipleRoles, requireApproval).
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @return [MultiRoleUpdateSettings200Response]
|
|
150
|
+
describe 'multi_role_update_settings test' do
|
|
151
|
+
it 'should work' do
|
|
152
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
end
|