kinde_sdk 1.2.2 → 1.3.0
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/kinde_api/README.md +3 -1
- data/kinde_api/docs/ConnectedAppsApi.md +12 -6
- data/kinde_api/docs/CreateOrganizationRequest.md +14 -2
- data/kinde_api/docs/CreateUserRequest.md +2 -0
- data/kinde_api/docs/OrganizationsApi.md +6 -8
- data/kinde_api/docs/Permissions.md +3 -1
- data/kinde_api/docs/RolesApi.md +2 -2
- data/kinde_api/docs/UpdateOrganizationRequest.md +13 -1
- data/kinde_api/docs/UsersApi.md +80 -10
- data/kinde_api/lib/kinde_api/api/apis_api.rb +95 -96
- data/kinde_api/lib/kinde_api/api/applications_api.rb +95 -85
- data/kinde_api/lib/kinde_api/api/business_api.rb +58 -56
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +164 -144
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +66 -54
- data/kinde_api/lib/kinde_api/api/environments_api.rb +71 -58
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +82 -62
- data/kinde_api/lib/kinde_api/api/industries_api.rb +22 -23
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +63 -72
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +376 -287
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +72 -68
- data/kinde_api/lib/kinde_api/api/roles_api.rb +137 -134
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +58 -57
- data/kinde_api/lib/kinde_api/api/timezones_api.rb +22 -23
- data/kinde_api/lib/kinde_api/api/users_api.rb +204 -128
- data/kinde_api/lib/kinde_api/api_client.rb +68 -79
- data/kinde_api/lib/kinde_api/api_error.rb +16 -16
- data/kinde_api/lib/kinde_api/configuration.rb +23 -100
- data/kinde_api/lib/kinde_api/models/add_apis_request.rb +49 -52
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +51 -53
- data/kinde_api/lib/kinde_api/models/add_organization_users_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/api.rb +61 -70
- data/kinde_api/lib/kinde_api/models/api_applications_inner.rb +54 -63
- data/kinde_api/lib/kinde_api/models/api_result.rb +40 -38
- data/kinde_api/lib/kinde_api/models/apis.rb +52 -56
- data/kinde_api/lib/kinde_api/models/applications.rb +50 -55
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +45 -44
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +45 -44
- data/kinde_api/lib/kinde_api/models/create_application_request.rb +51 -49
- data/kinde_api/lib/kinde_api/models/create_application_response.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_application_response_application.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_feature_flag_request.rb +77 -87
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +125 -83
- data/kinde_api/lib/kinde_api/models/create_organization_response.rb +50 -55
- data/kinde_api/lib/kinde_api/models/create_organization_response_organization.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_organization_user_permission_request.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +49 -50
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +53 -56
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +55 -47
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +51 -49
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +41 -38
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +45 -44
- data/kinde_api/lib/kinde_api/models/create_user_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/error.rb +44 -44
- data/kinde_api/lib/kinde_api/models/error_response.rb +42 -40
- data/kinde_api/lib/kinde_api/models/get_application_response.rb +49 -50
- data/kinde_api/lib/kinde_api/models/get_application_response_application.rb +57 -62
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +52 -52
- data/kinde_api/lib/kinde_api/models/get_organization_users_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organizations_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_organizations_user_permissions_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_permissions_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +42 -40
- data/kinde_api/lib/kinde_api/models/get_roles_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/get_subscriber_response.rb +50 -52
- data/kinde_api/lib/kinde_api/models/get_subscribers_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/logout_redirect_urls.rb +42 -40
- data/kinde_api/lib/kinde_api/models/organization.rb +54 -63
- data/kinde_api/lib/kinde_api/models/organization_user.rb +63 -81
- data/kinde_api/lib/kinde_api/models/organization_user_permission.rb +59 -73
- data/kinde_api/lib/kinde_api/models/organization_user_permission_roles_inner.rb +46 -47
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +50 -55
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions.rb +50 -55
- data/kinde_api/lib/kinde_api/models/organization_user_role_permissions_permissions.rb +41 -38
- data/kinde_api/lib/kinde_api/models/permissions.rb +59 -52
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +42 -40
- data/kinde_api/lib/kinde_api/models/replace_logout_redirect_urls_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/replace_redirect_callback_urls_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/role.rb +53 -63
- data/kinde_api/lib/kinde_api/models/roles.rb +52 -56
- data/kinde_api/lib/kinde_api/models/roles_permission_response_inner.rb +54 -63
- data/kinde_api/lib/kinde_api/models/subscriber.rb +54 -63
- data/kinde_api/lib/kinde_api/models/subscribers_subscriber.rb +58 -71
- data/kinde_api/lib/kinde_api/models/success_response.rb +46 -47
- data/kinde_api/lib/kinde_api/models/token_error_response.rb +45 -44
- data/kinde_api/lib/kinde_api/models/token_introspect.rb +58 -63
- data/kinde_api/lib/kinde_api/models/update_api_applications_request.rb +44 -42
- data/kinde_api/lib/kinde_api/models/update_api_applications_request_applications_inner.rb +47 -46
- data/kinde_api/lib/kinde_api/models/update_application_request.rb +55 -59
- data/kinde_api/lib/kinde_api/models/update_environement_feature_flag_override_request.rb +43 -40
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +115 -75
- data/kinde_api/lib/kinde_api/models/update_organization_users_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +55 -59
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +57 -67
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request.rb +42 -40
- data/kinde_api/lib/kinde_api/models/update_role_permissions_request_permissions_inner.rb +45 -44
- data/kinde_api/lib/kinde_api/models/update_role_permissions_response.rb +56 -66
- data/kinde_api/lib/kinde_api/models/update_roles_request.rb +56 -61
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +53 -56
- data/kinde_api/lib/kinde_api/models/update_user_response.rb +66 -73
- data/kinde_api/lib/kinde_api/models/user.rb +97 -118
- data/kinde_api/lib/kinde_api/models/user_identities_inner.rb +46 -47
- data/kinde_api/lib/kinde_api/models/user_identity.rb +45 -44
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +41 -38
- data/kinde_api/lib/kinde_api/models/user_profile.rb +62 -68
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +74 -86
- data/kinde_api/lib/kinde_api/models/users_response.rb +54 -57
- data/kinde_api/lib/kinde_api/models/users_response_users_inner.rb +98 -118
- data/kinde_api/lib/kinde_api/version.rb +11 -11
- data/kinde_api/lib/kinde_api.rb +30 -20
- data/kinde_api/spec/api/apis_api_spec.rb +20 -21
- data/kinde_api/spec/api/applications_api_spec.rb +18 -19
- data/kinde_api/spec/api/business_api_spec.rb +12 -13
- data/kinde_api/spec/api/callbacks_api_spec.rb +27 -28
- data/kinde_api/spec/api/connected_apps_api_spec.rb +16 -15
- data/kinde_api/spec/api/environments_api_spec.rb +14 -15
- data/kinde_api/spec/api/feature_flags_api_spec.rb +13 -14
- data/kinde_api/spec/api/industries_api_spec.rb +12 -13
- data/kinde_api/spec/api/o_auth_api_spec.rb +16 -17
- data/kinde_api/spec/api/organizations_api_spec.rb +34 -35
- data/kinde_api/spec/api/permissions_api_spec.rb +15 -16
- data/kinde_api/spec/api/roles_api_spec.rb +20 -21
- data/kinde_api/spec/api/subscribers_api_spec.rb +15 -16
- data/kinde_api/spec/api/timezones_api_spec.rb +12 -13
- data/kinde_api/spec/api/users_api_spec.rb +36 -24
- data/kinde_api/spec/api_client_spec.rb +21 -27
- data/kinde_api/spec/configuration_spec.rb +11 -11
- data/kinde_api/spec/models/add_apis_request_spec.rb +13 -14
- data/kinde_api/spec/models/add_organization_users_request_spec.rb +11 -12
- data/kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb +14 -15
- data/kinde_api/spec/models/add_organization_users_response_spec.rb +14 -15
- data/kinde_api/spec/models/api_applications_inner_spec.rb +15 -16
- data/kinde_api/spec/models/api_result_spec.rb +11 -12
- data/kinde_api/spec/models/api_spec.rb +17 -18
- data/kinde_api/spec/models/apis_spec.rb +15 -16
- data/kinde_api/spec/models/applications_spec.rb +14 -15
- data/kinde_api/spec/models/connected_apps_access_token_spec.rb +13 -14
- data/kinde_api/spec/models/connected_apps_auth_url_spec.rb +13 -14
- data/kinde_api/spec/models/create_application_request_spec.rb +13 -14
- data/kinde_api/spec/models/create_application_response_application_spec.rb +14 -15
- data/kinde_api/spec/models/create_application_response_spec.rb +14 -15
- data/kinde_api/spec/models/create_feature_flag_request_spec.rb +17 -18
- data/kinde_api/spec/models/create_organization_request_spec.rb +53 -18
- data/kinde_api/spec/models/create_organization_response_organization_spec.rb +11 -12
- data/kinde_api/spec/models/create_organization_response_spec.rb +14 -15
- data/kinde_api/spec/models/create_organization_user_permission_request_spec.rb +11 -12
- data/kinde_api/spec/models/create_organization_user_role_request_spec.rb +11 -12
- data/kinde_api/spec/models/create_permission_request_spec.rb +14 -15
- data/kinde_api/spec/models/create_role_request_spec.rb +15 -16
- data/kinde_api/spec/models/create_subscriber_success_response_spec.rb +11 -12
- data/kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb +11 -12
- data/kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb +11 -12
- data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +13 -14
- data/kinde_api/spec/models/create_user_request_profile_spec.rb +13 -14
- data/kinde_api/spec/models/create_user_request_spec.rb +19 -14
- data/kinde_api/spec/models/create_user_response_spec.rb +14 -15
- data/kinde_api/spec/models/error_response_spec.rb +11 -12
- data/kinde_api/spec/models/error_spec.rb +13 -14
- data/kinde_api/spec/models/get_application_response_application_spec.rb +16 -17
- data/kinde_api/spec/models/get_application_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_applications_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_environment_feature_flags_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb +13 -14
- data/kinde_api/spec/models/get_organization_feature_flags_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_organization_users_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organizations_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_organizations_user_permissions_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_permissions_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +11 -12
- data/kinde_api/spec/models/get_roles_response_spec.rb +15 -16
- data/kinde_api/spec/models/get_subscriber_response_spec.rb +14 -15
- data/kinde_api/spec/models/get_subscribers_response_spec.rb +15 -16
- data/kinde_api/spec/models/logout_redirect_urls_spec.rb +11 -12
- data/kinde_api/spec/models/organization_spec.rb +15 -16
- data/kinde_api/spec/models/organization_user_permission_roles_inner_spec.rb +13 -14
- data/kinde_api/spec/models/organization_user_permission_spec.rb +16 -17
- data/kinde_api/spec/models/organization_user_role_permissions_permissions_spec.rb +11 -12
- data/kinde_api/spec/models/organization_user_role_permissions_spec.rb +14 -15
- data/kinde_api/spec/models/organization_user_role_spec.rb +14 -15
- data/kinde_api/spec/models/organization_user_spec.rb +17 -18
- data/kinde_api/spec/models/permissions_spec.rb +20 -15
- data/kinde_api/spec/models/redirect_callback_urls_spec.rb +11 -12
- data/kinde_api/spec/models/replace_logout_redirect_urls_request_spec.rb +11 -12
- data/kinde_api/spec/models/replace_redirect_callback_urls_request_spec.rb +11 -12
- data/kinde_api/spec/models/role_spec.rb +15 -16
- data/kinde_api/spec/models/roles_permission_response_inner_spec.rb +15 -16
- data/kinde_api/spec/models/roles_spec.rb +15 -16
- data/kinde_api/spec/models/subscriber_spec.rb +15 -16
- data/kinde_api/spec/models/subscribers_subscriber_spec.rb +16 -17
- data/kinde_api/spec/models/success_response_spec.rb +13 -14
- data/kinde_api/spec/models/token_error_response_spec.rb +13 -14
- data/kinde_api/spec/models/token_introspect_spec.rb +16 -17
- data/kinde_api/spec/models/update_api_applications_request_applications_inner_spec.rb +13 -14
- data/kinde_api/spec/models/update_api_applications_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_application_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_environement_feature_flag_override_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_organization_request_spec.rb +52 -17
- data/kinde_api/spec/models/update_organization_users_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_organization_users_request_users_inner_spec.rb +15 -16
- data/kinde_api/spec/models/update_organization_users_response_spec.rb +15 -16
- data/kinde_api/spec/models/update_role_permissions_request_permissions_inner_spec.rb +13 -14
- data/kinde_api/spec/models/update_role_permissions_request_spec.rb +11 -12
- data/kinde_api/spec/models/update_role_permissions_response_spec.rb +15 -16
- data/kinde_api/spec/models/update_roles_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_user_request_spec.rb +15 -16
- data/kinde_api/spec/models/update_user_response_spec.rb +17 -18
- data/kinde_api/spec/models/user_identities_inner_spec.rb +13 -14
- data/kinde_api/spec/models/user_identity_result_spec.rb +11 -12
- data/kinde_api/spec/models/user_identity_spec.rb +13 -14
- data/kinde_api/spec/models/user_profile_spec.rb +17 -18
- data/kinde_api/spec/models/user_profile_v2_spec.rb +19 -20
- data/kinde_api/spec/models/user_spec.rb +24 -25
- data/kinde_api/spec/models/users_response_spec.rb +15 -16
- data/kinde_api/spec/models/users_response_users_inner_spec.rb +24 -25
- data/kinde_api/spec/spec_helper.rb +61 -63
- data/lib/kinde_sdk/configuration.rb +1 -1
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +63 -16
- metadata +85 -94
- data/Gemfile +0 -15
- data/Gemfile.lock +0 -128
- data/LICENSE +0 -21
- data/README.md +0 -23
- data/Rakefile +0 -10
- data/kinde_api/.gitignore +0 -39
- data/kinde_api/.rspec +0 -2
- data/kinde_sdk.gemspec +0 -33
- data/openapitools.json +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c359bdcb6d579be388fe1461d4305a5c10dacdc27f1fc06d244db3c042d247c
|
4
|
+
data.tar.gz: e1be276fe179c87fba4060317630cf85e29b91d1f05f52837eaaeaf5a227fb38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa55ff69411d58b639df64c43f65ed26e10ccc3f54a6e65d5ef421936c3e50759cdaca26003146c0b7f6befa704603304e7488da4112b15e7c5271bdc7f724f7
|
7
|
+
data.tar.gz: 7fc8ada7e5d0a1d958f787898a98f0eeb68b4597dfe4affa66811f5167d04b744cbb2067db0b32b94c6bab96bca50c6813a9697c9b703cd385e3010a3dc3f144
|
data/kinde_api/README.md
CHANGED
@@ -89,7 +89,7 @@ Class | Method | HTTP request | Description
|
|
89
89
|
*KindeApi::PermissionsApi* | [**delete_permission**](docs/PermissionsApi.md#delete_permission) | **DELETE** /api/v1/permissions/{permission_id} | Delete Permission
|
90
90
|
*KindeApi::PermissionsApi* | [**get_permissions**](docs/PermissionsApi.md#get_permissions) | **GET** /api/v1/permissions | List Permissions
|
91
91
|
*KindeApi::PermissionsApi* | [**update_permissions**](docs/PermissionsApi.md#update_permissions) | **PATCH** /api/v1/permissions/{permission_id} | Update Permission
|
92
|
-
*KindeApi::RolesApi* | [**create_role**](docs/RolesApi.md#create_role) | **POST** /api/v1/
|
92
|
+
*KindeApi::RolesApi* | [**create_role**](docs/RolesApi.md#create_role) | **POST** /api/v1/roles | Create Role
|
93
93
|
*KindeApi::RolesApi* | [**delete_role**](docs/RolesApi.md#delete_role) | **DELETE** /api/v1/roles/{role_id} | Delete Role
|
94
94
|
*KindeApi::RolesApi* | [**get_role_permission**](docs/RolesApi.md#get_role_permission) | **GET** /api/v1/roles/{role_id}/permissions | Get Role Permissions
|
95
95
|
*KindeApi::RolesApi* | [**get_roles**](docs/RolesApi.md#get_roles) | **GET** /api/v1/roles | List Roles
|
@@ -106,6 +106,7 @@ Class | Method | HTTP request | Description
|
|
106
106
|
*KindeApi::UsersApi* | [**get_users**](docs/UsersApi.md#get_users) | **GET** /api/v1/users | List Users
|
107
107
|
*KindeApi::UsersApi* | [**refresh_user_claims**](docs/UsersApi.md#refresh_user_claims) | **POST** /api/v1/users/{user_id}/refresh_claims | Refresh User Claims and Invalidate Cache
|
108
108
|
*KindeApi::UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PATCH** /api/v1/user | Update User
|
109
|
+
*KindeApi::UsersApi* | [**update_user_feature_flag_override**](docs/UsersApi.md#update_user_feature_flag_override) | **PATCH** /api/v1/users/{user_id}/feature_flags/{feature_flag_key} | Update User Feature Flag Override
|
109
110
|
|
110
111
|
|
111
112
|
## Documentation for Models
|
@@ -203,6 +204,7 @@ Class | Method | HTTP request | Description
|
|
203
204
|
## Documentation for Authorization
|
204
205
|
|
205
206
|
|
207
|
+
Authentication schemes defined for the API:
|
206
208
|
### kindeBearerAuth
|
207
209
|
|
208
210
|
- **Type**: Bearer authentication (JWT)
|
@@ -11,7 +11,7 @@ All URIs are relative to *https://app.kinde.com*
|
|
11
11
|
|
12
12
|
## get_connected_app_auth_url
|
13
13
|
|
14
|
-
> <ConnectedAppsAuthUrl> get_connected_app_auth_url(key_code_ref,
|
14
|
+
> <ConnectedAppsAuthUrl> get_connected_app_auth_url(key_code_ref, opts)
|
15
15
|
|
16
16
|
Get Connected App URL
|
17
17
|
|
@@ -30,11 +30,15 @@ end
|
|
30
30
|
|
31
31
|
api_instance = KindeApi::ConnectedAppsApi.new
|
32
32
|
key_code_ref = 'key_code_ref_example' # String | The unique key code reference of the connected app to authenticate against.
|
33
|
-
|
33
|
+
opts = {
|
34
|
+
user_id: 'user_id_example', # String | The id of the user that needs to authenticate to the third-party connected app.
|
35
|
+
org_code: 'org_code_example', # String | The code of the Kinde organization that needs to authenticate to the third-party connected app.
|
36
|
+
override_callback_url: 'override_callback_url_example' # String | A URL that overrides the default callback URL setup in your connected app configuration
|
37
|
+
}
|
34
38
|
|
35
39
|
begin
|
36
40
|
# Get Connected App URL
|
37
|
-
result = api_instance.get_connected_app_auth_url(key_code_ref,
|
41
|
+
result = api_instance.get_connected_app_auth_url(key_code_ref, opts)
|
38
42
|
p result
|
39
43
|
rescue KindeApi::ApiError => e
|
40
44
|
puts "Error when calling ConnectedAppsApi->get_connected_app_auth_url: #{e}"
|
@@ -45,12 +49,12 @@ end
|
|
45
49
|
|
46
50
|
This returns an Array which contains the response data, status code and headers.
|
47
51
|
|
48
|
-
> <Array(<ConnectedAppsAuthUrl>, Integer, Hash)> get_connected_app_auth_url_with_http_info(key_code_ref,
|
52
|
+
> <Array(<ConnectedAppsAuthUrl>, Integer, Hash)> get_connected_app_auth_url_with_http_info(key_code_ref, opts)
|
49
53
|
|
50
54
|
```ruby
|
51
55
|
begin
|
52
56
|
# Get Connected App URL
|
53
|
-
data, status_code, headers = api_instance.get_connected_app_auth_url_with_http_info(key_code_ref,
|
57
|
+
data, status_code, headers = api_instance.get_connected_app_auth_url_with_http_info(key_code_ref, opts)
|
54
58
|
p status_code # => 2xx
|
55
59
|
p headers # => { ... }
|
56
60
|
p data # => <ConnectedAppsAuthUrl>
|
@@ -64,7 +68,9 @@ end
|
|
64
68
|
| Name | Type | Description | Notes |
|
65
69
|
| ---- | ---- | ----------- | ----- |
|
66
70
|
| **key_code_ref** | **String** | The unique key code reference of the connected app to authenticate against. | |
|
67
|
-
| **user_id** | **String** | The id of the user that needs to authenticate to the third-party connected app. |
|
71
|
+
| **user_id** | **String** | The id of the user that needs to authenticate to the third-party connected app. | [optional] |
|
72
|
+
| **org_code** | **String** | The code of the Kinde organization that needs to authenticate to the third-party connected app. | [optional] |
|
73
|
+
| **override_callback_url** | **String** | A URL that overrides the default callback URL setup in your connected app configuration | [optional] |
|
68
74
|
|
69
75
|
### Return type
|
70
76
|
|
@@ -4,14 +4,20 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **name** | **String** | The organization's name. |
|
7
|
+
| **name** | **String** | The organization's name. | |
|
8
8
|
| **feature_flags** | **Hash<String, String>** | The organization's feature flag settings. | [optional] |
|
9
9
|
| **external_id** | **String** | The organization's ID. | [optional] |
|
10
10
|
| **background_color** | **String** | The organization's brand settings - background color. | [optional] |
|
11
11
|
| **button_color** | **String** | The organization's brand settings - button color. | [optional] |
|
12
12
|
| **button_text_color** | **String** | The organization's brand settings - button text color. | [optional] |
|
13
13
|
| **link_color** | **String** | The organization's brand settings - link color. | [optional] |
|
14
|
+
| **background_color_dark** | **String** | The organization's brand settings - dark mode background color. | [optional] |
|
15
|
+
| **button_color_dark** | **String** | The organization's brand settings - dark mode button color. | [optional] |
|
16
|
+
| **button_text_color_dark** | **String** | The organization's brand settings - dark mode button text color. | [optional] |
|
17
|
+
| **link_color_dark** | **String** | The organization's brand settings - dark mode link color. | [optional] |
|
18
|
+
| **theme_code** | **String** | The organization's brand settings - theme/mode 'light' | 'dark' | 'user_preference'. | [optional] |
|
14
19
|
| **handle** | **String** | The organization's handle. | [optional] |
|
20
|
+
| **is_allow_registrations** | **Boolean** | Users can sign up to this organization. | [optional] |
|
15
21
|
|
16
22
|
## Example
|
17
23
|
|
@@ -26,7 +32,13 @@ instance = KindeApi::CreateOrganizationRequest.new(
|
|
26
32
|
button_color: null,
|
27
33
|
button_text_color: null,
|
28
34
|
link_color: null,
|
29
|
-
|
35
|
+
background_color_dark: null,
|
36
|
+
button_color_dark: null,
|
37
|
+
button_text_color_dark: null,
|
38
|
+
link_color_dark: null,
|
39
|
+
theme_code: null,
|
40
|
+
handle: null,
|
41
|
+
is_allow_registrations: null
|
30
42
|
)
|
31
43
|
```
|
32
44
|
|
@@ -5,6 +5,7 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **profile** | [**CreateUserRequestProfile**](CreateUserRequestProfile.md) | | [optional] |
|
8
|
+
| **organization_code** | **String** | The unique code associated with the organization you want the user to join. | [optional] |
|
8
9
|
| **identities** | [**Array<CreateUserRequestIdentitiesInner>**](CreateUserRequestIdentitiesInner.md) | Array of identities to assign to the created user | [optional] |
|
9
10
|
|
10
11
|
## Example
|
@@ -14,6 +15,7 @@ require 'kinde_api'
|
|
14
15
|
|
15
16
|
instance = KindeApi::CreateUserRequest.new(
|
16
17
|
profile: null,
|
18
|
+
organization_code: null,
|
17
19
|
identities: null
|
18
20
|
)
|
19
21
|
```
|
@@ -100,7 +100,7 @@ end
|
|
100
100
|
|
101
101
|
## create_organization
|
102
102
|
|
103
|
-
> <CreateOrganizationResponse> create_organization(
|
103
|
+
> <CreateOrganizationResponse> create_organization(create_organization_request)
|
104
104
|
|
105
105
|
Create Organization
|
106
106
|
|
@@ -118,13 +118,11 @@ KindeApi.configure do |config|
|
|
118
118
|
end
|
119
119
|
|
120
120
|
api_instance = KindeApi::OrganizationsApi.new
|
121
|
-
|
122
|
-
create_organization_request: KindeApi::CreateOrganizationRequest.new # CreateOrganizationRequest | Organization details.
|
123
|
-
}
|
121
|
+
create_organization_request = KindeApi::CreateOrganizationRequest.new({name: 'name_example'}) # CreateOrganizationRequest | Organization details.
|
124
122
|
|
125
123
|
begin
|
126
124
|
# Create Organization
|
127
|
-
result = api_instance.create_organization(
|
125
|
+
result = api_instance.create_organization(create_organization_request)
|
128
126
|
p result
|
129
127
|
rescue KindeApi::ApiError => e
|
130
128
|
puts "Error when calling OrganizationsApi->create_organization: #{e}"
|
@@ -135,12 +133,12 @@ end
|
|
135
133
|
|
136
134
|
This returns an Array which contains the response data, status code and headers.
|
137
135
|
|
138
|
-
> <Array(<CreateOrganizationResponse>, Integer, Hash)> create_organization_with_http_info(
|
136
|
+
> <Array(<CreateOrganizationResponse>, Integer, Hash)> create_organization_with_http_info(create_organization_request)
|
139
137
|
|
140
138
|
```ruby
|
141
139
|
begin
|
142
140
|
# Create Organization
|
143
|
-
data, status_code, headers = api_instance.create_organization_with_http_info(
|
141
|
+
data, status_code, headers = api_instance.create_organization_with_http_info(create_organization_request)
|
144
142
|
p status_code # => 2xx
|
145
143
|
p headers # => { ... }
|
146
144
|
p data # => <CreateOrganizationResponse>
|
@@ -153,7 +151,7 @@ end
|
|
153
151
|
|
154
152
|
| Name | Type | Description | Notes |
|
155
153
|
| ---- | ---- | ----------- | ----- |
|
156
|
-
| **create_organization_request** | [**CreateOrganizationRequest**](CreateOrganizationRequest.md) | Organization details. |
|
154
|
+
| **create_organization_request** | [**CreateOrganizationRequest**](CreateOrganizationRequest.md) | Organization details. | |
|
157
155
|
|
158
156
|
### Return type
|
159
157
|
|
@@ -4,7 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **id** | **String** | The permission
|
7
|
+
| **id** | **String** | The permission's id. | [optional] |
|
8
|
+
| **key** | **String** | The permission identifier to use in code. | [optional] |
|
8
9
|
| **name** | **String** | The permission's name. | [optional] |
|
9
10
|
| **description** | **String** | The permission's description. | [optional] |
|
10
11
|
|
@@ -15,6 +16,7 @@ require 'kinde_api'
|
|
15
16
|
|
16
17
|
instance = KindeApi::Permissions.new(
|
17
18
|
id: null,
|
19
|
+
key: null,
|
18
20
|
name: null,
|
19
21
|
description: null
|
20
22
|
)
|
data/kinde_api/docs/RolesApi.md
CHANGED
@@ -4,7 +4,7 @@ All URIs are relative to *https://app.kinde.com*
|
|
4
4
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
|
-
| [**create_role**](RolesApi.md#create_role) | **POST** /api/v1/
|
7
|
+
| [**create_role**](RolesApi.md#create_role) | **POST** /api/v1/roles | Create Role |
|
8
8
|
| [**delete_role**](RolesApi.md#delete_role) | **DELETE** /api/v1/roles/{role_id} | Delete Role |
|
9
9
|
| [**get_role_permission**](RolesApi.md#get_role_permission) | **GET** /api/v1/roles/{role_id}/permissions | Get Role Permissions |
|
10
10
|
| [**get_roles**](RolesApi.md#get_roles) | **GET** /api/v1/roles | List Roles |
|
@@ -81,7 +81,7 @@ end
|
|
81
81
|
### HTTP request headers
|
82
82
|
|
83
83
|
- **Content-Type**: application/json
|
84
|
-
- **Accept**: application/json; charset=utf-8
|
84
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
85
85
|
|
86
86
|
|
87
87
|
## delete_role
|
@@ -10,7 +10,13 @@
|
|
10
10
|
| **button_color** | **String** | The organization's brand settings - button color. | [optional] |
|
11
11
|
| **button_text_color** | **String** | The organization's brand settings - button text color. | [optional] |
|
12
12
|
| **link_color** | **String** | The organization's brand settings - link color. | [optional] |
|
13
|
+
| **background_color_dark** | **String** | The organization's brand settings - dark mode background color. | [optional] |
|
14
|
+
| **button_color_dark** | **String** | The organization's brand settings - dark mode button color. | [optional] |
|
15
|
+
| **button_text_color_dark** | **String** | The organization's brand settings - dark mode button text color. | [optional] |
|
16
|
+
| **link_color_dark** | **String** | The organization's brand settings - dark mode link color. | [optional] |
|
17
|
+
| **theme_code** | **String** | The organization's brand settings - theme/mode 'light' | 'dark' | 'user_preference'. | [optional] |
|
13
18
|
| **handle** | **String** | The organization's handle. | [optional] |
|
19
|
+
| **is_allow_registrations** | **Boolean** | Users can sign up to this organization. | [optional] |
|
14
20
|
|
15
21
|
## Example
|
16
22
|
|
@@ -24,7 +30,13 @@ instance = KindeApi::UpdateOrganizationRequest.new(
|
|
24
30
|
button_color: null,
|
25
31
|
button_text_color: null,
|
26
32
|
link_color: null,
|
27
|
-
|
33
|
+
background_color_dark: null,
|
34
|
+
button_color_dark: null,
|
35
|
+
button_text_color_dark: null,
|
36
|
+
link_color_dark: null,
|
37
|
+
theme_code: null,
|
38
|
+
handle: null,
|
39
|
+
is_allow_registrations: null
|
28
40
|
)
|
29
41
|
```
|
30
42
|
|
data/kinde_api/docs/UsersApi.md
CHANGED
@@ -10,6 +10,7 @@ All URIs are relative to *https://app.kinde.com*
|
|
10
10
|
| [**get_users**](UsersApi.md#get_users) | **GET** /api/v1/users | List Users |
|
11
11
|
| [**refresh_user_claims**](UsersApi.md#refresh_user_claims) | **POST** /api/v1/users/{user_id}/refresh_claims | Refresh User Claims and Invalidate Cache |
|
12
12
|
| [**update_user**](UsersApi.md#update_user) | **PATCH** /api/v1/user | Update User |
|
13
|
+
| [**update_user_feature_flag_override**](UsersApi.md#update_user_feature_flag_override) | **PATCH** /api/v1/users/{user_id}/feature_flags/{feature_flag_key} | Update User Feature Flag Override |
|
13
14
|
|
14
15
|
|
15
16
|
## create_user
|
@@ -250,7 +251,6 @@ end
|
|
250
251
|
|
251
252
|
api_instance = KindeApi::UsersApi.new
|
252
253
|
opts = {
|
253
|
-
sort: 'name_asc', # String | Field and order to sort the result by.
|
254
254
|
page_size: 56, # Integer | Number of results per page. Defaults to 10 if parameter not sent.
|
255
255
|
user_id: 'user_id_example', # String | ID of the user to filter by.
|
256
256
|
next_token: 'next_token_example', # String | A string to get the next page of results if there are more results.
|
@@ -289,7 +289,6 @@ end
|
|
289
289
|
|
290
290
|
| Name | Type | Description | Notes |
|
291
291
|
| ---- | ---- | ----------- | ----- |
|
292
|
-
| **sort** | **String** | Field and order to sort the result by. | [optional] |
|
293
292
|
| **page_size** | **Integer** | Number of results per page. Defaults to 10 if parameter not sent. | [optional] |
|
294
293
|
| **user_id** | **String** | ID of the user to filter by. | [optional] |
|
295
294
|
| **next_token** | **String** | A string to get the next page of results if there are more results. | [optional] |
|
@@ -381,7 +380,7 @@ end
|
|
381
380
|
|
382
381
|
## update_user
|
383
382
|
|
384
|
-
> <UpdateUserResponse> update_user(
|
383
|
+
> <UpdateUserResponse> update_user(id, update_user_request)
|
385
384
|
|
386
385
|
Update User
|
387
386
|
|
@@ -399,14 +398,12 @@ KindeApi.configure do |config|
|
|
399
398
|
end
|
400
399
|
|
401
400
|
api_instance = KindeApi::UsersApi.new
|
401
|
+
id = 'id_example' # String | The user's id.
|
402
402
|
update_user_request = KindeApi::UpdateUserRequest.new # UpdateUserRequest | The user to update.
|
403
|
-
opts = {
|
404
|
-
id: 'id_example' # String | The user's id.
|
405
|
-
}
|
406
403
|
|
407
404
|
begin
|
408
405
|
# Update User
|
409
|
-
result = api_instance.update_user(
|
406
|
+
result = api_instance.update_user(id, update_user_request)
|
410
407
|
p result
|
411
408
|
rescue KindeApi::ApiError => e
|
412
409
|
puts "Error when calling UsersApi->update_user: #{e}"
|
@@ -417,12 +414,12 @@ end
|
|
417
414
|
|
418
415
|
This returns an Array which contains the response data, status code and headers.
|
419
416
|
|
420
|
-
> <Array(<UpdateUserResponse>, Integer, Hash)> update_user_with_http_info(
|
417
|
+
> <Array(<UpdateUserResponse>, Integer, Hash)> update_user_with_http_info(id, update_user_request)
|
421
418
|
|
422
419
|
```ruby
|
423
420
|
begin
|
424
421
|
# Update User
|
425
|
-
data, status_code, headers = api_instance.update_user_with_http_info(
|
422
|
+
data, status_code, headers = api_instance.update_user_with_http_info(id, update_user_request)
|
426
423
|
p status_code # => 2xx
|
427
424
|
p headers # => { ... }
|
428
425
|
p data # => <UpdateUserResponse>
|
@@ -435,8 +432,8 @@ end
|
|
435
432
|
|
436
433
|
| Name | Type | Description | Notes |
|
437
434
|
| ---- | ---- | ----------- | ----- |
|
435
|
+
| **id** | **String** | The user's id. | |
|
438
436
|
| **update_user_request** | [**UpdateUserRequest**](UpdateUserRequest.md) | The user to update. | |
|
439
|
-
| **id** | **String** | The user's id. | [optional] |
|
440
437
|
|
441
438
|
### Return type
|
442
439
|
|
@@ -451,3 +448,76 @@ end
|
|
451
448
|
- **Content-Type**: application/json
|
452
449
|
- **Accept**: application/json, application/json; charset=utf-8
|
453
450
|
|
451
|
+
|
452
|
+
## update_user_feature_flag_override
|
453
|
+
|
454
|
+
> <SuccessResponse> update_user_feature_flag_override(user_id, feature_flag_key, value)
|
455
|
+
|
456
|
+
Update User Feature Flag Override
|
457
|
+
|
458
|
+
Update user feature flag override.
|
459
|
+
|
460
|
+
### Examples
|
461
|
+
|
462
|
+
```ruby
|
463
|
+
require 'time'
|
464
|
+
require 'kinde_api'
|
465
|
+
# setup authorization
|
466
|
+
KindeApi.configure do |config|
|
467
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
468
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
469
|
+
end
|
470
|
+
|
471
|
+
api_instance = KindeApi::UsersApi.new
|
472
|
+
user_id = 'user_id_example' # String | The identifier for the user
|
473
|
+
feature_flag_key = 'feature_flag_key_example' # String | The identifier for the feature flag
|
474
|
+
value = 'value_example' # String | Override value
|
475
|
+
|
476
|
+
begin
|
477
|
+
# Update User Feature Flag Override
|
478
|
+
result = api_instance.update_user_feature_flag_override(user_id, feature_flag_key, value)
|
479
|
+
p result
|
480
|
+
rescue KindeApi::ApiError => e
|
481
|
+
puts "Error when calling UsersApi->update_user_feature_flag_override: #{e}"
|
482
|
+
end
|
483
|
+
```
|
484
|
+
|
485
|
+
#### Using the update_user_feature_flag_override_with_http_info variant
|
486
|
+
|
487
|
+
This returns an Array which contains the response data, status code and headers.
|
488
|
+
|
489
|
+
> <Array(<SuccessResponse>, Integer, Hash)> update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value)
|
490
|
+
|
491
|
+
```ruby
|
492
|
+
begin
|
493
|
+
# Update User Feature Flag Override
|
494
|
+
data, status_code, headers = api_instance.update_user_feature_flag_override_with_http_info(user_id, feature_flag_key, value)
|
495
|
+
p status_code # => 2xx
|
496
|
+
p headers # => { ... }
|
497
|
+
p data # => <SuccessResponse>
|
498
|
+
rescue KindeApi::ApiError => e
|
499
|
+
puts "Error when calling UsersApi->update_user_feature_flag_override_with_http_info: #{e}"
|
500
|
+
end
|
501
|
+
```
|
502
|
+
|
503
|
+
### Parameters
|
504
|
+
|
505
|
+
| Name | Type | Description | Notes |
|
506
|
+
| ---- | ---- | ----------- | ----- |
|
507
|
+
| **user_id** | **String** | The identifier for the user | |
|
508
|
+
| **feature_flag_key** | **String** | The identifier for the feature flag | |
|
509
|
+
| **value** | **String** | Override value | |
|
510
|
+
|
511
|
+
### Return type
|
512
|
+
|
513
|
+
[**SuccessResponse**](SuccessResponse.md)
|
514
|
+
|
515
|
+
### Authorization
|
516
|
+
|
517
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
518
|
+
|
519
|
+
### HTTP request headers
|
520
|
+
|
521
|
+
- **Content-Type**: Not defined
|
522
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
523
|
+
|