kinde_sdk 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +15 -0
  3. data/Gemfile.lock +119 -0
  4. data/LICENSE +21 -0
  5. data/README.md +342 -0
  6. data/Rakefile +10 -0
  7. data/kinde_api/.gitignore +39 -0
  8. data/kinde_api/.rspec +2 -0
  9. data/kinde_api/README.md +103 -0
  10. data/kinde_api/docs/AddOrganizationUsers200Response.md +22 -0
  11. data/kinde_api/docs/AddOrganizationUsersRequest.md +18 -0
  12. data/kinde_api/docs/ApiResult.md +18 -0
  13. data/kinde_api/docs/ConnectedAppsAccessToken.md +20 -0
  14. data/kinde_api/docs/ConnectedAppsApi.md +219 -0
  15. data/kinde_api/docs/ConnectedAppsAuthUrl.md +20 -0
  16. data/kinde_api/docs/CreateOrganization201Response.md +20 -0
  17. data/kinde_api/docs/CreateOrganizationRequest.md +20 -0
  18. data/kinde_api/docs/CreateUser200Response.md +22 -0
  19. data/kinde_api/docs/CreateUserRequest.md +20 -0
  20. data/kinde_api/docs/CreateUserRequestIdentitiesInner.md +20 -0
  21. data/kinde_api/docs/CreateUserRequestIdentitiesInnerDetails.md +18 -0
  22. data/kinde_api/docs/CreateUserRequestProfile.md +20 -0
  23. data/kinde_api/docs/EnvironmentsApi.md +216 -0
  24. data/kinde_api/docs/Error.md +20 -0
  25. data/kinde_api/docs/ErrorResponse.md +18 -0
  26. data/kinde_api/docs/FeatureFlagsApi.md +239 -0
  27. data/kinde_api/docs/GetOrganizationUsers200Response.md +24 -0
  28. data/kinde_api/docs/GetOrganizations200Response.md +24 -0
  29. data/kinde_api/docs/GetUsers200Response.md +24 -0
  30. data/kinde_api/docs/OAuthApi.md +141 -0
  31. data/kinde_api/docs/Organization.md +22 -0
  32. data/kinde_api/docs/OrganizationUser.md +26 -0
  33. data/kinde_api/docs/OrganizationsApi.md +671 -0
  34. data/kinde_api/docs/RemoveOrganizationUsers200Response.md +20 -0
  35. data/kinde_api/docs/RemoveOrganizationUsersRequest.md +18 -0
  36. data/kinde_api/docs/SuccessResponse.md +20 -0
  37. data/kinde_api/docs/UpdateUserRequest.md +22 -0
  38. data/kinde_api/docs/User.md +28 -0
  39. data/kinde_api/docs/UserIdentity.md +20 -0
  40. data/kinde_api/docs/UserIdentityResult.md +20 -0
  41. data/kinde_api/docs/UserProfile.md +26 -0
  42. data/kinde_api/docs/UserProfileV2.md +30 -0
  43. data/kinde_api/docs/UsersApi.md +603 -0
  44. data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +221 -0
  45. data/kinde_api/lib/kinde_api/api/environments_api.rb +212 -0
  46. data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +309 -0
  47. data/kinde_api/lib/kinde_api/api/o_auth_api.rb +136 -0
  48. data/kinde_api/lib/kinde_api/api/organizations_api.rb +634 -0
  49. data/kinde_api/lib/kinde_api/api/users_api.rb +560 -0
  50. data/kinde_api/lib/kinde_api/api_client.rb +397 -0
  51. data/kinde_api/lib/kinde_api/api_error.rb +58 -0
  52. data/kinde_api/lib/kinde_api/configuration.rb +295 -0
  53. data/kinde_api/lib/kinde_api/models/add_organization_users200_response.rb +239 -0
  54. data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +220 -0
  55. data/kinde_api/lib/kinde_api/models/api_result.rb +218 -0
  56. data/kinde_api/lib/kinde_api/models/connected_apps_access_token.rb +228 -0
  57. data/kinde_api/lib/kinde_api/models/connected_apps_auth_url.rb +228 -0
  58. data/kinde_api/lib/kinde_api/models/create_organization201_response.rb +228 -0
  59. data/kinde_api/lib/kinde_api/models/create_organization_request.rb +252 -0
  60. data/kinde_api/lib/kinde_api/models/create_user200_response.rb +239 -0
  61. data/kinde_api/lib/kinde_api/models/create_user_request.rb +229 -0
  62. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +228 -0
  63. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner_details.rb +219 -0
  64. data/kinde_api/lib/kinde_api/models/create_user_request_profile.rb +229 -0
  65. data/kinde_api/lib/kinde_api/models/error.rb +228 -0
  66. data/kinde_api/lib/kinde_api/models/error_response.rb +219 -0
  67. data/kinde_api/lib/kinde_api/models/get_organization_users200_response.rb +249 -0
  68. data/kinde_api/lib/kinde_api/models/get_organizations200_response.rb +249 -0
  69. data/kinde_api/lib/kinde_api/models/get_users200_response.rb +249 -0
  70. data/kinde_api/lib/kinde_api/models/organization.rb +235 -0
  71. data/kinde_api/lib/kinde_api/models/organization_user.rb +253 -0
  72. data/kinde_api/lib/kinde_api/models/remove_organization_users200_response.rb +228 -0
  73. data/kinde_api/lib/kinde_api/models/remove_organization_users_request.rb +220 -0
  74. data/kinde_api/lib/kinde_api/models/success_response.rb +226 -0
  75. data/kinde_api/lib/kinde_api/models/update_user_request.rb +238 -0
  76. data/kinde_api/lib/kinde_api/models/user.rb +269 -0
  77. data/kinde_api/lib/kinde_api/models/user_identity.rb +227 -0
  78. data/kinde_api/lib/kinde_api/models/user_identity_result.rb +229 -0
  79. data/kinde_api/lib/kinde_api/models/user_profile.rb +259 -0
  80. data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +279 -0
  81. data/kinde_api/lib/kinde_api/version.rb +15 -0
  82. data/kinde_api/lib/kinde_api.rb +73 -0
  83. data/kinde_api/spec/api/connected_apps_api_spec.rb +72 -0
  84. data/kinde_api/spec/api/environments_api_spec.rb +71 -0
  85. data/kinde_api/spec/api/feature_flags_api_spec.rb +82 -0
  86. data/kinde_api/spec/api/o_auth_api_spec.rb +57 -0
  87. data/kinde_api/spec/api/organizations_api_spec.rb +154 -0
  88. data/kinde_api/spec/api/users_api_spec.rb +141 -0
  89. data/kinde_api/spec/api_client_spec.rb +229 -0
  90. data/kinde_api/spec/configuration_spec.rb +42 -0
  91. data/kinde_api/spec/models/add_organization_users200_response_spec.rb +46 -0
  92. data/kinde_api/spec/models/add_organization_users_request_spec.rb +34 -0
  93. data/kinde_api/spec/models/api_result_spec.rb +34 -0
  94. data/kinde_api/spec/models/connected_apps_access_token_spec.rb +40 -0
  95. data/kinde_api/spec/models/connected_apps_auth_url_spec.rb +40 -0
  96. data/kinde_api/spec/models/create_organization201_response_spec.rb +40 -0
  97. data/kinde_api/spec/models/create_organization_request_spec.rb +44 -0
  98. data/kinde_api/spec/models/create_user200_response_spec.rb +46 -0
  99. data/kinde_api/spec/models/create_user_request_identities_inner_details_spec.rb +34 -0
  100. data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +40 -0
  101. data/kinde_api/spec/models/create_user_request_profile_spec.rb +40 -0
  102. data/kinde_api/spec/models/create_user_request_spec.rb +40 -0
  103. data/kinde_api/spec/models/error_response_spec.rb +34 -0
  104. data/kinde_api/spec/models/error_spec.rb +40 -0
  105. data/kinde_api/spec/models/get_organization_users200_response_spec.rb +52 -0
  106. data/kinde_api/spec/models/get_organizations200_response_spec.rb +52 -0
  107. data/kinde_api/spec/models/get_users200_response_spec.rb +52 -0
  108. data/kinde_api/spec/models/organization_spec.rb +46 -0
  109. data/kinde_api/spec/models/organization_user_spec.rb +58 -0
  110. data/kinde_api/spec/models/remove_organization_users200_response_spec.rb +40 -0
  111. data/kinde_api/spec/models/remove_organization_users_request_spec.rb +34 -0
  112. data/kinde_api/spec/models/success_response_spec.rb +40 -0
  113. data/kinde_api/spec/models/update_user_request_spec.rb +46 -0
  114. data/kinde_api/spec/models/user_identity_result_spec.rb +40 -0
  115. data/kinde_api/spec/models/user_identity_spec.rb +40 -0
  116. data/kinde_api/spec/models/user_profile_spec.rb +58 -0
  117. data/kinde_api/spec/models/user_profile_v2_spec.rb +70 -0
  118. data/kinde_api/spec/models/user_spec.rb +64 -0
  119. data/kinde_api/spec/spec_helper.rb +111 -0
  120. data/kinde_sdk.gemspec +33 -0
  121. data/lib/kinde_sdk/client.rb +49 -0
  122. data/lib/kinde_sdk/configuration.rb +50 -0
  123. data/lib/kinde_sdk/version.rb +3 -0
  124. data/lib/kinde_sdk.rb +109 -0
  125. data/openapitools.json +7 -0
  126. data/spec/kinde_sdk_spec.rb +105 -0
  127. data/spec/spec_helper.rb +82 -0
  128. 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&lt;OrganizationUser&gt;**](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&lt;Organization&gt;**](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&lt;User&gt;**](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
+