kinde_sdk 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (235) hide show
  1. checksums.yaml +4 -4
  2. data/kinde_api/README.md +3 -1
  3. data/kinde_api/docs/ConnectedAppsApi.md +12 -6
  4. data/kinde_api/docs/CreateOrganizationRequest.md +14 -2
  5. data/kinde_api/docs/CreateUserRequest.md +2 -0
  6. data/kinde_api/docs/OrganizationsApi.md +6 -8
  7. data/kinde_api/docs/Permissions.md +3 -1
  8. data/kinde_api/docs/RolesApi.md +2 -2
  9. data/kinde_api/docs/UpdateOrganizationRequest.md +13 -1
  10. data/kinde_api/docs/UsersApi.md +80 -10
  11. data/kinde_api/lib/kinde_api/api/apis_api.rb +95 -96
  12. data/kinde_api/lib/kinde_api/api/applications_api.rb +95 -85
  13. data/kinde_api/lib/kinde_api/api/business_api.rb +58 -56
  14. data/kinde_api/lib/kinde_api/api/callbacks_api.rb +164 -144
  15. data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +66 -54
  16. data/kinde_api/lib/kinde_api/api/environments_api.rb +71 -58
  17. data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +82 -62
  18. data/kinde_api/lib/kinde_api/api/industries_api.rb +22 -23
  19. data/kinde_api/lib/kinde_api/api/o_auth_api.rb +63 -72
  20. data/kinde_api/lib/kinde_api/api/organizations_api.rb +376 -287
  21. data/kinde_api/lib/kinde_api/api/permissions_api.rb +72 -68
  22. data/kinde_api/lib/kinde_api/api/roles_api.rb +137 -134
  23. data/kinde_api/lib/kinde_api/api/subscribers_api.rb +58 -57
  24. data/kinde_api/lib/kinde_api/api/timezones_api.rb +22 -23
  25. data/kinde_api/lib/kinde_api/api/users_api.rb +204 -128
  26. data/kinde_api/lib/kinde_api/api_client.rb +68 -79
  27. data/kinde_api/lib/kinde_api/api_error.rb +16 -16
  28. data/kinde_api/lib/kinde_api/configuration.rb +23 -100
  29. data/kinde_api/lib/kinde_api/models/add_apis_request.rb +49 -52
  30. data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +42 -40
  31. data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +51 -53
  32. data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +50 -52
  33. data/kinde_api/lib/kinde_api/models/api.rb +61 -70
  34. data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +54 -63
  35. data/kinde_api/lib/kinde_api/models/api_result.rb +40 -38
  36. data/kinde_api/lib/kinde_api/models/apis.rb +52 -56
  37. data/kinde_api/lib/kinde_api/models/applications.rb +50 -55
  38. data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +45 -44
  39. data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +45 -44
  40. data/kinde_api/lib/kinde_api/models/create_application_request.rb +51 -49
  41. data/kinde_api/lib/kinde_api/models/create_application_response.rb +49 -50
  42. data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +49 -50
  43. data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +77 -87
  44. data/kinde_api/lib/kinde_api/models/create_organization_request.rb +125 -83
  45. data/kinde_api/lib/kinde_api/models/create_organization_response.rb +50 -55
  46. data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +41 -38
  47. data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +41 -38
  48. data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +41 -38
  49. data/kinde_api/lib/kinde_api/models/create_permission_request.rb +49 -50
  50. data/kinde_api/lib/kinde_api/models/create_role_request.rb +53 -56
  51. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +41 -38
  52. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +41 -38
  53. data/kinde_api/lib/kinde_api/models/create_user_request.rb +55 -47
  54. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +51 -49
  55. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +41 -38
  56. data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +45 -44
  57. data/kinde_api/lib/kinde_api/models/create_user_response.rb +50 -52
  58. data/kinde_api/lib/kinde_api/models/error.rb +44 -44
  59. data/kinde_api/lib/kinde_api/models/error_response.rb +42 -40
  60. data/kinde_api/lib/kinde_api/models/get_application_response.rb +49 -50
  61. data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +57 -62
  62. data/kinde_api/lib/kinde_api/models/get_applications_response.rb +54 -57
  63. data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +54 -57
  64. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +50 -52
  65. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +52 -52
  66. data/kinde_api/lib/kinde_api/models/get_organization_users_response.rb +54 -57
  67. data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +54 -57
  68. data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +50 -52
  69. data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +54 -57
  70. data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +54 -57
  71. data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +42 -40
  72. data/kinde_api/lib/kinde_api/models/get_roles_response.rb +54 -57
  73. data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +50 -52
  74. data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +54 -57
  75. data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +42 -40
  76. data/kinde_api/lib/kinde_api/models/organization.rb +54 -63
  77. data/kinde_api/lib/kinde_api/models/organization_user.rb +63 -81
  78. data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +59 -73
  79. data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +46 -47
  80. data/kinde_api/lib/kinde_api/models/organization_user_role.rb +50 -55
  81. data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +50 -55
  82. data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +41 -38
  83. data/kinde_api/lib/kinde_api/models/permissions.rb +59 -52
  84. data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +42 -40
  85. data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +42 -40
  86. data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +42 -40
  87. data/kinde_api/lib/kinde_api/models/role.rb +53 -63
  88. data/kinde_api/lib/kinde_api/models/roles.rb +52 -56
  89. data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +54 -63
  90. data/kinde_api/lib/kinde_api/models/subscriber.rb +54 -63
  91. data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +58 -71
  92. data/kinde_api/lib/kinde_api/models/success_response.rb +46 -47
  93. data/kinde_api/lib/kinde_api/models/token_error_response.rb +45 -44
  94. data/kinde_api/lib/kinde_api/models/token_introspect.rb +58 -63
  95. data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +44 -42
  96. data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +47 -46
  97. data/kinde_api/lib/kinde_api/models/update_application_request.rb +55 -59
  98. data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +43 -40
  99. data/kinde_api/lib/kinde_api/models/update_organization_request.rb +115 -75
  100. data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +42 -40
  101. data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +55 -59
  102. data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +57 -67
  103. data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +42 -40
  104. data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +45 -44
  105. data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +56 -66
  106. data/kinde_api/lib/kinde_api/models/update_roles_request.rb +56 -61
  107. data/kinde_api/lib/kinde_api/models/update_user_request.rb +53 -56
  108. data/kinde_api/lib/kinde_api/models/update_user_response.rb +66 -73
  109. data/kinde_api/lib/kinde_api/models/user.rb +97 -118
  110. data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +46 -47
  111. data/kinde_api/lib/kinde_api/models/user_identity.rb +45 -44
  112. data/kinde_api/lib/kinde_api/models/user_identity_result.rb +41 -38
  113. data/kinde_api/lib/kinde_api/models/user_profile.rb +62 -68
  114. data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +74 -86
  115. data/kinde_api/lib/kinde_api/models/users_response.rb +54 -57
  116. data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +98 -118
  117. data/kinde_api/lib/kinde_api/version.rb +11 -11
  118. data/kinde_api/lib/kinde_api.rb +30 -20
  119. data/kinde_api/spec/api/apis_api_spec.rb +20 -21
  120. data/kinde_api/spec/api/applications_api_spec.rb +18 -19
  121. data/kinde_api/spec/api/business_api_spec.rb +12 -13
  122. data/kinde_api/spec/api/callbacks_api_spec.rb +27 -28
  123. data/kinde_api/spec/api/connected_apps_api_spec.rb +16 -15
  124. data/kinde_api/spec/api/environments_api_spec.rb +14 -15
  125. data/kinde_api/spec/api/feature_flags_api_spec.rb +13 -14
  126. data/kinde_api/spec/api/industries_api_spec.rb +12 -13
  127. data/kinde_api/spec/api/o_auth_api_spec.rb +16 -17
  128. data/kinde_api/spec/api/organizations_api_spec.rb +34 -35
  129. data/kinde_api/spec/api/permissions_api_spec.rb +15 -16
  130. data/kinde_api/spec/api/roles_api_spec.rb +20 -21
  131. data/kinde_api/spec/api/subscribers_api_spec.rb +15 -16
  132. data/kinde_api/spec/api/timezones_api_spec.rb +12 -13
  133. data/kinde_api/spec/api/users_api_spec.rb +36 -24
  134. data/kinde_api/spec/api_client_spec.rb +21 -27
  135. data/kinde_api/spec/configuration_spec.rb +11 -11
  136. data/kinde_api/spec/models/add_apis_request_spec.rb +13 -14
  137. data/kinde_api/spec/models/add_organization_users_request_spec.rb +11 -12
  138. data/kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb +14 -15
  139. data/kinde_api/spec/models/add_organization_users_response_spec.rb +14 -15
  140. data/kinde_api/spec/models/api_applications_inner_spec.rb +15 -16
  141. data/kinde_api/spec/models/api_result_spec.rb +11 -12
  142. data/kinde_api/spec/models/api_spec.rb +17 -18
  143. data/kinde_api/spec/models/apis_spec.rb +15 -16
  144. data/kinde_api/spec/models/applications_spec.rb +14 -15
  145. data/kinde_api/spec/models/connected_apps_access_token_spec.rb +13 -14
  146. data/kinde_api/spec/models/connected_apps_auth_url_spec.rb +13 -14
  147. data/kinde_api/spec/models/create_application_request_spec.rb +13 -14
  148. data/kinde_api/spec/models/create_application_response_application_spec.rb +14 -15
  149. data/kinde_api/spec/models/create_application_response_spec.rb +14 -15
  150. data/kinde_api/spec/models/create_feature_flag_request_spec.rb +17 -18
  151. data/kinde_api/spec/models/create_organization_request_spec.rb +53 -18
  152. data/kinde_api/spec/models/create_organization_response_organization_spec.rb +11 -12
  153. data/kinde_api/spec/models/create_organization_response_spec.rb +14 -15
  154. data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +11 -12
  155. data/kinde_api/spec/models/create_organization_user_role_request_spec.rb +11 -12
  156. data/kinde_api/spec/models/create_permission_request_spec.rb +14 -15
  157. data/kinde_api/spec/models/create_role_request_spec.rb +15 -16
  158. data/kinde_api/spec/models/create_subscriber_success_response_spec.rb +11 -12
  159. data/kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb +11 -12
  160. data/kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb +11 -12
  161. data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +13 -14
  162. data/kinde_api/spec/models/create_user_request_profile_spec.rb +13 -14
  163. data/kinde_api/spec/models/create_user_request_spec.rb +19 -14
  164. data/kinde_api/spec/models/create_user_response_spec.rb +14 -15
  165. data/kinde_api/spec/models/error_response_spec.rb +11 -12
  166. data/kinde_api/spec/models/error_spec.rb +13 -14
  167. data/kinde_api/spec/models/get_application_response_application_spec.rb +16 -17
  168. data/kinde_api/spec/models/get_application_response_spec.rb +14 -15
  169. data/kinde_api/spec/models/get_applications_response_spec.rb +15 -16
  170. data/kinde_api/spec/models/get_environment_feature_flags_response_spec.rb +15 -16
  171. data/kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb +13 -14
  172. data/kinde_api/spec/models/get_organization_feature_flags_response_spec.rb +14 -15
  173. data/kinde_api/spec/models/get_organization_users_response_spec.rb +15 -16
  174. data/kinde_api/spec/models/get_organizations_response_spec.rb +15 -16
  175. data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +14 -15
  176. data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +15 -16
  177. data/kinde_api/spec/models/get_permissions_response_spec.rb +15 -16
  178. data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +11 -12
  179. data/kinde_api/spec/models/get_roles_response_spec.rb +15 -16
  180. data/kinde_api/spec/models/get_subscriber_response_spec.rb +14 -15
  181. data/kinde_api/spec/models/get_subscribers_response_spec.rb +15 -16
  182. data/kinde_api/spec/models/logout_redirect_urls_spec.rb +11 -12
  183. data/kinde_api/spec/models/organization_spec.rb +15 -16
  184. data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +13 -14
  185. data/kinde_api/spec/models/organization_user_permission_spec.rb +16 -17
  186. data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +11 -12
  187. data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +14 -15
  188. data/kinde_api/spec/models/organization_user_role_spec.rb +14 -15
  189. data/kinde_api/spec/models/organization_user_spec.rb +17 -18
  190. data/kinde_api/spec/models/permissions_spec.rb +20 -15
  191. data/kinde_api/spec/models/redirect_callback_urls_spec.rb +11 -12
  192. data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +11 -12
  193. data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +11 -12
  194. data/kinde_api/spec/models/role_spec.rb +15 -16
  195. data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +15 -16
  196. data/kinde_api/spec/models/roles_spec.rb +15 -16
  197. data/kinde_api/spec/models/subscriber_spec.rb +15 -16
  198. data/kinde_api/spec/models/subscribers_subscriber_spec.rb +16 -17
  199. data/kinde_api/spec/models/success_response_spec.rb +13 -14
  200. data/kinde_api/spec/models/token_error_response_spec.rb +13 -14
  201. data/kinde_api/spec/models/token_introspect_spec.rb +16 -17
  202. data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +13 -14
  203. data/kinde_api/spec/models/update_api_applications_request_spec.rb +11 -12
  204. data/kinde_api/spec/models/update_application_request_spec.rb +15 -16
  205. data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +11 -12
  206. data/kinde_api/spec/models/update_organization_request_spec.rb +52 -17
  207. data/kinde_api/spec/models/update_organization_users_request_spec.rb +11 -12
  208. data/kinde_api/spec/models/update_organization_users_request_users_inner_spec.rb +15 -16
  209. data/kinde_api/spec/models/update_organization_users_response_spec.rb +15 -16
  210. data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +13 -14
  211. data/kinde_api/spec/models/update_role_permissions_request_spec.rb +11 -12
  212. data/kinde_api/spec/models/update_role_permissions_response_spec.rb +15 -16
  213. data/kinde_api/spec/models/update_roles_request_spec.rb +15 -16
  214. data/kinde_api/spec/models/update_user_request_spec.rb +15 -16
  215. data/kinde_api/spec/models/update_user_response_spec.rb +17 -18
  216. data/kinde_api/spec/models/user_identities_inner_spec.rb +13 -14
  217. data/kinde_api/spec/models/user_identity_result_spec.rb +11 -12
  218. data/kinde_api/spec/models/user_identity_spec.rb +13 -14
  219. data/kinde_api/spec/models/user_profile_spec.rb +17 -18
  220. data/kinde_api/spec/models/user_profile_v2_spec.rb +19 -20
  221. data/kinde_api/spec/models/user_spec.rb +24 -25
  222. data/kinde_api/spec/models/users_response_spec.rb +15 -16
  223. data/kinde_api/spec/models/users_response_users_inner_spec.rb +24 -25
  224. data/kinde_api/spec/spec_helper.rb +61 -63
  225. data/lib/kinde_sdk/version.rb +1 -1
  226. metadata +12 -21
  227. data/Gemfile +0 -15
  228. data/Gemfile.lock +0 -128
  229. data/LICENSE +0 -21
  230. data/README.md +0 -23
  231. data/Rakefile +0 -10
  232. data/kinde_api/.gitignore +0 -39
  233. data/kinde_api/.rspec +0 -2
  234. data/kinde_sdk.gemspec +0 -33
  235. data/openapitools.json +0 -7
