passageidentity 0.2.3 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +21 -0
  3. data/README.md +18 -61
  4. data/docs/custom/AuthApi.md +141 -0
  5. data/docs/custom/ClientApi.md +107 -0
  6. data/docs/custom/UserApi.md +419 -0
  7. data/docs/generated/AppInfo.md +94 -0
  8. data/docs/generated/AppResponse.md +18 -0
  9. data/docs/generated/AppsApi.md +77 -0
  10. data/docs/generated/AuthMethods.md +22 -0
  11. data/docs/generated/CreateMagicLinkRequest.md +36 -0
  12. data/docs/generated/CreateUserRequest.md +22 -0
  13. data/docs/generated/ElementCustomization.md +56 -0
  14. data/docs/generated/FontFamily.md +15 -0
  15. data/docs/generated/LayoutConfig.md +26 -0
  16. data/docs/generated/Layouts.md +20 -0
  17. data/docs/generated/ListDevicesResponse.md +18 -0
  18. data/docs/generated/MagicLink.md +36 -0
  19. data/docs/generated/MagicLinkAuthMethod.md +22 -0
  20. data/docs/generated/MagicLinkChannel.md +15 -0
  21. data/docs/generated/MagicLinkResponse.md +18 -0
  22. data/docs/generated/MagicLinkType.md +15 -0
  23. data/docs/generated/MagicLinksApi.md +79 -0
  24. data/docs/generated/Model400Error.md +20 -0
  25. data/docs/generated/Model401Error.md +20 -0
  26. data/docs/generated/Model404Error.md +20 -0
  27. data/docs/generated/Model500Error.md +20 -0
  28. data/docs/generated/OtpAuthMethod.md +22 -0
  29. data/docs/generated/PasskeysAuthMethod.md +18 -0
  30. data/docs/generated/Technologies.md +15 -0
  31. data/docs/generated/TokensApi.md +78 -0
  32. data/docs/generated/TtlDisplayUnit.md +15 -0
  33. data/docs/generated/UpdateMagicLinkAuthMethod.md +22 -0
  34. data/docs/generated/UpdateOtpAuthMethod.md +22 -0
  35. data/docs/generated/UpdatePasskeysAuthMethod.md +18 -0
  36. data/docs/generated/UpdateUserRequest.md +22 -0
  37. data/docs/generated/UserDevicesApi.md +152 -0
  38. data/docs/generated/UserEventInfo.md +26 -0
  39. data/docs/generated/UserInfo.md +46 -0
  40. data/docs/generated/UserMetadataField.md +28 -0
  41. data/docs/generated/UserMetadataFieldType.md +15 -0
  42. data/docs/generated/UserResponse.md +18 -0
  43. data/docs/generated/UserStatus.md +15 -0
  44. data/docs/generated/UsersApi.md +440 -0
  45. data/docs/generated/WebAuthnDevices.md +34 -0
  46. data/docs/generated/WebAuthnIcons.md +20 -0
  47. data/docs/generated/WebAuthnType.md +15 -0
  48. data/generate.sh +31 -0
  49. data/lib/openapi_client/api/apps_api.rb +85 -0
  50. data/lib/openapi_client/api/magic_links_api.rb +96 -0
  51. data/lib/openapi_client/api/tokens_api.rb +91 -0
  52. data/lib/openapi_client/api/user_devices_api.rb +166 -0
  53. data/lib/openapi_client/api/users_api.rb +452 -0
  54. data/lib/openapi_client/api_client.rb +431 -0
  55. data/lib/openapi_client/api_error.rb +58 -0
  56. data/lib/openapi_client/configuration.rb +383 -0
  57. data/lib/openapi_client/models/app_info.rb +853 -0
  58. data/lib/openapi_client/models/app_response.rb +221 -0
  59. data/lib/openapi_client/models/auth_methods.rb +254 -0
  60. data/lib/openapi_client/models/create_magic_link_request.rb +374 -0
  61. data/lib/openapi_client/models/create_user_request.rb +234 -0
  62. data/lib/openapi_client/models/element_customization.rb +457 -0
  63. data/lib/openapi_client/models/font_family.rb +58 -0
  64. data/lib/openapi_client/models/layout_config.rb +285 -0
  65. data/lib/openapi_client/models/layouts.rb +241 -0
  66. data/lib/openapi_client/models/list_devices_response.rb +223 -0
  67. data/lib/openapi_client/models/magic_link.rb +387 -0
  68. data/lib/openapi_client/models/magic_link_auth_method.rb +302 -0
  69. data/lib/openapi_client/models/magic_link_channel.rb +40 -0
  70. data/lib/openapi_client/models/magic_link_response.rb +221 -0
  71. data/lib/openapi_client/models/magic_link_type.rb +40 -0
  72. data/lib/openapi_client/models/model400_error.rb +271 -0
  73. data/lib/openapi_client/models/model401_error.rb +271 -0
  74. data/lib/openapi_client/models/model404_error.rb +271 -0
  75. data/lib/openapi_client/models/model500_error.rb +271 -0
  76. data/lib/openapi_client/models/otp_auth_method.rb +302 -0
  77. data/lib/openapi_client/models/passkeys_auth_method.rb +228 -0
  78. data/lib/openapi_client/models/technologies.rb +46 -0
  79. data/lib/openapi_client/models/ttl_display_unit.rb +42 -0
  80. data/lib/openapi_client/models/update_magic_link_auth_method.rb +276 -0
  81. data/lib/openapi_client/models/update_otp_auth_method.rb +276 -0
  82. data/lib/openapi_client/models/update_passkeys_auth_method.rb +216 -0
  83. data/lib/openapi_client/models/update_user_request.rb +232 -0
  84. data/lib/openapi_client/models/user_event_info.rb +285 -0
  85. data/lib/openapi_client/models/user_info.rb +470 -0
  86. data/lib/openapi_client/models/user_metadata_field.rb +323 -0
  87. data/lib/openapi_client/models/user_metadata_field_type.rb +44 -0
  88. data/lib/openapi_client/models/user_response.rb +221 -0
  89. data/lib/openapi_client/models/user_status.rb +41 -0
  90. data/lib/openapi_client/models/web_authn_devices.rb +378 -0
  91. data/lib/openapi_client/models/web_authn_icons.rb +230 -0
  92. data/lib/openapi_client/models/web_authn_type.rb +41 -0
  93. data/lib/openapi_client/version.rb +15 -0
  94. data/lib/openapi_client.rb +74 -0
  95. data/lib/passageidentity/auth.rb +32 -5
  96. data/lib/passageidentity/client.rb +17 -121
  97. data/lib/passageidentity/user_api.rb +29 -131
  98. data/lib/passageidentity/version.rb +5 -0
  99. data/openapitools.json +7 -0
  100. data/passageidentity.gemspec +3 -1
  101. data/tests/auth_test.rb +6 -1
  102. data/tests/magic_link_test.rb +5 -4
  103. data/tests/user_api_test.rb +2 -2
  104. metadata +96 -2
