kinde_sdk 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
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,24 +19,98 @@ module KindeApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
+ # Add Logout Redirect URLs
23
+ # Add additional logout redirect URLs.
24
+ # @param app_id [String] The identifier for the application.
25
+ # @param replace_logout_redirect_urls_request [ReplaceLogoutRedirectURLsRequest] Callback details.
26
+ # @param [Hash] opts the optional parameters
27
+ # @return [SuccessResponse]
28
+ def add_logout_redirect_urls(app_id, replace_logout_redirect_urls_request, opts = {})
29
+ data, _status_code, _headers = add_logout_redirect_urls_with_http_info(app_id, replace_logout_redirect_urls_request, opts)
30
+ data
31
+ end
32
+
33
+ # Add Logout Redirect URLs
34
+ # Add additional logout redirect URLs.
35
+ # @param app_id [String] The identifier for the application.
36
+ # @param replace_logout_redirect_urls_request [ReplaceLogoutRedirectURLsRequest] Callback details.
37
+ # @param [Hash] opts the optional parameters
38
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
39
+ def add_logout_redirect_urls_with_http_info(app_id, replace_logout_redirect_urls_request, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.add_logout_redirect_urls ...'
42
+ end
43
+ # verify the required parameter 'app_id' is set
44
+ if @api_client.config.client_side_validation && app_id.nil?
45
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling CallbacksApi.add_logout_redirect_urls"
46
+ end
47
+ # verify the required parameter 'replace_logout_redirect_urls_request' is set
48
+ if @api_client.config.client_side_validation && replace_logout_redirect_urls_request.nil?
49
+ fail ArgumentError, "Missing the required parameter 'replace_logout_redirect_urls_request' when calling CallbacksApi.add_logout_redirect_urls"
50
+ end
51
+ # resource path
52
+ local_var_path = '/api/v1/applications/{app_id}/auth_logout_urls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
53
+
54
+ # query parameters
55
+ query_params = opts[:query_params] || {}
56
+
57
+ # header parameters
58
+ header_params = opts[:header_params] || {}
59
+ # HTTP header 'Accept' (if needed)
60
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
61
+ # HTTP header 'Content-Type'
62
+ content_type = @api_client.select_header_content_type(['application/json'])
63
+ if !content_type.nil?
64
+ header_params['Content-Type'] = content_type
65
+ end
66
+
67
+ # form parameters
68
+ form_params = opts[:form_params] || {}
69
+
70
+ # http body (model)
71
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_logout_redirect_urls_request)
72
+
73
+ # return_type
74
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
75
+
76
+ # auth_names
77
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
78
+
79
+ new_options = opts.merge(
80
+ :operation => :"CallbacksApi.add_logout_redirect_urls",
81
+ :header_params => header_params,
82
+ :query_params => query_params,
83
+ :form_params => form_params,
84
+ :body => post_body,
85
+ :auth_names => auth_names,
86
+ :return_type => return_type
87
+ )
88
+
89
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
90
+ if @api_client.config.debugging
91
+ @api_client.config.logger.debug "API called: CallbacksApi#add_logout_redirect_urls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
92
+ end
93
+ return data, status_code, headers
94
+ end
95
+
22
96
  # Add Redirect Callback URLs
23
97
  # Add additional redirect callback URLs.
24
98
  # @param app_id [String] The identifier for the application.
25
- # @param urls [Array<String>] Array of callback urls.
99
+ # @param replace_redirect_callback_urls_request [ReplaceRedirectCallbackURLsRequest] Callback details.
26
100
  # @param [Hash] opts the optional parameters
27
- # @return [nil]
28
- def add_redirect_callback_urls(app_id, urls, opts = {})
29
- add_redirect_callback_urls_with_http_info(app_id, urls, opts)
30
- nil
101
+ # @return [SuccessResponse]
102
+ def add_redirect_callback_urls(app_id, replace_redirect_callback_urls_request, opts = {})
103
+ data, _status_code, _headers = add_redirect_callback_urls_with_http_info(app_id, replace_redirect_callback_urls_request, opts)
104
+ data
31
105
  end