@@ -1,14 +1,14 @@
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
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
+ #
12
12
 
13
13
  require 'cgi'
14
14
 
@@ -19,8 +19,9 @@ module KindeApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+
22
23
  # Create User
23
- # Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
24
+ # Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
24
25
  # @param [Hash] opts the optional parameters
25
26
  # @option opts [CreateUserRequest] :create_user_request The details of the user to create.
26
27
  # @return [CreateUserResponse]
@@ -30,14 +31,12 @@ module KindeApi
30
31
  end
31
32
 
32
33
  # Create User
33
- # Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
34
+ # Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
34
35
  # @param [Hash] opts the optional parameters
35
36
  # @option opts [CreateUserRequest] :create_user_request The details of the user to create.
36
37
  # @return [Array<(CreateUserResponse, Integer, Hash)>] CreateUserResponse data, response status code and response headers
37
38
  def create_user_with_http_info(opts = {})
38
- if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: UsersApi.create_user ...'
40
- end
39
+ @api_client.config.logger.debug 'Calling API: UsersApi.create_user ...' if @api_client.config.debugging
41
40
  # resource path
42
41
  local_var_path = '/api/v1/user'
43
42
 
@@ -47,18 +46,17 @@ module KindeApi
47
46
  # header parameters
48
47
  header_params = opts[:header_params] || {}
