passageidentity 0.6.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/openapi_client/api/apps_api.rb +2 -2
- data/lib/openapi_client/api/magic_links_api.rb +4 -4
- data/lib/openapi_client/api/tokens_api.rb +2 -2
- data/lib/openapi_client/api/user_devices_api.rb +3 -3
- data/lib/openapi_client/api/users_api.rb +8 -8
- data/lib/openapi_client/api_client.rb +36 -30
- data/lib/openapi_client/api_error.rb +1 -1
- data/lib/openapi_client/configuration.rb +11 -1
- data/lib/openapi_client/models/app_info.rb +36 -3
- data/lib/openapi_client/models/app_response.rb +1 -1
- data/lib/openapi_client/models/apple_user_social_connection.rb +1 -1
- data/lib/openapi_client/models/auth_methods.rb +1 -1
- data/lib/openapi_client/models/create_magic_link_request.rb +2 -57
- data/lib/openapi_client/models/create_user_request.rb +1 -1
- data/lib/openapi_client/models/element_customization.rb +1 -1
- data/lib/openapi_client/models/font_family.rb +1 -1
- data/lib/openapi_client/models/github_user_social_connection.rb +1 -1
- data/lib/openapi_client/models/google_user_social_connection.rb +1 -1
- data/lib/openapi_client/models/layout_config.rb +1 -1
- data/lib/openapi_client/models/layouts.rb +1 -1
- data/lib/openapi_client/models/link.rb +1 -1
- data/lib/openapi_client/models/list_devices_response.rb +1 -1
- data/lib/openapi_client/models/list_paginated_users_item.rb +19 -2
- data/lib/openapi_client/models/list_paginated_users_response.rb +1 -1
- data/lib/openapi_client/models/magic_link.rb +1 -1
- data/lib/openapi_client/models/magic_link_auth_method.rb +1 -1
- data/lib/openapi_client/models/magic_link_channel.rb +1 -1
- data/lib/openapi_client/models/magic_link_response.rb +1 -1
- data/lib/openapi_client/models/magic_link_type.rb +1 -1
- data/lib/openapi_client/models/model400_error.rb +1 -1
- data/lib/openapi_client/models/model401_error.rb +1 -1
- data/lib/openapi_client/models/model403_error.rb +1 -1
- data/lib/openapi_client/models/model404_error.rb +3 -3
- data/lib/openapi_client/models/model500_error.rb +1 -1
- data/lib/openapi_client/models/nonce.rb +1 -1
- data/lib/openapi_client/models/otp_auth_method.rb +1 -1
- data/lib/openapi_client/models/paginated_links.rb +1 -1
- data/lib/openapi_client/models/passkeys_auth_method.rb +1 -1
- data/lib/openapi_client/models/social_connection_type.rb +41 -0
- data/lib/openapi_client/models/technologies.rb +1 -1
- data/lib/openapi_client/models/theme_type.rb +41 -0
- data/lib/openapi_client/models/ttl_display_unit.rb +1 -1
- data/lib/openapi_client/models/update_user_request.rb +1 -1
- data/lib/openapi_client/models/user_event_action.rb +41 -0
- data/lib/openapi_client/models/user_event_status.rb +1 -1
- data/lib/openapi_client/models/user_info.rb +19 -2
- data/lib/openapi_client/models/user_metadata_field.rb +1 -1
- data/lib/openapi_client/models/user_metadata_field_type.rb +1 -1
- data/lib/openapi_client/models/user_recent_event.rb +51 -5
- data/lib/openapi_client/models/user_response.rb +1 -1
- data/lib/openapi_client/models/user_social_connections.rb +1 -1
- data/lib/openapi_client/models/user_status.rb +1 -1
- data/lib/openapi_client/models/web_authn_devices.rb +1 -1
- data/lib/openapi_client/models/web_authn_icons.rb +1 -1
- data/lib/openapi_client/models/web_authn_type.rb +1 -1
- data/lib/openapi_client/version.rb +1 -1
- data/lib/openapi_client.rb +4 -4
- data/lib/passageidentity/auth.rb +205 -104
- data/lib/passageidentity/client.rb +71 -59
- data/lib/passageidentity/error.rb +42 -16
- data/lib/passageidentity/user_api.rb +120 -161
- data/lib/passageidentity/version.rb +1 -1
- data/lib/passageidentity.rb +6 -2
- metadata +33 -79
- data/.github/workflows/deploy.yml +0 -30
- data/.github/workflows/on-pull-request.yml +0 -33
- data/.gitignore +0 -58
- data/CHANGELOG.md +0 -57
- data/CONTRIBUTING.md +0 -66
- data/Gemfile +0 -13
- data/LICENSE +0 -21
- data/README.md +0 -84
- data/docs/custom/AuthApi.md +0 -141
- data/docs/custom/ClientApi.md +0 -107
- data/docs/custom/UserApi.md +0 -419
- data/docs/generated/AppInfo.md +0 -94
- data/docs/generated/AppResponse.md +0 -18
- data/docs/generated/AppleUserSocialConnection.md +0 -24
- data/docs/generated/AppsApi.md +0 -77
- data/docs/generated/AuthMethods.md +0 -22
- data/docs/generated/CreateMagicLinkRequest.md +0 -36
- data/docs/generated/CreateUserRequest.md +0 -22
- data/docs/generated/ElementCustomization.md +0 -56
- data/docs/generated/FontFamily.md +0 -15
- data/docs/generated/GithubUserSocialConnection.md +0 -24
- data/docs/generated/GoogleUserSocialConnection.md +0 -24
- data/docs/generated/LayoutConfig.md +0 -26
- data/docs/generated/Layouts.md +0 -20
- data/docs/generated/Link.md +0 -18
- data/docs/generated/ListDevicesResponse.md +0 -18
- data/docs/generated/ListPaginatedUsersItem.md +0 -38
- data/docs/generated/ListPaginatedUsersResponse.md +0 -28
- data/docs/generated/MagicLink.md +0 -36
- data/docs/generated/MagicLinkAuthMethod.md +0 -22
- data/docs/generated/MagicLinkChannel.md +0 -15
- data/docs/generated/MagicLinkResponse.md +0 -18
- data/docs/generated/MagicLinkType.md +0 -15
- data/docs/generated/MagicLinksApi.md +0 -79
- data/docs/generated/Model400Error.md +0 -20
- data/docs/generated/Model401Error.md +0 -20
- data/docs/generated/Model403Error.md +0 -20
- data/docs/generated/Model404Error.md +0 -20
- data/docs/generated/Model500Error.md +0 -20
- data/docs/generated/Nonce.md +0 -18
- data/docs/generated/OtpAuthMethod.md +0 -22
- data/docs/generated/PaginatedLinks.md +0 -26
- data/docs/generated/PasskeysAuthMethod.md +0 -18
- data/docs/generated/README.md +0 -158
- data/docs/generated/Technologies.md +0 -15
- data/docs/generated/TokensApi.md +0 -78
- data/docs/generated/TtlDisplayUnit.md +0 -15
- data/docs/generated/UpdateUserRequest.md +0 -22
- data/docs/generated/UserDevicesApi.md +0 -152
- data/docs/generated/UserEventStatus.md +0 -15
- data/docs/generated/UserInfo.md +0 -48
- data/docs/generated/UserMetadataField.md +0 -28
- data/docs/generated/UserMetadataFieldType.md +0 -15
- data/docs/generated/UserRecentEvent.md +0 -30
- data/docs/generated/UserResponse.md +0 -18
- data/docs/generated/UserSocialConnections.md +0 -22
- data/docs/generated/UserStatus.md +0 -15
- data/docs/generated/UsersApi.md +0 -534
- data/docs/generated/WebAuthnDevices.md +0 -34
- data/docs/generated/WebAuthnIcons.md +0 -20
- data/docs/generated/WebAuthnType.md +0 -15
- data/generate.sh +0 -31
- data/openapitools.json +0 -7
- data/passageidentity.gemspec +0 -32
- data/tests/all.rb +0 -3
- data/tests/app_test.rb +0 -15
- data/tests/auth_test.rb +0 -74
- data/tests/errors_test.rb +0 -30
- data/tests/magic_link_test.rb +0 -22
- data/tests/user_api_test.rb +0 -121
@@ -1,15 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserMetadataFieldType
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
|
8
|
-
## Example
|
9
|
-
|
10
|
-
```ruby
|
11
|
-
require 'openapi_client'
|
12
|
-
|
13
|
-
instance = OpenapiClient::UserMetadataFieldType.new()
|
14
|
-
```
|
15
|
-
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserRecentEvent
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **created_at** | **Time** | | |
|
8
|
-
| **completed_at** | **Time** | | |
|
9
|
-
| **id** | **String** | | |
|
10
|
-
| **ip_addr** | **String** | | |
|
11
|
-
| **status** | [**UserEventStatus**](UserEventStatus.md) | | |
|
12
|
-
| **type** | **String** | | |
|
13
|
-
| **user_agent** | **String** | | |
|
14
|
-
|
15
|
-
## Example
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
require 'openapi_client'
|
19
|
-
|
20
|
-
instance = OpenapiClient::UserRecentEvent.new(
|
21
|
-
created_at: null,
|
22
|
-
completed_at: null,
|
23
|
-
id: null,
|
24
|
-
ip_addr: null,
|
25
|
-
status: null,
|
26
|
-
type: null,
|
27
|
-
user_agent: null
|
28
|
-
)
|
29
|
-
```
|
30
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **user** | [**UserInfo**](UserInfo.md) | | |
|
8
|
-
|
9
|
-
## Example
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
require 'openapi_client'
|
13
|
-
|
14
|
-
instance = OpenapiClient::UserResponse.new(
|
15
|
-
user: null
|
16
|
-
)
|
17
|
-
```
|
18
|
-
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserSocialConnections
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **apple** | [**AppleUserSocialConnection**](AppleUserSocialConnection.md) | | [optional] |
|
8
|
-
| **github** | [**GithubUserSocialConnection**](GithubUserSocialConnection.md) | | [optional] |
|
9
|
-
| **google** | [**GoogleUserSocialConnection**](GoogleUserSocialConnection.md) | | [optional] |
|
10
|
-
|
11
|
-
## Example
|
12
|
-
|
13
|
-
```ruby
|
14
|
-
require 'openapi_client'
|
15
|
-
|
16
|
-
instance = OpenapiClient::UserSocialConnections.new(
|
17
|
-
apple: null,
|
18
|
-
github: null,
|
19
|
-
google: null
|
20
|
-
)
|
21
|
-
```
|
22
|
-
|
data/docs/generated/UsersApi.md
DELETED
@@ -1,534 +0,0 @@
|
|
1
|
-
# OpenapiClient::UsersApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.passage.id/v1*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**activate_user**](UsersApi.md#activate_user) | **PATCH** /apps/{app_id}/users/{user_id}/activate | Activate User |
|
8
|
-
| [**create_user**](UsersApi.md#create_user) | **POST** /apps/{app_id}/users | Create User |
|
9
|
-
| [**deactivate_user**](UsersApi.md#deactivate_user) | **PATCH** /apps/{app_id}/users/{user_id}/deactivate | Deactivate User |
|
10
|
-
| [**delete_user**](UsersApi.md#delete_user) | **DELETE** /apps/{app_id}/users/{user_id} | Delete User |
|
11
|
-
| [**get_user**](UsersApi.md#get_user) | **GET** /apps/{app_id}/users/{user_id} | Get User |
|
12
|
-
| [**list_paginated_users**](UsersApi.md#list_paginated_users) | **GET** /apps/{app_id}/users | List Users |
|
13
|
-
| [**update_user**](UsersApi.md#update_user) | **PATCH** /apps/{app_id}/users/{user_id} | Update User |
|
14
|
-
|
15
|
-
|
16
|
-
## activate_user
|
17
|
-
|
18
|
-
> <UserResponse> activate_user(app_id, user_id)
|
19
|
-
|
20
|
-
Activate User
|
21
|
-
|
22
|
-
Activate a user. They will now be able to login.
|
23
|
-
|
24
|
-
### Examples
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
require 'time'
|
28
|
-
require 'openapi_client'
|
29
|
-
# setup authorization
|
30
|
-
OpenapiClient.configure do |config|
|
31
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
32
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
33
|
-
end
|
34
|
-
|
35
|
-
api_instance = OpenapiClient::UsersApi.new
|
36
|
-
app_id = 'app_id_example' # String | App ID
|
37
|
-
user_id = 'user_id_example' # String | User ID
|
38
|
-
|
39
|
-
begin
|
40
|
-
# Activate User
|
41
|
-
result = api_instance.activate_user(app_id, user_id)
|
42
|
-
p result
|
43
|
-
rescue OpenapiClient::ApiError => e
|
44
|
-
puts "Error when calling UsersApi->activate_user: #{e}"
|
45
|
-
end
|
46
|
-
```
|
47
|
-
|
48
|
-
#### Using the activate_user_with_http_info variant
|
49
|
-
|
50
|
-
This returns an Array which contains the response data, status code and headers.
|
51
|
-
|
52
|
-
> <Array(<UserResponse>, Integer, Hash)> activate_user_with_http_info(app_id, user_id)
|
53
|
-
|
54
|
-
```ruby
|
55
|
-
begin
|
56
|
-
# Activate User
|
57
|
-
data, status_code, headers = api_instance.activate_user_with_http_info(app_id, user_id)
|
58
|
-
p status_code # => 2xx
|
59
|
-
p headers # => { ... }
|
60
|
-
p data # => <UserResponse>
|
61
|
-
rescue OpenapiClient::ApiError => e
|
62
|
-
puts "Error when calling UsersApi->activate_user_with_http_info: #{e}"
|
63
|
-
end
|
64
|
-
```
|
65
|
-
|
66
|
-
### Parameters
|
67
|
-
|
68
|
-
| Name | Type | Description | Notes |
|
69
|
-
| ---- | ---- | ----------- | ----- |
|
70
|
-
| **app_id** | **String** | App ID | |
|
71
|
-
| **user_id** | **String** | User ID | |
|
72
|
-
|
73
|
-
### Return type
|
74
|
-
|
75
|
-
[**UserResponse**](UserResponse.md)
|
76
|
-
|
77
|
-
### Authorization
|
78
|
-
|
79
|
-
[bearerAuth](../README.md#bearerAuth)
|
80
|
-
|
81
|
-
### HTTP request headers
|
82
|
-
|
83
|
-
- **Content-Type**: Not defined
|
84
|
-
- **Accept**: application/json
|
85
|
-
|
86
|
-
|
87
|
-
## create_user
|
88
|
-
|
89
|
-
> <UserResponse> create_user(app_id, create_user_request)
|
90
|
-
|
91
|
-
Create User
|
92
|
-
|
93
|
-
Create user for an application. Must provide an email of phone number identifier.
|
94
|
-
|
95
|
-
### Examples
|
96
|
-
|
97
|
-
```ruby
|
98
|
-
require 'time'
|
99
|
-
require 'openapi_client'
|
100
|
-
# setup authorization
|
101
|
-
OpenapiClient.configure do |config|
|
102
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
103
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
104
|
-
end
|
105
|
-
|
106
|
-
api_instance = OpenapiClient::UsersApi.new
|
107
|
-
app_id = 'app_id_example' # String | App ID
|
108
|
-
create_user_request = OpenapiClient::CreateUserRequest.new # CreateUserRequest | email, phone, user_metadata
|
109
|
-
|
110
|
-
begin
|
111
|
-
# Create User
|
112
|
-
result = api_instance.create_user(app_id, create_user_request)
|
113
|
-
p result
|
114
|
-
rescue OpenapiClient::ApiError => e
|
115
|
-
puts "Error when calling UsersApi->create_user: #{e}"
|
116
|
-
end
|
117
|
-
```
|
118
|
-
|
119
|
-
#### Using the create_user_with_http_info variant
|
120
|
-
|
121
|
-
This returns an Array which contains the response data, status code and headers.
|
122
|
-
|
123
|
-
> <Array(<UserResponse>, Integer, Hash)> create_user_with_http_info(app_id, create_user_request)
|
124
|
-
|
125
|
-
```ruby
|
126
|
-
begin
|
127
|
-
# Create User
|
128
|
-
data, status_code, headers = api_instance.create_user_with_http_info(app_id, create_user_request)
|
129
|
-
p status_code # => 2xx
|
130
|
-
p headers # => { ... }
|
131
|
-
p data # => <UserResponse>
|
132
|
-
rescue OpenapiClient::ApiError => e
|
133
|
-
puts "Error when calling UsersApi->create_user_with_http_info: #{e}"
|
134
|
-
end
|
135
|
-
```
|
136
|
-
|
137
|
-
### Parameters
|
138
|
-
|
139
|
-
| Name | Type | Description | Notes |
|
140
|
-
| ---- | ---- | ----------- | ----- |
|
141
|
-
| **app_id** | **String** | App ID | |
|
142
|
-
| **create_user_request** | [**CreateUserRequest**](CreateUserRequest.md) | email, phone, user_metadata | |
|
143
|
-
|
144
|
-
### Return type
|
145
|
-
|
146
|
-
[**UserResponse**](UserResponse.md)
|
147
|
-
|
148
|
-
### Authorization
|
149
|
-
|
150
|
-
[bearerAuth](../README.md#bearerAuth)
|
151
|
-
|
152
|
-
### HTTP request headers
|
153
|
-
|
154
|
-
- **Content-Type**: application/json
|
155
|
-
- **Accept**: application/json
|
156
|
-
|
157
|
-
|
158
|
-
## deactivate_user
|
159
|
-
|
160
|
-
> <UserResponse> deactivate_user(app_id, user_id)
|
161
|
-
|
162
|
-
Deactivate User
|
163
|
-
|
164
|
-
Deactivate a user. Their account will still exist, but they will not be able to login.
|
165
|
-
|
166
|
-
### Examples
|
167
|
-
|
168
|
-
```ruby
|
169
|
-
require 'time'
|
170
|
-
require 'openapi_client'
|
171
|
-
# setup authorization
|
172
|
-
OpenapiClient.configure do |config|
|
173
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
174
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
175
|
-
end
|
176
|
-
|
177
|
-
api_instance = OpenapiClient::UsersApi.new
|
178
|
-
app_id = 'app_id_example' # String | App ID
|
179
|
-
user_id = 'user_id_example' # String | User ID
|
180
|
-
|
181
|
-
begin
|
182
|
-
# Deactivate User
|
183
|
-
result = api_instance.deactivate_user(app_id, user_id)
|
184
|
-
p result
|
185
|
-
rescue OpenapiClient::ApiError => e
|
186
|
-
puts "Error when calling UsersApi->deactivate_user: #{e}"
|
187
|
-
end
|
188
|
-
```
|
189
|
-
|
190
|
-
#### Using the deactivate_user_with_http_info variant
|
191
|
-
|
192
|
-
This returns an Array which contains the response data, status code and headers.
|
193
|
-
|
194
|
-
> <Array(<UserResponse>, Integer, Hash)> deactivate_user_with_http_info(app_id, user_id)
|
195
|
-
|
196
|
-
```ruby
|
197
|
-
begin
|
198
|
-
# Deactivate User
|
199
|
-
data, status_code, headers = api_instance.deactivate_user_with_http_info(app_id, user_id)
|
200
|
-
p status_code # => 2xx
|
201
|
-
p headers # => { ... }
|
202
|
-
p data # => <UserResponse>
|
203
|
-
rescue OpenapiClient::ApiError => e
|
204
|
-
puts "Error when calling UsersApi->deactivate_user_with_http_info: #{e}"
|
205
|
-
end
|
206
|
-
```
|
207
|
-
|
208
|
-
### Parameters
|
209
|
-
|
210
|
-
| Name | Type | Description | Notes |
|
211
|
-
| ---- | ---- | ----------- | ----- |
|
212
|
-
| **app_id** | **String** | App ID | |
|
213
|
-
| **user_id** | **String** | User ID | |
|
214
|
-
|
215
|
-
### Return type
|
216
|
-
|
217
|
-
[**UserResponse**](UserResponse.md)
|
218
|
-
|
219
|
-
### Authorization
|
220
|
-
|
221
|
-
[bearerAuth](../README.md#bearerAuth)
|
222
|
-
|
223
|
-
### HTTP request headers
|
224
|
-
|
225
|
-
- **Content-Type**: Not defined
|
226
|
-
- **Accept**: application/json
|
227
|
-
|
228
|
-
|
229
|
-
## delete_user
|
230
|
-
|
231
|
-
> delete_user(app_id, user_id)
|
232
|
-
|
233
|
-
Delete User
|
234
|
-
|
235
|
-
Delete a user.
|
236
|
-
|
237
|
-
### Examples
|
238
|
-
|
239
|
-
```ruby
|
240
|
-
require 'time'
|
241
|
-
require 'openapi_client'
|
242
|
-
# setup authorization
|
243
|
-
OpenapiClient.configure do |config|
|
244
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
245
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
246
|
-
end
|
247
|
-
|
248
|
-
api_instance = OpenapiClient::UsersApi.new
|
249
|
-
app_id = 'app_id_example' # String | App ID
|
250
|
-
user_id = 'user_id_example' # String | User ID
|
251
|
-
|
252
|
-
begin
|
253
|
-
# Delete User
|
254
|
-
api_instance.delete_user(app_id, user_id)
|
255
|
-
rescue OpenapiClient::ApiError => e
|
256
|
-
puts "Error when calling UsersApi->delete_user: #{e}"
|
257
|
-
end
|
258
|
-
```
|
259
|
-
|
260
|
-
#### Using the delete_user_with_http_info variant
|
261
|
-
|
262
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
263
|
-
|
264
|
-
> <Array(nil, Integer, Hash)> delete_user_with_http_info(app_id, user_id)
|
265
|
-
|
266
|
-
```ruby
|
267
|
-
begin
|
268
|
-
# Delete User
|
269
|
-
data, status_code, headers = api_instance.delete_user_with_http_info(app_id, user_id)
|
270
|
-
p status_code # => 2xx
|
271
|
-
p headers # => { ... }
|
272
|
-
p data # => nil
|
273
|
-
rescue OpenapiClient::ApiError => e
|
274
|
-
puts "Error when calling UsersApi->delete_user_with_http_info: #{e}"
|
275
|
-
end
|
276
|
-
```
|
277
|
-
|
278
|
-
### Parameters
|
279
|
-
|
280
|
-
| Name | Type | Description | Notes |
|
281
|
-
| ---- | ---- | ----------- | ----- |
|
282
|
-
| **app_id** | **String** | App ID | |
|
283
|
-
| **user_id** | **String** | User ID | |
|
284
|
-
|
285
|
-
### Return type
|
286
|
-
|
287
|
-
nil (empty response body)
|
288
|
-
|
289
|
-
### Authorization
|
290
|
-
|
291
|
-
[bearerAuth](../README.md#bearerAuth)
|
292
|
-
|
293
|
-
### HTTP request headers
|
294
|
-
|
295
|
-
- **Content-Type**: Not defined
|
296
|
-
- **Accept**: application/json
|
297
|
-
|
298
|
-
|
299
|
-
## get_user
|
300
|
-
|
301
|
-
> <UserResponse> get_user(app_id, user_id)
|
302
|
-
|
303
|
-
Get User
|
304
|
-
|
305
|
-
Get information about a user.
|
306
|
-
|
307
|
-
### Examples
|
308
|
-
|
309
|
-
```ruby
|
310
|
-
require 'time'
|
311
|
-
require 'openapi_client'
|
312
|
-
# setup authorization
|
313
|
-
OpenapiClient.configure do |config|
|
314
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
315
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
316
|
-
end
|
317
|
-
|
318
|
-
api_instance = OpenapiClient::UsersApi.new
|
319
|
-
app_id = 'app_id_example' # String | App ID
|
320
|
-
user_id = 'user_id_example' # String | User ID
|
321
|
-
|
322
|
-
begin
|
323
|
-
# Get User
|
324
|
-
result = api_instance.get_user(app_id, user_id)
|
325
|
-
p result
|
326
|
-
rescue OpenapiClient::ApiError => e
|
327
|
-
puts "Error when calling UsersApi->get_user: #{e}"
|
328
|
-
end
|
329
|
-
```
|
330
|
-
|
331
|
-
#### Using the get_user_with_http_info variant
|
332
|
-
|
333
|
-
This returns an Array which contains the response data, status code and headers.
|
334
|
-
|
335
|
-
> <Array(<UserResponse>, Integer, Hash)> get_user_with_http_info(app_id, user_id)
|
336
|
-
|
337
|
-
```ruby
|
338
|
-
begin
|
339
|
-
# Get User
|
340
|
-
data, status_code, headers = api_instance.get_user_with_http_info(app_id, user_id)
|
341
|
-
p status_code # => 2xx
|
342
|
-
p headers # => { ... }
|
343
|
-
p data # => <UserResponse>
|
344
|
-
rescue OpenapiClient::ApiError => e
|
345
|
-
puts "Error when calling UsersApi->get_user_with_http_info: #{e}"
|
346
|
-
end
|
347
|
-
```
|
348
|
-
|
349
|
-
### Parameters
|
350
|
-
|
351
|
-
| Name | Type | Description | Notes |
|
352
|
-
| ---- | ---- | ----------- | ----- |
|
353
|
-
| **app_id** | **String** | App ID | |
|
354
|
-
| **user_id** | **String** | User ID | |
|
355
|
-
|
356
|
-
### Return type
|
357
|
-
|
358
|
-
[**UserResponse**](UserResponse.md)
|
359
|
-
|
360
|
-
### Authorization
|
361
|
-
|
362
|
-
[bearerAuth](../README.md#bearerAuth)
|
363
|
-
|
364
|
-
### HTTP request headers
|
365
|
-
|
366
|
-
- **Content-Type**: Not defined
|
367
|
-
- **Accept**: application/json
|
368
|
-
|
369
|
-
|
370
|
-
## list_paginated_users
|
371
|
-
|
372
|
-
> <ListPaginatedUsersResponse> list_paginated_users(app_id, opts)
|
373
|
-
|
374
|
-
List Users
|
375
|
-
|
376
|
-
List users for an app.
|
377
|
-
|
378
|
-
### Examples
|
379
|
-
|
380
|
-
```ruby
|
381
|
-
require 'time'
|
382
|
-
require 'openapi_client'
|
383
|
-
# setup authorization
|
384
|
-
OpenapiClient.configure do |config|
|
385
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
386
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
387
|
-
end
|
388
|
-
|
389
|
-
api_instance = OpenapiClient::UsersApi.new
|
390
|
-
app_id = 'app_id_example' # String | App ID
|
391
|
-
opts = {
|
392
|
-
page: 56, # Integer | page to fetch (min=1)
|
393
|
-
limit: 56, # Integer | number of users to fetch per page (max=500)
|
394
|
-
created_before: 56, # Integer | Unix timestamp to anchor pagination results (fetches events that were created before the timestamp)
|
395
|
-
order_by: 'order_by_example', # String | Comma separated list of <field>:<ASC/DESC> (example: order_by=id:DESC,created_at:ASC) **cannot order_by `identifier`
|
396
|
-
identifier: 'identifier_example', # String | search users email OR phone (pagination prepended operators identifier=<val>, identifier=<ne:val>, identifier=<gt:val>, identifier=<lt:val>, identifier=<like:val>, identifier=<not_like:val>)
|
397
|
-
id: 'id_example', # String | search users id (pagination prepended operators id=<val>, id=<ne:val>, id=<gt:val>, id=<lt:val>, id=<like:val>, id=<not_like:val>)
|
398
|
-
login_count: 56, # Integer | search users login_count (pagination prepended operators login_count=<val>, login_count=<ne:val>, login_count=<gt:val>, login_count=<lt:val>)
|
399
|
-
status: 'status_example', # String | search users by status (pagination prepended operators status=<val>, status=<ne:val>, status=<gt:val>, status=<lt:val>, status=<like:val>, status=<not_like:val>) -- valid values: (active, inactive, pending)
|
400
|
-
created_at: 'created_at_example', # String | search users created_at (pagination prepended operators created_at=<val>, created_at=<ne:val>, created_at=<gt:val>, created_at=<lt:val> -- valid timestamp in the format: 2006-01-02T15:04:05.000000Z required
|
401
|
-
updated_at: 'updated_at_example', # String | search users updated_at (pagination prepended operators updated_at=<val>, updated_at=<ne:val>, updated_at=<gt:val>, updated_at=<lt:val> -- valid timestamp in the format: 2006-01-02T15:04:05.000000Z required
|
402
|
-
last_login_at: 'last_login_at_example' # String | search users last_login_at (pagination prepended operators last_login_at=<val>, lat_login_at=<ne:val>, last_login_at=<gt:val>, last_login_at=<lt:val> -- valid timestamp in the format: 2006-01-02T15:04:05.000000Z required
|
403
|
-
}
|
404
|
-
|
405
|
-
begin
|
406
|
-
# List Users
|
407
|
-
result = api_instance.list_paginated_users(app_id, opts)
|
408
|
-
p result
|
409
|
-
rescue OpenapiClient::ApiError => e
|
410
|
-
puts "Error when calling UsersApi->list_paginated_users: #{e}"
|
411
|
-
end
|
412
|
-
```
|
413
|
-
|
414
|
-
#### Using the list_paginated_users_with_http_info variant
|
415
|
-
|
416
|
-
This returns an Array which contains the response data, status code and headers.
|
417
|
-
|
418
|
-
> <Array(<ListPaginatedUsersResponse>, Integer, Hash)> list_paginated_users_with_http_info(app_id, opts)
|
419
|
-
|
420
|
-
```ruby
|
421
|
-
begin
|
422
|
-
# List Users
|
423
|
-
data, status_code, headers = api_instance.list_paginated_users_with_http_info(app_id, opts)
|
424
|
-
p status_code # => 2xx
|
425
|
-
p headers # => { ... }
|
426
|
-
p data # => <ListPaginatedUsersResponse>
|
427
|
-
rescue OpenapiClient::ApiError => e
|
428
|
-
puts "Error when calling UsersApi->list_paginated_users_with_http_info: #{e}"
|
429
|
-
end
|
430
|
-
```
|
431
|
-
|
432
|
-
### Parameters
|
433
|
-
|
434
|
-
| Name | Type | Description | Notes |
|
435
|
-
| ---- | ---- | ----------- | ----- |
|
436
|
-
| **app_id** | **String** | App ID | |
|
437
|
-
| **page** | **Integer** | page to fetch (min=1) | [optional] |
|
438
|
-
| **limit** | **Integer** | number of users to fetch per page (max=500) | [optional] |
|
439
|
-
| **created_before** | **Integer** | Unix timestamp to anchor pagination results (fetches events that were created before the timestamp) | [optional] |
|
440
|
-
| **order_by** | **String** | Comma separated list of <field>:<ASC/DESC> (example: order_by=id:DESC,created_at:ASC) **cannot order_by `identifier` | [optional] |
|
441
|
-
| **identifier** | **String** | search users email OR phone (pagination prepended operators identifier=<val>, identifier=<ne:val>, identifier=<gt:val>, identifier=<lt:val>, identifier=<like:val>, identifier=<not_like:val>) | [optional] |
|
442
|
-
| **id** | **String** | search users id (pagination prepended operators id=<val>, id=<ne:val>, id=<gt:val>, id=<lt:val>, id=<like:val>, id=<not_like:val>) | [optional] |
|
443
|
-
| **login_count** | **Integer** | search users login_count (pagination prepended operators login_count=<val>, login_count=<ne:val>, login_count=<gt:val>, login_count=<lt:val>) | [optional] |
|
444
|
-
| **status** | **String** | search users by status (pagination prepended operators status=<val>, status=<ne:val>, status=<gt:val>, status=<lt:val>, status=<like:val>, status=<not_like:val>) -- valid values: (active, inactive, pending) | [optional] |
|
445
|
-
| **created_at** | **String** | search users created_at (pagination prepended operators created_at=<val>, created_at=<ne:val>, created_at=<gt:val>, created_at=<lt:val> -- valid timestamp in the format: 2006-01-02T15:04:05.000000Z required | [optional] |
|
446
|
-
| **updated_at** | **String** | search users updated_at (pagination prepended operators updated_at=<val>, updated_at=<ne:val>, updated_at=<gt:val>, updated_at=<lt:val> -- valid timestamp in the format: 2006-01-02T15:04:05.000000Z required | [optional] |
|
447
|
-
| **last_login_at** | **String** | search users last_login_at (pagination prepended operators last_login_at=<val>, lat_login_at=<ne:val>, last_login_at=<gt:val>, last_login_at=<lt:val> -- valid timestamp in the format: 2006-01-02T15:04:05.000000Z required | [optional] |
|
448
|
-
|
449
|
-
### Return type
|
450
|
-
|
451
|
-
[**ListPaginatedUsersResponse**](ListPaginatedUsersResponse.md)
|
452
|
-
|
453
|
-
### Authorization
|
454
|
-
|
455
|
-
[bearerAuth](../README.md#bearerAuth)
|
456
|
-
|
457
|
-
### HTTP request headers
|
458
|
-
|
459
|
-
- **Content-Type**: Not defined
|
460
|
-
- **Accept**: application/json
|
461
|
-
|
462
|
-
|
463
|
-
## update_user
|
464
|
-
|
465
|
-
> <UserResponse> update_user(app_id, user_id, update_user_request)
|
466
|
-
|
467
|
-
Update User
|
468
|
-
|
469
|
-
Update a user's information.
|
470
|
-
|
471
|
-
### Examples
|
472
|
-
|
473
|
-
```ruby
|
474
|
-
require 'time'
|
475
|
-
require 'openapi_client'
|
476
|
-
# setup authorization
|
477
|
-
OpenapiClient.configure do |config|
|
478
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
479
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
480
|
-
end
|
481
|
-
|
482
|
-
api_instance = OpenapiClient::UsersApi.new
|
483
|
-
app_id = 'app_id_example' # String | App ID
|
484
|
-
user_id = 'user_id_example' # String | User ID
|
485
|
-
update_user_request = OpenapiClient::UpdateUserRequest.new # UpdateUserRequest | user settings
|
486
|
-
|
487
|
-
begin
|
488
|
-
# Update User
|
489
|
-
result = api_instance.update_user(app_id, user_id, update_user_request)
|
490
|
-
p result
|
491
|
-
rescue OpenapiClient::ApiError => e
|
492
|
-
puts "Error when calling UsersApi->update_user: #{e}"
|
493
|
-
end
|
494
|
-
```
|
495
|
-
|
496
|
-
#### Using the update_user_with_http_info variant
|
497
|
-
|
498
|
-
This returns an Array which contains the response data, status code and headers.
|
499
|
-
|
500
|
-
> <Array(<UserResponse>, Integer, Hash)> update_user_with_http_info(app_id, user_id, update_user_request)
|
501
|
-
|
502
|
-
```ruby
|
503
|
-
begin
|
504
|
-
# Update User
|
505
|
-
data, status_code, headers = api_instance.update_user_with_http_info(app_id, user_id, update_user_request)
|
506
|
-
p status_code # => 2xx
|
507
|
-
p headers # => { ... }
|
508
|
-
p data # => <UserResponse>
|
509
|
-
rescue OpenapiClient::ApiError => e
|
510
|
-
puts "Error when calling UsersApi->update_user_with_http_info: #{e}"
|
511
|
-
end
|
512
|
-
```
|
513
|
-
|
514
|
-
### Parameters
|
515
|
-
|
516
|
-
| Name | Type | Description | Notes |
|
517
|
-
| ---- | ---- | ----------- | ----- |
|
518
|
-
| **app_id** | **String** | App ID | |
|
519
|
-
| **user_id** | **String** | User ID | |
|
520
|
-
| **update_user_request** | [**UpdateUserRequest**](UpdateUserRequest.md) | user settings | |
|
521
|
-
|
522
|
-
### Return type
|
523
|
-
|
524
|
-
[**UserResponse**](UserResponse.md)
|
525
|
-
|
526
|
-
### Authorization
|
527
|
-
|
528
|
-
[bearerAuth](../README.md#bearerAuth)
|
529
|
-
|
530
|
-
### HTTP request headers
|
531
|
-
|
532
|
-
- **Content-Type**: application/json
|
533
|
-
- **Accept**: application/json
|
534
|
-
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# OpenapiClient::WebAuthnDevices
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **created_at** | **Time** | The first time this webAuthn device was used to authenticate the user | |
|
8
|
-
| **cred_id** | **String** | The CredID for this webAuthn device | |
|
9
|
-
| **friendly_name** | **String** | The friendly name for the webAuthn device used to authenticate | |
|
10
|
-
| **id** | **String** | The ID of the webAuthn device used for authentication | |
|
11
|
-
| **last_login_at** | **Time** | The last time this webAuthn device was used to authenticate the user | |
|
12
|
-
| **type** | [**WebAuthnType**](WebAuthnType.md) | | |
|
13
|
-
| **updated_at** | **Time** | The last time this webAuthn device was updated | |
|
14
|
-
| **usage_count** | **Integer** | How many times this webAuthn device has been used to authenticate the user | |
|
15
|
-
| **icons** | [**WebAuthnIcons**](WebAuthnIcons.md) | | |
|
16
|
-
|
17
|
-
## Example
|
18
|
-
|
19
|
-
```ruby
|
20
|
-
require 'openapi_client'
|
21
|
-
|
22
|
-
instance = OpenapiClient::WebAuthnDevices.new(
|
23
|
-
created_at: null,
|
24
|
-
cred_id: null,
|
25
|
-
friendly_name: null,
|
26
|
-
id: null,
|
27
|
-
last_login_at: null,
|
28
|
-
type: null,
|
29
|
-
updated_at: null,
|
30
|
-
usage_count: null,
|
31
|
-
icons: null
|
32
|
-
)
|
33
|
-
```
|
34
|
-
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# OpenapiClient::WebAuthnIcons
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **light** | **String** | | |
|
8
|
-
| **dark** | **String** | | |
|
9
|
-
|
10
|
-
## Example
|
11
|
-
|
12
|
-
```ruby
|
13
|
-
require 'openapi_client'
|
14
|
-
|
15
|
-
instance = OpenapiClient::WebAuthnIcons.new(
|
16
|
-
light: null,
|
17
|
-
dark: null
|
18
|
-
)
|
19
|
-
```
|
20
|
-
|