mudbase 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +21 -0
- data/Rakefile +10 -0
- data/docs/AddCustomRoleRequest.md +28 -0
- data/docs/AddCustomRoleRequestDefaultPermissionsInner.md +20 -0
- data/docs/AddParticipant200Response.md +20 -0
- data/docs/AddParticipant200ResponseData.md +18 -0
- data/docs/AddParticipant200ResponseDataParticipantsInner.md +22 -0
- data/docs/AddParticipantRequest.md +20 -0
- data/docs/AddReaction200Response.md +20 -0
- data/docs/AddReaction200ResponseDataInner.md +20 -0
- data/docs/AddReactionRequest.md +18 -0
- data/docs/ApiKey.md +36 -0
- data/docs/ApiKeyPermission.md +20 -0
- data/docs/ApiKeyUsage.md +20 -0
- data/docs/ApiKeyUsageResponse.md +24 -0
- data/docs/ApiKeyWithSecret.md +38 -0
- data/docs/AuthConfig.md +20 -0
- data/docs/AuthProvider.md +22 -0
- data/docs/AuthResponse.md +22 -0
- data/docs/AuthenticationApi.md +1066 -0
- data/docs/Billing.md +22 -0
- data/docs/BillingApi.md +677 -0
- data/docs/BillingLastPayment.md +22 -0
- data/docs/BroadcastNonCustodialTransaction200Response.md +22 -0
- data/docs/BroadcastNonCustodialTransaction200ResponseData.md +24 -0
- data/docs/BroadcastNonCustodialTransactionRequest.md +22 -0
- data/docs/Bucket.md +28 -0
- data/docs/BucketListResponse.md +22 -0
- data/docs/BucketResponse.md +22 -0
- data/docs/BucketsApi.md +385 -0
- data/docs/ChangePasswordRequest.md +20 -0
- data/docs/ChatApi.md +907 -0
- data/docs/CheckFeatureAccess200Response.md +20 -0
- data/docs/CheckSubscription200Response.md +20 -0
- data/docs/CheckSubscription200ResponseSubscription.md +20 -0
- data/docs/CheckUserPresence200Response.md +20 -0
- data/docs/CheckUserPresence200ResponsePresenceValue.md +20 -0
- data/docs/CheckUserPresenceRequest.md +18 -0
- data/docs/Collection.md +34 -0
- data/docs/CollectionsApi.md +367 -0
- data/docs/ComplianceApi.md +77 -0
- data/docs/ConfirmDirectUpload400Response.md +20 -0
- data/docs/ConfirmDirectUploadRequest.md +30 -0
- data/docs/ConfirmLocalPasswordResetWithOtpRequest.md +24 -0
- data/docs/ConfirmUploadResponse.md +22 -0
- data/docs/ConfirmUploadResponseScan.md +24 -0
- data/docs/ConvertAnonymousAccount200Response.md +22 -0
- data/docs/ConvertAnonymousAccountRequest.md +24 -0
- data/docs/CreateAnonymousSession200Response.md +24 -0
- data/docs/CreateAnonymousSession200ResponseUser.md +28 -0
- data/docs/CreateAnonymousSessionRequest.md +20 -0
- data/docs/CreateApiKeyRequest.md +26 -0
- data/docs/CreateBucketRequest.md +22 -0
- data/docs/CreateChat201Response.md +20 -0
- data/docs/CreateChat201ResponseData.md +26 -0
- data/docs/CreateChatRequest.md +26 -0
- data/docs/CreateCheckoutSession200Response.md +20 -0
- data/docs/CreateCheckoutSession200ResponseData.md +38 -0
- data/docs/CreateCheckoutSession200ResponseDataPaymentOptionsInner.md +28 -0
- data/docs/CreateCheckoutSession400Response.md +18 -0
- data/docs/CreateCheckoutSessionRequest.md +26 -0
- data/docs/CreateCheckoutSessionRequestCustomerInfo.md +20 -0
- data/docs/CreateCollection201Response.md +20 -0
- data/docs/CreateCollectionRequest.md +26 -0
- data/docs/CreateFunctionRequest.md +26 -0
- data/docs/CreateProjectRequest.md +22 -0
- data/docs/CreateWalletWebhook201Response.md +22 -0
- data/docs/CreateWalletWebhookRequest.md +26 -0
- data/docs/CreateWalletWebhookRequestFilters.md +20 -0
- data/docs/DataApi.md +387 -0
- data/docs/DataListResponse.md +20 -0
- data/docs/DataListResponseDataInner.md +22 -0
- data/docs/DataResponse.md +20 -0
- data/docs/DatabaseConfig.md +18 -0
- data/docs/DeleteFunction200Response.md +20 -0
- data/docs/Disable2FARequest.md +20 -0
- data/docs/DownloadBucketFile403Response.md +18 -0
- data/docs/DownloadBucketFile404Response.md +18 -0
- data/docs/EditMessage200Response.md +20 -0
- data/docs/EditMessage200ResponseData.md +22 -0
- data/docs/EditMessageRequest.md +18 -0
- data/docs/EmailRequest.md +28 -0
- data/docs/EmailRequestTo.md +49 -0
- data/docs/EraseUserData200Response.md +20 -0
- data/docs/EraseUserData200ResponseDetails.md +26 -0
- data/docs/EraseUserDataRequest.md +20 -0
- data/docs/Error.md +28 -0
- data/docs/ErrorDetails.md +49 -0
- data/docs/EstimateNonCustodialGas200Response.md +20 -0
- data/docs/EstimateNonCustodialGas200ResponseData.md +38 -0
- data/docs/EstimateNonCustodialGasRequest.md +20 -0
- data/docs/EstimateNonCustodialGasRequestTransaction.md +28 -0
- data/docs/ExecuteFunctionRequest.md +18 -0
- data/docs/ExecuteIntegrationRequest.md +24 -0
- data/docs/ExportUserData200Response.md +32 -0
- data/docs/Field.md +30 -0
- data/docs/FieldDefault.md +51 -0
- data/docs/FileListResponse.md +20 -0
- data/docs/FileMetadata.md +40 -0
- data/docs/FileResponse.md +20 -0
- data/docs/FileUploadResponse.md +20 -0
- data/docs/FilesApi.md +702 -0
- data/docs/Function.md +36 -0
- data/docs/FunctionExecution.md +38 -0
- data/docs/FunctionExecutionResponse.md +20 -0
- data/docs/FunctionExecutionResponseData.md +24 -0
- data/docs/FunctionListResponse.md +20 -0
- data/docs/FunctionListResponseData.md +20 -0
- data/docs/FunctionLogsResponse.md +20 -0
- data/docs/FunctionLogsResponseData.md +20 -0
- data/docs/FunctionResponse.md +20 -0
- data/docs/FunctionStats.md +26 -0
- data/docs/FunctionTrigger.md +30 -0
- data/docs/FunctionsApi.md +1106 -0
- data/docs/GeneratePresignedUploadRequest.md +26 -0
- data/docs/GenerateSignedUrlRequest.md +18 -0
- data/docs/GetActiveUsers200Response.md +22 -0
- data/docs/GetActiveUsers200ResponseUsersInner.md +22 -0
- data/docs/GetAvailableOAuthProviders200Response.md +20 -0
- data/docs/GetAvailableOAuthProviders200ResponseProvidersInner.md +28 -0
- data/docs/GetAvailableRoles200Response.md +20 -0
- data/docs/GetAvailableRoles200ResponseDataInner.md +30 -0
- data/docs/GetCancelParams200Response.md +20 -0
- data/docs/GetCancelParams200ResponseData.md +36 -0
- data/docs/GetCancelParamsRequest.md +22 -0
- data/docs/GetChatDetails200Response.md +20 -0
- data/docs/GetChatDetails200ResponseData.md +22 -0
- data/docs/GetChatDetails200ResponseDataParticipantsInner.md +20 -0
- data/docs/GetChatMessages200Response.md +20 -0
- data/docs/GetChatMessages200ResponseData.md +20 -0
- data/docs/GetChatMessages200ResponseDataMessagesInner.md +24 -0
- data/docs/GetChatMessages200ResponseDataMessagesInnerSender.md +20 -0
- data/docs/GetCheckoutPayment200Response.md +20 -0
- data/docs/GetCheckoutPayment200ResponseData.md +34 -0
- data/docs/GetCurrentUser200Response.md +18 -0
- data/docs/GetEventThroughput200Response.md +26 -0
- data/docs/GetFunctionVersions200Response.md +20 -0
- data/docs/GetFunctionVersions200ResponseData.md +18 -0
- data/docs/GetFunctionVersions200ResponseDataVersionsInner.md +28 -0
- data/docs/GetHistoricalAnalytics200Response.md +24 -0
- data/docs/GetHistoricalAnalytics200ResponseDataInner.md +22 -0
- data/docs/GetIntegrations200Response.md +18 -0
- data/docs/GetIntegrations200ResponseIntegrationsInner.md +24 -0
- data/docs/GetLocalSession200Response.md +20 -0
- data/docs/GetMultiRoleConfig200Response.md +20 -0
- data/docs/GetMultiRoleConfig200ResponseData.md +24 -0
- data/docs/GetNonCustodialBalance200Response.md +20 -0
- data/docs/GetNonCustodialTransactionByHash200Response.md +20 -0
- data/docs/GetNonCustodialTransactionByHash400Response.md +20 -0
- data/docs/GetNonCustodialTransactions200Response.md +22 -0
- data/docs/GetNonCustodialTransactions200ResponsePagination.md +30 -0
- data/docs/GetProjectAnalytics200Response.md +26 -0
- data/docs/GetPublicPlans200Response.md +18 -0
- data/docs/GetRoleElevationStatus200Response.md +18 -0
- data/docs/GetSearchAnalytics200Response.md +24 -0
- data/docs/GetSearchAnalytics200ResponseTopQueriesInner.md +20 -0
- data/docs/GetSearchSuggestions200Response.md +18 -0
- data/docs/GetSpeedUpParams200Response.md +20 -0
- data/docs/GetSpeedUpParams200ResponseData.md +36 -0
- data/docs/GetSpeedUpParamsRequest.md +22 -0
- data/docs/GetUserChats200Response.md +20 -0
- data/docs/GetUserChats200ResponseData.md +20 -0
- data/docs/GetUserChats200ResponseDataChatsInner.md +26 -0
- data/docs/GetUserChats200ResponseDataChatsInnerLastMessage.md +18 -0
- data/docs/GetWalletWebhookLogs200Response.md +20 -0
- data/docs/HandleCryptoPaymentWebhook200Response.md +18 -0
- data/docs/HandleCryptoPaymentWebhookRequest.md +20 -0
- data/docs/HandleCryptoPaymentWebhookRequestData.md +30 -0
- data/docs/HandleFlutterwaveWebhookRequest.md +20 -0
- data/docs/HandleFlutterwaveWebhookRequestData.md +32 -0
- data/docs/HandleFlutterwaveWebhookRequestDataCustomer.md +20 -0
- data/docs/HealthApi.md +136 -0
- data/docs/HealthResponse.md +26 -0
- data/docs/HealthResponseServices.md +26 -0
- data/docs/InitializePaymentForProjectRequest.md +24 -0
- data/docs/InitializePaymentForProjectRequestCustomer.md +20 -0
- data/docs/InitiateOAuth200Response.md +18 -0
- data/docs/InitiateOAuth400Response.md +18 -0
- data/docs/InitiateOAuth404Response.md +18 -0
- data/docs/IntegrationsApi.md +151 -0
- data/docs/InviteMemberRequest.md +20 -0
- data/docs/Limits.md +30 -0
- data/docs/LinkOAuthProvider200Response.md +18 -0
- data/docs/ListCollections200Response.md +20 -0
- data/docs/ListNonCustodialAddresses200Response.md +22 -0
- data/docs/ListOAuthProviders200Response.md +18 -0
- data/docs/ListOAuthProviders200ResponseProvidersInner.md +24 -0
- data/docs/ListWalletWebhooks200Response.md +22 -0
- data/docs/LogSecurityEvent200Response.md +20 -0
- data/docs/LogSecurityEvent200ResponseEvent.md +24 -0
- data/docs/LogSecurityEventRequest.md +22 -0
- data/docs/LogSecurityEventRequestDetails.md +28 -0
- data/docs/LoginLocalUser200Response.md +22 -0
- data/docs/LoginLocalUser200ResponseUser.md +30 -0
- data/docs/LoginLocalUser403Response.md +22 -0
- data/docs/LoginLocalUserRequest.md +22 -0
- data/docs/LoginRequest.md +20 -0
- data/docs/MagicLinkRequest.md +22 -0
- data/docs/MarkMessagesAsRead200Response.md +20 -0
- data/docs/MarkMessagesAsRead200ResponseData.md +18 -0
- data/docs/MarkMessagesAsReadRequest.md +18 -0
- data/docs/Message.md +36 -0
- data/docs/MessageHistoryResponse.md +20 -0
- data/docs/MessageHistoryResponseData.md +20 -0
- data/docs/MessageResponse.md +18 -0
- data/docs/MessageSentResponse.md +20 -0
- data/docs/MessageSentResponseData.md +32 -0
- data/docs/MessageStatsResponse.md +20 -0
- data/docs/MessageStatsResponseData.md +26 -0
- data/docs/MessageStatsResponseDataByStatus.md +22 -0
- data/docs/MessageStatsResponseDataByType.md +22 -0
- data/docs/MessageStatsResponseDataPeriod.md +20 -0
- data/docs/MessagingApi.md +379 -0
- data/docs/MultiRoleFeatureApi.md +654 -0
- data/docs/NonCustodialAddress.md +40 -0
- data/docs/NonCustodialAddressResponse.md +22 -0
- data/docs/OTPSendRequest.md +24 -0
- data/docs/OTPVerifyRequest.md +22 -0
- data/docs/OauthCallback200Response.md +20 -0
- data/docs/OauthSignupWithRole400Response.md +20 -0
- data/docs/Organization.md +42 -0
- data/docs/OrganizationSummary.md +22 -0
- data/docs/Pagination.md +24 -0
- data/docs/PaymentIntent.md +52 -0
- data/docs/PaymentRefund.md +46 -0
- data/docs/PaymentSubscription.md +46 -0
- data/docs/Permission.md +24 -0
- data/docs/Plan.md +26 -0
- data/docs/PresignedPostResponse.md +24 -0
- data/docs/Project.md +40 -0
- data/docs/ProjectSettings.md +30 -0
- data/docs/ProjectSummary.md +22 -0
- data/docs/ProjectUsage.md +26 -0
- data/docs/ProjectUsageResponse.md +20 -0
- data/docs/ProjectUsageStatsResponse.md +22 -0
- data/docs/ProjectUsageStatsResponseProject.md +20 -0
- data/docs/PushNotificationRequest.md +26 -0
- data/docs/RateLimit.md +20 -0
- data/docs/RealTimeAnalyticsApi.md +367 -0
- data/docs/RecordUsageRequest.md +22 -0
- data/docs/RegisterLocalUser201Response.md +28 -0
- data/docs/RegisterLocalUser201ResponseUser.md +28 -0
- data/docs/RegisterLocalUser429Response.md +30 -0
- data/docs/RegisterLocalUserRequest.md +26 -0
- data/docs/RegisterNonCustodialAddressRequest.md +26 -0
- data/docs/RegisterRequest.md +26 -0
- data/docs/RegisterWithRoleRequest.md +26 -0
- data/docs/RemoveParticipantRequest.md +18 -0
- data/docs/RemoveReaction200Response.md +20 -0
- data/docs/RemoveReaction200ResponseDataInner.md +22 -0
- data/docs/RequestLocalPasswordResetRequest.md +20 -0
- data/docs/RequestRoleElevation200Response.md +28 -0
- data/docs/RequestRoleElevationRequest.md +18 -0
- data/docs/ResetLocalPasswordRequest.md +20 -0
- data/docs/RoleElevationApi.md +224 -0
- data/docs/RollbackFunctionRequest.md +18 -0
- data/docs/SMSRequest.md +22 -0
- data/docs/SearchApi.md +239 -0
- data/docs/SearchResponse.md +20 -0
- data/docs/SearchResponseData.md +24 -0
- data/docs/SearchResult.md +22 -0
- data/docs/SearchResultItem.md +20 -0
- data/docs/SendMessage201Response.md +20 -0
- data/docs/SendMessage201ResponseData.md +24 -0
- data/docs/SendMessageRequest.md +24 -0
- data/docs/SessionResponse.md +20 -0
- data/docs/SignedUrlResponse.md +24 -0
- data/docs/SimulateFunctionTriggerRequest.md +22 -0
- data/docs/StorageConfig.md +18 -0
- data/docs/SystemStatusResponse.md +20 -0
- data/docs/SystemStatusResponseData.md +28 -0
- data/docs/SystemStatusResponseDataCpu.md +20 -0
- data/docs/SystemStatusResponseDataDatabase.md +22 -0
- data/docs/SystemStatusResponseDataMemory.md +22 -0
- data/docs/SystemStatusResponseDataRequests.md +24 -0
- data/docs/SystemStatusResponseDataStorage.md +22 -0
- data/docs/TestWalletWebhook200Response.md +20 -0
- data/docs/TestWalletWebhookRequest.md +24 -0
- data/docs/ToggleRoleRequest.md +18 -0
- data/docs/TriggerFunctionWebhook200Response.md +22 -0
- data/docs/TriggerFunctionWebhook400Response.md +20 -0
- data/docs/TriggerFunctionWebhook401Response.md +20 -0
- data/docs/TriggerWebhookRequest.md +26 -0
- data/docs/TwoFASetupResponse.md +22 -0
- data/docs/UnlinkOAuthProvider200Response.md +20 -0
- data/docs/UpdateApiKeyRequest.md +24 -0
- data/docs/UpdateBucketRequest.md +22 -0
- data/docs/UpdateCollectionPermissionsRequest.md +20 -0
- data/docs/UpdateCollectionRequest.md +24 -0
- data/docs/UpdateFunctionRequest.md +34 -0
- data/docs/UpdateFunctionRequestLimits.md +24 -0
- data/docs/UpdateFunctionRequestRetryPolicy.md +22 -0
- data/docs/UpdateMultiRoleSettings200Response.md +22 -0
- data/docs/UpdateMultiRoleSettingsRequest.md +22 -0
- data/docs/UpdateMultiRoleSettingsRequestSettings.md +20 -0
- data/docs/UpdateOrganizationRequest.md +26 -0
- data/docs/UpdateProjectRequest.md +26 -0
- data/docs/UpdateProjectRoleRequest.md +28 -0
- data/docs/UpdateUserProfile200Response.md +20 -0
- data/docs/UpdateUserRequest.md +22 -0
- data/docs/UpdateWalletWebhook200Response.md +20 -0
- data/docs/UpdateWalletWebhookRequest.md +24 -0
- data/docs/UploadFilesToBucketMetadataRequest.md +20 -0
- data/docs/UploadFilesToBucketRequest.md +22 -0
- data/docs/UploadVerificationDocumentsRequest.md +20 -0
- data/docs/UploadVerificationDocumentsRequestDocumentsInner.md +20 -0
- data/docs/Usage.md +30 -0
- data/docs/UsageApi.md +153 -0
- data/docs/UsageResponse.md +24 -0
- data/docs/UsageStatsResponse.md +26 -0
- data/docs/UsageStatsResponsePercentages.md +22 -0
- data/docs/UsageTrendsResponse.md +20 -0
- data/docs/UsageTrendsResponseTrendsInner.md +28 -0
- data/docs/UsageTrendsResponseTrendsInnerId.md +22 -0
- data/docs/User.md +44 -0
- data/docs/UserSummary.md +24 -0
- data/docs/UsersApi.md +901 -0
- data/docs/Verify2FARequest.md +18 -0
- data/docs/VerifyEmailRequest.md +20 -0
- data/docs/VerifyMagicLinkRequest.md +18 -0
- data/docs/VerifyPayment200Response.md +22 -0
- data/docs/VerifyPayment200ResponseData.md +18 -0
- data/docs/VerifyPayment200ResponseDataSubscription.md +24 -0
- data/docs/WalletApi.md +1232 -0
- data/docs/WalletBalance.md +30 -0
- data/docs/WalletTransaction.md +58 -0
- data/docs/WalletTransactionWebhookPayload.md +22 -0
- data/docs/WalletWebhook.md +32 -0
- data/docs/WalletWebhookFilters.md +20 -0
- data/docs/WalletWebhookStats.md +24 -0
- data/docs/WebhookListResponse.md +26 -0
- data/docs/WebhookLog.md +42 -0
- data/docs/WebhookStatsResponse.md +22 -0
- data/docs/WebhookStatsResponseEventStatsInner.md +22 -0
- data/docs/WebhookStatsResponseStatusStatsInner.md +22 -0
- data/docs/WebhooksApi.md +81 -0
- data/git_push.sh +57 -0
- data/lib/mudbase/api/authentication_api.rb +1090 -0
- data/lib/mudbase/api/billing_api.rb +729 -0
- data/lib/mudbase/api/buckets_api.rb +386 -0
- data/lib/mudbase/api/chat_api.rb +968 -0
- data/lib/mudbase/api/collections_api.rb +377 -0
- data/lib/mudbase/api/compliance_api.rb +90 -0
- data/lib/mudbase/api/data_api.rb +423 -0
- data/lib/mudbase/api/files_api.rb +683 -0
- data/lib/mudbase/api/functions_api.rb +1054 -0
- data/lib/mudbase/api/health_api.rb +136 -0
- data/lib/mudbase/api/integrations_api.rb +165 -0
- data/lib/mudbase/api/messaging_api.rb +396 -0
- data/lib/mudbase/api/multi_role_feature_api.rb +699 -0
- data/lib/mudbase/api/real_time_analytics_api.rb +358 -0
- data/lib/mudbase/api/role_elevation_api.rb +236 -0
- data/lib/mudbase/api/search_api.rb +263 -0
- data/lib/mudbase/api/usage_api.rb +152 -0
- data/lib/mudbase/api/users_api.rb +854 -0
- data/lib/mudbase/api/wallet_api.rb +1161 -0
- data/lib/mudbase/api/webhooks_api.rb +85 -0
- data/lib/mudbase/api_client.rb +397 -0
- data/lib/mudbase/api_error.rb +58 -0
- data/lib/mudbase/api_model_base.rb +88 -0
- data/lib/mudbase/configuration.rb +316 -0
- data/lib/mudbase/models/add_custom_role_request.rb +245 -0
- data/lib/mudbase/models/add_custom_role_request_default_permissions_inner.rb +158 -0
- data/lib/mudbase/models/add_participant200_response.rb +156 -0
- data/lib/mudbase/models/add_participant200_response_data.rb +149 -0
- data/lib/mudbase/models/add_participant200_response_data_participants_inner.rb +165 -0
- data/lib/mudbase/models/add_participant_request.rb +207 -0
- data/lib/mudbase/models/add_reaction200_response.rb +158 -0
- data/lib/mudbase/models/add_reaction200_response_data_inner.rb +158 -0
- data/lib/mudbase/models/add_reaction_request.rb +164 -0
- data/lib/mudbase/models/api_key.rb +231 -0
- data/lib/mudbase/models/api_key_permission.rb +209 -0
- data/lib/mudbase/models/api_key_usage.rb +157 -0
- data/lib/mudbase/models/api_key_usage_response.rb +175 -0
- data/lib/mudbase/models/api_key_with_secret.rb +247 -0
- data/lib/mudbase/models/auth_config.rb +162 -0
- data/lib/mudbase/models/auth_provider.rb +166 -0
- data/lib/mudbase/models/auth_response.rb +166 -0
- data/lib/mudbase/models/billing.rb +166 -0
- data/lib/mudbase/models/billing_last_payment.rb +165 -0
- data/lib/mudbase/models/broadcast_non_custodial_transaction200_response.rb +165 -0
- data/lib/mudbase/models/broadcast_non_custodial_transaction200_response_data.rb +175 -0
- data/lib/mudbase/models/broadcast_non_custodial_transaction_request.rb +243 -0
- data/lib/mudbase/models/bucket.rb +193 -0
- data/lib/mudbase/models/bucket_list_response.rb +168 -0
- data/lib/mudbase/models/bucket_response.rb +166 -0
- data/lib/mudbase/models/change_password_request.rb +200 -0
- data/lib/mudbase/models/check_feature_access200_response.rb +156 -0
- data/lib/mudbase/models/check_subscription200_response.rb +156 -0
- data/lib/mudbase/models/check_subscription200_response_subscription.rb +156 -0
- data/lib/mudbase/models/check_user_presence200_response.rb +158 -0
- data/lib/mudbase/models/check_user_presence200_response_presence_value.rb +156 -0
- data/lib/mudbase/models/check_user_presence_request.rb +166 -0
- data/lib/mudbase/models/collection.rb +224 -0
- data/lib/mudbase/models/confirm_direct_upload400_response.rb +156 -0
- data/lib/mudbase/models/confirm_direct_upload_request.rb +236 -0
- data/lib/mudbase/models/confirm_local_password_reset_with_otp_request.rb +280 -0
- data/lib/mudbase/models/confirm_upload_response.rb +200 -0
- data/lib/mudbase/models/confirm_upload_response_scan.rb +176 -0
- data/lib/mudbase/models/convert_anonymous_account200_response.rb +165 -0
- data/lib/mudbase/models/convert_anonymous_account_request.rb +208 -0
- data/lib/mudbase/models/create_anonymous_session200_response.rb +174 -0
- data/lib/mudbase/models/create_anonymous_session200_response_user.rb +192 -0
- data/lib/mudbase/models/create_anonymous_session_request.rb +158 -0
- data/lib/mudbase/models/create_api_key_request.rb +252 -0
- data/lib/mudbase/models/create_bucket_request.rb +188 -0
- data/lib/mudbase/models/create_chat201_response.rb +156 -0
- data/lib/mudbase/models/create_chat201_response_data.rb +185 -0
- data/lib/mudbase/models/create_chat_request.rb +260 -0
- data/lib/mudbase/models/create_checkout_session200_response.rb +156 -0
- data/lib/mudbase/models/create_checkout_session200_response_data.rb +245 -0
- data/lib/mudbase/models/create_checkout_session200_response_data_payment_options_inner.rb +238 -0
- data/lib/mudbase/models/create_checkout_session400_response.rb +147 -0
- data/lib/mudbase/models/create_checkout_session_request.rb +262 -0
- data/lib/mudbase/models/create_checkout_session_request_customer_info.rb +173 -0
- data/lib/mudbase/models/create_collection201_response.rb +156 -0
- data/lib/mudbase/models/create_collection_request.rb +222 -0
- data/lib/mudbase/models/create_function_request.rb +239 -0
- data/lib/mudbase/models/create_project_request.rb +183 -0
- data/lib/mudbase/models/create_wallet_webhook201_response.rb +165 -0
- data/lib/mudbase/models/create_wallet_webhook_request.rb +233 -0
- data/lib/mudbase/models/create_wallet_webhook_request_filters.rb +184 -0
- data/lib/mudbase/models/data_list_response.rb +159 -0
- data/lib/mudbase/models/data_list_response_data_inner.rb +169 -0
- data/lib/mudbase/models/data_response.rb +157 -0
- data/lib/mudbase/models/database_config.rb +150 -0
- data/lib/mudbase/models/delete_function200_response.rb +156 -0
- data/lib/mudbase/models/disable2_fa_request.rb +190 -0
- data/lib/mudbase/models/download_bucket_file403_response.rb +147 -0
- data/lib/mudbase/models/download_bucket_file404_response.rb +147 -0
- data/lib/mudbase/models/edit_message200_response.rb +156 -0
- data/lib/mudbase/models/edit_message200_response_data.rb +165 -0
- data/lib/mudbase/models/edit_message_request.rb +164 -0
- data/lib/mudbase/models/email_request.rb +227 -0
- data/lib/mudbase/models/email_request_to.rb +104 -0
- data/lib/mudbase/models/erase_user_data200_response.rb +156 -0
- data/lib/mudbase/models/erase_user_data200_response_details.rb +183 -0
- data/lib/mudbase/models/erase_user_data_request.rb +198 -0
- data/lib/mudbase/models/error.rb +193 -0
- data/lib/mudbase/models/error_details.rb +104 -0
- data/lib/mudbase/models/estimate_non_custodial_gas200_response.rb +156 -0
- data/lib/mudbase/models/estimate_non_custodial_gas200_response_data.rb +248 -0
- data/lib/mudbase/models/estimate_non_custodial_gas_request.rb +198 -0
- data/lib/mudbase/models/estimate_non_custodial_gas_request_transaction.rb +216 -0
- data/lib/mudbase/models/execute_function_request.rb +148 -0
- data/lib/mudbase/models/execute_integration_request.rb +232 -0
- data/lib/mudbase/models/export_user_data200_response.rb +222 -0
- data/lib/mudbase/models/field.rb +260 -0
- data/lib/mudbase/models/field_default.rb +105 -0
- data/lib/mudbase/models/file_list_response.rb +159 -0
- data/lib/mudbase/models/file_metadata.rb +247 -0
- data/lib/mudbase/models/file_response.rb +157 -0
- data/lib/mudbase/models/file_upload_response.rb +157 -0
- data/lib/mudbase/models/function.rb +229 -0
- data/lib/mudbase/models/function_execution.rb +272 -0
- data/lib/mudbase/models/function_execution_response.rb +157 -0
- data/lib/mudbase/models/function_execution_response_data.rb +175 -0
- data/lib/mudbase/models/function_list_response.rb +157 -0
- data/lib/mudbase/models/function_list_response_data.rb +158 -0
- data/lib/mudbase/models/function_logs_response.rb +157 -0
- data/lib/mudbase/models/function_logs_response_data.rb +158 -0
- data/lib/mudbase/models/function_response.rb +157 -0
- data/lib/mudbase/models/function_stats.rb +184 -0
- data/lib/mudbase/models/function_trigger.rb +261 -0
- data/lib/mudbase/models/generate_presigned_upload_request.rb +221 -0
- data/lib/mudbase/models/generate_signed_url_request.rb +149 -0
- data/lib/mudbase/models/get_active_users200_response.rb +167 -0
- data/lib/mudbase/models/get_active_users200_response_users_inner.rb +165 -0
- data/lib/mudbase/models/get_available_o_auth_providers200_response.rb +158 -0
- data/lib/mudbase/models/get_available_o_auth_providers200_response_providers_inner.rb +196 -0
- data/lib/mudbase/models/get_available_roles200_response.rb +158 -0
- data/lib/mudbase/models/get_available_roles200_response_data_inner.rb +201 -0
- data/lib/mudbase/models/get_cancel_params200_response.rb +156 -0
- data/lib/mudbase/models/get_cancel_params200_response_data.rb +231 -0
- data/lib/mudbase/models/get_cancel_params_request.rb +208 -0
- data/lib/mudbase/models/get_chat_details200_response.rb +156 -0
- data/lib/mudbase/models/get_chat_details200_response_data.rb +167 -0
- data/lib/mudbase/models/get_chat_details200_response_data_participants_inner.rb +156 -0
- data/lib/mudbase/models/get_chat_messages200_response.rb +156 -0
- data/lib/mudbase/models/get_chat_messages200_response_data.rb +158 -0
- data/lib/mudbase/models/get_chat_messages200_response_data_messages_inner.rb +174 -0
- data/lib/mudbase/models/get_chat_messages200_response_data_messages_inner_sender.rb +156 -0
- data/lib/mudbase/models/get_checkout_payment200_response.rb +156 -0
- data/lib/mudbase/models/get_checkout_payment200_response_data.rb +224 -0
- data/lib/mudbase/models/get_current_user200_response.rb +147 -0
- data/lib/mudbase/models/get_event_throughput200_response.rb +185 -0
- data/lib/mudbase/models/get_function_versions200_response.rb +156 -0
- data/lib/mudbase/models/get_function_versions200_response_data.rb +149 -0
- data/lib/mudbase/models/get_function_versions200_response_data_versions_inner.rb +192 -0
- data/lib/mudbase/models/get_historical_analytics200_response.rb +176 -0
- data/lib/mudbase/models/get_historical_analytics200_response_data_inner.rb +165 -0
- data/lib/mudbase/models/get_integrations200_response.rb +149 -0
- data/lib/mudbase/models/get_integrations200_response_integrations_inner.rb +174 -0
- data/lib/mudbase/models/get_local_session200_response.rb +156 -0
- data/lib/mudbase/models/get_multi_role_config200_response.rb +156 -0
- data/lib/mudbase/models/get_multi_role_config200_response_data.rb +176 -0
- data/lib/mudbase/models/get_non_custodial_balance200_response.rb +156 -0
- data/lib/mudbase/models/get_non_custodial_transaction_by_hash200_response.rb +156 -0
- data/lib/mudbase/models/get_non_custodial_transaction_by_hash400_response.rb +156 -0
- data/lib/mudbase/models/get_non_custodial_transactions200_response.rb +167 -0
- data/lib/mudbase/models/get_non_custodial_transactions200_response_pagination.rb +201 -0
- data/lib/mudbase/models/get_project_analytics200_response.rb +183 -0
- data/lib/mudbase/models/get_public_plans200_response.rb +149 -0
- data/lib/mudbase/models/get_role_elevation_status200_response.rb +149 -0
- data/lib/mudbase/models/get_search_analytics200_response.rb +176 -0
- data/lib/mudbase/models/get_search_analytics200_response_top_queries_inner.rb +156 -0
- data/lib/mudbase/models/get_search_suggestions200_response.rb +149 -0
- data/lib/mudbase/models/get_speed_up_params200_response.rb +156 -0
- data/lib/mudbase/models/get_speed_up_params200_response_data.rb +229 -0
- data/lib/mudbase/models/get_speed_up_params_request.rb +209 -0
- data/lib/mudbase/models/get_user_chats200_response.rb +156 -0
- data/lib/mudbase/models/get_user_chats200_response_data.rb +158 -0
- data/lib/mudbase/models/get_user_chats200_response_data_chats_inner.rb +183 -0
- data/lib/mudbase/models/get_user_chats200_response_data_chats_inner_last_message.rb +147 -0
- data/lib/mudbase/models/get_wallet_webhook_logs200_response.rb +158 -0
- data/lib/mudbase/models/handle_crypto_payment_webhook200_response.rb +147 -0
- data/lib/mudbase/models/handle_crypto_payment_webhook_request.rb +214 -0
- data/lib/mudbase/models/handle_crypto_payment_webhook_request_data.rb +201 -0
- data/lib/mudbase/models/handle_flutterwave_webhook_request.rb +157 -0
- data/lib/mudbase/models/handle_flutterwave_webhook_request_data.rb +211 -0
- data/lib/mudbase/models/handle_flutterwave_webhook_request_data_customer.rb +156 -0
- data/lib/mudbase/models/health_response.rb +218 -0
- data/lib/mudbase/models/health_response_services.rb +183 -0
- data/lib/mudbase/models/initialize_payment_for_project_request.rb +219 -0
- data/lib/mudbase/models/initialize_payment_for_project_request_customer.rb +173 -0
- data/lib/mudbase/models/initiate_o_auth200_response.rb +148 -0
- data/lib/mudbase/models/initiate_o_auth400_response.rb +147 -0
- data/lib/mudbase/models/initiate_o_auth404_response.rb +147 -0
- data/lib/mudbase/models/invite_member_request.rb +215 -0
- data/lib/mudbase/models/limits.rb +202 -0
- data/lib/mudbase/models/link_o_auth_provider200_response.rb +147 -0
- data/lib/mudbase/models/list_collections200_response.rb +158 -0
- data/lib/mudbase/models/list_non_custodial_addresses200_response.rb +167 -0
- data/lib/mudbase/models/list_o_auth_providers200_response.rb +149 -0
- data/lib/mudbase/models/list_o_auth_providers200_response_providers_inner.rb +174 -0
- data/lib/mudbase/models/list_wallet_webhooks200_response.rb +167 -0
- data/lib/mudbase/models/log_security_event200_response.rb +156 -0
- data/lib/mudbase/models/log_security_event200_response_event.rb +174 -0
- data/lib/mudbase/models/log_security_event_request.rb +225 -0
- data/lib/mudbase/models/log_security_event_request_details.rb +192 -0
- data/lib/mudbase/models/login_local_user200_response.rb +165 -0
- data/lib/mudbase/models/login_local_user200_response_user.rb +201 -0
- data/lib/mudbase/models/login_local_user403_response.rb +165 -0
- data/lib/mudbase/models/login_local_user_request.rb +199 -0
- data/lib/mudbase/models/login_request.rb +191 -0
- data/lib/mudbase/models/magic_link_request.rb +200 -0
- data/lib/mudbase/models/mark_messages_as_read200_response.rb +156 -0
- data/lib/mudbase/models/mark_messages_as_read200_response_data.rb +147 -0
- data/lib/mudbase/models/mark_messages_as_read_request.rb +166 -0
- data/lib/mudbase/models/message.rb +275 -0
- data/lib/mudbase/models/message_history_response.rb +157 -0
- data/lib/mudbase/models/message_history_response_data.rb +158 -0
- data/lib/mudbase/models/message_response.rb +148 -0
- data/lib/mudbase/models/message_sent_response.rb +157 -0
- data/lib/mudbase/models/message_sent_response_data.rb +210 -0
- data/lib/mudbase/models/message_stats_response.rb +157 -0
- data/lib/mudbase/models/message_stats_response_data.rb +183 -0
- data/lib/mudbase/models/message_stats_response_data_by_status.rb +165 -0
- data/lib/mudbase/models/message_stats_response_data_by_type.rb +165 -0
- data/lib/mudbase/models/message_stats_response_data_period.rb +156 -0
- data/lib/mudbase/models/non_custodial_address.rb +284 -0
- data/lib/mudbase/models/non_custodial_address_response.rb +166 -0
- data/lib/mudbase/models/oauth_callback200_response.rb +156 -0
- data/lib/mudbase/models/oauth_signup_with_role400_response.rb +156 -0
- data/lib/mudbase/models/organization.rb +257 -0
- data/lib/mudbase/models/organization_summary.rb +166 -0
- data/lib/mudbase/models/otp_send_request.rb +233 -0
- data/lib/mudbase/models/otp_verify_request.rb +200 -0
- data/lib/mudbase/models/pagination.rb +175 -0
- data/lib/mudbase/models/payment_intent.rb +393 -0
- data/lib/mudbase/models/payment_refund.rb +319 -0
- data/lib/mudbase/models/payment_subscription.rb +357 -0
- data/lib/mudbase/models/permission.rb +201 -0
- data/lib/mudbase/models/plan.rb +186 -0
- data/lib/mudbase/models/presigned_post_response.rb +179 -0
- data/lib/mudbase/models/project.rb +247 -0
- data/lib/mudbase/models/project_settings.rb +254 -0
- data/lib/mudbase/models/project_summary.rb +166 -0
- data/lib/mudbase/models/project_usage.rb +184 -0
- data/lib/mudbase/models/project_usage_response.rb +157 -0
- data/lib/mudbase/models/project_usage_stats_response.rb +166 -0
- data/lib/mudbase/models/project_usage_stats_response_project.rb +156 -0
- data/lib/mudbase/models/push_notification_request.rb +237 -0
- data/lib/mudbase/models/rate_limit.rb +157 -0
- data/lib/mudbase/models/record_usage_request.rb +219 -0
- data/lib/mudbase/models/register_local_user201_response.rb +196 -0
- data/lib/mudbase/models/register_local_user201_response_user.rb +192 -0
- data/lib/mudbase/models/register_local_user429_response.rb +208 -0
- data/lib/mudbase/models/register_local_user_request.rb +277 -0
- data/lib/mudbase/models/register_non_custodial_address_request.rb +246 -0
- data/lib/mudbase/models/register_request.rb +261 -0
- data/lib/mudbase/models/register_with_role_request.rb +268 -0
- data/lib/mudbase/models/remove_participant_request.rb +164 -0
- data/lib/mudbase/models/remove_reaction200_response.rb +158 -0
- data/lib/mudbase/models/remove_reaction200_response_data_inner.rb +167 -0
- data/lib/mudbase/models/request_local_password_reset_request.rb +174 -0
- data/lib/mudbase/models/request_role_elevation200_response.rb +240 -0
- data/lib/mudbase/models/request_role_elevation_request.rb +164 -0
- data/lib/mudbase/models/reset_local_password_request.rb +182 -0
- data/lib/mudbase/models/rollback_function_request.rb +165 -0
- data/lib/mudbase/models/search_response.rb +157 -0
- data/lib/mudbase/models/search_response_data.rb +176 -0
- data/lib/mudbase/models/search_result.rb +166 -0
- data/lib/mudbase/models/search_result_item.rb +156 -0
- data/lib/mudbase/models/send_message201_response.rb +156 -0
- data/lib/mudbase/models/send_message201_response_data.rb +174 -0
- data/lib/mudbase/models/send_message_request.rb +234 -0
- data/lib/mudbase/models/session_response.rb +157 -0
- data/lib/mudbase/models/signed_url_response.rb +178 -0
- data/lib/mudbase/models/simulate_function_trigger_request.rb +168 -0
- data/lib/mudbase/models/sms_request.rb +200 -0
- data/lib/mudbase/models/storage_config.rb +150 -0
- data/lib/mudbase/models/system_status_response.rb +157 -0
- data/lib/mudbase/models/system_status_response_data.rb +192 -0
- data/lib/mudbase/models/system_status_response_data_cpu.rb +156 -0
- data/lib/mudbase/models/system_status_response_data_database.rb +165 -0
- data/lib/mudbase/models/system_status_response_data_memory.rb +165 -0
- data/lib/mudbase/models/system_status_response_data_requests.rb +174 -0
- data/lib/mudbase/models/system_status_response_data_storage.rb +165 -0
- data/lib/mudbase/models/test_wallet_webhook200_response.rb +156 -0
- data/lib/mudbase/models/test_wallet_webhook_request.rb +191 -0
- data/lib/mudbase/models/toggle_role_request.rb +164 -0
- data/lib/mudbase/models/trigger_function_webhook200_response.rb +168 -0
- data/lib/mudbase/models/trigger_function_webhook400_response.rb +156 -0
- data/lib/mudbase/models/trigger_function_webhook401_response.rb +156 -0
- data/lib/mudbase/models/trigger_webhook_request.rb +254 -0
- data/lib/mudbase/models/two_fa_setup_response.rb +166 -0
- data/lib/mudbase/models/unlink_o_auth_provider200_response.rb +156 -0
- data/lib/mudbase/models/update_api_key_request.rb +205 -0
- data/lib/mudbase/models/update_bucket_request.rb +169 -0
- data/lib/mudbase/models/update_collection_permissions_request.rb +180 -0
- data/lib/mudbase/models/update_collection_request.rb +179 -0
- data/lib/mudbase/models/update_function_request.rb +221 -0
- data/lib/mudbase/models/update_function_request_limits.rb +176 -0
- data/lib/mudbase/models/update_function_request_retry_policy.rb +165 -0
- data/lib/mudbase/models/update_multi_role_settings200_response.rb +165 -0
- data/lib/mudbase/models/update_multi_role_settings_request.rb +165 -0
- data/lib/mudbase/models/update_multi_role_settings_request_settings.rb +156 -0
- data/lib/mudbase/models/update_organization_request.rb +185 -0
- data/lib/mudbase/models/update_project_request.rb +185 -0
- data/lib/mudbase/models/update_project_role_request.rb +192 -0
- data/lib/mudbase/models/update_user_profile200_response.rb +156 -0
- data/lib/mudbase/models/update_user_request.rb +166 -0
- data/lib/mudbase/models/update_wallet_webhook200_response.rb +156 -0
- data/lib/mudbase/models/update_wallet_webhook_request.rb +176 -0
- data/lib/mudbase/models/upload_files_to_bucket_metadata_request.rb +159 -0
- data/lib/mudbase/models/upload_files_to_bucket_request.rb +187 -0
- data/lib/mudbase/models/upload_verification_documents_request.rb +192 -0
- data/lib/mudbase/models/upload_verification_documents_request_documents_inner.rb +156 -0
- data/lib/mudbase/models/usage.rb +202 -0
- data/lib/mudbase/models/usage_response.rb +175 -0
- data/lib/mudbase/models/usage_stats_response.rb +184 -0
- data/lib/mudbase/models/usage_stats_response_percentages.rb +165 -0
- data/lib/mudbase/models/usage_trends_response.rb +159 -0
- data/lib/mudbase/models/usage_trends_response_trends_inner.rb +192 -0
- data/lib/mudbase/models/usage_trends_response_trends_inner_id.rb +165 -0
- data/lib/mudbase/models/user.rb +299 -0
- data/lib/mudbase/models/user_summary.rb +175 -0
- data/lib/mudbase/models/verify2_fa_request.rb +164 -0
- data/lib/mudbase/models/verify_email_request.rb +175 -0
- data/lib/mudbase/models/verify_magic_link_request.rb +164 -0
- data/lib/mudbase/models/verify_payment200_response.rb +165 -0
- data/lib/mudbase/models/verify_payment200_response_data.rb +147 -0
- data/lib/mudbase/models/verify_payment200_response_data_subscription.rb +208 -0
- data/lib/mudbase/models/wallet_balance.rb +205 -0
- data/lib/mudbase/models/wallet_transaction.rb +379 -0
- data/lib/mudbase/models/wallet_transaction_webhook_payload.rb +167 -0
- data/lib/mudbase/models/wallet_webhook.rb +235 -0
- data/lib/mudbase/models/wallet_webhook_filters.rb +182 -0
- data/lib/mudbase/models/wallet_webhook_stats.rb +175 -0
- data/lib/mudbase/models/webhook_list_response.rb +186 -0
- data/lib/mudbase/models/webhook_log.rb +290 -0
- data/lib/mudbase/models/webhook_stats_response.rb +170 -0
- data/lib/mudbase/models/webhook_stats_response_event_stats_inner.rb +165 -0
- data/lib/mudbase/models/webhook_stats_response_status_stats_inner.rb +165 -0
- data/lib/mudbase/version.rb +15 -0
- data/lib/mudbase.rb +374 -0
- data/mudbase.gemspec +39 -0
- data/spec/api/authentication_api_spec.rb +228 -0
- data/spec/api/billing_api_spec.rb +163 -0
- data/spec/api/buckets_api_spec.rb +103 -0
- data/spec/api/chat_api_spec.rb +207 -0
- data/spec/api/collections_api_spec.rb +100 -0
- data/spec/api/compliance_api_spec.rb +47 -0
- data/spec/api/data_api_spec.rb +109 -0
- data/spec/api/files_api_spec.rb +159 -0
- data/spec/api/functions_api_spec.rb +229 -0
- data/spec/api/health_api_spec.rb +57 -0
- data/spec/api/integrations_api_spec.rb +61 -0
- data/spec/api/messaging_api_spec.rb +104 -0
- data/spec/api/multi_role_feature_api_spec.rb +156 -0
- data/spec/api/real_time_analytics_api_spec.rb +98 -0
- data/spec/api/role_elevation_api_spec.rb +74 -0
- data/spec/api/search_api_spec.rb +79 -0
- data/spec/api/usage_api_spec.rb +60 -0
- data/spec/api/users_api_spec.rb +187 -0
- data/spec/api/wallet_api_spec.rb +245 -0
- data/spec/api/webhooks_api_spec.rb +48 -0
- data/spec/models/add_custom_role_request_default_permissions_inner_spec.rb +42 -0
- data/spec/models/add_custom_role_request_spec.rb +66 -0
- data/spec/models/add_participant200_response_data_participants_inner_spec.rb +48 -0
- data/spec/models/add_participant200_response_data_spec.rb +36 -0
- data/spec/models/add_participant200_response_spec.rb +42 -0
- data/spec/models/add_participant_request_spec.rb +46 -0
- data/spec/models/add_reaction200_response_data_inner_spec.rb +42 -0
- data/spec/models/add_reaction200_response_spec.rb +42 -0
- data/spec/models/add_reaction_request_spec.rb +36 -0
- data/spec/models/api_key_permission_spec.rb +50 -0
- data/spec/models/api_key_spec.rb +90 -0
- data/spec/models/api_key_usage_response_spec.rb +54 -0
- data/spec/models/api_key_usage_spec.rb +42 -0
- data/spec/models/api_key_with_secret_spec.rb +96 -0
- data/spec/models/auth_config_spec.rb +42 -0
- data/spec/models/auth_provider_spec.rb +48 -0
- data/spec/models/auth_response_spec.rb +48 -0
- data/spec/models/billing_last_payment_spec.rb +48 -0
- data/spec/models/billing_spec.rb +48 -0
- data/spec/models/broadcast_non_custodial_transaction200_response_data_spec.rb +54 -0
- data/spec/models/broadcast_non_custodial_transaction200_response_spec.rb +48 -0
- data/spec/models/broadcast_non_custodial_transaction_request_spec.rb +52 -0
- data/spec/models/bucket_list_response_spec.rb +48 -0
- data/spec/models/bucket_response_spec.rb +48 -0
- data/spec/models/bucket_spec.rb +66 -0
- data/spec/models/change_password_request_spec.rb +42 -0
- data/spec/models/check_feature_access200_response_spec.rb +42 -0
- data/spec/models/check_subscription200_response_spec.rb +42 -0
- data/spec/models/check_subscription200_response_subscription_spec.rb +42 -0
- data/spec/models/check_user_presence200_response_presence_value_spec.rb +42 -0
- data/spec/models/check_user_presence200_response_spec.rb +42 -0
- data/spec/models/check_user_presence_request_spec.rb +36 -0
- data/spec/models/collection_spec.rb +84 -0
- data/spec/models/confirm_direct_upload400_response_spec.rb +42 -0
- data/spec/models/confirm_direct_upload_request_spec.rb +72 -0
- data/spec/models/confirm_local_password_reset_with_otp_request_spec.rb +54 -0
- data/spec/models/confirm_upload_response_scan_spec.rb +54 -0
- data/spec/models/confirm_upload_response_spec.rb +52 -0
- data/spec/models/convert_anonymous_account200_response_spec.rb +48 -0
- data/spec/models/convert_anonymous_account_request_spec.rb +54 -0
- data/spec/models/create_anonymous_session200_response_spec.rb +54 -0
- data/spec/models/create_anonymous_session200_response_user_spec.rb +66 -0
- data/spec/models/create_anonymous_session_request_spec.rb +42 -0
- data/spec/models/create_api_key_request_spec.rb +60 -0
- data/spec/models/create_bucket_request_spec.rb +48 -0
- data/spec/models/create_chat201_response_data_spec.rb +60 -0
- data/spec/models/create_chat201_response_spec.rb +42 -0
- data/spec/models/create_chat_request_spec.rb +64 -0
- data/spec/models/create_checkout_session200_response_data_payment_options_inner_spec.rb +74 -0
- data/spec/models/create_checkout_session200_response_data_spec.rb +96 -0
- data/spec/models/create_checkout_session200_response_spec.rb +42 -0
- data/spec/models/create_checkout_session400_response_spec.rb +36 -0
- data/spec/models/create_checkout_session_request_customer_info_spec.rb +42 -0
- data/spec/models/create_checkout_session_request_spec.rb +64 -0
- data/spec/models/create_collection201_response_spec.rb +42 -0
- data/spec/models/create_collection_request_spec.rb +60 -0
- data/spec/models/create_function_request_spec.rb +60 -0
- data/spec/models/create_project_request_spec.rb +48 -0
- data/spec/models/create_wallet_webhook201_response_spec.rb +48 -0
- data/spec/models/create_wallet_webhook_request_filters_spec.rb +46 -0
- data/spec/models/create_wallet_webhook_request_spec.rb +64 -0
- data/spec/models/data_list_response_data_inner_spec.rb +48 -0
- data/spec/models/data_list_response_spec.rb +42 -0
- data/spec/models/data_response_spec.rb +42 -0
- data/spec/models/database_config_spec.rb +36 -0
- data/spec/models/delete_function200_response_spec.rb +42 -0
- data/spec/models/disable2_fa_request_spec.rb +42 -0
- data/spec/models/download_bucket_file403_response_spec.rb +36 -0
- data/spec/models/download_bucket_file404_response_spec.rb +36 -0
- data/spec/models/edit_message200_response_data_spec.rb +48 -0
- data/spec/models/edit_message200_response_spec.rb +42 -0
- data/spec/models/edit_message_request_spec.rb +36 -0
- data/spec/models/email_request_spec.rb +66 -0
- data/spec/models/email_request_to_spec.rb +32 -0
- data/spec/models/erase_user_data200_response_details_spec.rb +60 -0
- data/spec/models/erase_user_data200_response_spec.rb +42 -0
- data/spec/models/erase_user_data_request_spec.rb +46 -0
- data/spec/models/error_details_spec.rb +32 -0
- data/spec/models/error_spec.rb +66 -0
- data/spec/models/estimate_non_custodial_gas200_response_data_spec.rb +96 -0
- data/spec/models/estimate_non_custodial_gas200_response_spec.rb +42 -0
- data/spec/models/estimate_non_custodial_gas_request_spec.rb +46 -0
- data/spec/models/estimate_non_custodial_gas_request_transaction_spec.rb +66 -0
- data/spec/models/execute_function_request_spec.rb +36 -0
- data/spec/models/execute_integration_request_spec.rb +58 -0
- data/spec/models/export_user_data200_response_spec.rb +78 -0
- data/spec/models/field_default_spec.rb +32 -0
- data/spec/models/field_spec.rb +76 -0
- data/spec/models/file_list_response_spec.rb +42 -0
- data/spec/models/file_metadata_spec.rb +102 -0
- data/spec/models/file_response_spec.rb +42 -0
- data/spec/models/file_upload_response_spec.rb +42 -0
- data/spec/models/function_execution_response_data_spec.rb +54 -0
- data/spec/models/function_execution_response_spec.rb +42 -0
- data/spec/models/function_execution_spec.rb +100 -0
- data/spec/models/function_list_response_data_spec.rb +42 -0
- data/spec/models/function_list_response_spec.rb +42 -0
- data/spec/models/function_logs_response_data_spec.rb +42 -0
- data/spec/models/function_logs_response_spec.rb +42 -0
- data/spec/models/function_response_spec.rb +42 -0
- data/spec/models/function_spec.rb +90 -0
- data/spec/models/function_stats_spec.rb +60 -0
- data/spec/models/function_trigger_spec.rb +80 -0
- data/spec/models/generate_presigned_upload_request_spec.rb +60 -0
- data/spec/models/generate_signed_url_request_spec.rb +36 -0
- data/spec/models/get_active_users200_response_spec.rb +48 -0
- data/spec/models/get_active_users200_response_users_inner_spec.rb +48 -0
- data/spec/models/get_available_o_auth_providers200_response_providers_inner_spec.rb +66 -0
- data/spec/models/get_available_o_auth_providers200_response_spec.rb +42 -0
- data/spec/models/get_available_roles200_response_data_inner_spec.rb +72 -0
- data/spec/models/get_available_roles200_response_spec.rb +42 -0
- data/spec/models/get_cancel_params200_response_data_spec.rb +90 -0
- data/spec/models/get_cancel_params200_response_spec.rb +42 -0
- data/spec/models/get_cancel_params_request_spec.rb +52 -0
- data/spec/models/get_chat_details200_response_data_participants_inner_spec.rb +42 -0
- data/spec/models/get_chat_details200_response_data_spec.rb +48 -0
- data/spec/models/get_chat_details200_response_spec.rb +42 -0
- data/spec/models/get_chat_messages200_response_data_messages_inner_sender_spec.rb +42 -0
- data/spec/models/get_chat_messages200_response_data_messages_inner_spec.rb +54 -0
- data/spec/models/get_chat_messages200_response_data_spec.rb +42 -0
- data/spec/models/get_chat_messages200_response_spec.rb +42 -0
- data/spec/models/get_checkout_payment200_response_data_spec.rb +84 -0
- data/spec/models/get_checkout_payment200_response_spec.rb +42 -0
- data/spec/models/get_current_user200_response_spec.rb +36 -0
- data/spec/models/get_event_throughput200_response_spec.rb +60 -0
- data/spec/models/get_function_versions200_response_data_spec.rb +36 -0
- data/spec/models/get_function_versions200_response_data_versions_inner_spec.rb +66 -0
- data/spec/models/get_function_versions200_response_spec.rb +42 -0
- data/spec/models/get_historical_analytics200_response_data_inner_spec.rb +48 -0
- data/spec/models/get_historical_analytics200_response_spec.rb +54 -0
- data/spec/models/get_integrations200_response_integrations_inner_spec.rb +54 -0
- data/spec/models/get_integrations200_response_spec.rb +36 -0
- data/spec/models/get_local_session200_response_spec.rb +42 -0
- data/spec/models/get_multi_role_config200_response_data_spec.rb +54 -0
- data/spec/models/get_multi_role_config200_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_balance200_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_transaction_by_hash200_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_transaction_by_hash400_response_spec.rb +42 -0
- data/spec/models/get_non_custodial_transactions200_response_pagination_spec.rb +72 -0
- data/spec/models/get_non_custodial_transactions200_response_spec.rb +48 -0
- data/spec/models/get_project_analytics200_response_spec.rb +60 -0
- data/spec/models/get_public_plans200_response_spec.rb +36 -0
- data/spec/models/get_role_elevation_status200_response_spec.rb +36 -0
- data/spec/models/get_search_analytics200_response_spec.rb +54 -0
- data/spec/models/get_search_analytics200_response_top_queries_inner_spec.rb +42 -0
- data/spec/models/get_search_suggestions200_response_spec.rb +36 -0
- data/spec/models/get_speed_up_params200_response_data_spec.rb +90 -0
- data/spec/models/get_speed_up_params200_response_spec.rb +42 -0
- data/spec/models/get_speed_up_params_request_spec.rb +52 -0
- data/spec/models/get_user_chats200_response_data_chats_inner_last_message_spec.rb +36 -0
- data/spec/models/get_user_chats200_response_data_chats_inner_spec.rb +60 -0
- data/spec/models/get_user_chats200_response_data_spec.rb +42 -0
- data/spec/models/get_user_chats200_response_spec.rb +42 -0
- data/spec/models/get_wallet_webhook_logs200_response_spec.rb +42 -0
- data/spec/models/handle_crypto_payment_webhook200_response_spec.rb +36 -0
- data/spec/models/handle_crypto_payment_webhook_request_data_spec.rb +72 -0
- data/spec/models/handle_crypto_payment_webhook_request_spec.rb +46 -0
- data/spec/models/handle_flutterwave_webhook_request_data_customer_spec.rb +42 -0
- data/spec/models/handle_flutterwave_webhook_request_data_spec.rb +78 -0
- data/spec/models/handle_flutterwave_webhook_request_spec.rb +42 -0
- data/spec/models/health_response_services_spec.rb +60 -0
- data/spec/models/health_response_spec.rb +64 -0
- data/spec/models/initialize_payment_for_project_request_customer_spec.rb +42 -0
- data/spec/models/initialize_payment_for_project_request_spec.rb +54 -0
- data/spec/models/initiate_o_auth200_response_spec.rb +36 -0
- data/spec/models/initiate_o_auth400_response_spec.rb +36 -0
- data/spec/models/initiate_o_auth404_response_spec.rb +36 -0
- data/spec/models/invite_member_request_spec.rb +46 -0
- data/spec/models/limits_spec.rb +72 -0
- data/spec/models/link_o_auth_provider200_response_spec.rb +36 -0
- data/spec/models/list_collections200_response_spec.rb +42 -0
- data/spec/models/list_non_custodial_addresses200_response_spec.rb +48 -0
- data/spec/models/list_o_auth_providers200_response_providers_inner_spec.rb +54 -0
- data/spec/models/list_o_auth_providers200_response_spec.rb +36 -0
- data/spec/models/list_wallet_webhooks200_response_spec.rb +48 -0
- data/spec/models/log_security_event200_response_event_spec.rb +54 -0
- data/spec/models/log_security_event200_response_spec.rb +42 -0
- data/spec/models/log_security_event_request_details_spec.rb +66 -0
- data/spec/models/log_security_event_request_spec.rb +56 -0
- data/spec/models/login_local_user200_response_spec.rb +48 -0
- data/spec/models/login_local_user200_response_user_spec.rb +72 -0
- data/spec/models/login_local_user403_response_spec.rb +48 -0
- data/spec/models/login_local_user_request_spec.rb +48 -0
- data/spec/models/login_request_spec.rb +42 -0
- data/spec/models/magic_link_request_spec.rb +48 -0
- data/spec/models/mark_messages_as_read200_response_data_spec.rb +36 -0
- data/spec/models/mark_messages_as_read200_response_spec.rb +42 -0
- data/spec/models/mark_messages_as_read_request_spec.rb +36 -0
- data/spec/models/message_history_response_data_spec.rb +42 -0
- data/spec/models/message_history_response_spec.rb +42 -0
- data/spec/models/message_response_spec.rb +36 -0
- data/spec/models/message_sent_response_data_spec.rb +78 -0
- data/spec/models/message_sent_response_spec.rb +42 -0
- data/spec/models/message_spec.rb +98 -0
- data/spec/models/message_stats_response_data_by_status_spec.rb +48 -0
- data/spec/models/message_stats_response_data_by_type_spec.rb +48 -0
- data/spec/models/message_stats_response_data_period_spec.rb +42 -0
- data/spec/models/message_stats_response_data_spec.rb +60 -0
- data/spec/models/message_stats_response_spec.rb +42 -0
- data/spec/models/non_custodial_address_response_spec.rb +48 -0
- data/spec/models/non_custodial_address_spec.rb +106 -0
- data/spec/models/oauth_callback200_response_spec.rb +42 -0
- data/spec/models/oauth_signup_with_role400_response_spec.rb +42 -0
- data/spec/models/organization_spec.rb +108 -0
- data/spec/models/organization_summary_spec.rb +48 -0
- data/spec/models/otp_send_request_spec.rb +58 -0
- data/spec/models/otp_verify_request_spec.rb +48 -0
- data/spec/models/pagination_spec.rb +54 -0
- data/spec/models/payment_intent_spec.rb +158 -0
- data/spec/models/payment_refund_spec.rb +124 -0
- data/spec/models/payment_subscription_spec.rb +136 -0
- data/spec/models/permission_spec.rb +58 -0
- data/spec/models/plan_spec.rb +60 -0
- data/spec/models/presigned_post_response_spec.rb +54 -0
- data/spec/models/project_settings_spec.rb +76 -0
- data/spec/models/project_spec.rb +102 -0
- data/spec/models/project_summary_spec.rb +48 -0
- data/spec/models/project_usage_response_spec.rb +42 -0
- data/spec/models/project_usage_spec.rb +60 -0
- data/spec/models/project_usage_stats_response_project_spec.rb +42 -0
- data/spec/models/project_usage_stats_response_spec.rb +48 -0
- data/spec/models/push_notification_request_spec.rb +60 -0
- data/spec/models/rate_limit_spec.rb +42 -0
- data/spec/models/record_usage_request_spec.rb +48 -0
- data/spec/models/register_local_user201_response_spec.rb +66 -0
- data/spec/models/register_local_user201_response_user_spec.rb +66 -0
- data/spec/models/register_local_user429_response_spec.rb +72 -0
- data/spec/models/register_local_user_request_spec.rb +60 -0
- data/spec/models/register_non_custodial_address_request_spec.rb +64 -0
- data/spec/models/register_request_spec.rb +60 -0
- data/spec/models/register_with_role_request_spec.rb +60 -0
- data/spec/models/remove_participant_request_spec.rb +36 -0
- data/spec/models/remove_reaction200_response_data_inner_spec.rb +48 -0
- data/spec/models/remove_reaction200_response_spec.rb +42 -0
- data/spec/models/request_local_password_reset_request_spec.rb +42 -0
- data/spec/models/request_role_elevation200_response_spec.rb +74 -0
- data/spec/models/request_role_elevation_request_spec.rb +36 -0
- data/spec/models/reset_local_password_request_spec.rb +42 -0
- data/spec/models/rollback_function_request_spec.rb +36 -0
- data/spec/models/search_response_data_spec.rb +54 -0
- data/spec/models/search_response_spec.rb +42 -0
- data/spec/models/search_result_item_spec.rb +42 -0
- data/spec/models/search_result_spec.rb +48 -0
- data/spec/models/send_message201_response_data_spec.rb +54 -0
- data/spec/models/send_message201_response_spec.rb +42 -0
- data/spec/models/send_message_request_spec.rb +58 -0
- data/spec/models/session_response_spec.rb +42 -0
- data/spec/models/signed_url_response_spec.rb +54 -0
- data/spec/models/simulate_function_trigger_request_spec.rb +48 -0
- data/spec/models/sms_request_spec.rb +48 -0
- data/spec/models/storage_config_spec.rb +36 -0
- data/spec/models/system_status_response_data_cpu_spec.rb +42 -0
- data/spec/models/system_status_response_data_database_spec.rb +48 -0
- data/spec/models/system_status_response_data_memory_spec.rb +48 -0
- data/spec/models/system_status_response_data_requests_spec.rb +54 -0
- data/spec/models/system_status_response_data_spec.rb +66 -0
- data/spec/models/system_status_response_data_storage_spec.rb +48 -0
- data/spec/models/system_status_response_spec.rb +42 -0
- data/spec/models/test_wallet_webhook200_response_spec.rb +42 -0
- data/spec/models/test_wallet_webhook_request_spec.rb +54 -0
- data/spec/models/toggle_role_request_spec.rb +36 -0
- data/spec/models/trigger_function_webhook200_response_spec.rb +48 -0
- data/spec/models/trigger_function_webhook400_response_spec.rb +42 -0
- data/spec/models/trigger_function_webhook401_response_spec.rb +42 -0
- data/spec/models/trigger_webhook_request_spec.rb +60 -0
- data/spec/models/two_fa_setup_response_spec.rb +48 -0
- data/spec/models/unlink_o_auth_provider200_response_spec.rb +42 -0
- data/spec/models/update_api_key_request_spec.rb +54 -0
- data/spec/models/update_bucket_request_spec.rb +48 -0
- data/spec/models/update_collection_permissions_request_spec.rb +46 -0
- data/spec/models/update_collection_request_spec.rb +54 -0
- data/spec/models/update_function_request_limits_spec.rb +54 -0
- data/spec/models/update_function_request_retry_policy_spec.rb +48 -0
- data/spec/models/update_function_request_spec.rb +84 -0
- data/spec/models/update_multi_role_settings200_response_spec.rb +48 -0
- data/spec/models/update_multi_role_settings_request_settings_spec.rb +42 -0
- data/spec/models/update_multi_role_settings_request_spec.rb +48 -0
- data/spec/models/update_organization_request_spec.rb +60 -0
- data/spec/models/update_project_request_spec.rb +60 -0
- data/spec/models/update_project_role_request_spec.rb +66 -0
- data/spec/models/update_user_profile200_response_spec.rb +42 -0
- data/spec/models/update_user_request_spec.rb +48 -0
- data/spec/models/update_wallet_webhook200_response_spec.rb +42 -0
- data/spec/models/update_wallet_webhook_request_spec.rb +54 -0
- data/spec/models/upload_files_to_bucket_metadata_request_spec.rb +42 -0
- data/spec/models/upload_files_to_bucket_request_spec.rb +48 -0
- data/spec/models/upload_verification_documents_request_documents_inner_spec.rb +42 -0
- data/spec/models/upload_verification_documents_request_spec.rb +42 -0
- data/spec/models/usage_response_spec.rb +54 -0
- data/spec/models/usage_spec.rb +72 -0
- data/spec/models/usage_stats_response_percentages_spec.rb +48 -0
- data/spec/models/usage_stats_response_spec.rb +60 -0
- data/spec/models/usage_trends_response_spec.rb +42 -0
- data/spec/models/usage_trends_response_trends_inner_id_spec.rb +48 -0
- data/spec/models/usage_trends_response_trends_inner_spec.rb +66 -0
- data/spec/models/user_spec.rb +118 -0
- data/spec/models/user_summary_spec.rb +54 -0
- data/spec/models/verify2_fa_request_spec.rb +36 -0
- data/spec/models/verify_email_request_spec.rb +42 -0
- data/spec/models/verify_magic_link_request_spec.rb +36 -0
- data/spec/models/verify_payment200_response_data_spec.rb +36 -0
- data/spec/models/verify_payment200_response_data_subscription_spec.rb +58 -0
- data/spec/models/verify_payment200_response_spec.rb +48 -0
- data/spec/models/wallet_balance_spec.rb +72 -0
- data/spec/models/wallet_transaction_spec.rb +164 -0
- data/spec/models/wallet_transaction_webhook_payload_spec.rb +48 -0
- data/spec/models/wallet_webhook_filters_spec.rb +46 -0
- data/spec/models/wallet_webhook_spec.rb +82 -0
- data/spec/models/wallet_webhook_stats_spec.rb +54 -0
- data/spec/models/webhook_list_response_spec.rb +60 -0
- data/spec/models/webhook_log_spec.rb +112 -0
- data/spec/models/webhook_stats_response_event_stats_inner_spec.rb +48 -0
- data/spec/models/webhook_stats_response_spec.rb +48 -0
- data/spec/models/webhook_stats_response_status_stats_inner_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1451 -0
|
@@ -0,0 +1,1161 @@
|
|
|
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) ## Testing Configurations Below are example configurations for testing in different environments: ### Production ```json { \"scheme\": \"http\", \"base_path\": \"\", \"host\": \"cloud.mudbase.dev\", \"xApiKey\": \"xApiKey\", \"bearerToken\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY4NWFjYmUwZTEyOTkzMmZiYjdhMGZjMiIsImVtYWlsIjoibXVkaGF4a3NlcnZpY2VzQGdtYWlsLmNvbSIsImlhdCI6MTc1MDc4MDg5OCwiZXhwIjoxNzUwODY3Mjk4fQ.sfoqzEbCuz5Y8qHkLItzrZZYC823SPT4RbO7Kucqvuc\", \"userId\": \"685acbe0e129932fbb7a0fc2\", \"projectId\": \"685ad30be129932fbb7a1047\", \"collectionId\": \"685ada8fd9416ac02f171abf\", \"documentId\": \"685ae1210136e73fa1dcaf36\", \"apikeyId\": \"685ae8a785426b6a4190d5fc\", \"webhookId\": \"685af3992f9c4c96514247e9\", \"functionId\": \"685af8b85d73a104065b6a77\", \"fileId\": \"685af8b85d73a104065b6a77\" }
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.1.4
|
|
7
|
+
Contact: support@mudbase.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.20.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Mudbase
|
|
16
|
+
class WalletApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Broadcast a client-signed transaction
|
|
23
|
+
# Broadcast a transaction that has been signed client-side. The transaction must be fully signed before sending. The fromAddress must be registered and belong to your organization (POST /api/wallet/non-custodial/register-address). **Supported chains:** EVM (ethereum, polygon, arbitrum, optimism, base, bsc, binance, avalanche, celo), UTXO (bitcoin, litecoin, dogecoin), and chain-specific (tron, solana, ton, cardano). Use `binance` or `bsc` for BNB Smart Chain. **Testing with custodial:** You can create a wallet via POST /api/wallet/create, get its private key via GET /api/wallet/{walletId}/private-key, register that address with POST /api/wallet/non-custodial/register-address, then build a signed tx (using POST /api/wallet/estimate-network-fee or estimate-gas for fees) and broadcast it here to test the non-custodial flow end-to-end.
|
|
24
|
+
# @param broadcast_non_custodial_transaction_request [BroadcastNonCustodialTransactionRequest] Chain, signed transaction (hex), and fromAddress (must be registered).
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [BroadcastNonCustodialTransaction200Response]
|
|
27
|
+
def broadcast_non_custodial_transaction(broadcast_non_custodial_transaction_request, opts = {})
|
|
28
|
+
data, _status_code, _headers = broadcast_non_custodial_transaction_with_http_info(broadcast_non_custodial_transaction_request, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Broadcast a client-signed transaction
|
|
33
|
+
# Broadcast a transaction that has been signed client-side. The transaction must be fully signed before sending. The fromAddress must be registered and belong to your organization (POST /api/wallet/non-custodial/register-address). **Supported chains:** EVM (ethereum, polygon, arbitrum, optimism, base, bsc, binance, avalanche, celo), UTXO (bitcoin, litecoin, dogecoin), and chain-specific (tron, solana, ton, cardano). Use `binance` or `bsc` for BNB Smart Chain. **Testing with custodial:** You can create a wallet via POST /api/wallet/create, get its private key via GET /api/wallet/{walletId}/private-key, register that address with POST /api/wallet/non-custodial/register-address, then build a signed tx (using POST /api/wallet/estimate-network-fee or estimate-gas for fees) and broadcast it here to test the non-custodial flow end-to-end.
|
|
34
|
+
# @param broadcast_non_custodial_transaction_request [BroadcastNonCustodialTransactionRequest] Chain, signed transaction (hex), and fromAddress (must be registered).
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(BroadcastNonCustodialTransaction200Response, Integer, Hash)>] BroadcastNonCustodialTransaction200Response data, response status code and response headers
|
|
37
|
+
def broadcast_non_custodial_transaction_with_http_info(broadcast_non_custodial_transaction_request, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.broadcast_non_custodial_transaction ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'broadcast_non_custodial_transaction_request' is set
|
|
42
|
+
if @api_client.config.client_side_validation && broadcast_non_custodial_transaction_request.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'broadcast_non_custodial_transaction_request' when calling WalletApi.broadcast_non_custodial_transaction"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/api/wallet/non-custodial/broadcast'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
if !content_type.nil?
|
|
58
|
+
header_params['Content-Type'] = content_type
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# form parameters
|
|
62
|
+
form_params = opts[:form_params] || {}
|
|
63
|
+
|
|
64
|
+
# http body (model)
|
|
65
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(broadcast_non_custodial_transaction_request)
|
|
66
|
+
|
|
67
|
+
# return_type
|
|
68
|
+
return_type = opts[:debug_return_type] || 'BroadcastNonCustodialTransaction200Response'
|
|
69
|
+
|
|
70
|
+
# auth_names
|
|
71
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
72
|
+
|
|
73
|
+
new_options = opts.merge(
|
|
74
|
+
:operation => :"WalletApi.broadcast_non_custodial_transaction",
|
|
75
|
+
:header_params => header_params,
|
|
76
|
+
:query_params => query_params,
|
|
77
|
+
:form_params => form_params,
|
|
78
|
+
:body => post_body,
|
|
79
|
+
:auth_names => auth_names,
|
|
80
|
+
:return_type => return_type
|
|
81
|
+
)
|
|
82
|
+
|
|
83
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
84
|
+
if @api_client.config.debugging
|
|
85
|
+
@api_client.config.logger.debug "API called: WalletApi#broadcast_non_custodial_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
86
|
+
end
|
|
87
|
+
return data, status_code, headers
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Create a wallet webhook
|
|
91
|
+
# Register a webhook URL to receive wallet events (balance updates, transaction confirmed/failed/detected/broadcast, token balance, address created/deactivated). Optional filters by addresses and chains.
|
|
92
|
+
# @param create_wallet_webhook_request [CreateWalletWebhookRequest] Webhook URL, events array, optional secret and filters (addresses, chains, projectId).
|
|
93
|
+
# @param [Hash] opts the optional parameters
|
|
94
|
+
# @return [CreateWalletWebhook201Response]
|
|
95
|
+
def create_wallet_webhook(create_wallet_webhook_request, opts = {})
|
|
96
|
+
data, _status_code, _headers = create_wallet_webhook_with_http_info(create_wallet_webhook_request, opts)
|
|
97
|
+
data
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Create a wallet webhook
|
|
101
|
+
# Register a webhook URL to receive wallet events (balance updates, transaction confirmed/failed/detected/broadcast, token balance, address created/deactivated). Optional filters by addresses and chains.
|
|
102
|
+
# @param create_wallet_webhook_request [CreateWalletWebhookRequest] Webhook URL, events array, optional secret and filters (addresses, chains, projectId).
|
|
103
|
+
# @param [Hash] opts the optional parameters
|
|
104
|
+
# @return [Array<(CreateWalletWebhook201Response, Integer, Hash)>] CreateWalletWebhook201Response data, response status code and response headers
|
|
105
|
+
def create_wallet_webhook_with_http_info(create_wallet_webhook_request, opts = {})
|
|
106
|
+
if @api_client.config.debugging
|
|
107
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.create_wallet_webhook ...'
|
|
108
|
+
end
|
|
109
|
+
# verify the required parameter 'create_wallet_webhook_request' is set
|
|
110
|
+
if @api_client.config.client_side_validation && create_wallet_webhook_request.nil?
|
|
111
|
+
fail ArgumentError, "Missing the required parameter 'create_wallet_webhook_request' when calling WalletApi.create_wallet_webhook"
|
|
112
|
+
end
|
|
113
|
+
# resource path
|
|
114
|
+
local_var_path = '/api/wallet/non-custodial/webhooks'
|
|
115
|
+
|
|
116
|
+
# query parameters
|
|
117
|
+
query_params = opts[:query_params] || {}
|
|
118
|
+
|
|
119
|
+
# header parameters
|
|
120
|
+
header_params = opts[:header_params] || {}
|
|
121
|
+
# HTTP header 'Accept' (if needed)
|
|
122
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
123
|
+
# HTTP header 'Content-Type'
|
|
124
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
125
|
+
if !content_type.nil?
|
|
126
|
+
header_params['Content-Type'] = content_type
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# form parameters
|
|
130
|
+
form_params = opts[:form_params] || {}
|
|
131
|
+
|
|
132
|
+
# http body (model)
|
|
133
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_wallet_webhook_request)
|
|
134
|
+
|
|
135
|
+
# return_type
|
|
136
|
+
return_type = opts[:debug_return_type] || 'CreateWalletWebhook201Response'
|
|
137
|
+
|
|
138
|
+
# auth_names
|
|
139
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
140
|
+
|
|
141
|
+
new_options = opts.merge(
|
|
142
|
+
:operation => :"WalletApi.create_wallet_webhook",
|
|
143
|
+
:header_params => header_params,
|
|
144
|
+
:query_params => query_params,
|
|
145
|
+
:form_params => form_params,
|
|
146
|
+
:body => post_body,
|
|
147
|
+
:auth_names => auth_names,
|
|
148
|
+
:return_type => return_type
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
152
|
+
if @api_client.config.debugging
|
|
153
|
+
@api_client.config.logger.debug "API called: WalletApi#create_wallet_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
154
|
+
end
|
|
155
|
+
return data, status_code, headers
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Delete (soft-delete) a non-custodial address
|
|
159
|
+
# Soft-deletes a registered non-custodial address. The address is marked inactive and no longer used for broadcasts or balance/transaction queries.
|
|
160
|
+
# @param address_id [String] Registered address ID to delete.
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [DeleteFunction200Response]
|
|
163
|
+
def delete_non_custodial_address(address_id, opts = {})
|
|
164
|
+
data, _status_code, _headers = delete_non_custodial_address_with_http_info(address_id, opts)
|
|
165
|
+
data
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Delete (soft-delete) a non-custodial address
|
|
169
|
+
# Soft-deletes a registered non-custodial address. The address is marked inactive and no longer used for broadcasts or balance/transaction queries.
|
|
170
|
+
# @param address_id [String] Registered address ID to delete.
|
|
171
|
+
# @param [Hash] opts the optional parameters
|
|
172
|
+
# @return [Array<(DeleteFunction200Response, Integer, Hash)>] DeleteFunction200Response data, response status code and response headers
|
|
173
|
+
def delete_non_custodial_address_with_http_info(address_id, opts = {})
|
|
174
|
+
if @api_client.config.debugging
|
|
175
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.delete_non_custodial_address ...'
|
|
176
|
+
end
|
|
177
|
+
# verify the required parameter 'address_id' is set
|
|
178
|
+
if @api_client.config.client_side_validation && address_id.nil?
|
|
179
|
+
fail ArgumentError, "Missing the required parameter 'address_id' when calling WalletApi.delete_non_custodial_address"
|
|
180
|
+
end
|
|
181
|
+
# resource path
|
|
182
|
+
local_var_path = '/api/wallet/non-custodial/addresses/{addressId}'.sub('{' + 'addressId' + '}', CGI.escape(address_id.to_s))
|
|
183
|
+
|
|
184
|
+
# query parameters
|
|
185
|
+
query_params = opts[:query_params] || {}
|
|
186
|
+
|
|
187
|
+
# header parameters
|
|
188
|
+
header_params = opts[:header_params] || {}
|
|
189
|
+
# HTTP header 'Accept' (if needed)
|
|
190
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
191
|
+
|
|
192
|
+
# form parameters
|
|
193
|
+
form_params = opts[:form_params] || {}
|
|
194
|
+
|
|
195
|
+
# http body (model)
|
|
196
|
+
post_body = opts[:debug_body]
|
|
197
|
+
|
|
198
|
+
# return_type
|
|
199
|
+
return_type = opts[:debug_return_type] || 'DeleteFunction200Response'
|
|
200
|
+
|
|
201
|
+
# auth_names
|
|
202
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
203
|
+
|
|
204
|
+
new_options = opts.merge(
|
|
205
|
+
:operation => :"WalletApi.delete_non_custodial_address",
|
|
206
|
+
:header_params => header_params,
|
|
207
|
+
:query_params => query_params,
|
|
208
|
+
:form_params => form_params,
|
|
209
|
+
:body => post_body,
|
|
210
|
+
:auth_names => auth_names,
|
|
211
|
+
:return_type => return_type
|
|
212
|
+
)
|
|
213
|
+
|
|
214
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
@api_client.config.logger.debug "API called: WalletApi#delete_non_custodial_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
217
|
+
end
|
|
218
|
+
return data, status_code, headers
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
# Delete a wallet webhook
|
|
222
|
+
# Permanently delete a wallet webhook. Delivery will stop immediately.
|
|
223
|
+
# @param webhook_id [String] Webhook ID (MongoDB ObjectId) to delete.
|
|
224
|
+
# @param [Hash] opts the optional parameters
|
|
225
|
+
# @return [DeleteFunction200Response]
|
|
226
|
+
def delete_wallet_webhook(webhook_id, opts = {})
|
|
227
|
+
data, _status_code, _headers = delete_wallet_webhook_with_http_info(webhook_id, opts)
|
|
228
|
+
data
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
# Delete a wallet webhook
|
|
232
|
+
# Permanently delete a wallet webhook. Delivery will stop immediately.
|
|
233
|
+
# @param webhook_id [String] Webhook ID (MongoDB ObjectId) to delete.
|
|
234
|
+
# @param [Hash] opts the optional parameters
|
|
235
|
+
# @return [Array<(DeleteFunction200Response, Integer, Hash)>] DeleteFunction200Response data, response status code and response headers
|
|
236
|
+
def delete_wallet_webhook_with_http_info(webhook_id, opts = {})
|
|
237
|
+
if @api_client.config.debugging
|
|
238
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.delete_wallet_webhook ...'
|
|
239
|
+
end
|
|
240
|
+
# verify the required parameter 'webhook_id' is set
|
|
241
|
+
if @api_client.config.client_side_validation && webhook_id.nil?
|
|
242
|
+
fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WalletApi.delete_wallet_webhook"
|
|
243
|
+
end
|
|
244
|
+
# resource path
|
|
245
|
+
local_var_path = '/api/wallet/non-custodial/webhooks/{webhookId}'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
|
|
246
|
+
|
|
247
|
+
# query parameters
|
|
248
|
+
query_params = opts[:query_params] || {}
|
|
249
|
+
|
|
250
|
+
# header parameters
|
|
251
|
+
header_params = opts[:header_params] || {}
|
|
252
|
+
# HTTP header 'Accept' (if needed)
|
|
253
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
254
|
+
|
|
255
|
+
# form parameters
|
|
256
|
+
form_params = opts[:form_params] || {}
|
|
257
|
+
|
|
258
|
+
# http body (model)
|
|
259
|
+
post_body = opts[:debug_body]
|
|
260
|
+
|
|
261
|
+
# return_type
|
|
262
|
+
return_type = opts[:debug_return_type] || 'DeleteFunction200Response'
|
|
263
|
+
|
|
264
|
+
# auth_names
|
|
265
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
266
|
+
|
|
267
|
+
new_options = opts.merge(
|
|
268
|
+
:operation => :"WalletApi.delete_wallet_webhook",
|
|
269
|
+
:header_params => header_params,
|
|
270
|
+
:query_params => query_params,
|
|
271
|
+
:form_params => form_params,
|
|
272
|
+
:body => post_body,
|
|
273
|
+
:auth_names => auth_names,
|
|
274
|
+
:return_type => return_type
|
|
275
|
+
)
|
|
276
|
+
|
|
277
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
278
|
+
if @api_client.config.debugging
|
|
279
|
+
@api_client.config.logger.debug "API called: WalletApi#delete_wallet_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
280
|
+
end
|
|
281
|
+
return data, status_code, headers
|
|
282
|
+
end
|
|
283
|
+
|
|
284
|
+
# Estimate network fee from blockchain (all supported chains; not controlled by Mudbase)
|
|
285
|
+
# **Network fee (from blockchain only).** Returns network fee **estimated directly from the blockchain** via RPC or fee APIs. **Not controlled by Mudbase.** Both POST /api/wallet/estimate-network-fee (or calculate-fee) and this endpoint return network fee only; use either for gas/fee display. This endpoint is chain-oriented and supports full transaction shape for EVM. **EVM chains:** ethereum, polygon, arbitrum, optimism, base, bsc, binance, avalanche, celo — require `transaction` (from, and to/value or tokenAddress/amount). Response includes gasLimit, gasPrice, networkFee, estimatedTime, currency. **Non-EVM chains:** bitcoin, litecoin, dogecoin, solana, tron, ton, cardano — only `chain` is required; `transaction` is optional/ignored. Returns networkFee, estimatedTime, currency (and e.g. satPerVb for UTXO). See docs/FEE_ARCHITECTURE.md. Results cached 15s.
|
|
286
|
+
# @param estimate_non_custodial_gas_request [EstimateNonCustodialGasRequest] Chain and optional transaction shape (required for EVM). Returns network fee from blockchain.
|
|
287
|
+
# @param [Hash] opts the optional parameters
|
|
288
|
+
# @return [EstimateNonCustodialGas200Response]
|
|
289
|
+
def estimate_non_custodial_gas(estimate_non_custodial_gas_request, opts = {})
|
|
290
|
+
data, _status_code, _headers = estimate_non_custodial_gas_with_http_info(estimate_non_custodial_gas_request, opts)
|
|
291
|
+
data
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
# Estimate network fee from blockchain (all supported chains; not controlled by Mudbase)
|
|
295
|
+
# **Network fee (from blockchain only).** Returns network fee **estimated directly from the blockchain** via RPC or fee APIs. **Not controlled by Mudbase.** Both POST /api/wallet/estimate-network-fee (or calculate-fee) and this endpoint return network fee only; use either for gas/fee display. This endpoint is chain-oriented and supports full transaction shape for EVM. **EVM chains:** ethereum, polygon, arbitrum, optimism, base, bsc, binance, avalanche, celo — require `transaction` (from, and to/value or tokenAddress/amount). Response includes gasLimit, gasPrice, networkFee, estimatedTime, currency. **Non-EVM chains:** bitcoin, litecoin, dogecoin, solana, tron, ton, cardano — only `chain` is required; `transaction` is optional/ignored. Returns networkFee, estimatedTime, currency (and e.g. satPerVb for UTXO). See docs/FEE_ARCHITECTURE.md. Results cached 15s.
|
|
296
|
+
# @param estimate_non_custodial_gas_request [EstimateNonCustodialGasRequest] Chain and optional transaction shape (required for EVM). Returns network fee from blockchain.
|
|
297
|
+
# @param [Hash] opts the optional parameters
|
|
298
|
+
# @return [Array<(EstimateNonCustodialGas200Response, Integer, Hash)>] EstimateNonCustodialGas200Response data, response status code and response headers
|
|
299
|
+
def estimate_non_custodial_gas_with_http_info(estimate_non_custodial_gas_request, opts = {})
|
|
300
|
+
if @api_client.config.debugging
|
|
301
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.estimate_non_custodial_gas ...'
|
|
302
|
+
end
|
|
303
|
+
# verify the required parameter 'estimate_non_custodial_gas_request' is set
|
|
304
|
+
if @api_client.config.client_side_validation && estimate_non_custodial_gas_request.nil?
|
|
305
|
+
fail ArgumentError, "Missing the required parameter 'estimate_non_custodial_gas_request' when calling WalletApi.estimate_non_custodial_gas"
|
|
306
|
+
end
|
|
307
|
+
# resource path
|
|
308
|
+
local_var_path = '/api/wallet/non-custodial/estimate-gas'
|
|
309
|
+
|
|
310
|
+
# query parameters
|
|
311
|
+
query_params = opts[:query_params] || {}
|
|
312
|
+
|
|
313
|
+
# header parameters
|
|
314
|
+
header_params = opts[:header_params] || {}
|
|
315
|
+
# HTTP header 'Accept' (if needed)
|
|
316
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
317
|
+
# HTTP header 'Content-Type'
|
|
318
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
319
|
+
if !content_type.nil?
|
|
320
|
+
header_params['Content-Type'] = content_type
|
|
321
|
+
end
|
|
322
|
+
|
|
323
|
+
# form parameters
|
|
324
|
+
form_params = opts[:form_params] || {}
|
|
325
|
+
|
|
326
|
+
# http body (model)
|
|
327
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(estimate_non_custodial_gas_request)
|
|
328
|
+
|
|
329
|
+
# return_type
|
|
330
|
+
return_type = opts[:debug_return_type] || 'EstimateNonCustodialGas200Response'
|
|
331
|
+
|
|
332
|
+
# auth_names
|
|
333
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
334
|
+
|
|
335
|
+
new_options = opts.merge(
|
|
336
|
+
:operation => :"WalletApi.estimate_non_custodial_gas",
|
|
337
|
+
:header_params => header_params,
|
|
338
|
+
:query_params => query_params,
|
|
339
|
+
:form_params => form_params,
|
|
340
|
+
:body => post_body,
|
|
341
|
+
:auth_names => auth_names,
|
|
342
|
+
:return_type => return_type
|
|
343
|
+
)
|
|
344
|
+
|
|
345
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
346
|
+
if @api_client.config.debugging
|
|
347
|
+
@api_client.config.logger.debug "API called: WalletApi#estimate_non_custodial_gas\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
348
|
+
end
|
|
349
|
+
return data, status_code, headers
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
# Get replacement tx params for cancel (stuck EVM tx)
|
|
353
|
+
# Returns **replacement transaction params** to cancel a stuck EVM transaction (same nonce, to=self, value=0, data=0x, higher gas). Client signs and broadcasts via POST /api/wallet/non-custodial/broadcast. Address must be registered for your organization. EVM chains only.
|
|
354
|
+
# @param get_cancel_params_request [GetCancelParamsRequest] Stuck transaction identifier (txId or txHash) and EVM chain for cancel.
|
|
355
|
+
# @param [Hash] opts the optional parameters
|
|
356
|
+
# @return [GetCancelParams200Response]
|
|
357
|
+
def get_cancel_params(get_cancel_params_request, opts = {})
|
|
358
|
+
data, _status_code, _headers = get_cancel_params_with_http_info(get_cancel_params_request, opts)
|
|
359
|
+
data
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Get replacement tx params for cancel (stuck EVM tx)
|
|
363
|
+
# Returns **replacement transaction params** to cancel a stuck EVM transaction (same nonce, to=self, value=0, data=0x, higher gas). Client signs and broadcasts via POST /api/wallet/non-custodial/broadcast. Address must be registered for your organization. EVM chains only.
|
|
364
|
+
# @param get_cancel_params_request [GetCancelParamsRequest] Stuck transaction identifier (txId or txHash) and EVM chain for cancel.
|
|
365
|
+
# @param [Hash] opts the optional parameters
|
|
366
|
+
# @return [Array<(GetCancelParams200Response, Integer, Hash)>] GetCancelParams200Response data, response status code and response headers
|
|
367
|
+
def get_cancel_params_with_http_info(get_cancel_params_request, opts = {})
|
|
368
|
+
if @api_client.config.debugging
|
|
369
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_cancel_params ...'
|
|
370
|
+
end
|
|
371
|
+
# verify the required parameter 'get_cancel_params_request' is set
|
|
372
|
+
if @api_client.config.client_side_validation && get_cancel_params_request.nil?
|
|
373
|
+
fail ArgumentError, "Missing the required parameter 'get_cancel_params_request' when calling WalletApi.get_cancel_params"
|
|
374
|
+
end
|
|
375
|
+
# resource path
|
|
376
|
+
local_var_path = '/api/wallet/non-custodial/cancel'
|
|
377
|
+
|
|
378
|
+
# query parameters
|
|
379
|
+
query_params = opts[:query_params] || {}
|
|
380
|
+
|
|
381
|
+
# header parameters
|
|
382
|
+
header_params = opts[:header_params] || {}
|
|
383
|
+
# HTTP header 'Accept' (if needed)
|
|
384
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
385
|
+
# HTTP header 'Content-Type'
|
|
386
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
387
|
+
if !content_type.nil?
|
|
388
|
+
header_params['Content-Type'] = content_type
|
|
389
|
+
end
|
|
390
|
+
|
|
391
|
+
# form parameters
|
|
392
|
+
form_params = opts[:form_params] || {}
|
|
393
|
+
|
|
394
|
+
# http body (model)
|
|
395
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_cancel_params_request)
|
|
396
|
+
|
|
397
|
+
# return_type
|
|
398
|
+
return_type = opts[:debug_return_type] || 'GetCancelParams200Response'
|
|
399
|
+
|
|
400
|
+
# auth_names
|
|
401
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
402
|
+
|
|
403
|
+
new_options = opts.merge(
|
|
404
|
+
:operation => :"WalletApi.get_cancel_params",
|
|
405
|
+
:header_params => header_params,
|
|
406
|
+
:query_params => query_params,
|
|
407
|
+
:form_params => form_params,
|
|
408
|
+
:body => post_body,
|
|
409
|
+
:auth_names => auth_names,
|
|
410
|
+
:return_type => return_type
|
|
411
|
+
)
|
|
412
|
+
|
|
413
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
414
|
+
if @api_client.config.debugging
|
|
415
|
+
@api_client.config.logger.debug "API called: WalletApi#get_cancel_params\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
416
|
+
end
|
|
417
|
+
return data, status_code, headers
|
|
418
|
+
end
|
|
419
|
+
|
|
420
|
+
# Get non-custodial address by ID
|
|
421
|
+
# Returns metadata and status for a single registered non-custodial address (ID, address, chain, label, org, project, derivationPath, isActive, timestamps).
|
|
422
|
+
# @param address_id [String] Registered address ID (MongoDB ObjectId).
|
|
423
|
+
# @param [Hash] opts the optional parameters
|
|
424
|
+
# @return [NonCustodialAddressResponse]
|
|
425
|
+
def get_non_custodial_address(address_id, opts = {})
|
|
426
|
+
data, _status_code, _headers = get_non_custodial_address_with_http_info(address_id, opts)
|
|
427
|
+
data
|
|
428
|
+
end
|
|
429
|
+
|
|
430
|
+
# Get non-custodial address by ID
|
|
431
|
+
# Returns metadata and status for a single registered non-custodial address (ID, address, chain, label, org, project, derivationPath, isActive, timestamps).
|
|
432
|
+
# @param address_id [String] Registered address ID (MongoDB ObjectId).
|
|
433
|
+
# @param [Hash] opts the optional parameters
|
|
434
|
+
# @return [Array<(NonCustodialAddressResponse, Integer, Hash)>] NonCustodialAddressResponse data, response status code and response headers
|
|
435
|
+
def get_non_custodial_address_with_http_info(address_id, opts = {})
|
|
436
|
+
if @api_client.config.debugging
|
|
437
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_non_custodial_address ...'
|
|
438
|
+
end
|
|
439
|
+
# verify the required parameter 'address_id' is set
|
|
440
|
+
if @api_client.config.client_side_validation && address_id.nil?
|
|
441
|
+
fail ArgumentError, "Missing the required parameter 'address_id' when calling WalletApi.get_non_custodial_address"
|
|
442
|
+
end
|
|
443
|
+
# resource path
|
|
444
|
+
local_var_path = '/api/wallet/non-custodial/addresses/{addressId}'.sub('{' + 'addressId' + '}', CGI.escape(address_id.to_s))
|
|
445
|
+
|
|
446
|
+
# query parameters
|
|
447
|
+
query_params = opts[:query_params] || {}
|
|
448
|
+
|
|
449
|
+
# header parameters
|
|
450
|
+
header_params = opts[:header_params] || {}
|
|
451
|
+
# HTTP header 'Accept' (if needed)
|
|
452
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
453
|
+
|
|
454
|
+
# form parameters
|
|
455
|
+
form_params = opts[:form_params] || {}
|
|
456
|
+
|
|
457
|
+
# http body (model)
|
|
458
|
+
post_body = opts[:debug_body]
|
|
459
|
+
|
|
460
|
+
# return_type
|
|
461
|
+
return_type = opts[:debug_return_type] || 'NonCustodialAddressResponse'
|
|
462
|
+
|
|
463
|
+
# auth_names
|
|
464
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
465
|
+
|
|
466
|
+
new_options = opts.merge(
|
|
467
|
+
:operation => :"WalletApi.get_non_custodial_address",
|
|
468
|
+
:header_params => header_params,
|
|
469
|
+
:query_params => query_params,
|
|
470
|
+
:form_params => form_params,
|
|
471
|
+
:body => post_body,
|
|
472
|
+
:auth_names => auth_names,
|
|
473
|
+
:return_type => return_type
|
|
474
|
+
)
|
|
475
|
+
|
|
476
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
477
|
+
if @api_client.config.debugging
|
|
478
|
+
@api_client.config.logger.debug "API called: WalletApi#get_non_custodial_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
479
|
+
end
|
|
480
|
+
return data, status_code, headers
|
|
481
|
+
end
|
|
482
|
+
|
|
483
|
+
# Get balance for a non-custodial address
|
|
484
|
+
# Returns native token balance (confirmed, unconfirmed, total, currency) for a registered non-custodial address. Updated periodically from the chain.
|
|
485
|
+
# @param address_id [String] Registered address ID.
|
|
486
|
+
# @param [Hash] opts the optional parameters
|
|
487
|
+
# @return [GetNonCustodialBalance200Response]
|
|
488
|
+
def get_non_custodial_balance(address_id, opts = {})
|
|
489
|
+
data, _status_code, _headers = get_non_custodial_balance_with_http_info(address_id, opts)
|
|
490
|
+
data
|
|
491
|
+
end
|
|
492
|
+
|
|
493
|
+
# Get balance for a non-custodial address
|
|
494
|
+
# Returns native token balance (confirmed, unconfirmed, total, currency) for a registered non-custodial address. Updated periodically from the chain.
|
|
495
|
+
# @param address_id [String] Registered address ID.
|
|
496
|
+
# @param [Hash] opts the optional parameters
|
|
497
|
+
# @return [Array<(GetNonCustodialBalance200Response, Integer, Hash)>] GetNonCustodialBalance200Response data, response status code and response headers
|
|
498
|
+
def get_non_custodial_balance_with_http_info(address_id, opts = {})
|
|
499
|
+
if @api_client.config.debugging
|
|
500
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_non_custodial_balance ...'
|
|
501
|
+
end
|
|
502
|
+
# verify the required parameter 'address_id' is set
|
|
503
|
+
if @api_client.config.client_side_validation && address_id.nil?
|
|
504
|
+
fail ArgumentError, "Missing the required parameter 'address_id' when calling WalletApi.get_non_custodial_balance"
|
|
505
|
+
end
|
|
506
|
+
# resource path
|
|
507
|
+
local_var_path = '/api/wallet/non-custodial/addresses/{addressId}/balance'.sub('{' + 'addressId' + '}', CGI.escape(address_id.to_s))
|
|
508
|
+
|
|
509
|
+
# query parameters
|
|
510
|
+
query_params = opts[:query_params] || {}
|
|
511
|
+
|
|
512
|
+
# header parameters
|
|
513
|
+
header_params = opts[:header_params] || {}
|
|
514
|
+
# HTTP header 'Accept' (if needed)
|
|
515
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
516
|
+
|
|
517
|
+
# form parameters
|
|
518
|
+
form_params = opts[:form_params] || {}
|
|
519
|
+
|
|
520
|
+
# http body (model)
|
|
521
|
+
post_body = opts[:debug_body]
|
|
522
|
+
|
|
523
|
+
# return_type
|
|
524
|
+
return_type = opts[:debug_return_type] || 'GetNonCustodialBalance200Response'
|
|
525
|
+
|
|
526
|
+
# auth_names
|
|
527
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
528
|
+
|
|
529
|
+
new_options = opts.merge(
|
|
530
|
+
:operation => :"WalletApi.get_non_custodial_balance",
|
|
531
|
+
:header_params => header_params,
|
|
532
|
+
:query_params => query_params,
|
|
533
|
+
:form_params => form_params,
|
|
534
|
+
:body => post_body,
|
|
535
|
+
:auth_names => auth_names,
|
|
536
|
+
:return_type => return_type
|
|
537
|
+
)
|
|
538
|
+
|
|
539
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
540
|
+
if @api_client.config.debugging
|
|
541
|
+
@api_client.config.logger.debug "API called: WalletApi#get_non_custodial_balance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
542
|
+
end
|
|
543
|
+
return data, status_code, headers
|
|
544
|
+
end
|
|
545
|
+
|
|
546
|
+
# Get transaction by hash
|
|
547
|
+
# Returns a transaction by its hash. The **chain** query parameter is required because the same hash format can exist on different chains (e.g. 0x-style on EVM chains).
|
|
548
|
+
# @param tx_hash [String] Transaction hash (e.g. 0x... for EVM, or block explorer format for UTXO)
|
|
549
|
+
# @param chain [String] Chain the transaction belongs to (required for lookup)
|
|
550
|
+
# @param [Hash] opts the optional parameters
|
|
551
|
+
# @return [GetNonCustodialTransactionByHash200Response]
|
|
552
|
+
def get_non_custodial_transaction_by_hash(tx_hash, chain, opts = {})
|
|
553
|
+
data, _status_code, _headers = get_non_custodial_transaction_by_hash_with_http_info(tx_hash, chain, opts)
|
|
554
|
+
data
|
|
555
|
+
end
|
|
556
|
+
|
|
557
|
+
# Get transaction by hash
|
|
558
|
+
# Returns a transaction by its hash. The **chain** query parameter is required because the same hash format can exist on different chains (e.g. 0x-style on EVM chains).
|
|
559
|
+
# @param tx_hash [String] Transaction hash (e.g. 0x... for EVM, or block explorer format for UTXO)
|
|
560
|
+
# @param chain [String] Chain the transaction belongs to (required for lookup)
|
|
561
|
+
# @param [Hash] opts the optional parameters
|
|
562
|
+
# @return [Array<(GetNonCustodialTransactionByHash200Response, Integer, Hash)>] GetNonCustodialTransactionByHash200Response data, response status code and response headers
|
|
563
|
+
def get_non_custodial_transaction_by_hash_with_http_info(tx_hash, chain, opts = {})
|
|
564
|
+
if @api_client.config.debugging
|
|
565
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_non_custodial_transaction_by_hash ...'
|
|
566
|
+
end
|
|
567
|
+
# verify the required parameter 'tx_hash' is set
|
|
568
|
+
if @api_client.config.client_side_validation && tx_hash.nil?
|
|
569
|
+
fail ArgumentError, "Missing the required parameter 'tx_hash' when calling WalletApi.get_non_custodial_transaction_by_hash"
|
|
570
|
+
end
|
|
571
|
+
# verify the required parameter 'chain' is set
|
|
572
|
+
if @api_client.config.client_side_validation && chain.nil?
|
|
573
|
+
fail ArgumentError, "Missing the required parameter 'chain' when calling WalletApi.get_non_custodial_transaction_by_hash"
|
|
574
|
+
end
|
|
575
|
+
# verify enum value
|
|
576
|
+
allowable_values = ["ethereum", "binance", "polygon", "celo", "bitcoin", "litecoin", "solana", "tron", "ripple", "cardano", "dogecoin", "ton"]
|
|
577
|
+
if @api_client.config.client_side_validation && !allowable_values.include?(chain)
|
|
578
|
+
fail ArgumentError, "invalid value for \"chain\", must be one of #{allowable_values}"
|
|
579
|
+
end
|
|
580
|
+
# resource path
|
|
581
|
+
local_var_path = '/api/wallet/non-custodial/transactions/{txHash}'.sub('{' + 'txHash' + '}', CGI.escape(tx_hash.to_s))
|
|
582
|
+
|
|
583
|
+
# query parameters
|
|
584
|
+
query_params = opts[:query_params] || {}
|
|
585
|
+
query_params[:'chain'] = chain
|
|
586
|
+
|
|
587
|
+
# header parameters
|
|
588
|
+
header_params = opts[:header_params] || {}
|
|
589
|
+
# HTTP header 'Accept' (if needed)
|
|
590
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
591
|
+
|
|
592
|
+
# form parameters
|
|
593
|
+
form_params = opts[:form_params] || {}
|
|
594
|
+
|
|
595
|
+
# http body (model)
|
|
596
|
+
post_body = opts[:debug_body]
|
|
597
|
+
|
|
598
|
+
# return_type
|
|
599
|
+
return_type = opts[:debug_return_type] || 'GetNonCustodialTransactionByHash200Response'
|
|
600
|
+
|
|
601
|
+
# auth_names
|
|
602
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
603
|
+
|
|
604
|
+
new_options = opts.merge(
|
|
605
|
+
:operation => :"WalletApi.get_non_custodial_transaction_by_hash",
|
|
606
|
+
:header_params => header_params,
|
|
607
|
+
:query_params => query_params,
|
|
608
|
+
:form_params => form_params,
|
|
609
|
+
:body => post_body,
|
|
610
|
+
:auth_names => auth_names,
|
|
611
|
+
:return_type => return_type
|
|
612
|
+
)
|
|
613
|
+
|
|
614
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
615
|
+
if @api_client.config.debugging
|
|
616
|
+
@api_client.config.logger.debug "API called: WalletApi#get_non_custodial_transaction_by_hash\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
617
|
+
end
|
|
618
|
+
return data, status_code, headers
|
|
619
|
+
end
|
|
620
|
+
|
|
621
|
+
# Get transaction history for a non-custodial address
|
|
622
|
+
# Returns paginated transaction history for a registered non-custodial address (incoming/outgoing, status, confirmations, amounts).
|
|
623
|
+
# @param address_id [String] Registered address ID.
|
|
624
|
+
# @param [Hash] opts the optional parameters
|
|
625
|
+
# @option opts [Integer] :limit Number of transactions per page. (default to 50)
|
|
626
|
+
# @option opts [Integer] :page Page number (1-based). (default to 1)
|
|
627
|
+
# @return [GetNonCustodialTransactions200Response]
|
|
628
|
+
def get_non_custodial_transactions(address_id, opts = {})
|
|
629
|
+
data, _status_code, _headers = get_non_custodial_transactions_with_http_info(address_id, opts)
|
|
630
|
+
data
|
|
631
|
+
end
|
|
632
|
+
|
|
633
|
+
# Get transaction history for a non-custodial address
|
|
634
|
+
# Returns paginated transaction history for a registered non-custodial address (incoming/outgoing, status, confirmations, amounts).
|
|
635
|
+
# @param address_id [String] Registered address ID.
|
|
636
|
+
# @param [Hash] opts the optional parameters
|
|
637
|
+
# @option opts [Integer] :limit Number of transactions per page. (default to 50)
|
|
638
|
+
# @option opts [Integer] :page Page number (1-based). (default to 1)
|
|
639
|
+
# @return [Array<(GetNonCustodialTransactions200Response, Integer, Hash)>] GetNonCustodialTransactions200Response data, response status code and response headers
|
|
640
|
+
def get_non_custodial_transactions_with_http_info(address_id, opts = {})
|
|
641
|
+
if @api_client.config.debugging
|
|
642
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_non_custodial_transactions ...'
|
|
643
|
+
end
|
|
644
|
+
# verify the required parameter 'address_id' is set
|
|
645
|
+
if @api_client.config.client_side_validation && address_id.nil?
|
|
646
|
+
fail ArgumentError, "Missing the required parameter 'address_id' when calling WalletApi.get_non_custodial_transactions"
|
|
647
|
+
end
|
|
648
|
+
# resource path
|
|
649
|
+
local_var_path = '/api/wallet/non-custodial/addresses/{addressId}/transactions'.sub('{' + 'addressId' + '}', CGI.escape(address_id.to_s))
|
|
650
|
+
|
|
651
|
+
# query parameters
|
|
652
|
+
query_params = opts[:query_params] || {}
|
|
653
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
654
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
655
|
+
|
|
656
|
+
# header parameters
|
|
657
|
+
header_params = opts[:header_params] || {}
|
|
658
|
+
# HTTP header 'Accept' (if needed)
|
|
659
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
660
|
+
|
|
661
|
+
# form parameters
|
|
662
|
+
form_params = opts[:form_params] || {}
|
|
663
|
+
|
|
664
|
+
# http body (model)
|
|
665
|
+
post_body = opts[:debug_body]
|
|
666
|
+
|
|
667
|
+
# return_type
|
|
668
|
+
return_type = opts[:debug_return_type] || 'GetNonCustodialTransactions200Response'
|
|
669
|
+
|
|
670
|
+
# auth_names
|
|
671
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
672
|
+
|
|
673
|
+
new_options = opts.merge(
|
|
674
|
+
:operation => :"WalletApi.get_non_custodial_transactions",
|
|
675
|
+
:header_params => header_params,
|
|
676
|
+
:query_params => query_params,
|
|
677
|
+
:form_params => form_params,
|
|
678
|
+
:body => post_body,
|
|
679
|
+
:auth_names => auth_names,
|
|
680
|
+
:return_type => return_type
|
|
681
|
+
)
|
|
682
|
+
|
|
683
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
684
|
+
if @api_client.config.debugging
|
|
685
|
+
@api_client.config.logger.debug "API called: WalletApi#get_non_custodial_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
686
|
+
end
|
|
687
|
+
return data, status_code, headers
|
|
688
|
+
end
|
|
689
|
+
|
|
690
|
+
# Get replacement tx params for speed-up (stuck EVM tx)
|
|
691
|
+
# Returns **replacement transaction params** for a stuck EVM transaction (same nonce, same to/value/data, higher gas). Client signs the replacement and broadcasts via POST /api/wallet/non-custodial/broadcast. Address must be registered for your organization. Use when a tx has been pending >5 min (stuck). EVM chains only.
|
|
692
|
+
# @param get_speed_up_params_request [GetSpeedUpParamsRequest] Stuck transaction identifier (txId or txHash) and EVM chain.
|
|
693
|
+
# @param [Hash] opts the optional parameters
|
|
694
|
+
# @return [GetSpeedUpParams200Response]
|
|
695
|
+
def get_speed_up_params(get_speed_up_params_request, opts = {})
|
|
696
|
+
data, _status_code, _headers = get_speed_up_params_with_http_info(get_speed_up_params_request, opts)
|
|
697
|
+
data
|
|
698
|
+
end
|
|
699
|
+
|
|
700
|
+
# Get replacement tx params for speed-up (stuck EVM tx)
|
|
701
|
+
# Returns **replacement transaction params** for a stuck EVM transaction (same nonce, same to/value/data, higher gas). Client signs the replacement and broadcasts via POST /api/wallet/non-custodial/broadcast. Address must be registered for your organization. Use when a tx has been pending >5 min (stuck). EVM chains only.
|
|
702
|
+
# @param get_speed_up_params_request [GetSpeedUpParamsRequest] Stuck transaction identifier (txId or txHash) and EVM chain.
|
|
703
|
+
# @param [Hash] opts the optional parameters
|
|
704
|
+
# @return [Array<(GetSpeedUpParams200Response, Integer, Hash)>] GetSpeedUpParams200Response data, response status code and response headers
|
|
705
|
+
def get_speed_up_params_with_http_info(get_speed_up_params_request, opts = {})
|
|
706
|
+
if @api_client.config.debugging
|
|
707
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_speed_up_params ...'
|
|
708
|
+
end
|
|
709
|
+
# verify the required parameter 'get_speed_up_params_request' is set
|
|
710
|
+
if @api_client.config.client_side_validation && get_speed_up_params_request.nil?
|
|
711
|
+
fail ArgumentError, "Missing the required parameter 'get_speed_up_params_request' when calling WalletApi.get_speed_up_params"
|
|
712
|
+
end
|
|
713
|
+
# resource path
|
|
714
|
+
local_var_path = '/api/wallet/non-custodial/speed-up'
|
|
715
|
+
|
|
716
|
+
# query parameters
|
|
717
|
+
query_params = opts[:query_params] || {}
|
|
718
|
+
|
|
719
|
+
# header parameters
|
|
720
|
+
header_params = opts[:header_params] || {}
|
|
721
|
+
# HTTP header 'Accept' (if needed)
|
|
722
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
723
|
+
# HTTP header 'Content-Type'
|
|
724
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
725
|
+
if !content_type.nil?
|
|
726
|
+
header_params['Content-Type'] = content_type
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
# form parameters
|
|
730
|
+
form_params = opts[:form_params] || {}
|
|
731
|
+
|
|
732
|
+
# http body (model)
|
|
733
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(get_speed_up_params_request)
|
|
734
|
+
|
|
735
|
+
# return_type
|
|
736
|
+
return_type = opts[:debug_return_type] || 'GetSpeedUpParams200Response'
|
|
737
|
+
|
|
738
|
+
# auth_names
|
|
739
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
740
|
+
|
|
741
|
+
new_options = opts.merge(
|
|
742
|
+
:operation => :"WalletApi.get_speed_up_params",
|
|
743
|
+
:header_params => header_params,
|
|
744
|
+
:query_params => query_params,
|
|
745
|
+
:form_params => form_params,
|
|
746
|
+
:body => post_body,
|
|
747
|
+
:auth_names => auth_names,
|
|
748
|
+
:return_type => return_type
|
|
749
|
+
)
|
|
750
|
+
|
|
751
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
752
|
+
if @api_client.config.debugging
|
|
753
|
+
@api_client.config.logger.debug "API called: WalletApi#get_speed_up_params\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
754
|
+
end
|
|
755
|
+
return data, status_code, headers
|
|
756
|
+
end
|
|
757
|
+
|
|
758
|
+
# Get webhook delivery logs
|
|
759
|
+
# List delivery attempts for a wallet webhook (success/failure, payload, response, duration). Paginated by limit.
|
|
760
|
+
# @param webhook_id [String] Webhook ID (MongoDB ObjectId) to get logs for.
|
|
761
|
+
# @param [Hash] opts the optional parameters
|
|
762
|
+
# @option opts [Integer] :limit Maximum number of log entries to return. (default to 50)
|
|
763
|
+
# @return [GetWalletWebhookLogs200Response]
|
|
764
|
+
def get_wallet_webhook_logs(webhook_id, opts = {})
|
|
765
|
+
data, _status_code, _headers = get_wallet_webhook_logs_with_http_info(webhook_id, opts)
|
|
766
|
+
data
|
|
767
|
+
end
|
|
768
|
+
|
|
769
|
+
# Get webhook delivery logs
|
|
770
|
+
# List delivery attempts for a wallet webhook (success/failure, payload, response, duration). Paginated by limit.
|
|
771
|
+
# @param webhook_id [String] Webhook ID (MongoDB ObjectId) to get logs for.
|
|
772
|
+
# @param [Hash] opts the optional parameters
|
|
773
|
+
# @option opts [Integer] :limit Maximum number of log entries to return. (default to 50)
|
|
774
|
+
# @return [Array<(GetWalletWebhookLogs200Response, Integer, Hash)>] GetWalletWebhookLogs200Response data, response status code and response headers
|
|
775
|
+
def get_wallet_webhook_logs_with_http_info(webhook_id, opts = {})
|
|
776
|
+
if @api_client.config.debugging
|
|
777
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.get_wallet_webhook_logs ...'
|
|
778
|
+
end
|
|
779
|
+
# verify the required parameter 'webhook_id' is set
|
|
780
|
+
if @api_client.config.client_side_validation && webhook_id.nil?
|
|
781
|
+
fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WalletApi.get_wallet_webhook_logs"
|
|
782
|
+
end
|
|
783
|
+
# resource path
|
|
784
|
+
local_var_path = '/api/wallet/non-custodial/webhooks/{webhookId}/logs'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
|
|
785
|
+
|
|
786
|
+
# query parameters
|
|
787
|
+
query_params = opts[:query_params] || {}
|
|
788
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
789
|
+
|
|
790
|
+
# header parameters
|
|
791
|
+
header_params = opts[:header_params] || {}
|
|
792
|
+
# HTTP header 'Accept' (if needed)
|
|
793
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
794
|
+
|
|
795
|
+
# form parameters
|
|
796
|
+
form_params = opts[:form_params] || {}
|
|
797
|
+
|
|
798
|
+
# http body (model)
|
|
799
|
+
post_body = opts[:debug_body]
|
|
800
|
+
|
|
801
|
+
# return_type
|
|
802
|
+
return_type = opts[:debug_return_type] || 'GetWalletWebhookLogs200Response'
|
|
803
|
+
|
|
804
|
+
# auth_names
|
|
805
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'ProjectBearerAuth']
|
|
806
|
+
|
|
807
|
+
new_options = opts.merge(
|
|
808
|
+
:operation => :"WalletApi.get_wallet_webhook_logs",
|
|
809
|
+
:header_params => header_params,
|
|
810
|
+
:query_params => query_params,
|
|
811
|
+
:form_params => form_params,
|
|
812
|
+
:body => post_body,
|
|
813
|
+
:auth_names => auth_names,
|
|
814
|
+
:return_type => return_type
|
|
815
|
+
)
|
|
816
|
+
|
|
817
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
818
|
+
if @api_client.config.debugging
|
|
819
|
+
@api_client.config.logger.debug "API called: WalletApi#get_wallet_webhook_logs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
820
|
+
end
|
|
821
|
+
return data, status_code, headers
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
# List registered non-custodial addresses
|
|
825
|
+
# Returns all non-custodial addresses registered for the current project/organization. Optional filters by chain and projectId. Addresses must be registered via POST /api/wallet/non-custodial/register-address before use.
|
|
826
|
+
# @param [Hash] opts the optional parameters
|
|
827
|
+
# @option opts [String] :chain Filter by chain (optional)
|
|
828
|
+
# @option opts [String] :project_id Filter by project ID (optional).
|
|
829
|
+
# @return [ListNonCustodialAddresses200Response]
|
|
830
|
+
def list_non_custodial_addresses(opts = {})
|
|
831
|
+
data, _status_code, _headers = list_non_custodial_addresses_with_http_info(opts)
|
|
832
|
+
data
|
|
833
|
+
end
|
|
834
|
+
|
|
835
|
+
# List registered non-custodial addresses
|
|
836
|
+
# Returns all non-custodial addresses registered for the current project/organization. Optional filters by chain and projectId. Addresses must be registered via POST /api/wallet/non-custodial/register-address before use.
|
|
837
|
+
# @param [Hash] opts the optional parameters
|
|
838
|
+
# @option opts [String] :chain Filter by chain (optional)
|
|
839
|
+
# @option opts [String] :project_id Filter by project ID (optional).
|
|
840
|
+
# @return [Array<(ListNonCustodialAddresses200Response, Integer, Hash)>] ListNonCustodialAddresses200Response data, response status code and response headers
|
|
841
|
+
def list_non_custodial_addresses_with_http_info(opts = {})
|
|
842
|
+
if @api_client.config.debugging
|
|
843
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.list_non_custodial_addresses ...'
|
|
844
|
+
end
|
|
845
|
+
allowable_values = ["ethereum", "binance", "bsc", "polygon", "arbitrum", "optimism", "base", "avalanche", "celo", "bitcoin", "litecoin", "dogecoin", "solana", "tron", "ripple", "cardano", "ton"]
|
|
846
|
+
if @api_client.config.client_side_validation && opts[:'chain'] && !allowable_values.include?(opts[:'chain'])
|
|
847
|
+
fail ArgumentError, "invalid value for \"chain\", must be one of #{allowable_values}"
|
|
848
|
+
end
|
|
849
|
+
# resource path
|
|
850
|
+
local_var_path = '/api/wallet/non-custodial/addresses'
|
|
851
|
+
|
|
852
|
+
# query parameters
|
|
853
|
+
query_params = opts[:query_params] || {}
|
|
854
|
+
query_params[:'chain'] = opts[:'chain'] if !opts[:'chain'].nil?
|
|
855
|
+
query_params[:'projectId'] = opts[:'project_id'] if !opts[:'project_id'].nil?
|
|
856
|
+
|
|
857
|
+
# header parameters
|
|
858
|
+
header_params = opts[:header_params] || {}
|
|
859
|
+
# HTTP header 'Accept' (if needed)
|
|
860
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
861
|
+
|
|
862
|
+
# form parameters
|
|
863
|
+
form_params = opts[:form_params] || {}
|
|
864
|
+
|
|
865
|
+
# http body (model)
|
|
866
|
+
post_body = opts[:debug_body]
|
|
867
|
+
|
|
868
|
+
# return_type
|
|
869
|
+
return_type = opts[:debug_return_type] || 'ListNonCustodialAddresses200Response'
|
|
870
|
+
|
|
871
|
+
# auth_names
|
|
872
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
873
|
+
|
|
874
|
+
new_options = opts.merge(
|
|
875
|
+
:operation => :"WalletApi.list_non_custodial_addresses",
|
|
876
|
+
:header_params => header_params,
|
|
877
|
+
:query_params => query_params,
|
|
878
|
+
:form_params => form_params,
|
|
879
|
+
:body => post_body,
|
|
880
|
+
:auth_names => auth_names,
|
|
881
|
+
:return_type => return_type
|
|
882
|
+
)
|
|
883
|
+
|
|
884
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
885
|
+
if @api_client.config.debugging
|
|
886
|
+
@api_client.config.logger.debug "API called: WalletApi#list_non_custodial_addresses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
887
|
+
end
|
|
888
|
+
return data, status_code, headers
|
|
889
|
+
end
|
|
890
|
+
|
|
891
|
+
# List wallet webhooks
|
|
892
|
+
# Returns all wallet webhooks for the current context, optionally filtered by projectId. Includes delivery stats and active status.
|
|
893
|
+
# @param [Hash] opts the optional parameters
|
|
894
|
+
# @option opts [String] :project_id Filter by project ID (optional).
|
|
895
|
+
# @return [ListWalletWebhooks200Response]
|
|
896
|
+
def list_wallet_webhooks(opts = {})
|
|
897
|
+
data, _status_code, _headers = list_wallet_webhooks_with_http_info(opts)
|
|
898
|
+
data
|
|
899
|
+
end
|
|
900
|
+
|
|
901
|
+
# List wallet webhooks
|
|
902
|
+
# Returns all wallet webhooks for the current context, optionally filtered by projectId. Includes delivery stats and active status.
|
|
903
|
+
# @param [Hash] opts the optional parameters
|
|
904
|
+
# @option opts [String] :project_id Filter by project ID (optional).
|
|
905
|
+
# @return [Array<(ListWalletWebhooks200Response, Integer, Hash)>] ListWalletWebhooks200Response data, response status code and response headers
|
|
906
|
+
def list_wallet_webhooks_with_http_info(opts = {})
|
|
907
|
+
if @api_client.config.debugging
|
|
908
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.list_wallet_webhooks ...'
|
|
909
|
+
end
|
|
910
|
+
# resource path
|
|
911
|
+
local_var_path = '/api/wallet/non-custodial/webhooks'
|
|
912
|
+
|
|
913
|
+
# query parameters
|
|
914
|
+
query_params = opts[:query_params] || {}
|
|
915
|
+
query_params[:'projectId'] = opts[:'project_id'] if !opts[:'project_id'].nil?
|
|
916
|
+
|
|
917
|
+
# header parameters
|
|
918
|
+
header_params = opts[:header_params] || {}
|
|
919
|
+
# HTTP header 'Accept' (if needed)
|
|
920
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
921
|
+
|
|
922
|
+
# form parameters
|
|
923
|
+
form_params = opts[:form_params] || {}
|
|
924
|
+
|
|
925
|
+
# http body (model)
|
|
926
|
+
post_body = opts[:debug_body]
|
|
927
|
+
|
|
928
|
+
# return_type
|
|
929
|
+
return_type = opts[:debug_return_type] || 'ListWalletWebhooks200Response'
|
|
930
|
+
|
|
931
|
+
# auth_names
|
|
932
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
933
|
+
|
|
934
|
+
new_options = opts.merge(
|
|
935
|
+
:operation => :"WalletApi.list_wallet_webhooks",
|
|
936
|
+
:header_params => header_params,
|
|
937
|
+
:query_params => query_params,
|
|
938
|
+
:form_params => form_params,
|
|
939
|
+
:body => post_body,
|
|
940
|
+
:auth_names => auth_names,
|
|
941
|
+
:return_type => return_type
|
|
942
|
+
)
|
|
943
|
+
|
|
944
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
945
|
+
if @api_client.config.debugging
|
|
946
|
+
@api_client.config.logger.debug "API called: WalletApi#list_wallet_webhooks\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
947
|
+
end
|
|
948
|
+
return data, status_code, headers
|
|
949
|
+
end
|
|
950
|
+
|
|
951
|
+
# Register a non-custodial wallet address
|
|
952
|
+
# Register a public wallet address for balance monitoring, transaction indexing, and webhook notifications. Keys are never sent to the server; generation and signing happen client-side only. Supports EVM, UTXO, Solana, Tron, TON, Cardano, and other chains. Optionally provide derivation path and label for multi-address tracking.
|
|
953
|
+
# @param register_non_custodial_address_request [RegisterNonCustodialAddressRequest] Public address, chain identifier, and optional derivation path and label. projectId scopes the registration to a project.
|
|
954
|
+
# @param [Hash] opts the optional parameters
|
|
955
|
+
# @return [NonCustodialAddressResponse]
|
|
956
|
+
def register_non_custodial_address(register_non_custodial_address_request, opts = {})
|
|
957
|
+
data, _status_code, _headers = register_non_custodial_address_with_http_info(register_non_custodial_address_request, opts)
|
|
958
|
+
data
|
|
959
|
+
end
|
|
960
|
+
|
|
961
|
+
# Register a non-custodial wallet address
|
|
962
|
+
# Register a public wallet address for balance monitoring, transaction indexing, and webhook notifications. Keys are never sent to the server; generation and signing happen client-side only. Supports EVM, UTXO, Solana, Tron, TON, Cardano, and other chains. Optionally provide derivation path and label for multi-address tracking.
|
|
963
|
+
# @param register_non_custodial_address_request [RegisterNonCustodialAddressRequest] Public address, chain identifier, and optional derivation path and label. projectId scopes the registration to a project.
|
|
964
|
+
# @param [Hash] opts the optional parameters
|
|
965
|
+
# @return [Array<(NonCustodialAddressResponse, Integer, Hash)>] NonCustodialAddressResponse data, response status code and response headers
|
|
966
|
+
def register_non_custodial_address_with_http_info(register_non_custodial_address_request, opts = {})
|
|
967
|
+
if @api_client.config.debugging
|
|
968
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.register_non_custodial_address ...'
|
|
969
|
+
end
|
|
970
|
+
# verify the required parameter 'register_non_custodial_address_request' is set
|
|
971
|
+
if @api_client.config.client_side_validation && register_non_custodial_address_request.nil?
|
|
972
|
+
fail ArgumentError, "Missing the required parameter 'register_non_custodial_address_request' when calling WalletApi.register_non_custodial_address"
|
|
973
|
+
end
|
|
974
|
+
# resource path
|
|
975
|
+
local_var_path = '/api/wallet/non-custodial/register-address'
|
|
976
|
+
|
|
977
|
+
# query parameters
|
|
978
|
+
query_params = opts[:query_params] || {}
|
|
979
|
+
|
|
980
|
+
# header parameters
|
|
981
|
+
header_params = opts[:header_params] || {}
|
|
982
|
+
# HTTP header 'Accept' (if needed)
|
|
983
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
984
|
+
# HTTP header 'Content-Type'
|
|
985
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
986
|
+
if !content_type.nil?
|
|
987
|
+
header_params['Content-Type'] = content_type
|
|
988
|
+
end
|
|
989
|
+
|
|
990
|
+
# form parameters
|
|
991
|
+
form_params = opts[:form_params] || {}
|
|
992
|
+
|
|
993
|
+
# http body (model)
|
|
994
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(register_non_custodial_address_request)
|
|
995
|
+
|
|
996
|
+
# return_type
|
|
997
|
+
return_type = opts[:debug_return_type] || 'NonCustodialAddressResponse'
|
|
998
|
+
|
|
999
|
+
# auth_names
|
|
1000
|
+
auth_names = opts[:debug_auth_names] || ['ProjectBearerAuth']
|
|
1001
|
+
|
|
1002
|
+
new_options = opts.merge(
|
|
1003
|
+
:operation => :"WalletApi.register_non_custodial_address",
|
|
1004
|
+
:header_params => header_params,
|
|
1005
|
+
:query_params => query_params,
|
|
1006
|
+
:form_params => form_params,
|
|
1007
|
+
:body => post_body,
|
|
1008
|
+
:auth_names => auth_names,
|
|
1009
|
+
:return_type => return_type
|
|
1010
|
+
)
|
|
1011
|
+
|
|
1012
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1013
|
+
if @api_client.config.debugging
|
|
1014
|
+
@api_client.config.logger.debug "API called: WalletApi#register_non_custodial_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1015
|
+
end
|
|
1016
|
+
return data, status_code, headers
|
|
1017
|
+
end
|
|
1018
|
+
|
|
1019
|
+
# Test a webhook delivery (sends a single test payload)
|
|
1020
|
+
# Sends a test payload to the given URL to verify webhook connectivity and signature. Uses the same signing as real deliveries.
|
|
1021
|
+
# @param test_wallet_webhook_request [TestWalletWebhookRequest] URL to send the test POST to; optional secret and projectId for scoping; optional event type to simulate.
|
|
1022
|
+
# @param [Hash] opts the optional parameters
|
|
1023
|
+
# @return [TestWalletWebhook200Response]
|
|
1024
|
+
def test_wallet_webhook(test_wallet_webhook_request, opts = {})
|
|
1025
|
+
data, _status_code, _headers = test_wallet_webhook_with_http_info(test_wallet_webhook_request, opts)
|
|
1026
|
+
data
|
|
1027
|
+
end
|
|
1028
|
+
|
|
1029
|
+
# Test a webhook delivery (sends a single test payload)
|
|
1030
|
+
# Sends a test payload to the given URL to verify webhook connectivity and signature. Uses the same signing as real deliveries.
|
|
1031
|
+
# @param test_wallet_webhook_request [TestWalletWebhookRequest] URL to send the test POST to; optional secret and projectId for scoping; optional event type to simulate.
|
|
1032
|
+
# @param [Hash] opts the optional parameters
|
|
1033
|
+
# @return [Array<(TestWalletWebhook200Response, Integer, Hash)>] TestWalletWebhook200Response data, response status code and response headers
|
|
1034
|
+
def test_wallet_webhook_with_http_info(test_wallet_webhook_request, opts = {})
|
|
1035
|
+
if @api_client.config.debugging
|
|
1036
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.test_wallet_webhook ...'
|
|
1037
|
+
end
|
|
1038
|
+
# verify the required parameter 'test_wallet_webhook_request' is set
|
|
1039
|
+
if @api_client.config.client_side_validation && test_wallet_webhook_request.nil?
|
|
1040
|
+
fail ArgumentError, "Missing the required parameter 'test_wallet_webhook_request' when calling WalletApi.test_wallet_webhook"
|
|
1041
|
+
end
|
|
1042
|
+
# resource path
|
|
1043
|
+
local_var_path = '/api/wallet/non-custodial/webhooks/test'
|
|
1044
|
+
|
|
1045
|
+
# query parameters
|
|
1046
|
+
query_params = opts[:query_params] || {}
|
|
1047
|
+
|
|
1048
|
+
# header parameters
|
|
1049
|
+
header_params = opts[:header_params] || {}
|
|
1050
|
+
# HTTP header 'Accept' (if needed)
|
|
1051
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1052
|
+
# HTTP header 'Content-Type'
|
|
1053
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1054
|
+
if !content_type.nil?
|
|
1055
|
+
header_params['Content-Type'] = content_type
|
|
1056
|
+
end
|
|
1057
|
+
|
|
1058
|
+
# form parameters
|
|
1059
|
+
form_params = opts[:form_params] || {}
|
|
1060
|
+
|
|
1061
|
+
# http body (model)
|
|
1062
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(test_wallet_webhook_request)
|
|
1063
|
+
|
|
1064
|
+
# return_type
|
|
1065
|
+
return_type = opts[:debug_return_type] || 'TestWalletWebhook200Response'
|
|
1066
|
+
|
|
1067
|
+
# auth_names
|
|
1068
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'ProjectBearerAuth']
|
|
1069
|
+
|
|
1070
|
+
new_options = opts.merge(
|
|
1071
|
+
:operation => :"WalletApi.test_wallet_webhook",
|
|
1072
|
+
:header_params => header_params,
|
|
1073
|
+
:query_params => query_params,
|
|
1074
|
+
:form_params => form_params,
|
|
1075
|
+
:body => post_body,
|
|
1076
|
+
:auth_names => auth_names,
|
|
1077
|
+
:return_type => return_type
|
|
1078
|
+
)
|
|
1079
|
+
|
|
1080
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
1081
|
+
if @api_client.config.debugging
|
|
1082
|
+
@api_client.config.logger.debug "API called: WalletApi#test_wallet_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1083
|
+
end
|
|
1084
|
+
return data, status_code, headers
|
|
1085
|
+
end
|
|
1086
|
+
|
|
1087
|
+
# Update a wallet webhook
|
|
1088
|
+
# Update webhook URL, events, secret, or filters. Partially applied; only provided fields are updated.
|
|
1089
|
+
# @param webhook_id [String] Webhook ID (MongoDB ObjectId) to update.
|
|
1090
|
+
# @param update_wallet_webhook_request [UpdateWalletWebhookRequest] Fields to update (url, events, secret, filters). Omitted fields are left unchanged.
|
|
1091
|
+
# @param [Hash] opts the optional parameters
|
|
1092
|
+
# @return [UpdateWalletWebhook200Response]
|
|
1093
|
+
def update_wallet_webhook(webhook_id, update_wallet_webhook_request, opts = {})
|
|
1094
|
+
data, _status_code, _headers = update_wallet_webhook_with_http_info(webhook_id, update_wallet_webhook_request, opts)
|
|
1095
|
+
data
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
# Update a wallet webhook
|
|
1099
|
+
# Update webhook URL, events, secret, or filters. Partially applied; only provided fields are updated.
|
|
1100
|
+
# @param webhook_id [String] Webhook ID (MongoDB ObjectId) to update.
|
|
1101
|
+
# @param update_wallet_webhook_request [UpdateWalletWebhookRequest] Fields to update (url, events, secret, filters). Omitted fields are left unchanged.
|
|
1102
|
+
# @param [Hash] opts the optional parameters
|
|
1103
|
+
# @return [Array<(UpdateWalletWebhook200Response, Integer, Hash)>] UpdateWalletWebhook200Response data, response status code and response headers
|
|
1104
|
+
def update_wallet_webhook_with_http_info(webhook_id, update_wallet_webhook_request, opts = {})
|
|
1105
|
+
if @api_client.config.debugging
|
|
1106
|
+
@api_client.config.logger.debug 'Calling API: WalletApi.update_wallet_webhook ...'
|
|
1107
|
+
end
|
|
1108
|
+
# verify the required parameter 'webhook_id' is set
|
|
1109
|
+
if @api_client.config.client_side_validation && webhook_id.nil?
|
|
1110
|
+
fail ArgumentError, "Missing the required parameter 'webhook_id' when calling WalletApi.update_wallet_webhook"
|
|
1111
|
+
end
|
|
1112
|
+
# verify the required parameter 'update_wallet_webhook_request' is set
|
|
1113
|
+
if @api_client.config.client_side_validation && update_wallet_webhook_request.nil?
|
|
1114
|
+
fail ArgumentError, "Missing the required parameter 'update_wallet_webhook_request' when calling WalletApi.update_wallet_webhook"
|
|
1115
|
+
end
|
|
1116
|
+
# resource path
|
|
1117
|
+
local_var_path = '/api/wallet/non-custodial/webhooks/{webhookId}'.sub('{' + 'webhookId' + '}', CGI.escape(webhook_id.to_s))
|
|
1118
|
+
|
|
1119
|
+
# query parameters
|
|
1120
|
+
query_params = opts[:query_params] || {}
|
|
1121
|
+
|
|
1122
|
+
# header parameters
|
|
1123
|
+
header_params = opts[:header_params] || {}
|
|
1124
|
+
# HTTP header 'Accept' (if needed)
|
|
1125
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
1126
|
+
# HTTP header 'Content-Type'
|
|
1127
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1128
|
+
if !content_type.nil?
|
|
1129
|
+
header_params['Content-Type'] = content_type
|
|
1130
|
+
end
|
|
1131
|
+
|
|
1132
|
+
# form parameters
|
|
1133
|
+
form_params = opts[:form_params] || {}
|
|
1134
|
+
|
|
1135
|
+
# http body (model)
|
|
1136
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(update_wallet_webhook_request)
|
|
1137
|
+
|
|
1138
|
+
# return_type
|
|
1139
|
+
return_type = opts[:debug_return_type] || 'UpdateWalletWebhook200Response'
|
|
1140
|
+
|
|
1141
|
+
# auth_names
|
|
1142
|
+
auth_names = opts[:debug_auth_names] || ['ApiKeyAuth', 'ProjectBearerAuth']
|
|
1143
|
+
|
|
1144
|
+
new_options = opts.merge(
|
|
1145
|
+
:operation => :"WalletApi.update_wallet_webhook",
|
|
1146
|
+
:header_params => header_params,
|
|
1147
|
+
:query_params => query_params,
|
|
1148
|
+
:form_params => form_params,
|
|
1149
|
+
:body => post_body,
|
|
1150
|
+
:auth_names => auth_names,
|
|
1151
|
+
:return_type => return_type
|
|
1152
|
+
)
|
|
1153
|
+
|
|
1154
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
1155
|
+
if @api_client.config.debugging
|
|
1156
|
+
@api_client.config.logger.debug "API called: WalletApi#update_wallet_webhook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
1157
|
+
end
|
|
1158
|
+
return data, status_code, headers
|
|
1159
|
+
end
|
|
1160
|
+
end
|
|
1161
|
+
end
|