kinde_sdk 1.1.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +103 -19
  3. data/kinde_api/README.md +58 -23
  4. data/kinde_api/docs/AddOrganizationUsersRequest.md +1 -1
  5. data/kinde_api/docs/AddOrganizationUsersRequestUsersInner.md +22 -0
  6. data/kinde_api/docs/{AddOrganizationUsers200Response.md → AddOrganizationUsersResponse.md} +2 -2
  7. data/kinde_api/docs/Application.md +20 -0
  8. data/kinde_api/docs/CallbacksApi.md +219 -0
  9. data/kinde_api/docs/ConnectedAppsApi.md +9 -9
  10. data/kinde_api/docs/CreateOrganizationRequest.md +11 -1
  11. data/kinde_api/docs/CreateOrganizationResponse.md +22 -0
  12. data/kinde_api/docs/CreateOrganizationResponseOrganization.md +18 -0
  13. data/kinde_api/docs/CreateOrganizationUserRoleRequest.md +18 -0
  14. data/kinde_api/docs/CreatePermissionRequest.md +22 -0
  15. data/kinde_api/docs/CreateRoleRequest.md +24 -0
  16. data/kinde_api/docs/CreateSubscriberSuccessResponse.md +18 -0
  17. data/kinde_api/docs/CreateSubscriberSuccessResponseSubscriber.md +18 -0
  18. data/kinde_api/docs/{CreateUser200Response.md → CreateUserResponse.md} +2 -2
  19. data/kinde_api/docs/EnvironmentsApi.md +71 -4
  20. data/kinde_api/docs/FeatureFlagsApi.md +9 -11
  21. data/kinde_api/docs/GetApplicationsResponse.md +24 -0
  22. data/kinde_api/docs/GetEnvironmentFeatureFlagsResponse.md +24 -0
  23. data/kinde_api/docs/GetOrganizationFeatureFlagsResponse.md +22 -0
  24. data/kinde_api/docs/GetOrganizationFeatureFlagsResponseFeatureFlagsValue.md +20 -0
  25. data/kinde_api/docs/{GetOrganizations200Response.md → GetOrganizationsResponse.md} +2 -2
  26. data/kinde_api/docs/GetOrganizationsUserRolesResponse.md +24 -0
  27. data/kinde_api/docs/{GetOrganizationUsers200Response.md → GetOrganizationsUsersResponse.md} +2 -2
  28. data/kinde_api/docs/GetRedirectCallbackUrlsResponse.md +18 -0
  29. data/kinde_api/docs/OrganizationUser.md +3 -1
  30. data/kinde_api/docs/OrganizationUserRole.md +22 -0
  31. data/kinde_api/docs/OrganizationsApi.md +494 -59
  32. data/kinde_api/docs/Permissions.md +22 -0
  33. data/kinde_api/docs/PermissionsApi.md +229 -0
  34. data/kinde_api/docs/RedirectCallbackUrls.md +18 -0
  35. data/kinde_api/docs/Roles.md +22 -0
  36. data/kinde_api/docs/RolesApi.md +229 -0
  37. data/kinde_api/docs/SubscribersApi.md +229 -0
  38. data/kinde_api/docs/UpdateOrganizationRequest.md +28 -0
  39. data/kinde_api/docs/UpdateOrganizationUsersRequest.md +18 -0
  40. data/kinde_api/docs/UpdateOrganizationUsersRequestUsersInner.md +24 -0
  41. data/kinde_api/docs/UpdateOrganizationUsersResponse.md +24 -0
  42. data/kinde_api/docs/UpdateUserRequest.md +3 -1
  43. data/kinde_api/docs/User.md +15 -1
  44. data/kinde_api/docs/UserIdentityResult.md +1 -3
  45. data/kinde_api/docs/UserProfile.md +3 -1
  46. data/kinde_api/docs/UserProfileV2.md +6 -2
  47. data/kinde_api/docs/UsersApi.md +31 -259
  48. data/kinde_api/docs/{GetUsers200Response.md → UsersResponse.md} +2 -2
  49. data/kinde_api/lib/kinde_api/api/callbacks_api.rb +221 -0
  50. data/kinde_api/lib/kinde_api/api/connected_apps_api.rb +8 -8
  51. data/kinde_api/lib/kinde_api/api/environments_api.rb +61 -4
  52. data/kinde_api/lib/kinde_api/api/feature_flags_api.rb +8 -15
  53. data/kinde_api/lib/kinde_api/api/organizations_api.rb +492 -57
  54. data/kinde_api/lib/kinde_api/api/permissions_api.rb +226 -0
  55. data/kinde_api/lib/kinde_api/api/roles_api.rb +226 -0
  56. data/kinde_api/lib/kinde_api/api/subscribers_api.rb +228 -0
  57. data/kinde_api/lib/kinde_api/api/users_api.rb +30 -233
  58. data/kinde_api/lib/kinde_api/api_client.rb +1 -13
  59. data/kinde_api/lib/kinde_api/configuration.rb +3 -77
  60. data/kinde_api/lib/kinde_api/models/add_organization_users_request.rb +2 -2
  61. data/kinde_api/lib/kinde_api/models/add_organization_users_request_users_inner.rb +242 -0
  62. data/kinde_api/lib/kinde_api/models/{add_organization_users200_response.rb → add_organization_users_response.rb} +3 -3
  63. data/kinde_api/lib/kinde_api/models/application.rb +226 -0
  64. data/kinde_api/lib/kinde_api/models/create_organization_request.rb +54 -4
  65. data/kinde_api/lib/kinde_api/models/{remove_organization_users200_response.rb → create_organization_response.rb} +19 -12
  66. data/kinde_api/lib/kinde_api/models/{create_organization201_response.rb → create_organization_response_organization.rb} +8 -18
  67. data/kinde_api/lib/kinde_api/models/create_organization_user_role_request.rb +218 -0
  68. data/kinde_api/lib/kinde_api/models/create_permission_request.rb +238 -0
  69. data/kinde_api/lib/kinde_api/models/create_role_request.rb +248 -0
  70. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response.rb +217 -0
  71. data/kinde_api/lib/kinde_api/models/create_subscriber_success_response_subscriber.rb +218 -0
  72. data/kinde_api/lib/kinde_api/models/create_user_request_identities_inner.rb +34 -0
  73. data/kinde_api/lib/kinde_api/models/{create_user200_response.rb → create_user_response.rb} +3 -3
  74. data/kinde_api/lib/kinde_api/models/get_applications_response.rb +249 -0
  75. data/kinde_api/lib/kinde_api/models/get_environment_feature_flags_response.rb +250 -0
  76. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response.rb +240 -0
  77. data/kinde_api/lib/kinde_api/models/get_organization_feature_flags_response_feature_flags_value.rb +260 -0
  78. data/kinde_api/lib/kinde_api/models/{get_organizations200_response.rb → get_organizations_response.rb} +3 -3
  79. data/kinde_api/lib/kinde_api/models/get_organizations_user_roles_response.rb +249 -0
  80. data/kinde_api/lib/kinde_api/models/{get_organization_users200_response.rb → get_organizations_users_response.rb} +3 -3
  81. data/kinde_api/lib/kinde_api/models/get_redirect_callback_urls_response.rb +220 -0
  82. data/kinde_api/lib/kinde_api/models/organization_user.rb +15 -4
  83. data/kinde_api/lib/kinde_api/models/organization_user_role.rb +235 -0
  84. data/kinde_api/lib/kinde_api/models/permissions.rb +238 -0
  85. data/kinde_api/lib/kinde_api/models/redirect_callback_urls.rb +220 -0
  86. data/kinde_api/lib/kinde_api/models/roles.rb +238 -0
  87. data/kinde_api/lib/kinde_api/models/update_organization_request.rb +268 -0
  88. data/kinde_api/lib/kinde_api/models/{remove_organization_users_request.rb → update_organization_users_request.rb} +5 -5
  89. data/kinde_api/lib/kinde_api/models/update_organization_users_request_users_inner.rb +252 -0
  90. data/kinde_api/lib/kinde_api/models/update_organization_users_response.rb +250 -0
  91. data/kinde_api/lib/kinde_api/models/update_user_request.rb +14 -4
  92. data/kinde_api/lib/kinde_api/models/user.rb +79 -5
  93. data/kinde_api/lib/kinde_api/models/user_identity_result.rb +4 -14
  94. data/kinde_api/lib/kinde_api/models/user_profile.rb +14 -4
  95. data/kinde_api/lib/kinde_api/models/user_profile_v2.rb +25 -5
  96. data/kinde_api/lib/kinde_api/models/{get_users200_response.rb → users_response.rb} +3 -3
  97. data/kinde_api/lib/kinde_api.rb +32 -8
  98. data/kinde_api/spec/api/callbacks_api_spec.rb +73 -0
  99. data/kinde_api/spec/api/connected_apps_api_spec.rb +1 -1
  100. data/kinde_api/spec/api/environments_api_spec.rb +11 -0
  101. data/kinde_api/spec/api/feature_flags_api_spec.rb +1 -2
  102. data/kinde_api/spec/api/organizations_api_spec.rb +93 -14
  103. data/kinde_api/spec/api/permissions_api_spec.rb +74 -0
  104. data/kinde_api/spec/api/roles_api_spec.rb +74 -0
  105. data/kinde_api/spec/api/subscribers_api_spec.rb +76 -0
  106. data/kinde_api/spec/api/users_api_spec.rb +6 -47
  107. data/kinde_api/spec/api_client_spec.rb +0 -12
  108. data/kinde_api/spec/models/add_organization_users_request_users_inner_spec.rb +46 -0
  109. data/kinde_api/spec/models/{add_organization_users200_response_spec.rb → add_organization_users_response_spec.rb} +6 -6
  110. data/kinde_api/spec/models/{remove_organization_users200_response_spec.rb → application_spec.rb} +8 -8
  111. data/kinde_api/spec/models/create_organization_request_spec.rb +30 -0
  112. data/kinde_api/spec/models/create_organization_response_organization_spec.rb +34 -0
  113. data/kinde_api/spec/models/{create_organization201_response_spec.rb → create_organization_response_spec.rb} +13 -7
  114. data/kinde_api/spec/models/create_organization_user_role_request_spec.rb +34 -0
  115. data/kinde_api/spec/models/create_permission_request_spec.rb +46 -0
  116. data/kinde_api/spec/models/create_role_request_spec.rb +52 -0
  117. data/kinde_api/spec/models/create_subscriber_success_response_spec.rb +34 -0
  118. data/kinde_api/spec/models/create_subscriber_success_response_subscriber_spec.rb +34 -0
  119. data/kinde_api/spec/models/create_user_request_identities_inner_spec.rb +4 -0
  120. data/kinde_api/spec/models/{create_user200_response_spec.rb → create_user_response_spec.rb} +6 -6
  121. data/kinde_api/spec/models/get_applications_response_spec.rb +52 -0
  122. data/kinde_api/spec/models/get_environment_feature_flags_response_spec.rb +52 -0
  123. data/kinde_api/spec/models/get_organization_feature_flags_response_feature_flags_value_spec.rb +44 -0
  124. data/kinde_api/spec/models/get_organization_feature_flags_response_spec.rb +46 -0
  125. data/kinde_api/spec/models/{get_organizations200_response_spec.rb → get_organizations_response_spec.rb} +6 -6
  126. data/kinde_api/spec/models/get_organizations_user_roles_response_spec.rb +52 -0
  127. data/kinde_api/spec/models/{get_organization_users200_response_spec.rb → get_organizations_users_response_spec.rb} +6 -6
  128. data/kinde_api/spec/models/get_redirect_callback_urls_response_spec.rb +34 -0
  129. data/kinde_api/spec/models/organization_user_role_spec.rb +46 -0
  130. data/kinde_api/spec/models/organization_user_spec.rb +6 -0
  131. data/kinde_api/spec/models/permissions_spec.rb +46 -0
  132. data/kinde_api/spec/models/redirect_callback_urls_spec.rb +34 -0
  133. data/kinde_api/spec/models/roles_spec.rb +46 -0
  134. data/kinde_api/spec/models/update_organization_request_spec.rb +64 -0
  135. data/kinde_api/spec/models/{remove_organization_users_request_spec.rb → update_organization_users_request_spec.rb} +6 -6
  136. data/kinde_api/spec/models/update_organization_users_request_users_inner_spec.rb +52 -0
  137. data/kinde_api/spec/models/update_organization_users_response_spec.rb +52 -0
  138. data/kinde_api/spec/models/update_user_request_spec.rb +6 -0
  139. data/kinde_api/spec/models/user_identity_result_spec.rb +0 -6
  140. data/kinde_api/spec/models/user_profile_spec.rb +6 -0
  141. data/kinde_api/spec/models/user_profile_v2_spec.rb +12 -0
  142. data/kinde_api/spec/models/user_spec.rb +42 -0
  143. data/kinde_api/spec/models/{get_users200_response_spec.rb → users_response_spec.rb} +6 -6
  144. data/kinde_sdk.gemspec +1 -1
  145. data/lib/kinde_sdk/client/feature_flags.rb +64 -0
  146. data/lib/kinde_sdk/client/permissions.rb +20 -0
  147. data/lib/kinde_sdk/client.rb +33 -18
  148. data/lib/kinde_sdk/configuration.rb +0 -2
  149. data/lib/kinde_sdk/version.rb +1 -1
  150. data/lib/kinde_sdk.rb +27 -12
  151. data/spec/kinde_sdk_spec.rb +131 -5
  152. data/spec/spec_helper.rb +2 -0
  153. metadata +134 -36
  154. data/kinde_api/docs/CreateOrganization201Response.md +0 -20
  155. data/kinde_api/docs/RemoveOrganizationUsers200Response.md +0 -20
  156. data/kinde_api/docs/RemoveOrganizationUsersRequest.md +0 -18