49
48
  # HTTP header 'Accept' (if needed)
50
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
49
+ header_params['Accept'] =
50
+ @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
51
51
  # HTTP header 'Content-Type'
52
52
  content_type = @api_client.select_header_content_type(['application/json'])
53
- if !content_type.nil?
54
- header_params['Content-Type'] = content_type
55
- end
53
+ header_params['Content-Type'] = content_type unless content_type.nil?
56
54
 
57
55
  # form parameters
58
56
  form_params = opts[:form_params] || {}
59
57
 
60
58
  # http body (model)
61
- post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'create_user_request'])
59
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:create_user_request])
62
60
 
63
61
  # return_type
64
62
  return_type = opts[:debug_return_type] || 'CreateUserResponse'
@@ -67,24 +65,24 @@ module KindeApi
67
65
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
68
66
 
69
67
  new_options = opts.merge(
70
- :operation => :"UsersApi.create_user",
71
- :header_params => header_params,
72
- :query_params => query_params,
73
- :form_params => form_params,
74
- :body => post_body,
75
- :auth_names => auth_names,
76
- :return_type => return_type
68
+ operation: :"UsersApi.create_user",
69
+ header_params:,
70
+ query_params:,
71
+ form_params:,
72
+ body: post_body,
73
+ auth_names:,
74
+ return_type:
77
75
  )