32
106
 
33
107
  # Add Redirect Callback URLs
34
108
  # Add additional redirect callback URLs.
35
109
  # @param app_id [String] The identifier for the application.
36
- # @param urls [Array<String>] Array of callback urls.
110
+ # @param replace_redirect_callback_urls_request [ReplaceRedirectCallbackURLsRequest] Callback details.
37
111
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
39
- def add_redirect_callback_urls_with_http_info(app_id, urls, opts = {})
112
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
113
+ def add_redirect_callback_urls_with_http_info(app_id, replace_redirect_callback_urls_request, opts = {})
40
114
  if @api_client.config.debugging
41
115
  @api_client.config.logger.debug 'Calling API: CallbacksApi.add_redirect_callback_urls ...'
42
116
  end
@@ -44,28 +118,34 @@ module KindeApi
44
118
  if @api_client.config.client_side_validation && app_id.nil?
45
119
  fail ArgumentError, "Missing the required parameter 'app_id' when calling CallbacksApi.add_redirect_callback_urls"
46
120
  end
47
- # verify the required parameter 'urls' is set
48
- if @api_client.config.client_side_validation && urls.nil?
49
- fail ArgumentError, "Missing the required parameter 'urls' when calling CallbacksApi.add_redirect_callback_urls"
121
+ # verify the required parameter 'replace_redirect_callback_urls_request' is set
122
+ if @api_client.config.client_side_validation && replace_redirect_callback_urls_request.nil?
123
+ fail ArgumentError, "Missing the required parameter 'replace_redirect_callback_urls_request' when calling CallbacksApi.add_redirect_callback_urls"
50
124
  end
51
125
  # resource path
52
126
  local_var_path = '/api/v1/applications/{app_id}/auth_redirect_urls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
53
127
 
54
128
  # query parameters
55
129
  query_params = opts[:query_params] || {}
56
- query_params[:'urls'] = @api_client.build_collection_param(urls, :multi)
57
130
 
58
131
  # header parameters
59
132
  header_params = opts[:header_params] || {}
133
+ # HTTP header 'Accept' (if needed)
134
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
135
+ # HTTP header 'Content-Type'
136
+ content_type = @api_client.select_header_content_type(['application/json'])
137
+ if !content_type.nil?
138
+ header_params['Content-Type'] = content_type
139
+ end
60
140
 
61
141
  # form parameters
62
142
  form_params = opts[:form_params] || {}
63
143
 
64
144
  # http body (model)
65
- post_body = opts[:debug_body]
145
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_redirect_callback_urls_request)
66
146
 
67
147
  # return_type
68
- return_type = opts[:debug_return_type]
148
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
69
149
 
70
150
  # auth_names
71
151
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
@@ -87,6 +167,146 @@ module KindeApi
87
167
  return data, status_code, headers
88
168
  end
89
169
 