@@ -33,12 +33,12 @@ describe 'OrganizationsApi' do
33
33
  end
34
34
 
35
35
  # unit tests for add_organization_users
36
- # Assign Users to an Organization
36
+ # Add Organization Users
37
37
  # Add existing users to an organization.
38
+ # @param org_code The organization's code.
38
39
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :code The organization's code.
40
40
  # @option opts [AddOrganizationUsersRequest] :add_organization_users_request
41
- # @return [AddOrganizationUsers200Response]
41
+ # @return [AddOrganizationUsersResponse]
42
42
  describe 'add_organization_users test' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,13 +50,27 @@ describe 'OrganizationsApi' do
50
50
  # Create an organization.
51
51
  # @param [Hash] opts the optional parameters
52
52
  # @option opts [CreateOrganizationRequest] :create_organization_request Organization details.
53
- # @return [CreateOrganization201Response]
53
+ # @return [CreateOrganizationResponse]
54
54
  describe 'create_organization test' do
55
55
  it 'should work' do
56
56
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
57
  end
58
58
  end
59
59
 
60
+ # unit tests for create_organization_user_role
61
+ # Add Organization User Role
62
+ # Add role to an organization user.
63
+ # @param org_code The organization's code.
64
+ # @param user_id The user's id.
65
+ # @param create_organization_user_role_request Role details.
66
+ # @param [Hash] opts the optional parameters
67
+ # @return [SuccessResponse]
68
+ describe 'create_organization_user_role test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
60
74
  # unit tests for delete_organization_feature_flag_override