78
76
 
79
77
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
78
  if @api_client.config.debugging
81
79
  @api_client.config.logger.debug "API called: UsersApi#create_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
80
  end
83
- return data, status_code, headers
81
+ [data, status_code, headers]
84
82
  end
85
83
 
86
84
  # Delete User
87
- # Delete a user record.
85
+ # Delete a user record.
88
86
  # @param id [String] The user&#39;s id.
89
87
  # @param [Hash] opts the optional parameters
90
88
  # @option opts [Boolean] :is_delete_profile Delete all data and remove the user&#39;s profile from all of Kinde, including the subscriber list
@@ -95,31 +93,31 @@ module KindeApi
95
93
  end
96
94
 
97
95
  # Delete User
98
- # Delete a user record.
96
+ # Delete a user record.
99
97
  # @param id [String] The user&#39;s id.
100
98
  # @param [Hash] opts the optional parameters
101
99
  # @option opts [Boolean] :is_delete_profile Delete all data and remove the user&#39;s profile from all of Kinde, including the subscriber list
102
100
  # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
103
101
  def delete_user_with_http_info(id, opts = {})
104
- if @api_client.config.debugging
105
- @api_client.config.logger.debug 'Calling API: UsersApi.delete_user ...'
106
- end
102
+ @api_client.config.logger.debug 'Calling API: UsersApi.delete_user ...' if @api_client.config.debugging
107
103
  # verify the required parameter 'id' is set
