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,1106 @@
|
|
|
1
|
+
# Mudbase::FunctionsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://cloud.mudbase.dev*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
| ------ | ------------ | ----------- |
|
|
7
|
+
| [**activate_function**](FunctionsApi.md#activate_function) | **POST** /api/functions/projects/{projectId}/functions/{functionId}/activate | Activate function |
|
|
8
|
+
| [**create_function**](FunctionsApi.md#create_function) | **POST** /api/functions/projects/{projectId}/functions | Create function |
|
|
9
|
+
| [**deactivate_function**](FunctionsApi.md#deactivate_function) | **POST** /api/functions/projects/{projectId}/functions/{functionId}/deactivate | Deactivate function |
|
|
10
|
+
| [**delete_function**](FunctionsApi.md#delete_function) | **DELETE** /api/functions/projects/{projectId}/functions/{functionId} | Delete function |
|
|
11
|
+
| [**execute_function**](FunctionsApi.md#execute_function) | **POST** /api/functions/projects/{projectId}/functions/{functionId}/execute | Execute function |
|
|
12
|
+
| [**get_function**](FunctionsApi.md#get_function) | **GET** /api/functions/projects/{projectId}/functions/{functionId} | Get function |
|
|
13
|
+
| [**get_function_logs**](FunctionsApi.md#get_function_logs) | **GET** /api/functions/projects/{projectId}/functions/{functionId}/logs | Get function execution logs |
|
|
14
|
+
| [**get_function_versions**](FunctionsApi.md#get_function_versions) | **GET** /api/functions/projects/{projectId}/functions/{functionId}/versions | Get function versions |
|
|
15
|
+
| [**list_functions**](FunctionsApi.md#list_functions) | **GET** /api/functions/projects/{projectId}/functions | List functions |
|
|
16
|
+
| [**retry_function_execution**](FunctionsApi.md#retry_function_execution) | **POST** /api/functions/projects/{projectId}/functions/{functionId}/retry/{executionIndex} | Retry failed execution |
|
|
17
|
+
| [**rollback_function**](FunctionsApi.md#rollback_function) | **POST** /api/functions/projects/{projectId}/functions/{functionId}/rollback | Rollback to previous version |
|
|
18
|
+
| [**simulate_function_trigger**](FunctionsApi.md#simulate_function_trigger) | **POST** /api/functions/projects/{projectId}/functions/{functionId}/simulate | Simulate trigger |
|
|
19
|
+
| [**trigger_function_webhook**](FunctionsApi.md#trigger_function_webhook) | **POST** /api/functions/webhook/{projectId} | Trigger webhook functions |
|
|
20
|
+
| [**update_function**](FunctionsApi.md#update_function) | **PUT** /api/functions/projects/{projectId}/functions/{functionId} | Update function |
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## activate_function
|
|
24
|
+
|
|
25
|
+
> <FunctionResponse> activate_function(project_id, function_id)
|
|
26
|
+
|
|
27
|
+
Activate function
|
|
28
|
+
|
|
29
|
+
Activate a deactivated function. Active functions can be triggered.
|
|
30
|
+
|
|
31
|
+
### Examples
|
|
32
|
+
|
|
33
|
+
```ruby
|
|
34
|
+
require 'time'
|
|
35
|
+
require 'mudbase'
|
|
36
|
+
# setup authorization
|
|
37
|
+
Mudbase.configure do |config|
|
|
38
|
+
# Configure API key authorization: ApiKeyAuth
|
|
39
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
40
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
41
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
42
|
+
|
|
43
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
44
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
48
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
49
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to activate.
|
|
50
|
+
|
|
51
|
+
begin
|
|
52
|
+
# Activate function
|
|
53
|
+
result = api_instance.activate_function(project_id, function_id)
|
|
54
|
+
p result
|
|
55
|
+
rescue Mudbase::ApiError => e
|
|
56
|
+
puts "Error when calling FunctionsApi->activate_function: #{e}"
|
|
57
|
+
end
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
#### Using the activate_function_with_http_info variant
|
|
61
|
+
|
|
62
|
+
This returns an Array which contains the response data, status code and headers.
|
|
63
|
+
|
|
64
|
+
> <Array(<FunctionResponse>, Integer, Hash)> activate_function_with_http_info(project_id, function_id)
|
|
65
|
+
|
|
66
|
+
```ruby
|
|
67
|
+
begin
|
|
68
|
+
# Activate function
|
|
69
|
+
data, status_code, headers = api_instance.activate_function_with_http_info(project_id, function_id)
|
|
70
|
+
p status_code # => 2xx
|
|
71
|
+
p headers # => { ... }
|
|
72
|
+
p data # => <FunctionResponse>
|
|
73
|
+
rescue Mudbase::ApiError => e
|
|
74
|
+
puts "Error when calling FunctionsApi->activate_function_with_http_info: #{e}"
|
|
75
|
+
end
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Parameters
|
|
79
|
+
|
|
80
|
+
| Name | Type | Description | Notes |
|
|
81
|
+
| ---- | ---- | ----------- | ----- |
|
|
82
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
83
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to activate. | |
|
|
84
|
+
|
|
85
|
+
### Return type
|
|
86
|
+
|
|
87
|
+
[**FunctionResponse**](FunctionResponse.md)
|
|
88
|
+
|
|
89
|
+
### Authorization
|
|
90
|
+
|
|
91
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
92
|
+
|
|
93
|
+
### HTTP request headers
|
|
94
|
+
|
|
95
|
+
- **Content-Type**: Not defined
|
|
96
|
+
- **Accept**: application/json
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
## create_function
|
|
100
|
+
|
|
101
|
+
> <FunctionResponse> create_function(project_id, create_function_request)
|
|
102
|
+
|
|
103
|
+
Create function
|
|
104
|
+
|
|
105
|
+
Create a new serverless function. Trigger types: http, document, file, webhook, wallet, cron, messaging. Sandbox utilities available: db, files, messaging, wallet, utils, env, console.
|
|
106
|
+
|
|
107
|
+
### Examples
|
|
108
|
+
|
|
109
|
+
```ruby
|
|
110
|
+
require 'time'
|
|
111
|
+
require 'mudbase'
|
|
112
|
+
# setup authorization
|
|
113
|
+
Mudbase.configure do |config|
|
|
114
|
+
# Configure API key authorization: ApiKeyAuth
|
|
115
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
116
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
117
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
118
|
+
|
|
119
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
120
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
124
|
+
project_id = 'project_id_example' # String | Project ID.
|
|
125
|
+
create_function_request = Mudbase::CreateFunctionRequest.new({name: 'name_example', code: 'code_example', trigger: Mudbase::FunctionTrigger.new({type: 'http'})}) # CreateFunctionRequest | Function name, description, code, trigger config, and optional environment.
|
|
126
|
+
|
|
127
|
+
begin
|
|
128
|
+
# Create function
|
|
129
|
+
result = api_instance.create_function(project_id, create_function_request)
|
|
130
|
+
p result
|
|
131
|
+
rescue Mudbase::ApiError => e
|
|
132
|
+
puts "Error when calling FunctionsApi->create_function: #{e}"
|
|
133
|
+
end
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
#### Using the create_function_with_http_info variant
|
|
137
|
+
|
|
138
|
+
This returns an Array which contains the response data, status code and headers.
|
|
139
|
+
|
|
140
|
+
> <Array(<FunctionResponse>, Integer, Hash)> create_function_with_http_info(project_id, create_function_request)
|
|
141
|
+
|
|
142
|
+
```ruby
|
|
143
|
+
begin
|
|
144
|
+
# Create function
|
|
145
|
+
data, status_code, headers = api_instance.create_function_with_http_info(project_id, create_function_request)
|
|
146
|
+
p status_code # => 2xx
|
|
147
|
+
p headers # => { ... }
|
|
148
|
+
p data # => <FunctionResponse>
|
|
149
|
+
rescue Mudbase::ApiError => e
|
|
150
|
+
puts "Error when calling FunctionsApi->create_function_with_http_info: #{e}"
|
|
151
|
+
end
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
### Parameters
|
|
155
|
+
|
|
156
|
+
| Name | Type | Description | Notes |
|
|
157
|
+
| ---- | ---- | ----------- | ----- |
|
|
158
|
+
| **project_id** | **String** | Project ID. | |
|
|
159
|
+
| **create_function_request** | [**CreateFunctionRequest**](CreateFunctionRequest.md) | Function name, description, code, trigger config, and optional environment. | |
|
|
160
|
+
|
|
161
|
+
### Return type
|
|
162
|
+
|
|
163
|
+
[**FunctionResponse**](FunctionResponse.md)
|
|
164
|
+
|
|
165
|
+
### Authorization
|
|
166
|
+
|
|
167
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
168
|
+
|
|
169
|
+
### HTTP request headers
|
|
170
|
+
|
|
171
|
+
- **Content-Type**: application/json
|
|
172
|
+
- **Accept**: application/json
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
## deactivate_function
|
|
176
|
+
|
|
177
|
+
> <FunctionResponse> deactivate_function(project_id, function_id)
|
|
178
|
+
|
|
179
|
+
Deactivate function
|
|
180
|
+
|
|
181
|
+
Deactivate a function. Deactivated functions will not be triggered.
|
|
182
|
+
|
|
183
|
+
### Examples
|
|
184
|
+
|
|
185
|
+
```ruby
|
|
186
|
+
require 'time'
|
|
187
|
+
require 'mudbase'
|
|
188
|
+
# setup authorization
|
|
189
|
+
Mudbase.configure do |config|
|
|
190
|
+
# Configure API key authorization: ApiKeyAuth
|
|
191
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
192
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
193
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
194
|
+
|
|
195
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
196
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
200
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
201
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to deactivate.
|
|
202
|
+
|
|
203
|
+
begin
|
|
204
|
+
# Deactivate function
|
|
205
|
+
result = api_instance.deactivate_function(project_id, function_id)
|
|
206
|
+
p result
|
|
207
|
+
rescue Mudbase::ApiError => e
|
|
208
|
+
puts "Error when calling FunctionsApi->deactivate_function: #{e}"
|
|
209
|
+
end
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
#### Using the deactivate_function_with_http_info variant
|
|
213
|
+
|
|
214
|
+
This returns an Array which contains the response data, status code and headers.
|
|
215
|
+
|
|
216
|
+
> <Array(<FunctionResponse>, Integer, Hash)> deactivate_function_with_http_info(project_id, function_id)
|
|
217
|
+
|
|
218
|
+
```ruby
|
|
219
|
+
begin
|
|
220
|
+
# Deactivate function
|
|
221
|
+
data, status_code, headers = api_instance.deactivate_function_with_http_info(project_id, function_id)
|
|
222
|
+
p status_code # => 2xx
|
|
223
|
+
p headers # => { ... }
|
|
224
|
+
p data # => <FunctionResponse>
|
|
225
|
+
rescue Mudbase::ApiError => e
|
|
226
|
+
puts "Error when calling FunctionsApi->deactivate_function_with_http_info: #{e}"
|
|
227
|
+
end
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
### Parameters
|
|
231
|
+
|
|
232
|
+
| Name | Type | Description | Notes |
|
|
233
|
+
| ---- | ---- | ----------- | ----- |
|
|
234
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
235
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to deactivate. | |
|
|
236
|
+
|
|
237
|
+
### Return type
|
|
238
|
+
|
|
239
|
+
[**FunctionResponse**](FunctionResponse.md)
|
|
240
|
+
|
|
241
|
+
### Authorization
|
|
242
|
+
|
|
243
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
244
|
+
|
|
245
|
+
### HTTP request headers
|
|
246
|
+
|
|
247
|
+
- **Content-Type**: Not defined
|
|
248
|
+
- **Accept**: application/json
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
## delete_function
|
|
252
|
+
|
|
253
|
+
> <DeleteFunction200Response> delete_function(project_id, function_id)
|
|
254
|
+
|
|
255
|
+
Delete function
|
|
256
|
+
|
|
257
|
+
Delete a function permanently. This is a destructive operation.
|
|
258
|
+
|
|
259
|
+
### Examples
|
|
260
|
+
|
|
261
|
+
```ruby
|
|
262
|
+
require 'time'
|
|
263
|
+
require 'mudbase'
|
|
264
|
+
# setup authorization
|
|
265
|
+
Mudbase.configure do |config|
|
|
266
|
+
# Configure API key authorization: ApiKeyAuth
|
|
267
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
268
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
269
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
270
|
+
|
|
271
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
272
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
273
|
+
end
|
|
274
|
+
|
|
275
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
276
|
+
project_id = 'project_id_example' # String | Project ID.
|
|
277
|
+
function_id = 'function_id_example' # String | Function ID to delete.
|
|
278
|
+
|
|
279
|
+
begin
|
|
280
|
+
# Delete function
|
|
281
|
+
result = api_instance.delete_function(project_id, function_id)
|
|
282
|
+
p result
|
|
283
|
+
rescue Mudbase::ApiError => e
|
|
284
|
+
puts "Error when calling FunctionsApi->delete_function: #{e}"
|
|
285
|
+
end
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
#### Using the delete_function_with_http_info variant
|
|
289
|
+
|
|
290
|
+
This returns an Array which contains the response data, status code and headers.
|
|
291
|
+
|
|
292
|
+
> <Array(<DeleteFunction200Response>, Integer, Hash)> delete_function_with_http_info(project_id, function_id)
|
|
293
|
+
|
|
294
|
+
```ruby
|
|
295
|
+
begin
|
|
296
|
+
# Delete function
|
|
297
|
+
data, status_code, headers = api_instance.delete_function_with_http_info(project_id, function_id)
|
|
298
|
+
p status_code # => 2xx
|
|
299
|
+
p headers # => { ... }
|
|
300
|
+
p data # => <DeleteFunction200Response>
|
|
301
|
+
rescue Mudbase::ApiError => e
|
|
302
|
+
puts "Error when calling FunctionsApi->delete_function_with_http_info: #{e}"
|
|
303
|
+
end
|
|
304
|
+
```
|
|
305
|
+
|
|
306
|
+
### Parameters
|
|
307
|
+
|
|
308
|
+
| Name | Type | Description | Notes |
|
|
309
|
+
| ---- | ---- | ----------- | ----- |
|
|
310
|
+
| **project_id** | **String** | Project ID. | |
|
|
311
|
+
| **function_id** | **String** | Function ID to delete. | |
|
|
312
|
+
|
|
313
|
+
### Return type
|
|
314
|
+
|
|
315
|
+
[**DeleteFunction200Response**](DeleteFunction200Response.md)
|
|
316
|
+
|
|
317
|
+
### Authorization
|
|
318
|
+
|
|
319
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
320
|
+
|
|
321
|
+
### HTTP request headers
|
|
322
|
+
|
|
323
|
+
- **Content-Type**: Not defined
|
|
324
|
+
- **Accept**: application/json
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
## execute_function
|
|
328
|
+
|
|
329
|
+
> <FunctionExecutionResponse> execute_function(project_id, function_id, opts)
|
|
330
|
+
|
|
331
|
+
Execute function
|
|
332
|
+
|
|
333
|
+
Manually execute a function with custom payload. Payload is merged with auto-injected trigger context. Rate limited (data mutation rate limiter). Enforces maxExecutionsPerMinute/maxExecutionsPerHour.
|
|
334
|
+
|
|
335
|
+
### Examples
|
|
336
|
+
|
|
337
|
+
```ruby
|
|
338
|
+
require 'time'
|
|
339
|
+
require 'mudbase'
|
|
340
|
+
# setup authorization
|
|
341
|
+
Mudbase.configure do |config|
|
|
342
|
+
# Configure API key authorization: ApiKeyAuth
|
|
343
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
344
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
345
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
346
|
+
|
|
347
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
348
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
352
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
353
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to execute.
|
|
354
|
+
opts = {
|
|
355
|
+
execute_function_request: Mudbase::ExecuteFunctionRequest.new # ExecuteFunctionRequest | Optional JSON payload merged with trigger context (e.g. document, file, webhook body). Omit for no custom input.
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
begin
|
|
359
|
+
# Execute function
|
|
360
|
+
result = api_instance.execute_function(project_id, function_id, opts)
|
|
361
|
+
p result
|
|
362
|
+
rescue Mudbase::ApiError => e
|
|
363
|
+
puts "Error when calling FunctionsApi->execute_function: #{e}"
|
|
364
|
+
end
|
|
365
|
+
```
|
|
366
|
+
|
|
367
|
+
#### Using the execute_function_with_http_info variant
|
|
368
|
+
|
|
369
|
+
This returns an Array which contains the response data, status code and headers.
|
|
370
|
+
|
|
371
|
+
> <Array(<FunctionExecutionResponse>, Integer, Hash)> execute_function_with_http_info(project_id, function_id, opts)
|
|
372
|
+
|
|
373
|
+
```ruby
|
|
374
|
+
begin
|
|
375
|
+
# Execute function
|
|
376
|
+
data, status_code, headers = api_instance.execute_function_with_http_info(project_id, function_id, opts)
|
|
377
|
+
p status_code # => 2xx
|
|
378
|
+
p headers # => { ... }
|
|
379
|
+
p data # => <FunctionExecutionResponse>
|
|
380
|
+
rescue Mudbase::ApiError => e
|
|
381
|
+
puts "Error when calling FunctionsApi->execute_function_with_http_info: #{e}"
|
|
382
|
+
end
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Parameters
|
|
386
|
+
|
|
387
|
+
| Name | Type | Description | Notes |
|
|
388
|
+
| ---- | ---- | ----------- | ----- |
|
|
389
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
390
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to execute. | |
|
|
391
|
+
| **execute_function_request** | [**ExecuteFunctionRequest**](ExecuteFunctionRequest.md) | Optional JSON payload merged with trigger context (e.g. document, file, webhook body). Omit for no custom input. | [optional] |
|
|
392
|
+
|
|
393
|
+
### Return type
|
|
394
|
+
|
|
395
|
+
[**FunctionExecutionResponse**](FunctionExecutionResponse.md)
|
|
396
|
+
|
|
397
|
+
### Authorization
|
|
398
|
+
|
|
399
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
400
|
+
|
|
401
|
+
### HTTP request headers
|
|
402
|
+
|
|
403
|
+
- **Content-Type**: application/json
|
|
404
|
+
- **Accept**: application/json
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
## get_function
|
|
408
|
+
|
|
409
|
+
> <FunctionResponse> get_function(project_id, function_id)
|
|
410
|
+
|
|
411
|
+
Get function
|
|
412
|
+
|
|
413
|
+
Get function details by ID including createdBy/updatedBy.
|
|
414
|
+
|
|
415
|
+
### Examples
|
|
416
|
+
|
|
417
|
+
```ruby
|
|
418
|
+
require 'time'
|
|
419
|
+
require 'mudbase'
|
|
420
|
+
# setup authorization
|
|
421
|
+
Mudbase.configure do |config|
|
|
422
|
+
# Configure API key authorization: ApiKeyAuth
|
|
423
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
424
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
425
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
426
|
+
|
|
427
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
428
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
432
|
+
project_id = 'project_id_example' # String | Project ID.
|
|
433
|
+
function_id = 'function_id_example' # String | Function ID.
|
|
434
|
+
|
|
435
|
+
begin
|
|
436
|
+
# Get function
|
|
437
|
+
result = api_instance.get_function(project_id, function_id)
|
|
438
|
+
p result
|
|
439
|
+
rescue Mudbase::ApiError => e
|
|
440
|
+
puts "Error when calling FunctionsApi->get_function: #{e}"
|
|
441
|
+
end
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
#### Using the get_function_with_http_info variant
|
|
445
|
+
|
|
446
|
+
This returns an Array which contains the response data, status code and headers.
|
|
447
|
+
|
|
448
|
+
> <Array(<FunctionResponse>, Integer, Hash)> get_function_with_http_info(project_id, function_id)
|
|
449
|
+
|
|
450
|
+
```ruby
|
|
451
|
+
begin
|
|
452
|
+
# Get function
|
|
453
|
+
data, status_code, headers = api_instance.get_function_with_http_info(project_id, function_id)
|
|
454
|
+
p status_code # => 2xx
|
|
455
|
+
p headers # => { ... }
|
|
456
|
+
p data # => <FunctionResponse>
|
|
457
|
+
rescue Mudbase::ApiError => e
|
|
458
|
+
puts "Error when calling FunctionsApi->get_function_with_http_info: #{e}"
|
|
459
|
+
end
|
|
460
|
+
```
|
|
461
|
+
|
|
462
|
+
### Parameters
|
|
463
|
+
|
|
464
|
+
| Name | Type | Description | Notes |
|
|
465
|
+
| ---- | ---- | ----------- | ----- |
|
|
466
|
+
| **project_id** | **String** | Project ID. | |
|
|
467
|
+
| **function_id** | **String** | Function ID. | |
|
|
468
|
+
|
|
469
|
+
### Return type
|
|
470
|
+
|
|
471
|
+
[**FunctionResponse**](FunctionResponse.md)
|
|
472
|
+
|
|
473
|
+
### Authorization
|
|
474
|
+
|
|
475
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
476
|
+
|
|
477
|
+
### HTTP request headers
|
|
478
|
+
|
|
479
|
+
- **Content-Type**: Not defined
|
|
480
|
+
- **Accept**: application/json
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
## get_function_logs
|
|
484
|
+
|
|
485
|
+
> <FunctionLogsResponse> get_function_logs(project_id, function_id, opts)
|
|
486
|
+
|
|
487
|
+
Get function execution logs
|
|
488
|
+
|
|
489
|
+
Get execution logs with pagination. Includes stats (totalExecutions, successful, failed, successRate, avgExecutionTime, lastRun).
|
|
490
|
+
|
|
491
|
+
### Examples
|
|
492
|
+
|
|
493
|
+
```ruby
|
|
494
|
+
require 'time'
|
|
495
|
+
require 'mudbase'
|
|
496
|
+
# setup authorization
|
|
497
|
+
Mudbase.configure do |config|
|
|
498
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
499
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
503
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
504
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to get logs for.
|
|
505
|
+
opts = {
|
|
506
|
+
limit: 56, # Integer | Maximum number of log entries to return.
|
|
507
|
+
offset: 56 # Integer | Number of log entries to skip for pagination.
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
begin
|
|
511
|
+
# Get function execution logs
|
|
512
|
+
result = api_instance.get_function_logs(project_id, function_id, opts)
|
|
513
|
+
p result
|
|
514
|
+
rescue Mudbase::ApiError => e
|
|
515
|
+
puts "Error when calling FunctionsApi->get_function_logs: #{e}"
|
|
516
|
+
end
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
#### Using the get_function_logs_with_http_info variant
|
|
520
|
+
|
|
521
|
+
This returns an Array which contains the response data, status code and headers.
|
|
522
|
+
|
|
523
|
+
> <Array(<FunctionLogsResponse>, Integer, Hash)> get_function_logs_with_http_info(project_id, function_id, opts)
|
|
524
|
+
|
|
525
|
+
```ruby
|
|
526
|
+
begin
|
|
527
|
+
# Get function execution logs
|
|
528
|
+
data, status_code, headers = api_instance.get_function_logs_with_http_info(project_id, function_id, opts)
|
|
529
|
+
p status_code # => 2xx
|
|
530
|
+
p headers # => { ... }
|
|
531
|
+
p data # => <FunctionLogsResponse>
|
|
532
|
+
rescue Mudbase::ApiError => e
|
|
533
|
+
puts "Error when calling FunctionsApi->get_function_logs_with_http_info: #{e}"
|
|
534
|
+
end
|
|
535
|
+
```
|
|
536
|
+
|
|
537
|
+
### Parameters
|
|
538
|
+
|
|
539
|
+
| Name | Type | Description | Notes |
|
|
540
|
+
| ---- | ---- | ----------- | ----- |
|
|
541
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
542
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to get logs for. | |
|
|
543
|
+
| **limit** | **Integer** | Maximum number of log entries to return. | [optional][default to 50] |
|
|
544
|
+
| **offset** | **Integer** | Number of log entries to skip for pagination. | [optional][default to 0] |
|
|
545
|
+
|
|
546
|
+
### Return type
|
|
547
|
+
|
|
548
|
+
[**FunctionLogsResponse**](FunctionLogsResponse.md)
|
|
549
|
+
|
|
550
|
+
### Authorization
|
|
551
|
+
|
|
552
|
+
[ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
553
|
+
|
|
554
|
+
### HTTP request headers
|
|
555
|
+
|
|
556
|
+
- **Content-Type**: Not defined
|
|
557
|
+
- **Accept**: application/json
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
## get_function_versions
|
|
561
|
+
|
|
562
|
+
> <GetFunctionVersions200Response> get_function_versions(project_id, function_id)
|
|
563
|
+
|
|
564
|
+
Get function versions
|
|
565
|
+
|
|
566
|
+
List all code versions for a function. Used for rollback.
|
|
567
|
+
|
|
568
|
+
### Examples
|
|
569
|
+
|
|
570
|
+
```ruby
|
|
571
|
+
require 'time'
|
|
572
|
+
require 'mudbase'
|
|
573
|
+
# setup authorization
|
|
574
|
+
Mudbase.configure do |config|
|
|
575
|
+
# Configure API key authorization: ApiKeyAuth
|
|
576
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
577
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
578
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
579
|
+
|
|
580
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
581
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
582
|
+
end
|
|
583
|
+
|
|
584
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
585
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
586
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to list versions for.
|
|
587
|
+
|
|
588
|
+
begin
|
|
589
|
+
# Get function versions
|
|
590
|
+
result = api_instance.get_function_versions(project_id, function_id)
|
|
591
|
+
p result
|
|
592
|
+
rescue Mudbase::ApiError => e
|
|
593
|
+
puts "Error when calling FunctionsApi->get_function_versions: #{e}"
|
|
594
|
+
end
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
#### Using the get_function_versions_with_http_info variant
|
|
598
|
+
|
|
599
|
+
This returns an Array which contains the response data, status code and headers.
|
|
600
|
+
|
|
601
|
+
> <Array(<GetFunctionVersions200Response>, Integer, Hash)> get_function_versions_with_http_info(project_id, function_id)
|
|
602
|
+
|
|
603
|
+
```ruby
|
|
604
|
+
begin
|
|
605
|
+
# Get function versions
|
|
606
|
+
data, status_code, headers = api_instance.get_function_versions_with_http_info(project_id, function_id)
|
|
607
|
+
p status_code # => 2xx
|
|
608
|
+
p headers # => { ... }
|
|
609
|
+
p data # => <GetFunctionVersions200Response>
|
|
610
|
+
rescue Mudbase::ApiError => e
|
|
611
|
+
puts "Error when calling FunctionsApi->get_function_versions_with_http_info: #{e}"
|
|
612
|
+
end
|
|
613
|
+
```
|
|
614
|
+
|
|
615
|
+
### Parameters
|
|
616
|
+
|
|
617
|
+
| Name | Type | Description | Notes |
|
|
618
|
+
| ---- | ---- | ----------- | ----- |
|
|
619
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
620
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to list versions for. | |
|
|
621
|
+
|
|
622
|
+
### Return type
|
|
623
|
+
|
|
624
|
+
[**GetFunctionVersions200Response**](GetFunctionVersions200Response.md)
|
|
625
|
+
|
|
626
|
+
### Authorization
|
|
627
|
+
|
|
628
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
629
|
+
|
|
630
|
+
### HTTP request headers
|
|
631
|
+
|
|
632
|
+
- **Content-Type**: Not defined
|
|
633
|
+
- **Accept**: application/json
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
## list_functions
|
|
637
|
+
|
|
638
|
+
> <FunctionListResponse> list_functions(project_id, opts)
|
|
639
|
+
|
|
640
|
+
List functions
|
|
641
|
+
|
|
642
|
+
List serverless functions in a project with optional search and filters. Supports trigger types: http, event, document, file, webhook, wallet, cron, messaging.
|
|
643
|
+
|
|
644
|
+
### Examples
|
|
645
|
+
|
|
646
|
+
```ruby
|
|
647
|
+
require 'time'
|
|
648
|
+
require 'mudbase'
|
|
649
|
+
# setup authorization
|
|
650
|
+
Mudbase.configure do |config|
|
|
651
|
+
# Configure API key authorization: ApiKeyAuth
|
|
652
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
653
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
654
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
655
|
+
|
|
656
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
657
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
658
|
+
end
|
|
659
|
+
|
|
660
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
661
|
+
project_id = 'project_id_example' # String | Project ID.
|
|
662
|
+
opts = {
|
|
663
|
+
page: 56, # Integer | Page number (1-based).
|
|
664
|
+
limit: 56, # Integer | Number of functions per page.
|
|
665
|
+
search: 'search_example', # String | Search by name or description
|
|
666
|
+
trigger_type: 'http', # String | Filter by trigger type
|
|
667
|
+
is_active: true # Boolean | Filter by active status (true/false)
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
begin
|
|
671
|
+
# List functions
|
|
672
|
+
result = api_instance.list_functions(project_id, opts)
|
|
673
|
+
p result
|
|
674
|
+
rescue Mudbase::ApiError => e
|
|
675
|
+
puts "Error when calling FunctionsApi->list_functions: #{e}"
|
|
676
|
+
end
|
|
677
|
+
```
|
|
678
|
+
|
|
679
|
+
#### Using the list_functions_with_http_info variant
|
|
680
|
+
|
|
681
|
+
This returns an Array which contains the response data, status code and headers.
|
|
682
|
+
|
|
683
|
+
> <Array(<FunctionListResponse>, Integer, Hash)> list_functions_with_http_info(project_id, opts)
|
|
684
|
+
|
|
685
|
+
```ruby
|
|
686
|
+
begin
|
|
687
|
+
# List functions
|
|
688
|
+
data, status_code, headers = api_instance.list_functions_with_http_info(project_id, opts)
|
|
689
|
+
p status_code # => 2xx
|
|
690
|
+
p headers # => { ... }
|
|
691
|
+
p data # => <FunctionListResponse>
|
|
692
|
+
rescue Mudbase::ApiError => e
|
|
693
|
+
puts "Error when calling FunctionsApi->list_functions_with_http_info: #{e}"
|
|
694
|
+
end
|
|
695
|
+
```
|
|
696
|
+
|
|
697
|
+
### Parameters
|
|
698
|
+
|
|
699
|
+
| Name | Type | Description | Notes |
|
|
700
|
+
| ---- | ---- | ----------- | ----- |
|
|
701
|
+
| **project_id** | **String** | Project ID. | |
|
|
702
|
+
| **page** | **Integer** | Page number (1-based). | [optional][default to 1] |
|
|
703
|
+
| **limit** | **Integer** | Number of functions per page. | [optional][default to 20] |
|
|
704
|
+
| **search** | **String** | Search by name or description | [optional] |
|
|
705
|
+
| **trigger_type** | **String** | Filter by trigger type | [optional] |
|
|
706
|
+
| **is_active** | **Boolean** | Filter by active status (true/false) | [optional] |
|
|
707
|
+
|
|
708
|
+
### Return type
|
|
709
|
+
|
|
710
|
+
[**FunctionListResponse**](FunctionListResponse.md)
|
|
711
|
+
|
|
712
|
+
### Authorization
|
|
713
|
+
|
|
714
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
715
|
+
|
|
716
|
+
### HTTP request headers
|
|
717
|
+
|
|
718
|
+
- **Content-Type**: Not defined
|
|
719
|
+
- **Accept**: application/json
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
## retry_function_execution
|
|
723
|
+
|
|
724
|
+
> <FunctionExecutionResponse> retry_function_execution(project_id, function_id, execution_index)
|
|
725
|
+
|
|
726
|
+
Retry failed execution
|
|
727
|
+
|
|
728
|
+
Retry a failed execution by its index (0-based) in the logs. Cannot retry successful executions.
|
|
729
|
+
|
|
730
|
+
### Examples
|
|
731
|
+
|
|
732
|
+
```ruby
|
|
733
|
+
require 'time'
|
|
734
|
+
require 'mudbase'
|
|
735
|
+
# setup authorization
|
|
736
|
+
Mudbase.configure do |config|
|
|
737
|
+
# Configure API key authorization: ApiKeyAuth
|
|
738
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
739
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
740
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
741
|
+
|
|
742
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
743
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
744
|
+
end
|
|
745
|
+
|
|
746
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
747
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
748
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to retry execution for.
|
|
749
|
+
execution_index = 56 # Integer | 0-based index of the execution in logs
|
|
750
|
+
|
|
751
|
+
begin
|
|
752
|
+
# Retry failed execution
|
|
753
|
+
result = api_instance.retry_function_execution(project_id, function_id, execution_index)
|
|
754
|
+
p result
|
|
755
|
+
rescue Mudbase::ApiError => e
|
|
756
|
+
puts "Error when calling FunctionsApi->retry_function_execution: #{e}"
|
|
757
|
+
end
|
|
758
|
+
```
|
|
759
|
+
|
|
760
|
+
#### Using the retry_function_execution_with_http_info variant
|
|
761
|
+
|
|
762
|
+
This returns an Array which contains the response data, status code and headers.
|
|
763
|
+
|
|
764
|
+
> <Array(<FunctionExecutionResponse>, Integer, Hash)> retry_function_execution_with_http_info(project_id, function_id, execution_index)
|
|
765
|
+
|
|
766
|
+
```ruby
|
|
767
|
+
begin
|
|
768
|
+
# Retry failed execution
|
|
769
|
+
data, status_code, headers = api_instance.retry_function_execution_with_http_info(project_id, function_id, execution_index)
|
|
770
|
+
p status_code # => 2xx
|
|
771
|
+
p headers # => { ... }
|
|
772
|
+
p data # => <FunctionExecutionResponse>
|
|
773
|
+
rescue Mudbase::ApiError => e
|
|
774
|
+
puts "Error when calling FunctionsApi->retry_function_execution_with_http_info: #{e}"
|
|
775
|
+
end
|
|
776
|
+
```
|
|
777
|
+
|
|
778
|
+
### Parameters
|
|
779
|
+
|
|
780
|
+
| Name | Type | Description | Notes |
|
|
781
|
+
| ---- | ---- | ----------- | ----- |
|
|
782
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
783
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to retry execution for. | |
|
|
784
|
+
| **execution_index** | **Integer** | 0-based index of the execution in logs | |
|
|
785
|
+
|
|
786
|
+
### Return type
|
|
787
|
+
|
|
788
|
+
[**FunctionExecutionResponse**](FunctionExecutionResponse.md)
|
|
789
|
+
|
|
790
|
+
### Authorization
|
|
791
|
+
|
|
792
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
793
|
+
|
|
794
|
+
### HTTP request headers
|
|
795
|
+
|
|
796
|
+
- **Content-Type**: Not defined
|
|
797
|
+
- **Accept**: application/json
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
## rollback_function
|
|
801
|
+
|
|
802
|
+
> <FunctionResponse> rollback_function(project_id, function_id, rollback_function_request)
|
|
803
|
+
|
|
804
|
+
Rollback to previous version
|
|
805
|
+
|
|
806
|
+
Rollback function code to a previous version. Version number is required.
|
|
807
|
+
|
|
808
|
+
### Examples
|
|
809
|
+
|
|
810
|
+
```ruby
|
|
811
|
+
require 'time'
|
|
812
|
+
require 'mudbase'
|
|
813
|
+
# setup authorization
|
|
814
|
+
Mudbase.configure do |config|
|
|
815
|
+
# Configure API key authorization: ApiKeyAuth
|
|
816
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
817
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
818
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
819
|
+
|
|
820
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
821
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
822
|
+
end
|
|
823
|
+
|
|
824
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
825
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
826
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to rollback.
|
|
827
|
+
rollback_function_request = Mudbase::RollbackFunctionRequest.new({version: 37}) # RollbackFunctionRequest | Version number (integer) to rollback to; use GET .../versions to list available versions.
|
|
828
|
+
|
|
829
|
+
begin
|
|
830
|
+
# Rollback to previous version
|
|
831
|
+
result = api_instance.rollback_function(project_id, function_id, rollback_function_request)
|
|
832
|
+
p result
|
|
833
|
+
rescue Mudbase::ApiError => e
|
|
834
|
+
puts "Error when calling FunctionsApi->rollback_function: #{e}"
|
|
835
|
+
end
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
#### Using the rollback_function_with_http_info variant
|
|
839
|
+
|
|
840
|
+
This returns an Array which contains the response data, status code and headers.
|
|
841
|
+
|
|
842
|
+
> <Array(<FunctionResponse>, Integer, Hash)> rollback_function_with_http_info(project_id, function_id, rollback_function_request)
|
|
843
|
+
|
|
844
|
+
```ruby
|
|
845
|
+
begin
|
|
846
|
+
# Rollback to previous version
|
|
847
|
+
data, status_code, headers = api_instance.rollback_function_with_http_info(project_id, function_id, rollback_function_request)
|
|
848
|
+
p status_code # => 2xx
|
|
849
|
+
p headers # => { ... }
|
|
850
|
+
p data # => <FunctionResponse>
|
|
851
|
+
rescue Mudbase::ApiError => e
|
|
852
|
+
puts "Error when calling FunctionsApi->rollback_function_with_http_info: #{e}"
|
|
853
|
+
end
|
|
854
|
+
```
|
|
855
|
+
|
|
856
|
+
### Parameters
|
|
857
|
+
|
|
858
|
+
| Name | Type | Description | Notes |
|
|
859
|
+
| ---- | ---- | ----------- | ----- |
|
|
860
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
861
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to rollback. | |
|
|
862
|
+
| **rollback_function_request** | [**RollbackFunctionRequest**](RollbackFunctionRequest.md) | Version number (integer) to rollback to; use GET .../versions to list available versions. | |
|
|
863
|
+
|
|
864
|
+
### Return type
|
|
865
|
+
|
|
866
|
+
[**FunctionResponse**](FunctionResponse.md)
|
|
867
|
+
|
|
868
|
+
### Authorization
|
|
869
|
+
|
|
870
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
871
|
+
|
|
872
|
+
### HTTP request headers
|
|
873
|
+
|
|
874
|
+
- **Content-Type**: application/json
|
|
875
|
+
- **Accept**: application/json
|
|
876
|
+
|
|
877
|
+
|
|
878
|
+
## simulate_function_trigger
|
|
879
|
+
|
|
880
|
+
> <FunctionExecutionResponse> simulate_function_trigger(project_id, function_id, opts)
|
|
881
|
+
|
|
882
|
+
Simulate trigger
|
|
883
|
+
|
|
884
|
+
Test a function with simulated trigger context. Use to verify document, file, webhook, wallet, or cron payloads. Executes the function with the provided eventContext merged into the payload.
|
|
885
|
+
|
|
886
|
+
### Examples
|
|
887
|
+
|
|
888
|
+
```ruby
|
|
889
|
+
require 'time'
|
|
890
|
+
require 'mudbase'
|
|
891
|
+
# setup authorization
|
|
892
|
+
Mudbase.configure do |config|
|
|
893
|
+
# Configure API key authorization: ApiKeyAuth
|
|
894
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
895
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
896
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
897
|
+
|
|
898
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
899
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
900
|
+
end
|
|
901
|
+
|
|
902
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
903
|
+
project_id = 'project_id_example' # String | Project ID (MongoDB ObjectId) that owns the function.
|
|
904
|
+
function_id = 'function_id_example' # String | Function ID (MongoDB ObjectId) to simulate.
|
|
905
|
+
opts = {
|
|
906
|
+
simulate_function_trigger_request: Mudbase::SimulateFunctionTriggerRequest.new # SimulateFunctionTriggerRequest | Simulated trigger (type, event) and eventContext (document, file, webhook, wallet, message, or cron). Merged into the function payload for testing.
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
begin
|
|
910
|
+
# Simulate trigger
|
|
911
|
+
result = api_instance.simulate_function_trigger(project_id, function_id, opts)
|
|
912
|
+
p result
|
|
913
|
+
rescue Mudbase::ApiError => e
|
|
914
|
+
puts "Error when calling FunctionsApi->simulate_function_trigger: #{e}"
|
|
915
|
+
end
|
|
916
|
+
```
|
|
917
|
+
|
|
918
|
+
#### Using the simulate_function_trigger_with_http_info variant
|
|
919
|
+
|
|
920
|
+
This returns an Array which contains the response data, status code and headers.
|
|
921
|
+
|
|
922
|
+
> <Array(<FunctionExecutionResponse>, Integer, Hash)> simulate_function_trigger_with_http_info(project_id, function_id, opts)
|
|
923
|
+
|
|
924
|
+
```ruby
|
|
925
|
+
begin
|
|
926
|
+
# Simulate trigger
|
|
927
|
+
data, status_code, headers = api_instance.simulate_function_trigger_with_http_info(project_id, function_id, opts)
|
|
928
|
+
p status_code # => 2xx
|
|
929
|
+
p headers # => { ... }
|
|
930
|
+
p data # => <FunctionExecutionResponse>
|
|
931
|
+
rescue Mudbase::ApiError => e
|
|
932
|
+
puts "Error when calling FunctionsApi->simulate_function_trigger_with_http_info: #{e}"
|
|
933
|
+
end
|
|
934
|
+
```
|
|
935
|
+
|
|
936
|
+
### Parameters
|
|
937
|
+
|
|
938
|
+
| Name | Type | Description | Notes |
|
|
939
|
+
| ---- | ---- | ----------- | ----- |
|
|
940
|
+
| **project_id** | **String** | Project ID (MongoDB ObjectId) that owns the function. | |
|
|
941
|
+
| **function_id** | **String** | Function ID (MongoDB ObjectId) to simulate. | |
|
|
942
|
+
| **simulate_function_trigger_request** | [**SimulateFunctionTriggerRequest**](SimulateFunctionTriggerRequest.md) | Simulated trigger (type, event) and eventContext (document, file, webhook, wallet, message, or cron). Merged into the function payload for testing. | [optional] |
|
|
943
|
+
|
|
944
|
+
### Return type
|
|
945
|
+
|
|
946
|
+
[**FunctionExecutionResponse**](FunctionExecutionResponse.md)
|
|
947
|
+
|
|
948
|
+
### Authorization
|
|
949
|
+
|
|
950
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
951
|
+
|
|
952
|
+
### HTTP request headers
|
|
953
|
+
|
|
954
|
+
- **Content-Type**: application/json
|
|
955
|
+
- **Accept**: application/json
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
## trigger_function_webhook
|
|
959
|
+
|
|
960
|
+
> <TriggerFunctionWebhook200Response> trigger_function_webhook(project_id, opts)
|
|
961
|
+
|
|
962
|
+
Trigger webhook functions
|
|
963
|
+
|
|
964
|
+
Public endpoint for external services to trigger functions with `trigger.type: webhook`. No authentication required. Optionally verify using `X-Webhook-Secret` header (configure per project or via FUNCTION_WEBHOOK_SECRET). Rate limited to 30 requests per 15 minutes per IP.
|
|
965
|
+
|
|
966
|
+
### Examples
|
|
967
|
+
|
|
968
|
+
```ruby
|
|
969
|
+
require 'time'
|
|
970
|
+
require 'mudbase'
|
|
971
|
+
|
|
972
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
973
|
+
project_id = 'project_id_example' # String | Project ID.
|
|
974
|
+
opts = {
|
|
975
|
+
x_webhook_secret: 'x_webhook_secret_example', # String | Optional webhook secret for verification
|
|
976
|
+
body: { ... } # Object | Payload sent to the triggered function(s).
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
begin
|
|
980
|
+
# Trigger webhook functions
|
|
981
|
+
result = api_instance.trigger_function_webhook(project_id, opts)
|
|
982
|
+
p result
|
|
983
|
+
rescue Mudbase::ApiError => e
|
|
984
|
+
puts "Error when calling FunctionsApi->trigger_function_webhook: #{e}"
|
|
985
|
+
end
|
|
986
|
+
```
|
|
987
|
+
|
|
988
|
+
#### Using the trigger_function_webhook_with_http_info variant
|
|
989
|
+
|
|
990
|
+
This returns an Array which contains the response data, status code and headers.
|
|
991
|
+
|
|
992
|
+
> <Array(<TriggerFunctionWebhook200Response>, Integer, Hash)> trigger_function_webhook_with_http_info(project_id, opts)
|
|
993
|
+
|
|
994
|
+
```ruby
|
|
995
|
+
begin
|
|
996
|
+
# Trigger webhook functions
|
|
997
|
+
data, status_code, headers = api_instance.trigger_function_webhook_with_http_info(project_id, opts)
|
|
998
|
+
p status_code # => 2xx
|
|
999
|
+
p headers # => { ... }
|
|
1000
|
+
p data # => <TriggerFunctionWebhook200Response>
|
|
1001
|
+
rescue Mudbase::ApiError => e
|
|
1002
|
+
puts "Error when calling FunctionsApi->trigger_function_webhook_with_http_info: #{e}"
|
|
1003
|
+
end
|
|
1004
|
+
```
|
|
1005
|
+
|
|
1006
|
+
### Parameters
|
|
1007
|
+
|
|
1008
|
+
| Name | Type | Description | Notes |
|
|
1009
|
+
| ---- | ---- | ----------- | ----- |
|
|
1010
|
+
| **project_id** | **String** | Project ID. | |
|
|
1011
|
+
| **x_webhook_secret** | **String** | Optional webhook secret for verification | [optional] |
|
|
1012
|
+
| **body** | **Object** | Payload sent to the triggered function(s). | [optional] |
|
|
1013
|
+
|
|
1014
|
+
### Return type
|
|
1015
|
+
|
|
1016
|
+
[**TriggerFunctionWebhook200Response**](TriggerFunctionWebhook200Response.md)
|
|
1017
|
+
|
|
1018
|
+
### Authorization
|
|
1019
|
+
|
|
1020
|
+
No authorization required
|
|
1021
|
+
|
|
1022
|
+
### HTTP request headers
|
|
1023
|
+
|
|
1024
|
+
- **Content-Type**: application/json, application/x-www-form-urlencoded, text/plain
|
|
1025
|
+
- **Accept**: application/json
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
## update_function
|
|
1029
|
+
|
|
1030
|
+
> <FunctionResponse> update_function(project_id, function_id, opts)
|
|
1031
|
+
|
|
1032
|
+
Update function
|
|
1033
|
+
|
|
1034
|
+
Update function configuration. Code changes are versioned automatically.
|
|
1035
|
+
|
|
1036
|
+
### Examples
|
|
1037
|
+
|
|
1038
|
+
```ruby
|
|
1039
|
+
require 'time'
|
|
1040
|
+
require 'mudbase'
|
|
1041
|
+
# setup authorization
|
|
1042
|
+
Mudbase.configure do |config|
|
|
1043
|
+
# Configure API key authorization: ApiKeyAuth
|
|
1044
|
+
config.api_key['X-API-Key'] = 'YOUR API KEY'
|
|
1045
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
|
1046
|
+
# config.api_key_prefix['X-API-Key'] = 'Bearer'
|
|
1047
|
+
|
|
1048
|
+
# Configure Bearer authorization (JWT): ProjectBearerAuth
|
|
1049
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
|
1050
|
+
end
|
|
1051
|
+
|
|
1052
|
+
api_instance = Mudbase::FunctionsApi.new
|
|
1053
|
+
project_id = 'project_id_example' # String | Project ID.
|
|
1054
|
+
function_id = 'function_id_example' # String | Function ID.
|
|
1055
|
+
opts = {
|
|
1056
|
+
update_function_request: Mudbase::UpdateFunctionRequest.new # UpdateFunctionRequest | Fields to update (name, description, code, trigger, environment, isActive, limits, retryPolicy).
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
begin
|
|
1060
|
+
# Update function
|
|
1061
|
+
result = api_instance.update_function(project_id, function_id, opts)
|
|
1062
|
+
p result
|
|
1063
|
+
rescue Mudbase::ApiError => e
|
|
1064
|
+
puts "Error when calling FunctionsApi->update_function: #{e}"
|
|
1065
|
+
end
|
|
1066
|
+
```
|
|
1067
|
+
|
|
1068
|
+
#### Using the update_function_with_http_info variant
|
|
1069
|
+
|
|
1070
|
+
This returns an Array which contains the response data, status code and headers.
|
|
1071
|
+
|
|
1072
|
+
> <Array(<FunctionResponse>, Integer, Hash)> update_function_with_http_info(project_id, function_id, opts)
|
|
1073
|
+
|
|
1074
|
+
```ruby
|
|
1075
|
+
begin
|
|
1076
|
+
# Update function
|
|
1077
|
+
data, status_code, headers = api_instance.update_function_with_http_info(project_id, function_id, opts)
|
|
1078
|
+
p status_code # => 2xx
|
|
1079
|
+
p headers # => { ... }
|
|
1080
|
+
p data # => <FunctionResponse>
|
|
1081
|
+
rescue Mudbase::ApiError => e
|
|
1082
|
+
puts "Error when calling FunctionsApi->update_function_with_http_info: #{e}"
|
|
1083
|
+
end
|
|
1084
|
+
```
|
|
1085
|
+
|
|
1086
|
+
### Parameters
|
|
1087
|
+
|
|
1088
|
+
| Name | Type | Description | Notes |
|
|
1089
|
+
| ---- | ---- | ----------- | ----- |
|
|
1090
|
+
| **project_id** | **String** | Project ID. | |
|
|
1091
|
+
| **function_id** | **String** | Function ID. | |
|
|
1092
|
+
| **update_function_request** | [**UpdateFunctionRequest**](UpdateFunctionRequest.md) | Fields to update (name, description, code, trigger, environment, isActive, limits, retryPolicy). | [optional] |
|
|
1093
|
+
|
|
1094
|
+
### Return type
|
|
1095
|
+
|
|
1096
|
+
[**FunctionResponse**](FunctionResponse.md)
|
|
1097
|
+
|
|
1098
|
+
### Authorization
|
|
1099
|
+
|
|
1100
|
+
[ApiKeyAuth](../README.md#ApiKeyAuth), [ProjectBearerAuth](../README.md#ProjectBearerAuth)
|
|
1101
|
+
|
|
1102
|
+
### HTTP request headers
|
|
1103
|
+
|
|
1104
|
+
- **Content-Type**: application/json
|
|
1105
|
+
- **Accept**: application/json
|
|
1106
|
+
|