61
75
  # Delete organization feature flag override
62
76
  # Delete organization feature flag override.
@@ -82,6 +96,20 @@ describe 'OrganizationsApi' do
82
96
  end
83
97
  end
84
98
 
99
+ # unit tests for delete_organization_user_role
100
+ # Delete Organization User Role
101
+ # Delete role for an organization user.
102
+ # @param org_code The organization's code.
103
+ # @param user_id The user's id.
104
+ # @param role_id The role id.
105
+ # @param [Hash] opts the optional parameters
106
+ # @return [SuccessResponse]
107
+ describe 'delete_organization_user_role test' do
108
+ it 'should work' do
109
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
110
+ end
111
+ end
112
+
85
113
  # unit tests for get_organization
86
114
  # Get Organization
87
115
  # Gets an organization given the organization's code.
@@ -94,16 +122,41 @@ describe 'OrganizationsApi' do
94
122
  end
95
123
  end
96
124
 
125
+ # unit tests for get_organization_feature_flags
126
+ # List organization feature flags
127
+ # Get all organization feature flags.
128
+ # @param org_code The identifier for the organization.
129
+ # @param [Hash] opts the optional parameters
130
+ # @return [GetOrganizationFeatureFlagsResponse]
131
+ describe 'get_organization_feature_flags test' do
132
+ it 'should work' do
133
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
134
+ end
135
+ end
136
+
137
+ # unit tests for get_organization_user_roles
138
+ # List Organization User Roles
139
+ # Get roles for an organization user.
140
+ # @param org_code The organization's code.
141
+ # @param user_id The user's id.
142
+ # @param [Hash] opts the optional parameters
143
+ # @return [GetOrganizationsUserRolesResponse]
144
+ describe 'get_organization_user_roles test' do
145
+ it 'should work' do
146
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
147
+ end
148
+ end
149
+
97
150
  # unit tests for get_organization_users
