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
@@ -18,6 +18,9 @@ module KindeApi
18
18
  # Unique id of the user in Kinde.
19
19
  attr_accessor :id
20
20
 
21
+ # External id for user.
22
+ attr_accessor :provided_id
23
+
21
24
  # Default email address of the user in Kinde.
22
25
  attr_accessor :email
23
26
 
@@ -27,21 +30,46 @@ module KindeApi
27
30
  # User's first name.
28
31
  attr_accessor :first_name
29
32
 
33
+ # User's full name.
34
+ attr_accessor :full_name
35
+
30
36
  # Whether the user is currently suspended or not.
31
37
  attr_accessor :is_suspended
32
38
 
33
39
  # User's profile picture URL.
34
40
  attr_accessor :picture
35
41
 
42
+ # Whether the user has been asked to reset their password.
43
+ attr_accessor :is_password_reset_requested
44
+
45
+ # Total number of user sign ins.
46
+ attr_accessor :total_sign_ins
47
+
48
+ # Number of consecutive failed user sign ins.
49
+ attr_accessor :failed_sign_ins
50
+
51
+ # Last sign in date in ISO 8601 format.
52
+ attr_accessor :last_signed_in
53
+
54
+ # Date of user creation in ISO 8601 format.
55
+ attr_accessor :created_on
56
+
36
57
  # Attribute mapping from ruby-style variable name to JSON key.
37
58
  def self.attribute_map
38
59
  {
39
60
  :'id' => :'id',
61
+ :'provided_id' => :'provided_id',
40
62
  :'email' => :'email',
41
63
  :'last_name' => :'last_name',
42
64
  :'first_name' => :'first_name',
65
+ :'full_name' => :'full_name',
43
66
  :'is_suspended' => :'is_suspended',
44
- :'picture' => :'picture'
67
+ :'picture' => :'picture',
68
+ :'is_password_reset_requested' => :'is_password_reset_requested',
69
+ :'total_sign_ins' => :'total_sign_ins',
70
+ :'failed_sign_ins' => :'failed_sign_ins',
71
+ :'last_signed_in' => :'last_signed_in',
72
+ :'created_on' => :'created_on'
45
73
  }
46
74
  end
47
75
 
@@ -54,18 +82,29 @@ module KindeApi
54
82
  def self.openapi_types
55
83
  {
56
84
  :'id' => :'String',
85
+ :'provided_id' => :'String',
57
86
  :'email' => :'String',
58
87
  :'last_name' => :'String',
59
88
  :'first_name' => :'String',
89
+ :'full_name' => :'String',
60
90
  :'is_suspended' => :'Boolean',
61
- :'picture' => :'String'
91
+ :'picture' => :'String',
92
+ :'is_password_reset_requested' => :'Boolean',
93
+ :'total_sign_ins' => :'Integer',
94
+ :'failed_sign_ins' => :'Integer',
95
+ :'last_signed_in' => :'String',
96
+ :'created_on' => :'String'
62
97
  }
63
98
  end
64
99
 
65
100
  # List of attributes with nullable: true
66
101
  def self.openapi_nullable
67
102
  Set.new([
68
- :'picture'
103
+ :'is_password_reset_requested',
104
+ :'total_sign_ins',
105
+ :'failed_sign_ins',
106
+ :'last_signed_in',
107
+ :'created_on'
69
108
  ])
70
109
  end
71
110
 
@@ -88,6 +127,10 @@ module KindeApi
88
127
  self.id = attributes[:'id']
89
128
  end
90
129
 
130
+ if attributes.key?(:'provided_id')
131
+ self.provided_id = attributes[:'provided_id']
132
+ end
133
+
91
134
  if attributes.key?(:'email')
92
135
  self.email = attributes[:'email']
93
136
  end
@@ -100,6 +143,10 @@ module KindeApi
100
143
  self.first_name = attributes[:'first_name']
101
144
  end
102
145
 
146
+ if attributes.key?(:'full_name')
147
+ self.full_name = attributes[:'full_name']
148
+ end
149
+
103
150
  if attributes.key?(:'is_suspended')
104
151
  self.is_suspended = attributes[:'is_suspended']
105
152
  end
@@ -107,6 +154,26 @@ module KindeApi
107
154
  if attributes.key?(:'picture')
108
155
  self.picture = attributes[:'picture']
109
156
  end