108
104
  if @api_client.config.client_side_validation && id.nil?
109
- fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.delete_user"
105
+ raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.delete_user"
110
106
  end
107
+
111
108
  # resource path
112
109
  local_var_path = '/api/v1/user'
113
110
 
114
111
  # query parameters
115
112
  query_params = opts[:query_params] || {}
116
- query_params[:'id'] = id
117
- query_params[:'is_delete_profile'] = opts[:'is_delete_profile'] if !opts[:'is_delete_profile'].nil?
113
+ query_params[:id] = id
114
+ query_params[:is_delete_profile] = opts[:is_delete_profile] unless opts[:is_delete_profile].nil?
118
115
 
119
116
  # header parameters
120
117
  header_params = opts[:header_params] || {}
121
118
  # HTTP header 'Accept' (if needed)
122
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
119
+ header_params['Accept'] =
120
+ @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
123
121
 
124
122
  # form parameters
125
123
  form_params = opts[:form_params] || {}
@@ -134,24 +132,24 @@ module KindeApi
134
132
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
135
133
 
136
134
  new_options = opts.merge(
137
- :operation => :"UsersApi.delete_user",
138
- :header_params => header_params,
139
- :query_params => query_params,
140
- :form_params => form_params,
141
- :body => post_body,
142
- :auth_names => auth_names,
143
- :return_type => return_type
135
+ operation: :"UsersApi.delete_user",
136
+ header_params:,
137
+ query_params:,
138
+ form_params:,
139
+ body: post_body,
140
+ auth_names:,
141
+ return_type:
144
142
  )
145
143
 
146
144
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
147
145
  if @api_client.config.debugging
148
146
  @api_client.config.logger.debug "API called: UsersApi#delete_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
149
147
  end
150
- return data, status_code, headers
148
+ [data, status_code, headers]
151
149
  end
152
150
 
153
151
  # Get User
154
- # Retrieve a user record.
152
+ # Retrieve a user record.
155
153
  # @param id [String] The user&#39;s id.
156
154
  # @param [Hash] opts the optional parameters
157
155
  # @option opts [String] :expand Specify additional data to retrieve. Use \&quot;organizations\&quot; and/or \&quot;identities\&quot;.
@@ -162,31 +160,31 @@ module KindeApi
162
160
  end
163
161
 
164
162
  # Get User
165
- # Retrieve a user record.
163
+ # Retrieve a user record.
166
164
  # @param id [String] The user&#39;s id.
167
165
  # @param [Hash] opts the optional parameters
168
166
  # @option opts [String] :expand Specify additional data to retrieve. Use \&quot;organizations\&quot; and/or \&quot;identities\&quot;.
169
167
  # @return [Array<(User, Integer, Hash)>] User data, response status code and response headers
170
168
  def get_user_data_with_http_info(id, opts = {})
171
- if @api_client.config.debugging
172
- @api_client.config.logger.debug 'Calling API: UsersApi.get_user_data ...'
173
- end
169
+ @api_client.config.logger.debug 'Calling API: UsersApi.get_user_data ...' if @api_client.config.debugging
174
170
  # verify the required parameter 'id' is set
175
171
  if @api_client.config.client_side_validation && id.nil?
176
- fail ArgumentError, "Missing the required parameter 'id' when calling UsersApi.get_user_data"
172
+ raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.get_user_data"
177
173
  end
174
+
178
175
  # resource path
179
176
  local_var_path = '/api/v1/user'
180
177
 
181
178
  # query parameters
182
179
  query_params = opts[:query_params] || {}
183
- query_params[:'id'] = id
184
- query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
180
+ query_params[:id] = id
181
+ query_params[:expand] = opts[:expand] unless opts[:expand].nil?
185
182
 
186
183
  # header parameters
187
184
  header_params = opts[:header_params] || {}
188
185
  # HTTP header 'Accept' (if needed)
189
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
186
+ header_params['Accept'] =
187
+ @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
190
188
 
191
189
  # form parameters
192
190
  form_params = opts[:form_params] || {}
@@ -201,26 +199,25 @@ module KindeApi
201
199
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
202
200
 
203
201
  new_options = opts.merge(
204
- :operation => :"UsersApi.get_user_data",
205
- :header_params => header_params,
206
- :query_params => query_params,
207
- :form_params => form_params,
208
- :body => post_body,
209
- :auth_names => auth_names,
210
- :return_type => return_type
202
+ operation: :"UsersApi.get_user_data",
203
+ header_params:,
204
+ query_params:,
205
+ form_params:,
206
+ body: post_body,
207
+ auth_names:,
208
+ return_type:
211
209
  )
