kinde_sdk 1.2.1 → 1.2.2

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 (241) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +128 -0
  3. data/README.md +12 -434
  4. data/kinde_api/README.md +98 -27
  5. data/kinde_api/docs/APIsApi.md +356 -0
  6. data/kinde_api/docs/AddAPIsRequest.md +20 -0
  7. data/kinde_api/docs/Api.md +28 -0
  8. data/kinde_api/docs/ApiApplicationsInner.md +24 -0
  9. data/kinde_api/docs/Apis.md +24 -0
  10. data/kinde_api/docs/Applications.md +22 -0
  11. data/kinde_api/docs/ApplicationsApi.md +368 -0
  12. data/kinde_api/docs/BusinessApi.md +183 -0
  13. data/kinde_api/docs/CallbacksApi.md +385 -25
  14. data/kinde_api/docs/CreateApplicationRequest.md +20 -0
  15. data/kinde_api/docs/CreateApplicationResponse.md +22 -0
  16. data/kinde_api/docs/CreateApplicationResponseApplication.md +22 -0
  17. data/kinde_api/docs/CreateFeatureFlagRequest.md +28 -0
  18. data/kinde_api/docs/CreateOrganizationRequest.md +3 -1
  19. data/kinde_api/docs/CreateOrganizationUserPermissionRequest.md +18 -0
  20. data/kinde_api/docs/EnvironmentsApi.md +23 -23
  21. data/kinde_api/docs/FeatureFlagsApi.md +19 -29
  22. data/kinde_api/docs/GetApplicationResponse.md +22 -0
  23. data/kinde_api/docs/GetApplicationResponseApplication.md +26 -0
  24. data/kinde_api/docs/GetApplicationsResponse.md +2 -2
  25. data/kinde_api/docs/{GetOrganizationsUsersResponse.md → GetOrganizationUsersResponse.md} +2 -2
  26. data/kinde_api/docs/GetOrganizationsUserPermissionsResponse.md +22 -0
  27. data/kinde_api/docs/GetPermissionsResponse.md +24 -0
  28. data/kinde_api/docs/GetRolesResponse.md +24 -0
  29. data/kinde_api/docs/GetSubscriberResponse.md +22 -0
  30. data/kinde_api/docs/GetSubscribersResponse.md +24 -0
  31. data/kinde_api/docs/IndustriesApi.md +81 -0
  32. data/kinde_api/docs/LogoutRedirectUrls.md +18 -0
  33. data/kinde_api/docs/OAuthApi.md +153 -4
  34. data/kinde_api/docs/Organization.md +3 -1
  35. data/kinde_api/docs/OrganizationUserPermission.md +26 -0
  36. data/kinde_api/docs/OrganizationUserPermissionRolesInner.md +20 -0
  37. data/kinde_api/docs/OrganizationUserRolePermissions.md +22 -0
  38. data/kinde_api/docs/OrganizationUserRolePermissionsPermissions.md +18 -0
  39. data/kinde_api/docs/OrganizationsApi.md +328 -32
  40. data/kinde_api/docs/PermissionsApi.md +84 -14
  41. data/kinde_api/docs/ReplaceLogoutRedirectURLsRequest.md +18 -0
  42. data/kinde_api/docs/ReplaceRedirectCallbackURLsRequest.md +18 -0
  43. data/kinde_api/docs/Role.md +24 -0
  44. data/kinde_api/docs/Roles.md +2 -0
  45. data/kinde_api/docs/RolesApi.md +309 -17
  46. data/kinde_api/docs/RolesPermissionResponseInner.md +24 -0
  47. data/kinde_api/docs/Subscriber.md +24 -0
  48. data/kinde_api/docs/SubscribersApi.md +12 -14
  49. data/kinde_api/docs/SubscribersSubscriber.md +26 -0
  50. data/kinde_api/docs/TimezonesApi.md +81 -0
  51. data/kinde_api/docs/TokenErrorResponse.md +20 -0
  52. data/kinde_api/docs/TokenIntrospect.md +26 -0
  53. data/kinde_api/docs/UpdateAPIApplicationsRequest.md +18 -0
  54. data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +20 -0
  55. data/kinde_api/docs/UpdateApplicationRequest.md +24 -0
  56. data/kinde_api/docs/UpdateEnvironementFeatureFlagOverrideRequest.md +18 -0
  57. data/kinde_api/docs/UpdateOrganizationRequest.md +3 -1
  58. data/kinde_api/docs/UpdateOrganizationUsersRequest.md +1 -1
  59. data/kinde_api/docs/UpdateRolePermissionsRequest.md +18 -0
  60. data/kinde_api/docs/UpdateRolePermissionsRequestPermissionsInner.md +20 -0
  61. data/kinde_api/docs/UpdateRolePermissionsResponse.md +24 -0
  62. data/kinde_api/docs/UpdateRolesRequest.md +24 -0
  63. data/kinde_api/docs/UpdateUserResponse.md +30 -0
  64. data/kinde_api/docs/User.md +7 -7
  65. data/kinde_api/docs/UserIdentitiesInner.md +20 -0
  66. data/kinde_api/docs/UsersApi.md +93 -15
  67. data/kinde_api/docs/UsersResponse.md +1 -1
  68. data/kinde_api/docs/UsersResponseUsersInner.md +42 -0
  69. data/kinde_api/lib/kinde_api/api/apis_api.rb +347 -0
  70. data/kinde_api/lib/kinde_api/api/applications_api.rb +352 -0
  71. data/kinde_api/lib/kinde_api/api/business_api.rb +210 -0
  72. data/kinde_api/lib/kinde_api/api/callbacks_api.rb +394 -31
  73. data/kinde_api/lib/kinde_api/api/environments_api.rb +22 -18
  74. data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +20 -61
  75. data/kinde_api/lib/kinde_api/api/industries_api.rb +85 -0
  76. data/kinde_api/lib/kinde_api/api/o_auth_api.rb +141 -2
  77. data/kinde_api/lib/kinde_api/api/organizations_api.rb +318 -25
  78. data/kinde_api/lib/kinde_api/api/permissions_api.rb +75 -12
  79. data/kinde_api/lib/kinde_api/api/roles_api.rb +297 -15
  80. data/kinde_api/lib/kinde_api/api/subscribers_api.rb +8 -11
  81. data/kinde_api/lib/kinde_api/api/timezones_api.rb +85 -0
  82. data/kinde_api/lib/kinde_api/api/users_api.rb +87 -11
  83. data/kinde_api/lib/kinde_api/api_client.rb +14 -7
  84. data/kinde_api/lib/kinde_api/configuration.rb +81 -5
  85. data/kinde_api/lib/kinde_api/models/add_apis_request.rb +238 -0
  86. data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -0
  87. data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +2 -0
  88. data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +2 -0
  89. data/kinde_api/lib/kinde_api/models/api.rb +271 -0
  90. data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +246 -0
  91. data/kinde_api/lib/kinde_api/models/api_result.rb +2 -0
  92. data/kinde_api/lib/kinde_api/models/apis.rb +250 -0
  93. data/kinde_api/lib/kinde_api/models/applications.rb +237 -0
  94. data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +2 -0
  95. data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +2 -0
  96. data/kinde_api/lib/kinde_api/models/create_application_request.rb +264 -0
  97. data/kinde_api/lib/kinde_api/models/create_application_response.rb +239 -0
  98. data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +240 -0
  99. data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +336 -0
  100. data/kinde_api/lib/kinde_api/models/create_organization_request.rb +16 -4
  101. data/kinde_api/lib/kinde_api/models/create_organization_response.rb +2 -0
  102. data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +2 -0
  103. data/kinde_api/lib/kinde_api/models/{application.rb → create_organization_user_permission_request.rb} +13 -19
  104. data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +2 -0
  105. data/kinde_api/lib/kinde_api/models/create_permission_request.rb +2 -0
  106. data/kinde_api/lib/kinde_api/models/create_role_request.rb +2 -0
  107. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +2 -0
  108. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +2 -0
  109. data/kinde_api/lib/kinde_api/models/create_user_request.rb +2 -0
  110. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +2 -0
  111. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +2 -0
  112. data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +2 -0
  113. data/kinde_api/lib/kinde_api/models/create_user_response.rb +2 -0
  114. data/kinde_api/lib/kinde_api/models/error.rb +2 -0
  115. data/kinde_api/lib/kinde_api/models/error_response.rb +2 -0
  116. data/kinde_api/lib/kinde_api/models/get_application_response.rb +239 -0
  117. data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +260 -0
  118. data/kinde_api/lib/kinde_api/models/get_applications_response.rb +10 -8
  119. data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +2 -0
  120. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +2 -0
  121. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +2 -0
  122. data/kinde_api/lib/kinde_api/models/{get_organizations_users_response.rb → get_organization_users_response.rb} +5 -3
  123. data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +2 -0
  124. data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +241 -0
  125. data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +2 -0
  126. data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +251 -0
  127. data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +2 -0
  128. data/kinde_api/lib/kinde_api/models/get_roles_response.rb +251 -0
  129. data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +241 -0
  130. data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +251 -0
  131. data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +222 -0
  132. data/kinde_api/lib/kinde_api/models/organization.rb +15 -4
  133. data/kinde_api/lib/kinde_api/models/organization_user.rb +2 -0
  134. data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +257 -0
  135. data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +228 -0
  136. data/kinde_api/lib/kinde_api/models/organization_user_role.rb +2 -0
  137. data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +237 -0
  138. data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +219 -0
  139. data/kinde_api/lib/kinde_api/models/permissions.rb +2 -0
  140. data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +2 -0
  141. data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +222 -0
  142. data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +222 -0
  143. data/kinde_api/lib/kinde_api/models/role.rb +246 -0
  144. data/kinde_api/lib/kinde_api/models/roles.rb +13 -1
  145. data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +246 -0
  146. data/kinde_api/lib/kinde_api/models/subscriber.rb +246 -0
  147. data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +255 -0
  148. data/kinde_api/lib/kinde_api/models/success_response.rb +2 -0
  149. data/kinde_api/lib/kinde_api/models/token_error_response.rb +230 -0
  150. data/kinde_api/lib/kinde_api/models/token_introspect.rb +262 -0
  151. data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +226 -0
  152. data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +235 -0
  153. data/kinde_api/lib/kinde_api/models/update_application_request.rb +254 -0
  154. data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +225 -0
  155. data/kinde_api/lib/kinde_api/models/update_organization_request.rb +16 -4
  156. data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +3 -1
  157. data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +2 -0
  158. data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +2 -0
  159. data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +222 -0
  160. data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +230 -0
  161. data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +250 -0
  162. data/kinde_api/lib/kinde_api/models/update_roles_request.rb +260 -0
  163. data/kinde_api/lib/kinde_api/models/update_user_request.rb +2 -0
  164. data/kinde_api/lib/kinde_api/models/update_user_response.rb +280 -0
  165. data/kinde_api/lib/kinde_api/models/user.rb +37 -32
  166. data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +228 -0
  167. data/kinde_api/lib/kinde_api/models/user_identity.rb +2 -0
  168. data/kinde_api/lib/kinde_api/models/user_identity_result.rb +2 -0
  169. data/kinde_api/lib/kinde_api/models/user_profile.rb +2 -0
  170. data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +2 -0
  171. data/kinde_api/lib/kinde_api/models/users_response.rb +3 -1
  172. data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +348 -0
  173. data/kinde_api/lib/kinde_api.rb +47 -2
  174. data/kinde_api/spec/api/apis_api_spec.rb +95 -0
  175. data/kinde_api/spec/api/applications_api_spec.rb +98 -0
  176. data/kinde_api/spec/api/business_api_spec.rb +75 -0
  177. data/kinde_api/spec/api/callbacks_api_spec.rb +69 -5
  178. data/kinde_api/spec/api/environments_api_spec.rb +5 -5
  179. data/kinde_api/spec/api/feature_flags_api_spec.rb +4 -9
  180. data/kinde_api/spec/api/industries_api_spec.rb +48 -0
  181. data/kinde_api/spec/api/o_auth_api_spec.rb +28 -1
  182. data/kinde_api/spec/api/organizations_api_spec.rb +63 -8
  183. data/kinde_api/spec/api/permissions_api_spec.rb +16 -4
  184. data/kinde_api/spec/api/roles_api_spec.rb +57 -4
  185. data/kinde_api/spec/api/subscribers_api_spec.rb +3 -4
  186. data/kinde_api/spec/api/timezones_api_spec.rb +48 -0
  187. data/kinde_api/spec/api/users_api_spec.rb +17 -2
  188. data/kinde_api/spec/api_client_spec.rb +13 -2
  189. data/kinde_api/spec/models/{application_spec.rb → add_apis_request_spec.rb} +8 -8
  190. data/kinde_api/spec/models/api_applications_inner_spec.rb +52 -0
  191. data/kinde_api/spec/models/api_spec.rb +64 -0
  192. data/kinde_api/spec/models/apis_spec.rb +52 -0
  193. data/kinde_api/spec/models/applications_spec.rb +46 -0
  194. data/kinde_api/spec/models/create_application_request_spec.rb +44 -0
  195. data/kinde_api/spec/models/create_application_response_application_spec.rb +46 -0
  196. data/kinde_api/spec/models/create_application_response_spec.rb +46 -0
  197. data/kinde_api/spec/models/create_feature_flag_request_spec.rb +72 -0
  198. data/kinde_api/spec/models/create_organization_request_spec.rb +6 -0
  199. data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +34 -0
  200. data/kinde_api/spec/models/get_application_response_application_spec.rb +58 -0
  201. data/kinde_api/spec/models/get_application_response_spec.rb +46 -0
  202. data/kinde_api/spec/models/get_applications_response_spec.rb +1 -1
  203. data/kinde_api/spec/models/{get_organizations_users_response_spec.rb → get_organization_users_response_spec.rb} +6 -6
  204. data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +46 -0
  205. data/kinde_api/spec/models/get_permissions_response_spec.rb +52 -0
  206. data/kinde_api/spec/models/get_roles_response_spec.rb +52 -0
  207. data/kinde_api/spec/models/get_subscriber_response_spec.rb +46 -0
  208. data/kinde_api/spec/models/get_subscribers_response_spec.rb +52 -0
  209. data/kinde_api/spec/models/logout_redirect_urls_spec.rb +34 -0
  210. data/kinde_api/spec/models/organization_spec.rb +6 -0
  211. data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +40 -0
  212. data/kinde_api/spec/models/organization_user_permission_spec.rb +58 -0
  213. data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +34 -0
  214. data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +46 -0
  215. data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +34 -0
  216. data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +34 -0
  217. data/kinde_api/spec/models/role_spec.rb +52 -0
  218. data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +52 -0
  219. data/kinde_api/spec/models/roles_spec.rb +6 -0
  220. data/kinde_api/spec/models/subscriber_spec.rb +52 -0
  221. data/kinde_api/spec/models/subscribers_subscriber_spec.rb +58 -0
  222. data/kinde_api/spec/models/token_error_response_spec.rb +40 -0
  223. data/kinde_api/spec/models/token_introspect_spec.rb +58 -0
  224. data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +40 -0
  225. data/kinde_api/spec/models/update_api_applications_request_spec.rb +34 -0
  226. data/kinde_api/spec/models/update_application_request_spec.rb +52 -0
  227. data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +34 -0
  228. data/kinde_api/spec/models/update_organization_request_spec.rb +6 -0
  229. data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +40 -0
  230. data/kinde_api/spec/models/update_role_permissions_request_spec.rb +34 -0
  231. data/kinde_api/spec/models/update_role_permissions_response_spec.rb +52 -0
  232. data/kinde_api/spec/models/update_roles_request_spec.rb +52 -0
  233. data/kinde_api/spec/models/update_user_response_spec.rb +70 -0
  234. data/kinde_api/spec/models/user_identities_inner_spec.rb +40 -0
  235. data/kinde_api/spec/models/user_spec.rb +9 -9
  236. data/kinde_api/spec/models/users_response_users_inner_spec.rb +106 -0
  237. data/kinde_sdk.gemspec +1 -1
  238. data/lib/kinde_sdk/version.rb +1 -1
  239. data/spec/kinde_sdk_spec.rb +0 -46
  240. metadata +193 -12
  241. data/kinde_api/docs/Application.md +0 -20
