kinde_sdk 1.6.3 → 1.6.5

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 (592) hide show
  1. checksums.yaml +4 -4
  2. data/app/controllers/kinde_sdk/auth_controller.rb +133 -67
  3. data/app/helpers/auth_helper.rb +88 -0
  4. data/config/routes.rb +3 -1
  5. data/kinde_api/Gemfile +9 -0
  6. data/kinde_api/README.md +316 -47
  7. data/kinde_api/Rakefile +10 -0
  8. data/kinde_api/docs/APIsApi.md +569 -60
  9. data/kinde_api/docs/AddAPIScopeRequest.md +20 -0
  10. data/kinde_api/docs/AddAPIsRequest.md +4 -4
  11. data/kinde_api/docs/AddOrganizationUsersRequestUsersInner.md +1 -1
  12. data/kinde_api/docs/AddRoleScopeRequest.md +18 -0
  13. data/kinde_api/docs/AddRoleScopeResponse.md +20 -0
  14. data/kinde_api/docs/ApplicationsApi.md +465 -38
  15. data/kinde_api/docs/AuthorizeAppApiResponse.md +24 -0
  16. data/kinde_api/docs/BillingAgreementsApi.md +157 -0
  17. data/kinde_api/docs/BillingEntitlementsApi.md +89 -0
  18. data/kinde_api/docs/BillingMeterUsageApi.md +77 -0
  19. data/kinde_api/docs/BusinessApi.md +27 -66
  20. data/kinde_api/docs/CallbacksApi.md +25 -25
  21. data/kinde_api/docs/Category.md +20 -0
  22. data/kinde_api/docs/ConnectedAppsApi.md +8 -8
  23. data/kinde_api/docs/Connection.md +22 -0
  24. data/kinde_api/docs/ConnectionConnection.md +24 -0
  25. data/kinde_api/docs/ConnectionsApi.md +439 -0
  26. data/kinde_api/docs/CreateApiScopesResponse.md +22 -0
  27. data/kinde_api/docs/CreateApiScopesResponseScope.md +18 -0
  28. data/kinde_api/docs/CreateApisResponse.md +22 -0
  29. data/kinde_api/docs/CreateApisResponseApi.md +18 -0
  30. data/kinde_api/docs/CreateApplicationRequest.md +3 -3
  31. data/kinde_api/docs/CreateApplicationResponseApplication.md +4 -4
  32. data/kinde_api/docs/CreateBillingAgreementRequest.md +24 -0
  33. data/kinde_api/docs/CreateCategoryRequest.md +20 -0
  34. data/kinde_api/docs/CreateCategoryResponse.md +22 -0
  35. data/kinde_api/docs/CreateCategoryResponseCategory.md +18 -0
  36. data/kinde_api/docs/CreateConnectionRequest.md +28 -0
  37. data/kinde_api/docs/CreateConnectionRequestOptions.md +51 -0
  38. data/kinde_api/docs/CreateConnectionRequestOptionsOneOf.md +22 -0
  39. data/kinde_api/docs/CreateConnectionRequestOptionsOneOf1.md +34 -0
  40. data/kinde_api/docs/CreateConnectionRequestOptionsOneOf2.md +44 -0
  41. data/kinde_api/docs/CreateConnectionResponse.md +22 -0
  42. data/kinde_api/docs/CreateConnectionResponseConnection.md +18 -0
  43. data/kinde_api/docs/CreateEnvironmentVariableRequest.md +22 -0
  44. data/kinde_api/docs/CreateEnvironmentVariableResponse.md +22 -0
  45. data/kinde_api/docs/CreateEnvironmentVariableResponseEnvironmentVariable.md +18 -0
  46. data/kinde_api/docs/CreateIdentityResponse.md +22 -0
  47. data/kinde_api/docs/CreateIdentityResponseIdentity.md +18 -0
  48. data/kinde_api/docs/CreateMeterUsageRecordRequest.md +26 -0
  49. data/kinde_api/docs/CreateMeterUsageRecordResponse.md +20 -0
  50. data/kinde_api/docs/CreateOrganizationRequest.md +17 -7
  51. data/kinde_api/docs/CreateOrganizationResponse.md +4 -4
  52. data/kinde_api/docs/CreateOrganizationResponseOrganization.md +4 -2
  53. data/kinde_api/docs/CreatePropertyRequest.md +30 -0
  54. data/kinde_api/docs/CreatePropertyResponse.md +22 -0
  55. data/kinde_api/docs/CreatePropertyResponseProperty.md +18 -0
  56. data/kinde_api/docs/CreateRolesResponse.md +22 -0
  57. data/kinde_api/docs/CreateRolesResponseRole.md +18 -0
  58. data/kinde_api/docs/CreateUserIdentityRequest.md +24 -0
  59. data/kinde_api/docs/CreateUserRequest.md +3 -1
  60. data/kinde_api/docs/CreateUserRequestIdentitiesInner.md +3 -1
  61. data/kinde_api/docs/CreateUserRequestIdentitiesInnerDetails.md +7 -1
  62. data/kinde_api/docs/CreateUserRequestProfile.md +3 -1
  63. data/kinde_api/docs/CreateUserResponse.md +1 -1
  64. data/kinde_api/docs/CreateWebHookRequest.md +24 -0
  65. data/kinde_api/docs/CreateWebhookResponse.md +22 -0
  66. data/kinde_api/docs/CreateWebhookResponseWebhook.md +20 -0
  67. data/kinde_api/docs/DeleteApiResponse.md +20 -0
  68. data/kinde_api/docs/DeleteEnvironmentVariableResponse.md +20 -0
  69. data/kinde_api/docs/DeleteRoleScopeResponse.md +20 -0
  70. data/kinde_api/docs/DeleteWebhookResponse.md +20 -0
  71. data/kinde_api/docs/EnvironmentVariable.md +26 -0
  72. data/kinde_api/docs/EnvironmentVariablesApi.md +356 -0
  73. data/kinde_api/docs/EnvironmentsApi.md +281 -5
  74. data/kinde_api/docs/EventType.md +26 -0
  75. data/kinde_api/docs/FeatureFlagsApi.md +4 -4
  76. data/kinde_api/docs/GetApiResponse.md +22 -0
  77. data/kinde_api/docs/GetApiResponseApi.md +28 -0
  78. data/kinde_api/docs/GetApiResponseApiApplicationsInner.md +24 -0
  79. data/kinde_api/docs/GetApiResponseApiScopesInner.md +20 -0
  80. data/kinde_api/docs/GetApiScopeResponse.md +22 -0
  81. data/kinde_api/docs/GetApiScopesResponse.md +22 -0
  82. data/kinde_api/docs/GetApiScopesResponseScopesInner.md +22 -0
  83. data/kinde_api/docs/GetApisResponse.md +24 -0
  84. data/kinde_api/docs/GetApisResponseApisInner.md +26 -0
  85. data/kinde_api/docs/GetApisResponseApisInnerScopesInner.md +20 -0
  86. data/kinde_api/docs/GetApplicationResponseApplication.md +11 -5
  87. data/kinde_api/docs/GetBillingAgreementsResponse.md +24 -0
  88. data/kinde_api/docs/GetBillingAgreementsResponseAgreementsInner.md +26 -0
  89. data/kinde_api/docs/GetBillingAgreementsResponseAgreementsInnerEntitlementsInner.md +20 -0
  90. data/kinde_api/docs/GetBillingEntitlementsResponse.md +26 -0
  91. data/kinde_api/docs/GetBillingEntitlementsResponseEntitlementsInner.md +32 -0
  92. data/kinde_api/docs/GetBillingEntitlementsResponsePlansInner.md +20 -0
  93. data/kinde_api/docs/GetBusinessResponse.md +22 -0
  94. data/kinde_api/docs/GetBusinessResponseBusiness.md +38 -0
  95. data/kinde_api/docs/GetCategoriesResponse.md +24 -0
  96. data/kinde_api/docs/GetConnectionsResponse.md +24 -0
  97. data/kinde_api/docs/GetEnvironmentResponse.md +22 -0
  98. data/kinde_api/docs/GetEnvironmentResponseEnvironment.md +68 -0
  99. data/kinde_api/docs/GetEnvironmentResponseEnvironmentBackgroundColor.md +22 -0
  100. data/kinde_api/docs/GetEnvironmentResponseEnvironmentLinkColor.md +22 -0
  101. data/kinde_api/docs/GetEnvironmentVariableResponse.md +22 -0
  102. data/kinde_api/docs/GetEnvironmentVariablesResponse.md +24 -0
  103. data/kinde_api/docs/GetEventResponse.md +22 -0
  104. data/kinde_api/docs/GetEventResponseEvent.md +26 -0
  105. data/kinde_api/docs/GetEventTypesResponse.md +22 -0
  106. data/kinde_api/docs/GetIdentitiesResponse.md +24 -0
  107. data/kinde_api/docs/GetIndustriesResponse.md +22 -0
  108. data/kinde_api/docs/GetIndustriesResponseIndustriesInner.md +20 -0
  109. data/kinde_api/docs/GetOrganizationResponse.md +72 -0
  110. data/kinde_api/docs/GetOrganizationResponseBilling.md +20 -0
  111. data/kinde_api/docs/GetOrganizationResponseBillingAgreementsInner.md +20 -0
  112. data/kinde_api/docs/GetOrganizationUsersResponse.md +2 -2
  113. data/kinde_api/docs/GetOrganizationsResponse.md +4 -4
  114. data/kinde_api/docs/GetPropertiesResponse.md +24 -0
  115. data/kinde_api/docs/GetPropertyValuesResponse.md +24 -0
  116. data/kinde_api/docs/GetRoleResponse.md +22 -0
  117. data/kinde_api/docs/GetRoleResponseRole.md +26 -0
  118. data/kinde_api/docs/GetTimezonesResponse.md +22 -0
  119. data/kinde_api/docs/GetTimezonesResponseTimezonesInner.md +20 -0
  120. data/kinde_api/docs/GetUserMfaResponse.md +22 -0
  121. data/kinde_api/docs/GetUserMfaResponseMfa.md +30 -0
  122. data/kinde_api/docs/GetUserSessionsResponse.md +24 -0
  123. data/kinde_api/docs/GetUserSessionsResponseSessionsInner.md +40 -0
  124. data/kinde_api/docs/GetWebhooksResponse.md +22 -0
  125. data/kinde_api/docs/IdentitiesApi.md +219 -0
  126. data/kinde_api/docs/Identity.md +34 -0
  127. data/kinde_api/docs/IndustriesApi.md +14 -21
  128. data/kinde_api/docs/LogoutRedirectUrls.md +6 -2
  129. data/kinde_api/docs/MFAApi.md +77 -0
  130. data/kinde_api/docs/NotFoundResponse.md +18 -0
  131. data/kinde_api/docs/NotFoundResponseErrors.md +20 -0
  132. data/kinde_api/docs/OAuthApi.md +32 -97
  133. data/kinde_api/docs/OrganizationItemSchema.md +28 -0
  134. data/kinde_api/docs/OrganizationUser.md +17 -11
  135. data/kinde_api/docs/OrganizationsApi.md +1440 -210
  136. data/kinde_api/docs/Permissions.md +1 -1
  137. data/kinde_api/docs/PermissionsApi.md +7 -7
  138. data/kinde_api/docs/PropertiesApi.md +297 -0
  139. data/kinde_api/docs/Property.md +28 -0
  140. data/kinde_api/docs/PropertyCategoriesApi.md +227 -0
  141. data/kinde_api/docs/PropertyValue.md +26 -0
  142. data/kinde_api/docs/ReadEnvLogoResponse.md +22 -0
  143. data/kinde_api/docs/ReadEnvLogoResponseLogosInner.md +20 -0
  144. data/kinde_api/docs/ReadLogoResponse.md +22 -0
  145. data/kinde_api/docs/ReadLogoResponseLogosInner.md +22 -0
  146. data/kinde_api/docs/ReplaceConnectionRequest.md +24 -0
  147. data/kinde_api/docs/ReplaceConnectionRequestOptions.md +51 -0
  148. data/kinde_api/docs/ReplaceConnectionRequestOptionsOneOf.md +32 -0
  149. data/kinde_api/docs/ReplaceConnectionRequestOptionsOneOf1.md +40 -0
  150. data/kinde_api/docs/ReplaceMFARequest.md +20 -0
  151. data/kinde_api/docs/ReplaceOrganizationMFARequest.md +18 -0
  152. data/kinde_api/docs/RolePermissionsResponse.md +24 -0
  153. data/kinde_api/docs/RoleScopesResponse.md +22 -0
  154. data/kinde_api/docs/Roles.md +4 -2
  155. data/kinde_api/docs/RolesApi.md +338 -54
  156. data/kinde_api/docs/Scopes.md +24 -0
  157. data/kinde_api/docs/SearchApi.md +89 -0
  158. data/kinde_api/docs/SearchUsersResponse.md +22 -0
  159. data/kinde_api/docs/SearchUsersResponseResultsInner.md +46 -0
  160. data/kinde_api/docs/SetUserPasswordRequest.md +26 -0
  161. data/kinde_api/docs/SubscribersApi.md +4 -4
  162. data/kinde_api/docs/SuccessResponse.md +2 -2
  163. data/kinde_api/docs/TimezonesApi.md +14 -21
  164. data/kinde_api/docs/TokenIntrospect.md +5 -5
  165. data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +4 -4
  166. data/kinde_api/docs/UpdateAPIScopeRequest.md +18 -0
  167. data/kinde_api/docs/UpdateApplicationRequest.md +5 -1
  168. data/kinde_api/docs/UpdateApplicationTokensRequest.md +26 -0
  169. data/kinde_api/docs/UpdateApplicationsPropertyRequest.md +18 -0
  170. data/kinde_api/docs/UpdateApplicationsPropertyRequestValue.md +49 -0
  171. data/kinde_api/docs/UpdateBusinessRequest.md +36 -0
  172. data/kinde_api/docs/UpdateCategoryRequest.md +18 -0
  173. data/kinde_api/docs/UpdateConnectionRequest.md +24 -0
  174. data/kinde_api/docs/UpdateEnvironmentVariableRequest.md +22 -0
  175. data/kinde_api/docs/UpdateEnvironmentVariableResponse.md +20 -0
  176. data/kinde_api/docs/UpdateIdentityRequest.md +18 -0
  177. data/kinde_api/docs/UpdateOrganizationPropertiesRequest.md +18 -0
  178. data/kinde_api/docs/UpdateOrganizationRequest.md +27 -15
  179. data/kinde_api/docs/UpdateOrganizationSessionsRequest.md +24 -0
  180. data/kinde_api/docs/UpdateOrganizationUsersRequestUsersInner.md +2 -2
  181. data/kinde_api/docs/UpdateOrganizationUsersResponse.md +3 -1
  182. data/kinde_api/docs/UpdatePropertyRequest.md +24 -0
  183. data/kinde_api/docs/UpdateUserRequest.md +5 -1
  184. data/kinde_api/docs/UpdateUserResponse.md +1 -1
  185. data/kinde_api/docs/UpdateWebHookRequest.md +22 -0
  186. data/kinde_api/docs/UpdateWebhookResponse.md +22 -0
  187. data/kinde_api/docs/UpdateWebhookResponseWebhook.md +18 -0
  188. data/kinde_api/docs/User.md +6 -2
  189. data/kinde_api/docs/UserProfileV2.md +17 -13
  190. data/kinde_api/docs/UsersApi.md +893 -99
  191. data/kinde_api/docs/UsersResponseUsersInner.md +6 -2
  192. data/kinde_api/docs/Webhook.md +28 -0
  193. data/kinde_api/docs/WebhooksApi.md +423 -0
  194. data/kinde_api/git_push.sh +57 -0
  195. data/kinde_api/kinde_api.gemspec +38 -0
  196. data/kinde_api/lib/kinde_api/api/apis_api.rb +640 -127
  197. data/kinde_api/lib/kinde_api/api/applications_api.rb +524 -112
  198. data/kinde_api/lib/kinde_api/api/billing_agreements_api.rb +166 -0
  199. data/kinde_api/lib/kinde_api/api/billing_entitlements_api.rb +105 -0
  200. data/kinde_api/lib/kinde_api/api/billing_meter_usage_api.rb +90 -0
  201. data/kinde_api/lib/kinde_api/api/business_api.rb +61 -126
  202. data/kinde_api/lib/kinde_api/api/callbacks_api.rb +152 -172
  203. data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +57 -67
  204. data/kinde_api/lib/kinde_api/api/connections_api.rb +433 -0
  205. data/kinde_api/lib/kinde_api/api/environment_variables_api.rb +347 -0
  206. data/kinde_api/lib/kinde_api/api/environments_api.rb +327 -78
  207. data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +68 -88
  208. data/kinde_api/lib/kinde_api/api/identities_api.rb +222 -0
  209. data/kinde_api/lib/kinde_api/api/industries_api.rb +29 -34
  210. data/kinde_api/lib/kinde_api/api/mfa_api.rb +90 -0
  211. data/kinde_api/lib/kinde_api/api/o_auth_api.rb +104 -129
  212. data/kinde_api/lib/kinde_api/api/organizations_api.rb +1689 -544
  213. data/kinde_api/lib/kinde_api/api/permissions_api.rb +76 -80
  214. data/kinde_api/lib/kinde_api/api/properties_api.rb +300 -0
  215. data/kinde_api/lib/kinde_api/api/property_categories_api.rb +237 -0
  216. data/kinde_api/lib/kinde_api/api/roles_api.rb +432 -166
  217. data/kinde_api/lib/kinde_api/api/search_api.rb +97 -0
  218. data/kinde_api/lib/kinde_api/api/subscribers_api.rb +59 -60
  219. data/kinde_api/lib/kinde_api/api/timezones_api.rb +29 -34
  220. data/kinde_api/lib/kinde_api/api/users_api.rb +900 -150
  221. data/kinde_api/lib/kinde_api/api/webhooks_api.rb +404 -0
  222. data/kinde_api/lib/kinde_api/api_client.rb +79 -68
  223. data/kinde_api/lib/kinde_api/api_error.rb +16 -16
  224. data/kinde_api/lib/kinde_api/configuration.rb +101 -24
  225. data/kinde_api/lib/kinde_api/models/add_api_scope_request.rb +235 -0
  226. data/kinde_api/lib/kinde_api/models/add_apis_request.rb +54 -49
  227. data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +40 -42
  228. data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +53 -51
  229. data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +52 -50
  230. data/kinde_api/lib/kinde_api/models/add_role_scope_request.rb +225 -0
  231. data/kinde_api/lib/kinde_api/models/add_role_scope_response.rb +230 -0
  232. data/kinde_api/lib/kinde_api/models/api_result.rb +38 -40
  233. data/kinde_api/lib/kinde_api/models/applications.rb +55 -50
  234. data/kinde_api/lib/kinde_api/models/authorize_app_api_response.rb +250 -0
  235. data/kinde_api/lib/kinde_api/models/category.rb +228 -0
  236. data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +44 -45
  237. data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +44 -45
  238. data/kinde_api/lib/kinde_api/models/connection.rb +239 -0
  239. data/kinde_api/lib/kinde_api/models/connection_connection.rb +246 -0
  240. data/kinde_api/lib/kinde_api/models/create_api_scopes_response.rb +239 -0
  241. data/kinde_api/lib/kinde_api/models/create_api_scopes_response_scope.rb +220 -0
  242. data/kinde_api/lib/kinde_api/models/create_apis_response.rb +239 -0
  243. data/kinde_api/lib/kinde_api/models/create_apis_response_api.rb +220 -0
  244. data/kinde_api/lib/kinde_api/models/create_application_request.rb +60 -52
  245. data/kinde_api/lib/kinde_api/models/create_application_response.rb +50 -49
  246. data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +51 -50
  247. data/kinde_api/lib/kinde_api/models/create_billing_agreement_request.rb +260 -0
  248. data/kinde_api/lib/kinde_api/models/create_category_request.rb +274 -0
  249. data/kinde_api/lib/kinde_api/models/create_category_response.rb +237 -0
  250. data/kinde_api/lib/kinde_api/models/create_category_response_category.rb +220 -0
  251. data/kinde_api/lib/kinde_api/models/create_connection_request.rb +306 -0
  252. data/kinde_api/lib/kinde_api/models/create_connection_request_options.rb +106 -0
  253. data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of.rb +241 -0
  254. data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of1.rb +303 -0
  255. data/kinde_api/lib/kinde_api/models/create_connection_request_options_one_of2.rb +333 -0
  256. data/kinde_api/lib/kinde_api/models/create_connection_response.rb +237 -0
  257. data/kinde_api/lib/kinde_api/models/create_connection_response_connection.rb +220 -0
  258. data/kinde_api/lib/kinde_api/models/create_environment_variable_request.rb +250 -0
  259. data/kinde_api/lib/kinde_api/models/create_environment_variable_response.rb +239 -0
  260. data/kinde_api/lib/kinde_api/models/create_environment_variable_response_environment_variable.rb +220 -0
  261. data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +87 -77
  262. data/kinde_api/lib/kinde_api/models/create_identity_response.rb +237 -0
  263. data/kinde_api/lib/kinde_api/models/create_identity_response_identity.rb +220 -0
  264. data/kinde_api/lib/kinde_api/models/create_meter_usage_record_request.rb +309 -0
  265. data/kinde_api/lib/kinde_api/models/create_meter_usage_record_response.rb +230 -0
  266. data/kinde_api/lib/kinde_api/models/create_organization_request.rb +175 -100
  267. data/kinde_api/lib/kinde_api/models/create_organization_response.rb +57 -50
  268. data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +49 -42
  269. data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +38 -41
  270. data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +38 -41
  271. data/kinde_api/lib/kinde_api/models/create_permission_request.rb +50 -49
  272. data/kinde_api/lib/kinde_api/models/create_property_request.rb +356 -0
  273. data/kinde_api/lib/kinde_api/models/create_property_response.rb +237 -0
  274. data/kinde_api/lib/kinde_api/models/create_property_response_property.rb +220 -0
  275. data/kinde_api/lib/kinde_api/models/create_role_request.rb +56 -53
  276. data/kinde_api/lib/kinde_api/models/create_roles_response.rb +239 -0
  277. data/kinde_api/lib/kinde_api/models/create_roles_response_role.rb +220 -0
  278. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +38 -41
  279. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +38 -41
  280. data/kinde_api/lib/kinde_api/models/create_user_identity_request.rb +284 -0
  281. data/kinde_api/lib/kinde_api/models/create_user_request.rb +62 -50
  282. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +60 -52
  283. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +67 -40
  284. data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +54 -45
  285. data/kinde_api/lib/kinde_api/models/create_user_response.rb +53 -51
  286. data/kinde_api/lib/kinde_api/models/create_web_hook_request.rb +268 -0
  287. data/kinde_api/lib/kinde_api/models/create_webhook_response.rb +239 -0
  288. data/kinde_api/lib/kinde_api/models/create_webhook_response_webhook.rb +228 -0
  289. data/kinde_api/lib/kinde_api/models/delete_api_response.rb +228 -0
  290. data/kinde_api/lib/kinde_api/models/delete_environment_variable_response.rb +230 -0
  291. data/kinde_api/lib/kinde_api/models/delete_role_scope_response.rb +230 -0
  292. data/kinde_api/lib/kinde_api/models/delete_webhook_response.rb +230 -0
  293. data/kinde_api/lib/kinde_api/models/environment_variable.rb +261 -0
  294. data/kinde_api/lib/kinde_api/models/error.rb +44 -44
  295. data/kinde_api/lib/kinde_api/models/error_response.rb +40 -42
  296. data/kinde_api/lib/kinde_api/models/event_type.rb +255 -0
  297. data/kinde_api/lib/kinde_api/models/get_api_response.rb +239 -0
  298. data/kinde_api/lib/kinde_api/models/get_api_response_api.rb +272 -0
  299. data/kinde_api/lib/kinde_api/models/get_api_response_api_applications_inner.rb +285 -0
  300. data/kinde_api/lib/kinde_api/models/get_api_response_api_scopes_inner.rb +230 -0
  301. data/kinde_api/lib/kinde_api/models/get_api_scope_response.rb +239 -0
  302. data/kinde_api/lib/kinde_api/models/get_api_scopes_response.rb +241 -0
  303. data/kinde_api/lib/kinde_api/models/get_api_scopes_response_scopes_inner.rb +240 -0
  304. data/kinde_api/lib/kinde_api/models/get_apis_response.rb +251 -0
  305. data/kinde_api/lib/kinde_api/models/get_apis_response_apis_inner.rb +261 -0
  306. data/kinde_api/lib/kinde_api/models/get_apis_response_apis_inner_scopes_inner.rb +228 -0
  307. data/kinde_api/lib/kinde_api/models/get_application_response.rb +50 -49
  308. data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +126 -57
  309. data/kinde_api/lib/kinde_api/models/get_applications_response.rb +57 -54
  310. data/kinde_api/lib/kinde_api/models/get_billing_agreements_response.rb +252 -0
  311. data/kinde_api/lib/kinde_api/models/get_billing_agreements_response_agreements_inner.rb +262 -0
  312. data/kinde_api/lib/kinde_api/models/get_billing_agreements_response_agreements_inner_entitlements_inner.rb +230 -0
  313. data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response.rb +264 -0
  314. data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response_entitlements_inner.rb +290 -0
  315. data/kinde_api/lib/kinde_api/models/get_billing_entitlements_response_plans_inner.rb +229 -0
  316. data/kinde_api/lib/kinde_api/models/get_business_response.rb +239 -0
  317. data/kinde_api/lib/kinde_api/models/get_business_response_business.rb +326 -0
  318. data/kinde_api/lib/kinde_api/models/get_categories_response.rb +251 -0
  319. data/kinde_api/lib/kinde_api/models/get_connections_response.rb +251 -0
  320. data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +57 -54
  321. data/kinde_api/lib/kinde_api/models/get_environment_response.rb +239 -0
  322. data/kinde_api/lib/kinde_api/models/get_environment_response_environment.rb +526 -0
  323. data/kinde_api/lib/kinde_api/models/get_environment_response_environment_background_color.rb +237 -0
  324. data/kinde_api/lib/kinde_api/models/get_environment_response_environment_link_color.rb +237 -0
  325. data/kinde_api/lib/kinde_api/models/get_environment_variable_response.rb +239 -0
  326. data/kinde_api/lib/kinde_api/models/get_environment_variables_response.rb +251 -0
  327. data/kinde_api/lib/kinde_api/models/get_event_response.rb +239 -0
  328. data/kinde_api/lib/kinde_api/models/get_event_response_event.rb +257 -0
  329. data/kinde_api/lib/kinde_api/models/get_event_types_response.rb +241 -0
  330. data/kinde_api/lib/kinde_api/models/get_identities_response.rb +251 -0
  331. data/kinde_api/lib/kinde_api/models/get_industries_response.rb +241 -0
  332. data/kinde_api/lib/kinde_api/models/get_industries_response_industries_inner.rb +230 -0
  333. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +52 -50
  334. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +52 -52
  335. data/kinde_api/lib/kinde_api/models/get_organization_response.rb +547 -0
  336. data/kinde_api/lib/kinde_api/models/get_organization_response_billing.rb +232 -0
  337. data/kinde_api/lib/kinde_api/models/get_organization_response_billing_agreements_inner.rb +230 -0
  338. data/kinde_api/lib/kinde_api/models/get_organization_users_response.rb +57 -54
  339. data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +57 -54
  340. data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +52 -50
  341. data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +57 -54
  342. data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +57 -54
  343. data/kinde_api/lib/kinde_api/models/get_properties_response.rb +251 -0
  344. data/kinde_api/lib/kinde_api/models/get_property_values_response.rb +251 -0
  345. data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +40 -42
  346. data/kinde_api/lib/kinde_api/models/get_role_response.rb +239 -0
  347. data/kinde_api/lib/kinde_api/models/get_role_response_role.rb +260 -0
  348. data/kinde_api/lib/kinde_api/models/get_roles_response.rb +57 -54
  349. data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +52 -50
  350. data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +57 -54
  351. data/kinde_api/lib/kinde_api/models/get_timezones_response.rb +241 -0
  352. data/kinde_api/lib/kinde_api/models/get_timezones_response_timezones_inner.rb +230 -0
  353. data/kinde_api/lib/kinde_api/models/get_user_mfa_response.rb +237 -0
  354. data/kinde_api/lib/kinde_api/models/get_user_mfa_response_mfa.rb +280 -0
  355. data/kinde_api/lib/kinde_api/models/get_user_sessions_response.rb +248 -0
  356. data/kinde_api/lib/kinde_api/models/get_user_sessions_response_sessions_inner.rb +331 -0
  357. data/kinde_api/lib/kinde_api/models/get_webhooks_response.rb +241 -0
  358. data/kinde_api/lib/kinde_api/models/identity.rb +300 -0
  359. data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +60 -42
  360. data/kinde_api/lib/kinde_api/models/not_found_response.rb +219 -0
  361. data/kinde_api/lib/kinde_api/models/not_found_response_errors.rb +228 -0
  362. data/kinde_api/lib/kinde_api/models/organization_item_schema.rb +272 -0
  363. data/kinde_api/lib/kinde_api/models/organization_user.rb +122 -62
  364. data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +73 -59
  365. data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +47 -46
  366. data/kinde_api/lib/kinde_api/models/organization_user_role.rb +55 -50
  367. data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +55 -50
  368. data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +38 -41
  369. data/kinde_api/lib/kinde_api/models/permissions.rb +57 -54
  370. data/kinde_api/lib/kinde_api/models/property.rb +264 -0
  371. data/kinde_api/lib/kinde_api/models/property_value.rb +257 -0
  372. data/kinde_api/lib/kinde_api/models/read_env_logo_response.rb +242 -0
  373. data/kinde_api/lib/kinde_api/models/read_env_logo_response_logos_inner.rb +230 -0
  374. data/kinde_api/lib/kinde_api/models/read_logo_response.rb +242 -0
  375. data/kinde_api/lib/kinde_api/models/read_logo_response_logos_inner.rb +240 -0
  376. data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +40 -42
  377. data/kinde_api/lib/kinde_api/models/replace_connection_request.rb +251 -0
  378. data/kinde_api/lib/kinde_api/models/replace_connection_request_options.rb +106 -0
  379. data/kinde_api/lib/kinde_api/models/replace_connection_request_options_one_of.rb +293 -0
  380. data/kinde_api/lib/kinde_api/models/replace_connection_request_options_one_of1.rb +313 -0
  381. data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +40 -42
  382. data/kinde_api/lib/kinde_api/models/replace_mfa_request.rb +276 -0
  383. data/kinde_api/lib/kinde_api/models/replace_organization_mfa_request.rb +249 -0
  384. data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +40 -42
  385. data/kinde_api/lib/kinde_api/models/role.rb +63 -53
  386. data/kinde_api/lib/kinde_api/models/role_permissions_response.rb +251 -0
  387. data/kinde_api/lib/kinde_api/models/role_scopes_response.rb +241 -0
  388. data/kinde_api/lib/kinde_api/models/roles.rb +68 -53
  389. data/kinde_api/lib/kinde_api/models/scopes.rb +250 -0
  390. data/kinde_api/lib/kinde_api/models/search_users_response.rb +241 -0
  391. data/kinde_api/lib/kinde_api/models/search_users_response_results_inner.rb +374 -0
  392. data/kinde_api/lib/kinde_api/models/set_user_password_request.rb +311 -0
  393. data/kinde_api/lib/kinde_api/models/subscriber.rb +63 -54
  394. data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +71 -58
  395. data/kinde_api/lib/kinde_api/models/success_response.rb +47 -46
  396. data/kinde_api/lib/kinde_api/models/token_error_response.rb +44 -45
  397. data/kinde_api/lib/kinde_api/models/token_introspect.rb +63 -58
  398. data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +42 -44
  399. data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +48 -49
  400. data/kinde_api/lib/kinde_api/models/update_api_scope_request.rb +220 -0
  401. data/kinde_api/lib/kinde_api/models/update_application_request.rb +78 -54
  402. data/kinde_api/lib/kinde_api/models/update_application_tokens_request.rb +260 -0
  403. data/kinde_api/lib/kinde_api/models/update_applications_property_request.rb +224 -0
  404. data/kinde_api/lib/kinde_api/models/update_applications_property_request_value.rb +106 -0
  405. data/kinde_api/lib/kinde_api/models/update_business_request.rb +320 -0
  406. data/kinde_api/lib/kinde_api/models/update_category_request.rb +220 -0
  407. data/kinde_api/lib/kinde_api/models/update_connection_request.rb +251 -0
  408. data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +40 -43
  409. data/kinde_api/lib/kinde_api/models/update_environment_variable_request.rb +240 -0
  410. data/kinde_api/lib/kinde_api/models/update_environment_variable_response.rb +230 -0
  411. data/kinde_api/lib/kinde_api/models/update_identity_request.rb +220 -0
  412. data/kinde_api/lib/kinde_api/models/update_organization_properties_request.rb +225 -0
  413. data/kinde_api/lib/kinde_api/models/update_organization_request.rb +209 -91
  414. data/kinde_api/lib/kinde_api/models/update_organization_sessions_request.rb +284 -0
  415. data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +40 -42
  416. data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +59 -55
  417. data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +76 -57
  418. data/kinde_api/lib/kinde_api/models/update_property_request.rb +265 -0
  419. data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +40 -42
  420. data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +44 -45
  421. data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +66 -56
  422. data/kinde_api/lib/kinde_api/models/update_roles_request.rb +61 -56
  423. data/kinde_api/lib/kinde_api/models/update_user_request.rb +75 -52
  424. data/kinde_api/lib/kinde_api/models/update_user_response.rb +75 -67
  425. data/kinde_api/lib/kinde_api/models/update_web_hook_request.rb +243 -0
  426. data/kinde_api/lib/kinde_api/models/update_webhook_response.rb +237 -0
  427. data/kinde_api/lib/kinde_api/models/update_webhook_response_webhook.rb +219 -0
  428. data/kinde_api/lib/kinde_api/models/user.rb +138 -97
  429. data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +47 -46
  430. data/kinde_api/lib/kinde_api/models/user_identity.rb +44 -45
  431. data/kinde_api/lib/kinde_api/models/user_identity_result.rb +38 -41
  432. data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +113 -79
  433. data/kinde_api/lib/kinde_api/models/users_response.rb +57 -54
  434. data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +138 -98
  435. data/kinde_api/lib/kinde_api/models/webhook.rb +267 -0
  436. data/kinde_api/lib/kinde_api/version.rb +12 -12
  437. data/kinde_api/lib/kinde_api.rb +160 -36
  438. data/kinde_api/spec/api/billing_agreements_api_spec.rb +62 -0
  439. data/kinde_api/spec/api/billing_entitlements_api_spec.rb +52 -0
  440. data/kinde_api/spec/api/billing_meter_usage_api_spec.rb +47 -0
  441. data/kinde_api/spec/api/connections_api_spec.rb +112 -0
  442. data/kinde_api/spec/api/environment_variables_api_spec.rb +95 -0
  443. data/kinde_api/spec/api/identities_api_spec.rb +72 -0
  444. data/kinde_api/spec/api/mfa_api_spec.rb +47 -0
  445. data/kinde_api/spec/api/properties_api_spec.rb +87 -0
  446. data/kinde_api/spec/api/property_categories_api_spec.rb +75 -0
  447. data/kinde_api/spec/api/search_api_spec.rb +52 -0
  448. data/kinde_api/spec/api/webhooks_api_spec.rb +106 -0
  449. data/kinde_api/spec/api_client_spec.rb +27 -21
  450. data/kinde_api/spec/configuration_spec.rb +14 -14
  451. data/kinde_api/spec/models/add_api_scope_request_spec.rb +40 -0
  452. data/kinde_api/spec/models/add_role_scope_request_spec.rb +34 -0
  453. data/kinde_api/spec/models/add_role_scope_response_spec.rb +40 -0
  454. data/kinde_api/spec/models/authorize_app_api_response_spec.rb +52 -0
  455. data/kinde_api/spec/models/category_spec.rb +40 -0
  456. data/kinde_api/spec/models/connection_connection_spec.rb +52 -0
  457. data/kinde_api/spec/models/connection_spec.rb +46 -0
  458. data/kinde_api/spec/models/create_api_scopes_response_scope_spec.rb +34 -0
  459. data/kinde_api/spec/models/create_api_scopes_response_spec.rb +46 -0
  460. data/kinde_api/spec/models/create_apis_response_api_spec.rb +34 -0
  461. data/kinde_api/spec/models/create_apis_response_spec.rb +46 -0
  462. data/kinde_api/spec/models/create_billing_agreement_request_spec.rb +52 -0
  463. data/kinde_api/spec/models/create_category_request_spec.rb +44 -0
  464. data/kinde_api/spec/models/create_category_response_category_spec.rb +34 -0
  465. data/kinde_api/spec/models/create_category_response_spec.rb +46 -0
  466. data/kinde_api/spec/models/create_connection_request_options_one_of1_spec.rb +82 -0
  467. data/kinde_api/spec/models/create_connection_request_options_one_of2_spec.rb +100 -0
  468. data/kinde_api/spec/models/create_connection_request_options_one_of_spec.rb +46 -0
  469. data/kinde_api/spec/models/create_connection_request_options_spec.rb +31 -0
  470. data/kinde_api/spec/models/create_connection_request_spec.rb +68 -0
  471. data/kinde_api/spec/models/create_connection_response_connection_spec.rb +34 -0
  472. data/kinde_api/spec/models/create_connection_response_spec.rb +46 -0
  473. data/kinde_api/spec/models/create_environment_variable_request_spec.rb +46 -0
  474. data/kinde_api/spec/models/create_environment_variable_response_environment_variable_spec.rb +34 -0
  475. data/kinde_api/spec/models/create_environment_variable_response_spec.rb +46 -0
  476. data/kinde_api/spec/models/create_identity_response_identity_spec.rb +34 -0
  477. data/kinde_api/spec/models/create_identity_response_spec.rb +46 -0
  478. data/kinde_api/spec/models/create_meter_usage_record_request_spec.rb +62 -0
  479. data/kinde_api/spec/models/create_meter_usage_record_response_spec.rb +40 -0
  480. data/kinde_api/spec/models/create_property_request_spec.rb +78 -0
  481. data/kinde_api/spec/models/create_property_response_property_spec.rb +34 -0
  482. data/kinde_api/spec/models/create_property_response_spec.rb +46 -0
  483. data/kinde_api/spec/models/create_roles_response_role_spec.rb +34 -0
  484. data/kinde_api/spec/models/create_roles_response_spec.rb +46 -0
  485. data/kinde_api/spec/models/create_user_identity_request_spec.rb +56 -0
  486. data/kinde_api/spec/models/create_web_hook_request_spec.rb +52 -0
  487. data/kinde_api/spec/models/create_webhook_response_spec.rb +46 -0
  488. data/kinde_api/spec/models/create_webhook_response_webhook_spec.rb +40 -0
  489. data/kinde_api/spec/models/delete_api_response_spec.rb +40 -0
  490. data/kinde_api/spec/models/delete_environment_variable_response_spec.rb +40 -0
  491. data/kinde_api/spec/models/delete_role_scope_response_spec.rb +40 -0
  492. data/kinde_api/spec/models/delete_webhook_response_spec.rb +40 -0
  493. data/kinde_api/spec/models/environment_variable_spec.rb +58 -0
  494. data/kinde_api/spec/models/event_type_spec.rb +58 -0
  495. data/kinde_api/spec/models/get_api_response_api_applications_inner_spec.rb +56 -0
  496. data/kinde_api/spec/models/get_api_response_api_scopes_inner_spec.rb +40 -0
  497. data/kinde_api/spec/models/get_api_response_api_spec.rb +64 -0
  498. data/kinde_api/spec/models/get_api_response_spec.rb +46 -0
  499. data/kinde_api/spec/models/get_api_scope_response_spec.rb +46 -0
  500. data/kinde_api/spec/models/get_api_scopes_response_scopes_inner_spec.rb +46 -0
  501. data/kinde_api/spec/models/get_api_scopes_response_spec.rb +46 -0
  502. data/kinde_api/spec/models/get_apis_response_apis_inner_scopes_inner_spec.rb +40 -0
  503. data/kinde_api/spec/models/get_apis_response_apis_inner_spec.rb +58 -0
  504. data/kinde_api/spec/models/get_apis_response_spec.rb +52 -0
  505. data/kinde_api/spec/models/get_billing_agreements_response_agreements_inner_entitlements_inner_spec.rb +40 -0
  506. data/kinde_api/spec/models/get_billing_agreements_response_agreements_inner_spec.rb +58 -0
  507. data/kinde_api/spec/models/get_billing_agreements_response_spec.rb +52 -0
  508. data/kinde_api/spec/models/get_billing_entitlements_response_entitlements_inner_spec.rb +76 -0
  509. data/kinde_api/spec/models/get_billing_entitlements_response_plans_inner_spec.rb +40 -0
  510. data/kinde_api/spec/models/get_billing_entitlements_response_spec.rb +58 -0
  511. data/kinde_api/spec/models/get_business_response_business_spec.rb +94 -0
  512. data/kinde_api/spec/models/get_business_response_spec.rb +46 -0
  513. data/kinde_api/spec/models/get_categories_response_spec.rb +52 -0
  514. data/kinde_api/spec/models/get_connections_response_spec.rb +52 -0
  515. data/kinde_api/spec/models/get_environment_response_environment_background_color_spec.rb +46 -0
  516. data/kinde_api/spec/models/get_environment_response_environment_link_color_spec.rb +46 -0
  517. data/kinde_api/spec/models/get_environment_response_environment_spec.rb +192 -0
  518. data/kinde_api/spec/models/get_environment_response_spec.rb +46 -0
  519. data/kinde_api/spec/models/get_environment_variable_response_spec.rb +46 -0
  520. data/kinde_api/spec/models/get_environment_variables_response_spec.rb +52 -0
  521. data/kinde_api/spec/models/get_event_response_event_spec.rb +58 -0
  522. data/kinde_api/spec/models/get_event_response_spec.rb +46 -0
  523. data/kinde_api/spec/models/get_event_types_response_spec.rb +46 -0
  524. data/kinde_api/spec/models/get_identities_response_spec.rb +52 -0
  525. data/kinde_api/spec/models/get_industries_response_industries_inner_spec.rb +40 -0
  526. data/kinde_api/spec/models/get_industries_response_spec.rb +46 -0
  527. data/kinde_api/spec/models/get_organization_response_billing_agreements_inner_spec.rb +40 -0
  528. data/kinde_api/spec/models/get_organization_response_billing_spec.rb +40 -0
  529. data/kinde_api/spec/models/get_organization_response_spec.rb +204 -0
  530. data/kinde_api/spec/models/get_properties_response_spec.rb +52 -0
  531. data/kinde_api/spec/models/get_property_values_response_spec.rb +52 -0
  532. data/kinde_api/spec/models/get_role_response_role_spec.rb +58 -0
  533. data/kinde_api/spec/models/get_role_response_spec.rb +46 -0
  534. data/kinde_api/spec/models/get_timezones_response_spec.rb +46 -0
  535. data/kinde_api/spec/models/get_timezones_response_timezones_inner_spec.rb +40 -0
  536. data/kinde_api/spec/models/get_user_mfa_response_mfa_spec.rb +70 -0
  537. data/kinde_api/spec/models/get_user_mfa_response_spec.rb +46 -0
  538. data/kinde_api/spec/models/get_user_sessions_response_sessions_inner_spec.rb +100 -0
  539. data/kinde_api/spec/models/get_user_sessions_response_spec.rb +52 -0
  540. data/kinde_api/spec/models/get_webhooks_response_spec.rb +46 -0
  541. data/kinde_api/spec/models/identity_spec.rb +82 -0
  542. data/kinde_api/spec/models/not_found_response_errors_spec.rb +40 -0
  543. data/kinde_api/spec/models/not_found_response_spec.rb +34 -0
  544. data/kinde_api/spec/models/organization_item_schema_spec.rb +64 -0
  545. data/kinde_api/spec/models/property_spec.rb +64 -0
  546. data/kinde_api/spec/models/property_value_spec.rb +58 -0
  547. data/kinde_api/spec/models/read_env_logo_response_logos_inner_spec.rb +40 -0
  548. data/kinde_api/spec/models/read_env_logo_response_spec.rb +46 -0
  549. data/kinde_api/spec/models/read_logo_response_logos_inner_spec.rb +46 -0
  550. data/kinde_api/spec/models/read_logo_response_spec.rb +46 -0
  551. data/kinde_api/spec/models/replace_connection_request_options_one_of1_spec.rb +88 -0
  552. data/kinde_api/spec/models/replace_connection_request_options_one_of_spec.rb +76 -0
  553. data/kinde_api/spec/models/replace_connection_request_options_spec.rb +31 -0
  554. data/kinde_api/spec/models/replace_connection_request_spec.rb +52 -0
  555. data/kinde_api/spec/models/replace_mfa_request_spec.rb +48 -0
  556. data/kinde_api/spec/models/replace_organization_mfa_request_spec.rb +38 -0
  557. data/kinde_api/spec/models/role_permissions_response_spec.rb +52 -0
  558. data/kinde_api/spec/models/role_scopes_response_spec.rb +46 -0
  559. data/kinde_api/spec/models/scopes_spec.rb +52 -0
  560. data/kinde_api/spec/models/search_users_response_results_inner_spec.rb +118 -0
  561. data/kinde_api/spec/models/search_users_response_spec.rb +46 -0
  562. data/kinde_api/spec/models/set_user_password_request_spec.rb +66 -0
  563. data/kinde_api/spec/models/update_api_scope_request_spec.rb +34 -0
  564. data/kinde_api/spec/models/update_application_tokens_request_spec.rb +58 -0
  565. data/kinde_api/spec/models/update_applications_property_request_spec.rb +34 -0
  566. data/kinde_api/spec/models/update_applications_property_request_value_spec.rb +31 -0
  567. data/kinde_api/spec/models/update_business_request_spec.rb +88 -0
  568. data/kinde_api/spec/models/update_category_request_spec.rb +34 -0
  569. data/kinde_api/spec/models/update_connection_request_spec.rb +52 -0
  570. data/kinde_api/spec/models/update_environment_variable_request_spec.rb +46 -0
  571. data/kinde_api/spec/models/update_environment_variable_response_spec.rb +40 -0
  572. data/kinde_api/spec/models/update_identity_request_spec.rb +34 -0
  573. data/kinde_api/spec/models/update_organization_properties_request_spec.rb +34 -0
  574. data/kinde_api/spec/models/update_organization_sessions_request_spec.rb +56 -0
  575. data/kinde_api/spec/models/update_property_request_spec.rb +52 -0
  576. data/kinde_api/spec/models/update_web_hook_request_spec.rb +46 -0
  577. data/kinde_api/spec/models/update_webhook_response_spec.rb +46 -0
  578. data/kinde_api/spec/models/update_webhook_response_webhook_spec.rb +34 -0
  579. data/kinde_api/spec/models/webhook_spec.rb +64 -0
  580. data/kinde_api/spec/spec_helper.rb +63 -62
  581. data/lib/kinde_sdk/client.rb +88 -19
  582. data/lib/kinde_sdk/current.rb +16 -0
  583. data/lib/kinde_sdk/engine.rb +6 -0
  584. data/lib/kinde_sdk/middleware.rb +16 -0
  585. data/lib/kinde_sdk/token_manager.rb +85 -0
  586. data/lib/kinde_sdk/token_store.rb +29 -0
  587. data/lib/kinde_sdk/version.rb +1 -1
  588. data/lib/kinde_sdk.rb +22 -14
  589. data/spec/examples.txt +24 -0
  590. data/spec/kinde_sdk_spec.rb +211 -125
  591. data/spec/spec_helper.rb +4 -4
  592. metadata +656 -88
