kinde_sdk 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +128 -0
- data/README.md +12 -434
- data/kinde_api/README.md +98 -27
- data/kinde_api/docs/APIsApi.md +356 -0
- data/kinde_api/docs/AddAPIsRequest.md +20 -0
- data/kinde_api/docs/Api.md +28 -0
- data/kinde_api/docs/ApiApplicationsInner.md +24 -0
- data/kinde_api/docs/Apis.md +24 -0
- data/kinde_api/docs/Applications.md +22 -0
- data/kinde_api/docs/ApplicationsApi.md +368 -0
- data/kinde_api/docs/BusinessApi.md +183 -0
- data/kinde_api/docs/CallbacksApi.md +385 -25
- data/kinde_api/docs/CreateApplicationRequest.md +20 -0
- data/kinde_api/docs/CreateApplicationResponse.md +22 -0
- data/kinde_api/docs/CreateApplicationResponseApplication.md +22 -0
- data/kinde_api/docs/CreateFeatureFlagRequest.md +28 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +3 -1
- data/kinde_api/docs/CreateOrganizationUserPermissionRequest.md +18 -0
- data/kinde_api/docs/EnvironmentsApi.md +23 -23
- data/kinde_api/docs/FeatureFlagsApi.md +19 -29
- data/kinde_api/docs/GetApplicationResponse.md +22 -0
- data/kinde_api/docs/GetApplicationResponseApplication.md +26 -0
- data/kinde_api/docs/GetApplicationsResponse.md +2 -2
- data/kinde_api/docs/{GetOrganizationsUsersResponse.md → GetOrganizationUsersResponse.md} +2 -2
- data/kinde_api/docs/GetOrganizationsUserPermissionsResponse.md +22 -0
- data/kinde_api/docs/GetPermissionsResponse.md +24 -0
- data/kinde_api/docs/GetRolesResponse.md +24 -0
- data/kinde_api/docs/GetSubscriberResponse.md +22 -0
- data/kinde_api/docs/GetSubscribersResponse.md +24 -0
- data/kinde_api/docs/IndustriesApi.md +81 -0
- data/kinde_api/docs/LogoutRedirectUrls.md +18 -0
- data/kinde_api/docs/OAuthApi.md +153 -4
- data/kinde_api/docs/Organization.md +3 -1
- data/kinde_api/docs/OrganizationUserPermission.md +26 -0
- data/kinde_api/docs/OrganizationUserPermissionRolesInner.md +20 -0
- data/kinde_api/docs/OrganizationUserRolePermissions.md +22 -0
- data/kinde_api/docs/OrganizationUserRolePermissionsPermissions.md +18 -0
- data/kinde_api/docs/OrganizationsApi.md +328 -32
- data/kinde_api/docs/PermissionsApi.md +84 -14
- data/kinde_api/docs/ReplaceLogoutRedirectURLsRequest.md +18 -0
- data/kinde_api/docs/ReplaceRedirectCallbackURLsRequest.md +18 -0
- data/kinde_api/docs/Role.md +24 -0
- data/kinde_api/docs/Roles.md +2 -0
- data/kinde_api/docs/RolesApi.md +309 -17
- data/kinde_api/docs/RolesPermissionResponseInner.md +24 -0
- data/kinde_api/docs/Subscriber.md +24 -0
- data/kinde_api/docs/SubscribersApi.md +12 -14
- data/kinde_api/docs/SubscribersSubscriber.md +26 -0
- data/kinde_api/docs/TimezonesApi.md +81 -0
- data/kinde_api/docs/TokenErrorResponse.md +20 -0
- data/kinde_api/docs/TokenIntrospect.md +26 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequest.md +18 -0
- data/kinde_api/docs/UpdateAPIApplicationsRequestApplicationsInner.md +20 -0
- data/kinde_api/docs/UpdateApplicationRequest.md +24 -0
- data/kinde_api/docs/UpdateEnvironementFeatureFlagOverrideRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +3 -1
- data/kinde_api/docs/UpdateOrganizationUsersRequest.md +1 -1
- data/kinde_api/docs/UpdateRolePermissionsRequest.md +18 -0
- data/kinde_api/docs/UpdateRolePermissionsRequestPermissionsInner.md +20 -0
- data/kinde_api/docs/UpdateRolePermissionsResponse.md +24 -0
- data/kinde_api/docs/UpdateRolesRequest.md +24 -0
- data/kinde_api/docs/UpdateUserResponse.md +30 -0
- data/kinde_api/docs/User.md +7 -7
- data/kinde_api/docs/UserIdentitiesInner.md +20 -0
- data/kinde_api/docs/UsersApi.md +93 -15
- data/kinde_api/docs/UsersResponse.md +1 -1
- data/kinde_api/docs/UsersResponseUsersInner.md +42 -0
- data/kinde_api/lib/kinde_api/api/apis_api.rb +347 -0
- data/kinde_api/lib/kinde_api/api/applications_api.rb +352 -0
- data/kinde_api/lib/kinde_api/api/business_api.rb +210 -0
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +394 -31
- data/kinde_api/lib/kinde_api/api/environments_api.rb +22 -18
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +20 -61
- data/kinde_api/lib/kinde_api/api/industries_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +141 -2
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +318 -25
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +75 -12
- data/kinde_api/lib/kinde_api/api/roles_api.rb +297 -15
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +8 -11
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +85 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +87 -11
- data/kinde_api/lib/kinde_api/api_client.rb +14 -7
- data/kinde_api/lib/kinde_api/configuration.rb +81 -5
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/api.rb +271 -0
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/apis.rb +250 -0
- data/kinde_api/lib/kinde_api/models/applications.rb +237 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +2 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +264 -0
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +240 -0
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +336 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{application.rb → create_organization_user_permission_request.rb} +13 -19
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error.rb +2 -0
- data/kinde_api/lib/kinde_api/models/error_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +260 -0
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +10 -8
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +2 -0
- data/kinde_api/lib/kinde_api/models/{get_organizations_users_response.rb → get_organization_users_response.rb} +5 -3
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +241 -0
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +251 -0
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +222 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +15 -4
- data/kinde_api/lib/kinde_api/models/organization_user.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +257 -0
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +2 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +237 -0
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +219 -0
- data/kinde_api/lib/kinde_api/models/permissions.rb +2 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +2 -0
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/role.rb +246 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +13 -1
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscriber.rb +246 -0
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +255 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +230 -0
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +262 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +226 -0
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +235 -0
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +254 -0
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +225 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +16 -4
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +3 -1
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +222 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +230 -0
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +260 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +2 -0
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +280 -0
- data/kinde_api/lib/kinde_api/models/user.rb +37 -32
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile.rb +2 -0
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +2 -0
- data/kinde_api/lib/kinde_api/models/users_response.rb +3 -1
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +348 -0
- data/kinde_api/lib/kinde_api.rb +47 -2
- data/kinde_api/spec/api/apis_api_spec.rb +95 -0
- data/kinde_api/spec/api/applications_api_spec.rb +98 -0
- data/kinde_api/spec/api/business_api_spec.rb +75 -0
- data/kinde_api/spec/api/callbacks_api_spec.rb +69 -5
- data/kinde_api/spec/api/environments_api_spec.rb +5 -5
- data/kinde_api/spec/api/feature_flags_api_spec.rb +4 -9
- data/kinde_api/spec/api/industries_api_spec.rb +48 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +28 -1
- data/kinde_api/spec/api/organizations_api_spec.rb +63 -8
- data/kinde_api/spec/api/permissions_api_spec.rb +16 -4
- data/kinde_api/spec/api/roles_api_spec.rb +57 -4
- data/kinde_api/spec/api/subscribers_api_spec.rb +3 -4
- data/kinde_api/spec/api/timezones_api_spec.rb +48 -0
- data/kinde_api/spec/api/users_api_spec.rb +17 -2
- data/kinde_api/spec/api_client_spec.rb +13 -2
- data/kinde_api/spec/models/{application_spec.rb → add_apis_request_spec.rb} +8 -8
- data/kinde_api/spec/models/api_applications_inner_spec.rb +52 -0
- data/kinde_api/spec/models/api_spec.rb +64 -0
- data/kinde_api/spec/models/apis_spec.rb +52 -0
- data/kinde_api/spec/models/applications_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_application_response_application_spec.rb +46 -0
- data/kinde_api/spec/models/create_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +72 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +34 -0
- data/kinde_api/spec/models/get_application_response_application_spec.rb +58 -0
- data/kinde_api/spec/models/get_application_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_applications_response_spec.rb +1 -1
- data/kinde_api/spec/models/{get_organizations_users_response_spec.rb → get_organization_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_roles_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +46 -0
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +52 -0
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +34 -0
- data/kinde_api/spec/models/organization_spec.rb +6 -0
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +40 -0
- data/kinde_api/spec/models/organization_user_permission_spec.rb +58 -0
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +34 -0
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +46 -0
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +34 -0
- data/kinde_api/spec/models/role_spec.rb +52 -0
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +52 -0
- data/kinde_api/spec/models/roles_spec.rb +6 -0
- data/kinde_api/spec/models/subscriber_spec.rb +52 -0
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +58 -0
- data/kinde_api/spec/models/token_error_response_spec.rb +40 -0
- data/kinde_api/spec/models/token_introspect_spec.rb +58 -0
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_application_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +6 -0
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +40 -0
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +34 -0
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +52 -0
- data/kinde_api/spec/models/update_roles_request_spec.rb +52 -0
- data/kinde_api/spec/models/update_user_response_spec.rb +70 -0
- data/kinde_api/spec/models/user_identities_inner_spec.rb +40 -0
- data/kinde_api/spec/models/user_spec.rb +9 -9
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +106 -0
- data/kinde_sdk.gemspec +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/spec/kinde_sdk_spec.rb +0 -46
- metadata +193 -12
- data/kinde_api/docs/Application.md +0 -20
|
@@ -57,7 +57,7 @@ module KindeApi
|
|
|
57
57
|
# HTTP header 'Content-Type'
|
|
58
58
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
59
59
|
if !content_type.nil?
|
|
60
|
-
|
|
60
|
+
header_params['Content-Type'] = content_type
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
# form parameters
|
|
@@ -121,7 +121,7 @@ module KindeApi
|
|
|
121
121
|
# HTTP header 'Content-Type'
|
|
122
122
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
123
123
|
if !content_type.nil?
|
|
124
|
-
|
|
124
|
+
header_params['Content-Type'] = content_type
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
# form parameters
|
|
@@ -153,6 +153,86 @@ module KindeApi
|
|
|
153
153
|
return data, status_code, headers
|
|
154
154
|
end
|
|
155
155
|
|
|
156
|
+
# Add Organization User Permission
|
|
157
|
+
# Add permission to an organization user.
|
|
158
|
+
# @param org_code [String] The organization's code.
|
|
159
|
+
# @param user_id [String] The user's id.
|
|
160
|
+
# @param create_organization_user_permission_request [CreateOrganizationUserPermissionRequest] Permission details.
|
|
161
|
+
# @param [Hash] opts the optional parameters
|
|
162
|
+
# @return [SuccessResponse]
|
|
163
|
+
def create_organization_user_permission(org_code, user_id, create_organization_user_permission_request, opts = {})
|
|
164
|
+
data, _status_code, _headers = create_organization_user_permission_with_http_info(org_code, user_id, create_organization_user_permission_request, opts)
|
|
165
|
+
data
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Add Organization User Permission
|
|
169
|
+
# Add permission to an organization user.
|
|
170
|
+
# @param org_code [String] The organization's code.
|
|
171
|
+
# @param user_id [String] The user's id.
|
|
172
|
+
# @param create_organization_user_permission_request [CreateOrganizationUserPermissionRequest] Permission details.
|
|
173
|
+
# @param [Hash] opts the optional parameters
|
|
174
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
175
|
+
def create_organization_user_permission_with_http_info(org_code, user_id, create_organization_user_permission_request, opts = {})
|
|
176
|
+
if @api_client.config.debugging
|
|
177
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.create_organization_user_permission ...'
|
|
178
|
+
end
|
|
179
|
+
# verify the required parameter 'org_code' is set
|
|
180
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
|
181
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.create_organization_user_permission"
|
|
182
|
+
end
|
|
183
|
+
# verify the required parameter 'user_id' is set
|
|
184
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
185
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.create_organization_user_permission"
|
|
186
|
+
end
|
|
187
|
+
# verify the required parameter 'create_organization_user_permission_request' is set
|
|
188
|
+
if @api_client.config.client_side_validation && create_organization_user_permission_request.nil?
|
|
189
|
+
fail ArgumentError, "Missing the required parameter 'create_organization_user_permission_request' when calling OrganizationsApi.create_organization_user_permission"
|
|
190
|
+
end
|
|
191
|
+
# resource path
|
|
192
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
193
|
+
|
|
194
|
+
# query parameters
|
|
195
|
+
query_params = opts[:query_params] || {}
|
|
196
|
+
|
|
197
|
+
# header parameters
|
|
198
|
+
header_params = opts[:header_params] || {}
|
|
199
|
+
# HTTP header 'Accept' (if needed)
|
|
200
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
201
|
+
# HTTP header 'Content-Type'
|
|
202
|
+
content_type = @api_client.select_header_content_type(['application/json'])
|
|
203
|
+
if !content_type.nil?
|
|
204
|
+
header_params['Content-Type'] = content_type
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# form parameters
|
|
208
|
+
form_params = opts[:form_params] || {}
|
|
209
|
+
|
|
210
|
+
# http body (model)
|
|
211
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(create_organization_user_permission_request)
|
|
212
|
+
|
|
213
|
+
# return_type
|
|
214
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
215
|
+
|
|
216
|
+
# auth_names
|
|
217
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
218
|
+
|
|
219
|
+
new_options = opts.merge(
|
|
220
|
+
:operation => :"OrganizationsApi.create_organization_user_permission",
|
|
221
|
+
:header_params => header_params,
|
|
222
|
+
:query_params => query_params,
|
|
223
|
+
:form_params => form_params,
|
|
224
|
+
:body => post_body,
|
|
225
|
+
:auth_names => auth_names,
|
|
226
|
+
:return_type => return_type
|
|
227
|
+
)
|
|
228
|
+
|
|
229
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
230
|
+
if @api_client.config.debugging
|
|
231
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#create_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
232
|
+
end
|
|
233
|
+
return data, status_code, headers
|
|
234
|
+
end
|
|
235
|
+
|
|
156
236
|
# Add Organization User Role
|
|
157
237
|
# Add role to an organization user.
|
|
158
238
|
# @param org_code [String] The organization's code.
|
|
@@ -201,7 +281,7 @@ module KindeApi
|
|
|
201
281
|
# HTTP header 'Content-Type'
|
|
202
282
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
203
283
|
if !content_type.nil?
|
|
204
|
-
|
|
284
|
+
header_params['Content-Type'] = content_type
|
|
205
285
|
end
|
|
206
286
|
|
|
207
287
|
# form parameters
|
|
@@ -233,7 +313,70 @@ module KindeApi
|
|
|
233
313
|
return data, status_code, headers
|
|
234
314
|
end
|
|
235
315
|
|
|
236
|
-
# Delete
|
|
316
|
+
# Delete Organization
|
|
317
|
+
# Delete an organization.
|
|
318
|
+
# @param org_code [String] The identifier for the organization.
|
|
319
|
+
# @param [Hash] opts the optional parameters
|
|
320
|
+
# @return [nil]
|
|
321
|
+
def delete_organization(org_code, opts = {})
|
|
322
|
+
delete_organization_with_http_info(org_code, opts)
|
|
323
|
+
nil
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
# Delete Organization
|
|
327
|
+
# Delete an organization.
|
|
328
|
+
# @param org_code [String] The identifier for the organization.
|
|
329
|
+
# @param [Hash] opts the optional parameters
|
|
330
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
331
|
+
def delete_organization_with_http_info(org_code, opts = {})
|
|
332
|
+
if @api_client.config.debugging
|
|
333
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization ...'
|
|
334
|
+
end
|
|
335
|
+
# verify the required parameter 'org_code' is set
|
|
336
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
|
337
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization"
|
|
338
|
+
end
|
|
339
|
+
# resource path
|
|
340
|
+
local_var_path = '/api/v1/organization/{org_code}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s))
|
|
341
|
+
|
|
342
|
+
# query parameters
|
|
343
|
+
query_params = opts[:query_params] || {}
|
|
344
|
+
|
|
345
|
+
# header parameters
|
|
346
|
+
header_params = opts[:header_params] || {}
|
|
347
|
+
# HTTP header 'Accept' (if needed)
|
|
348
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
349
|
+
|
|
350
|
+
# form parameters
|
|
351
|
+
form_params = opts[:form_params] || {}
|
|
352
|
+
|
|
353
|
+
# http body (model)
|
|
354
|
+
post_body = opts[:debug_body]
|
|
355
|
+
|
|
356
|
+
# return_type
|
|
357
|
+
return_type = opts[:debug_return_type]
|
|
358
|
+
|
|
359
|
+
# auth_names
|
|
360
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
361
|
+
|
|
362
|
+
new_options = opts.merge(
|
|
363
|
+
:operation => :"OrganizationsApi.delete_organization",
|
|
364
|
+
:header_params => header_params,
|
|
365
|
+
:query_params => query_params,
|
|
366
|
+
:form_params => form_params,
|
|
367
|
+
:body => post_body,
|
|
368
|
+
:auth_names => auth_names,
|
|
369
|
+
:return_type => return_type
|
|
370
|
+
)
|
|
371
|
+
|
|
372
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
373
|
+
if @api_client.config.debugging
|
|
374
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
375
|
+
end
|
|
376
|
+
return data, status_code, headers
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Delete Organization Feature Flag Override
|
|
237
380
|
# Delete organization feature flag override.
|
|
238
381
|
# @param org_code [String] The identifier for the organization.
|
|
239
382
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
|
@@ -244,7 +387,7 @@ module KindeApi
|
|
|
244
387
|
data
|
|
245
388
|
end
|
|
246
389
|
|
|
247
|
-
# Delete
|
|
390
|
+
# Delete Organization Feature Flag Override
|
|
248
391
|
# Delete organization feature flag override.
|
|
249
392
|
# @param org_code [String] The identifier for the organization.
|
|
250
393
|
# @param feature_flag_key [String] The identifier for the feature flag.
|
|
@@ -302,7 +445,7 @@ module KindeApi
|
|
|
302
445
|
return data, status_code, headers
|
|
303
446
|
end
|
|
304
447
|
|
|
305
|
-
# Delete
|
|
448
|
+
# Delete Organization Feature Flag Overrides
|
|
306
449
|
# Delete all organization feature flag overrides.
|
|
307
450
|
# @param org_code [String] The identifier for the organization.
|
|
308
451
|
# @param [Hash] opts the optional parameters
|
|
@@ -312,7 +455,7 @@ module KindeApi
|
|
|
312
455
|
data
|
|
313
456
|
end
|
|
314
457
|
|
|
315
|
-
# Delete
|
|
458
|
+
# Delete Organization Feature Flag Overrides
|
|
316
459
|
# Delete all organization feature flag overrides.
|
|
317
460
|
# @param org_code [String] The identifier for the organization.
|
|
318
461
|
# @param [Hash] opts the optional parameters
|
|
@@ -365,6 +508,81 @@ module KindeApi
|
|
|
365
508
|
return data, status_code, headers
|
|
366
509
|
end
|
|
367
510
|
|
|
511
|
+
# Delete Organization User Permission
|
|
512
|
+
# Delete permission for an organization user.
|
|
513
|
+
# @param org_code [String] The organization's code.
|
|
514
|
+
# @param user_id [String] The user's id.
|
|
515
|
+
# @param permission_id [String] The permission id.
|
|
516
|
+
# @param [Hash] opts the optional parameters
|
|
517
|
+
# @return [SuccessResponse]
|
|
518
|
+
def delete_organization_user_permission(org_code, user_id, permission_id, opts = {})
|
|
519
|
+
data, _status_code, _headers = delete_organization_user_permission_with_http_info(org_code, user_id, permission_id, opts)
|
|
520
|
+
data
|
|
521
|
+
end
|
|
522
|
+
|
|
523
|
+
# Delete Organization User Permission
|
|
524
|
+
# Delete permission for an organization user.
|
|
525
|
+
# @param org_code [String] The organization's code.
|
|
526
|
+
# @param user_id [String] The user's id.
|
|
527
|
+
# @param permission_id [String] The permission id.
|
|
528
|
+
# @param [Hash] opts the optional parameters
|
|
529
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
530
|
+
def delete_organization_user_permission_with_http_info(org_code, user_id, permission_id, opts = {})
|
|
531
|
+
if @api_client.config.debugging
|
|
532
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.delete_organization_user_permission ...'
|
|
533
|
+
end
|
|
534
|
+
# verify the required parameter 'org_code' is set
|
|
535
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
|
536
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.delete_organization_user_permission"
|
|
537
|
+
end
|
|
538
|
+
# verify the required parameter 'user_id' is set
|
|
539
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
540
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.delete_organization_user_permission"
|
|
541
|
+
end
|
|
542
|
+
# verify the required parameter 'permission_id' is set
|
|
543
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
|
544
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling OrganizationsApi.delete_organization_user_permission"
|
|
545
|
+
end
|
|
546
|
+
# resource path
|
|
547
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions/{permission_id}'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s)).sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
|
548
|
+
|
|
549
|
+
# query parameters
|
|
550
|
+
query_params = opts[:query_params] || {}
|
|
551
|
+
|
|
552
|
+
# header parameters
|
|
553
|
+
header_params = opts[:header_params] || {}
|
|
554
|
+
# HTTP header 'Accept' (if needed)
|
|
555
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
556
|
+
|
|
557
|
+
# form parameters
|
|
558
|
+
form_params = opts[:form_params] || {}
|
|
559
|
+
|
|
560
|
+
# http body (model)
|
|
561
|
+
post_body = opts[:debug_body]
|
|
562
|
+
|
|
563
|
+
# return_type
|
|
564
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
565
|
+
|
|
566
|
+
# auth_names
|
|
567
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
568
|
+
|
|
569
|
+
new_options = opts.merge(
|
|
570
|
+
:operation => :"OrganizationsApi.delete_organization_user_permission",
|
|
571
|
+
:header_params => header_params,
|
|
572
|
+
:query_params => query_params,
|
|
573
|
+
:form_params => form_params,
|
|
574
|
+
:body => post_body,
|
|
575
|
+
:auth_names => auth_names,
|
|
576
|
+
:return_type => return_type
|
|
577
|
+
)
|
|
578
|
+
|
|
579
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
580
|
+
if @api_client.config.debugging
|
|
581
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#delete_organization_user_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
582
|
+
end
|
|
583
|
+
return data, status_code, headers
|
|
584
|
+
end
|
|
585
|
+
|
|
368
586
|
# Delete Organization User Role
|
|
369
587
|
# Delete role for an organization user.
|
|
370
588
|
# @param org_code [String] The organization's code.
|
|
@@ -500,7 +718,7 @@ module KindeApi
|
|
|
500
718
|
return data, status_code, headers
|
|
501
719
|
end
|
|
502
720
|
|
|
503
|
-
# List
|
|
721
|
+
# List Organization Feature Flags
|
|
504
722
|
# Get all organization feature flags.
|
|
505
723
|
# @param org_code [String] The identifier for the organization.
|
|
506
724
|
# @param [Hash] opts the optional parameters
|
|
@@ -510,7 +728,7 @@ module KindeApi
|
|
|
510
728
|
data
|
|
511
729
|
end
|
|
512
730
|
|
|
513
|
-
# List
|
|
731
|
+
# List Organization Feature Flags
|
|
514
732
|
# Get all organization feature flags.
|
|
515
733
|
# @param org_code [String] The identifier for the organization.
|
|
516
734
|
# @param [Hash] opts the optional parameters
|
|
@@ -563,6 +781,78 @@ module KindeApi
|
|
|
563
781
|
return data, status_code, headers
|
|
564
782
|
end
|
|
565
783
|
|
|
784
|
+
# List Organization User Permissions
|
|
785
|
+
# Get permissions for an organization user.
|
|
786
|
+
# @param org_code [String] The organization's code.
|
|
787
|
+
# @param user_id [String] The user's id.
|
|
788
|
+
# @param [Hash] opts the optional parameters
|
|
789
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"roles\".
|
|
790
|
+
# @return [GetOrganizationsUserPermissionsResponse]
|
|
791
|
+
def get_organization_user_permissions(org_code, user_id, opts = {})
|
|
792
|
+
data, _status_code, _headers = get_organization_user_permissions_with_http_info(org_code, user_id, opts)
|
|
793
|
+
data
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
# List Organization User Permissions
|
|
797
|
+
# Get permissions for an organization user.
|
|
798
|
+
# @param org_code [String] The organization's code.
|
|
799
|
+
# @param user_id [String] The user's id.
|
|
800
|
+
# @param [Hash] opts the optional parameters
|
|
801
|
+
# @option opts [String] :expand Specify additional data to retrieve. Use \"roles\".
|
|
802
|
+
# @return [Array<(GetOrganizationsUserPermissionsResponse, Integer, Hash)>] GetOrganizationsUserPermissionsResponse data, response status code and response headers
|
|
803
|
+
def get_organization_user_permissions_with_http_info(org_code, user_id, opts = {})
|
|
804
|
+
if @api_client.config.debugging
|
|
805
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_user_permissions ...'
|
|
806
|
+
end
|
|
807
|
+
# verify the required parameter 'org_code' is set
|
|
808
|
+
if @api_client.config.client_side_validation && org_code.nil?
|
|
809
|
+
fail ArgumentError, "Missing the required parameter 'org_code' when calling OrganizationsApi.get_organization_user_permissions"
|
|
810
|
+
end
|
|
811
|
+
# verify the required parameter 'user_id' is set
|
|
812
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
|
813
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.get_organization_user_permissions"
|
|
814
|
+
end
|
|
815
|
+
# resource path
|
|
816
|
+
local_var_path = '/api/v1/organizations/{org_code}/users/{user_id}/permissions'.sub('{' + 'org_code' + '}', CGI.escape(org_code.to_s)).sub('{' + 'user_id' + '}', CGI.escape(user_id.to_s))
|
|
817
|
+
|
|
818
|
+
# query parameters
|
|
819
|
+
query_params = opts[:query_params] || {}
|
|
820
|
+
query_params[:'expand'] = opts[:'expand'] if !opts[:'expand'].nil?
|
|
821
|
+
|
|
822
|
+
# header parameters
|
|
823
|
+
header_params = opts[:header_params] || {}
|
|
824
|
+
# HTTP header 'Accept' (if needed)
|
|
825
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
826
|
+
|
|
827
|
+
# form parameters
|
|
828
|
+
form_params = opts[:form_params] || {}
|
|
829
|
+
|
|
830
|
+
# http body (model)
|
|
831
|
+
post_body = opts[:debug_body]
|
|
832
|
+
|
|
833
|
+
# return_type
|
|
834
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationsUserPermissionsResponse'
|
|
835
|
+
|
|
836
|
+
# auth_names
|
|
837
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
838
|
+
|
|
839
|
+
new_options = opts.merge(
|
|
840
|
+
:operation => :"OrganizationsApi.get_organization_user_permissions",
|
|
841
|
+
:header_params => header_params,
|
|
842
|
+
:query_params => query_params,
|
|
843
|
+
:form_params => form_params,
|
|
844
|
+
:body => post_body,
|
|
845
|
+
:auth_names => auth_names,
|
|
846
|
+
:return_type => return_type
|
|
847
|
+
)
|
|
848
|
+
|
|
849
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
850
|
+
if @api_client.config.debugging
|
|
851
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#get_organization_user_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
852
|
+
end
|
|
853
|
+
return data, status_code, headers
|
|
854
|
+
end
|
|
855
|
+
|
|
566
856
|
# List Organization User Roles
|
|
567
857
|
# Get roles for an organization user.
|
|
568
858
|
# @param org_code [String] The organization's code.
|
|
@@ -639,8 +929,9 @@ module KindeApi
|
|
|
639
929
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
640
930
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
641
931
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
642
|
-
# @option opts [String] :permissions Filter by user permissions
|
|
643
|
-
# @
|
|
932
|
+
# @option opts [String] :permissions Filter by user permissions comma separated (where all match)
|
|
933
|
+
# @option opts [String] :roles Filter by user roles comma separated (where all match)
|
|
934
|
+
# @return [GetOrganizationUsersResponse]
|
|
644
935
|
def get_organization_users(org_code, opts = {})
|
|
645
936
|
data, _status_code, _headers = get_organization_users_with_http_info(org_code, opts)
|
|
646
937
|
data
|
|
@@ -653,8 +944,9 @@ module KindeApi
|
|
|
653
944
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
654
945
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
655
946
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
656
|
-
# @option opts [String] :permissions Filter by user permissions
|
|
657
|
-
# @
|
|
947
|
+
# @option opts [String] :permissions Filter by user permissions comma separated (where all match)
|
|
948
|
+
# @option opts [String] :roles Filter by user roles comma separated (where all match)
|
|
949
|
+
# @return [Array<(GetOrganizationUsersResponse, Integer, Hash)>] GetOrganizationUsersResponse data, response status code and response headers
|
|
658
950
|
def get_organization_users_with_http_info(org_code, opts = {})
|
|
659
951
|
if @api_client.config.debugging
|
|
660
952
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.get_organization_users ...'
|
|
@@ -676,6 +968,7 @@ module KindeApi
|
|
|
676
968
|
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
677
969
|
query_params[:'next_token'] = opts[:'next_token'] if !opts[:'next_token'].nil?
|
|
678
970
|
query_params[:'permissions'] = opts[:'permissions'] if !opts[:'permissions'].nil?
|
|
971
|
+
query_params[:'roles'] = opts[:'roles'] if !opts[:'roles'].nil?
|
|
679
972
|
|
|
680
973
|
# header parameters
|
|
681
974
|
header_params = opts[:header_params] || {}
|
|
@@ -689,7 +982,7 @@ module KindeApi
|
|
|
689
982
|
post_body = opts[:debug_body]
|
|
690
983
|
|
|
691
984
|
# return_type
|
|
692
|
-
return_type = opts[:debug_return_type] || '
|
|
985
|
+
return_type = opts[:debug_return_type] || 'GetOrganizationUsersResponse'
|
|
693
986
|
|
|
694
987
|
# auth_names
|
|
695
988
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
@@ -855,10 +1148,10 @@ module KindeApi
|
|
|
855
1148
|
# @param org_code [String] The identifier for the organization.
|
|
856
1149
|
# @param [Hash] opts the optional parameters
|
|
857
1150
|
# @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
|
|
858
|
-
# @return [
|
|
1151
|
+
# @return [SuccessResponse]
|
|
859
1152
|
def update_organization(org_code, opts = {})
|
|
860
|
-
update_organization_with_http_info(org_code, opts)
|
|
861
|
-
|
|
1153
|
+
data, _status_code, _headers = update_organization_with_http_info(org_code, opts)
|
|
1154
|
+
data
|
|
862
1155
|
end
|
|
863
1156
|
|
|
864
1157
|
# Update Organization
|
|
@@ -866,7 +1159,7 @@ module KindeApi
|
|
|
866
1159
|
# @param org_code [String] The identifier for the organization.
|
|
867
1160
|
# @param [Hash] opts the optional parameters
|
|
868
1161
|
# @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
|
|
869
|
-
# @return [Array<(
|
|
1162
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
870
1163
|
def update_organization_with_http_info(org_code, opts = {})
|
|
871
1164
|
if @api_client.config.debugging
|
|
872
1165
|
@api_client.config.logger.debug 'Calling API: OrganizationsApi.update_organization ...'
|
|
@@ -888,7 +1181,7 @@ module KindeApi
|
|
|
888
1181
|
# HTTP header 'Content-Type'
|
|
889
1182
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
890
1183
|
if !content_type.nil?
|
|
891
|
-
|
|
1184
|
+
header_params['Content-Type'] = content_type
|
|
892
1185
|
end
|
|
893
1186
|
|
|
894
1187
|
# form parameters
|
|
@@ -898,7 +1191,7 @@ module KindeApi
|
|
|
898
1191
|
post_body = opts[:debug_body] || @api_client.object_to_http_body(opts[:'update_organization_request'])
|
|
899
1192
|
|
|
900
1193
|
# return_type
|
|
901
|
-
return_type = opts[:debug_return_type]
|
|
1194
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
902
1195
|
|
|
903
1196
|
# auth_names
|
|
904
1197
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
@@ -920,7 +1213,7 @@ module KindeApi
|
|
|
920
1213
|
return data, status_code, headers
|
|
921
1214
|
end
|
|
922
1215
|
|
|
923
|
-
# Update
|
|
1216
|
+
# Update Organization Feature Flag Override
|
|
924
1217
|
# Update organization feature flag override.
|
|
925
1218
|
# @param org_code [String] The identifier for the organization
|
|
926
1219
|
# @param feature_flag_key [String] The identifier for the feature flag
|
|
@@ -932,7 +1225,7 @@ module KindeApi
|
|
|
932
1225
|
data
|
|
933
1226
|
end
|
|
934
1227
|
|
|
935
|
-
# Update
|
|
1228
|
+
# Update Organization Feature Flag Override
|
|
936
1229
|
# Update organization feature flag override.
|
|
937
1230
|
# @param org_code [String] The identifier for the organization
|
|
938
1231
|
# @param feature_flag_key [String] The identifier for the feature flag
|
|
@@ -996,7 +1289,7 @@ module KindeApi
|
|
|
996
1289
|
return data, status_code, headers
|
|
997
1290
|
end
|
|
998
1291
|
|
|
999
|
-
# Update
|
|
1292
|
+
# Update Organization Users
|
|
1000
1293
|
# Update users that belong to an organization.
|
|
1001
1294
|
# @param org_code [String] The organization's code.
|
|
1002
1295
|
# @param [Hash] opts the optional parameters
|
|
@@ -1007,7 +1300,7 @@ module KindeApi
|
|
|
1007
1300
|
data
|
|
1008
1301
|
end
|
|
1009
1302
|
|
|
1010
|
-
# Update
|
|
1303
|
+
# Update Organization Users
|
|
1011
1304
|
# Update users that belong to an organization.
|
|
1012
1305
|
# @param org_code [String] The organization's code.
|
|
1013
1306
|
# @param [Hash] opts the optional parameters
|
|
@@ -1034,7 +1327,7 @@ module KindeApi
|
|
|
1034
1327
|
# HTTP header 'Content-Type'
|
|
1035
1328
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
1036
1329
|
if !content_type.nil?
|
|
1037
|
-
|
|
1330
|
+
header_params['Content-Type'] = content_type
|
|
1038
1331
|
end
|
|
1039
1332
|
|
|
1040
1333
|
# form parameters
|
|
@@ -19,8 +19,8 @@ module KindeApi
|
|
|
19
19
|
def initialize(api_client = ApiClient.default)
|
|
20
20
|
@api_client = api_client
|
|
21
21
|
end
|
|
22
|
-
# Create
|
|
23
|
-
# Create permission.
|
|
22
|
+
# Create Permission
|
|
23
|
+
# Create a new permission.
|
|
24
24
|
# @param [Hash] opts the optional parameters
|
|
25
25
|
# @option opts [CreatePermissionRequest] :create_permission_request Permission details.
|
|
26
26
|
# @return [SuccessResponse]
|
|
@@ -29,8 +29,8 @@ module KindeApi
|
|
|
29
29
|
data
|
|
30
30
|
end
|
|
31
31
|
|
|
32
|
-
# Create
|
|
33
|
-
# Create permission.
|
|
32
|
+
# Create Permission
|
|
33
|
+
# Create a new permission.
|
|
34
34
|
# @param [Hash] opts the optional parameters
|
|
35
35
|
# @option opts [CreatePermissionRequest] :create_permission_request Permission details.
|
|
36
36
|
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
@@ -51,7 +51,7 @@ module KindeApi
|
|
|
51
51
|
# HTTP header 'Content-Type'
|
|
52
52
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
53
53
|
if !content_type.nil?
|
|
54
|
-
|
|
54
|
+
header_params['Content-Type'] = content_type
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
# form parameters
|
|
@@ -83,13 +83,76 @@ module KindeApi
|
|
|
83
83
|
return data, status_code, headers
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
# Delete Permission
|
|
87
|
+
# Delete permission
|
|
88
|
+
# @param permission_id [String] The identifier for the permission.
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [SuccessResponse]
|
|
91
|
+
def delete_permission(permission_id, opts = {})
|
|
92
|
+
data, _status_code, _headers = delete_permission_with_http_info(permission_id, opts)
|
|
93
|
+
data
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete Permission
|
|
97
|
+
# Delete permission
|
|
98
|
+
# @param permission_id [String] The identifier for the permission.
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(SuccessResponse, Integer, Hash)>] SuccessResponse data, response status code and response headers
|
|
101
|
+
def delete_permission_with_http_info(permission_id, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: PermissionsApi.delete_permission ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'permission_id' is set
|
|
106
|
+
if @api_client.config.client_side_validation && permission_id.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'permission_id' when calling PermissionsApi.delete_permission"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '/api/v1/permissions/{permission_id}'.sub('{' + 'permission_id' + '}', CGI.escape(permission_id.to_s))
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
# HTTP header 'Accept' (if needed)
|
|
118
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
119
|
+
|
|
120
|
+
# form parameters
|
|
121
|
+
form_params = opts[:form_params] || {}
|
|
122
|
+
|
|
123
|
+
# http body (model)
|
|
124
|
+
post_body = opts[:debug_body]
|
|
125
|
+
|
|
126
|
+
# return_type
|
|
127
|
+
return_type = opts[:debug_return_type] || 'SuccessResponse'
|
|
128
|
+
|
|
129
|
+
# auth_names
|
|
130
|
+
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
131
|
+
|
|
132
|
+
new_options = opts.merge(
|
|
133
|
+
:operation => :"PermissionsApi.delete_permission",
|
|
134
|
+
:header_params => header_params,
|
|
135
|
+
:query_params => query_params,
|
|
136
|
+
:form_params => form_params,
|
|
137
|
+
:body => post_body,
|
|
138
|
+
:auth_names => auth_names,
|
|
139
|
+
:return_type => return_type
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
143
|
+
if @api_client.config.debugging
|
|
144
|
+
@api_client.config.logger.debug "API called: PermissionsApi#delete_permission\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
145
|
+
end
|
|
146
|
+
return data, status_code, headers
|
|
147
|
+
end
|
|
148
|
+
|
|
86
149
|
# List Permissions
|
|
87
150
|
# The returned list can be sorted by permission name or permission ID 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.
|
|
88
151
|
# @param [Hash] opts the optional parameters
|
|
89
152
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
90
153
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
91
154
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
92
|
-
# @return [
|
|
155
|
+
# @return [GetPermissionsResponse]
|
|
93
156
|
def get_permissions(opts = {})
|
|
94
157
|
data, _status_code, _headers = get_permissions_with_http_info(opts)
|
|
95
158
|
data
|
|
@@ -101,7 +164,7 @@ module KindeApi
|
|
|
101
164
|
# @option opts [String] :sort Field and order to sort the result by.
|
|
102
165
|
# @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
|
|
103
166
|
# @option opts [String] :next_token A string to get the next page of results if there are more results.
|
|
104
|
-
# @return [Array<(
|
|
167
|
+
# @return [Array<(GetPermissionsResponse, Integer, Hash)>] GetPermissionsResponse data, response status code and response headers
|
|
105
168
|
def get_permissions_with_http_info(opts = {})
|
|
106
169
|
if @api_client.config.debugging
|
|
107
170
|
@api_client.config.logger.debug 'Calling API: PermissionsApi.get_permissions ...'
|
|
@@ -122,7 +185,7 @@ module KindeApi
|
|
|
122
185
|
# header parameters
|
|
123
186
|
header_params = opts[:header_params] || {}
|
|
124
187
|
# HTTP header 'Accept' (if needed)
|
|
125
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json; charset=utf-8'])
|
|
188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/json; charset=utf-8'])
|
|
126
189
|
|
|
127
190
|
# form parameters
|
|
128
191
|
form_params = opts[:form_params] || {}
|
|
@@ -131,7 +194,7 @@ module KindeApi
|
|
|
131
194
|
post_body = opts[:debug_body]
|
|
132
195
|
|
|
133
196
|
# return_type
|
|
134
|
-
return_type = opts[:debug_return_type] || '
|
|
197
|
+
return_type = opts[:debug_return_type] || 'GetPermissionsResponse'
|
|
135
198
|
|
|
136
199
|
# auth_names
|
|
137
200
|
auth_names = opts[:debug_auth_names] || ['kindeBearerAuth']
|
|
@@ -153,7 +216,7 @@ module KindeApi
|
|
|
153
216
|
return data, status_code, headers
|
|
154
217
|
end
|
|
155
218
|
|
|
156
|
-
# Update
|
|
219
|
+
# Update Permission
|
|
157
220
|
# Update permission
|
|
158
221
|
# @param permission_id [Integer] The identifier for the permission.
|
|
159
222
|
# @param [Hash] opts the optional parameters
|
|
@@ -164,7 +227,7 @@ module KindeApi
|
|
|
164
227
|
data
|
|
165
228
|
end
|
|
166
229
|
|
|
167
|
-
# Update
|
|
230
|
+
# Update Permission
|
|
168
231
|
# Update permission
|
|
169
232
|
# @param permission_id [Integer] The identifier for the permission.
|
|
170
233
|
# @param [Hash] opts the optional parameters
|
|
@@ -191,7 +254,7 @@ module KindeApi
|
|
|
191
254
|
# HTTP header 'Content-Type'
|
|
192
255
|
content_type = @api_client.select_header_content_type(['application/json'])
|
|
193
256
|
if !content_type.nil?
|
|
194
|
-
|
|
257
|
+
header_params['Content-Type'] = content_type
|
|
195
258
|
end
|
|
196
259
|
|
|
197
260
|
# form parameters
|