170
+ # Delete Callback URLs
171
+ # Delete callback URLs.
172
+ # @param app_id [String] The identifier for the application.
173
+ # @param urls [String] Urls to delete, comma separated and url encoded.
174
+ # @param [Hash] opts the optional parameters
175
+ # @return [SuccessResponse]
176
+ def delete_callback_urls(app_id, urls, opts = {})
177
+ data, _status_code, _headers = delete_callback_urls_with_http_info(app_id, urls, opts)
178
+ data
179
+ end
180
+
181
+ # Delete Callback URLs
182
+ # Delete callback URLs.
183
+ # @param app_id [String] The identifier for the application.
184
+ # @param urls [String] Urls to delete, comma separated and url encoded.
185
+ # @param [Hash] opts the optional parameters
186
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
187
+ def delete_callback_urls_with_http_info(app_id, urls, opts = {})
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.delete_callback_urls ...'
190
+ end
191
+ # verify the required parameter 'app_id' is set
192
+ if @api_client.config.client_side_validation && app_id.nil?
193
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling CallbacksApi.delete_callback_urls"
194
+ end
195
+ # verify the required parameter 'urls' is set
196
+ if @api_client.config.client_side_validation && urls.nil?
197
+ fail ArgumentError, "Missing the required parameter 'urls' when calling CallbacksApi.delete_callback_urls"
198
+ end
199
+ # resource path
200
+ local_var_path = '/api/v1/applications/{app_id}/auth_redirect_urls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
201
+
202
+ # query parameters
203
+ query_params = opts[:query_params] || {}
204
+ query_params[:'urls'] = urls
205
+
206
+ # header parameters
207
+ header_params = opts[:header_params] || {}
208
+ # HTTP header 'Accept' (if needed)
209
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
210
+
211
+ # form parameters
212
+ form_params = opts[:form_params] || {}
213
+
214
+ # http body (model)
215
+ post_body = opts[:debug_body]
216
+
217
+ # return_type
218
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
219
+
220
+ # auth_names
221
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
222
+
223
+ new_options = opts.merge(
224
+ :operation => :"CallbacksApi.delete_callback_urls",
225
+ :header_params => header_params,
226
+ :query_params => query_params,
227
+ :form_params => form_params,
228
+ :body => post_body,
229
+ :auth_names => auth_names,
230
+ :return_type => return_type
231
+ )
232
+
233
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
234
+ if @api_client.config.debugging
235
+ @api_client.config.logger.debug "API called: CallbacksApi#delete_callback_urls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
236
+ end
237
+ return data, status_code, headers
238
+ end
239
+
240
+ # Delete Logout URLs
241
+ # Delete logout URLs.
242
+ # @param app_id [String] The identifier for the application.
243
+ # @param urls [String] Urls to delete, comma separated and url encoded.
244
+ # @param [Hash] opts the optional parameters
245
+ # @return [SuccessResponse]
246
+ def delete_logout_urls(app_id, urls, opts = {})
247
+ data, _status_code, _headers = delete_logout_urls_with_http_info(app_id, urls, opts)
248
+ data
249
+ end
250
+
251
+ # Delete Logout URLs
252
+ # Delete logout URLs.
253
+ # @param app_id [String] The identifier for the application.
254
+ # @param urls [String] Urls to delete, comma separated and url encoded.
255
+ # @param [Hash] opts the optional parameters
256
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
257
+ def delete_logout_urls_with_http_info(app_id, urls, opts = {})
258
+ if @api_client.config.debugging
259
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.delete_logout_urls ...'
260
+ end
261
+ # verify the required parameter 'app_id' is set
262
+ if @api_client.config.client_side_validation && app_id.nil?
263
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling CallbacksApi.delete_logout_urls"
264
+ end
265
+ # verify the required parameter 'urls' is set
266
+ if @api_client.config.client_side_validation && urls.nil?
267
+ fail ArgumentError, "Missing the required parameter 'urls' when calling CallbacksApi.delete_logout_urls"
268
+ end
269
+ # resource path
270
+ local_var_path = '/api/v1/applications/{app_id}/auth_logout_urls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
271
+
272
+ # query parameters
273
+ query_params = opts[:query_params] || {}
274
+ query_params[:'urls'] = urls
275
+
276
+ # header parameters
277
+ header_params = opts[:header_params] || {}
278
+ # HTTP header 'Accept' (if needed)
279
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
280
+
281
+ # form parameters
282
+ form_params = opts[:form_params] || {}
283
+
284
+ # http body (model)
285
+ post_body = opts[:debug_body]
286
+
287
+ # return_type
288
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
289
+
290
+ # auth_names
291
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
292
+
293
+ new_options = opts.merge(
294
+ :operation => :"CallbacksApi.delete_logout_urls",
295
+ :header_params => header_params,
296
+ :query_params => query_params,
297
+ :form_params => form_params,
298
+ :body => post_body,
299
+ :auth_names => auth_names,
300
+ :return_type => return_type
301
+ )
302
+
303
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug "API called: CallbacksApi#delete_logout_urls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
306
+ end
307
+ return data, status_code, headers
308
+ end
309
+
90
310
  # List Callback URLs
91
311
  # Returns an application's redirect callback URLs.
92
312
  # @param app_id [String] The identifier for the application.