@@ -1,14 +1,14 @@
1
- # frozen_string_literal: true
2
-
3
- # #Kinde Management API
4
- #
5
- # Provides endpoints to manage your Kinde Businesses
6
- #
7
- # The version of the OpenAPI document: 1
8
- # Contact: support@kinde.com
9
- # Generated by: https://openapi-generator.tech
10
- # OpenAPI Generator version: 7.0.0-SNAPSHOT
11
- #
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ # Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
5
+
6
+ The version of the OpenAPI document: 1
7
+ Contact: support@kinde.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
12
 
13
13
  require 'date'
14
14
  require 'time'
@@ -24,8 +24,8 @@ module KindeApi
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
- 'id': :id,
28
- 'operation': :operation
27
+ :'id' => :'id',
28
+ :'operation' => :'operation'
29
29
  }
30
30
  end
31
31
 
@@ -37,45 +37,46 @@ module KindeApi
37
37
  # Attribute type mapping.
38
38
  def self.openapi_types
39
39
  {
40
- 'id': :String,
41
- 'operation': :String
40
+ :'id' => :'String',
41
+ :'operation' => :'String'
42
42
  }
43
43
  end
44
44
 
45
45
  # List of attributes with nullable: true
46
46
  def self.openapi_nullable
47
- Set.new([])
47
+ Set.new([
48
+ ])
48
49
  end