@@ -19,91 +19,50 @@ module KindeApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create a new feature flag
22
+ # Create Feature Flag
23
23
  # Create feature flag.
24
- # @param name [String] The name of the flag.
25
- # @param description [String] Description of the flag purpose.
26
- # @param key [String] The flag identifier to use in code.
27
- # @param type [String] The variable type.
28
- # @param allow_override_level [String] Allow the flag to be overridden at a different level.
29
- # @param default_value [String] Default value for the flag used by environments and organizations.
24
+ # @param create_feature_flag_request [CreateFeatureFlagRequest] Flag details.
30
25
  # @param [Hash] opts the optional parameters
31
26
  # @return [SuccessResponse]
32
- def create_feature_flag(name, description, key, type, allow_override_level, default_value, opts = {})
33
- data, _status_code, _headers = create_feature_flag_with_http_info(name, description, key, type, allow_override_level, default_value, opts)
27
+ def create_feature_flag(create_feature_flag_request, opts = {})
28
+ data, _status_code, _headers = create_feature_flag_with_http_info(create_feature_flag_request, opts)
34
29
  data
35
30
  end
36
31
 
37
- # Create a new feature flag
32
+ # Create Feature Flag
38
33
  # Create feature flag.
39
- # @param name [String] The name of the flag.
40
- # @param description [String] Description of the flag purpose.
41
- # @param key [String] The flag identifier to use in code.
42
- # @param type [String] The variable type.
43
- # @param allow_override_level [String] Allow the flag to be overridden at a different level.
44
- # @param default_value [String] Default value for the flag used by environments and organizations.
34
+ # @param create_feature_flag_request [CreateFeatureFlagRequest] Flag details.
45
35
  # @param [Hash] opts the optional parameters