157
+
158
+ if attributes.key?(:'is_password_reset_requested')
159
+ self.is_password_reset_requested = attributes[:'is_password_reset_requested']
160
+ end
161
+
162
+ if attributes.key?(:'total_sign_ins')
163
+ self.total_sign_ins = attributes[:'total_sign_ins']
164
+ end
165
+
166
+ if attributes.key?(:'failed_sign_ins')
167
+ self.failed_sign_ins = attributes[:'failed_sign_ins']
168
+ end
169
+
170
+ if attributes.key?(:'last_signed_in')
171
+ self.last_signed_in = attributes[:'last_signed_in']
172
+ end
173
+
174
+ if attributes.key?(:'created_on')
175
+ self.created_on = attributes[:'created_on']
176
+ end
110
177
  end
111
178
 
112
179
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -128,11 +195,18 @@ module KindeApi
128
195
  return true if self.equal?(o)
129
196
  self.class == o.class &&
130
197
  id == o.id &&
198
+ provided_id == o.provided_id &&
131
199
  email == o.email &&
132
200
  last_name == o.last_name &&
133
201
  first_name == o.first_name &&
202
+ full_name == o.full_name &&
134
203
  is_suspended == o.is_suspended &&
135
- picture == o.picture
204
+ picture == o.picture &&
205
+ is_password_reset_requested == o.is_password_reset_requested &&
206
+ total_sign_ins == o.total_sign_ins &&
207
+ failed_sign_ins == o.failed_sign_ins &&
208
+ last_signed_in == o.last_signed_in &&
209
+ created_on == o.created_on
136
210
  end
137
211
 
138
212
  # @see the `==` method
@@ -144,7 +218,7 @@ module KindeApi
144
218
  # Calculates hash code according to all attributes.
145
219
  # @return [Integer] Hash code
146
220
  def hash
147
- [id, email, last_name, first_name, is_suspended, picture].hash
221
+ [id, provided_id, email, last_name, first_name, full_name, is_suspended, picture, is_password_reset_requested, total_sign_ins, failed_sign_ins, last_signed_in, created_on].hash
148
222
  end
149
223
 
150
224
  # Builds the object from hash
@@ -19,14 +19,10 @@ module KindeApi
19
19
  # True if the user identity was successfully created.
20
20
  attr_accessor :created
21
21
 
22
- # Unique id of the user's identity in Kinde.
23
- attr_accessor :identity_id
24
-
25
22
  # Attribute mapping from ruby-style variable name to JSON key.
26
23
  def self.attribute_map
27
24
  {
28
- :'created' => :'created',
29
- :'identity_id' => :'identity_id'
25
+ :'created' => :'created'
30
26
  }
31
27
  end
32
28
 
@@ -38,8 +34,7 @@ module KindeApi
38
34
  # Attribute type mapping.
39
35
  def self.openapi_types
40
36
  {
41
- :'created' => :'Boolean',
42
- :'identity_id' => :'Integer'
37
+ :'created' => :'Boolean'
43
38
  }
44
39
  end
45
40
 
@@ -67,10 +62,6 @@ module KindeApi
67
62
  if attributes.key?(:'created')
68
63
  self.created = attributes[:'created']
69
64
  end
70
-
71
- if attributes.key?(:'identity_id')
72
- self.identity_id = attributes[:'identity_id']
73
- end
74
65
  end
75
66
 
76
67
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -91,8 +82,7 @@ module KindeApi
91
82
  def ==(o)
92
83
  return true if self.equal?(o)
93
84
  self.class == o.class &&
94
- created == o.created &&
95
- identity_id == o.identity_id
85
+ created == o.created
96
86
  end
97
87
 
98
88
  # @see the `==` method
@@ -104,7 +94,7 @@ module KindeApi
104
94
  # Calculates hash code according to all attributes.
105
95
  # @return [Integer] Hash code
106
96
  def hash
107
- [created, identity_id].hash
97
+ [created].hash
108
98
  end
109
99
 
110
100
  # Builds the object from hash
@@ -30,6 +30,9 @@ module KindeApi
30
30
  # User's first name.
31
31
  attr_accessor :first_name
32
32
 
33
+ # URL that point's to the user's picture or avatar
34
+ attr_accessor :picture
35
+
33
36
  # Attribute mapping from ruby-style variable name to JSON key.
34
37
  def self.attribute_map
