mudbase 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +21 -0
- data/Rakefile +10 -0
- data/docs/ApiKey.md +36 -0
- data/docs/ApiKeyPermission.md +20 -0
- data/docs/ApiKeyUsage.md +20 -0
- data/docs/ApiKeyUsageResponse.md +24 -0
- data/docs/ApiKeyWithSecret.md +38 -0
- data/docs/AuthApi.md +1131 -0
- data/docs/AuthConfig.md +20 -0
- data/docs/AuthConfirmPasswordResetRequest.md +24 -0
- data/docs/AuthConvertAnonymous200Response.md +26 -0
- data/docs/AuthConvertAnonymousRequest.md +24 -0
- data/docs/AuthCreateAnonymous200Response.md +26 -0
- data/docs/AuthCreateAnonymous200ResponseUser.md +28 -0
- data/docs/AuthCreateAnonymousRequest.md +20 -0
- data/docs/AuthGetOAuthProviders200Response.md +20 -0
- data/docs/AuthGetOAuthProviders200ResponseProvidersInner.md +28 -0
- data/docs/AuthGetSession200Response.md +20 -0
- data/docs/AuthLogin200Response.md +26 -0
- data/docs/AuthLogin200ResponseUser.md +30 -0
- data/docs/AuthLogin403Response.md +22 -0
- data/docs/AuthLoginRequest.md +22 -0
- data/docs/AuthOauthCallback200Response.md +20 -0
- data/docs/AuthOauthInitiate200Response.md +18 -0
- data/docs/AuthOauthInitiate400Response.md +18 -0
- data/docs/AuthOauthSignupWithRole400Response.md +20 -0
- data/docs/AuthProvider.md +22 -0
- data/docs/AuthRefresh200Response.md +24 -0
- data/docs/AuthRefresh400Response.md +18 -0
- data/docs/AuthRefreshRequest.md +18 -0
- data/docs/AuthRegister201Response.md +28 -0
- data/docs/AuthRegister201ResponseUser.md +28 -0
- data/docs/AuthRegister429Response.md +30 -0
- data/docs/AuthRegisterRequest.md +26 -0
- data/docs/AuthRegisterWithRoleRequest.md +26 -0
- data/docs/AuthRequestPasswordResetRequest.md +20 -0
- data/docs/AuthResetPasswordRequest.md +20 -0
- data/docs/AuthResponse.md +26 -0
- data/docs/AuthVerifyMagicLinkRequest.md +18 -0
- data/docs/Billing.md +22 -0
- data/docs/BillingApi.md +677 -0
- data/docs/BillingCheckFeatureAccess200Response.md +20 -0
- data/docs/BillingCheckSubscription200Response.md +20 -0
- data/docs/BillingCheckSubscription200ResponseSubscription.md +20 -0
- data/docs/BillingCreateCheckoutSession200Response.md +20 -0
- data/docs/BillingCreateCheckoutSession200ResponseData.md +38 -0
- data/docs/BillingCreateCheckoutSession200ResponseDataPaymentOptionsInner.md +28 -0
- data/docs/BillingCreateCheckoutSessionRequest.md +26 -0
- data/docs/BillingCreateCheckoutSessionRequestCustomerInfo.md +20 -0
- data/docs/BillingGetCheckoutPayment200Response.md +20 -0
- data/docs/BillingGetCheckoutPayment200ResponseData.md +34 -0
- data/docs/BillingGetPublicPlans200Response.md +18 -0
- data/docs/BillingHandleCryptoWebhook200Response.md +18 -0
- data/docs/BillingHandleCryptoWebhookRequest.md +20 -0
- data/docs/BillingHandleCryptoWebhookRequestData.md +30 -0
- data/docs/BillingHandleFlutterwaveWebhookRequest.md +20 -0
- data/docs/BillingHandleFlutterwaveWebhookRequestData.md +32 -0
- data/docs/BillingHandleFlutterwaveWebhookRequestDataCustomer.md +20 -0
- data/docs/BillingInitializePaymentRequest.md +24 -0
- data/docs/BillingInitializePaymentRequestCustomer.md +20 -0
- data/docs/BillingLastPayment.md +22 -0
- data/docs/BillingRecordUsageRequest.md +22 -0
- data/docs/BillingVerifyPayment200Response.md +22 -0
- data/docs/BillingVerifyPayment200ResponseData.md +18 -0
- data/docs/BillingVerifyPayment200ResponseDataSubscription.md +24 -0
- data/docs/Bucket.md +28 -0
- data/docs/BucketListResponse.md +22 -0
- data/docs/BucketResponse.md +22 -0
- data/docs/ChangePasswordRequest.md +20 -0
- data/docs/ChatAddParticipant200Response.md +20 -0
- data/docs/ChatAddParticipant200ResponseData.md +18 -0
- data/docs/ChatAddParticipant200ResponseDataParticipantsInner.md +22 -0
- data/docs/ChatAddParticipantRequest.md +20 -0
- data/docs/ChatAddReaction200Response.md +20 -0
- data/docs/ChatAddReaction200ResponseDataInner.md +20 -0
- data/docs/ChatAddReactionRequest.md +18 -0
- data/docs/ChatApi.md +907 -0
- data/docs/ChatCreate201Response.md +20 -0
- data/docs/ChatCreate201ResponseData.md +26 -0
- data/docs/ChatCreateRequest.md +26 -0
- data/docs/ChatEditMessage200Response.md +20 -0
- data/docs/ChatEditMessage200ResponseData.md +22 -0
- data/docs/ChatEditMessageRequest.md +18 -0
- data/docs/ChatGet200Response.md +20 -0
- data/docs/ChatGet200ResponseData.md +22 -0
- data/docs/ChatGet200ResponseDataParticipantsInner.md +20 -0
- data/docs/ChatGetMessages200Response.md +20 -0
- data/docs/ChatGetMessages200ResponseData.md +20 -0
- data/docs/ChatGetMessages200ResponseDataMessagesInner.md +24 -0
- data/docs/ChatGetMessages200ResponseDataMessagesInnerSender.md +20 -0
- data/docs/ChatList200Response.md +20 -0
- data/docs/ChatList200ResponseData.md +20 -0
- data/docs/ChatList200ResponseDataChatsInner.md +26 -0
- data/docs/ChatList200ResponseDataChatsInnerLastMessage.md +18 -0
- data/docs/ChatMarkAsRead200Response.md +20 -0
- data/docs/ChatMarkAsRead200ResponseData.md +18 -0
- data/docs/ChatMarkAsReadRequest.md +18 -0
- data/docs/ChatRemoveParticipantRequest.md +18 -0
- data/docs/ChatRemoveReaction200Response.md +20 -0
- data/docs/ChatRemoveReaction200ResponseDataInner.md +22 -0
- data/docs/ChatSendMessage201Response.md +20 -0
- data/docs/ChatSendMessage201ResponseData.md +24 -0
- data/docs/ChatSendMessageRequest.md +24 -0
- data/docs/Collection.md +34 -0
- data/docs/CollectionsApi.md +367 -0
- data/docs/CollectionsCreate201Response.md +20 -0
- data/docs/CollectionsList200Response.md +20 -0
- data/docs/ComplianceApi.md +77 -0
- data/docs/ComplianceLogSecurityEvent200Response.md +20 -0
- data/docs/ComplianceLogSecurityEvent200ResponseEvent.md +24 -0
- data/docs/ComplianceLogSecurityEventRequest.md +22 -0
- data/docs/ComplianceLogSecurityEventRequestDetails.md +28 -0
- data/docs/ConfirmUploadResponse.md +22 -0
- data/docs/ConfirmUploadResponseScan.md +24 -0
- data/docs/CreateApiKeyRequest.md +26 -0
- data/docs/CreateBucketRequest.md +22 -0
- data/docs/CreateCollectionRequest.md +26 -0
- data/docs/CreateFunctionRequest.md +26 -0
- data/docs/CreateProjectRequest.md +22 -0
- data/docs/DataApi.md +387 -0
- data/docs/DataListResponse.md +20 -0
- data/docs/DataListResponseDataInner.md +22 -0
- data/docs/DataResponse.md +20 -0
- data/docs/DatabaseConfig.md +18 -0
- data/docs/EmailRequest.md +28 -0
- data/docs/EmailRequestTo.md +49 -0
- data/docs/Error.md +28 -0
- data/docs/ErrorDetails.md +49 -0
- data/docs/Field.md +30 -0
- data/docs/FieldDefault.md +51 -0
- data/docs/FileListResponse.md +20 -0
- data/docs/FileMetadata.md +40 -0
- data/docs/FileResponse.md +20 -0
- data/docs/FileUploadResponse.md +20 -0
- data/docs/Function.md +36 -0
- data/docs/FunctionExecution.md +38 -0
- data/docs/FunctionExecutionResponse.md +20 -0
- data/docs/FunctionExecutionResponseData.md +24 -0
- data/docs/FunctionListResponse.md +20 -0
- data/docs/FunctionListResponseData.md +20 -0
- data/docs/FunctionLogsResponse.md +20 -0
- data/docs/FunctionLogsResponseData.md +20 -0
- data/docs/FunctionResponse.md +20 -0
- data/docs/FunctionStats.md +26 -0
- data/docs/FunctionTrigger.md +30 -0
- data/docs/FunctionsApi.md +1106 -0
- data/docs/FunctionsDelete200Response.md +20 -0
- data/docs/FunctionsExecuteRequest.md +18 -0
- data/docs/FunctionsGetVersions200Response.md +20 -0
- data/docs/FunctionsGetVersions200ResponseData.md +18 -0
- data/docs/FunctionsGetVersions200ResponseDataVersionsInner.md +28 -0
- data/docs/FunctionsRollbackRequest.md +18 -0
- data/docs/FunctionsSimulateRequest.md +22 -0
- data/docs/FunctionsTriggerWebhook200Response.md +22 -0
- data/docs/FunctionsTriggerWebhook400Response.md +20 -0
- data/docs/FunctionsTriggerWebhook401Response.md +20 -0
- data/docs/HealthApi.md +136 -0
- data/docs/HealthResponse.md +26 -0
- data/docs/HealthResponseServices.md +26 -0
- data/docs/IntegrationsApi.md +151 -0
- data/docs/IntegrationsExecuteRequest.md +24 -0
- data/docs/IntegrationsList200Response.md +18 -0
- data/docs/IntegrationsList200ResponseIntegrationsInner.md +24 -0
- data/docs/InviteMemberRequest.md +20 -0
- data/docs/Limits.md +30 -0
- data/docs/LoginRequest.md +20 -0
- data/docs/MagicLinkRequest.md +22 -0
- data/docs/Message.md +36 -0
- data/docs/MessageHistoryResponse.md +20 -0
- data/docs/MessageHistoryResponseData.md +20 -0
- data/docs/MessageResponse.md +18 -0
- data/docs/MessageSentResponse.md +20 -0
- data/docs/MessageSentResponseData.md +32 -0
- data/docs/MessageStatsResponse.md +20 -0
- data/docs/MessageStatsResponseData.md +26 -0
- data/docs/MessageStatsResponseDataByStatus.md +22 -0
- data/docs/MessageStatsResponseDataByType.md +22 -0
- data/docs/MessageStatsResponseDataPeriod.md +20 -0
- data/docs/MessagingApi.md +379 -0
- data/docs/MultiRoleAddRoleRequest.md +28 -0
- data/docs/MultiRoleAddRoleRequestDefaultPermissionsInner.md +20 -0
- data/docs/MultiRoleApi.md +654 -0
- data/docs/MultiRoleGetAvailableRoles200Response.md +20 -0
- data/docs/MultiRoleGetAvailableRoles200ResponseDataInner.md +30 -0
- data/docs/MultiRoleGetConfig200Response.md +20 -0
- data/docs/MultiRoleGetConfig200ResponseData.md +24 -0
- data/docs/MultiRoleToggleRoleRequest.md +18 -0
- data/docs/MultiRoleUpdateCollectionPermissionsRequest.md +20 -0
- data/docs/MultiRoleUpdateRoleRequest.md +28 -0
- data/docs/MultiRoleUpdateSettings200Response.md +22 -0
- data/docs/MultiRoleUpdateSettingsRequest.md +22 -0
- data/docs/MultiRoleUpdateSettingsRequestSettings.md +20 -0
- data/docs/NonCustodialAddress.md +40 -0
- data/docs/NonCustodialAddressResponse.md +22 -0
- data/docs/OTPSendRequest.md +24 -0
- data/docs/OTPVerifyRequest.md +22 -0
- data/docs/Organization.md +42 -0
- data/docs/OrganizationSummary.md +22 -0
- data/docs/Pagination.md +24 -0
- data/docs/PaymentIntent.md +52 -0
- data/docs/PaymentRefund.md +46 -0
- data/docs/PaymentSubscription.md +46 -0
- data/docs/Permission.md +24 -0
- data/docs/Plan.md +26 -0
- data/docs/PresignedPostResponse.md +24 -0
- data/docs/Project.md +40 -0
- data/docs/ProjectSettings.md +30 -0
- data/docs/ProjectSummary.md +22 -0
- data/docs/ProjectUsage.md +26 -0
- data/docs/ProjectUsageResponse.md +20 -0
- data/docs/ProjectUsageStatsResponse.md +22 -0
- data/docs/ProjectUsageStatsResponseProject.md +20 -0
- data/docs/PushNotificationRequest.md +26 -0
- data/docs/RateLimit.md +20 -0
- data/docs/RealtimeAnalyticsApi.md +367 -0
- data/docs/RealtimeAnalyticsCheckUserPresence200Response.md +20 -0
- data/docs/RealtimeAnalyticsCheckUserPresence200ResponsePresenceValue.md +20 -0
- data/docs/RealtimeAnalyticsCheckUserPresenceRequest.md +18 -0
- data/docs/RealtimeAnalyticsGetActiveUsers200Response.md +22 -0
- data/docs/RealtimeAnalyticsGetActiveUsers200ResponseUsersInner.md +22 -0
- data/docs/RealtimeAnalyticsGetEventThroughput200Response.md +26 -0
- data/docs/RealtimeAnalyticsGetHistoricalAnalytics200Response.md +24 -0
- data/docs/RealtimeAnalyticsGetHistoricalAnalytics200ResponseDataInner.md +22 -0
- data/docs/RealtimeAnalyticsGetProject200Response.md +26 -0
- data/docs/RegisterRequest.md +26 -0
- data/docs/RoleElevationApi.md +224 -0
- data/docs/RoleElevationGetStatus200Response.md +18 -0
- data/docs/RoleElevationRequest200Response.md +28 -0
- data/docs/RoleElevationRequestRequest.md +18 -0
- data/docs/RoleElevationUploadDocumentsRequest.md +20 -0
- data/docs/RoleElevationUploadDocumentsRequestDocumentsInner.md +20 -0
- data/docs/SMSRequest.md +22 -0
- data/docs/SearchApi.md +239 -0
- data/docs/SearchGetAnalytics200Response.md +24 -0
- data/docs/SearchGetAnalytics200ResponseTopQueriesInner.md +20 -0
- data/docs/SearchGetSuggestions200Response.md +18 -0
- data/docs/SearchResponse.md +20 -0
- data/docs/SearchResponseData.md +24 -0
- data/docs/SearchResult.md +22 -0
- data/docs/SearchResultItem.md +20 -0
- data/docs/SessionResponse.md +20 -0
- data/docs/SignedUrlResponse.md +24 -0
- data/docs/StorageApi.md +1080 -0
- data/docs/StorageConfig.md +18 -0
- data/docs/StorageConfirmUpload400Response.md +20 -0
- data/docs/StorageConfirmUploadRequest.md +30 -0
- data/docs/StorageDownloadBucketFile403Response.md +18 -0
- data/docs/StorageDownloadBucketFile404Response.md +18 -0
- data/docs/StorageGetPresignedUploadRequest.md +26 -0
- data/docs/StorageGetSignedUrlRequest.md +18 -0
- data/docs/SystemStatusResponse.md +20 -0
- data/docs/SystemStatusResponseData.md +28 -0
- data/docs/SystemStatusResponseDataCpu.md +20 -0
- data/docs/SystemStatusResponseDataDatabase.md +22 -0
- data/docs/SystemStatusResponseDataMemory.md +22 -0
- data/docs/SystemStatusResponseDataRequests.md +24 -0
- data/docs/SystemStatusResponseDataStorage.md +22 -0
- data/docs/TriggerWebhookRequest.md +26 -0
- data/docs/TwoFASetupResponse.md +22 -0
- data/docs/UpdateApiKeyRequest.md +24 -0
- data/docs/UpdateBucketRequest.md +22 -0
- data/docs/UpdateCollectionRequest.md +24 -0
- data/docs/UpdateFunctionRequest.md +34 -0
- data/docs/UpdateFunctionRequestLimits.md +24 -0
- data/docs/UpdateFunctionRequestRetryPolicy.md +22 -0
- data/docs/UpdateOrganizationRequest.md +26 -0
- data/docs/UpdateProjectRequest.md +26 -0
- data/docs/UpdateUserRequest.md +22 -0
- data/docs/UploadFilesToBucketMetadataRequest.md +20 -0
- data/docs/UploadFilesToBucketRequest.md +22 -0
- data/docs/Usage.md +30 -0
- data/docs/UsageApi.md +153 -0
- data/docs/UsageResponse.md +24 -0
- data/docs/UsageStatsResponse.md +26 -0
- data/docs/UsageStatsResponsePercentages.md +22 -0
- data/docs/UsageTrendsResponse.md +20 -0
- data/docs/UsageTrendsResponseTrendsInner.md +28 -0
- data/docs/UsageTrendsResponseTrendsInnerId.md +22 -0
- data/docs/User.md +44 -0
- data/docs/UserSummary.md +24 -0
- data/docs/UsersApi.md +901 -0
- data/docs/UsersDisable2faRequest.md +20 -0
- data/docs/UsersEraseData200Response.md +20 -0
- data/docs/UsersEraseData200ResponseDetails.md +26 -0
- data/docs/UsersEraseDataRequest.md +20 -0
- data/docs/UsersExportData200Response.md +32 -0
- data/docs/UsersGet200Response.md +18 -0
- data/docs/UsersLinkOAuthProvider200Response.md +18 -0
- data/docs/UsersListOAuthProviders200Response.md +18 -0
- data/docs/UsersListOAuthProviders200ResponseProvidersInner.md +24 -0
- data/docs/UsersUnlinkOAuthProvider200Response.md +20 -0
- data/docs/UsersUpdate200Response.md +20 -0
- data/docs/UsersVerify2faRequest.md +18 -0
- data/docs/UsersVerifyEmailRequest.md +20 -0
- data/docs/WalletApi.md +1232 -0
- data/docs/WalletBalance.md +30 -0
- data/docs/WalletBroadcastTransaction200Response.md +22 -0
- data/docs/WalletBroadcastTransaction200ResponseData.md +24 -0
- data/docs/WalletBroadcastTransactionRequest.md +22 -0
- data/docs/WalletCreateWebhook201Response.md +22 -0
- data/docs/WalletCreateWebhookRequest.md +26 -0
- data/docs/WalletCreateWebhookRequestFilters.md +20 -0
- data/docs/WalletEstimateGas200Response.md +20 -0
- data/docs/WalletEstimateGas200ResponseData.md +38 -0
- data/docs/WalletEstimateGasRequest.md +20 -0
- data/docs/WalletEstimateGasRequestTransaction.md +28 -0
- data/docs/WalletGetBalance200Response.md +20 -0
- data/docs/WalletGetCancelParams200Response.md +20 -0
- data/docs/WalletGetCancelParams200ResponseData.md +36 -0
- data/docs/WalletGetCancelParamsRequest.md +22 -0
- data/docs/WalletGetSpeedUpParams200Response.md +20 -0
- data/docs/WalletGetSpeedUpParams200ResponseData.md +36 -0
- data/docs/WalletGetSpeedUpParamsRequest.md +22 -0
- data/docs/WalletGetTransactionByHash200Response.md +20 -0
- data/docs/WalletGetTransactionByHash400Response.md +20 -0
- data/docs/WalletGetTransactions200Response.md +22 -0
- data/docs/WalletGetTransactions200ResponsePagination.md +30 -0
- data/docs/WalletGetWebhookLogs200Response.md +20 -0
- data/docs/WalletListAddresses200Response.md +22 -0
- data/docs/WalletListWebhooks200Response.md +22 -0
- data/docs/WalletRegisterAddressRequest.md +26 -0
- data/docs/WalletTestWebhook200Response.md +20 -0
- data/docs/WalletTestWebhookRequest.md +24 -0
- data/docs/WalletTransaction.md +58 -0
- data/docs/WalletTransactionWebhookPayload.md +22 -0
- data/docs/WalletUpdateWebhook200Response.md +20 -0
- data/docs/WalletUpdateWebhookRequest.md +24 -0
- data/docs/WalletWebhook.md +32 -0
- data/docs/WalletWebhookFilters.md +20 -0
- data/docs/WalletWebhookStats.md +24 -0
- data/docs/WebhookListResponse.md +26 -0
- data/docs/WebhookLog.md +42 -0
- data/docs/WebhookStatsResponse.md +22 -0
- data/docs/WebhookStatsResponseEventStatsInner.md +22 -0
- data/docs/WebhookStatsResponseStatusStatsInner.md +22 -0
- data/docs/WebhooksApi.md +81 -0
- data/git_push.sh +57 -0
- data/lib/mudbase/api/auth_api.rb +1158 -0
- data/lib/mudbase/api/billing_api.rb +729 -0
- data/lib/mudbase/api/chat_api.rb +968 -0
- data/lib/mudbase/api/collections_api.rb +377 -0
- data/lib/mudbase/api/compliance_api.rb +90 -0
- data/lib/mudbase/api/data_api.rb +423 -0
- data/lib/mudbase/api/functions_api.rb +1054 -0
- data/lib/mudbase/api/health_api.rb +136 -0
- data/lib/mudbase/api/integrations_api.rb +165 -0
- data/lib/mudbase/api/messaging_api.rb +396 -0
- data/lib/mudbase/api/multi_role_api.rb +699 -0
- data/lib/mudbase/api/realtime_analytics_api.rb +358 -0
- data/lib/mudbase/api/role_elevation_api.rb +236 -0
- data/lib/mudbase/api/search_api.rb +263 -0
- data/lib/mudbase/api/storage_api.rb +1047 -0
- data/lib/mudbase/api/usage_api.rb +152 -0
- data/lib/mudbase/api/users_api.rb +854 -0
- data/lib/mudbase/api/wallet_api.rb +1161 -0
- data/lib/mudbase/api/webhooks_api.rb +85 -0
- data/lib/mudbase/api_client.rb +397 -0
- data/lib/mudbase/api_error.rb +58 -0
- data/lib/mudbase/api_model_base.rb +88 -0
- data/lib/mudbase/configuration.rb +316 -0
- data/lib/mudbase/models/api_key.rb +231 -0
- data/lib/mudbase/models/api_key_permission.rb +209 -0
- data/lib/mudbase/models/api_key_usage.rb +157 -0
- data/lib/mudbase/models/api_key_usage_response.rb +175 -0
- data/lib/mudbase/models/api_key_with_secret.rb +247 -0
- data/lib/mudbase/models/auth_config.rb +162 -0
- data/lib/mudbase/models/auth_confirm_password_reset_request.rb +280 -0
- data/lib/mudbase/models/auth_convert_anonymous200_response.rb +183 -0
- data/lib/mudbase/models/auth_convert_anonymous_request.rb +208 -0
- data/lib/mudbase/models/auth_create_anonymous200_response.rb +184 -0
- data/lib/mudbase/models/auth_create_anonymous200_response_user.rb +192 -0
- data/lib/mudbase/models/auth_create_anonymous_request.rb +158 -0
- data/lib/mudbase/models/auth_get_o_auth_providers200_response.rb +158 -0
- data/lib/mudbase/models/auth_get_o_auth_providers200_response_providers_inner.rb +196 -0
- data/lib/mudbase/models/auth_get_session200_response.rb +156 -0
- data/lib/mudbase/models/auth_login200_response.rb +186 -0
- data/lib/mudbase/models/auth_login200_response_user.rb +201 -0
- data/lib/mudbase/models/auth_login403_response.rb +165 -0
- data/lib/mudbase/models/auth_login_request.rb +199 -0
- data/lib/mudbase/models/auth_oauth_callback200_response.rb +156 -0
- data/lib/mudbase/models/auth_oauth_initiate200_response.rb +148 -0
- data/lib/mudbase/models/auth_oauth_initiate400_response.rb +147 -0
- data/lib/mudbase/models/auth_oauth_signup_with_role400_response.rb +156 -0
- data/lib/mudbase/models/auth_provider.rb +166 -0
- data/lib/mudbase/models/auth_refresh200_response.rb +177 -0
- data/lib/mudbase/models/auth_refresh400_response.rb +147 -0
- data/lib/mudbase/models/auth_refresh_request.rb +165 -0
- data/lib/mudbase/models/auth_register201_response.rb +196 -0
- data/lib/mudbase/models/auth_register201_response_user.rb +192 -0
- data/lib/mudbase/models/auth_register429_response.rb +226 -0
- data/lib/mudbase/models/auth_register_request.rb +277 -0
- data/lib/mudbase/models/auth_register_with_role_request.rb +268 -0
- data/lib/mudbase/models/auth_request_password_reset_request.rb +174 -0
- data/lib/mudbase/models/auth_reset_password_request.rb +182 -0
- data/lib/mudbase/models/auth_response.rb +187 -0
- data/lib/mudbase/models/auth_verify_magic_link_request.rb +164 -0
- data/lib/mudbase/models/billing.rb +166 -0
- data/lib/mudbase/models/billing_check_feature_access200_response.rb +156 -0
- data/lib/mudbase/models/billing_check_subscription200_response.rb +156 -0
- data/lib/mudbase/models/billing_check_subscription200_response_subscription.rb +156 -0
- data/lib/mudbase/models/billing_create_checkout_session200_response.rb +156 -0
- data/lib/mudbase/models/billing_create_checkout_session200_response_data.rb +245 -0
- data/lib/mudbase/models/billing_create_checkout_session200_response_data_payment_options_inner.rb +238 -0
- data/lib/mudbase/models/billing_create_checkout_session_request.rb +262 -0
- data/lib/mudbase/models/billing_create_checkout_session_request_customer_info.rb +173 -0
- data/lib/mudbase/models/billing_get_checkout_payment200_response.rb +156 -0
- data/lib/mudbase/models/billing_get_checkout_payment200_response_data.rb +224 -0
- data/lib/mudbase/models/billing_get_public_plans200_response.rb +149 -0
- data/lib/mudbase/models/billing_handle_crypto_webhook200_response.rb +147 -0
- data/lib/mudbase/models/billing_handle_crypto_webhook_request.rb +214 -0
- data/lib/mudbase/models/billing_handle_crypto_webhook_request_data.rb +201 -0
- data/lib/mudbase/models/billing_handle_flutterwave_webhook_request.rb +157 -0
- data/lib/mudbase/models/billing_handle_flutterwave_webhook_request_data.rb +211 -0
- data/lib/mudbase/models/billing_handle_flutterwave_webhook_request_data_customer.rb +156 -0
- data/lib/mudbase/models/billing_initialize_payment_request.rb +219 -0
- data/lib/mudbase/models/billing_initialize_payment_request_customer.rb +173 -0
- data/lib/mudbase/models/billing_last_payment.rb +165 -0
- data/lib/mudbase/models/billing_record_usage_request.rb +219 -0
- data/lib/mudbase/models/billing_verify_payment200_response.rb +165 -0
- data/lib/mudbase/models/billing_verify_payment200_response_data.rb +147 -0
- data/lib/mudbase/models/billing_verify_payment200_response_data_subscription.rb +208 -0
- data/lib/mudbase/models/bucket.rb +193 -0
- data/lib/mudbase/models/bucket_list_response.rb +168 -0
- data/lib/mudbase/models/bucket_response.rb +166 -0
- data/lib/mudbase/models/change_password_request.rb +200 -0
- data/lib/mudbase/models/chat_add_participant200_response.rb +156 -0
- data/lib/mudbase/models/chat_add_participant200_response_data.rb +149 -0
- data/lib/mudbase/models/chat_add_participant200_response_data_participants_inner.rb +165 -0
- data/lib/mudbase/models/chat_add_participant_request.rb +207 -0
- data/lib/mudbase/models/chat_add_reaction200_response.rb +158 -0
- data/lib/mudbase/models/chat_add_reaction200_response_data_inner.rb +158 -0
- data/lib/mudbase/models/chat_add_reaction_request.rb +164 -0
- data/lib/mudbase/models/chat_create201_response.rb +156 -0
- data/lib/mudbase/models/chat_create201_response_data.rb +185 -0
- data/lib/mudbase/models/chat_create_request.rb +260 -0
- data/lib/mudbase/models/chat_edit_message200_response.rb +156 -0
- data/lib/mudbase/models/chat_edit_message200_response_data.rb +165 -0
- data/lib/mudbase/models/chat_edit_message_request.rb +164 -0
- data/lib/mudbase/models/chat_get200_response.rb +156 -0
- data/lib/mudbase/models/chat_get200_response_data.rb +167 -0
- data/lib/mudbase/models/chat_get200_response_data_participants_inner.rb +156 -0
- data/lib/mudbase/models/chat_get_messages200_response.rb +156 -0
- data/lib/mudbase/models/chat_get_messages200_response_data.rb +158 -0
- data/lib/mudbase/models/chat_get_messages200_response_data_messages_inner.rb +174 -0
- data/lib/mudbase/models/chat_get_messages200_response_data_messages_inner_sender.rb +156 -0
- data/lib/mudbase/models/chat_list200_response.rb +156 -0
- data/lib/mudbase/models/chat_list200_response_data.rb +158 -0
- data/lib/mudbase/models/chat_list200_response_data_chats_inner.rb +183 -0
- data/lib/mudbase/models/chat_list200_response_data_chats_inner_last_message.rb +147 -0
- data/lib/mudbase/models/chat_mark_as_read200_response.rb +156 -0
- data/lib/mudbase/models/chat_mark_as_read200_response_data.rb +147 -0
- data/lib/mudbase/models/chat_mark_as_read_request.rb +166 -0
- data/lib/mudbase/models/chat_remove_participant_request.rb +164 -0
- data/lib/mudbase/models/chat_remove_reaction200_response.rb +158 -0
- data/lib/mudbase/models/chat_remove_reaction200_response_data_inner.rb +167 -0
- data/lib/mudbase/models/chat_send_message201_response.rb +156 -0
- data/lib/mudbase/models/chat_send_message201_response_data.rb +174 -0
- data/lib/mudbase/models/chat_send_message_request.rb +234 -0
- data/lib/mudbase/models/collection.rb +224 -0
- data/lib/mudbase/models/collections_create201_response.rb +156 -0
- data/lib/mudbase/models/collections_list200_response.rb +158 -0
- data/lib/mudbase/models/compliance_log_security_event200_response.rb +156 -0
- data/lib/mudbase/models/compliance_log_security_event200_response_event.rb +174 -0
- data/lib/mudbase/models/compliance_log_security_event_request.rb +225 -0
- data/lib/mudbase/models/compliance_log_security_event_request_details.rb +192 -0
- data/lib/mudbase/models/confirm_upload_response.rb +200 -0
- data/lib/mudbase/models/confirm_upload_response_scan.rb +176 -0
- data/lib/mudbase/models/create_api_key_request.rb +252 -0
- data/lib/mudbase/models/create_bucket_request.rb +188 -0
- data/lib/mudbase/models/create_collection_request.rb +222 -0
- data/lib/mudbase/models/create_function_request.rb +239 -0
- data/lib/mudbase/models/create_project_request.rb +183 -0
- data/lib/mudbase/models/data_list_response.rb +159 -0
- data/lib/mudbase/models/data_list_response_data_inner.rb +169 -0
- data/lib/mudbase/models/data_response.rb +157 -0
- data/lib/mudbase/models/database_config.rb +150 -0
- data/lib/mudbase/models/email_request.rb +227 -0
- data/lib/mudbase/models/email_request_to.rb +104 -0
- data/lib/mudbase/models/error.rb +211 -0
- data/lib/mudbase/models/error_details.rb +104 -0
- data/lib/mudbase/models/field.rb +260 -0
- data/lib/mudbase/models/field_default.rb +105 -0
- data/lib/mudbase/models/file_list_response.rb +159 -0
- data/lib/mudbase/models/file_metadata.rb +247 -0
- data/lib/mudbase/models/file_response.rb +157 -0
- data/lib/mudbase/models/file_upload_response.rb +157 -0
- data/lib/mudbase/models/function.rb +229 -0
- data/lib/mudbase/models/function_execution.rb +272 -0
- data/lib/mudbase/models/function_execution_response.rb +157 -0
- data/lib/mudbase/models/function_execution_response_data.rb +175 -0
- data/lib/mudbase/models/function_list_response.rb +157 -0
- data/lib/mudbase/models/function_list_response_data.rb +158 -0
- data/lib/mudbase/models/function_logs_response.rb +157 -0
- data/lib/mudbase/models/function_logs_response_data.rb +158 -0
- data/lib/mudbase/models/function_response.rb +157 -0
- data/lib/mudbase/models/function_stats.rb +184 -0
- data/lib/mudbase/models/function_trigger.rb +261 -0
- data/lib/mudbase/models/functions_delete200_response.rb +156 -0
- data/lib/mudbase/models/functions_execute_request.rb +148 -0
- data/lib/mudbase/models/functions_get_versions200_response.rb +156 -0
- data/lib/mudbase/models/functions_get_versions200_response_data.rb +149 -0
- data/lib/mudbase/models/functions_get_versions200_response_data_versions_inner.rb +192 -0
- data/lib/mudbase/models/functions_rollback_request.rb +165 -0
- data/lib/mudbase/models/functions_simulate_request.rb +168 -0
- data/lib/mudbase/models/functions_trigger_webhook200_response.rb +168 -0
- data/lib/mudbase/models/functions_trigger_webhook400_response.rb +156 -0
- data/lib/mudbase/models/functions_trigger_webhook401_response.rb +156 -0
- data/lib/mudbase/models/health_response.rb +218 -0
- data/lib/mudbase/models/health_response_services.rb +183 -0
- data/lib/mudbase/models/integrations_execute_request.rb +232 -0
- data/lib/mudbase/models/integrations_list200_response.rb +149 -0
- data/lib/mudbase/models/integrations_list200_response_integrations_inner.rb +174 -0
- data/lib/mudbase/models/invite_member_request.rb +215 -0
- data/lib/mudbase/models/limits.rb +202 -0
- data/lib/mudbase/models/login_request.rb +191 -0
- data/lib/mudbase/models/magic_link_request.rb +200 -0
- data/lib/mudbase/models/message.rb +275 -0
- data/lib/mudbase/models/message_history_response.rb +157 -0
- data/lib/mudbase/models/message_history_response_data.rb +158 -0
- data/lib/mudbase/models/message_response.rb +148 -0
- data/lib/mudbase/models/message_sent_response.rb +157 -0
- data/lib/mudbase/models/message_sent_response_data.rb +210 -0
- data/lib/mudbase/models/message_stats_response.rb +157 -0
- data/lib/mudbase/models/message_stats_response_data.rb +183 -0
- data/lib/mudbase/models/message_stats_response_data_by_status.rb +165 -0
- data/lib/mudbase/models/message_stats_response_data_by_type.rb +165 -0
- data/lib/mudbase/models/message_stats_response_data_period.rb +156 -0
- data/lib/mudbase/models/multi_role_add_role_request.rb +245 -0
- data/lib/mudbase/models/multi_role_add_role_request_default_permissions_inner.rb +158 -0
- data/lib/mudbase/models/multi_role_get_available_roles200_response.rb +158 -0
- data/lib/mudbase/models/multi_role_get_available_roles200_response_data_inner.rb +201 -0
- data/lib/mudbase/models/multi_role_get_config200_response.rb +156 -0
- data/lib/mudbase/models/multi_role_get_config200_response_data.rb +176 -0
- data/lib/mudbase/models/multi_role_toggle_role_request.rb +164 -0
- data/lib/mudbase/models/multi_role_update_collection_permissions_request.rb +180 -0
- data/lib/mudbase/models/multi_role_update_role_request.rb +192 -0
- data/lib/mudbase/models/multi_role_update_settings200_response.rb +165 -0
- data/lib/mudbase/models/multi_role_update_settings_request.rb +165 -0
- data/lib/mudbase/models/multi_role_update_settings_request_settings.rb +156 -0
- data/lib/mudbase/models/non_custodial_address.rb +284 -0
- data/lib/mudbase/models/non_custodial_address_response.rb +166 -0
- data/lib/mudbase/models/organization.rb +257 -0
- data/lib/mudbase/models/organization_summary.rb +166 -0
- data/lib/mudbase/models/otp_send_request.rb +233 -0
- data/lib/mudbase/models/otp_verify_request.rb +200 -0
- data/lib/mudbase/models/pagination.rb +175 -0
- data/lib/mudbase/models/payment_intent.rb +393 -0
- data/lib/mudbase/models/payment_refund.rb +319 -0
- data/lib/mudbase/models/payment_subscription.rb +357 -0
- data/lib/mudbase/models/permission.rb +201 -0
- data/lib/mudbase/models/plan.rb +186 -0
- data/lib/mudbase/models/presigned_post_response.rb +179 -0
- data/lib/mudbase/models/project.rb +247 -0
- data/lib/mudbase/models/project_settings.rb +254 -0
- data/lib/mudbase/models/project_summary.rb +166 -0
- data/lib/mudbase/models/project_usage.rb +184 -0
- data/lib/mudbase/models/project_usage_response.rb +157 -0
- data/lib/mudbase/models/project_usage_stats_response.rb +166 -0
- data/lib/mudbase/models/project_usage_stats_response_project.rb +156 -0
- data/lib/mudbase/models/push_notification_request.rb +237 -0
- data/lib/mudbase/models/rate_limit.rb +157 -0
- data/lib/mudbase/models/realtime_analytics_check_user_presence200_response.rb +158 -0
- data/lib/mudbase/models/realtime_analytics_check_user_presence200_response_presence_value.rb +156 -0
- data/lib/mudbase/models/realtime_analytics_check_user_presence_request.rb +166 -0
- data/lib/mudbase/models/realtime_analytics_get_active_users200_response.rb +167 -0
- data/lib/mudbase/models/realtime_analytics_get_active_users200_response_users_inner.rb +165 -0
- data/lib/mudbase/models/realtime_analytics_get_event_throughput200_response.rb +185 -0
- data/lib/mudbase/models/realtime_analytics_get_historical_analytics200_response.rb +176 -0
- data/lib/mudbase/models/realtime_analytics_get_historical_analytics200_response_data_inner.rb +165 -0
- data/lib/mudbase/models/realtime_analytics_get_project200_response.rb +183 -0
- data/lib/mudbase/models/register_request.rb +261 -0
- data/lib/mudbase/models/role_elevation_get_status200_response.rb +149 -0
- data/lib/mudbase/models/role_elevation_request200_response.rb +240 -0
- data/lib/mudbase/models/role_elevation_request_request.rb +164 -0
- data/lib/mudbase/models/role_elevation_upload_documents_request.rb +192 -0
- data/lib/mudbase/models/role_elevation_upload_documents_request_documents_inner.rb +156 -0
- data/lib/mudbase/models/search_get_analytics200_response.rb +176 -0
- data/lib/mudbase/models/search_get_analytics200_response_top_queries_inner.rb +156 -0
- data/lib/mudbase/models/search_get_suggestions200_response.rb +149 -0
- data/lib/mudbase/models/search_response.rb +157 -0
- data/lib/mudbase/models/search_response_data.rb +176 -0
- data/lib/mudbase/models/search_result.rb +166 -0
- data/lib/mudbase/models/search_result_item.rb +156 -0
- data/lib/mudbase/models/session_response.rb +157 -0
- data/lib/mudbase/models/signed_url_response.rb +178 -0
- data/lib/mudbase/models/sms_request.rb +200 -0
- data/lib/mudbase/models/storage_config.rb +150 -0
- data/lib/mudbase/models/storage_confirm_upload400_response.rb +156 -0
- data/lib/mudbase/models/storage_confirm_upload_request.rb +236 -0
- data/lib/mudbase/models/storage_download_bucket_file403_response.rb +147 -0
- data/lib/mudbase/models/storage_download_bucket_file404_response.rb +147 -0
- data/lib/mudbase/models/storage_get_presigned_upload_request.rb +221 -0
- data/lib/mudbase/models/storage_get_signed_url_request.rb +149 -0
- data/lib/mudbase/models/system_status_response.rb +157 -0
- data/lib/mudbase/models/system_status_response_data.rb +192 -0
- data/lib/mudbase/models/system_status_response_data_cpu.rb +156 -0
- data/lib/mudbase/models/system_status_response_data_database.rb +165 -0
- data/lib/mudbase/models/system_status_response_data_memory.rb +165 -0
- data/lib/mudbase/models/system_status_response_data_requests.rb +174 -0
- data/lib/mudbase/models/system_status_response_data_storage.rb +165 -0
- data/lib/mudbase/models/trigger_webhook_request.rb +254 -0
- data/lib/mudbase/models/two_fa_setup_response.rb +166 -0
- data/lib/mudbase/models/update_api_key_request.rb +205 -0
- data/lib/mudbase/models/update_bucket_request.rb +169 -0
- data/lib/mudbase/models/update_collection_request.rb +179 -0
- data/lib/mudbase/models/update_function_request.rb +221 -0
- data/lib/mudbase/models/update_function_request_limits.rb +176 -0
- data/lib/mudbase/models/update_function_request_retry_policy.rb +165 -0
- data/lib/mudbase/models/update_organization_request.rb +185 -0
- data/lib/mudbase/models/update_project_request.rb +185 -0
- data/lib/mudbase/models/update_user_request.rb +166 -0
- data/lib/mudbase/models/upload_files_to_bucket_metadata_request.rb +159 -0
- data/lib/mudbase/models/upload_files_to_bucket_request.rb +187 -0
- data/lib/mudbase/models/usage.rb +202 -0
- data/lib/mudbase/models/usage_response.rb +175 -0
- data/lib/mudbase/models/usage_stats_response.rb +184 -0
- data/lib/mudbase/models/usage_stats_response_percentages.rb +165 -0
- data/lib/mudbase/models/usage_trends_response.rb +159 -0
- data/lib/mudbase/models/usage_trends_response_trends_inner.rb +192 -0
- data/lib/mudbase/models/usage_trends_response_trends_inner_id.rb +165 -0
- data/lib/mudbase/models/user.rb +299 -0
- data/lib/mudbase/models/user_summary.rb +175 -0
- data/lib/mudbase/models/users_disable2fa_request.rb +190 -0
- data/lib/mudbase/models/users_erase_data200_response.rb +156 -0
- data/lib/mudbase/models/users_erase_data200_response_details.rb +183 -0
- data/lib/mudbase/models/users_erase_data_request.rb +198 -0
- data/lib/mudbase/models/users_export_data200_response.rb +222 -0
- data/lib/mudbase/models/users_get200_response.rb +147 -0
- data/lib/mudbase/models/users_link_o_auth_provider200_response.rb +147 -0
- data/lib/mudbase/models/users_list_o_auth_providers200_response.rb +149 -0
- data/lib/mudbase/models/users_list_o_auth_providers200_response_providers_inner.rb +174 -0
- data/lib/mudbase/models/users_unlink_o_auth_provider200_response.rb +156 -0
- data/lib/mudbase/models/users_update200_response.rb +156 -0
- data/lib/mudbase/models/users_verify2fa_request.rb +164 -0
- data/lib/mudbase/models/users_verify_email_request.rb +175 -0
- data/lib/mudbase/models/wallet_balance.rb +205 -0
- data/lib/mudbase/models/wallet_broadcast_transaction200_response.rb +165 -0
- data/lib/mudbase/models/wallet_broadcast_transaction200_response_data.rb +175 -0
- data/lib/mudbase/models/wallet_broadcast_transaction_request.rb +243 -0
- data/lib/mudbase/models/wallet_create_webhook201_response.rb +165 -0
- data/lib/mudbase/models/wallet_create_webhook_request.rb +233 -0
- data/lib/mudbase/models/wallet_create_webhook_request_filters.rb +184 -0
- data/lib/mudbase/models/wallet_estimate_gas200_response.rb +156 -0
- data/lib/mudbase/models/wallet_estimate_gas200_response_data.rb +248 -0
- data/lib/mudbase/models/wallet_estimate_gas_request.rb +198 -0
- data/lib/mudbase/models/wallet_estimate_gas_request_transaction.rb +216 -0
- data/lib/mudbase/models/wallet_get_balance200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_cancel_params200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_cancel_params200_response_data.rb +231 -0
- data/lib/mudbase/models/wallet_get_cancel_params_request.rb +208 -0
- data/lib/mudbase/models/wallet_get_speed_up_params200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_speed_up_params200_response_data.rb +229 -0
- data/lib/mudbase/models/wallet_get_speed_up_params_request.rb +209 -0
- data/lib/mudbase/models/wallet_get_transaction_by_hash200_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_transaction_by_hash400_response.rb +156 -0
- data/lib/mudbase/models/wallet_get_transactions200_response.rb +167 -0
- data/lib/mudbase/models/wallet_get_transactions200_response_pagination.rb +201 -0
- data/lib/mudbase/models/wallet_get_webhook_logs200_response.rb +158 -0
- data/lib/mudbase/models/wallet_list_addresses200_response.rb +167 -0
- data/lib/mudbase/models/wallet_list_webhooks200_response.rb +167 -0
- data/lib/mudbase/models/wallet_register_address_request.rb +246 -0
- data/lib/mudbase/models/wallet_test_webhook200_response.rb +156 -0
- data/lib/mudbase/models/wallet_test_webhook_request.rb +191 -0
- data/lib/mudbase/models/wallet_transaction.rb +379 -0
- data/lib/mudbase/models/wallet_transaction_webhook_payload.rb +167 -0
- data/lib/mudbase/models/wallet_update_webhook200_response.rb +156 -0
- data/lib/mudbase/models/wallet_update_webhook_request.rb +176 -0
- data/lib/mudbase/models/wallet_webhook.rb +235 -0
- data/lib/mudbase/models/wallet_webhook_filters.rb +182 -0
- data/lib/mudbase/models/wallet_webhook_stats.rb +175 -0
- data/lib/mudbase/models/webhook_list_response.rb +186 -0
- data/lib/mudbase/models/webhook_log.rb +290 -0
- data/lib/mudbase/models/webhook_stats_response.rb +170 -0
- data/lib/mudbase/models/webhook_stats_response_event_stats_inner.rb +165 -0
- data/lib/mudbase/models/webhook_stats_response_status_stats_inner.rb +165 -0
- data/lib/mudbase/version.rb +15 -0
- data/lib/mudbase.rb +374 -0
- data/mudbase.gemspec +39 -0
- data/spec/api/auth_api_spec.rb +240 -0
- data/spec/api/billing_api_spec.rb +163 -0
- data/spec/api/chat_api_spec.rb +207 -0
- data/spec/api/collections_api_spec.rb +100 -0
- data/spec/api/compliance_api_spec.rb +47 -0
- data/spec/api/data_api_spec.rb +109 -0
- data/spec/api/functions_api_spec.rb +229 -0
- data/spec/api/health_api_spec.rb +57 -0
- data/spec/api/integrations_api_spec.rb +61 -0
- data/spec/api/messaging_api_spec.rb +104 -0
- data/spec/api/multi_role_api_spec.rb +156 -0
- data/spec/api/realtime_analytics_api_spec.rb +98 -0
- data/spec/api/role_elevation_api_spec.rb +74 -0
- data/spec/api/search_api_spec.rb +79 -0
- data/spec/api/storage_api_spec.rb +227 -0
- data/spec/api/usage_api_spec.rb +60 -0
- data/spec/api/users_api_spec.rb +187 -0
- data/spec/api/wallet_api_spec.rb +245 -0
- data/spec/api/webhooks_api_spec.rb +48 -0
- data/spec/models/api_key_permission_spec.rb +50 -0
- data/spec/models/api_key_spec.rb +90 -0
- data/spec/models/api_key_usage_response_spec.rb +54 -0
- data/spec/models/api_key_usage_spec.rb +42 -0
- data/spec/models/api_key_with_secret_spec.rb +96 -0
- data/spec/models/auth_config_spec.rb +42 -0
- data/spec/models/auth_confirm_password_reset_request_spec.rb +54 -0
- data/spec/models/auth_convert_anonymous200_response_spec.rb +60 -0
- data/spec/models/auth_convert_anonymous_request_spec.rb +54 -0
- data/spec/models/auth_create_anonymous200_response_spec.rb +60 -0
- data/spec/models/auth_create_anonymous200_response_user_spec.rb +66 -0
- data/spec/models/auth_create_anonymous_request_spec.rb +42 -0
- data/spec/models/auth_get_o_auth_providers200_response_providers_inner_spec.rb +66 -0
- data/spec/models/auth_get_o_auth_providers200_response_spec.rb +42 -0
- data/spec/models/auth_get_session200_response_spec.rb +42 -0
- data/spec/models/auth_login200_response_spec.rb +60 -0
- data/spec/models/auth_login200_response_user_spec.rb +72 -0
- data/spec/models/auth_login403_response_spec.rb +48 -0
- data/spec/models/auth_login_request_spec.rb +48 -0
- data/spec/models/auth_oauth_callback200_response_spec.rb +42 -0
- data/spec/models/auth_oauth_initiate200_response_spec.rb +36 -0
- data/spec/models/auth_oauth_initiate400_response_spec.rb +36 -0
- data/spec/models/auth_oauth_signup_with_role400_response_spec.rb +42 -0
- data/spec/models/auth_provider_spec.rb +48 -0
- data/spec/models/auth_refresh200_response_spec.rb +54 -0
- data/spec/models/auth_refresh400_response_spec.rb +36 -0
- data/spec/models/auth_refresh_request_spec.rb +36 -0
- data/spec/models/auth_register201_response_spec.rb +66 -0
- data/spec/models/auth_register201_response_user_spec.rb +66 -0
- data/spec/models/auth_register429_response_spec.rb +72 -0
- data/spec/models/auth_register_request_spec.rb +60 -0
- data/spec/models/auth_register_with_role_request_spec.rb +60 -0
- data/spec/models/auth_request_password_reset_request_spec.rb +42 -0
- data/spec/models/auth_reset_password_request_spec.rb +42 -0
- data/spec/models/auth_response_spec.rb +60 -0
- data/spec/models/auth_verify_magic_link_request_spec.rb +36 -0
- data/spec/models/billing_check_feature_access200_response_spec.rb +42 -0
- data/spec/models/billing_check_subscription200_response_spec.rb +42 -0
- data/spec/models/billing_check_subscription200_response_subscription_spec.rb +42 -0
- data/spec/models/billing_create_checkout_session200_response_data_payment_options_inner_spec.rb +74 -0
- data/spec/models/billing_create_checkout_session200_response_data_spec.rb +96 -0
- data/spec/models/billing_create_checkout_session200_response_spec.rb +42 -0
- data/spec/models/billing_create_checkout_session_request_customer_info_spec.rb +42 -0
- data/spec/models/billing_create_checkout_session_request_spec.rb +64 -0
- data/spec/models/billing_get_checkout_payment200_response_data_spec.rb +84 -0
- data/spec/models/billing_get_checkout_payment200_response_spec.rb +42 -0
- data/spec/models/billing_get_public_plans200_response_spec.rb +36 -0
- data/spec/models/billing_handle_crypto_webhook200_response_spec.rb +36 -0
- data/spec/models/billing_handle_crypto_webhook_request_data_spec.rb +72 -0
- data/spec/models/billing_handle_crypto_webhook_request_spec.rb +46 -0
- data/spec/models/billing_handle_flutterwave_webhook_request_data_customer_spec.rb +42 -0
- data/spec/models/billing_handle_flutterwave_webhook_request_data_spec.rb +78 -0
- data/spec/models/billing_handle_flutterwave_webhook_request_spec.rb +42 -0
- data/spec/models/billing_initialize_payment_request_customer_spec.rb +42 -0
- data/spec/models/billing_initialize_payment_request_spec.rb +54 -0
- data/spec/models/billing_last_payment_spec.rb +48 -0
- data/spec/models/billing_record_usage_request_spec.rb +48 -0
- data/spec/models/billing_spec.rb +48 -0
- data/spec/models/billing_verify_payment200_response_data_spec.rb +36 -0
- data/spec/models/billing_verify_payment200_response_data_subscription_spec.rb +58 -0
- data/spec/models/billing_verify_payment200_response_spec.rb +48 -0
- data/spec/models/bucket_list_response_spec.rb +48 -0
- data/spec/models/bucket_response_spec.rb +48 -0
- data/spec/models/bucket_spec.rb +66 -0
- data/spec/models/change_password_request_spec.rb +42 -0
- data/spec/models/chat_add_participant200_response_data_participants_inner_spec.rb +48 -0
- data/spec/models/chat_add_participant200_response_data_spec.rb +36 -0
- data/spec/models/chat_add_participant200_response_spec.rb +42 -0
- data/spec/models/chat_add_participant_request_spec.rb +46 -0
- data/spec/models/chat_add_reaction200_response_data_inner_spec.rb +42 -0
- data/spec/models/chat_add_reaction200_response_spec.rb +42 -0
- data/spec/models/chat_add_reaction_request_spec.rb +36 -0
- data/spec/models/chat_create201_response_data_spec.rb +60 -0
- data/spec/models/chat_create201_response_spec.rb +42 -0
- data/spec/models/chat_create_request_spec.rb +64 -0
- data/spec/models/chat_edit_message200_response_data_spec.rb +48 -0
- data/spec/models/chat_edit_message200_response_spec.rb +42 -0
- data/spec/models/chat_edit_message_request_spec.rb +36 -0
- data/spec/models/chat_get200_response_data_participants_inner_spec.rb +42 -0
- data/spec/models/chat_get200_response_data_spec.rb +48 -0
- data/spec/models/chat_get200_response_spec.rb +42 -0
- data/spec/models/chat_get_messages200_response_data_messages_inner_sender_spec.rb +42 -0
- data/spec/models/chat_get_messages200_response_data_messages_inner_spec.rb +54 -0
- data/spec/models/chat_get_messages200_response_data_spec.rb +42 -0
- data/spec/models/chat_get_messages200_response_spec.rb +42 -0
- data/spec/models/chat_list200_response_data_chats_inner_last_message_spec.rb +36 -0
- data/spec/models/chat_list200_response_data_chats_inner_spec.rb +60 -0
- data/spec/models/chat_list200_response_data_spec.rb +42 -0
- data/spec/models/chat_list200_response_spec.rb +42 -0
- data/spec/models/chat_mark_as_read200_response_data_spec.rb +36 -0
- data/spec/models/chat_mark_as_read200_response_spec.rb +42 -0
- data/spec/models/chat_mark_as_read_request_spec.rb +36 -0
- data/spec/models/chat_remove_participant_request_spec.rb +36 -0
- data/spec/models/chat_remove_reaction200_response_data_inner_spec.rb +48 -0
- data/spec/models/chat_remove_reaction200_response_spec.rb +42 -0
- data/spec/models/chat_send_message201_response_data_spec.rb +54 -0
- data/spec/models/chat_send_message201_response_spec.rb +42 -0
- data/spec/models/chat_send_message_request_spec.rb +58 -0
- data/spec/models/collection_spec.rb +84 -0
- data/spec/models/collections_create201_response_spec.rb +42 -0
- data/spec/models/collections_list200_response_spec.rb +42 -0
- data/spec/models/compliance_log_security_event200_response_event_spec.rb +54 -0
- data/spec/models/compliance_log_security_event200_response_spec.rb +42 -0
- data/spec/models/compliance_log_security_event_request_details_spec.rb +66 -0
- data/spec/models/compliance_log_security_event_request_spec.rb +56 -0
- data/spec/models/confirm_upload_response_scan_spec.rb +54 -0
- data/spec/models/confirm_upload_response_spec.rb +52 -0
- data/spec/models/create_api_key_request_spec.rb +60 -0
- data/spec/models/create_bucket_request_spec.rb +48 -0
- data/spec/models/create_collection_request_spec.rb +60 -0
- data/spec/models/create_function_request_spec.rb +60 -0
- data/spec/models/create_project_request_spec.rb +48 -0
- data/spec/models/data_list_response_data_inner_spec.rb +48 -0
- data/spec/models/data_list_response_spec.rb +42 -0
- data/spec/models/data_response_spec.rb +42 -0
- data/spec/models/database_config_spec.rb +36 -0
- data/spec/models/email_request_spec.rb +66 -0
- data/spec/models/email_request_to_spec.rb +32 -0
- data/spec/models/error_details_spec.rb +32 -0
- data/spec/models/error_spec.rb +66 -0
- data/spec/models/field_default_spec.rb +32 -0
- data/spec/models/field_spec.rb +76 -0
- data/spec/models/file_list_response_spec.rb +42 -0
- data/spec/models/file_metadata_spec.rb +102 -0
- data/spec/models/file_response_spec.rb +42 -0
- data/spec/models/file_upload_response_spec.rb +42 -0
- data/spec/models/function_execution_response_data_spec.rb +54 -0
- data/spec/models/function_execution_response_spec.rb +42 -0
- data/spec/models/function_execution_spec.rb +100 -0
- data/spec/models/function_list_response_data_spec.rb +42 -0
- data/spec/models/function_list_response_spec.rb +42 -0
- data/spec/models/function_logs_response_data_spec.rb +42 -0
- data/spec/models/function_logs_response_spec.rb +42 -0
- data/spec/models/function_response_spec.rb +42 -0
- data/spec/models/function_spec.rb +90 -0
- data/spec/models/function_stats_spec.rb +60 -0
- data/spec/models/function_trigger_spec.rb +80 -0
- data/spec/models/functions_delete200_response_spec.rb +42 -0
- data/spec/models/functions_execute_request_spec.rb +36 -0
- data/spec/models/functions_get_versions200_response_data_spec.rb +36 -0
- data/spec/models/functions_get_versions200_response_data_versions_inner_spec.rb +66 -0
- data/spec/models/functions_get_versions200_response_spec.rb +42 -0
- data/spec/models/functions_rollback_request_spec.rb +36 -0
- data/spec/models/functions_simulate_request_spec.rb +48 -0
- data/spec/models/functions_trigger_webhook200_response_spec.rb +48 -0
- data/spec/models/functions_trigger_webhook400_response_spec.rb +42 -0
- data/spec/models/functions_trigger_webhook401_response_spec.rb +42 -0
- data/spec/models/health_response_services_spec.rb +60 -0
- data/spec/models/health_response_spec.rb +64 -0
- data/spec/models/integrations_execute_request_spec.rb +58 -0
- data/spec/models/integrations_list200_response_integrations_inner_spec.rb +54 -0
- data/spec/models/integrations_list200_response_spec.rb +36 -0
- data/spec/models/invite_member_request_spec.rb +46 -0
- data/spec/models/limits_spec.rb +72 -0
- data/spec/models/login_request_spec.rb +42 -0
- data/spec/models/magic_link_request_spec.rb +48 -0
- data/spec/models/message_history_response_data_spec.rb +42 -0
- data/spec/models/message_history_response_spec.rb +42 -0
- data/spec/models/message_response_spec.rb +36 -0
- data/spec/models/message_sent_response_data_spec.rb +78 -0
- data/spec/models/message_sent_response_spec.rb +42 -0
- data/spec/models/message_spec.rb +98 -0
- data/spec/models/message_stats_response_data_by_status_spec.rb +48 -0
- data/spec/models/message_stats_response_data_by_type_spec.rb +48 -0
- data/spec/models/message_stats_response_data_period_spec.rb +42 -0
- data/spec/models/message_stats_response_data_spec.rb +60 -0
- data/spec/models/message_stats_response_spec.rb +42 -0
- data/spec/models/multi_role_add_role_request_default_permissions_inner_spec.rb +42 -0
- data/spec/models/multi_role_add_role_request_spec.rb +66 -0
- data/spec/models/multi_role_get_available_roles200_response_data_inner_spec.rb +72 -0
- data/spec/models/multi_role_get_available_roles200_response_spec.rb +42 -0
- data/spec/models/multi_role_get_config200_response_data_spec.rb +54 -0
- data/spec/models/multi_role_get_config200_response_spec.rb +42 -0
- data/spec/models/multi_role_toggle_role_request_spec.rb +36 -0
- data/spec/models/multi_role_update_collection_permissions_request_spec.rb +46 -0
- data/spec/models/multi_role_update_role_request_spec.rb +66 -0
- data/spec/models/multi_role_update_settings200_response_spec.rb +48 -0
- data/spec/models/multi_role_update_settings_request_settings_spec.rb +42 -0
- data/spec/models/multi_role_update_settings_request_spec.rb +48 -0
- data/spec/models/non_custodial_address_response_spec.rb +48 -0
- data/spec/models/non_custodial_address_spec.rb +106 -0
- data/spec/models/organization_spec.rb +108 -0
- data/spec/models/organization_summary_spec.rb +48 -0
- data/spec/models/otp_send_request_spec.rb +58 -0
- data/spec/models/otp_verify_request_spec.rb +48 -0
- data/spec/models/pagination_spec.rb +54 -0
- data/spec/models/payment_intent_spec.rb +158 -0
- data/spec/models/payment_refund_spec.rb +124 -0
- data/spec/models/payment_subscription_spec.rb +136 -0
- data/spec/models/permission_spec.rb +58 -0
- data/spec/models/plan_spec.rb +60 -0
- data/spec/models/presigned_post_response_spec.rb +54 -0
- data/spec/models/project_settings_spec.rb +76 -0
- data/spec/models/project_spec.rb +102 -0
- data/spec/models/project_summary_spec.rb +48 -0
- data/spec/models/project_usage_response_spec.rb +42 -0
- data/spec/models/project_usage_spec.rb +60 -0
- data/spec/models/project_usage_stats_response_project_spec.rb +42 -0
- data/spec/models/project_usage_stats_response_spec.rb +48 -0
- data/spec/models/push_notification_request_spec.rb +60 -0
- data/spec/models/rate_limit_spec.rb +42 -0
- data/spec/models/realtime_analytics_check_user_presence200_response_presence_value_spec.rb +42 -0
- data/spec/models/realtime_analytics_check_user_presence200_response_spec.rb +42 -0
- data/spec/models/realtime_analytics_check_user_presence_request_spec.rb +36 -0
- data/spec/models/realtime_analytics_get_active_users200_response_spec.rb +48 -0
- data/spec/models/realtime_analytics_get_active_users200_response_users_inner_spec.rb +48 -0
- data/spec/models/realtime_analytics_get_event_throughput200_response_spec.rb +60 -0
- data/spec/models/realtime_analytics_get_historical_analytics200_response_data_inner_spec.rb +48 -0
- data/spec/models/realtime_analytics_get_historical_analytics200_response_spec.rb +54 -0
- data/spec/models/realtime_analytics_get_project200_response_spec.rb +60 -0
- data/spec/models/register_request_spec.rb +60 -0
- data/spec/models/role_elevation_get_status200_response_spec.rb +36 -0
- data/spec/models/role_elevation_request200_response_spec.rb +74 -0
- data/spec/models/role_elevation_request_request_spec.rb +36 -0
- data/spec/models/role_elevation_upload_documents_request_documents_inner_spec.rb +42 -0
- data/spec/models/role_elevation_upload_documents_request_spec.rb +42 -0
- data/spec/models/search_get_analytics200_response_spec.rb +54 -0
- data/spec/models/search_get_analytics200_response_top_queries_inner_spec.rb +42 -0
- data/spec/models/search_get_suggestions200_response_spec.rb +36 -0
- data/spec/models/search_response_data_spec.rb +54 -0
- data/spec/models/search_response_spec.rb +42 -0
- data/spec/models/search_result_item_spec.rb +42 -0
- data/spec/models/search_result_spec.rb +48 -0
- data/spec/models/session_response_spec.rb +42 -0
- data/spec/models/signed_url_response_spec.rb +54 -0
- data/spec/models/sms_request_spec.rb +48 -0
- data/spec/models/storage_config_spec.rb +36 -0
- data/spec/models/storage_confirm_upload400_response_spec.rb +42 -0
- data/spec/models/storage_confirm_upload_request_spec.rb +72 -0
- data/spec/models/storage_download_bucket_file403_response_spec.rb +36 -0
- data/spec/models/storage_download_bucket_file404_response_spec.rb +36 -0
- data/spec/models/storage_get_presigned_upload_request_spec.rb +60 -0
- data/spec/models/storage_get_signed_url_request_spec.rb +36 -0
- data/spec/models/system_status_response_data_cpu_spec.rb +42 -0
- data/spec/models/system_status_response_data_database_spec.rb +48 -0
- data/spec/models/system_status_response_data_memory_spec.rb +48 -0
- data/spec/models/system_status_response_data_requests_spec.rb +54 -0
- data/spec/models/system_status_response_data_spec.rb +66 -0
- data/spec/models/system_status_response_data_storage_spec.rb +48 -0
- data/spec/models/system_status_response_spec.rb +42 -0
- data/spec/models/trigger_webhook_request_spec.rb +60 -0
- data/spec/models/two_fa_setup_response_spec.rb +48 -0
- data/spec/models/update_api_key_request_spec.rb +54 -0
- data/spec/models/update_bucket_request_spec.rb +48 -0
- data/spec/models/update_collection_request_spec.rb +54 -0
- data/spec/models/update_function_request_limits_spec.rb +54 -0
- data/spec/models/update_function_request_retry_policy_spec.rb +48 -0
- data/spec/models/update_function_request_spec.rb +84 -0
- data/spec/models/update_organization_request_spec.rb +60 -0
- data/spec/models/update_project_request_spec.rb +60 -0
- data/spec/models/update_user_request_spec.rb +48 -0
- data/spec/models/upload_files_to_bucket_metadata_request_spec.rb +42 -0
- data/spec/models/upload_files_to_bucket_request_spec.rb +48 -0
- data/spec/models/usage_response_spec.rb +54 -0
- data/spec/models/usage_spec.rb +72 -0
- data/spec/models/usage_stats_response_percentages_spec.rb +48 -0
- data/spec/models/usage_stats_response_spec.rb +60 -0
- data/spec/models/usage_trends_response_spec.rb +42 -0
- data/spec/models/usage_trends_response_trends_inner_id_spec.rb +48 -0
- data/spec/models/usage_trends_response_trends_inner_spec.rb +66 -0
- data/spec/models/user_spec.rb +118 -0
- data/spec/models/user_summary_spec.rb +54 -0
- data/spec/models/users_disable2fa_request_spec.rb +42 -0
- data/spec/models/users_erase_data200_response_details_spec.rb +60 -0
- data/spec/models/users_erase_data200_response_spec.rb +42 -0
- data/spec/models/users_erase_data_request_spec.rb +46 -0
- data/spec/models/users_export_data200_response_spec.rb +78 -0
- data/spec/models/users_get200_response_spec.rb +36 -0
- data/spec/models/users_link_o_auth_provider200_response_spec.rb +36 -0
- data/spec/models/users_list_o_auth_providers200_response_providers_inner_spec.rb +54 -0
- data/spec/models/users_list_o_auth_providers200_response_spec.rb +36 -0
- data/spec/models/users_unlink_o_auth_provider200_response_spec.rb +42 -0
- data/spec/models/users_update200_response_spec.rb +42 -0
- data/spec/models/users_verify2fa_request_spec.rb +36 -0
- data/spec/models/users_verify_email_request_spec.rb +42 -0
- data/spec/models/wallet_balance_spec.rb +72 -0
- data/spec/models/wallet_broadcast_transaction200_response_data_spec.rb +54 -0
- data/spec/models/wallet_broadcast_transaction200_response_spec.rb +48 -0
- data/spec/models/wallet_broadcast_transaction_request_spec.rb +52 -0
- data/spec/models/wallet_create_webhook201_response_spec.rb +48 -0
- data/spec/models/wallet_create_webhook_request_filters_spec.rb +46 -0
- data/spec/models/wallet_create_webhook_request_spec.rb +64 -0
- data/spec/models/wallet_estimate_gas200_response_data_spec.rb +96 -0
- data/spec/models/wallet_estimate_gas200_response_spec.rb +42 -0
- data/spec/models/wallet_estimate_gas_request_spec.rb +46 -0
- data/spec/models/wallet_estimate_gas_request_transaction_spec.rb +66 -0
- data/spec/models/wallet_get_balance200_response_spec.rb +42 -0
- data/spec/models/wallet_get_cancel_params200_response_data_spec.rb +90 -0
- data/spec/models/wallet_get_cancel_params200_response_spec.rb +42 -0
- data/spec/models/wallet_get_cancel_params_request_spec.rb +52 -0
- data/spec/models/wallet_get_speed_up_params200_response_data_spec.rb +90 -0
- data/spec/models/wallet_get_speed_up_params200_response_spec.rb +42 -0
- data/spec/models/wallet_get_speed_up_params_request_spec.rb +52 -0
- data/spec/models/wallet_get_transaction_by_hash200_response_spec.rb +42 -0
- data/spec/models/wallet_get_transaction_by_hash400_response_spec.rb +42 -0
- data/spec/models/wallet_get_transactions200_response_pagination_spec.rb +72 -0
- data/spec/models/wallet_get_transactions200_response_spec.rb +48 -0
- data/spec/models/wallet_get_webhook_logs200_response_spec.rb +42 -0
- data/spec/models/wallet_list_addresses200_response_spec.rb +48 -0
- data/spec/models/wallet_list_webhooks200_response_spec.rb +48 -0
- data/spec/models/wallet_register_address_request_spec.rb +64 -0
- data/spec/models/wallet_test_webhook200_response_spec.rb +42 -0
- data/spec/models/wallet_test_webhook_request_spec.rb +54 -0
- data/spec/models/wallet_transaction_spec.rb +164 -0
- data/spec/models/wallet_transaction_webhook_payload_spec.rb +48 -0
- data/spec/models/wallet_update_webhook200_response_spec.rb +42 -0
- data/spec/models/wallet_update_webhook_request_spec.rb +54 -0
- data/spec/models/wallet_webhook_filters_spec.rb +46 -0
- data/spec/models/wallet_webhook_spec.rb +82 -0
- data/spec/models/wallet_webhook_stats_spec.rb +54 -0
- data/spec/models/webhook_list_response_spec.rb +60 -0
- data/spec/models/webhook_log_spec.rb +112 -0
- data/spec/models/webhook_stats_response_event_stats_inner_spec.rb +48 -0
- data/spec/models/webhook_stats_response_spec.rb +48 -0
- data/spec/models/webhook_stats_response_status_stats_inner_spec.rb +48 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1443 -0
|
@@ -0,0 +1,968 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#MUDBASESDK
|
|
3
|
+
|
|
4
|
+
#MUDBASE is a scalable, real-time, and secure Backend-as-a-Service (BaaS) platform designed for modern applications. Built with custom logic, it offers fine-grained control, extensibility, and enterprise-grade security. ## Features - 🔐 Multi-provider authentication (30+ OAuth providers) - 📊 Real-time database with collections - 📁 File storage and management - 🔑 API key management with permissions - 🔗 Webhook system with retry logic - ⚡ Serverless functions - 💬 Multi-channel messaging (Push, Email, SMS) - 📈 Usage analytics and monitoring - 🌐 Real-time WebSocket events - 🔍 Full-text search capabilities - 💳 Billing: Flutterwave only for fiat (platform subscriptions + org payment processing with 7% + $0.50 split); crypto payment processor for multi-chain checkout - 📡 Block-based multi-chain wallet monitoring (ETH/UTXO scanners, GetBlock, scanner metrics API)
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.1.9
|
|
7
|
+
Contact: support@mudbase.dev
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.20.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module Mudbase
|
|
16
|
+
class ChatApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Add participant to chat
|
|
23
|
+
# Add a user to the chat with an optional role (admin or member).
|
|
24
|
+
# @param project_id [String] Project ID.
|
|
25
|
+
# @param chat_id [String] Chat ID.
|
|
26
|
+
# @param chat_add_participant_request [ChatAddParticipantRequest] User ID to add and optional role (admin, member).
|
|
27
|
+
# @param [Hash] opts the optional parameters
|
|
28
|
+
# @return [ChatAddParticipant200Response]
|
|
29
|
+
def chat_add_participant(project_id, chat_id, chat_add_participant_request, opts = {})
|
|
30
|
+
data, _status_code, _headers = chat_add_participant_with_http_info(project_id, chat_id, chat_add_participant_request, opts)
|
|
31
|
+
data
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
# Add participant to chat
|
|
35
|
+
# Add a user to the chat with an optional role (admin or member).
|
|
36
|
+
# @param project_id [String] Project ID.
|
|
37
|
+
# @param chat_id [String] Chat ID.
|
|
38
|
+
# @param chat_add_participant_request [ChatAddParticipantRequest] User ID to add and optional role (admin, member).
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [Array<(ChatAddParticipant200Response, Integer, Hash)>] ChatAddParticipant200Response data, response status code and response headers
|
|
41
|
+
def chat_add_participant_with_http_info(project_id, chat_id, chat_add_participant_request, opts = {})
|
|
42
|
+
if @api_client.config.debugging
|
|
43
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_add_participant ...'
|
|
44
|
+
end
|
|
45
|
+
# verify the required parameter 'project_id' is set
|
|
46
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
47
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_add_participant"
|
|
48
|
+
end
|
|
49
|
+
# verify the required parameter 'chat_id' is set
|
|
50
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
51
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_add_participant"
|
|
52
|
+
end
|
|
53
|
+
# verify the required parameter 'chat_add_participant_request' is set
|
|
54
|
+
if @api_client.config.client_side_validation && chat_add_participant_request.nil?
|
|
55
|
+
fail ArgumentError, "Missing the required parameter 'chat_add_participant_request' when calling ChatApi.chat_add_participant"
|
|
56
|
+
end
|
|
57
|
+
# resource path
|
|
58
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/participants'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s))
|
|
59
|
+
|
|
60
|
+
# query parameters
|
|
61
|
+
query_params = opts[:query_params] || {}
|
|
62
|
+
|
|
63
|
+
# header parameters
|
|
64
|
+
header_params = opts[:header_params] || {}
|
|
65
|
+
# HTTP header 'Accept' (if needed)
|
|
66
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
67
|
+
# HTTP header 'Content-Type'
|
|
68
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
69
|
+
if !content_type.nil?
|
|
70
|
+
header_params['Content-Type'] = content_type
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# form parameters
|
|
74
|
+
form_params = opts[:form_params] || {}
|
|
75
|
+
|
|
76
|
+
# http body (model)
|
|
77
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_add_participant_request)
|
|
78
|
+
|
|
79
|
+
# return_type
|
|
80
|
+
return_type = opts[:debug_return_type] || 'ChatAddParticipant200Response'
|
|
81
|
+
|
|
82
|
+
# auth_names
|
|
83
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
84
|
+
|
|
85
|
+
new_options = opts.merge(
|
|
86
|
+
:operation => :"ChatApi.chat_add_participant",
|
|
87
|
+
:header_params => header_params,
|
|
88
|
+
:query_params => query_params,
|
|
89
|
+
:form_params => form_params,
|
|
90
|
+
:body => post_body,
|
|
91
|
+
:auth_names => auth_names,
|
|
92
|
+
:return_type => return_type
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
96
|
+
if @api_client.config.debugging
|
|
97
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_add_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
98
|
+
end
|
|
99
|
+
return data, status_code, headers
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Add reaction to message
|
|
103
|
+
# Add an emoji reaction to a message.
|
|
104
|
+
# @param project_id [String] Project ID.
|
|
105
|
+
# @param chat_id [String] Chat ID.
|
|
106
|
+
# @param message_id [String] Message ID.
|
|
107
|
+
# @param chat_add_reaction_request [ChatAddReactionRequest] Emoji reaction (e.g. 👍, ❤️).
|
|
108
|
+
# @param [Hash] opts the optional parameters
|
|
109
|
+
# @return [ChatAddReaction200Response]
|
|
110
|
+
def chat_add_reaction(project_id, chat_id, message_id, chat_add_reaction_request, opts = {})
|
|
111
|
+
data, _status_code, _headers = chat_add_reaction_with_http_info(project_id, chat_id, message_id, chat_add_reaction_request, opts)
|
|
112
|
+
data
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Add reaction to message
|
|
116
|
+
# Add an emoji reaction to a message.
|
|
117
|
+
# @param project_id [String] Project ID.
|
|
118
|
+
# @param chat_id [String] Chat ID.
|
|
119
|
+
# @param message_id [String] Message ID.
|
|
120
|
+
# @param chat_add_reaction_request [ChatAddReactionRequest] Emoji reaction (e.g. 👍, ❤️).
|
|
121
|
+
# @param [Hash] opts the optional parameters
|
|
122
|
+
# @return [Array<(ChatAddReaction200Response, Integer, Hash)>] ChatAddReaction200Response data, response status code and response headers
|
|
123
|
+
def chat_add_reaction_with_http_info(project_id, chat_id, message_id, chat_add_reaction_request, opts = {})
|
|
124
|
+
if @api_client.config.debugging
|
|
125
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_add_reaction ...'
|
|
126
|
+
end
|
|
127
|
+
# verify the required parameter 'project_id' is set
|
|
128
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
129
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_add_reaction"
|
|
130
|
+
end
|
|
131
|
+
# verify the required parameter 'chat_id' is set
|
|
132
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
133
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_add_reaction"
|
|
134
|
+
end
|
|
135
|
+
# verify the required parameter 'message_id' is set
|
|
136
|
+
if @api_client.config.client_side_validation && message_id.nil?
|
|
137
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling ChatApi.chat_add_reaction"
|
|
138
|
+
end
|
|
139
|
+
# verify the required parameter 'chat_add_reaction_request' is set
|
|
140
|
+
if @api_client.config.client_side_validation && chat_add_reaction_request.nil?
|
|
141
|
+
fail ArgumentError, "Missing the required parameter 'chat_add_reaction_request' when calling ChatApi.chat_add_reaction"
|
|
142
|
+
end
|
|
143
|
+
# resource path
|
|
144
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/messages/{messageId}/reactions'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
|
145
|
+
|
|
146
|
+
# query parameters
|
|
147
|
+
query_params = opts[:query_params] || {}
|
|
148
|
+
|
|
149
|
+
# header parameters
|
|
150
|
+
header_params = opts[:header_params] || {}
|
|
151
|
+
# HTTP header 'Accept' (if needed)
|
|
152
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
153
|
+
# HTTP header 'Content-Type'
|
|
154
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
155
|
+
if !content_type.nil?
|
|
156
|
+
header_params['Content-Type'] = content_type
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# form parameters
|
|
160
|
+
form_params = opts[:form_params] || {}
|
|
161
|
+
|
|
162
|
+
# http body (model)
|
|
163
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_add_reaction_request)
|
|
164
|
+
|
|
165
|
+
# return_type
|
|
166
|
+
return_type = opts[:debug_return_type] || 'ChatAddReaction200Response'
|
|
167
|
+
|
|
168
|
+
# auth_names
|
|
169
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
170
|
+
|
|
171
|
+
new_options = opts.merge(
|
|
172
|
+
:operation => :"ChatApi.chat_add_reaction",
|
|
173
|
+
:header_params => header_params,
|
|
174
|
+
:query_params => query_params,
|
|
175
|
+
:form_params => form_params,
|
|
176
|
+
:body => post_body,
|
|
177
|
+
:auth_names => auth_names,
|
|
178
|
+
:return_type => return_type
|
|
179
|
+
)
|
|
180
|
+
|
|
181
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
182
|
+
if @api_client.config.debugging
|
|
183
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_add_reaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
184
|
+
end
|
|
185
|
+
return data, status_code, headers
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Create new chat
|
|
189
|
+
# Create a new chat (direct, group, channel, or broadcast) with name, type, participants, and optional settings.
|
|
190
|
+
# @param project_id [String] Project ID.
|
|
191
|
+
# @param chat_create_request [ChatCreateRequest] Chat name, type (direct/group/channel/broadcast), participants array, optional description and settings.
|
|
192
|
+
# @param [Hash] opts the optional parameters
|
|
193
|
+
# @return [ChatCreate201Response]
|
|
194
|
+
def chat_create(project_id, chat_create_request, opts = {})
|
|
195
|
+
data, _status_code, _headers = chat_create_with_http_info(project_id, chat_create_request, opts)
|
|
196
|
+
data
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
# Create new chat
|
|
200
|
+
# Create a new chat (direct, group, channel, or broadcast) with name, type, participants, and optional settings.
|
|
201
|
+
# @param project_id [String] Project ID.
|
|
202
|
+
# @param chat_create_request [ChatCreateRequest] Chat name, type (direct/group/channel/broadcast), participants array, optional description and settings.
|
|
203
|
+
# @param [Hash] opts the optional parameters
|
|
204
|
+
# @return [Array<(ChatCreate201Response, Integer, Hash)>] ChatCreate201Response data, response status code and response headers
|
|
205
|
+
def chat_create_with_http_info(project_id, chat_create_request, opts = {})
|
|
206
|
+
if @api_client.config.debugging
|
|
207
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_create ...'
|
|
208
|
+
end
|
|
209
|
+
# verify the required parameter 'project_id' is set
|
|
210
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
211
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_create"
|
|
212
|
+
end
|
|
213
|
+
# verify the required parameter 'chat_create_request' is set
|
|
214
|
+
if @api_client.config.client_side_validation && chat_create_request.nil?
|
|
215
|
+
fail ArgumentError, "Missing the required parameter 'chat_create_request' when calling ChatApi.chat_create"
|
|
216
|
+
end
|
|
217
|
+
# resource path
|
|
218
|
+
local_var_path = '/api/chat/projects/{projectId}/chats'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
|
219
|
+
|
|
220
|
+
# query parameters
|
|
221
|
+
query_params = opts[:query_params] || {}
|
|
222
|
+
|
|
223
|
+
# header parameters
|
|
224
|
+
header_params = opts[:header_params] || {}
|
|
225
|
+
# HTTP header 'Accept' (if needed)
|
|
226
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
227
|
+
# HTTP header 'Content-Type'
|
|
228
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
229
|
+
if !content_type.nil?
|
|
230
|
+
header_params['Content-Type'] = content_type
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
# form parameters
|
|
234
|
+
form_params = opts[:form_params] || {}
|
|
235
|
+
|
|
236
|
+
# http body (model)
|
|
237
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_create_request)
|
|
238
|
+
|
|
239
|
+
# return_type
|
|
240
|
+
return_type = opts[:debug_return_type] || 'ChatCreate201Response'
|
|
241
|
+
|
|
242
|
+
# auth_names
|
|
243
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
244
|
+
|
|
245
|
+
new_options = opts.merge(
|
|
246
|
+
:operation => :"ChatApi.chat_create",
|
|
247
|
+
:header_params => header_params,
|
|
248
|
+
:query_params => query_params,
|
|
249
|
+
:form_params => form_params,
|
|
250
|
+
:body => post_body,
|
|
251
|
+
:auth_names => auth_names,
|
|
252
|
+
:return_type => return_type
|
|
253
|
+
)
|
|
254
|
+
|
|
255
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
256
|
+
if @api_client.config.debugging
|
|
257
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
258
|
+
end
|
|
259
|
+
return data, status_code, headers
|
|
260
|
+
end
|
|
261
|
+
|
|
262
|
+
# Delete message
|
|
263
|
+
# Delete a message from the chat (sender or admin). May be soft-delete or permanent depending on implementation.
|
|
264
|
+
# @param project_id [String] Project ID.
|
|
265
|
+
# @param chat_id [String] Chat ID.
|
|
266
|
+
# @param message_id [String] Message ID.
|
|
267
|
+
# @param [Hash] opts the optional parameters
|
|
268
|
+
# @return [MessageResponse]
|
|
269
|
+
def chat_delete_message(project_id, chat_id, message_id, opts = {})
|
|
270
|
+
data, _status_code, _headers = chat_delete_message_with_http_info(project_id, chat_id, message_id, opts)
|
|
271
|
+
data
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Delete message
|
|
275
|
+
# Delete a message from the chat (sender or admin). May be soft-delete or permanent depending on implementation.
|
|
276
|
+
# @param project_id [String] Project ID.
|
|
277
|
+
# @param chat_id [String] Chat ID.
|
|
278
|
+
# @param message_id [String] Message ID.
|
|
279
|
+
# @param [Hash] opts the optional parameters
|
|
280
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
281
|
+
def chat_delete_message_with_http_info(project_id, chat_id, message_id, opts = {})
|
|
282
|
+
if @api_client.config.debugging
|
|
283
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_delete_message ...'
|
|
284
|
+
end
|
|
285
|
+
# verify the required parameter 'project_id' is set
|
|
286
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
287
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_delete_message"
|
|
288
|
+
end
|
|
289
|
+
# verify the required parameter 'chat_id' is set
|
|
290
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
291
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_delete_message"
|
|
292
|
+
end
|
|
293
|
+
# verify the required parameter 'message_id' is set
|
|
294
|
+
if @api_client.config.client_side_validation && message_id.nil?
|
|
295
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling ChatApi.chat_delete_message"
|
|
296
|
+
end
|
|
297
|
+
# resource path
|
|
298
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/messages/{messageId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
|
299
|
+
|
|
300
|
+
# query parameters
|
|
301
|
+
query_params = opts[:query_params] || {}
|
|
302
|
+
|
|
303
|
+
# header parameters
|
|
304
|
+
header_params = opts[:header_params] || {}
|
|
305
|
+
# HTTP header 'Accept' (if needed)
|
|
306
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
307
|
+
|
|
308
|
+
# form parameters
|
|
309
|
+
form_params = opts[:form_params] || {}
|
|
310
|
+
|
|
311
|
+
# http body (model)
|
|
312
|
+
post_body = opts[:debug_body]
|
|
313
|
+
|
|
314
|
+
# return_type
|
|
315
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
316
|
+
|
|
317
|
+
# auth_names
|
|
318
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
319
|
+
|
|
320
|
+
new_options = opts.merge(
|
|
321
|
+
:operation => :"ChatApi.chat_delete_message",
|
|
322
|
+
:header_params => header_params,
|
|
323
|
+
:query_params => query_params,
|
|
324
|
+
:form_params => form_params,
|
|
325
|
+
:body => post_body,
|
|
326
|
+
:auth_names => auth_names,
|
|
327
|
+
:return_type => return_type
|
|
328
|
+
)
|
|
329
|
+
|
|
330
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
331
|
+
if @api_client.config.debugging
|
|
332
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_delete_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
333
|
+
end
|
|
334
|
+
return data, status_code, headers
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# Edit message
|
|
338
|
+
# Update the content of a message (sender only; supports edit history).
|
|
339
|
+
# @param project_id [String] Project ID.
|
|
340
|
+
# @param chat_id [String] Chat ID.
|
|
341
|
+
# @param message_id [String] Message ID.
|
|
342
|
+
# @param chat_edit_message_request [ChatEditMessageRequest] New message content.
|
|
343
|
+
# @param [Hash] opts the optional parameters
|
|
344
|
+
# @return [ChatEditMessage200Response]
|
|
345
|
+
def chat_edit_message(project_id, chat_id, message_id, chat_edit_message_request, opts = {})
|
|
346
|
+
data, _status_code, _headers = chat_edit_message_with_http_info(project_id, chat_id, message_id, chat_edit_message_request, opts)
|
|
347
|
+
data
|
|
348
|
+
end
|
|
349
|
+
|
|
350
|
+
# Edit message
|
|
351
|
+
# Update the content of a message (sender only; supports edit history).
|
|
352
|
+
# @param project_id [String] Project ID.
|
|
353
|
+
# @param chat_id [String] Chat ID.
|
|
354
|
+
# @param message_id [String] Message ID.
|
|
355
|
+
# @param chat_edit_message_request [ChatEditMessageRequest] New message content.
|
|
356
|
+
# @param [Hash] opts the optional parameters
|
|
357
|
+
# @return [Array<(ChatEditMessage200Response, Integer, Hash)>] ChatEditMessage200Response data, response status code and response headers
|
|
358
|
+
def chat_edit_message_with_http_info(project_id, chat_id, message_id, chat_edit_message_request, opts = {})
|
|
359
|
+
if @api_client.config.debugging
|
|
360
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_edit_message ...'
|
|
361
|
+
end
|
|
362
|
+
# verify the required parameter 'project_id' is set
|
|
363
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
364
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_edit_message"
|
|
365
|
+
end
|
|
366
|
+
# verify the required parameter 'chat_id' is set
|
|
367
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
368
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_edit_message"
|
|
369
|
+
end
|
|
370
|
+
# verify the required parameter 'message_id' is set
|
|
371
|
+
if @api_client.config.client_side_validation && message_id.nil?
|
|
372
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling ChatApi.chat_edit_message"
|
|
373
|
+
end
|
|
374
|
+
# verify the required parameter 'chat_edit_message_request' is set
|
|
375
|
+
if @api_client.config.client_side_validation && chat_edit_message_request.nil?
|
|
376
|
+
fail ArgumentError, "Missing the required parameter 'chat_edit_message_request' when calling ChatApi.chat_edit_message"
|
|
377
|
+
end
|
|
378
|
+
# resource path
|
|
379
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/messages/{messageId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
|
380
|
+
|
|
381
|
+
# query parameters
|
|
382
|
+
query_params = opts[:query_params] || {}
|
|
383
|
+
|
|
384
|
+
# header parameters
|
|
385
|
+
header_params = opts[:header_params] || {}
|
|
386
|
+
# HTTP header 'Accept' (if needed)
|
|
387
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
388
|
+
# HTTP header 'Content-Type'
|
|
389
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
390
|
+
if !content_type.nil?
|
|
391
|
+
header_params['Content-Type'] = content_type
|
|
392
|
+
end
|
|
393
|
+
|
|
394
|
+
# form parameters
|
|
395
|
+
form_params = opts[:form_params] || {}
|
|
396
|
+
|
|
397
|
+
# http body (model)
|
|
398
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_edit_message_request)
|
|
399
|
+
|
|
400
|
+
# return_type
|
|
401
|
+
return_type = opts[:debug_return_type] || 'ChatEditMessage200Response'
|
|
402
|
+
|
|
403
|
+
# auth_names
|
|
404
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
405
|
+
|
|
406
|
+
new_options = opts.merge(
|
|
407
|
+
:operation => :"ChatApi.chat_edit_message",
|
|
408
|
+
:header_params => header_params,
|
|
409
|
+
:query_params => query_params,
|
|
410
|
+
:form_params => form_params,
|
|
411
|
+
:body => post_body,
|
|
412
|
+
:auth_names => auth_names,
|
|
413
|
+
:return_type => return_type
|
|
414
|
+
)
|
|
415
|
+
|
|
416
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
417
|
+
if @api_client.config.debugging
|
|
418
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_edit_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
419
|
+
end
|
|
420
|
+
return data, status_code, headers
|
|
421
|
+
end
|
|
422
|
+
|
|
423
|
+
# Get chat details
|
|
424
|
+
# Returns full chat metadata including participants and roles for a single chat.
|
|
425
|
+
# @param project_id [String] Project ID.
|
|
426
|
+
# @param chat_id [String] Chat ID.
|
|
427
|
+
# @param [Hash] opts the optional parameters
|
|
428
|
+
# @return [ChatGet200Response]
|
|
429
|
+
def chat_get(project_id, chat_id, opts = {})
|
|
430
|
+
data, _status_code, _headers = chat_get_with_http_info(project_id, chat_id, opts)
|
|
431
|
+
data
|
|
432
|
+
end
|
|
433
|
+
|
|
434
|
+
# Get chat details
|
|
435
|
+
# Returns full chat metadata including participants and roles for a single chat.
|
|
436
|
+
# @param project_id [String] Project ID.
|
|
437
|
+
# @param chat_id [String] Chat ID.
|
|
438
|
+
# @param [Hash] opts the optional parameters
|
|
439
|
+
# @return [Array<(ChatGet200Response, Integer, Hash)>] ChatGet200Response data, response status code and response headers
|
|
440
|
+
def chat_get_with_http_info(project_id, chat_id, opts = {})
|
|
441
|
+
if @api_client.config.debugging
|
|
442
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_get ...'
|
|
443
|
+
end
|
|
444
|
+
# verify the required parameter 'project_id' is set
|
|
445
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
446
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_get"
|
|
447
|
+
end
|
|
448
|
+
# verify the required parameter 'chat_id' is set
|
|
449
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
450
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_get"
|
|
451
|
+
end
|
|
452
|
+
# resource path
|
|
453
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s))
|
|
454
|
+
|
|
455
|
+
# query parameters
|
|
456
|
+
query_params = opts[:query_params] || {}
|
|
457
|
+
|
|
458
|
+
# header parameters
|
|
459
|
+
header_params = opts[:header_params] || {}
|
|
460
|
+
# HTTP header 'Accept' (if needed)
|
|
461
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
462
|
+
|
|
463
|
+
# form parameters
|
|
464
|
+
form_params = opts[:form_params] || {}
|
|
465
|
+
|
|
466
|
+
# http body (model)
|
|
467
|
+
post_body = opts[:debug_body]
|
|
468
|
+
|
|
469
|
+
# return_type
|
|
470
|
+
return_type = opts[:debug_return_type] || 'ChatGet200Response'
|
|
471
|
+
|
|
472
|
+
# auth_names
|
|
473
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
474
|
+
|
|
475
|
+
new_options = opts.merge(
|
|
476
|
+
:operation => :"ChatApi.chat_get",
|
|
477
|
+
:header_params => header_params,
|
|
478
|
+
:query_params => query_params,
|
|
479
|
+
:form_params => form_params,
|
|
480
|
+
:body => post_body,
|
|
481
|
+
:auth_names => auth_names,
|
|
482
|
+
:return_type => return_type
|
|
483
|
+
)
|
|
484
|
+
|
|
485
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
486
|
+
if @api_client.config.debugging
|
|
487
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
488
|
+
end
|
|
489
|
+
return data, status_code, headers
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Get chat messages
|
|
493
|
+
# Returns paginated messages for a chat with optional before/after cursor for time-based pagination.
|
|
494
|
+
# @param project_id [String] Project ID.
|
|
495
|
+
# @param chat_id [String] Chat ID.
|
|
496
|
+
# @param [Hash] opts the optional parameters
|
|
497
|
+
# @option opts [Integer] :page Page number (1-based). (default to 1)
|
|
498
|
+
# @option opts [Integer] :limit Number of messages per page. (default to 50)
|
|
499
|
+
# @option opts [Time] :before Return messages before this timestamp (cursor).
|
|
500
|
+
# @option opts [Time] :after Return messages after this timestamp (cursor).
|
|
501
|
+
# @return [ChatGetMessages200Response]
|
|
502
|
+
def chat_get_messages(project_id, chat_id, opts = {})
|
|
503
|
+
data, _status_code, _headers = chat_get_messages_with_http_info(project_id, chat_id, opts)
|
|
504
|
+
data
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Get chat messages
|
|
508
|
+
# Returns paginated messages for a chat with optional before/after cursor for time-based pagination.
|
|
509
|
+
# @param project_id [String] Project ID.
|
|
510
|
+
# @param chat_id [String] Chat ID.
|
|
511
|
+
# @param [Hash] opts the optional parameters
|
|
512
|
+
# @option opts [Integer] :page Page number (1-based). (default to 1)
|
|
513
|
+
# @option opts [Integer] :limit Number of messages per page. (default to 50)
|
|
514
|
+
# @option opts [Time] :before Return messages before this timestamp (cursor).
|
|
515
|
+
# @option opts [Time] :after Return messages after this timestamp (cursor).
|
|
516
|
+
# @return [Array<(ChatGetMessages200Response, Integer, Hash)>] ChatGetMessages200Response data, response status code and response headers
|
|
517
|
+
def chat_get_messages_with_http_info(project_id, chat_id, opts = {})
|
|
518
|
+
if @api_client.config.debugging
|
|
519
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_get_messages ...'
|
|
520
|
+
end
|
|
521
|
+
# verify the required parameter 'project_id' is set
|
|
522
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
523
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_get_messages"
|
|
524
|
+
end
|
|
525
|
+
# verify the required parameter 'chat_id' is set
|
|
526
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
527
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_get_messages"
|
|
528
|
+
end
|
|
529
|
+
# resource path
|
|
530
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/messages'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s))
|
|
531
|
+
|
|
532
|
+
# query parameters
|
|
533
|
+
query_params = opts[:query_params] || {}
|
|
534
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
535
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
536
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
|
537
|
+
query_params[:'after'] = opts[:'after'] if !opts[:'after'].nil?
|
|
538
|
+
|
|
539
|
+
# header parameters
|
|
540
|
+
header_params = opts[:header_params] || {}
|
|
541
|
+
# HTTP header 'Accept' (if needed)
|
|
542
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
543
|
+
|
|
544
|
+
# form parameters
|
|
545
|
+
form_params = opts[:form_params] || {}
|
|
546
|
+
|
|
547
|
+
# http body (model)
|
|
548
|
+
post_body = opts[:debug_body]
|
|
549
|
+
|
|
550
|
+
# return_type
|
|
551
|
+
return_type = opts[:debug_return_type] || 'ChatGetMessages200Response'
|
|
552
|
+
|
|
553
|
+
# auth_names
|
|
554
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
555
|
+
|
|
556
|
+
new_options = opts.merge(
|
|
557
|
+
:operation => :"ChatApi.chat_get_messages",
|
|
558
|
+
:header_params => header_params,
|
|
559
|
+
:query_params => query_params,
|
|
560
|
+
:form_params => form_params,
|
|
561
|
+
:body => post_body,
|
|
562
|
+
:auth_names => auth_names,
|
|
563
|
+
:return_type => return_type
|
|
564
|
+
)
|
|
565
|
+
|
|
566
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
567
|
+
if @api_client.config.debugging
|
|
568
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_get_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
569
|
+
end
|
|
570
|
+
return data, status_code, headers
|
|
571
|
+
end
|
|
572
|
+
|
|
573
|
+
# Get user chats
|
|
574
|
+
# Returns paginated list of chats for the current user in the project, with last message and unread count.
|
|
575
|
+
# @param project_id [String] Project ID.
|
|
576
|
+
# @param [Hash] opts the optional parameters
|
|
577
|
+
# @option opts [Integer] :page Page number (1-based). (default to 1)
|
|
578
|
+
# @option opts [Integer] :limit Number of chats per page. (default to 20)
|
|
579
|
+
# @return [ChatList200Response]
|
|
580
|
+
def chat_list(project_id, opts = {})
|
|
581
|
+
data, _status_code, _headers = chat_list_with_http_info(project_id, opts)
|
|
582
|
+
data
|
|
583
|
+
end
|
|
584
|
+
|
|
585
|
+
# Get user chats
|
|
586
|
+
# Returns paginated list of chats for the current user in the project, with last message and unread count.
|
|
587
|
+
# @param project_id [String] Project ID.
|
|
588
|
+
# @param [Hash] opts the optional parameters
|
|
589
|
+
# @option opts [Integer] :page Page number (1-based). (default to 1)
|
|
590
|
+
# @option opts [Integer] :limit Number of chats per page. (default to 20)
|
|
591
|
+
# @return [Array<(ChatList200Response, Integer, Hash)>] ChatList200Response data, response status code and response headers
|
|
592
|
+
def chat_list_with_http_info(project_id, opts = {})
|
|
593
|
+
if @api_client.config.debugging
|
|
594
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_list ...'
|
|
595
|
+
end
|
|
596
|
+
# verify the required parameter 'project_id' is set
|
|
597
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
598
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_list"
|
|
599
|
+
end
|
|
600
|
+
# resource path
|
|
601
|
+
local_var_path = '/api/chat/projects/{projectId}/chats'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s))
|
|
602
|
+
|
|
603
|
+
# query parameters
|
|
604
|
+
query_params = opts[:query_params] || {}
|
|
605
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
606
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
607
|
+
|
|
608
|
+
# header parameters
|
|
609
|
+
header_params = opts[:header_params] || {}
|
|
610
|
+
# HTTP header 'Accept' (if needed)
|
|
611
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
612
|
+
|
|
613
|
+
# form parameters
|
|
614
|
+
form_params = opts[:form_params] || {}
|
|
615
|
+
|
|
616
|
+
# http body (model)
|
|
617
|
+
post_body = opts[:debug_body]
|
|
618
|
+
|
|
619
|
+
# return_type
|
|
620
|
+
return_type = opts[:debug_return_type] || 'ChatList200Response'
|
|
621
|
+
|
|
622
|
+
# auth_names
|
|
623
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
624
|
+
|
|
625
|
+
new_options = opts.merge(
|
|
626
|
+
:operation => :"ChatApi.chat_list",
|
|
627
|
+
:header_params => header_params,
|
|
628
|
+
:query_params => query_params,
|
|
629
|
+
:form_params => form_params,
|
|
630
|
+
:body => post_body,
|
|
631
|
+
:auth_names => auth_names,
|
|
632
|
+
:return_type => return_type
|
|
633
|
+
)
|
|
634
|
+
|
|
635
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
636
|
+
if @api_client.config.debugging
|
|
637
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
638
|
+
end
|
|
639
|
+
return data, status_code, headers
|
|
640
|
+
end
|
|
641
|
+
|
|
642
|
+
# Mark messages as read
|
|
643
|
+
# Mark one or more messages as read for the current user in the chat.
|
|
644
|
+
# @param project_id [String] Project ID.
|
|
645
|
+
# @param chat_id [String] Chat ID.
|
|
646
|
+
# @param chat_mark_as_read_request [ChatMarkAsReadRequest] Array of message IDs to mark as read.
|
|
647
|
+
# @param [Hash] opts the optional parameters
|
|
648
|
+
# @return [ChatMarkAsRead200Response]
|
|
649
|
+
def chat_mark_as_read(project_id, chat_id, chat_mark_as_read_request, opts = {})
|
|
650
|
+
data, _status_code, _headers = chat_mark_as_read_with_http_info(project_id, chat_id, chat_mark_as_read_request, opts)
|
|
651
|
+
data
|
|
652
|
+
end
|
|
653
|
+
|
|
654
|
+
# Mark messages as read
|
|
655
|
+
# Mark one or more messages as read for the current user in the chat.
|
|
656
|
+
# @param project_id [String] Project ID.
|
|
657
|
+
# @param chat_id [String] Chat ID.
|
|
658
|
+
# @param chat_mark_as_read_request [ChatMarkAsReadRequest] Array of message IDs to mark as read.
|
|
659
|
+
# @param [Hash] opts the optional parameters
|
|
660
|
+
# @return [Array<(ChatMarkAsRead200Response, Integer, Hash)>] ChatMarkAsRead200Response data, response status code and response headers
|
|
661
|
+
def chat_mark_as_read_with_http_info(project_id, chat_id, chat_mark_as_read_request, opts = {})
|
|
662
|
+
if @api_client.config.debugging
|
|
663
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_mark_as_read ...'
|
|
664
|
+
end
|
|
665
|
+
# verify the required parameter 'project_id' is set
|
|
666
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
667
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_mark_as_read"
|
|
668
|
+
end
|
|
669
|
+
# verify the required parameter 'chat_id' is set
|
|
670
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
671
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_mark_as_read"
|
|
672
|
+
end
|
|
673
|
+
# verify the required parameter 'chat_mark_as_read_request' is set
|
|
674
|
+
if @api_client.config.client_side_validation && chat_mark_as_read_request.nil?
|
|
675
|
+
fail ArgumentError, "Missing the required parameter 'chat_mark_as_read_request' when calling ChatApi.chat_mark_as_read"
|
|
676
|
+
end
|
|
677
|
+
# resource path
|
|
678
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/messages/read'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s))
|
|
679
|
+
|
|
680
|
+
# query parameters
|
|
681
|
+
query_params = opts[:query_params] || {}
|
|
682
|
+
|
|
683
|
+
# header parameters
|
|
684
|
+
header_params = opts[:header_params] || {}
|
|
685
|
+
# HTTP header 'Accept' (if needed)
|
|
686
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
687
|
+
# HTTP header 'Content-Type'
|
|
688
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
689
|
+
if !content_type.nil?
|
|
690
|
+
header_params['Content-Type'] = content_type
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# form parameters
|
|
694
|
+
form_params = opts[:form_params] || {}
|
|
695
|
+
|
|
696
|
+
# http body (model)
|
|
697
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_mark_as_read_request)
|
|
698
|
+
|
|
699
|
+
# return_type
|
|
700
|
+
return_type = opts[:debug_return_type] || 'ChatMarkAsRead200Response'
|
|
701
|
+
|
|
702
|
+
# auth_names
|
|
703
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
704
|
+
|
|
705
|
+
new_options = opts.merge(
|
|
706
|
+
:operation => :"ChatApi.chat_mark_as_read",
|
|
707
|
+
:header_params => header_params,
|
|
708
|
+
:query_params => query_params,
|
|
709
|
+
:form_params => form_params,
|
|
710
|
+
:body => post_body,
|
|
711
|
+
:auth_names => auth_names,
|
|
712
|
+
:return_type => return_type
|
|
713
|
+
)
|
|
714
|
+
|
|
715
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
716
|
+
if @api_client.config.debugging
|
|
717
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_mark_as_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
718
|
+
end
|
|
719
|
+
return data, status_code, headers
|
|
720
|
+
end
|
|
721
|
+
|
|
722
|
+
# Remove participant from chat
|
|
723
|
+
# Remove a user from the chat by userId.
|
|
724
|
+
# @param project_id [String] Project ID.
|
|
725
|
+
# @param chat_id [String] Chat ID.
|
|
726
|
+
# @param chat_remove_participant_request [ChatRemoveParticipantRequest] User ID of the participant to remove.
|
|
727
|
+
# @param [Hash] opts the optional parameters
|
|
728
|
+
# @return [MessageResponse]
|
|
729
|
+
def chat_remove_participant(project_id, chat_id, chat_remove_participant_request, opts = {})
|
|
730
|
+
data, _status_code, _headers = chat_remove_participant_with_http_info(project_id, chat_id, chat_remove_participant_request, opts)
|
|
731
|
+
data
|
|
732
|
+
end
|
|
733
|
+
|
|
734
|
+
# Remove participant from chat
|
|
735
|
+
# Remove a user from the chat by userId.
|
|
736
|
+
# @param project_id [String] Project ID.
|
|
737
|
+
# @param chat_id [String] Chat ID.
|
|
738
|
+
# @param chat_remove_participant_request [ChatRemoveParticipantRequest] User ID of the participant to remove.
|
|
739
|
+
# @param [Hash] opts the optional parameters
|
|
740
|
+
# @return [Array<(MessageResponse, Integer, Hash)>] MessageResponse data, response status code and response headers
|
|
741
|
+
def chat_remove_participant_with_http_info(project_id, chat_id, chat_remove_participant_request, opts = {})
|
|
742
|
+
if @api_client.config.debugging
|
|
743
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_remove_participant ...'
|
|
744
|
+
end
|
|
745
|
+
# verify the required parameter 'project_id' is set
|
|
746
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
747
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_remove_participant"
|
|
748
|
+
end
|
|
749
|
+
# verify the required parameter 'chat_id' is set
|
|
750
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
751
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_remove_participant"
|
|
752
|
+
end
|
|
753
|
+
# verify the required parameter 'chat_remove_participant_request' is set
|
|
754
|
+
if @api_client.config.client_side_validation && chat_remove_participant_request.nil?
|
|
755
|
+
fail ArgumentError, "Missing the required parameter 'chat_remove_participant_request' when calling ChatApi.chat_remove_participant"
|
|
756
|
+
end
|
|
757
|
+
# resource path
|
|
758
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/participants'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s))
|
|
759
|
+
|
|
760
|
+
# query parameters
|
|
761
|
+
query_params = opts[:query_params] || {}
|
|
762
|
+
|
|
763
|
+
# header parameters
|
|
764
|
+
header_params = opts[:header_params] || {}
|
|
765
|
+
# HTTP header 'Accept' (if needed)
|
|
766
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
767
|
+
# HTTP header 'Content-Type'
|
|
768
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
769
|
+
if !content_type.nil?
|
|
770
|
+
header_params['Content-Type'] = content_type
|
|
771
|
+
end
|
|
772
|
+
|
|
773
|
+
# form parameters
|
|
774
|
+
form_params = opts[:form_params] || {}
|
|
775
|
+
|
|
776
|
+
# http body (model)
|
|
777
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_remove_participant_request)
|
|
778
|
+
|
|
779
|
+
# return_type
|
|
780
|
+
return_type = opts[:debug_return_type] || 'MessageResponse'
|
|
781
|
+
|
|
782
|
+
# auth_names
|
|
783
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
784
|
+
|
|
785
|
+
new_options = opts.merge(
|
|
786
|
+
:operation => :"ChatApi.chat_remove_participant",
|
|
787
|
+
:header_params => header_params,
|
|
788
|
+
:query_params => query_params,
|
|
789
|
+
:form_params => form_params,
|
|
790
|
+
:body => post_body,
|
|
791
|
+
:auth_names => auth_names,
|
|
792
|
+
:return_type => return_type
|
|
793
|
+
)
|
|
794
|
+
|
|
795
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
796
|
+
if @api_client.config.debugging
|
|
797
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_remove_participant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
798
|
+
end
|
|
799
|
+
return data, status_code, headers
|
|
800
|
+
end
|
|
801
|
+
|
|
802
|
+
# Remove reaction from message
|
|
803
|
+
# Remove the current user's emoji reaction from a message.
|
|
804
|
+
# @param project_id [String] Project ID.
|
|
805
|
+
# @param chat_id [String] Chat ID.
|
|
806
|
+
# @param message_id [String] Message ID.
|
|
807
|
+
# @param chat_add_reaction_request [ChatAddReactionRequest] Emoji to remove (must match the reaction added by the user).
|
|
808
|
+
# @param [Hash] opts the optional parameters
|
|
809
|
+
# @return [ChatRemoveReaction200Response]
|
|
810
|
+
def chat_remove_reaction(project_id, chat_id, message_id, chat_add_reaction_request, opts = {})
|
|
811
|
+
data, _status_code, _headers = chat_remove_reaction_with_http_info(project_id, chat_id, message_id, chat_add_reaction_request, opts)
|
|
812
|
+
data
|
|
813
|
+
end
|
|
814
|
+
|
|
815
|
+
# Remove reaction from message
|
|
816
|
+
# Remove the current user's emoji reaction from a message.
|
|
817
|
+
# @param project_id [String] Project ID.
|
|
818
|
+
# @param chat_id [String] Chat ID.
|
|
819
|
+
# @param message_id [String] Message ID.
|
|
820
|
+
# @param chat_add_reaction_request [ChatAddReactionRequest] Emoji to remove (must match the reaction added by the user).
|
|
821
|
+
# @param [Hash] opts the optional parameters
|
|
822
|
+
# @return [Array<(ChatRemoveReaction200Response, Integer, Hash)>] ChatRemoveReaction200Response data, response status code and response headers
|
|
823
|
+
def chat_remove_reaction_with_http_info(project_id, chat_id, message_id, chat_add_reaction_request, opts = {})
|
|
824
|
+
if @api_client.config.debugging
|
|
825
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_remove_reaction ...'
|
|
826
|
+
end
|
|
827
|
+
# verify the required parameter 'project_id' is set
|
|
828
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
829
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_remove_reaction"
|
|
830
|
+
end
|
|
831
|
+
# verify the required parameter 'chat_id' is set
|
|
832
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
833
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_remove_reaction"
|
|
834
|
+
end
|
|
835
|
+
# verify the required parameter 'message_id' is set
|
|
836
|
+
if @api_client.config.client_side_validation && message_id.nil?
|
|
837
|
+
fail ArgumentError, "Missing the required parameter 'message_id' when calling ChatApi.chat_remove_reaction"
|
|
838
|
+
end
|
|
839
|
+
# verify the required parameter 'chat_add_reaction_request' is set
|
|
840
|
+
if @api_client.config.client_side_validation && chat_add_reaction_request.nil?
|
|
841
|
+
fail ArgumentError, "Missing the required parameter 'chat_add_reaction_request' when calling ChatApi.chat_remove_reaction"
|
|
842
|
+
end
|
|
843
|
+
# resource path
|
|
844
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/messages/{messageId}/reactions'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s)).sub('{' + 'messageId' + '}', CGI.escape(message_id.to_s))
|
|
845
|
+
|
|
846
|
+
# query parameters
|
|
847
|
+
query_params = opts[:query_params] || {}
|
|
848
|
+
|
|
849
|
+
# header parameters
|
|
850
|
+
header_params = opts[:header_params] || {}
|
|
851
|
+
# HTTP header 'Accept' (if needed)
|
|
852
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
853
|
+
# HTTP header 'Content-Type'
|
|
854
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
855
|
+
if !content_type.nil?
|
|
856
|
+
header_params['Content-Type'] = content_type
|
|
857
|
+
end
|
|
858
|
+
|
|
859
|
+
# form parameters
|
|
860
|
+
form_params = opts[:form_params] || {}
|
|
861
|
+
|
|
862
|
+
# http body (model)
|
|
863
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_add_reaction_request)
|
|
864
|
+
|
|
865
|
+
# return_type
|
|
866
|
+
return_type = opts[:debug_return_type] || 'ChatRemoveReaction200Response'
|
|
867
|
+
|
|
868
|
+
# auth_names
|
|
869
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
870
|
+
|
|
871
|
+
new_options = opts.merge(
|
|
872
|
+
:operation => :"ChatApi.chat_remove_reaction",
|
|
873
|
+
:header_params => header_params,
|
|
874
|
+
:query_params => query_params,
|
|
875
|
+
:form_params => form_params,
|
|
876
|
+
:body => post_body,
|
|
877
|
+
:auth_names => auth_names,
|
|
878
|
+
:return_type => return_type
|
|
879
|
+
)
|
|
880
|
+
|
|
881
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
882
|
+
if @api_client.config.debugging
|
|
883
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_remove_reaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
884
|
+
end
|
|
885
|
+
return data, status_code, headers
|
|
886
|
+
end
|
|
887
|
+
|
|
888
|
+
# Send message
|
|
889
|
+
# Send a message (text, image, video, audio, file, location, contact) to a chat with optional replyTo and mentions.
|
|
890
|
+
# @param project_id [String] Project ID.
|
|
891
|
+
# @param chat_id [String] Chat ID.
|
|
892
|
+
# @param chat_send_message_request [ChatSendMessageRequest] Message type, content, optional replyTo and mentions.
|
|
893
|
+
# @param [Hash] opts the optional parameters
|
|
894
|
+
# @return [ChatSendMessage201Response]
|
|
895
|
+
def chat_send_message(project_id, chat_id, chat_send_message_request, opts = {})
|
|
896
|
+
data, _status_code, _headers = chat_send_message_with_http_info(project_id, chat_id, chat_send_message_request, opts)
|
|
897
|
+
data
|
|
898
|
+
end
|
|
899
|
+
|
|
900
|
+
# Send message
|
|
901
|
+
# Send a message (text, image, video, audio, file, location, contact) to a chat with optional replyTo and mentions.
|
|
902
|
+
# @param project_id [String] Project ID.
|
|
903
|
+
# @param chat_id [String] Chat ID.
|
|
904
|
+
# @param chat_send_message_request [ChatSendMessageRequest] Message type, content, optional replyTo and mentions.
|
|
905
|
+
# @param [Hash] opts the optional parameters
|
|
906
|
+
# @return [Array<(ChatSendMessage201Response, Integer, Hash)>] ChatSendMessage201Response data, response status code and response headers
|
|
907
|
+
def chat_send_message_with_http_info(project_id, chat_id, chat_send_message_request, opts = {})
|
|
908
|
+
if @api_client.config.debugging
|
|
909
|
+
@api_client.config.logger.debug 'Calling API: ChatApi.chat_send_message ...'
|
|
910
|
+
end
|
|
911
|
+
# verify the required parameter 'project_id' is set
|
|
912
|
+
if @api_client.config.client_side_validation && project_id.nil?
|
|
913
|
+
fail ArgumentError, "Missing the required parameter 'project_id' when calling ChatApi.chat_send_message"
|
|
914
|
+
end
|
|
915
|
+
# verify the required parameter 'chat_id' is set
|
|
916
|
+
if @api_client.config.client_side_validation && chat_id.nil?
|
|
917
|
+
fail ArgumentError, "Missing the required parameter 'chat_id' when calling ChatApi.chat_send_message"
|
|
918
|
+
end
|
|
919
|
+
# verify the required parameter 'chat_send_message_request' is set
|
|
920
|
+
if @api_client.config.client_side_validation && chat_send_message_request.nil?
|
|
921
|
+
fail ArgumentError, "Missing the required parameter 'chat_send_message_request' when calling ChatApi.chat_send_message"
|
|
922
|
+
end
|
|
923
|
+
# resource path
|
|
924
|
+
local_var_path = '/api/chat/projects/{projectId}/chats/{chatId}/messages'.sub('{' + 'projectId' + '}', CGI.escape(project_id.to_s)).sub('{' + 'chatId' + '}', CGI.escape(chat_id.to_s))
|
|
925
|
+
|
|
926
|
+
# query parameters
|
|
927
|
+
query_params = opts[:query_params] || {}
|
|
928
|
+
|
|
929
|
+
# header parameters
|
|
930
|
+
header_params = opts[:header_params] || {}
|
|
931
|
+
# HTTP header 'Accept' (if needed)
|
|
932
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
|
|
933
|
+
# HTTP header 'Content-Type'
|
|
934
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
935
|
+
if !content_type.nil?
|
|
936
|
+
header_params['Content-Type'] = content_type
|
|
937
|
+
end
|
|
938
|
+
|
|
939
|
+
# form parameters
|
|
940
|
+
form_params = opts[:form_params] || {}
|
|
941
|
+
|
|
942
|
+
# http body (model)
|
|
943
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(chat_send_message_request)
|
|
944
|
+
|
|
945
|
+
# return_type
|
|
946
|
+
return_type = opts[:debug_return_type] || 'ChatSendMessage201Response'
|
|
947
|
+
|
|
948
|
+
# auth_names
|
|
949
|
+
auth_names = opts[:debug_auth_names] || ['BearerToken']
|
|
950
|
+
|
|
951
|
+
new_options = opts.merge(
|
|
952
|
+
:operation => :"ChatApi.chat_send_message",
|
|
953
|
+
:header_params => header_params,
|
|
954
|
+
:query_params => query_params,
|
|
955
|
+
:form_params => form_params,
|
|
956
|
+
:body => post_body,
|
|
957
|
+
:auth_names => auth_names,
|
|
958
|
+
:return_type => return_type
|
|
959
|
+
)
|
|
960
|
+
|
|
961
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
962
|
+
if @api_client.config.debugging
|
|
963
|
+
@api_client.config.logger.debug "API called: ChatApi#chat_send_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
964
|
+
end
|
|
965
|
+
return data, status_code, headers
|
|
966
|
+
end
|
|
967
|
+
end
|
|
968
|
+
end
|