98
151
  # List Organization Users
99
152
  # Get users in an organization.
153
+ # @param org_code The organization's code.
100
154
  # @param [Hash] opts the optional parameters
101
155
  # @option opts [String] :sort Field and order to sort the result by.
102
156
  # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
103
157
  # @option opts [String] :next_token A string to get the next page of results if there are more results.
104
- # @option opts [String] :code The organization's code.
105
158
  # @option opts [String] :permissions Filter by user permissions
106
- # @return [GetOrganizationUsers200Response]
159
+ # @return [GetOrganizationsUsersResponse]
107
160
  describe 'get_organization_users test' do
108
161
  it 'should work' do
109
162
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -117,21 +170,34 @@ describe 'OrganizationsApi' do
117
170
  # @option opts [String] :sort Field and order to sort the result by.
118
171
  # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
119
172
  # @option opts [String] :next_token A string to get the next page of results if there are more results.
120
- # @return [GetOrganizations200Response]
173
+ # @return [GetOrganizationsResponse]
121
174
  describe 'get_organizations test' do
122
175
  it 'should work' do
123
176
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
177
  end
125
178
  end
126
179
 
127
- # unit tests for remove_organization_users
128
- # Remove Users from an Organization
129
- # Remove existing users from an organization.
180
+ # unit tests for remove_organization_user
181
+ # Remove Organization User
182
+ # Remove user from an organization.
183
+ # @param org_code The organization's code.
184
+ # @param user_id The user's id.
130
185
  # @param [Hash] opts the optional parameters