35
38
  {
@@ -37,7 +40,8 @@ module KindeApi
37
40
  :'preferred_email' => :'preferred_email',
38
41
  :'provided_id' => :'provided_id',
39
42
  :'last_name' => :'last_name',
40
- :'first_name' => :'first_name'
43
+ :'first_name' => :'first_name',
44
+ :'picture' => :'picture'
41
45
  }
42
46
  end
43
47
 
@@ -53,7 +57,8 @@ module KindeApi
53
57
  :'preferred_email' => :'String',
54
58
  :'provided_id' => :'String',
55
59
  :'last_name' => :'String',
56
- :'first_name' => :'String'
60
+ :'first_name' => :'String',
61
+ :'picture' => :'String'
57
62
  }
58
63
  end
59
64
 
@@ -98,6 +103,10 @@ module KindeApi
98
103
  if attributes.key?(:'first_name')
99
104
  self.first_name = attributes[:'first_name']
100
105
  end
106
+
107
+ if attributes.key?(:'picture')
108
+ self.picture = attributes[:'picture']
109
+ end
101
110
  end
102
111
 
103
112
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -122,7 +131,8 @@ module KindeApi
122
131
  preferred_email == o.preferred_email &&
123
132
  provided_id == o.provided_id &&
124
133
  last_name == o.last_name &&
125
- first_name == o.first_name
134
+ first_name == o.first_name &&
135
+ picture == o.picture
126
136
  end
127
137
 
128
138
  # @see the `==` method
@@ -134,7 +144,7 @@ module KindeApi
134
144
  # Calculates hash code according to all attributes.
135
145
  # @return [Integer] Hash code
136
146
  def hash
137
- [id, preferred_email, provided_id, last_name, first_name].hash
147
+ [id, preferred_email, provided_id, last_name, first_name, picture].hash
138
148
  end
139
149
 
140
150
  # Builds the object from hash
@@ -15,9 +15,12 @@ require 'time'
15
15
 
16
16
  module KindeApi
17
17
  class UserProfileV2
18
- # Unique id of the user in Kinde.
18
+ # Unique id of the user in Kinde (deprecated).
19
19
  attr_accessor :id
20
20
 
21
+ # Unique id of the user in Kinde.
22
+ attr_accessor :sub
23
+
21
24
  # Value of the user's id in a third-party system when the user is imported into Kinde.
22
25
  attr_accessor :provided_id
23
26
 
@@ -36,16 +39,21 @@ module KindeApi
36
39
  # User's email address if available.
37
40
  attr_accessor :email
38
41
 
42
+ # URL that point's to the user's picture or avatar
43
+ attr_accessor :picture
44
+
39
45
  # Attribute mapping from ruby-style variable name to JSON key.
40
46
  def self.attribute_map
41
47
  {
42
48
  :'id' => :'id',
49
+ :'sub' => :'sub',
43
50
  :'provided_id' => :'provided_id',
44
51
  :'name' => :'name',
45
52
  :'given_name' => :'given_name',
46
53
  :'family_name' => :'family_name',
47
54
  :'updated_at' => :'updated_at',
48
- :'email' => :'email'
55
+ :'email' => :'email',
56
+ :'picture' => :'picture'
49
57
  }
50
58
  end
51
59
 
@@ -58,12 +66,14 @@ module KindeApi
58
66
  def self.openapi_types
59
67
  {
60
68
  :'id' => :'String',
69
+ :'sub' => :'String',
61
70
  :'provided_id' => :'String',
62
71
  :'name' => :'String',
63
72
  :'given_name' => :'String',
64
73
  :'family_name' => :'String',
65
74
  :'updated_at' => :'Integer',
66
- :'email' => :'String'
75
+ :'email' => :'String',
76
+ :'picture' => :'String'
67
77
  }
68
78
  end
69
79
 
@@ -93,6 +103,10 @@ module KindeApi
93
103
  self.id = attributes[:'id']
94
104
  end
95
105
 
106
+ if attributes.key?(:'sub')
107
+ self.sub = attributes[:'sub']
108
+ end
109
+
96
110
  if attributes.key?(:'provided_id')
97
111
  self.provided_id = attributes[:'provided_id']
98
112
  end
@@ -116,6 +130,10 @@ module KindeApi
116
130
  if attributes.key?(:'email')
117
131
  self.email = attributes[:'email']
118
132
  end