@@ -119,7 +339,7 @@ module KindeApi
119
339
  # header parameters
120
340
  header_params = opts[:header_params] || {}
121
341
  # HTTP header 'Accept' (if needed)
122
- header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
342
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
123
343
 
124
344
  # form parameters
125
345
  form_params = opts[:form_params] || {}
@@ -150,24 +370,161 @@ module KindeApi
150
370
  return data, status_code, headers
151
371
  end
152
372
 
153
- # Replace redirect callback URLs
373
+ # List Logout URLs
374
+ # Returns an application's logout redirect URLs.
375
+ # @param app_id [String] The identifier for the application.
376
+ # @param [Hash] opts the optional parameters
377
+ # @return [LogoutRedirectUrls]
378
+ def get_logout_urls(app_id, opts = {})
379
+ data, _status_code, _headers = get_logout_urls_with_http_info(app_id, opts)
380
+ data
381
+ end
382
+
383
+ # List Logout URLs
384
+ # Returns an application&#39;s logout redirect URLs.
385
+ # @param app_id [String] The identifier for the application.
386
+ # @param [Hash] opts the optional parameters
387
+ # @return [Array<(LogoutRedirectUrls, Integer, Hash)>] LogoutRedirectUrls data, response status code and response headers
388
+ def get_logout_urls_with_http_info(app_id, opts = {})
389
+ if @api_client.config.debugging
390
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.get_logout_urls ...'
391
+ end
392
+ # verify the required parameter 'app_id' is set
393
+ if @api_client.config.client_side_validation && app_id.nil?
394
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling CallbacksApi.get_logout_urls"
395
+ end
396
+ # resource path
397
+ local_var_path = '/api/v1/applications/{app_id}/auth_logout_urls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
398
+
399
+ # query parameters
400
+ query_params = opts[:query_params] || {}
401
+
402
+ # header parameters
403
+ header_params = opts[:header_params] || {}
404
+ # HTTP header 'Accept' (if needed)
405
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
406
+
407
+ # form parameters
408
+ form_params = opts[:form_params] || {}
409
+
410
+ # http body (model)
411
+ post_body = opts[:debug_body]
412
+
413
+ # return_type
414
+ return_type = opts[:debug_return_type] || 'LogoutRedirectUrls'
415
+
416
+ # auth_names
417
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
418
+
419
+ new_options = opts.merge(
420
+ :operation => :"CallbacksApi.get_logout_urls",
421
+ :header_params => header_params,
422
+ :query_params => query_params,
423
+ :form_params => form_params,
424
+ :body => post_body,
425
+ :auth_names => auth_names,
426
+ :return_type => return_type
427
+ )
428
+
429
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
430
+ if @api_client.config.debugging
431
+ @api_client.config.logger.debug "API called: CallbacksApi#get_logout_urls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
432
+ end
433
+ return data, status_code, headers
434
+ end
435
+
436
+ # Replace Logout Redirect URLs
437
+ # Replace all logout redirect URLs.
438
+ # @param app_id [String] The identifier for the application.
439
+ # @param replace_logout_redirect_urls_request [ReplaceLogoutRedirectURLsRequest] Callback details.
440
+ # @param [Hash] opts the optional parameters
441
+ # @return [SuccessResponse]
442
+ def replace_logout_redirect_urls(app_id, replace_logout_redirect_urls_request, opts = {})
443
+ data, _status_code, _headers = replace_logout_redirect_urls_with_http_info(app_id, replace_logout_redirect_urls_request, opts)
444
+ data
445
+ end
446
+
447
+ # Replace Logout Redirect URLs
448
+ # Replace all logout redirect URLs.
449
+ # @param app_id [String] The identifier for the application.
450
+ # @param replace_logout_redirect_urls_request [ReplaceLogoutRedirectURLsRequest] Callback details.
451
+ # @param [Hash] opts the optional parameters
452
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
453
+ def replace_logout_redirect_urls_with_http_info(app_id, replace_logout_redirect_urls_request, opts = {})
454
+ if @api_client.config.debugging
455
+ @api_client.config.logger.debug 'Calling API: CallbacksApi.replace_logout_redirect_urls ...'
456
+ end
457
+ # verify the required parameter 'app_id' is set
458
+ if @api_client.config.client_side_validation && app_id.nil?
459
+ fail ArgumentError, "Missing the required parameter 'app_id' when calling CallbacksApi.replace_logout_redirect_urls"
460
+ end
461
+ # verify the required parameter 'replace_logout_redirect_urls_request' is set
462
+ if @api_client.config.client_side_validation && replace_logout_redirect_urls_request.nil?
463
+ fail ArgumentError, "Missing the required parameter 'replace_logout_redirect_urls_request' when calling CallbacksApi.replace_logout_redirect_urls"
464
+ end
465
+ # resource path
466
+ local_var_path = '/api/v1/applications/{app_id}/auth_logout_urls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
467
+
468
+ # query parameters
469
+ query_params = opts[:query_params] || {}
470
+
471
+ # header parameters
472
+ header_params = opts[:header_params] || {}
473
+ # HTTP header 'Accept' (if needed)
474
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
475
+ # HTTP header 'Content-Type'
476
+ content_type = @api_client.select_header_content_type(['application/json'])
477
+ if !content_type.nil?
478
+ header_params['Content-Type'] = content_type
479
+ end
480
+
481
+ # form parameters
482
+ form_params = opts[:form_params] || {}
483
+
484
+ # http body (model)
485
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_logout_redirect_urls_request)
486
+
487
+ # return_type
488
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
489
+
490
+ # auth_names
491
+ auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
492
+
493
+ new_options = opts.merge(
494
+ :operation => :"CallbacksApi.replace_logout_redirect_urls",
495
+ :header_params => header_params,
496
+ :query_params => query_params,
497
+ :form_params => form_params,
498
+ :body => post_body,
499
+ :auth_names => auth_names,
500
+ :return_type => return_type
501
+ )
502
+
503
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
504
+ if @api_client.config.debugging
505
+ @api_client.config.logger.debug "API called: CallbacksApi#replace_logout_redirect_urls\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
506
+ end
507
+ return data, status_code, headers
508
+ end
509
+
510
+ # Replace Redirect Callback URLs
154
511
  # Replace all redirect callback URLs.