49
50
 
50
51
  # Initializes the object
51
52
  # @param [Hash] attributes Model attributes in the form of hash
52
53
  def initialize(attributes = {})
53
- unless attributes.is_a?(Hash)
54
- raise ArgumentError,
55
- 'The input argument (attributes) must be a hash in `KindeApi::UpdateRolePermissionsRequestPermissionsInner` initialize method'
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KindeApi::UpdateRolePermissionsRequestPermissionsInner` initialize method"
56
56
  end
57
57
 
58
58
  # check to see if the attribute exists and convert string to symbol for hash key
59
- attributes = attributes.each_with_object({}) do |(k, v), h|
60
- unless self.class.attribute_map.key?(k.to_sym)
61
- raise ArgumentError,
62
- "`#{k}` is not a valid attribute in `KindeApi::UpdateRolePermissionsRequestPermissionsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KindeApi::UpdateRolePermissionsRequestPermissionsInner`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
62
  end
64
-
65
63
  h[k.to_sym] = v
66
- end
67
-
68
- self.id = attributes[:id] if attributes.key?(:id)
64
+ }
69
65
 
70
- return unless attributes.key?(:operation)
66
+ if attributes.key?(:'id')
67
+ self.id = attributes[:'id']
68
+ end
71
69
 
72
- self.operation = attributes[:operation]
70
+ if attributes.key?(:'operation')
71
+ self.operation = attributes[:'operation']
72
+ end
73
73
  end