133
+
134
+ if attributes.key?(:'picture')
135
+ self.picture = attributes[:'picture']
136
+ end
119
137
  end
120
138
 
121
139
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -137,12 +155,14 @@ module KindeApi
137
155
  return true if self.equal?(o)
138
156
  self.class == o.class &&
139
157
  id == o.id &&
158
+ sub == o.sub &&
140
159
  provided_id == o.provided_id &&
141
160
  name == o.name &&
142
161
  given_name == o.given_name &&
143
162
  family_name == o.family_name &&
144
163
  updated_at == o.updated_at &&
145
- email == o.email
164
+ email == o.email &&
165
+ picture == o.picture
146
166
  end
147
167
 
148
168
  # @see the `==` method
@@ -154,7 +174,7 @@ module KindeApi
154
174
  # Calculates hash code according to all attributes.
155
175
  # @return [Integer] Hash code
156
176
  def hash
157
- [id, provided_id, name, given_name, family_name, updated_at, email].hash
177
+ [id, sub, provided_id, name, given_name, family_name, updated_at, email, picture].hash
158
178
  end
159
179
 
160
180
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module KindeApi
17
- class GetUsers200Response
17
+ class UsersResponse
18
18
  # Response code.
19
19
  attr_accessor :code
20
20
 
@@ -61,13 +61,13 @@ module KindeApi
61
61
  # @param [Hash] attributes Model attributes in the form of hash
62
62
  def initialize(attributes = {})
63
63
  if (!attributes.is_a?(Hash))
64
- fail ArgumentError, "The input argument (attributes) must be a hash in `KindeApi::GetUsers200Response` initialize method"
64
+ fail ArgumentError, "The input argument (attributes) must be a hash in `KindeApi::UsersResponse` initialize method"
65
65
  end
66
66
 
67
67
  # check to see if the attribute exists and convert string to symbol for hash key
68
68
  attributes = attributes.each_with_object({}) { |(k, v), h|
69
69
  if (!self.class.attribute_map.key?(k.to_sym))
70
- fail ArgumentError, "`#{k}` is not a valid attribute in `KindeApi::GetUsers200Response`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
70
+ fail ArgumentError, "`#{k}` is not a valid attribute in `KindeApi::UsersResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
71
71
  end
72
72
  h[k.to_sym] = v
73
73
  }
@@ -17,41 +17,65 @@ require 'kinde_api/version'
17
17
  require 'kinde_api/configuration'
18
18
 
19
19
  # Models
20
- KindeApi.autoload :AddOrganizationUsers200Response, 'kinde_api/models/add_organization_users200_response'
21
20
  KindeApi.autoload :AddOrganizationUsersRequest, 'kinde_api/models/add_organization_users_request'
21
+ KindeApi.autoload :AddOrganizationUsersRequestUsersInner, 'kinde_api/models/add_organization_users_request_users_inner'
22
+ KindeApi.autoload :AddOrganizationUsersResponse, 'kinde_api/models/add_organization_users_response'
22
23
  KindeApi.autoload :ApiResult, 'kinde_api/models/api_result'
24
+ KindeApi.autoload :Application, 'kinde_api/models/application'
23
25
  KindeApi.autoload :ConnectedAppsAccessToken, 'kinde_api/models/connected_apps_access_token'
24
26
  KindeApi.autoload :ConnectedAppsAuthUrl, 'kinde_api/models/connected_apps_auth_url'
25
- KindeApi.autoload :CreateOrganization201Response, 'kinde_api/models/create_organization201_response'
26
27
  KindeApi.autoload :CreateOrganizationRequest, 'kinde_api/models/create_organization_request'
27
- KindeApi.autoload :CreateUser200Response, 'kinde_api/models/create_user200_response'
28
+ KindeApi.autoload :CreateOrganizationResponse, 'kinde_api/models/create_organization_response'
29
+ KindeApi.autoload :CreateOrganizationResponseOrganization, 'kinde_api/models/create_organization_response_organization'
30
+ KindeApi.autoload :CreateOrganizationUserRoleRequest, 'kinde_api/models/create_organization_user_role_request'
31
+ KindeApi.autoload :CreatePermissionRequest, 'kinde_api/models/create_permission_request'
32
+ KindeApi.autoload :CreateRoleRequest, 'kinde_api/models/create_role_request'
33
+ KindeApi.autoload :CreateSubscriberSuccessResponse, 'kinde_api/models/create_subscriber_success_response'
34
+ KindeApi.autoload :CreateSubscriberSuccessResponseSubscriber, 'kinde_api/models/create_subscriber_success_response_subscriber'
28
35
  KindeApi.autoload :CreateUserRequest, 'kinde_api/models/create_user_request'