155
512
  # @param app_id [String] The identifier for the application.
156
- # @param urls [Array<String>] Array of callback urls.
513
+ # @param replace_redirect_callback_urls_request [ReplaceRedirectCallbackURLsRequest] Callback details.
157
514
  # @param [Hash] opts the optional parameters
158
- # @return [nil]
159
- def replace_redirect_callback_urls(app_id, urls, opts = {})
160
- replace_redirect_callback_urls_with_http_info(app_id, urls, opts)
161
- nil
515
+ # @return [SuccessResponse]
516
+ def replace_redirect_callback_urls(app_id, replace_redirect_callback_urls_request, opts = {})
517
+ data, _status_code, _headers = replace_redirect_callback_urls_with_http_info(app_id, replace_redirect_callback_urls_request, opts)
518
+ data
162
519
  end
163
520
 
164
- # Replace redirect callback URLs
521
+ # Replace Redirect Callback URLs
165
522
  # Replace all redirect callback URLs.
166
523
  # @param app_id [String] The identifier for the application.
167
- # @param urls [Array<String>] Array of callback urls.
524
+ # @param replace_redirect_callback_urls_request [ReplaceRedirectCallbackURLsRequest] Callback details.
168
525
  # @param [Hash] opts the optional parameters
169
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
170
- def replace_redirect_callback_urls_with_http_info(app_id, urls, opts = {})
526
+ # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
527
+ def replace_redirect_callback_urls_with_http_info(app_id, replace_redirect_callback_urls_request, opts = {})
171
528
  if @api_client.config.debugging
172
529
  @api_client.config.logger.debug 'Calling API: CallbacksApi.replace_redirect_callback_urls ...'
173
530
  end
@@ -175,28 +532,34 @@ module KindeApi
175
532
  if @api_client.config.client_side_validation && app_id.nil?