74
74
 
75
75
  # Show invalid properties with the reasons. Usually used together with valid?
76
76
  # @return Array for valid properties with the reasons
77
77
  def list_invalid_properties
78
- []
78
+ invalid_properties = Array.new
79
+ invalid_properties
79
80
  end
80
81
 
81
82
  # Check to see if the all the properties in the model are valid
@@ -86,18 +87,17 @@ module KindeApi
86
87
 
87
88
  # Checks equality by comparing each attribute.
88
89
  # @param [Object] Object to be compared
89
- def ==(other)
90
- return true if equal?(other)
91
-
92
- self.class == other.class &&
93
- id == other.id &&
94
- operation == other.operation
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ id == o.id &&
94
+ operation == o.operation
95
95
  end
96
96
 
97
97
  # @see the `==` method
98
98
  # @param [Object] Object to be compared
99
- def eql?(other)
100
- self == other
99
+ def eql?(o)
100
+ self == o
101
101
  end
102
102
 
103
103
  # Calculates hash code according to all attributes.
@@ -118,21 +118,18 @@ module KindeApi
118
118
  # @return [Object] Returns the model itself
119
119
  def build_from_hash(attributes)
120
120
  return nil unless attributes.is_a?(Hash)
121
-
122
121
  attributes = attributes.transform_keys(&:to_sym)