@@ -0,0 +1,152 @@
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
+
@@ -0,0 +1,26 @@
1
+ # OpenapiClient::UserEventInfo
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **created_at** | **Time** | | |
8
+ | **id** | **String** | | |
9
+ | **ip_addr** | **String** | | |
10
+ | **type** | **String** | | |
11
+ | **user_agent** | **String** | | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'openapi_client'
17
+
18
+ instance = OpenapiClient::UserEventInfo.new(
19
+ created_at: null,
20
+ id: null,
21
+ ip_addr: null,
22
+ type: null,
23
+ user_agent: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,46 @@
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&lt;UserEventInfo&gt;**](UserEventInfo.md) | | |
16
+ | **status** | [**UserStatus**](UserStatus.md) | | |
17
+ | **updated_at** | **Time** | | |
18
+ | **user_metadata** | **Object** | | |
19
+ | **webauthn** | **Boolean** | | |
20
+ | **webauthn_devices** | [**Array&lt;WebAuthnDevices&gt;**](WebAuthnDevices.md) | | |
21
+ | **webauthn_types** | [**Array&lt;WebAuthnType&gt;**](WebAuthnType.md) | List of credential types that have been used for authentication | |
22
+
23
+ ## Example
24
+
25
+ ```ruby
26
+ require 'openapi_client'
27
+
28
+ instance = OpenapiClient::UserInfo.new(
29
+ created_at: null,
30
+ email: null,
31
+ email_verified: null,
32
+ id: null,
33
+ last_login_at: null,
34
+ login_count: null,
35
+ phone: null,
36
+ phone_verified: null,
37
+ recent_events: null,
38
+ status: null,
39
+ updated_at: null,
40
+ user_metadata: null,
41
+ webauthn: null,
42
+ webauthn_devices: null,
43
+ webauthn_types: null
44
+ )
45
+ ```
46
+
@@ -0,0 +1,28 @@
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
+
@@ -0,0 +1,15 @@
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
+
@@ -0,0 +1,18 @@
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
+
@@ -0,0 +1,15 @@
1
+ # OpenapiClient::UserStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'openapi_client'
12
+
13
+ instance = OpenapiClient::UserStatus.new()
14
+ ```
15
+