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