123
122
  self.class.openapi_types.each_pair do |key, type|
124
123
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
125
- send("#{key}=", nil)
124
+ self.send("#{key}=", nil)
126
125
  elsif type =~ /\AArray<(.*)>/i
127
126
  # check to ensure the input is an array given that the attribute
128
127
  # is documented as an array but the input is not
129
128
  if attributes[self.class.attribute_map[key]].is_a?(Array)
130
- send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
131
- _deserialize(::Regexp.last_match(1), v)
132
- end)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
133
130
  end
134
131
  elsif !attributes[self.class.attribute_map[key]].nil?
135
- send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
136
133
  end
137
134
  end
138
135
 
@@ -199,7 +196,7 @@ module KindeApi
199
196
  def to_hash
200
197
  hash = {}
201
198
  self.class.attribute_map.each_pair do |attr, param|
202
- value = send(attr)
199
+ value = self.send(attr)
203
200
  if value.nil?
204
201
  is_nullable = self.class.openapi_nullable.include?(attr)
205
202
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -227,5 +224,7 @@ module KindeApi
227
224
  value
228
225
  end
229
226
  end
227
+
230
228
  end
229
+
231
230
  end
@@ -1,29 +1,35 @@
1
- # frozen_string_literal: true
2
-
3
- # #Kinde Management API
4
- #
5
- # Provides endpoints to manage your Kinde Businesses
6
- #
7
- # The version of the OpenAPI document: 1
8
- # Contact: support@kinde.com
9
- # Generated by: https://openapi-generator.tech
10
- # OpenAPI Generator version: 7.0.0-SNAPSHOT
11
- #
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ # Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
5
+
6
+ The version of the OpenAPI document: 1
7
+ Contact: support@kinde.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
12
 
