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