212
210
 
213
211
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
214
212
  if @api_client.config.debugging
215
213
  @api_client.config.logger.debug "API called: UsersApi#get_user_data\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
216
214
  end
217
- return data, status_code, headers
215
+ [data, status_code, headers]
218
216
  end
219
217
 
220
218
  # List Users
221
- # The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
219
+ # The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
222
220
  # @param [Hash] opts the optional parameters
223
- # @option opts [String] :sort Field and order to sort the result by.
224
221
  # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
225
222
  # @option opts [String] :user_id ID of the user to filter by.
226
223
  # @option opts [String] :next_token A string to get the next page of results if there are more results.
@@ -233,9 +230,8 @@ module KindeApi
233
230
  end
234
231
 
235
232
  # List Users
236
- # The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the &#x60;page_size&#x60; query string parameter.
233
+ # The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the &#x60;page_size&#x60; query string parameter.
237
234
  # @param [Hash] opts the optional parameters
238
- # @option opts [String] :sort Field and order to sort the result by.
239
235
  # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
240
236
  # @option opts [String] :user_id ID of the user to filter by.
241
237
  # @option opts [String] :next_token A string to get the next page of results if there are more results.
@@ -243,29 +239,23 @@ module KindeApi
243
239
  # @option opts [String] :expand Specify additional data to retrieve. Use \&quot;organizations\&quot; and/or \&quot;identities\&quot;.
244
240
  # @return [Array<(UsersResponse, Integer, Hash)>] UsersResponse data, response status code and response headers
245
241
  def get_users_with_http_info(opts = {})
246
- if @api_client.config.debugging
247
- @api_client.config.logger.debug 'Calling API: UsersApi.get_users ...'
248
- end
249
- allowable_values = ["name_asc", "name_desc", "email_asc", "email_desc"]
250
- if @api_client.config.client_side_validation && opts[:'sort'] && !allowable_values.include?(opts[:'sort'])
251
- fail ArgumentError, "invalid value for \"sort\", must be one of #{allowable_values}"
252
- end
242
+ @api_client.config.logger.debug 'Calling API: UsersApi.get_users ...' if @api_client.config.debugging
253
243
  # resource path
254
244
  local_var_path = '/api/v1/users'
255
245
 
256
246
  # query parameters
257
247
  query_params = opts[:query_params] || {}
258
- query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
259
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
260
- query_params[:'user_id'] = opts[:'user_id'] if !opts[:'user_id'].nil?
261
- query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
262
- query_params[:'email'] = opts[:'email'] if !opts[:'email'].nil?
263
- query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
248
+ query_params[:page_size] = opts[:page_size] unless opts[:page_size].nil?
249
+ query_params[:user_id] = opts[:user_id] unless opts[:user_id].nil?
250
+ query_params[:next_token] = opts[:next_token] unless opts[:next_token].nil?
251
+ query_params[:email] = opts[:email] unless opts[:email].nil?
252
+ query_params[:expand] = opts[:expand] unless opts[:expand].nil?
264
253
 
265
254
  # header parameters
266
255
  header_params = opts[:header_params] || {}
267
256
  # HTTP header 'Accept' (if needed)
268
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
257
+ header_params['Accept'] =
258
+ @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
269
259
 
270
260
  # form parameters
271
261
  form_params = opts[:form_params] || {}
@@ -280,24 +270,24 @@ module KindeApi
280
270
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
281
271
 
282
272
  new_options = opts.merge(
283
- :operation => :"UsersApi.get_users",
284
- :header_params => header_params,
285
- :query_params => query_params,
286
- :form_params => form_params,
287
- :body => post_body,
288
- :auth_names => auth_names,
289
- :return_type => return_type
273
+ operation: :"UsersApi.get_users",
274
+ header_params:,
275
+ query_params:,
276
+ form_params:,
277
+ body: post_body,
278
+ auth_names:,
279
+ return_type:
290
280
  )
291
281
 
292
282
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
293
283
  if @api_client.config.debugging
294
284
  @api_client.config.logger.debug "API called: UsersApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
295
285
  end
296
- return data, status_code, headers
286
+ [data, status_code, headers]
297
287
  end
298
288
 
299
289
  # Refresh User Claims and Invalidate Cache
300
- # Refreshes the user's claims and invalidates the current cache.
290
+ # Refreshes the user's claims and invalidates the current cache.
301
291
  # @param user_id [String] The id of the user whose claims needs to be updated.
302
292
  # @param [Hash] opts the optional parameters
303
293
  # @return [SuccessResponse]
@@ -307,20 +297,19 @@ module KindeApi
307
297
  end
308
298
 
309
299
  # Refresh User Claims and Invalidate Cache