13
13
  require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KindeApi
17
17
  class UpdateRolePermissionsResponse
18
- attr_accessor :code, :message, :permissions_added, :permissions_removed
18
+ attr_accessor :code
19
+
20
+ attr_accessor :message
21
+
22
+ attr_accessor :permissions_added
23
+
24
+ attr_accessor :permissions_removed
19
25
 
20
26
  # Attribute mapping from ruby-style variable name to JSON key.
21
27
  def self.attribute_map
22
28
  {
23
- 'code': :code,
24
- 'message': :message,
25
- 'permissions_added': :permissions_added,
26
- 'permissions_removed': :permissions_removed
29
+ :'code' => :'code',
30
+ :'message' => :'message',
31
+ :'permissions_added' => :'permissions_added',
32
+ :'permissions_removed' => :'permissions_removed'
27
33
  }
28
34
  end
29
35
 
@@ -35,54 +41,60 @@ module KindeApi
35
41
  # Attribute type mapping.
36
42
  def self.openapi_types
37
43
  {
38
- 'code': :String,
39
- 'message': :String,
40
- 'permissions_added': :'Array<String>',
41
- 'permissions_removed': :'Array<String>'
44
+ :'code' => :'String',
45
+ :'message' => :'String',
46
+ :'permissions_added' => :'Array<String>',
47
+ :'permissions_removed' => :'Array<String>'
42
48
  }