131
- # @option opts [String] :code The organization's code.
132
- # @option opts [RemoveOrganizationUsersRequest] :remove_organization_users_request
133
- # @return [RemoveOrganizationUsers200Response]
134
- describe 'remove_organization_users test' do
186
+ # @return [SuccessResponse]
187
+ describe 'remove_organization_user test' do
188
+ it 'should work' do
189
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
190
+ end
191
+ end
192
+
193
+ # unit tests for update_organization
194
+ # Update Organization
195
+ # Update an organization.
196
+ # @param org_code The identifier for the organization.
197
+ # @param [Hash] opts the optional parameters
198
+ # @option opts [UpdateOrganizationRequest] :update_organization_request Organization details.
199
+ # @return [nil]
200
+ describe 'update_organization test' do
135
201
  it 'should work' do
136
202
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
137
203
  end
@@ -151,4 +217,17 @@ describe 'OrganizationsApi' do
151
217
  end
152
218
  end
153
219
 
220
+ # unit tests for update_organization_users
221
+ # Update organization users
222
+ # Update users that belong to an organization.
223
+ # @param org_code The organization's code.
224
+ # @param [Hash] opts the optional parameters
225
+ # @option opts [UpdateOrganizationUsersRequest] :update_organization_users_request
226
+ # @return [UpdateOrganizationUsersResponse]
227
+ describe 'update_organization_users test' do
228
+ it 'should work' do
229
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
230
+ end
231
+ end
232
+
154
233
  end