29
36
  KindeApi.autoload :CreateUserRequestIdentitiesInner, 'kinde_api/models/create_user_request_identities_inner'
30
37
  KindeApi.autoload :CreateUserRequestIdentitiesInnerDetails, 'kinde_api/models/create_user_request_identities_inner_details'
31
38
  KindeApi.autoload :CreateUserRequestProfile, 'kinde_api/models/create_user_request_profile'
39
+ KindeApi.autoload :CreateUserResponse, 'kinde_api/models/create_user_response'
32
40
  KindeApi.autoload :Error, 'kinde_api/models/error'
33
41
  KindeApi.autoload :ErrorResponse, 'kinde_api/models/error_response'
34
- KindeApi.autoload :GetOrganizationUsers200Response, 'kinde_api/models/get_organization_users200_response'
35
- KindeApi.autoload :GetOrganizations200Response, 'kinde_api/models/get_organizations200_response'
36
- KindeApi.autoload :GetUsers200Response, 'kinde_api/models/get_users200_response'
42
+ KindeApi.autoload :GetApplicationsResponse, 'kinde_api/models/get_applications_response'
43
+ KindeApi.autoload :GetEnvironmentFeatureFlagsResponse, 'kinde_api/models/get_environment_feature_flags_response'
44
+ KindeApi.autoload :GetOrganizationFeatureFlagsResponse, 'kinde_api/models/get_organization_feature_flags_response'
45
+ KindeApi.autoload :GetOrganizationFeatureFlagsResponseFeatureFlagsValue, 'kinde_api/models/get_organization_feature_flags_response_feature_flags_value'
46
+ KindeApi.autoload :GetOrganizationsResponse, 'kinde_api/models/get_organizations_response'
47
+ KindeApi.autoload :GetOrganizationsUserRolesResponse, 'kinde_api/models/get_organizations_user_roles_response'
48
+ KindeApi.autoload :GetOrganizationsUsersResponse, 'kinde_api/models/get_organizations_users_response'
49
+ KindeApi.autoload :GetRedirectCallbackUrlsResponse, 'kinde_api/models/get_redirect_callback_urls_response'
37
50
  KindeApi.autoload :Organization, 'kinde_api/models/organization'
38
51
  KindeApi.autoload :OrganizationUser, 'kinde_api/models/organization_user'
39
- KindeApi.autoload :RemoveOrganizationUsers200Response, 'kinde_api/models/remove_organization_users200_response'
40
- KindeApi.autoload :RemoveOrganizationUsersRequest, 'kinde_api/models/remove_organization_users_request'
52
+ KindeApi.autoload :OrganizationUserRole, 'kinde_api/models/organization_user_role'
53
+ KindeApi.autoload :Permissions, 'kinde_api/models/permissions'
54
+ KindeApi.autoload :RedirectCallbackUrls, 'kinde_api/models/redirect_callback_urls'
55
+ KindeApi.autoload :Roles, 'kinde_api/models/roles'
41
56
  KindeApi.autoload :SuccessResponse, 'kinde_api/models/success_response'
57
+ KindeApi.autoload :UpdateOrganizationRequest, 'kinde_api/models/update_organization_request'
58
+ KindeApi.autoload :UpdateOrganizationUsersRequest, 'kinde_api/models/update_organization_users_request'
59
+ KindeApi.autoload :UpdateOrganizationUsersRequestUsersInner, 'kinde_api/models/update_organization_users_request_users_inner'
60
+ KindeApi.autoload :UpdateOrganizationUsersResponse, 'kinde_api/models/update_organization_users_response'
42
61
  KindeApi.autoload :UpdateUserRequest, 'kinde_api/models/update_user_request'
43
62
  KindeApi.autoload :User, 'kinde_api/models/user'
44
63
  KindeApi.autoload :UserIdentity, 'kinde_api/models/user_identity'
45
64
  KindeApi.autoload :UserIdentityResult, 'kinde_api/models/user_identity_result'
46
65
  KindeApi.autoload :UserProfile, 'kinde_api/models/user_profile'