43
49
  end
44
50
 
45
51
  # List of attributes with nullable: true
46
52
  def self.openapi_nullable
47
- Set.new([])
53
+ Set.new([
54
+ ])
48
55
  end
49
56
 
50
57
  # Initializes the object
51
58
  # @param [Hash] attributes Model attributes in the form of hash
52
59
  def initialize(attributes = {})
53
- unless attributes.is_a?(Hash)
54
- raise ArgumentError,
55
- 'The input argument (attributes) must be a hash in `KindeApi::UpdateRolePermissionsResponse` initialize method'
60
+ if (!attributes.is_a?(Hash))
61
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KindeApi::UpdateRolePermissionsResponse` initialize method"
56
62
  end
57
63
 
58
64
  # check to see if the attribute exists and convert string to symbol for hash key
59
- attributes = attributes.each_with_object({}) do |(k, v), h|
60
- unless self.class.attribute_map.key?(k.to_sym)
61
- raise ArgumentError,
62
- "`#{k}` is not a valid attribute in `KindeApi::UpdateRolePermissionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
65
+ attributes = attributes.each_with_object({}) { |(k, v), h|
66
+ if (!self.class.attribute_map.key?(k.to_sym))
67
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KindeApi::UpdateRolePermissionsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
68
  end
64
-
65
69
  h[k.to_sym] = v
66
- end
67
-
68
- self.code = attributes[:code] if attributes.key?(:code)
70
+ }
69
71
 
70
- self.message = attributes[:message] if attributes.key?(:message)
72
+ if attributes.key?(:'code')
73
+ self.code = attributes[:'code']
74
+ end
71
75
 
72
- if attributes.key?(:permissions_added) && (value = attributes[:permissions_added]).is_a?(Array)
73
- self.permissions_added = value
76
+ if attributes.key?(:'message')
77
+ self.message = attributes[:'message']
74
78
  end
75
79
 
76
- return unless attributes.key?(:permissions_removed)
77
- return unless (value = attributes[:permissions_removed]).is_a?(Array)
80
+ if attributes.key?(:'permissions_added')
81
+ if (value = attributes[:'permissions_added']).is_a?(Array)
82
+ self.permissions_added = value
83
+ end
84
+ end
78
85
 
79
- self.permissions_removed = value
86
+ if attributes.key?(:'permissions_removed')
87
+ if (value = attributes[:'permissions_removed']).is_a?(Array)
88
+ self.permissions_removed = value
89
+ end
90
+ end
80
91
  end
81
92
 
82
93
  # Show invalid properties with the reasons. Usually used together with valid?
83
94
  # @return Array for valid properties with the reasons
84
95
  def list_invalid_properties
85
- []
96
+ invalid_properties = Array.new
97
+ invalid_properties
86
98
  end
87
99
 
88
100
  # Check to see if the all the properties in the model are valid
@@ -93,20 +105,19 @@ module KindeApi
93
105
 
94
106
  # Checks equality by comparing each attribute.
95
107
  # @param [Object] Object to be compared
96
- def ==(other)
97
- return true if equal?(other)
98
-
99
- self.class == other.class &&
100
- code == other.code &&
101
- message == other.message &&
102
- permissions_added == other.permissions_added &&
103
- permissions_removed == other.permissions_removed
108
+ def ==(o)
109
+ return true if self.equal?(o)
110
+ self.class == o.class &&
111
+ code == o.code &&
112
+ message == o.message &&
113
+ permissions_added == o.permissions_added &&
114
+ permissions_removed == o.permissions_removed
104
115
  end
105
116
 
106
117
  # @see the `==` method
107
118
  # @param [Object] Object to be compared
108
- def eql?(other)
109
- self == other
119
+ def eql?(o)
120
+ self == o
110
121
  end
111
122
 
112
123
  # Calculates hash code according to all attributes.
@@ -127,21 +138,18 @@ module KindeApi
127
138
  # @return [Object] Returns the model itself
128
139
  def build_from_hash(attributes)