@@ -0,0 +1,74 @@
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ #Provides endpoints to manage your Kinde Businesses
5
+
6
+ The version of the OpenAPI document: 1
7
+ Contact: support@kinde.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for KindeApi::PermissionsApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'PermissionsApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = KindeApi::PermissionsApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of PermissionsApi' do
30
+ it 'should create an instance of PermissionsApi' do
31
+ expect(@api_instance).to be_instance_of(KindeApi::PermissionsApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_permission
36
+ # Create a new permission
37
+ # Create permission.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [CreatePermissionRequest] :create_permission_request Permission details.
40
+ # @return [SuccessResponse]
41
+ describe 'create_permission test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for get_permissions
48
+ # List Permissions
49
+ # The returned list can be sorted by permission name or permission ID 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.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :sort Field and order to sort the result by.
52
+ # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
53
+ # @option opts [String] :next_token A string to get the next page of results if there are more results.
54
+ # @return [SuccessResponse]
55
+ describe 'get_permissions test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for update_permissions
62
+ # Update a permission
63
+ # Update permission
64
+ # @param permission_id The identifier for the permission.
65
+ # @param [Hash] opts the optional parameters
66
+ # @option opts [CreatePermissionRequest] :create_permission_request Permission details.
67
+ # @return [SuccessResponse]
68
+ describe 'update_permissions test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ end
@@ -0,0 +1,74 @@
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ #Provides endpoints to manage your Kinde Businesses
5
+
6
+ The version of the OpenAPI document: 1
7
+ Contact: support@kinde.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for KindeApi::RolesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'RolesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = KindeApi::RolesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of RolesApi' do
30
+ it 'should create an instance of RolesApi' do
31
+ expect(@api_instance).to be_instance_of(KindeApi::RolesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_role
36
+ # Create a new role
37
+ # Create role.
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [CreateRoleRequest] :create_role_request Role details.
40
+ # @return [SuccessResponse]
41
+ describe 'create_role test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for get_roles
48
+ # List Roles
49
+ # The returned list can be sorted by role name or role ID 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.
50
+ # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :sort Field and order to sort the result by.
52
+ # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
53
+ # @option opts [String] :next_token A string to get the next page of results if there are more results.
54
+ # @return [SuccessResponse]
55
+ describe 'get_roles test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for update_roles
62
+ # Update a role
63
+ # Update role
64
+ # @param role_id The identifier for the role.
65
+ # @param [Hash] opts the optional parameters
66
+ # @option opts [CreateRoleRequest] :create_role_request Role details.
67
+ # @return [SuccessResponse]
68
+ describe 'update_roles test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ end
@@ -0,0 +1,76 @@
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ #Provides endpoints to manage your Kinde Businesses
5
+
6
+ The version of the OpenAPI document: 1
7
+ Contact: support@kinde.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+
16
+ # Unit tests for KindeApi::SubscribersApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SubscribersApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = KindeApi::SubscribersApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SubscribersApi' do
30
+ it 'should create an instance of SubscribersApi' do
31
+ expect(@api_instance).to be_instance_of(KindeApi::SubscribersApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_subscriber
36
+ # Create a new subscriber
37
+ # Create subscriber.
38
+ # @param first_name Subscriber's first name.
39
+ # @param last_name Subscriber's last name.
40
+ # @param email The email address of the subscriber.
41
+ # @param [Hash] opts the optional parameters
42
+ # @return [CreateSubscriberSuccessResponse]
43
+ describe 'create_subscriber test' do
44
+ it 'should work' do
45
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
46
+ end
47
+ end
48
+
49
+ # unit tests for get_subscriber
50
+ # Get Subscriber
51
+ # Retrieve a subscriber record.
52
+ # @param subscriber_id The subscriber's id.
53
+ # @param [Hash] opts the optional parameters
54
+ # @return [SuccessResponse]
55
+ describe 'get_subscriber test' do
56
+ it 'should work' do
57
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
58
+ end
59
+ end
60
+
61
+ # unit tests for get_subscribers
62
+ # List Subscribers
63
+ # 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.
64
+ # @param [Hash] opts the optional parameters
65
+ # @option opts [String] :sort Field and order to sort the result by.
66
+ # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
67
+ # @option opts [Integer] :subscriber_id ID of the subscriber to filter by.
68
+ # @option opts [String] :next_token A string to get the next page of results if there are more results.
69
+ # @return [SuccessResponse]
70
+ describe 'get_subscribers test' do
71
+ it 'should work' do
72
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
73
+ end
74
+ end
75
+
76
+ end
@@ -32,54 +32,25 @@ describe 'UsersApi' do
32
32
  end
33
33
  end
34
34
 
35
- # unit tests for add_organization_users
36
- # Assign Users to an Organization
37
- # Add existing users to an organization.
38
- # @param [Hash] opts the optional parameters
39
- # @option opts [String] :code The organization's code.
40
- # @option opts [AddOrganizationUsersRequest] :add_organization_users_request
41
- # @return [AddOrganizationUsers200Response]
42
- describe 'add_organization_users test' do
43
- it 'should work' do
44
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
- end
46
- end
47
-
48
35
  # unit tests for create_user
49
36
  # Create User
50
37
  # Creates a user record and optionally zero or more identities for the user. An example identity could be the email address of the user.
51
38
  # @param [Hash] opts the optional parameters
52
39
  # @option opts [CreateUserRequest] :create_user_request The details of the user to create.
53
- # @return [CreateUser200Response]
40
+ # @return [CreateUserResponse]
54
41
  describe 'create_user test' do
55
42
  it 'should work' do
56
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
44
  end
58
45
  end
59
46
 
60
- # unit tests for deleteuser
47
+ # unit tests for delete_user
61
48
  # Delete User
62
49
  # Delete a user record.
63
50
  # @param [Hash] opts the optional parameters
64
51
  # @option opts [String] :id The user's id.
65
52
  # @return [SuccessResponse]
66
- describe 'deleteuser test' do
67
- it 'should work' do
68
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
69
- end
70
- end
71
-
72
- # unit tests for get_organization_users
73
- # List Organization Users
74
- # Get users in an organization.
75
- # @param [Hash] opts the optional parameters
76
- # @option opts [String] :sort Field and order to sort the result by.
77
- # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
78
- # @option opts [String] :next_token A string to get the next page of results if there are more results.
79
- # @option opts [String] :code The organization's code.
80
- # @option opts [String] :permissions Filter by user permissions
81
- # @return [GetOrganizationUsers200Response]
82
- describe 'get_organization_users test' do
53
+ describe 'delete_user test' do
83
54
  it 'should work' do
84
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
85
56
  end
@@ -88,8 +59,8 @@ describe 'UsersApi' do
88
59
  # unit tests for get_user_data
89
60
  # Get User
90
61
  # Retrieve a user record.
62
+ # @param id The user's id.
91
63
  # @param [Hash] opts the optional parameters
92
- # @option opts [String] :id The user's id.
93
64
  # @return [User]
94
65
  describe 'get_user_data test' do
95
66
  it 'should work' do
@@ -105,26 +76,14 @@ describe 'UsersApi' do
105
76
  # @option opts [Integer] :page_size Number of results per page. Defaults to 10 if parameter not sent.
106
77
  # @option opts [String] :user_id ID of the user to filter by.
107
78
  # @option opts [String] :next_token A string to get the next page of results if there are more results.
108
- # @return [GetUsers200Response]
79
+ # @option opts [String] :email Filter the results by email address. The query string should be comma separated and url encoded.
80
+ # @return [UsersResponse]
109
81
  describe 'get_users test' do
110
82
  it 'should work' do
111
83
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
112
84
  end
113
85
  end
114
86
 
115
- # unit tests for remove_organization_users
116
- # Remove Users from an Organization
117
- # Remove existing users from an organization.
118
- # @param [Hash] opts the optional parameters
119
- # @option opts [String] :code The organization's code.
120
- # @option opts [RemoveOrganizationUsersRequest] :remove_organization_users_request
121
- # @return [RemoveOrganizationUsers200Response]
122
- describe 'remove_organization_users test' do
123
- it 'should work' do
124
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
125
- end
126
- end
127
-
128
87
  # unit tests for update_user
129
88
  # Update User
130
89
  # Update a user record.
@@ -1,15 +1,3 @@
1
- =begin
2
- #Kinde Management API
3
-
4
- #Provides endpoints to manage your Kinde Businesses
5
-
6
- The version of the OpenAPI document: 1
7
- Contact: support@kinde.com
8
- Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 6.4.0
10
-
11
- =end
12
-
13
1
  require 'spec_helper'
14
2
 
15
3
  describe KindeApi::ApiClient do
@@ -0,0 +1,46 @@
1
+ =begin
2
+ #Kinde Management API
3
+
4
+ #Provides endpoints to manage your Kinde Businesses
5
+
6
+ The version of the OpenAPI document: 1
7
+ Contact: support@kinde.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.4.0
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for KindeApi::AddOrganizationUsersRequestUsersInner
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe KindeApi::AddOrganizationUsersRequestUsersInner do
21
+ let(:instance) { KindeApi::AddOrganizationUsersRequestUsersInner.new }
22
+
23
+ describe 'test an instance of AddOrganizationUsersRequestUsersInner' do
24
+ it 'should create an instance of AddOrganizationUsersRequestUsersInner' do
25
+ expect(instance).to be_instance_of(KindeApi::AddOrganizationUsersRequestUsersInner)
26
+ end
27
+ end
28
+ describe 'test attribute "id"' do
29
+ it 'should work' do
30
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
+ end
32
+ end
33
+
34
+ describe 'test attribute "roles"' do
35
+ it 'should work' do
36
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
+ end
38
+ end
39
+
40
+ describe 'test attribute "permissions"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ end
44
+ end
45
+
46
+ end
@@ -14,15 +14,15 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for KindeApi::AddOrganizationUsers200Response
17
+ # Unit tests for KindeApi::AddOrganizationUsersResponse
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe KindeApi::AddOrganizationUsers200Response do
21
- let(:instance) { KindeApi::AddOrganizationUsers200Response.new }
20
+ describe KindeApi::AddOrganizationUsersResponse do
21
+ let(:instance) { KindeApi::AddOrganizationUsersResponse.new }
22
22
 
23
- describe 'test an instance of AddOrganizationUsers200Response' do
24
- it 'should create an instance of AddOrganizationUsers200Response' do
25
- expect(instance).to be_instance_of(KindeApi::AddOrganizationUsers200Response)
23
+ describe 'test an instance of AddOrganizationUsersResponse' do
24
+ it 'should create an instance of AddOrganizationUsersResponse' do
25
+ expect(instance).to be_instance_of(KindeApi::AddOrganizationUsersResponse)
26
26
  end
27
27
  end
28
28
  describe 'test attribute "code"' do
@@ -14,24 +14,24 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for KindeApi::RemoveOrganizationUsers200Response
17
+ # Unit tests for KindeApi::Application
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe KindeApi::RemoveOrganizationUsers200Response do
21
- let(:instance) { KindeApi::RemoveOrganizationUsers200Response.new }
20
+ describe KindeApi::Application do
21
+ let(:instance) { KindeApi::Application.new }
22
22
 
23
- describe 'test an instance of RemoveOrganizationUsers200Response' do
24
- it 'should create an instance of RemoveOrganizationUsers200Response' do
25
- expect(instance).to be_instance_of(KindeApi::RemoveOrganizationUsers200Response)
23
+ describe 'test an instance of Application' do
24
+ it 'should create an instance of Application' do
25
+ expect(instance).to be_instance_of(KindeApi::Application)
26
26
  end
27
27
  end
28
- describe 'test attribute "message"' do
28
+ describe 'test attribute "app_id"' do
29
29
  it 'should work' do
30
30
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
31
31
  end
32
32
  end
33
33
 
34
- describe 'test attribute "users_added"' do
34
+ describe 'test attribute "name"' do
35
35
  it 'should work' do
36
36
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
37
37
  end
@@ -41,4 +41,34 @@ describe KindeApi::CreateOrganizationRequest do
41
41
  end
42
42
  end
43
43
 
44
+ describe 'test attribute "external_id"' do
45
+ it 'should work' do
46
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
47
+ end
48
+ end
49
+
50
+ describe 'test attribute "background_color"' do
51
+ it 'should work' do
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'test attribute "button_color"' do
57
+ it 'should work' do
58
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
59
+ end
60
+ end
61
+
62
+ describe 'test attribute "button_text_color"' do
63
+ it 'should work' do
64
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
65
+ end
66
+ end
67
+
68
+ describe 'test attribute "link_color"' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
44
74
  end