46
36
  # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
47
- def create_feature_flag_with_http_info(name, description, key, type, allow_override_level, default_value, opts = {})
37
+ def create_feature_flag_with_http_info(create_feature_flag_request, opts = {})
48
38
  if @api_client.config.debugging
49
39
  @api_client.config.logger.debug 'Calling API: FeatureFlagsApi.create_feature_flag ...'
50
40
  end
51
- # verify the required parameter 'name' is set
52
- if @api_client.config.client_side_validation && name.nil?
53
- fail ArgumentError, "Missing the required parameter 'name' when calling FeatureFlagsApi.create_feature_flag"
54
- end
55
- # verify the required parameter 'description' is set
56
- if @api_client.config.client_side_validation && description.nil?
57
- fail ArgumentError, "Missing the required parameter 'description' when calling FeatureFlagsApi.create_feature_flag"
58
- end
59
- # verify the required parameter 'key' is set
60
- if @api_client.config.client_side_validation && key.nil?
61
- fail ArgumentError, "Missing the required parameter 'key' when calling FeatureFlagsApi.create_feature_flag"
62
- end
63
- # verify the required parameter 'type' is set
64
- if @api_client.config.client_side_validation && type.nil?
65
- fail ArgumentError, "Missing the required parameter 'type' when calling FeatureFlagsApi.create_feature_flag"
66
- end
67
- # verify enum value
68
- allowable_values = ["str", "int", "bool"]
69
- if @api_client.config.client_side_validation && !allowable_values.include?(type)
70
- fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
71
- end
72
- # verify the required parameter 'allow_override_level' is set
73
- if @api_client.config.client_side_validation && allow_override_level.nil?
74
- fail ArgumentError, "Missing the required parameter 'allow_override_level' when calling FeatureFlagsApi.create_feature_flag"
75
- end
76
- # verify enum value
77
- allowable_values = ["env", "org"]
78
- if @api_client.config.client_side_validation && !allowable_values.include?(allow_override_level)
79
- fail ArgumentError, "invalid value for \"allow_override_level\", must be one of #{allowable_values}"
80
- end
81
- # verify the required parameter 'default_value' is set
82
- if @api_client.config.client_side_validation && default_value.nil?
83
- fail ArgumentError, "Missing the required parameter 'default_value' when calling FeatureFlagsApi.create_feature_flag"
41
+ # verify the required parameter 'create_feature_flag_request' is set
42
+ if @api_client.config.client_side_validation && create_feature_flag_request.nil?
43
+ fail ArgumentError, "Missing the required parameter 'create_feature_flag_request' when calling FeatureFlagsApi.create_feature_flag"
84
44
  end
