kinde_sdk 1.1.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +103 -19
- data/kinde_api/README.md +58 -23
- data/kinde_api/docs/AddOrganizationUsersRequest.md +1 -1
- data/kinde_api/docs/AddOrganizationUsersRequestUsersInner.md +22 -0
- data/kinde_api/docs/{AddOrganizationUsers200Response.md → AddOrganizationUsersResponse.md} +2 -2
- data/kinde_api/docs/Application.md +20 -0
- data/kinde_api/docs/CallbacksApi.md +219 -0
- data/kinde_api/docs/ConnectedAppsApi.md +9 -9
- data/kinde_api/docs/CreateOrganizationRequest.md +11 -1
- data/kinde_api/docs/CreateOrganizationResponse.md +22 -0
- data/kinde_api/docs/CreateOrganizationResponseOrganization.md +18 -0
- data/kinde_api/docs/CreateOrganizationUserRoleRequest.md +18 -0
- data/kinde_api/docs/CreatePermissionRequest.md +22 -0
- data/kinde_api/docs/CreateRoleRequest.md +24 -0
- data/kinde_api/docs/CreateSubscriberSuccessResponse.md +18 -0
- data/kinde_api/docs/CreateSubscriberSuccessResponseSubscriber.md +18 -0
- data/kinde_api/docs/{CreateUser200Response.md → CreateUserResponse.md} +2 -2
- data/kinde_api/docs/EnvironmentsApi.md +71 -4
- data/kinde_api/docs/FeatureFlagsApi.md +9 -11
- data/kinde_api/docs/GetApplicationsResponse.md +24 -0
- data/kinde_api/docs/GetEnvironmentFeatureFlagsResponse.md +24 -0
- data/kinde_api/docs/GetOrganizationFeatureFlagsResponse.md +22 -0
- data/kinde_api/docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md +20 -0
- data/kinde_api/docs/{GetOrganizations200Response.md → GetOrganizationsResponse.md} +2 -2
- data/kinde_api/docs/GetOrganizationsUserRolesResponse.md +24 -0
- data/kinde_api/docs/{GetOrganizationUsers200Response.md → GetOrganizationsUsersResponse.md} +2 -2
- data/kinde_api/docs/GetRedirectCallbackUrlsResponse.md +18 -0
- data/kinde_api/docs/OrganizationUser.md +3 -1
- data/kinde_api/docs/OrganizationUserRole.md +22 -0
- data/kinde_api/docs/OrganizationsApi.md +494 -59
- data/kinde_api/docs/Permissions.md +22 -0
- data/kinde_api/docs/PermissionsApi.md +229 -0
- data/kinde_api/docs/RedirectCallbackUrls.md +18 -0
- data/kinde_api/docs/Roles.md +22 -0
- data/kinde_api/docs/RolesApi.md +229 -0
- data/kinde_api/docs/SubscribersApi.md +229 -0
- data/kinde_api/docs/UpdateOrganizationRequest.md +28 -0
- data/kinde_api/docs/UpdateOrganizationUsersRequest.md +18 -0
- data/kinde_api/docs/UpdateOrganizationUsersRequestUsersInner.md +24 -0
- data/kinde_api/docs/UpdateOrganizationUsersResponse.md +24 -0
- data/kinde_api/docs/UpdateUserRequest.md +3 -1
- data/kinde_api/docs/User.md +15 -1
- data/kinde_api/docs/UserIdentityResult.md +1 -3
- data/kinde_api/docs/UserProfile.md +3 -1
- data/kinde_api/docs/UserProfileV2.md +6 -2
- data/kinde_api/docs/UsersApi.md +31 -259
- data/kinde_api/docs/{GetUsers200Response.md → UsersResponse.md} +2 -2
- data/kinde_api/lib/kinde_api/api/callbacks_api.rb +221 -0
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +8 -8
- data/kinde_api/lib/kinde_api/api/environments_api.rb +61 -4
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +8 -15
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +492 -57
- data/kinde_api/lib/kinde_api/api/permissions_api.rb +226 -0
- data/kinde_api/lib/kinde_api/api/roles_api.rb +226 -0
- data/kinde_api/lib/kinde_api/api/subscribers_api.rb +228 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +30 -233
- data/kinde_api/lib/kinde_api/api_client.rb +1 -13
- data/kinde_api/lib/kinde_api/configuration.rb +3 -77
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -2
- data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +242 -0
- data/kinde_api/lib/kinde_api/models/{add_organization_users200_response.rb → add_organization_users_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/application.rb +226 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +54 -4
- data/kinde_api/lib/kinde_api/models/{remove_organization_users200_response.rb → create_organization_response.rb} +19 -12
- data/kinde_api/lib/kinde_api/models/{create_organization201_response.rb → create_organization_response_organization.rb} +8 -18
- data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +218 -0
- data/kinde_api/lib/kinde_api/models/create_permission_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/create_role_request.rb +248 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +217 -0
- data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +218 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +34 -0
- data/kinde_api/lib/kinde_api/models/{create_user200_response.rb → create_user_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/get_applications_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +240 -0
- data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +260 -0
- data/kinde_api/lib/kinde_api/models/{get_organizations200_response.rb → get_organizations_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/{get_organization_users200_response.rb → get_organizations_users_response.rb} +3 -3
- data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +220 -0
- data/kinde_api/lib/kinde_api/models/organization_user.rb +15 -4
- data/kinde_api/lib/kinde_api/models/organization_user_role.rb +235 -0
- data/kinde_api/lib/kinde_api/models/permissions.rb +238 -0
- data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +220 -0
- data/kinde_api/lib/kinde_api/models/roles.rb +238 -0
- data/kinde_api/lib/kinde_api/models/update_organization_request.rb +268 -0
- data/kinde_api/lib/kinde_api/models/{remove_organization_users_request.rb → update_organization_users_request.rb} +5 -5
- data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +252 -0
- data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +250 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +14 -4
- data/kinde_api/lib/kinde_api/models/user.rb +79 -5
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +4 -14
- data/kinde_api/lib/kinde_api/models/user_profile.rb +14 -4
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +25 -5
- data/kinde_api/lib/kinde_api/models/{get_users200_response.rb → users_response.rb} +3 -3
- data/kinde_api/lib/kinde_api.rb +32 -8
- data/kinde_api/spec/api/callbacks_api_spec.rb +73 -0
- data/kinde_api/spec/api/connected_apps_api_spec.rb +1 -1
- data/kinde_api/spec/api/environments_api_spec.rb +11 -0
- data/kinde_api/spec/api/feature_flags_api_spec.rb +1 -2
- data/kinde_api/spec/api/organizations_api_spec.rb +93 -14
- data/kinde_api/spec/api/permissions_api_spec.rb +74 -0
- data/kinde_api/spec/api/roles_api_spec.rb +74 -0
- data/kinde_api/spec/api/subscribers_api_spec.rb +76 -0
- data/kinde_api/spec/api/users_api_spec.rb +6 -47
- data/kinde_api/spec/api_client_spec.rb +0 -12
- data/kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb +46 -0
- data/kinde_api/spec/models/{add_organization_users200_response_spec.rb → add_organization_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/{remove_organization_users200_response_spec.rb → application_spec.rb} +8 -8
- data/kinde_api/spec/models/create_organization_request_spec.rb +30 -0
- data/kinde_api/spec/models/create_organization_response_organization_spec.rb +34 -0
- data/kinde_api/spec/models/{create_organization201_response_spec.rb → create_organization_response_spec.rb} +13 -7
- data/kinde_api/spec/models/create_organization_user_role_request_spec.rb +34 -0
- data/kinde_api/spec/models/create_permission_request_spec.rb +46 -0
- data/kinde_api/spec/models/create_role_request_spec.rb +52 -0
- data/kinde_api/spec/models/create_subscriber_success_response_spec.rb +34 -0
- data/kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb +34 -0
- data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +4 -0
- data/kinde_api/spec/models/{create_user200_response_spec.rb → create_user_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_applications_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_environment_feature_flags_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb +44 -0
- data/kinde_api/spec/models/get_organization_feature_flags_response_spec.rb +46 -0
- data/kinde_api/spec/models/{get_organizations200_response_spec.rb → get_organizations_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +52 -0
- data/kinde_api/spec/models/{get_organization_users200_response_spec.rb → get_organizations_users_response_spec.rb} +6 -6
- data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +34 -0
- data/kinde_api/spec/models/organization_user_role_spec.rb +46 -0
- data/kinde_api/spec/models/organization_user_spec.rb +6 -0
- data/kinde_api/spec/models/permissions_spec.rb +46 -0
- data/kinde_api/spec/models/redirect_callback_urls_spec.rb +34 -0
- data/kinde_api/spec/models/roles_spec.rb +46 -0
- data/kinde_api/spec/models/update_organization_request_spec.rb +64 -0
- data/kinde_api/spec/models/{remove_organization_users_request_spec.rb → update_organization_users_request_spec.rb} +6 -6
- data/kinde_api/spec/models/update_organization_users_request_users_inner_spec.rb +52 -0
- data/kinde_api/spec/models/update_organization_users_response_spec.rb +52 -0
- data/kinde_api/spec/models/update_user_request_spec.rb +6 -0
- data/kinde_api/spec/models/user_identity_result_spec.rb +0 -6
- data/kinde_api/spec/models/user_profile_spec.rb +6 -0
- data/kinde_api/spec/models/user_profile_v2_spec.rb +12 -0
- data/kinde_api/spec/models/user_spec.rb +42 -0
- data/kinde_api/spec/models/{get_users200_response_spec.rb → users_response_spec.rb} +6 -6
- data/kinde_sdk.gemspec +1 -1
- data/lib/kinde_sdk/client/feature_flags.rb +64 -0
- data/lib/kinde_sdk/client/permissions.rb +20 -0
- data/lib/kinde_sdk/client.rb +33 -18
- data/lib/kinde_sdk/configuration.rb +0 -2
- data/lib/kinde_sdk/version.rb +1 -1
- data/lib/kinde_sdk.rb +27 -12
- data/spec/kinde_sdk_spec.rb +131 -5
- data/spec/spec_helper.rb +2 -0
- metadata +134 -36
- data/kinde_api/docs/CreateOrganization201Response.md +0 -20
- data/kinde_api/docs/RemoveOrganizationUsers200Response.md +0 -20
- data/kinde_api/docs/RemoveOrganizationUsersRequest.md +0 -18
@@ -0,0 +1,219 @@
|
|
1
|
+
# KindeApi::CallbacksApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://app.kinde.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**add_redirect_callback_urls**](CallbacksApi.md#add_redirect_callback_urls) | **POST** /api/v1/applications/{app_id}/auth_redirect_urls | Add Redirect Callback URLs |
|
8
|
+
| [**get_callback_urls**](CallbacksApi.md#get_callback_urls) | **GET** /api/v1/applications/{app_id}/auth_redirect_urls | List Callback URLs |
|
9
|
+
| [**replace_redirect_callback_urls**](CallbacksApi.md#replace_redirect_callback_urls) | **PUT** /api/v1/applications/{app_id}/auth_redirect_urls | Replace redirect callback URLs |
|
10
|
+
|
11
|
+
|
12
|
+
## add_redirect_callback_urls
|
13
|
+
|
14
|
+
> add_redirect_callback_urls(app_id, urls)
|
15
|
+
|
16
|
+
Add Redirect Callback URLs
|
17
|
+
|
18
|
+
Add additional redirect callback URLs.
|
19
|
+
|
20
|
+
### Examples
|
21
|
+
|
22
|
+
```ruby
|
23
|
+
require 'time'
|
24
|
+
require 'kinde_api'
|
25
|
+
# setup authorization
|
26
|
+
KindeApi.configure do |config|
|
27
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
28
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
29
|
+
end
|
30
|
+
|
31
|
+
api_instance = KindeApi::CallbacksApi.new
|
32
|
+
app_id = 'app_id_example' # String | The identifier for the application.
|
33
|
+
urls = ['inner_example'] # Array<String> | Array of callback urls.
|
34
|
+
|
35
|
+
begin
|
36
|
+
# Add Redirect Callback URLs
|
37
|
+
api_instance.add_redirect_callback_urls(app_id, urls)
|
38
|
+
rescue KindeApi::ApiError => e
|
39
|
+
puts "Error when calling CallbacksApi->add_redirect_callback_urls: #{e}"
|
40
|
+
end
|
41
|
+
```
|
42
|
+
|
43
|
+
#### Using the add_redirect_callback_urls_with_http_info variant
|
44
|
+
|
45
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
46
|
+
|
47
|
+
> <Array(nil, Integer, Hash)> add_redirect_callback_urls_with_http_info(app_id, urls)
|
48
|
+
|
49
|
+
```ruby
|
50
|
+
begin
|
51
|
+
# Add Redirect Callback URLs
|
52
|
+
data, status_code, headers = api_instance.add_redirect_callback_urls_with_http_info(app_id, urls)
|
53
|
+
p status_code # => 2xx
|
54
|
+
p headers # => { ... }
|
55
|
+
p data # => nil
|
56
|
+
rescue KindeApi::ApiError => e
|
57
|
+
puts "Error when calling CallbacksApi->add_redirect_callback_urls_with_http_info: #{e}"
|
58
|
+
end
|
59
|
+
```
|
60
|
+
|
61
|
+
### Parameters
|
62
|
+
|
63
|
+
| Name | Type | Description | Notes |
|
64
|
+
| ---- | ---- | ----------- | ----- |
|
65
|
+
| **app_id** | **String** | The identifier for the application. | |
|
66
|
+
| **urls** | [**Array<String>**](String.md) | Array of callback urls. | |
|
67
|
+
|
68
|
+
### Return type
|
69
|
+
|
70
|
+
nil (empty response body)
|
71
|
+
|
72
|
+
### Authorization
|
73
|
+
|
74
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
75
|
+
|
76
|
+
### HTTP request headers
|
77
|
+
|
78
|
+
- **Content-Type**: Not defined
|
79
|
+
- **Accept**: Not defined
|
80
|
+
|
81
|
+
|
82
|
+
## get_callback_urls
|
83
|
+
|
84
|
+
> <RedirectCallbackUrls> get_callback_urls(app_id)
|
85
|
+
|
86
|
+
List Callback URLs
|
87
|
+
|
88
|
+
Returns an application's redirect callback URLs.
|
89
|
+
|
90
|
+
### Examples
|
91
|
+
|
92
|
+
```ruby
|
93
|
+
require 'time'
|
94
|
+
require 'kinde_api'
|
95
|
+
# setup authorization
|
96
|
+
KindeApi.configure do |config|
|
97
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
98
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
99
|
+
end
|
100
|
+
|
101
|
+
api_instance = KindeApi::CallbacksApi.new
|
102
|
+
app_id = 'app_id_example' # String | The identifier for the application.
|
103
|
+
|
104
|
+
begin
|
105
|
+
# List Callback URLs
|
106
|
+
result = api_instance.get_callback_urls(app_id)
|
107
|
+
p result
|
108
|
+
rescue KindeApi::ApiError => e
|
109
|
+
puts "Error when calling CallbacksApi->get_callback_urls: #{e}"
|
110
|
+
end
|
111
|
+
```
|
112
|
+
|
113
|
+
#### Using the get_callback_urls_with_http_info variant
|
114
|
+
|
115
|
+
This returns an Array which contains the response data, status code and headers.
|
116
|
+
|
117
|
+
> <Array(<RedirectCallbackUrls>, Integer, Hash)> get_callback_urls_with_http_info(app_id)
|
118
|
+
|
119
|
+
```ruby
|
120
|
+
begin
|
121
|
+
# List Callback URLs
|
122
|
+
data, status_code, headers = api_instance.get_callback_urls_with_http_info(app_id)
|
123
|
+
p status_code # => 2xx
|
124
|
+
p headers # => { ... }
|
125
|
+
p data # => <RedirectCallbackUrls>
|
126
|
+
rescue KindeApi::ApiError => e
|
127
|
+
puts "Error when calling CallbacksApi->get_callback_urls_with_http_info: #{e}"
|
128
|
+
end
|
129
|
+
```
|
130
|
+
|
131
|
+
### Parameters
|
132
|
+
|
133
|
+
| Name | Type | Description | Notes |
|
134
|
+
| ---- | ---- | ----------- | ----- |
|
135
|
+
| **app_id** | **String** | The identifier for the application. | |
|
136
|
+
|
137
|
+
### Return type
|
138
|
+
|
139
|
+
[**RedirectCallbackUrls**](RedirectCallbackUrls.md)
|
140
|
+
|
141
|
+
### Authorization
|
142
|
+
|
143
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
144
|
+
|
145
|
+
### HTTP request headers
|
146
|
+
|
147
|
+
- **Content-Type**: Not defined
|
148
|
+
- **Accept**: application/json; charset=utf-8
|
149
|
+
|
150
|
+
|
151
|
+
## replace_redirect_callback_urls
|
152
|
+
|
153
|
+
> replace_redirect_callback_urls(app_id, urls)
|
154
|
+
|
155
|
+
Replace redirect callback URLs
|
156
|
+
|
157
|
+
Replace all redirect callback URLs.
|
158
|
+
|
159
|
+
### Examples
|
160
|
+
|
161
|
+
```ruby
|
162
|
+
require 'time'
|
163
|
+
require 'kinde_api'
|
164
|
+
# setup authorization
|
165
|
+
KindeApi.configure do |config|
|
166
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
167
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
168
|
+
end
|
169
|
+
|
170
|
+
api_instance = KindeApi::CallbacksApi.new
|
171
|
+
app_id = 'app_id_example' # String | The identifier for the application.
|
172
|
+
urls = ['inner_example'] # Array<String> | Array of callback urls.
|
173
|
+
|
174
|
+
begin
|
175
|
+
# Replace redirect callback URLs
|
176
|
+
api_instance.replace_redirect_callback_urls(app_id, urls)
|
177
|
+
rescue KindeApi::ApiError => e
|
178
|
+
puts "Error when calling CallbacksApi->replace_redirect_callback_urls: #{e}"
|
179
|
+
end
|
180
|
+
```
|
181
|
+
|
182
|
+
#### Using the replace_redirect_callback_urls_with_http_info variant
|
183
|
+
|
184
|
+
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
185
|
+
|
186
|
+
> <Array(nil, Integer, Hash)> replace_redirect_callback_urls_with_http_info(app_id, urls)
|
187
|
+
|
188
|
+
```ruby
|
189
|
+
begin
|
190
|
+
# Replace redirect callback URLs
|
191
|
+
data, status_code, headers = api_instance.replace_redirect_callback_urls_with_http_info(app_id, urls)
|
192
|
+
p status_code # => 2xx
|
193
|
+
p headers # => { ... }
|
194
|
+
p data # => nil
|
195
|
+
rescue KindeApi::ApiError => e
|
196
|
+
puts "Error when calling CallbacksApi->replace_redirect_callback_urls_with_http_info: #{e}"
|
197
|
+
end
|
198
|
+
```
|
199
|
+
|
200
|
+
### Parameters
|
201
|
+
|
202
|
+
| Name | Type | Description | Notes |
|
203
|
+
| ---- | ---- | ----------- | ----- |
|
204
|
+
| **app_id** | **String** | The identifier for the application. | |
|
205
|
+
| **urls** | [**Array<String>**](String.md) | Array of callback urls. | |
|
206
|
+
|
207
|
+
### Return type
|
208
|
+
|
209
|
+
nil (empty response body)
|
210
|
+
|
211
|
+
### Authorization
|
212
|
+
|
213
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
214
|
+
|
215
|
+
### HTTP request headers
|
216
|
+
|
217
|
+
- **Content-Type**: Not defined
|
218
|
+
- **Accept**: Not defined
|
219
|
+
|
@@ -30,7 +30,7 @@ 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
|
-
user_id =
|
33
|
+
user_id = 'user_id_example' # String | The id of the user that needs to authenticate to the third-party connected app.
|
34
34
|
|
35
35
|
begin
|
36
36
|
# Get Connected App URL
|
@@ -64,7 +64,7 @@ end
|
|
64
64
|
| Name | Type | Description | Notes |
|
65
65
|
| ---- | ---- | ----------- | ----- |
|
66
66
|
| **key_code_ref** | **String** | The unique key code reference of the connected app to authenticate against. | |
|
67
|
-
| **user_id** | **
|
67
|
+
| **user_id** | **String** | The id of the user that needs to authenticate to the third-party connected app. | |
|
68
68
|
|
69
69
|
### Return type
|
70
70
|
|
@@ -77,7 +77,7 @@ end
|
|
77
77
|
### HTTP request headers
|
78
78
|
|
79
79
|
- **Content-Type**: Not defined
|
80
|
-
- **Accept**: application/json
|
80
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
81
81
|
|
82
82
|
|
83
83
|
## get_connected_app_token
|
@@ -146,12 +146,12 @@ end
|
|
146
146
|
### HTTP request headers
|
147
147
|
|
148
148
|
- **Content-Type**: Not defined
|
149
|
-
- **Accept**: application/json
|
149
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
150
150
|
|
151
151
|
|
152
152
|
## revoke_connected_app_token
|
153
153
|
|
154
|
-
> <
|
154
|
+
> <SuccessResponse> revoke_connected_app_token(session_id)
|
155
155
|
|
156
156
|
Revoke Connected App Token
|
157
157
|
|
@@ -184,7 +184,7 @@ end
|
|
184
184
|
|
185
185
|
This returns an Array which contains the response data, status code and headers.
|
186
186
|
|
187
|
-
> <Array(<
|
187
|
+
> <Array(<SuccessResponse>, Integer, Hash)> revoke_connected_app_token_with_http_info(session_id)
|
188
188
|
|
189
189
|
```ruby
|
190
190
|
begin
|
@@ -192,7 +192,7 @@ begin
|
|
192
192
|
data, status_code, headers = api_instance.revoke_connected_app_token_with_http_info(session_id)
|
193
193
|
p status_code # => 2xx
|
194
194
|
p headers # => { ... }
|
195
|
-
p data # => <
|
195
|
+
p data # => <SuccessResponse>
|
196
196
|
rescue KindeApi::ApiError => e
|
197
197
|
puts "Error when calling ConnectedAppsApi->revoke_connected_app_token_with_http_info: #{e}"
|
198
198
|
end
|
@@ -206,7 +206,7 @@ end
|
|
206
206
|
|
207
207
|
### Return type
|
208
208
|
|
209
|
-
[**
|
209
|
+
[**SuccessResponse**](SuccessResponse.md)
|
210
210
|
|
211
211
|
### Authorization
|
212
212
|
|
@@ -215,5 +215,5 @@ end
|
|
215
215
|
### HTTP request headers
|
216
216
|
|
217
217
|
- **Content-Type**: Not defined
|
218
|
-
- **Accept**: application/json
|
218
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
219
219
|
|
@@ -6,6 +6,11 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **name** | **String** | The organization's name. | [optional] |
|
8
8
|
| **feature_flags** | **Hash<String, String>** | The organization's feature flag settings. | [optional] |
|
9
|
+
| **external_id** | **String** | The organization's ID. | [optional] |
|
10
|
+
| **background_color** | **String** | The organization's brand settings - background color. | [optional] |
|
11
|
+
| **button_color** | **String** | The organization's brand settings - button color. | [optional] |
|
12
|
+
| **button_text_color** | **String** | The organization's brand settings - button text color. | [optional] |
|
13
|
+
| **link_color** | **String** | The organization's brand settings - link color. | [optional] |
|
9
14
|
|
10
15
|
## Example
|
11
16
|
|
@@ -14,7 +19,12 @@ require 'kinde_api'
|
|
14
19
|
|
15
20
|
instance = KindeApi::CreateOrganizationRequest.new(
|
16
21
|
name: null,
|
17
|
-
feature_flags: null
|
22
|
+
feature_flags: null,
|
23
|
+
external_id: null,
|
24
|
+
background_color: null,
|
25
|
+
button_color: null,
|
26
|
+
button_text_color: null,
|
27
|
+
link_color: null
|
18
28
|
)
|
19
29
|
```
|
20
30
|
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# KindeApi::CreateOrganizationResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **message** | **String** | | [optional] |
|
8
|
+
| **code** | **String** | | [optional] |
|
9
|
+
| **organization** | [**CreateOrganizationResponseOrganization**](CreateOrganizationResponseOrganization.md) | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'kinde_api'
|
15
|
+
|
16
|
+
instance = KindeApi::CreateOrganizationResponse.new(
|
17
|
+
message: null,
|
18
|
+
code: null,
|
19
|
+
organization: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# KindeApi::CreateOrganizationResponseOrganization
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | The organization's code. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'kinde_api'
|
13
|
+
|
14
|
+
instance = KindeApi::CreateOrganizationResponseOrganization.new(
|
15
|
+
code: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# KindeApi::CreateOrganizationUserRoleRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **role_id** | **String** | The role id. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'kinde_api'
|
13
|
+
|
14
|
+
instance = KindeApi::CreateOrganizationUserRoleRequest.new(
|
15
|
+
role_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# KindeApi::CreatePermissionRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The permission's name. | [optional] |
|
8
|
+
| **description** | **String** | The permission's description. | [optional] |
|
9
|
+
| **key** | **String** | The permission identifier to use in code. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'kinde_api'
|
15
|
+
|
16
|
+
instance = KindeApi::CreatePermissionRequest.new(
|
17
|
+
name: null,
|
18
|
+
description: null,
|
19
|
+
key: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# KindeApi::CreateRoleRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The role's name. | [optional] |
|
8
|
+
| **description** | **String** | The role's description. | [optional] |
|
9
|
+
| **key** | **String** | The role identifier to use in code. | [optional] |
|
10
|
+
| **is_default_role** | **Boolean** | Set role as default for new users. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'kinde_api'
|
16
|
+
|
17
|
+
instance = KindeApi::CreateRoleRequest.new(
|
18
|
+
name: null,
|
19
|
+
description: null,
|
20
|
+
key: null,
|
21
|
+
is_default_role: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# KindeApi::CreateSubscriberSuccessResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **subscriber** | [**CreateSubscriberSuccessResponseSubscriber**](CreateSubscriberSuccessResponseSubscriber.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'kinde_api'
|
13
|
+
|
14
|
+
instance = KindeApi::CreateSubscriberSuccessResponse.new(
|
15
|
+
subscriber: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# KindeApi::CreateSubscriberSuccessResponseSubscriber
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **subscriber_id** | **String** | A unique identifier for the subscriber. | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'kinde_api'
|
13
|
+
|
14
|
+
instance = KindeApi::CreateSubscriberSuccessResponseSubscriber.new(
|
15
|
+
subscriber_id: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# KindeApi::
|
1
|
+
# KindeApi::CreateUserResponse
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
@@ -13,7 +13,7 @@
|
|
13
13
|
```ruby
|
14
14
|
require 'kinde_api'
|
15
15
|
|
16
|
-
instance = KindeApi::
|
16
|
+
instance = KindeApi::CreateUserResponse.new(
|
17
17
|
id: null,
|
18
18
|
created: null,
|
19
19
|
identities: null
|
@@ -5,7 +5,8 @@ All URIs are relative to *https://app.kinde.com*
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**delete_environement_feature_flag_override**](EnvironmentsApi.md#delete_environement_feature_flag_override) | **DELETE** /api/v1/environment/feature_flags/{feature_flag_key} | Delete environment feature flag override |
|
8
|
-
| [**delete_environement_feature_flag_overrides**](EnvironmentsApi.md#delete_environement_feature_flag_overrides) | **DELETE** /api/v1/environment/feature_flags
|
8
|
+
| [**delete_environement_feature_flag_overrides**](EnvironmentsApi.md#delete_environement_feature_flag_overrides) | **DELETE** /api/v1/environment/feature_flags | Delete all environment feature flag overrides |
|
9
|
+
| [**get_environement_feature_flags**](EnvironmentsApi.md#get_environement_feature_flags) | **GET** /api/v1/environment/feature_flags | List environment feature flags |
|
9
10
|
| [**update_environement_feature_flag_override**](EnvironmentsApi.md#update_environement_feature_flag_override) | **PATCH** /api/v1/environment/feature_flags/{feature_flag_key} | Update environment feature flag override |
|
10
11
|
|
11
12
|
|
@@ -75,7 +76,7 @@ end
|
|
75
76
|
### HTTP request headers
|
76
77
|
|
77
78
|
- **Content-Type**: Not defined
|
78
|
-
- **Accept**: application/json
|
79
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
79
80
|
|
80
81
|
|
81
82
|
## delete_environement_feature_flag_overrides
|
@@ -141,7 +142,73 @@ This endpoint does not need any parameter.
|
|
141
142
|
### HTTP request headers
|
142
143
|
|
143
144
|
- **Content-Type**: Not defined
|
144
|
-
- **Accept**: application/json
|
145
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
146
|
+
|
147
|
+
|
148
|
+
## get_environement_feature_flags
|
149
|
+
|
150
|
+
> <GetEnvironmentFeatureFlagsResponse> get_environement_feature_flags
|
151
|
+
|
152
|
+
List environment feature flags
|
153
|
+
|
154
|
+
Get environment feature flags.
|
155
|
+
|
156
|
+
### Examples
|
157
|
+
|
158
|
+
```ruby
|
159
|
+
require 'time'
|
160
|
+
require 'kinde_api'
|
161
|
+
# setup authorization
|
162
|
+
KindeApi.configure do |config|
|
163
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
164
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
165
|
+
end
|
166
|
+
|
167
|
+
api_instance = KindeApi::EnvironmentsApi.new
|
168
|
+
|
169
|
+
begin
|
170
|
+
# List environment feature flags
|
171
|
+
result = api_instance.get_environement_feature_flags
|
172
|
+
p result
|
173
|
+
rescue KindeApi::ApiError => e
|
174
|
+
puts "Error when calling EnvironmentsApi->get_environement_feature_flags: #{e}"
|
175
|
+
end
|
176
|
+
```
|
177
|
+
|
178
|
+
#### Using the get_environement_feature_flags_with_http_info variant
|
179
|
+
|
180
|
+
This returns an Array which contains the response data, status code and headers.
|
181
|
+
|
182
|
+
> <Array(<GetEnvironmentFeatureFlagsResponse>, Integer, Hash)> get_environement_feature_flags_with_http_info
|
183
|
+
|
184
|
+
```ruby
|
185
|
+
begin
|
186
|
+
# List environment feature flags
|
187
|
+
data, status_code, headers = api_instance.get_environement_feature_flags_with_http_info
|
188
|
+
p status_code # => 2xx
|
189
|
+
p headers # => { ... }
|
190
|
+
p data # => <GetEnvironmentFeatureFlagsResponse>
|
191
|
+
rescue KindeApi::ApiError => e
|
192
|
+
puts "Error when calling EnvironmentsApi->get_environement_feature_flags_with_http_info: #{e}"
|
193
|
+
end
|
194
|
+
```
|
195
|
+
|
196
|
+
### Parameters
|
197
|
+
|
198
|
+
This endpoint does not need any parameter.
|
199
|
+
|
200
|
+
### Return type
|
201
|
+
|
202
|
+
[**GetEnvironmentFeatureFlagsResponse**](GetEnvironmentFeatureFlagsResponse.md)
|
203
|
+
|
204
|
+
### Authorization
|
205
|
+
|
206
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
207
|
+
|
208
|
+
### HTTP request headers
|
209
|
+
|
210
|
+
- **Content-Type**: Not defined
|
211
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
145
212
|
|
146
213
|
|
147
214
|
## update_environement_feature_flag_override
|
@@ -212,5 +279,5 @@ end
|
|
212
279
|
### HTTP request headers
|
213
280
|
|
214
281
|
- **Content-Type**: Not defined
|
215
|
-
- **Accept**: application/json
|
282
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
216
283
|
|
@@ -85,7 +85,7 @@ end
|
|
85
85
|
### HTTP request headers
|
86
86
|
|
87
87
|
- **Content-Type**: Not defined
|
88
|
-
- **Accept**: application/json
|
88
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
89
89
|
|
90
90
|
|
91
91
|
## delete_feature_flag
|
@@ -154,12 +154,12 @@ end
|
|
154
154
|
### HTTP request headers
|
155
155
|
|
156
156
|
- **Content-Type**: Not defined
|
157
|
-
- **Accept**: application/json
|
157
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
158
158
|
|
159
159
|
|
160
160
|
## update_feature_flag
|
161
161
|
|
162
|
-
> <SuccessResponse> update_feature_flag(feature_flag_key, name, description,
|
162
|
+
> <SuccessResponse> update_feature_flag(feature_flag_key, name, description, type, allow_override_level, default_value)
|
163
163
|
|
164
164
|
Update a feature flag
|
165
165
|
|
@@ -177,17 +177,16 @@ KindeApi.configure do |config|
|
|
177
177
|
end
|
178
178
|
|
179
179
|
api_instance = KindeApi::FeatureFlagsApi.new
|
180
|
-
feature_flag_key = 'feature_flag_key_example' # String | The identifier for the feature flag.
|
180
|
+
feature_flag_key = 'feature_flag_key_example' # String | The key identifier for the feature flag.
|
181
181
|
name = 'name_example' # String | The name of the flag.
|
182
182
|
description = 'description_example' # String | Description of the flag purpose.
|
183
|
-
key = 'key_example' # String | The flag identifier to use in code.
|
184
183
|
type = 'str' # String | The variable type
|
185
184
|
allow_override_level = 'env' # String | Allow the flag to be overridden at a different level.
|
186
185
|
default_value = 'default_value_example' # String | Default value for the flag used by environments and organizations.
|
187
186
|
|
188
187
|
begin
|
189
188
|
# Update a feature flag
|
190
|
-
result = api_instance.update_feature_flag(feature_flag_key, name, description,
|
189
|
+
result = api_instance.update_feature_flag(feature_flag_key, name, description, type, allow_override_level, default_value)
|
191
190
|
p result
|
192
191
|
rescue KindeApi::ApiError => e
|
193
192
|
puts "Error when calling FeatureFlagsApi->update_feature_flag: #{e}"
|
@@ -198,12 +197,12 @@ end
|
|
198
197
|
|
199
198
|
This returns an Array which contains the response data, status code and headers.
|
200
199
|
|
201
|
-
> <Array(<SuccessResponse>, Integer, Hash)> update_feature_flag_with_http_info(feature_flag_key, name, description,
|
200
|
+
> <Array(<SuccessResponse>, Integer, Hash)> update_feature_flag_with_http_info(feature_flag_key, name, description, type, allow_override_level, default_value)
|
202
201
|
|
203
202
|
```ruby
|
204
203
|
begin
|
205
204
|
# Update a feature flag
|
206
|
-
data, status_code, headers = api_instance.update_feature_flag_with_http_info(feature_flag_key, name, description,
|
205
|
+
data, status_code, headers = api_instance.update_feature_flag_with_http_info(feature_flag_key, name, description, type, allow_override_level, default_value)
|
207
206
|
p status_code # => 2xx
|
208
207
|
p headers # => { ... }
|
209
208
|
p data # => <SuccessResponse>
|
@@ -216,10 +215,9 @@ end
|
|
216
215
|
|
217
216
|
| Name | Type | Description | Notes |
|
218
217
|
| ---- | ---- | ----------- | ----- |
|
219
|
-
| **feature_flag_key** | **String** | The identifier for the feature flag. | |
|
218
|
+
| **feature_flag_key** | **String** | The key identifier for the feature flag. | |
|
220
219
|
| **name** | **String** | The name of the flag. | |
|
221
220
|
| **description** | **String** | Description of the flag purpose. | |
|
222
|
-
| **key** | **String** | The flag identifier to use in code. | |
|
223
221
|
| **type** | **String** | The variable type | |
|
224
222
|
| **allow_override_level** | **String** | Allow the flag to be overridden at a different level. | |
|
225
223
|
| **default_value** | **String** | Default value for the flag used by environments and organizations. | |
|
@@ -235,5 +233,5 @@ end
|
|
235
233
|
### HTTP request headers
|
236
234
|
|
237
235
|
- **Content-Type**: Not defined
|
238
|
-
- **Accept**: application/json
|
236
|
+
- **Accept**: application/json, application/json; charset=utf-8
|
239
237
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# KindeApi::GetApplicationsResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | Response code. | [optional] |
|
8
|
+
| **message** | **String** | Response message. | [optional] |
|
9
|
+
| **organizations** | [**Array<Application>**](Application.md) | | [optional] |
|
10
|
+
| **next_token** | **String** | Pagination token. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'kinde_api'
|
16
|
+
|
17
|
+
instance = KindeApi::GetApplicationsResponse.new(
|
18
|
+
code: null,
|
19
|
+
message: null,
|
20
|
+
organizations: null,
|
21
|
+
next_token: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|