47
66
  KindeApi.autoload :UserProfileV2, 'kinde_api/models/user_profile_v2'
67
+ KindeApi.autoload :UsersResponse, 'kinde_api/models/users_response'
48
68
 
49
69
  # APIs
70
+ KindeApi.autoload :CallbacksApi, 'kinde_api/api/callbacks_api'
50
71
  KindeApi.autoload :ConnectedAppsApi, 'kinde_api/api/connected_apps_api'
51
72
  KindeApi.autoload :EnvironmentsApi, 'kinde_api/api/environments_api'
52
73
  KindeApi.autoload :FeatureFlagsApi, 'kinde_api/api/feature_flags_api'
53
74
  KindeApi.autoload :OAuthApi, 'kinde_api/api/o_auth_api'
54
75
  KindeApi.autoload :OrganizationsApi, 'kinde_api/api/organizations_api'
76
+ KindeApi.autoload :PermissionsApi, 'kinde_api/api/permissions_api'
77
+ KindeApi.autoload :RolesApi, 'kinde_api/api/roles_api'
78
+ KindeApi.autoload :SubscribersApi, 'kinde_api/api/subscribers_api'
55
79
  KindeApi.autoload :UsersApi, 'kinde_api/api/users_api'
56
80
 
57
81
  module KindeApi
@@ -0,0 +1,73 @@
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::CallbacksApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'CallbacksApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = KindeApi::CallbacksApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of CallbacksApi' do
30
+ it 'should create an instance of CallbacksApi' do
31
+ expect(@api_instance).to be_instance_of(KindeApi::CallbacksApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for add_redirect_callback_urls
36
+ # Add Redirect Callback URLs
37
+ # Add additional redirect callback URLs.
38
+ # @param app_id The identifier for the application.
39
+ # @param urls Array of callback urls.
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [nil]
42
+ describe 'add_redirect_callback_urls 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
+ # unit tests for get_callback_urls
49
+ # List Callback URLs
50
+ # Returns an application's redirect callback URLs.
51
+ # @param app_id The identifier for the application.
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [RedirectCallbackUrls]
54
+ describe 'get_callback_urls test' do
55
+ it 'should work' do
56
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
57
+ end
58
+ end
59
+
60
+ # unit tests for replace_redirect_callback_urls
61
+ # Replace redirect callback URLs
62
+ # Replace all redirect callback URLs.
63
+ # @param app_id The identifier for the application.
64
+ # @param urls Array of callback urls.
65
+ # @param [Hash] opts the optional parameters
66
+ # @return [nil]
67
+ describe 'replace_redirect_callback_urls test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ end
@@ -62,7 +62,7 @@ describe 'ConnectedAppsApi' do
62
62
  # Revoke the tokens linked to the connected app session.
63
63
  # @param session_id The unique sesssion id reprensenting the login session of a user.
64
64
  # @param [Hash] opts the optional parameters
65
- # @return [ApiResult]
65
+ # @return [SuccessResponse]
66
66
  describe 'revoke_connected_app_token test' do
67
67
  it 'should work' do
68
68
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -55,6 +55,17 @@ describe 'EnvironmentsApi' do
55
55
  end
56
56
  end
57
57
 
58
+ # unit tests for get_environement_feature_flags
59
+ # List environment feature flags
60
+ # Get environment feature flags.
61
+ # @param [Hash] opts the optional parameters
62
+ # @return [GetEnvironmentFeatureFlagsResponse]
63
+ describe 'get_environement_feature_flags test' do
64
+ it 'should work' do
65
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
66
+ end
67
+ end
68
+
58
69
  # unit tests for update_environement_feature_flag_override
59
70
  # Update environment feature flag override
60
71
  # Update environment feature flag override.
@@ -64,10 +64,9 @@ describe 'FeatureFlagsApi' do
64
64
  # unit tests for update_feature_flag
65
65
  # Update a feature flag
66
66
  # Update feature flag.
67
- # @param feature_flag_key The identifier for the feature flag.
67
+ # @param feature_flag_key The key identifier for the feature flag.
68
68
  # @param name The name of the flag.
69
69
  # @param description Description of the flag purpose.
70
- # @param key The flag identifier to use in code.
71
70
  # @param type The variable type
72
71
  # @param allow_override_level Allow the flag to be overridden at a different level.
73
72
  # @param default_value Default value for the flag used by environments and organizations.