kinde_sdk 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +15 -0
- data/Gemfile.lock +119 -0
- data/LICENSE +21 -0
- data/README.md +342 -0
- data/Rakefile +10 -0
- data/kinde_api/.gitignore +39 -0
- data/kinde_api/.rspec +2 -0
- data/kinde_api/README.md +103 -0
- data/kinde_api/docs/AddOrganizationUsers200Response.md +22 -0
- data/kinde_api/docs/AddOrganizationUsersRequest.md +18 -0
- data/kinde_api/docs/ApiResult.md +18 -0
- data/kinde_api/docs/ConnectedAppsAccessToken.md +20 -0
- data/kinde_api/docs/ConnectedAppsApi.md +219 -0
- data/kinde_api/docs/ConnectedAppsAuthUrl.md +20 -0
- data/kinde_api/docs/CreateOrganization201Response.md +20 -0
- data/kinde_api/docs/CreateOrganizationRequest.md +20 -0
- data/kinde_api/docs/CreateUser200Response.md +22 -0
- data/kinde_api/docs/CreateUserRequest.md +20 -0
- data/kinde_api/docs/CreateUserRequestIdentitiesInner.md +20 -0
- data/kinde_api/docs/CreateUserRequestIdentitiesInnerDetails.md +18 -0
- data/kinde_api/docs/CreateUserRequestProfile.md +20 -0
- data/kinde_api/docs/EnvironmentsApi.md +216 -0
- data/kinde_api/docs/Error.md +20 -0
- data/kinde_api/docs/ErrorResponse.md +18 -0
- data/kinde_api/docs/FeatureFlagsApi.md +239 -0
- data/kinde_api/docs/GetOrganizationUsers200Response.md +24 -0
- data/kinde_api/docs/GetOrganizations200Response.md +24 -0
- data/kinde_api/docs/GetUsers200Response.md +24 -0
- data/kinde_api/docs/OAuthApi.md +141 -0
- data/kinde_api/docs/Organization.md +22 -0
- data/kinde_api/docs/OrganizationUser.md +26 -0
- data/kinde_api/docs/OrganizationsApi.md +671 -0
- data/kinde_api/docs/RemoveOrganizationUsers200Response.md +20 -0
- data/kinde_api/docs/RemoveOrganizationUsersRequest.md +18 -0
- data/kinde_api/docs/SuccessResponse.md +20 -0
- data/kinde_api/docs/UpdateUserRequest.md +22 -0
- data/kinde_api/docs/User.md +28 -0
- data/kinde_api/docs/UserIdentity.md +20 -0
- data/kinde_api/docs/UserIdentityResult.md +20 -0
- data/kinde_api/docs/UserProfile.md +26 -0
- data/kinde_api/docs/UserProfileV2.md +30 -0
- data/kinde_api/docs/UsersApi.md +603 -0
- data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +221 -0
- data/kinde_api/lib/kinde_api/api/environments_api.rb +212 -0
- data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +309 -0
- data/kinde_api/lib/kinde_api/api/o_auth_api.rb +136 -0
- data/kinde_api/lib/kinde_api/api/organizations_api.rb +634 -0
- data/kinde_api/lib/kinde_api/api/users_api.rb +560 -0
- data/kinde_api/lib/kinde_api/api_client.rb +397 -0
- data/kinde_api/lib/kinde_api/api_error.rb +58 -0
- data/kinde_api/lib/kinde_api/configuration.rb +295 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users200_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/api_result.rb +218 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +228 -0
- data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +228 -0
- data/kinde_api/lib/kinde_api/models/create_organization201_response.rb +228 -0
- data/kinde_api/lib/kinde_api/models/create_organization_request.rb +252 -0
- data/kinde_api/lib/kinde_api/models/create_user200_response.rb +239 -0
- data/kinde_api/lib/kinde_api/models/create_user_request.rb +229 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +228 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +219 -0
- data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +229 -0
- data/kinde_api/lib/kinde_api/models/error.rb +228 -0
- data/kinde_api/lib/kinde_api/models/error_response.rb +219 -0
- data/kinde_api/lib/kinde_api/models/get_organization_users200_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/get_organizations200_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/get_users200_response.rb +249 -0
- data/kinde_api/lib/kinde_api/models/organization.rb +235 -0
- data/kinde_api/lib/kinde_api/models/organization_user.rb +253 -0
- data/kinde_api/lib/kinde_api/models/remove_organization_users200_response.rb +228 -0
- data/kinde_api/lib/kinde_api/models/remove_organization_users_request.rb +220 -0
- data/kinde_api/lib/kinde_api/models/success_response.rb +226 -0
- data/kinde_api/lib/kinde_api/models/update_user_request.rb +238 -0
- data/kinde_api/lib/kinde_api/models/user.rb +269 -0
- data/kinde_api/lib/kinde_api/models/user_identity.rb +227 -0
- data/kinde_api/lib/kinde_api/models/user_identity_result.rb +229 -0
- data/kinde_api/lib/kinde_api/models/user_profile.rb +259 -0
- data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +279 -0
- data/kinde_api/lib/kinde_api/version.rb +15 -0
- data/kinde_api/lib/kinde_api.rb +73 -0
- data/kinde_api/spec/api/connected_apps_api_spec.rb +72 -0
- data/kinde_api/spec/api/environments_api_spec.rb +71 -0
- data/kinde_api/spec/api/feature_flags_api_spec.rb +82 -0
- data/kinde_api/spec/api/o_auth_api_spec.rb +57 -0
- data/kinde_api/spec/api/organizations_api_spec.rb +154 -0
- data/kinde_api/spec/api/users_api_spec.rb +141 -0
- data/kinde_api/spec/api_client_spec.rb +229 -0
- data/kinde_api/spec/configuration_spec.rb +42 -0
- data/kinde_api/spec/models/add_organization_users200_response_spec.rb +46 -0
- data/kinde_api/spec/models/add_organization_users_request_spec.rb +34 -0
- data/kinde_api/spec/models/api_result_spec.rb +34 -0
- data/kinde_api/spec/models/connected_apps_access_token_spec.rb +40 -0
- data/kinde_api/spec/models/connected_apps_auth_url_spec.rb +40 -0
- data/kinde_api/spec/models/create_organization201_response_spec.rb +40 -0
- data/kinde_api/spec/models/create_organization_request_spec.rb +44 -0
- data/kinde_api/spec/models/create_user200_response_spec.rb +46 -0
- data/kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb +34 -0
- data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +40 -0
- data/kinde_api/spec/models/create_user_request_profile_spec.rb +40 -0
- data/kinde_api/spec/models/create_user_request_spec.rb +40 -0
- data/kinde_api/spec/models/error_response_spec.rb +34 -0
- data/kinde_api/spec/models/error_spec.rb +40 -0
- data/kinde_api/spec/models/get_organization_users200_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_organizations200_response_spec.rb +52 -0
- data/kinde_api/spec/models/get_users200_response_spec.rb +52 -0
- data/kinde_api/spec/models/organization_spec.rb +46 -0
- data/kinde_api/spec/models/organization_user_spec.rb +58 -0
- data/kinde_api/spec/models/remove_organization_users200_response_spec.rb +40 -0
- data/kinde_api/spec/models/remove_organization_users_request_spec.rb +34 -0
- data/kinde_api/spec/models/success_response_spec.rb +40 -0
- data/kinde_api/spec/models/update_user_request_spec.rb +46 -0
- data/kinde_api/spec/models/user_identity_result_spec.rb +40 -0
- data/kinde_api/spec/models/user_identity_spec.rb +40 -0
- data/kinde_api/spec/models/user_profile_spec.rb +58 -0
- data/kinde_api/spec/models/user_profile_v2_spec.rb +70 -0
- data/kinde_api/spec/models/user_spec.rb +64 -0
- data/kinde_api/spec/spec_helper.rb +111 -0
- data/kinde_sdk.gemspec +33 -0
- data/lib/kinde_sdk/client.rb +49 -0
- data/lib/kinde_sdk/configuration.rb +50 -0
- data/lib/kinde_sdk/version.rb +3 -0
- data/lib/kinde_sdk.rb +109 -0
- data/openapitools.json +7 -0
- data/spec/kinde_sdk_spec.rb +105 -0
- data/spec/spec_helper.rb +82 -0
- metadata +291 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
# KindeApi::Error
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | Error code. | [optional] |
|
8
|
+
| **message** | **String** | Error message. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'kinde_api'
|
14
|
+
|
15
|
+
instance = KindeApi::Error.new(
|
16
|
+
code: null,
|
17
|
+
message: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# KindeApi::ErrorResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **errors** | [**Array<Error>**](Error.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'kinde_api'
|
13
|
+
|
14
|
+
instance = KindeApi::ErrorResponse.new(
|
15
|
+
errors: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,239 @@
|
|
1
|
+
# KindeApi::FeatureFlagsApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://app.kinde.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**create_feature_flag**](FeatureFlagsApi.md#create_feature_flag) | **POST** /api/v1/feature_flags | Create a new feature flag |
|
8
|
+
| [**delete_feature_flag**](FeatureFlagsApi.md#delete_feature_flag) | **DELETE** /api/v1/feature_flags/{feature_flag_key} | Delete a feature flag |
|
9
|
+
| [**update_feature_flag**](FeatureFlagsApi.md#update_feature_flag) | **PUT** /api/v1/feature_flags/{feature_flag_key} | Update a feature flag |
|
10
|
+
|
11
|
+
|
12
|
+
## create_feature_flag
|
13
|
+
|
14
|
+
> <SuccessResponse> create_feature_flag(name, description, key, type, allow_override_level, default_value)
|
15
|
+
|
16
|
+
Create a new feature flag
|
17
|
+
|
18
|
+
Create feature flag.
|
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::FeatureFlagsApi.new
|
32
|
+
name = 'name_example' # String | The name of the flag.
|
33
|
+
description = 'description_example' # String | Description of the flag purpose.
|
34
|
+
key = 'key_example' # String | The flag identifier to use in code.
|
35
|
+
type = 'str' # String | The variable type.
|
36
|
+
allow_override_level = 'env' # String | Allow the flag to be overridden at a different level.
|
37
|
+
default_value = 'default_value_example' # String | Default value for the flag used by environments and organizations.
|
38
|
+
|
39
|
+
begin
|
40
|
+
# Create a new feature flag
|
41
|
+
result = api_instance.create_feature_flag(name, description, key, type, allow_override_level, default_value)
|
42
|
+
p result
|
43
|
+
rescue KindeApi::ApiError => e
|
44
|
+
puts "Error when calling FeatureFlagsApi->create_feature_flag: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
#### Using the create_feature_flag_with_http_info variant
|
49
|
+
|
50
|
+
This returns an Array which contains the response data, status code and headers.
|
51
|
+
|
52
|
+
> <Array(<SuccessResponse>, Integer, Hash)> create_feature_flag_with_http_info(name, description, key, type, allow_override_level, default_value)
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
begin
|
56
|
+
# Create a new feature flag
|
57
|
+
data, status_code, headers = api_instance.create_feature_flag_with_http_info(name, description, key, type, allow_override_level, default_value)
|
58
|
+
p status_code # => 2xx
|
59
|
+
p headers # => { ... }
|
60
|
+
p data # => <SuccessResponse>
|
61
|
+
rescue KindeApi::ApiError => e
|
62
|
+
puts "Error when calling FeatureFlagsApi->create_feature_flag_with_http_info: #{e}"
|
63
|
+
end
|
64
|
+
```
|
65
|
+
|
66
|
+
### Parameters
|
67
|
+
|
68
|
+
| Name | Type | Description | Notes |
|
69
|
+
| ---- | ---- | ----------- | ----- |
|
70
|
+
| **name** | **String** | The name of the flag. | |
|
71
|
+
| **description** | **String** | Description of the flag purpose. | |
|
72
|
+
| **key** | **String** | The flag identifier to use in code. | |
|
73
|
+
| **type** | **String** | The variable type. | |
|
74
|
+
| **allow_override_level** | **String** | Allow the flag to be overridden at a different level. | |
|
75
|
+
| **default_value** | **String** | Default value for the flag used by environments and organizations. | |
|
76
|
+
|
77
|
+
### Return type
|
78
|
+
|
79
|
+
[**SuccessResponse**](SuccessResponse.md)
|
80
|
+
|
81
|
+
### Authorization
|
82
|
+
|
83
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
84
|
+
|
85
|
+
### HTTP request headers
|
86
|
+
|
87
|
+
- **Content-Type**: Not defined
|
88
|
+
- **Accept**: application/json
|
89
|
+
|
90
|
+
|
91
|
+
## delete_feature_flag
|
92
|
+
|
93
|
+
> <SuccessResponse> delete_feature_flag(feature_flag_key)
|
94
|
+
|
95
|
+
Delete a feature flag
|
96
|
+
|
97
|
+
Delete feature flag
|
98
|
+
|
99
|
+
### Examples
|
100
|
+
|
101
|
+
```ruby
|
102
|
+
require 'time'
|
103
|
+
require 'kinde_api'
|
104
|
+
# setup authorization
|
105
|
+
KindeApi.configure do |config|
|
106
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
107
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
108
|
+
end
|
109
|
+
|
110
|
+
api_instance = KindeApi::FeatureFlagsApi.new
|
111
|
+
feature_flag_key = 'feature_flag_key_example' # String | The identifier for the feature flag.
|
112
|
+
|
113
|
+
begin
|
114
|
+
# Delete a feature flag
|
115
|
+
result = api_instance.delete_feature_flag(feature_flag_key)
|
116
|
+
p result
|
117
|
+
rescue KindeApi::ApiError => e
|
118
|
+
puts "Error when calling FeatureFlagsApi->delete_feature_flag: #{e}"
|
119
|
+
end
|
120
|
+
```
|
121
|
+
|
122
|
+
#### Using the delete_feature_flag_with_http_info variant
|
123
|
+
|
124
|
+
This returns an Array which contains the response data, status code and headers.
|
125
|
+
|
126
|
+
> <Array(<SuccessResponse>, Integer, Hash)> delete_feature_flag_with_http_info(feature_flag_key)
|
127
|
+
|
128
|
+
```ruby
|
129
|
+
begin
|
130
|
+
# Delete a feature flag
|
131
|
+
data, status_code, headers = api_instance.delete_feature_flag_with_http_info(feature_flag_key)
|
132
|
+
p status_code # => 2xx
|
133
|
+
p headers # => { ... }
|
134
|
+
p data # => <SuccessResponse>
|
135
|
+
rescue KindeApi::ApiError => e
|
136
|
+
puts "Error when calling FeatureFlagsApi->delete_feature_flag_with_http_info: #{e}"
|
137
|
+
end
|
138
|
+
```
|
139
|
+
|
140
|
+
### Parameters
|
141
|
+
|
142
|
+
| Name | Type | Description | Notes |
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
144
|
+
| **feature_flag_key** | **String** | The identifier for the feature flag. | |
|
145
|
+
|
146
|
+
### Return type
|
147
|
+
|
148
|
+
[**SuccessResponse**](SuccessResponse.md)
|
149
|
+
|
150
|
+
### Authorization
|
151
|
+
|
152
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
153
|
+
|
154
|
+
### HTTP request headers
|
155
|
+
|
156
|
+
- **Content-Type**: Not defined
|
157
|
+
- **Accept**: application/json
|
158
|
+
|
159
|
+
|
160
|
+
## update_feature_flag
|
161
|
+
|
162
|
+
> <SuccessResponse> update_feature_flag(feature_flag_key, name, description, key, type, allow_override_level, default_value)
|
163
|
+
|
164
|
+
Update a feature flag
|
165
|
+
|
166
|
+
Update feature flag.
|
167
|
+
|
168
|
+
### Examples
|
169
|
+
|
170
|
+
```ruby
|
171
|
+
require 'time'
|
172
|
+
require 'kinde_api'
|
173
|
+
# setup authorization
|
174
|
+
KindeApi.configure do |config|
|
175
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
176
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
177
|
+
end
|
178
|
+
|
179
|
+
api_instance = KindeApi::FeatureFlagsApi.new
|
180
|
+
feature_flag_key = 'feature_flag_key_example' # String | The identifier for the feature flag.
|
181
|
+
name = 'name_example' # String | The name of the flag.
|
182
|
+
description = 'description_example' # String | Description of the flag purpose.
|
183
|
+
key = 'key_example' # String | The flag identifier to use in code.
|
184
|
+
type = 'str' # String | The variable type
|
185
|
+
allow_override_level = 'env' # String | Allow the flag to be overridden at a different level.
|
186
|
+
default_value = 'default_value_example' # String | Default value for the flag used by environments and organizations.
|
187
|
+
|
188
|
+
begin
|
189
|
+
# Update a feature flag
|
190
|
+
result = api_instance.update_feature_flag(feature_flag_key, name, description, key, type, allow_override_level, default_value)
|
191
|
+
p result
|
192
|
+
rescue KindeApi::ApiError => e
|
193
|
+
puts "Error when calling FeatureFlagsApi->update_feature_flag: #{e}"
|
194
|
+
end
|
195
|
+
```
|
196
|
+
|
197
|
+
#### Using the update_feature_flag_with_http_info variant
|
198
|
+
|
199
|
+
This returns an Array which contains the response data, status code and headers.
|
200
|
+
|
201
|
+
> <Array(<SuccessResponse>, Integer, Hash)> update_feature_flag_with_http_info(feature_flag_key, name, description, key, type, allow_override_level, default_value)
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
begin
|
205
|
+
# Update a feature flag
|
206
|
+
data, status_code, headers = api_instance.update_feature_flag_with_http_info(feature_flag_key, name, description, key, type, allow_override_level, default_value)
|
207
|
+
p status_code # => 2xx
|
208
|
+
p headers # => { ... }
|
209
|
+
p data # => <SuccessResponse>
|
210
|
+
rescue KindeApi::ApiError => e
|
211
|
+
puts "Error when calling FeatureFlagsApi->update_feature_flag_with_http_info: #{e}"
|
212
|
+
end
|
213
|
+
```
|
214
|
+
|
215
|
+
### Parameters
|
216
|
+
|
217
|
+
| Name | Type | Description | Notes |
|
218
|
+
| ---- | ---- | ----------- | ----- |
|
219
|
+
| **feature_flag_key** | **String** | The identifier for the feature flag. | |
|
220
|
+
| **name** | **String** | The name of the flag. | |
|
221
|
+
| **description** | **String** | Description of the flag purpose. | |
|
222
|
+
| **key** | **String** | The flag identifier to use in code. | |
|
223
|
+
| **type** | **String** | The variable type | |
|
224
|
+
| **allow_override_level** | **String** | Allow the flag to be overridden at a different level. | |
|
225
|
+
| **default_value** | **String** | Default value for the flag used by environments and organizations. | |
|
226
|
+
|
227
|
+
### Return type
|
228
|
+
|
229
|
+
[**SuccessResponse**](SuccessResponse.md)
|
230
|
+
|
231
|
+
### Authorization
|
232
|
+
|
233
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
234
|
+
|
235
|
+
### HTTP request headers
|
236
|
+
|
237
|
+
- **Content-Type**: Not defined
|
238
|
+
- **Accept**: application/json
|
239
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# KindeApi::GetOrganizationUsers200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | Response code. | [optional] |
|
8
|
+
| **message** | **String** | Response message. | [optional] |
|
9
|
+
| **organization_users** | [**Array<OrganizationUser>**](OrganizationUser.md) | | [optional] |
|
10
|
+
| **next_token** | **String** | Pagination token. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'kinde_api'
|
16
|
+
|
17
|
+
instance = KindeApi::GetOrganizationUsers200Response.new(
|
18
|
+
code: null,
|
19
|
+
message: null,
|
20
|
+
organization_users: null,
|
21
|
+
next_token: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# KindeApi::GetOrganizations200Response
|
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<Organization>**](Organization.md) | | [optional] |
|
10
|
+
| **next_token** | **String** | Pagination token. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'kinde_api'
|
16
|
+
|
17
|
+
instance = KindeApi::GetOrganizations200Response.new(
|
18
|
+
code: null,
|
19
|
+
message: null,
|
20
|
+
organizations: null,
|
21
|
+
next_token: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# KindeApi::GetUsers200Response
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | Response code. | [optional] |
|
8
|
+
| **message** | **String** | Response message. | [optional] |
|
9
|
+
| **users** | [**Array<User>**](User.md) | | [optional] |
|
10
|
+
| **next_token** | **String** | Pagination token. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'kinde_api'
|
16
|
+
|
17
|
+
instance = KindeApi::GetUsers200Response.new(
|
18
|
+
code: null,
|
19
|
+
message: null,
|
20
|
+
users: null,
|
21
|
+
next_token: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,141 @@
|
|
1
|
+
# KindeApi::OAuthApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://app.kinde.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**get_user**](OAuthApi.md#get_user) | **GET** /oauth2/user_profile | Returns the details of the currently logged in user |
|
8
|
+
| [**get_user_profile_v2**](OAuthApi.md#get_user_profile_v2) | **GET** /oauth2/v2/user_profile | Returns the details of the currently logged in user |
|
9
|
+
|
10
|
+
|
11
|
+
## get_user
|
12
|
+
|
13
|
+
> <UserProfile> get_user
|
14
|
+
|
15
|
+
Returns the details of the currently logged in user
|
16
|
+
|
17
|
+
Contains the id, names and email of the currently logged in user.
|
18
|
+
|
19
|
+
### Examples
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'time'
|
23
|
+
require 'kinde_api'
|
24
|
+
# setup authorization
|
25
|
+
KindeApi.configure do |config|
|
26
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
27
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
28
|
+
end
|
29
|
+
|
30
|
+
api_instance = KindeApi::OAuthApi.new
|
31
|
+
|
32
|
+
begin
|
33
|
+
# Returns the details of the currently logged in user
|
34
|
+
result = api_instance.get_user
|
35
|
+
p result
|
36
|
+
rescue KindeApi::ApiError => e
|
37
|
+
puts "Error when calling OAuthApi->get_user: #{e}"
|
38
|
+
end
|
39
|
+
```
|
40
|
+
|
41
|
+
#### Using the get_user_with_http_info variant
|
42
|
+
|
43
|
+
This returns an Array which contains the response data, status code and headers.
|
44
|
+
|
45
|
+
> <Array(<UserProfile>, Integer, Hash)> get_user_with_http_info
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
begin
|
49
|
+
# Returns the details of the currently logged in user
|
50
|
+
data, status_code, headers = api_instance.get_user_with_http_info
|
51
|
+
p status_code # => 2xx
|
52
|
+
p headers # => { ... }
|
53
|
+
p data # => <UserProfile>
|
54
|
+
rescue KindeApi::ApiError => e
|
55
|
+
puts "Error when calling OAuthApi->get_user_with_http_info: #{e}"
|
56
|
+
end
|
57
|
+
```
|
58
|
+
|
59
|
+
### Parameters
|
60
|
+
|
61
|
+
This endpoint does not need any parameter.
|
62
|
+
|
63
|
+
### Return type
|
64
|
+
|
65
|
+
[**UserProfile**](UserProfile.md)
|
66
|
+
|
67
|
+
### Authorization
|
68
|
+
|
69
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
70
|
+
|
71
|
+
### HTTP request headers
|
72
|
+
|
73
|
+
- **Content-Type**: Not defined
|
74
|
+
- **Accept**: application/json
|
75
|
+
|
76
|
+
|
77
|
+
## get_user_profile_v2
|
78
|
+
|
79
|
+
> <UserProfileV2> get_user_profile_v2
|
80
|
+
|
81
|
+
Returns the details of the currently logged in user
|
82
|
+
|
83
|
+
Contains the id, names, profile picture URL and email of the currently logged in user.
|
84
|
+
|
85
|
+
### Examples
|
86
|
+
|
87
|
+
```ruby
|
88
|
+
require 'time'
|
89
|
+
require 'kinde_api'
|
90
|
+
# setup authorization
|
91
|
+
KindeApi.configure do |config|
|
92
|
+
# Configure Bearer authorization (JWT): kindeBearerAuth
|
93
|
+
config.access_token = 'YOUR_BEARER_TOKEN'
|
94
|
+
end
|
95
|
+
|
96
|
+
api_instance = KindeApi::OAuthApi.new
|
97
|
+
|
98
|
+
begin
|
99
|
+
# Returns the details of the currently logged in user
|
100
|
+
result = api_instance.get_user_profile_v2
|
101
|
+
p result
|
102
|
+
rescue KindeApi::ApiError => e
|
103
|
+
puts "Error when calling OAuthApi->get_user_profile_v2: #{e}"
|
104
|
+
end
|
105
|
+
```
|
106
|
+
|
107
|
+
#### Using the get_user_profile_v2_with_http_info variant
|
108
|
+
|
109
|
+
This returns an Array which contains the response data, status code and headers.
|
110
|
+
|
111
|
+
> <Array(<UserProfileV2>, Integer, Hash)> get_user_profile_v2_with_http_info
|
112
|
+
|
113
|
+
```ruby
|
114
|
+
begin
|
115
|
+
# Returns the details of the currently logged in user
|
116
|
+
data, status_code, headers = api_instance.get_user_profile_v2_with_http_info
|
117
|
+
p status_code # => 2xx
|
118
|
+
p headers # => { ... }
|
119
|
+
p data # => <UserProfileV2>
|
120
|
+
rescue KindeApi::ApiError => e
|
121
|
+
puts "Error when calling OAuthApi->get_user_profile_v2_with_http_info: #{e}"
|
122
|
+
end
|
123
|
+
```
|
124
|
+
|
125
|
+
### Parameters
|
126
|
+
|
127
|
+
This endpoint does not need any parameter.
|
128
|
+
|
129
|
+
### Return type
|
130
|
+
|
131
|
+
[**UserProfileV2**](UserProfileV2.md)
|
132
|
+
|
133
|
+
### Authorization
|
134
|
+
|
135
|
+
[kindeBearerAuth](../README.md#kindeBearerAuth)
|
136
|
+
|
137
|
+
### HTTP request headers
|
138
|
+
|
139
|
+
- **Content-Type**: Not defined
|
140
|
+
- **Accept**: application/json
|
141
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# KindeApi::Organization
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | | [optional] |
|
8
|
+
| **name** | **String** | | [optional] |
|
9
|
+
| **is_default** | **Boolean** | | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'kinde_api'
|
15
|
+
|
16
|
+
instance = KindeApi::Organization.new(
|
17
|
+
code: null,
|
18
|
+
name: null,
|
19
|
+
is_default: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# KindeApi::OrganizationUser
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | | [optional] |
|
8
|
+
| **email** | **String** | | [optional] |
|
9
|
+
| **full_name** | **String** | | [optional] |
|
10
|
+
| **last_name** | **String** | | [optional] |
|
11
|
+
| **first_name** | **String** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'kinde_api'
|
17
|
+
|
18
|
+
instance = KindeApi::OrganizationUser.new(
|
19
|
+
id: null,
|
20
|
+
email: null,
|
21
|
+
full_name: null,
|
22
|
+
last_name: null,
|
23
|
+
first_name: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|