129
140
  return nil unless attributes.is_a?(Hash)
130
-
131
141
  attributes = attributes.transform_keys(&:to_sym)
132
142
  self.class.openapi_types.each_pair do |key, type|
133
143
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
- send("#{key}=", nil)
144
+ self.send("#{key}=", nil)
135
145
  elsif type =~ /\AArray<(.*)>/i
136
146
  # check to ensure the input is an array given that the attribute
137
147
  # is documented as an array but the input is not
138
148
  if attributes[self.class.attribute_map[key]].is_a?(Array)
139
- send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
140
- _deserialize(::Regexp.last_match(1), v)
141
- end)
149
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
142
150
  end
143
151
  elsif !attributes[self.class.attribute_map[key]].nil?
144
- send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
152
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
145
153
  end
146
154
  end
147
155
 
@@ -208,7 +216,7 @@ module KindeApi
208
216
  def to_hash
209
217
  hash = {}
210
218
  self.class.attribute_map.each_pair do |attr, param|
211
- value = send(attr)
219
+ value = self.send(attr)
212
220
  if value.nil?
213
221
  is_nullable = self.class.openapi_nullable.include?(attr)
214
222
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -236,5 +244,7 @@ module KindeApi
236
244
  value
237
245
  end
238
246
  end
247
+
239
248
  end
249
+
240
250
  end
@@ -1,14 +1,14 @@
1
- # frozen_string_literal: true
2
-
3
- # #Kinde Management API
4
- #
5
- # Provides endpoints to manage your Kinde Businesses
6
- #
7
- # The version of the OpenAPI document: 1
8
- # Contact: support@kinde.com
9
- # Generated by: https://openapi-generator.tech
10
- # OpenAPI Generator version: 7.0.0-SNAPSHOT
11
- #
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ # Provides endpoints to manage your Kinde Businesses. ## Intro ## How to use 1. [Set up and authorize a machine-to-machine (M2M) application](https://docs.kinde.com/developer-tools/kinde-api/connect-to-kinde-api/). 2. [Generate a test access token](https://docs.kinde.com/developer-tools/kinde-api/access-token-for-api/) 3. Test request any endpoint using the test token
5
+
6
+ The version of the OpenAPI document: 1
7
+ Contact: support@kinde.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
12
 
13
13
  require 'date'
14
14
  require 'time'
@@ -30,10 +30,10 @@ module KindeApi
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
33
- 'name': :name,
34
- 'description': :description,
35
- 'key': :key,
36
- 'is_default_role': :is_default_role
33
+ :'name' => :'name',
34
+ :'description' => :'description',
35
+ :'key' => :'key',
36
+ :'is_default_role' => :'is_default_role'
37
37
  }
38
38
  end
39
39
 
@@ -45,54 +45,62 @@ module KindeApi
45
45
  # Attribute type mapping.
46
46
  def self.openapi_types
47
47
  {
48
- 'name': :String,
49
- 'description': :String,
50
- 'key': :String,
51
- 'is_default_role': :Boolean
48
+ :'name' => :'String',
49
+ :'description' => :'String',
50
+ :'key' => :'String',
51
+ :'is_default_role' => :'Boolean'
52
52
  }
53
53
  end
54
54
 
55
55
  # List of attributes with nullable: true
56
56
  def self.openapi_nullable
57
- Set.new([])
57
+ Set.new([
58
+ ])
58
59
  end
59
60
 
60
61
  # Initializes the object
61
62
  # @param [Hash] attributes Model attributes in the form of hash
62
63
  def initialize(attributes = {})
63
- unless attributes.is_a?(Hash)
64
- raise ArgumentError,
65
- 'The input argument (attributes) must be a hash in `KindeApi::UpdateRolesRequest` initialize method'
64
+ if (!attributes.is_a?(Hash))
65
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KindeApi::UpdateRolesRequest` initialize method"
66
66
  end
67
67
 
68
68
  # check to see if the attribute exists and convert string to symbol for hash key
69
- attributes = attributes.each_with_object({}) do |(k, v), h|
70
- unless self.class.attribute_map.key?(k.to_sym)
71
- raise ArgumentError,
72
- "`#{k}` is not a valid attribute in `KindeApi::UpdateRolesRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ attributes = attributes.each_with_object({}) { |(k, v), h|
70
+ if (!self.class.attribute_map.key?(k.to_sym))
71
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KindeApi::UpdateRolesRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
72
  end
74
-
75
73
  h[k.to_sym] = v
76
- end
77
-
78
- self.name = attributes[:name] if attributes.key?(:name)
74
+ }
79
75
 
80
- self.description = attributes[:description] if attributes.key?(:description)
76
+ if attributes.key?(:'name')
77
+ self.name = attributes[:'name']
78
+ end
81
79
 
82
- self.key = attributes[:key] if attributes.key?(:key)
80
+ if attributes.key?(:'description')
81
+ self.description = attributes[:'description']
82
+ end
83
83
 
84
- return unless attributes.key?(:is_default_role)
84
+ if attributes.key?(:'key')
85
+ self.key = attributes[:'key']
86
+ end
85
87
 
86
- self.is_default_role = attributes[:is_default_role]
88
+ if attributes.key?(:'is_default_role')
89
+ self.is_default_role = attributes[:'is_default_role']
90
+ end
87
91
  end
88
92
 
89
93
  # Show invalid properties with the reasons. Usually used together with valid?
90
94
  # @return Array for valid properties with the reasons
91
95
  def list_invalid_properties
92
- invalid_properties = []
93
- invalid_properties.push('invalid value for "name", name cannot be nil.') if @name.nil?
96
+ invalid_properties = Array.new
97
+ if @name.nil?
98
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
99
+ end
94
100
 
95
- invalid_properties.push('invalid value for "key", key cannot be nil.') if @key.nil?
101
+ if @key.nil?
102
+ invalid_properties.push('invalid value for "key", key cannot be nil.')
103
+ end
96
104
 
97
105
  invalid_properties
98
106
  end
@@ -102,26 +110,24 @@ module KindeApi
102
110
  def valid?
103
111
  return false if @name.nil?
104
112
  return false if @key.nil?
105
-
106
113
  true
107
114
  end
108
115
 
109
116
  # Checks equality by comparing each attribute.
110
117
  # @param [Object] Object to be compared
111
- def ==(other)
112
- return true if equal?(other)
113
-
114
- self.class == other.class &&
115
- name == other.name &&
116
- description == other.description &&
117
- key == other.key &&
118
- is_default_role == other.is_default_role
118
+ def ==(o)
119
+ return true if self.equal?(o)
120
+ self.class == o.class &&
121
+ name == o.name &&
122
+ description == o.description &&
123
+ key == o.key &&
124
+ is_default_role == o.is_default_role
119
125
  end
120
126
 
121
127
  # @see the `==` method
122
128
  # @param [Object] Object to be compared
123
- def eql?(other)
124
- self == other
129
+ def eql?(o)
130
+ self == o
125
131
  end
126
132
 
127
133
  # Calculates hash code according to all attributes.
@@ -142,21 +148,18 @@ module KindeApi
142
148
  # @return [Object] Returns the model itself
143
149
  def build_from_hash(attributes)
144
150
  return nil unless attributes.is_a?(Hash)
145
-
146
151
  attributes = attributes.transform_keys(&:to_sym)
147
152
  self.class.openapi_types.each_pair do |key, type|
148
153
  if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
149
- send("#{key}=", nil)
154
+ self.send("#{key}=", nil)
150
155
  elsif type =~ /\AArray<(.*)>/i
151
156
  # check to ensure the input is an array given that the attribute
152
157
  # is documented as an array but the input is not
153
158
  if attributes[self.class.attribute_map[key]].is_a?(Array)
154
- send("#{key}=", attributes[self.class.attribute_map[key]].map do |v|
155
- _deserialize(::Regexp.last_match(1), v)
156
- end)
159
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
157
160
  end
158
161
  elsif !attributes[self.class.attribute_map[key]].nil?
159
- send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
162
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
160
163
  end
161
164
  end
162
165
 
@@ -223,7 +226,7 @@ module KindeApi
223
226
  def to_hash
224
227
  hash = {}
225
228
  self.class.attribute_map.each_pair do |attr, param|
226
- value = send(attr)
229
+ value = self.send(attr)
227
230
  if value.nil?
228
231
  is_nullable = self.class.openapi_nullable.include?(attr)
229
232
  next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
@@ -251,5 +254,7 @@ module KindeApi
251
254
  value
252
255
  end
253
256
  end
257
+
254
258
  end
259
+
255
260
  end