176
533
  fail ArgumentError, "Missing the required parameter 'app_id' when calling CallbacksApi.replace_redirect_callback_urls"
177
534
  end
178
- # verify the required parameter 'urls' is set
179
- if @api_client.config.client_side_validation && urls.nil?
180
- fail ArgumentError, "Missing the required parameter 'urls' when calling CallbacksApi.replace_redirect_callback_urls"
535
+ # verify the required parameter 'replace_redirect_callback_urls_request' is set
536
+ if @api_client.config.client_side_validation && replace_redirect_callback_urls_request.nil?
537
+ fail ArgumentError, "Missing the required parameter 'replace_redirect_callback_urls_request' when calling CallbacksApi.replace_redirect_callback_urls"
181
538
  end
182
539
  # resource path
183
540
  local_var_path = '/api/v1/applications/{app_id}/auth_redirect_urls'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
184
541
 
185
542
  # query parameters
186
543
  query_params = opts[:query_params] || {}
187
- query_params[:'urls'] = @api_client.build_collection_param(urls, :multi)
188
544
 
189
545
  # header parameters
190
546
  header_params = opts[:header_params] || {}
547
+ # HTTP header 'Accept' (if needed)
548
+ header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
549
+ # HTTP header 'Content-Type'
550
+ content_type = @api_client.select_header_content_type(['application/json'])
551
+ if !content_type.nil?
552
+ header_params['Content-Type'] = content_type
553
+ end
191
554
 
192
555
  # form parameters
193
556
  form_params = opts[:form_params] || {}
194
557
 
195
558
  # http body (model)
196
- post_body = opts[:debug_body]
559
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(replace_redirect_callback_urls_request)
197
560
 
198
561
  # return_type
199
- return_type = opts[:debug_return_type]
562
+ return_type = opts[:debug_return_type] || 'SuccessResponse'
200
563
 
201
564
  # auth_names
202
565
  auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
@@ -19,7 +19,7 @@ module KindeApi
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Delete environment feature flag override
22
+ # Delete Environment Feature Flag Override
23
23
  # Delete environment feature flag override.
24
24
  # @param feature_flag_key [String] The identifier for the feature flag.
25
25
  # @param [Hash] opts the optional parameters
@@ -29,7 +29,7 @@ module KindeApi
29
29
  data
30
30
  end
31
31
 
32
- # Delete environment feature flag override
32
+ # Delete Environment Feature Flag Override
33
33
  # Delete environment feature flag override.
34
34
  # @param feature_flag_key [String] The identifier for the feature flag.
35
35
  # @param [Hash] opts the optional parameters
@@ -82,7 +82,7 @@ module KindeApi
82
82
  return data, status_code, headers
83
83
  end
84
84
 
85
- # Delete all environment feature flag overrides
85
+ # Delete Environment Feature Flag Overrides
86
86
  # Delete all environment feature flag overrides.
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @return [SuccessResponse]
@@ -91,7 +91,7 @@ module KindeApi
91
91
  data
92
92
  end
93
93
 
94
- # Delete all environment feature flag overrides
94
+ # Delete Environment Feature Flag Overrides
95
95
  # Delete all environment feature flag overrides.
96
96
  # @param [Hash] opts the optional parameters
97
97
  # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
@@ -139,7 +139,7 @@ module KindeApi
139
139
  return data, status_code, headers
140
140
  end
141
141
 
142
- # List environment feature flags
142
+ # List Environment Feature Flags
143
143
  # Get environment feature flags.
144
144
  # @param [Hash] opts the optional parameters
145
145
  # @return [GetEnvironmentFeatureFlagsResponse]
@@ -148,7 +148,7 @@ module KindeApi
148
148
  data
149
149
  end
150
150
 
151
- # List environment feature flags
151
+ # List Environment Feature Flags
152
152
  # Get environment feature flags.
153
153
  # @param [Hash] opts the optional parameters
154
154
  # @return [Array<(GetEnvironmentFeatureFlagsResponse, Integer, Hash)>] GetEnvironmentFeatureFlagsResponse data, response status code and response headers