85
45
  # resource path
86
46
  local_var_path = '/api/v1/feature_flags'
87
47
 
88
48
  # query parameters
89
49
  query_params = opts[:query_params] || {}
90
- query_params[:'name'] = name
91
- query_params[:'description'] = description
92
- query_params[:'key'] = key
93
- query_params[:'type'] = type
94
- query_params[:'allow_override_level'] = allow_override_level
95
- query_params[:'default_value'] = default_value
96
50
 
97
51
  # header parameters
98
52
  header_params = opts[:header_params] || {}
99
53
  # HTTP header 'Accept' (if needed)
100
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
55
+ # HTTP header 'Content-Type'
56
+ content_type = @api_client.select_header_content_type(['application/json'])
57
+ if !content_type.nil?
58
+ header_params['Content-Type'] = content_type
59
+ end
101
60
 
102
61
  # form parameters
103
62
  form_params = opts[:form_params] || {}
104
63
 
105
64
  # http body (model)
106
- post_body = opts[:debug_body]
65
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(create_feature_flag_request)
107
66
 
108
67
  # return_type
109
68
  return_type = opts[:debug_return_type] || 'SuccessResponse'
@@ -128,7 +87,7 @@ module KindeApi
128
87
  return data, status_code, headers
129
88
  end
130
89
 
