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,603 @@
1
+ # KindeApi::UsersApi
2
+
3
+ All URIs are relative to *https://app.kinde.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_organization_users**](UsersApi.md#add_organization_users) | **POST** /api/v1/organization/users | Assign Users to an Organization |
8
+ | [**create_user**](UsersApi.md#create_user) | **POST** /api/v1/user | Create User |
9
+ | [**deleteuser**](UsersApi.md#deleteuser) | **DELETE** /api/v1/user | Delete User |
10
+ | [**get_organization_users**](UsersApi.md#get_organization_users) | **GET** /api/v1/organization/users | List Organization Users |
11
+ | [**get_user_data**](UsersApi.md#get_user_data) | **GET** /api/v1/user | Get User |
12
+ | [**get_users**](UsersApi.md#get_users) | **GET** /api/v1/users | List Users |
13
+ | [**remove_organization_users**](UsersApi.md#remove_organization_users) | **PATCH** /api/v1/organization/users | Remove Users from an Organization |
14
+ | [**update_user**](UsersApi.md#update_user) | **PATCH** /api/v1/user | Update User |
15
+
16
+
17
+ ## add_organization_users
18
+
19
+ > <AddOrganizationUsers200Response> add_organization_users(opts)
20
+
21
+ Assign Users to an Organization
22
+
23
+ Add existing users to an organization.
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'kinde_api'
30
+ # setup authorization
31
+ KindeApi.configure do |config|
32
+ # Configure Bearer authorization (JWT): kindeBearerAuth
33
+ config.access_token = 'YOUR_BEARER_TOKEN'
34
+ end
35
+
36
+ api_instance = KindeApi::UsersApi.new
37
+ opts = {
38
+ code: 'code_example', # String | The organization's code.
39
+ add_organization_users_request: KindeApi::AddOrganizationUsersRequest.new # AddOrganizationUsersRequest |
40
+ }
41
+
42
+ begin
43
+ # Assign Users to an Organization
44
+ result = api_instance.add_organization_users(opts)
45
+ p result
46
+ rescue KindeApi::ApiError => e
47
+ puts "Error when calling UsersApi->add_organization_users: #{e}"
48
+ end
49
+ ```
50
+
51
+ #### Using the add_organization_users_with_http_info variant
52
+
53
+ This returns an Array which contains the response data, status code and headers.
54
+
55
+ > <Array(<AddOrganizationUsers200Response>, Integer, Hash)> add_organization_users_with_http_info(opts)
56
+
57
+ ```ruby
58
+ begin
59
+ # Assign Users to an Organization
60
+ data, status_code, headers = api_instance.add_organization_users_with_http_info(opts)
61
+ p status_code # => 2xx
62
+ p headers # => { ... }
63
+ p data # => <AddOrganizationUsers200Response>
64
+ rescue KindeApi::ApiError => e
65
+ puts "Error when calling UsersApi->add_organization_users_with_http_info: #{e}"
66
+ end
67
+ ```
68
+
69
+ ### Parameters
70
+
71
+ | Name | Type | Description | Notes |
72
+ | ---- | ---- | ----------- | ----- |
73
+ | **code** | **String** | The organization&#39;s code. | [optional] |
74
+ | **add_organization_users_request** | [**AddOrganizationUsersRequest**](AddOrganizationUsersRequest.md) | | [optional] |
75
+
76
+ ### Return type
77
+
78
+ [**AddOrganizationUsers200Response**](AddOrganizationUsers200Response.md)
79
+
80
+ ### Authorization
81
+
82
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
83
+
84
+ ### HTTP request headers
85
+
86
+ - **Content-Type**: application/json
87
+ - **Accept**: application/json
88
+
89
+
90
+ ## create_user
91
+
92
+ > <CreateUser200Response> create_user(opts)
93
+
94
+ Create User
95
+
96
+ Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
97
+
98
+ ### Examples
99
+
100
+ ```ruby
101
+ require 'time'
102
+ require 'kinde_api'
103
+ # setup authorization
104
+ KindeApi.configure do |config|
105
+ # Configure Bearer authorization (JWT): kindeBearerAuth
106
+ config.access_token = 'YOUR_BEARER_TOKEN'
107
+ end
108
+
109
+ api_instance = KindeApi::UsersApi.new
110
+ opts = {
111
+ create_user_request: KindeApi::CreateUserRequest.new # CreateUserRequest | The details of the user to create.
112
+ }
113
+
114
+ begin
115
+ # Create User
116
+ result = api_instance.create_user(opts)
117
+ p result
118
+ rescue KindeApi::ApiError => e
119
+ puts "Error when calling UsersApi->create_user: #{e}"
120
+ end
121
+ ```
122
+
123
+ #### Using the create_user_with_http_info variant
124
+
125
+ This returns an Array which contains the response data, status code and headers.
126
+
127
+ > <Array(<CreateUser200Response>, Integer, Hash)> create_user_with_http_info(opts)
128
+
129
+ ```ruby
130
+ begin
131
+ # Create User
132
+ data, status_code, headers = api_instance.create_user_with_http_info(opts)
133
+ p status_code # => 2xx
134
+ p headers # => { ... }
135
+ p data # => <CreateUser200Response>
136
+ rescue KindeApi::ApiError => e
137
+ puts "Error when calling UsersApi->create_user_with_http_info: #{e}"
138
+ end
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ | Name | Type | Description | Notes |
144
+ | ---- | ---- | ----------- | ----- |
145
+ | **create_user_request** | [**CreateUserRequest**](CreateUserRequest.md) | The details of the user to create. | [optional] |
146
+
147
+ ### Return type
148
+
149
+ [**CreateUser200Response**](CreateUser200Response.md)
150
+
151
+ ### Authorization
152
+
153
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
154
+
155
+ ### HTTP request headers
156
+
157
+ - **Content-Type**: application/json
158
+ - **Accept**: application/json
159
+
160
+
161
+ ## deleteuser
162
+
163
+ > <SuccessResponse> deleteuser(opts)
164
+
165
+ Delete User
166
+
167
+ Delete a user record.
168
+
169
+ ### Examples
170
+
171
+ ```ruby
172
+ require 'time'
173
+ require 'kinde_api'
174
+ # setup authorization
175
+ KindeApi.configure do |config|
176
+ # Configure Bearer authorization (JWT): kindeBearerAuth
177
+ config.access_token = 'YOUR_BEARER_TOKEN'
178
+ end
179
+
180
+ api_instance = KindeApi::UsersApi.new
181
+ opts = {
182
+ id: 'id_example' # String | The user's id.
183
+ }
184
+
185
+ begin
186
+ # Delete User
187
+ result = api_instance.deleteuser(opts)
188
+ p result
189
+ rescue KindeApi::ApiError => e
190
+ puts "Error when calling UsersApi->deleteuser: #{e}"
191
+ end
192
+ ```
193
+
194
+ #### Using the deleteuser_with_http_info variant
195
+
196
+ This returns an Array which contains the response data, status code and headers.
197
+
198
+ > <Array(<SuccessResponse>, Integer, Hash)> deleteuser_with_http_info(opts)
199
+
200
+ ```ruby
201
+ begin
202
+ # Delete User
203
+ data, status_code, headers = api_instance.deleteuser_with_http_info(opts)
204
+ p status_code # => 2xx
205
+ p headers # => { ... }
206
+ p data # => <SuccessResponse>
207
+ rescue KindeApi::ApiError => e
208
+ puts "Error when calling UsersApi->deleteuser_with_http_info: #{e}"
209
+ end
210
+ ```
211
+
212
+ ### Parameters
213
+
214
+ | Name | Type | Description | Notes |
215
+ | ---- | ---- | ----------- | ----- |
216
+ | **id** | **String** | The user&#39;s id. | [optional] |
217
+
218
+ ### Return type
219
+
220
+ [**SuccessResponse**](SuccessResponse.md)
221
+
222
+ ### Authorization
223
+
224
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: Not defined
229
+ - **Accept**: application/json
230
+
231
+
232
+ ## get_organization_users
233
+
234
+ > <GetOrganizationUsers200Response> get_organization_users(opts)
235
+
236
+ List Organization Users
237
+
238
+ Get users in an organization.
239
+
240
+ ### Examples
241
+
242
+ ```ruby
243
+ require 'time'
244
+ require 'kinde_api'
245
+ # setup authorization
246
+ KindeApi.configure do |config|
247
+ # Configure Bearer authorization (JWT): kindeBearerAuth
248
+ config.access_token = 'YOUR_BEARER_TOKEN'
249
+ end
250
+
251
+ api_instance = KindeApi::UsersApi.new
252
+ opts = {
253
+ sort: 'name_asc', # String | Field and order to sort the result by.
254
+ page_size: 56, # Integer | Number of results per page. Defaults to 10 if parameter not sent.
255
+ next_token: 'next_token_example', # String | A string to get the next page of results if there are more results.
256
+ code: 'code_example', # String | The organization's code.
257
+ permissions: 'permissions_example' # String | Filter by user permissions
258
+ }
259
+
260
+ begin
261
+ # List Organization Users
262
+ result = api_instance.get_organization_users(opts)
263
+ p result
264
+ rescue KindeApi::ApiError => e
265
+ puts "Error when calling UsersApi->get_organization_users: #{e}"
266
+ end
267
+ ```
268
+
269
+ #### Using the get_organization_users_with_http_info variant
270
+
271
+ This returns an Array which contains the response data, status code and headers.
272
+
273
+ > <Array(<GetOrganizationUsers200Response>, Integer, Hash)> get_organization_users_with_http_info(opts)
274
+
275
+ ```ruby
276
+ begin
277
+ # List Organization Users
278
+ data, status_code, headers = api_instance.get_organization_users_with_http_info(opts)
279
+ p status_code # => 2xx
280
+ p headers # => { ... }
281
+ p data # => <GetOrganizationUsers200Response>
282
+ rescue KindeApi::ApiError => e
283
+ puts "Error when calling UsersApi->get_organization_users_with_http_info: #{e}"
284
+ end
285
+ ```
286
+
287
+ ### Parameters
288
+
289
+ | Name | Type | Description | Notes |
290
+ | ---- | ---- | ----------- | ----- |
291
+ | **sort** | **String** | Field and order to sort the result by. | [optional] |
292
+ | **page_size** | **Integer** | Number of results per page. Defaults to 10 if parameter not sent. | [optional] |
293
+ | **next_token** | **String** | A string to get the next page of results if there are more results. | [optional] |
294
+ | **code** | **String** | The organization&#39;s code. | [optional] |
295
+ | **permissions** | **String** | Filter by user permissions | [optional] |
296
+
297
+ ### Return type
298
+
299
+ [**GetOrganizationUsers200Response**](GetOrganizationUsers200Response.md)
300
+
301
+ ### Authorization
302
+
303
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
304
+
305
+ ### HTTP request headers
306
+
307
+ - **Content-Type**: Not defined
308
+ - **Accept**: application/json
309
+
310
+
311
+ ## get_user_data
312
+
313
+ > <User> get_user_data(opts)
314
+
315
+ Get User
316
+
317
+ Retrieve a user record.
318
+
319
+ ### Examples
320
+
321
+ ```ruby
322
+ require 'time'
323
+ require 'kinde_api'
324
+ # setup authorization
325
+ KindeApi.configure do |config|
326
+ # Configure Bearer authorization (JWT): kindeBearerAuth
327
+ config.access_token = 'YOUR_BEARER_TOKEN'
328
+ end
329
+
330
+ api_instance = KindeApi::UsersApi.new
331
+ opts = {
332
+ id: 'id_example' # String | The user's id.
333
+ }
334
+
335
+ begin
336
+ # Get User
337
+ result = api_instance.get_user_data(opts)
338
+ p result
339
+ rescue KindeApi::ApiError => e
340
+ puts "Error when calling UsersApi->get_user_data: #{e}"
341
+ end
342
+ ```
343
+
344
+ #### Using the get_user_data_with_http_info variant
345
+
346
+ This returns an Array which contains the response data, status code and headers.
347
+
348
+ > <Array(<User>, Integer, Hash)> get_user_data_with_http_info(opts)
349
+
350
+ ```ruby
351
+ begin
352
+ # Get User
353
+ data, status_code, headers = api_instance.get_user_data_with_http_info(opts)
354
+ p status_code # => 2xx
355
+ p headers # => { ... }
356
+ p data # => <User>
357
+ rescue KindeApi::ApiError => e
358
+ puts "Error when calling UsersApi->get_user_data_with_http_info: #{e}"
359
+ end
360
+ ```
361
+
362
+ ### Parameters
363
+
364
+ | Name | Type | Description | Notes |
365
+ | ---- | ---- | ----------- | ----- |
366
+ | **id** | **String** | The user&#39;s id. | [optional] |
367
+
368
+ ### Return type
369
+
370
+ [**User**](User.md)
371
+
372
+ ### Authorization
373
+
374
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
375
+
376
+ ### HTTP request headers
377
+
378
+ - **Content-Type**: Not defined
379
+ - **Accept**: application/json
380
+
381
+
382
+ ## get_users
383
+
384
+ > <GetUsers200Response> get_users(opts)
385
+
386
+ List Users
387
+
388
+ The returned list can be sorted by full name or email address in ascending or descending order. The number of records to return at a time can also be controlled using the `page_size` query string parameter.
389
+
390
+ ### Examples
391
+
392
+ ```ruby
393
+ require 'time'
394
+ require 'kinde_api'
395
+ # setup authorization
396
+ KindeApi.configure do |config|
397
+ # Configure Bearer authorization (JWT): kindeBearerAuth
398
+ config.access_token = 'YOUR_BEARER_TOKEN'
399
+ end
400
+
401
+ api_instance = KindeApi::UsersApi.new
402
+ opts = {
403
+ sort: 'name_asc', # String | Field and order to sort the result by.
404
+ page_size: 56, # Integer | Number of results per page. Defaults to 10 if parameter not sent.
405
+ user_id: 'user_id_example', # String | ID of the user to filter by.
406
+ next_token: 'next_token_example' # String | A string to get the next page of results if there are more results.
407
+ }
408
+
409
+ begin
410
+ # List Users
411
+ result = api_instance.get_users(opts)
412
+ p result
413
+ rescue KindeApi::ApiError => e
414
+ puts "Error when calling UsersApi->get_users: #{e}"
415
+ end
416
+ ```
417
+
418
+ #### Using the get_users_with_http_info variant
419
+
420
+ This returns an Array which contains the response data, status code and headers.
421
+
422
+ > <Array(<GetUsers200Response>, Integer, Hash)> get_users_with_http_info(opts)
423
+
424
+ ```ruby
425
+ begin
426
+ # List Users
427
+ data, status_code, headers = api_instance.get_users_with_http_info(opts)
428
+ p status_code # => 2xx
429
+ p headers # => { ... }
430
+ p data # => <GetUsers200Response>
431
+ rescue KindeApi::ApiError => e
432
+ puts "Error when calling UsersApi->get_users_with_http_info: #{e}"
433
+ end
434
+ ```
435
+
436
+ ### Parameters
437
+
438
+ | Name | Type | Description | Notes |
439
+ | ---- | ---- | ----------- | ----- |
440
+ | **sort** | **String** | Field and order to sort the result by. | [optional] |
441
+ | **page_size** | **Integer** | Number of results per page. Defaults to 10 if parameter not sent. | [optional] |
442
+ | **user_id** | **String** | ID of the user to filter by. | [optional] |
443
+ | **next_token** | **String** | A string to get the next page of results if there are more results. | [optional] |
444
+
445
+ ### Return type
446
+
447
+ [**GetUsers200Response**](GetUsers200Response.md)
448
+
449
+ ### Authorization
450
+
451
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
452
+
453
+ ### HTTP request headers
454
+
455
+ - **Content-Type**: Not defined
456
+ - **Accept**: application/json
457
+
458
+
459
+ ## remove_organization_users
460
+
461
+ > <RemoveOrganizationUsers200Response> remove_organization_users(opts)
462
+
463
+ Remove Users from an Organization
464
+
465
+ Remove existing users from an organization.
466
+
467
+ ### Examples
468
+
469
+ ```ruby
470
+ require 'time'
471
+ require 'kinde_api'
472
+ # setup authorization
473
+ KindeApi.configure do |config|
474
+ # Configure Bearer authorization (JWT): kindeBearerAuth
475
+ config.access_token = 'YOUR_BEARER_TOKEN'
476
+ end
477
+
478
+ api_instance = KindeApi::UsersApi.new
479
+ opts = {
480
+ code: 'code_example', # String | The organization's code.
481
+ remove_organization_users_request: KindeApi::RemoveOrganizationUsersRequest.new # RemoveOrganizationUsersRequest |
482
+ }
483
+
484
+ begin
485
+ # Remove Users from an Organization
486
+ result = api_instance.remove_organization_users(opts)
487
+ p result
488
+ rescue KindeApi::ApiError => e
489
+ puts "Error when calling UsersApi->remove_organization_users: #{e}"
490
+ end
491
+ ```
492
+
493
+ #### Using the remove_organization_users_with_http_info variant
494
+
495
+ This returns an Array which contains the response data, status code and headers.
496
+
497
+ > <Array(<RemoveOrganizationUsers200Response>, Integer, Hash)> remove_organization_users_with_http_info(opts)
498
+
499
+ ```ruby
500
+ begin
501
+ # Remove Users from an Organization
502
+ data, status_code, headers = api_instance.remove_organization_users_with_http_info(opts)
503
+ p status_code # => 2xx
504
+ p headers # => { ... }
505
+ p data # => <RemoveOrganizationUsers200Response>
506
+ rescue KindeApi::ApiError => e
507
+ puts "Error when calling UsersApi->remove_organization_users_with_http_info: #{e}"
508
+ end
509
+ ```
510
+
511
+ ### Parameters
512
+
513
+ | Name | Type | Description | Notes |
514
+ | ---- | ---- | ----------- | ----- |
515
+ | **code** | **String** | The organization&#39;s code. | [optional] |
516
+ | **remove_organization_users_request** | [**RemoveOrganizationUsersRequest**](RemoveOrganizationUsersRequest.md) | | [optional] |
517
+
518
+ ### Return type
519
+
520
+ [**RemoveOrganizationUsers200Response**](RemoveOrganizationUsers200Response.md)
521
+
522
+ ### Authorization
523
+
524
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
525
+
526
+ ### HTTP request headers
527
+
528
+ - **Content-Type**: application/json
529
+ - **Accept**: application/json
530
+
531
+
532
+ ## update_user
533
+
534
+ > <User> update_user(update_user_request, opts)
535
+
536
+ Update User
537
+
538
+ Update a user record.
539
+
540
+ ### Examples
541
+
542
+ ```ruby
543
+ require 'time'
544
+ require 'kinde_api'
545
+ # setup authorization
546
+ KindeApi.configure do |config|
547
+ # Configure Bearer authorization (JWT): kindeBearerAuth
548
+ config.access_token = 'YOUR_BEARER_TOKEN'
549
+ end
550
+
551
+ api_instance = KindeApi::UsersApi.new
552
+ update_user_request = KindeApi::UpdateUserRequest.new # UpdateUserRequest | The user to update.
553
+ opts = {
554
+ id: 'id_example' # String | The user's id.
555
+ }
556
+
557
+ begin
558
+ # Update User
559
+ result = api_instance.update_user(update_user_request, opts)
560
+ p result
561
+ rescue KindeApi::ApiError => e
562
+ puts "Error when calling UsersApi->update_user: #{e}"
563
+ end
564
+ ```
565
+
566
+ #### Using the update_user_with_http_info variant
567
+
568
+ This returns an Array which contains the response data, status code and headers.
569
+
570
+ > <Array(<User>, Integer, Hash)> update_user_with_http_info(update_user_request, opts)
571
+
572
+ ```ruby
573
+ begin
574
+ # Update User
575
+ data, status_code, headers = api_instance.update_user_with_http_info(update_user_request, opts)
576
+ p status_code # => 2xx
577
+ p headers # => { ... }
578
+ p data # => <User>
579
+ rescue KindeApi::ApiError => e
580
+ puts "Error when calling UsersApi->update_user_with_http_info: #{e}"
581
+ end
582
+ ```
583
+
584
+ ### Parameters
585
+
586
+ | Name | Type | Description | Notes |
587
+ | ---- | ---- | ----------- | ----- |
588
+ | **update_user_request** | [**UpdateUserRequest**](UpdateUserRequest.md) | The user to update. | |
589
+ | **id** | **String** | The user&#39;s id. | [optional] |
590
+
591
+ ### Return type
592
+
593
+ [**User**](User.md)
594
+
595
+ ### Authorization
596
+
597
+ [kindeBearerAuth](../README.md#kindeBearerAuth)
598
+
599
+ ### HTTP request headers
600
+
601
+ - **Content-Type**: application/json
602
+ - **Accept**: application/json
603
+