@@ -196,24 +196,24 @@ module KindeApi
196
196
  return data, status_code, headers
197
197
  end
198
198
 
199
- # Update environment feature flag override
199
+ # Update Environment Feature Flag Override
200
200
  # Update environment feature flag override.
201
201
  # @param feature_flag_key [String] The identifier for the feature flag.
202
- # @param value [String] The override value for the feature flag.
202
+ # @param update_environement_feature_flag_override_request [UpdateEnvironementFeatureFlagOverrideRequest] Flag details.
203
203
  # @param [Hash] opts the optional parameters
204
204
  # @return [SuccessResponse]
205
- def update_environement_feature_flag_override(feature_flag_key, value, opts = {})
206
- data, _status_code, _headers = update_environement_feature_flag_override_with_http_info(feature_flag_key, value, opts)
205
+ def update_environement_feature_flag_override(feature_flag_key, update_environement_feature_flag_override_request, opts = {})
206
+ data, _status_code, _headers = update_environement_feature_flag_override_with_http_info(feature_flag_key, update_environement_feature_flag_override_request, opts)
207
207
  data
208
208
  end
209
209
 
210
- # Update environment feature flag override
210
+ # Update Environment Feature Flag Override
211
211
  # Update environment feature flag override.
212
212
  # @param feature_flag_key [String] The identifier for the feature flag.
213
- # @param value [String] The override value for the feature flag.
213
+ # @param update_environement_feature_flag_override_request [UpdateEnvironementFeatureFlagOverrideRequest] Flag details.
214
214
  # @param [Hash] opts the optional parameters
215
215
  # @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
216
- def update_environement_feature_flag_override_with_http_info(feature_flag_key, value, opts = {})
216
+ def update_environement_feature_flag_override_with_http_info(feature_flag_key, update_environement_feature_flag_override_request, opts = {})
217
217
  if @api_client.config.debugging
218
218
  @api_client.config.logger.debug 'Calling API: EnvironmentsApi.update_environement_feature_flag_override ...'
219
219
  end
@@ -221,27 +221,31 @@ module KindeApi
221
221
  if @api_client.config.client_side_validation && feature_flag_key.nil?
222
222
  fail ArgumentError, "Missing the required parameter 'feature_flag_key' when calling EnvironmentsApi.update_environement_feature_flag_override"
223
223
  end
224
- # verify the required parameter 'value' is set
225
- if @api_client.config.client_side_validation && value.nil?
226
- fail ArgumentError, "Missing the required parameter 'value' when calling EnvironmentsApi.update_environement_feature_flag_override"
224
+ # verify the required parameter 'update_environement_feature_flag_override_request' is set
225
+ if @api_client.config.client_side_validation && update_environement_feature_flag_override_request.nil?
226
+ fail ArgumentError, "Missing the required parameter 'update_environement_feature_flag_override_request' when calling EnvironmentsApi.update_environement_feature_flag_override"
227
227
  end
228
228
  # resource path
229
229
  local_var_path = '/api/v1/environment/feature_flags/{feature_flag_key}'.sub('{' + 'feature_flag_key' + '}', CGI.escape(feature_flag_key.to_s))
230
230
 
231
231
  # query parameters
232
232
  query_params = opts[:query_params] || {}
233
- query_params[:'value'] = value
234
233
 
235
234
  # header parameters
236
235
  header_params = opts[:header_params] || {}
237
236
  # HTTP header 'Accept' (if needed)
238
237
  header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
238
+ # HTTP header 'Content-Type'
239
+ content_type = @api_client.select_header_content_type(['application/json'])
240
+ if !content_type.nil?
241
+ header_params['Content-Type'] = content_type
242
+ end
239
243
 
240
244
  # form parameters
241
245
  form_params = opts[:form_params] || {}
242
246
 
243
247
  # http body (model)
244
- post_body = opts[:debug_body]
248
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(update_environement_feature_flag_override_request)
245
249
 
246
250
  # return_type
247
251
  return_type = opts[:debug_return_type] || 'SuccessResponse'