310
- # Refreshes the user&#39;s claims and invalidates the current cache.
300
+ # Refreshes the user&#39;s claims and invalidates the current cache.
311
301
  # @param user_id [String] The id of the user whose claims needs to be updated.
312
302
  # @param [Hash] opts the optional parameters
313
303
  # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
314
304
  def refresh_user_claims_with_http_info(user_id, opts = {})
315
- if @api_client.config.debugging
316
- @api_client.config.logger.debug 'Calling API: UsersApi.refresh_user_claims ...'
317
- end
305
+ @api_client.config.logger.debug 'Calling API: UsersApi.refresh_user_claims ...' if @api_client.config.debugging
318
306
  # verify the required parameter 'user_id' is set
319
307
  if @api_client.config.client_side_validation && user_id.nil?
320
- fail ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.refresh_user_claims"
308
+ raise ArgumentError, "Missing the required parameter 'user_id' when calling UsersApi.refresh_user_claims"
321
309
  end
310
+
322
311
  # resource path
323
- local_var_path = '/api/v1/users/{user_id}/refresh_claims'.sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
312
+ local_var_path = '/api/v1/users/{user_id}/refresh_claims'.sub('{user_id}', CGI.escape(user_id.to_s))
324
313
 
325
314
  # query parameters
326
315
  query_params = opts[:query_params] || {}
@@ -328,7 +317,8 @@ module KindeApi
328
317
  # header parameters
329
318
  header_params = opts[:header_params] || {}
330
319
  # HTTP header 'Accept' (if needed)
331
- header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
320
+ header_params['Accept'] =
321
+ @api_client.select_header_accept(['application/json; charset=utf-8', 'application/json'])
332
322
 
333
323
  # form parameters
334
324
  form_params = opts[:form_params] || {}
@@ -343,63 +333,65 @@ module KindeApi
343
333
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
344
334
 
345
335
  new_options = opts.merge(
346
- :operation => :"UsersApi.refresh_user_claims",
347
- :header_params => header_params,
348
- :query_params => query_params,
349
- :form_params => form_params,
350
- :body => post_body,
351
- :auth_names => auth_names,
352
- :return_type => return_type
336
+ operation: :"UsersApi.refresh_user_claims",
337
+ header_params:,
338
+ query_params:,
339
+ form_params:,
340
+ body: post_body,
341
+ auth_names:,
342
+ return_type:
353
343
  )
354
344
 
355
345
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
356
346
  if @api_client.config.debugging
357
347
  @api_client.config.logger.debug "API called: UsersApi#refresh_user_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
358
348
  end
359
- return data, status_code, headers
349
+ [data, status_code, headers]
360
350
  end
361
351
 
362
352
  # Update User
363
- # Update a user record.
353
+ # Update a user record.
354
+ # @param id [String] The user&#39;s id.
364
355
  # @param update_user_request [UpdateUserRequest] The user to update.
365
356
  # @param [Hash] opts the optional parameters
366
- # @option opts [String] :id The user&#39;s id.
367
357
  # @return [UpdateUserResponse]
368
- def update_user(update_user_request, opts = {})
369
- data, _status_code, _headers = update_user_with_http_info(update_user_request, opts)
358
+ def update_user(id, update_user_request, opts = {})
359
+ data, _status_code, _headers = update_user_with_http_info(id, update_user_request, opts)
370
360
  data
371
361
  end
372
362
 
373
363
  # Update User
374
- # Update a user record.
364
+ # Update a user record.
365
+ # @param id [String] The user&#39;s id.
375
366
  # @param update_user_request [UpdateUserRequest] The user to update.
376
367
  # @param [Hash] opts the optional parameters
377
- # @option opts [String] :id The user&#39;s id.
378
368
  # @return [Array<(UpdateUserResponse, Integer, Hash)>] UpdateUserResponse data, response status code and response headers
379
- def update_user_with_http_info(update_user_request, opts = {})
380
- if @api_client.config.debugging
381
- @api_client.config.logger.debug 'Calling API: UsersApi.update_user ...'
369
+ def update_user_with_http_info(id, update_user_request, opts = {})
370
+ @api_client.config.logger.debug 'Calling API: UsersApi.update_user ...' if @api_client.config.debugging
371
+ # verify the required parameter 'id' is set
372
+ if @api_client.config.client_side_validation && id.nil?
373
+ raise ArgumentError, "Missing the required parameter 'id' when calling UsersApi.update_user"
382
374
  end
383
375
  # verify the required parameter 'update_user_request' is set
384
376
  if @api_client.config.client_side_validation && update_user_request.nil?
385
- fail ArgumentError, "Missing the required parameter 'update_user_request' when calling UsersApi.update_user"
377
+ raise ArgumentError, "Missing the required parameter 'update_user_request' when calling UsersApi.update_user"
386
378
  end
379
+
387
380
  # resource path
388
381
  local_var_path = '/api/v1/user'
389
382
 