131
- # Delete a feature flag
90
+ # Delete Feature Flag
132
91
  # Delete feature flag
133
92
  # @param feature_flag_key [String] The identifier for the feature flag.
134
93
  # @param [Hash] opts the optional parameters
@@ -138,7 +97,7 @@ module KindeApi
138
97
  data
139
98
  end
140
99
 
141
- # Delete a feature flag
100
+ # Delete Feature Flag
142
101
  # Delete feature flag
143
102
  # @param feature_flag_key [String] The identifier for the feature flag.
144
103
  # @param [Hash] opts the optional parameters
@@ -191,7 +150,7 @@ module KindeApi
191
150
  return data, status_code, headers
192
151
  end
193
152
 
194
- # Update a feature flag
153
+ # Replace Feature Flag
195
154
  # Update feature flag.
196
155
  # @param feature_flag_key [String] The key identifier for the feature flag.
197
156
  # @param name [String] The name of the flag.
@@ -206,7 +165,7 @@ module KindeApi
206
165
  data
207
166
  end
208
167
 
209
- # Update a feature flag
168
+ # Replace Feature Flag
210
169
  # Update feature flag.
211
170
  # @param feature_flag_key [String] The key identifier for the feature flag.
212
171
  # @param name [String] The name of the flag.
@@ -0,0 +1,85 @@
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ #Provides endpoints to manage your Kinde Businesses
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
+
13
+ require 'cgi'
14
+
15
+ module KindeApi
16
+ class IndustriesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List industries and industry keys.
23
+ # Get a list of industries and associated industry keys.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :industry_key Industry Key.
26
+ # @option opts [String] :name Industry name.
27
+ # @return [SuccessResponse]
28
+ def get_industries(opts = {})
29
+ data, _status_code, _headers = get_industries_with_http_info(opts)
30
+ data
31
+ end
32
+
33
+ # List industries and industry keys.
34
+ # Get a list of industries and associated industry keys.
35
+ # @param [Hash] opts the optional parameters
36
+ # @option opts [String] :industry_key Industry Key.
37
+ # @option opts [String] :name Industry name.
38
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
39
+ def get_industries_with_http_info(opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: IndustriesApi.get_industries ...'
42
+ end
43
+ # resource path
44
+ local_var_path = '/api/v1/industries'
45
+
46
+ # query parameters
47
+ query_params = opts[:query_params] || {}
48
+ query_params[:'industry_key'] = opts[:'industry_key'] if !opts[:'industry_key'].nil?
49
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
55
+
56
+ # form parameters
57
+ form_params = opts[:form_params] || {}
58
+
59
+ # http body (model)
60
+ post_body = opts[:debug_body]
61
+
62
+ # return_type
63
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
64
+
65
+ # auth_names
66
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
67
+
68
+ new_options = opts.merge(
69
+ :operation => :"IndustriesApi.get_industries",
70
+ :header_params => header_params,
71
+ :query_params => query_params,
72
+ :form_params => form_params,
73
+ :body => post_body,
74
+ :auth_names => auth_names,
75
+ :return_type => return_type
76
+ )
77
+
78
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
79
+ if @api_client.config.debugging
80
+ @api_client.config.logger.debug "API called: IndustriesApi#get_industries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
81
+ end
82
+ return data, status_code, headers
83
+ end
84
+ end
85
+ end
@@ -19,7 +19,7 @@ module KindeApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Returns the details of the currently logged in user
22
+ # Get User Profile
23
23
  # Contains the id, names and email of the currently logged in user.
24
24
  # @param [Hash] opts the optional parameters
25
25
  # @return [UserProfile]
@@ -28,7 +28,7 @@ module KindeApi
28
28
  data
29
29
  end
30
30
 
31
- # Returns the details of the currently logged in user
31
+ # Get User Profile
32
32
  # Contains the id, names and email of the currently logged in user.
33
33
  # @param [Hash] opts the optional parameters
34
34
  # @return [Array<(UserProfile, Integer, Hash)>] UserProfile data, response status code and response headers
@@ -132,5 +132,144 @@ module KindeApi
132
132
  end
133
133
  return data, status_code, headers
134
134
  end
135
+
136
+ # Get token details
137
+ # Retrieve information about the provided token.
138
+ # @param [Hash] opts the optional parameters
139
+ # @option opts [String] :token The token to be introspected.
140
+ # @option opts [String] :token_type The provided token&#39;s type.
141
+ # @return [TokenIntrospect]
142
+ def token_introspection(opts = {})
143
+ data, _status_code, _headers = token_introspection_with_http_info(opts)
144
+ data
145
+ end
146
+
147
+ # Get token details
148
+ # Retrieve information about the provided token.
149
+ # @param [Hash] opts the optional parameters
150
+ # @option opts [String] :token The token to be introspected.
151
+ # @option opts [String] :token_type The provided token&#39;s type.
152
+ # @return [Array<(TokenIntrospect, Integer, Hash)>] TokenIntrospect data, response status code and response headers
153
+ def token_introspection_with_http_info(opts = {})
154
+ if @api_client.config.debugging
155
+ @api_client.config.logger.debug 'Calling API: OAuthApi.token_introspection ...'
156
+ end
157
+ # resource path
158
+ local_var_path = '/oauth2/introspect'
159
+
160
+ # query parameters
161
+ query_params = opts[:query_params] || {}
162
+
163
+ # header parameters
164
+ header_params = opts[:header_params] || {}
165
+ # HTTP header 'Accept' (if needed)
166
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
167
+ # HTTP header 'Content-Type'
168
+ content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
169
+ if !content_type.nil?
170
+ header_params['Content-Type'] = content_type
171
+ end
172
+
173
+ # form parameters
174
+ form_params = opts[:form_params] || {}
175
+ form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
176
+ form_params['token_type'] = opts[:'token_type'] if !opts[:'token_type'].nil?
177
+
178
+ # http body (model)
179
+ post_body = opts[:debug_body]
180
+
181
+ # return_type
182
+ return_type = opts[:debug_return_type] || 'TokenIntrospect'
183
+
184
+ # auth_names
185
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
186
+
187
+ new_options = opts.merge(
188
+ :operation => :"OAuthApi.token_introspection",
189
+ :header_params => header_params,
190
+ :query_params => query_params,
191
+ :form_params => form_params,
192
+ :body => post_body,
193
+ :auth_names => auth_names,
194
+ :return_type => return_type
195
+ )
196
+
197
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
198
+ if @api_client.config.debugging
199
+ @api_client.config.logger.debug "API called: OAuthApi#token_introspection\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
200
+ end
201
+ return data, status_code, headers
202
+ end
203
+
204
+ # Revoke token
205
+ # Revoke a previously issued token.
206
+ # @param [Hash] opts the optional parameters
207
+ # @option opts [String] :token The token to be revoked.
208
+ # @option opts [String] :client_id The identifier for your client.
209
+ # @option opts [String] :client_secret The secret associated with your client.
210
+ # @return [nil]
211
+ def token_revocation(opts = {})
212
+ token_revocation_with_http_info(opts)
213
+ nil
214
+ end
215
+
216
+ # Revoke token
217
+ # Revoke a previously issued token.
218
+ # @param [Hash] opts the optional parameters
219
+ # @option opts [String] :token The token to be revoked.
220
+ # @option opts [String] :client_id The identifier for your client.
221
+ # @option opts [String] :client_secret The secret associated with your client.
222
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
223
+ def token_revocation_with_http_info(opts = {})
224
+ if @api_client.config.debugging
225
+ @api_client.config.logger.debug 'Calling API: OAuthApi.token_revocation ...'
226
+ end
227
+ # resource path
228
+ local_var_path = '/oauth2/revoke'
229
+
230
+ # query parameters
231
+ query_params = opts[:query_params] || {}
232
+
233
+ # header parameters
234
+ header_params = opts[:header_params] || {}
235
+ # HTTP header 'Accept' (if needed)
236
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
237
+ # HTTP header 'Content-Type'
238
+ content_type = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
239
+ if !content_type.nil?
240
+ header_params['Content-Type'] = content_type
241
+ end
242
+
243
+ # form parameters
244
+ form_params = opts[:form_params] || {}
245
+ form_params['token'] = opts[:'token'] if !opts[:'token'].nil?
246
+ form_params['client_id'] = opts[:'client_id'] if !opts[:'client_id'].nil?
247
+ form_params['client_secret'] = opts[:'client_secret'] if !opts[:'client_secret'].nil?
248
+
249
+ # http body (model)
250
+ post_body = opts[:debug_body]
251
+
252
+ # return_type
253
+ return_type = opts[:debug_return_type]
254
+
255
+ # auth_names
256
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
257
+
258
+ new_options = opts.merge(
259
+ :operation => :"OAuthApi.token_revocation",
260
+ :header_params => header_params,
261
+ :query_params => query_params,
262
+ :form_params => form_params,
263
+ :body => post_body,
264
+ :auth_names => auth_names,
265
+ :return_type => return_type
266
+ )
267
+
268
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
269
+ if @api_client.config.debugging
270
+ @api_client.config.logger.debug "API called: OAuthApi#token_revocation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
271
+ end
272
+ return data, status_code, headers
273
+ end
135
274
  end
136
275
  end