passageidentity 0.6.1 → 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 +38 -84
- data/.github/workflows/deploy.yml +0 -30
- data/.github/workflows/on-pull-request.yml +0 -33
- data/.gitignore +0 -58
- data/CHANGELOG.md +0 -51
- data/CONTRIBUTING.md +0 -66
- data/Gemfile +0 -13
- data/LICENSE +0 -21
- data/README.md +0 -218
- 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,152 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserDevicesApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.passage.id/v1*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**delete_user_devices**](UserDevicesApi.md#delete_user_devices) | **DELETE** /apps/{app_id}/users/{user_id}/devices/{device_id} | Delete a device for a user |
|
8
|
-
| [**list_user_devices**](UserDevicesApi.md#list_user_devices) | **GET** /apps/{app_id}/users/{user_id}/devices | List User Devices |
|
9
|
-
|
10
|
-
|
11
|
-
## delete_user_devices
|
12
|
-
|
13
|
-
> delete_user_devices(app_id, user_id, device_id)
|
14
|
-
|
15
|
-
Delete a device for a user
|
16
|
-
|
17
|
-
Delete a device for a user.
|
18
|
-
|
19
|
-
### Examples
|
20
|
-
|
21
|
-
```ruby
|
22
|
-
require 'time'
|
23
|
-
require 'openapi_client'
|
24
|
-
# setup authorization
|
25
|
-
OpenapiClient.configure do |config|
|
26
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
27
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
28
|
-
end
|
29
|
-
|
30
|
-
api_instance = OpenapiClient::UserDevicesApi.new
|
31
|
-
app_id = 'app_id_example' # String | App ID
|
32
|
-
user_id = 'user_id_example' # String | User ID
|
33
|
-
device_id = 'device_id_example' # String | Device ID
|
34
|
-
|
35
|
-
begin
|
36
|
-
# Delete a device for a user
|
37
|
-
api_instance.delete_user_devices(app_id, user_id, device_id)
|
38
|
-
rescue OpenapiClient::ApiError => e
|
39
|
-
puts "Error when calling UserDevicesApi->delete_user_devices: #{e}"
|
40
|
-
end
|
41
|
-
```
|
42
|
-
|
43
|
-
#### Using the delete_user_devices_with_http_info variant
|
44
|
-
|
45
|
-
This returns an Array which contains the response data (`nil` in this case), status code and headers.
|
46
|
-
|
47
|
-
> <Array(nil, Integer, Hash)> delete_user_devices_with_http_info(app_id, user_id, device_id)
|
48
|
-
|
49
|
-
```ruby
|
50
|
-
begin
|
51
|
-
# Delete a device for a user
|
52
|
-
data, status_code, headers = api_instance.delete_user_devices_with_http_info(app_id, user_id, device_id)
|
53
|
-
p status_code # => 2xx
|
54
|
-
p headers # => { ... }
|
55
|
-
p data # => nil
|
56
|
-
rescue OpenapiClient::ApiError => e
|
57
|
-
puts "Error when calling UserDevicesApi->delete_user_devices_with_http_info: #{e}"
|
58
|
-
end
|
59
|
-
```
|
60
|
-
|
61
|
-
### Parameters
|
62
|
-
|
63
|
-
| Name | Type | Description | Notes |
|
64
|
-
| ---- | ---- | ----------- | ----- |
|
65
|
-
| **app_id** | **String** | App ID | |
|
66
|
-
| **user_id** | **String** | User ID | |
|
67
|
-
| **device_id** | **String** | Device ID | |
|
68
|
-
|
69
|
-
### Return type
|
70
|
-
|
71
|
-
nil (empty response body)
|
72
|
-
|
73
|
-
### Authorization
|
74
|
-
|
75
|
-
[bearerAuth](../README.md#bearerAuth)
|
76
|
-
|
77
|
-
### HTTP request headers
|
78
|
-
|
79
|
-
- **Content-Type**: Not defined
|
80
|
-
- **Accept**: application/json
|
81
|
-
|
82
|
-
|
83
|
-
## list_user_devices
|
84
|
-
|
85
|
-
> <ListDevicesResponse> list_user_devices(app_id, user_id)
|
86
|
-
|
87
|
-
List User Devices
|
88
|
-
|
89
|
-
List user devices.
|
90
|
-
|
91
|
-
### Examples
|
92
|
-
|
93
|
-
```ruby
|
94
|
-
require 'time'
|
95
|
-
require 'openapi_client'
|
96
|
-
# setup authorization
|
97
|
-
OpenapiClient.configure do |config|
|
98
|
-
# Configure Bearer authorization (JWT): bearerAuth
|
99
|
-
config.access_token = 'YOUR_BEARER_TOKEN'
|
100
|
-
end
|
101
|
-
|
102
|
-
api_instance = OpenapiClient::UserDevicesApi.new
|
103
|
-
app_id = 'app_id_example' # String | App ID
|
104
|
-
user_id = 'user_id_example' # String | User ID
|
105
|
-
|
106
|
-
begin
|
107
|
-
# List User Devices
|
108
|
-
result = api_instance.list_user_devices(app_id, user_id)
|
109
|
-
p result
|
110
|
-
rescue OpenapiClient::ApiError => e
|
111
|
-
puts "Error when calling UserDevicesApi->list_user_devices: #{e}"
|
112
|
-
end
|
113
|
-
```
|
114
|
-
|
115
|
-
#### Using the list_user_devices_with_http_info variant
|
116
|
-
|
117
|
-
This returns an Array which contains the response data, status code and headers.
|
118
|
-
|
119
|
-
> <Array(<ListDevicesResponse>, Integer, Hash)> list_user_devices_with_http_info(app_id, user_id)
|
120
|
-
|
121
|
-
```ruby
|
122
|
-
begin
|
123
|
-
# List User Devices
|
124
|
-
data, status_code, headers = api_instance.list_user_devices_with_http_info(app_id, user_id)
|
125
|
-
p status_code # => 2xx
|
126
|
-
p headers # => { ... }
|
127
|
-
p data # => <ListDevicesResponse>
|
128
|
-
rescue OpenapiClient::ApiError => e
|
129
|
-
puts "Error when calling UserDevicesApi->list_user_devices_with_http_info: #{e}"
|
130
|
-
end
|
131
|
-
```
|
132
|
-
|
133
|
-
### Parameters
|
134
|
-
|
135
|
-
| Name | Type | Description | Notes |
|
136
|
-
| ---- | ---- | ----------- | ----- |
|
137
|
-
| **app_id** | **String** | App ID | |
|
138
|
-
| **user_id** | **String** | User ID | |
|
139
|
-
|
140
|
-
### Return type
|
141
|
-
|
142
|
-
[**ListDevicesResponse**](ListDevicesResponse.md)
|
143
|
-
|
144
|
-
### Authorization
|
145
|
-
|
146
|
-
[bearerAuth](../README.md#bearerAuth)
|
147
|
-
|
148
|
-
### HTTP request headers
|
149
|
-
|
150
|
-
- **Content-Type**: Not defined
|
151
|
-
- **Accept**: application/json
|
152
|
-
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserEventStatus
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
|
8
|
-
## Example
|
9
|
-
|
10
|
-
```ruby
|
11
|
-
require 'openapi_client'
|
12
|
-
|
13
|
-
instance = OpenapiClient::UserEventStatus.new()
|
14
|
-
```
|
15
|
-
|
data/docs/generated/UserInfo.md
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserInfo
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **created_at** | **Time** | | |
|
8
|
-
| **email** | **String** | | |
|
9
|
-
| **email_verified** | **Boolean** | | |
|
10
|
-
| **id** | **String** | | |
|
11
|
-
| **last_login_at** | **Time** | | |
|
12
|
-
| **login_count** | **Integer** | | |
|
13
|
-
| **phone** | **String** | | |
|
14
|
-
| **phone_verified** | **Boolean** | | |
|
15
|
-
| **recent_events** | [**Array<UserRecentEvent>**](UserRecentEvent.md) | | |
|
16
|
-
| **social_connections** | [**UserSocialConnections**](UserSocialConnections.md) | | |
|
17
|
-
| **status** | [**UserStatus**](UserStatus.md) | | |
|
18
|
-
| **updated_at** | **Time** | | |
|
19
|
-
| **user_metadata** | **Object** | | |
|
20
|
-
| **webauthn** | **Boolean** | | |
|
21
|
-
| **webauthn_devices** | [**Array<WebAuthnDevices>**](WebAuthnDevices.md) | | |
|
22
|
-
| **webauthn_types** | [**Array<WebAuthnType>**](WebAuthnType.md) | List of credential types that have been used for authentication | |
|
23
|
-
|
24
|
-
## Example
|
25
|
-
|
26
|
-
```ruby
|
27
|
-
require 'openapi_client'
|
28
|
-
|
29
|
-
instance = OpenapiClient::UserInfo.new(
|
30
|
-
created_at: null,
|
31
|
-
email: null,
|
32
|
-
email_verified: null,
|
33
|
-
id: null,
|
34
|
-
last_login_at: null,
|
35
|
-
login_count: null,
|
36
|
-
phone: null,
|
37
|
-
phone_verified: null,
|
38
|
-
recent_events: null,
|
39
|
-
social_connections: null,
|
40
|
-
status: null,
|
41
|
-
updated_at: null,
|
42
|
-
user_metadata: null,
|
43
|
-
webauthn: null,
|
44
|
-
webauthn_devices: null,
|
45
|
-
webauthn_types: null
|
46
|
-
)
|
47
|
-
```
|
48
|
-
|
@@ -1,28 +0,0 @@
|
|
1
|
-
# OpenapiClient::UserMetadataField
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
|
5
|
-
| Name | Type | Description | Notes |
|
6
|
-
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **field_name** | **String** | | |
|
8
|
-
| **friendly_name** | **String** | | |
|
9
|
-
| **id** | **String** | | |
|
10
|
-
| **profile** | **Boolean** | | |
|
11
|
-
| **registration** | **Boolean** | | |
|
12
|
-
| **type** | [**UserMetadataFieldType**](UserMetadataFieldType.md) | | |
|
13
|
-
|
14
|
-
## Example
|
15
|
-
|
16
|
-
```ruby
|
17
|
-
require 'openapi_client'
|
18
|
-
|
19
|
-
instance = OpenapiClient::UserMetadataField.new(
|
20
|
-
field_name: null,
|
21
|
-
friendly_name: null,
|
22
|
-
id: null,
|
23
|
-
profile: null,
|
24
|
-
registration: null,
|
25
|
-
type: null
|
26
|
-
)
|
27
|
-
```
|
28
|
-
|
@@ -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
|
-
|