390
383
  # query parameters
391
384
  query_params = opts[:query_params] || {}
392
- query_params[:'id'] = opts[:'id'] if !opts[:'id'].nil?
385
+ query_params[:id] = id
393
386
 
394
387
  # header parameters
395
388
  header_params = opts[:header_params] || {}
396
389
  # HTTP header 'Accept' (if needed)
397
- header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
390
+ header_params['Accept'] =
391
+ @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
398
392
  # HTTP header 'Content-Type'
399
393
  content_type = @api_client.select_header_content_type(['application/json'])
400
- if !content_type.nil?
401
- header_params['Content-Type'] = content_type
402
- end
394
+ header_params['Content-Type'] = content_type unless content_type.nil?
403
395
 
404
396
  # form parameters
405
397
  form_params = opts[:form_params] || {}
@@ -414,20 +406,104 @@ module KindeApi
414
406
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
415
407
 
416
408
  new_options = opts.merge(
417
- :operation => :"UsersApi.update_user",
418
- :header_params => header_params,
419
- :query_params => query_params,
420
- :form_params => form_params,
421
- :body => post_body,
422
- :auth_names => auth_names,
423
- :return_type => return_type
409
+ operation: :"UsersApi.update_user",
410
+ header_params:,
411
+ query_params:,
412
+ form_params:,
413
+ body: post_body,
414
+ auth_names:,
415
+ return_type:
424
416
  )
425
417
 
426
418
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
427
419
  if @api_client.config.debugging
428
420
  @api_client.config.logger.debug "API called: UsersApi#update_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
429
421
  end
430
- return data, status_code, headers
422
+ [data, status_code, headers]
423
+ end
424
+
425
+ # Update User Feature Flag Override
426
+ # Update user feature flag override.
427
+ # @param user_id [String] The identifier for the user
428
+ # @param feature_flag_key [String] The identifier for the feature flag
429
+ # @param value [String] Override value
430
+ # @param [Hash] opts the optional parameters
431
+ # @return [SuccessResponse]
432
+ def update_user_feature_flag_override(user_id, feature_flag_key, value, opts = {})
433
+ data, _status_code, _headers = update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value,
434
+ opts)
435
+ data
436
+ end
437
+
438
+ # Update User Feature Flag Override
439
+ # Update user feature flag override.
440
+ # @param user_id [String] The identifier for the user
441
+ # @param feature_flag_key [String] The identifier for the feature flag
442
+ # @param value [String] Override value
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
445
+ def update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value, opts = {})
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug 'Calling API: UsersApi.update_user_feature_flag_override ...'
448
+ end
449
+ # verify the required parameter 'user_id' is set
450
+ if @api_client.config.client_side_validation && user_id.nil?
451
+ raise ArgumentError,
452
+ "Missing the required parameter 'user_id' when calling UsersApi.update_user_feature_flag_override"
453
+ end
454
+ # verify the required parameter 'feature_flag_key' is set
455
+ if @api_client.config.client_side_validation && feature_flag_key.nil?
456
+ raise ArgumentError,
457
+ "Missing the required parameter 'feature_flag_key' when calling UsersApi.update_user_feature_flag_override"
458
+ end
459
+ # verify the required parameter 'value' is set
460
+ if @api_client.config.client_side_validation && value.nil?
461
+ raise ArgumentError,
462
+ "Missing the required parameter 'value' when calling UsersApi.update_user_feature_flag_override"
463
+ end
464
+
465
+ # resource path
466
+ local_var_path = '/api/v1/users/{user_id}/feature_flags/{feature_flag_key}'.sub('{user_id}', CGI.escape(user_id.to_s)).sub(
467
+ '{feature_flag_key}', CGI.escape(feature_flag_key.to_s)
468
+ )
469
+
470
+ # query parameters
471
+ query_params = opts[:query_params] || {}
472
+ query_params[:value] = value
473
+
474
+ # header parameters
475
+ header_params = opts[:header_params] || {}
476
+ # HTTP header 'Accept' (if needed)
477
+ header_params['Accept'] =
478
+ @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
479
+
480
+ # form parameters
481
+ form_params = opts[:form_params] || {}
482
+
483
+ # http body (model)
484
+ post_body = opts[:debug_body]
485
+
486
+ # return_type
487
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
488
+
489
+ # auth_names
490
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
491
+
492
+ new_options = opts.merge(
493
+ operation: :"UsersApi.update_user_feature_flag_override",
494
+ header_params:,
495
+ query_params:,
496
+ form_params:,
497
+ body: post_body,
498
+ auth_names:,
499
+ return_type:
500
+ )
501
+
502
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
503
+ if @api_client.config.debugging
504
+ @api_client.config.logger.debug "API called: UsersApi#update_user_feature_flag_override\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
505
+ end
506
+ [data, status_code, headers]
431
507
  end
432
508
  end
433
509
  end