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.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/openapi_client/api/apps_api.rb +2 -2
  3. data/lib/openapi_client/api/magic_links_api.rb +4 -4
  4. data/lib/openapi_client/api/tokens_api.rb +2 -2
  5. data/lib/openapi_client/api/user_devices_api.rb +3 -3
  6. data/lib/openapi_client/api/users_api.rb +8 -8
  7. data/lib/openapi_client/api_client.rb +36 -30
  8. data/lib/openapi_client/api_error.rb +1 -1
  9. data/lib/openapi_client/configuration.rb +11 -1
  10. data/lib/openapi_client/models/app_info.rb +36 -3
  11. data/lib/openapi_client/models/app_response.rb +1 -1
  12. data/lib/openapi_client/models/apple_user_social_connection.rb +1 -1
  13. data/lib/openapi_client/models/auth_methods.rb +1 -1
  14. data/lib/openapi_client/models/create_magic_link_request.rb +2 -57
  15. data/lib/openapi_client/models/create_user_request.rb +1 -1
  16. data/lib/openapi_client/models/element_customization.rb +1 -1
  17. data/lib/openapi_client/models/font_family.rb +1 -1
  18. data/lib/openapi_client/models/github_user_social_connection.rb +1 -1
  19. data/lib/openapi_client/models/google_user_social_connection.rb +1 -1
  20. data/lib/openapi_client/models/layout_config.rb +1 -1
  21. data/lib/openapi_client/models/layouts.rb +1 -1
  22. data/lib/openapi_client/models/link.rb +1 -1
  23. data/lib/openapi_client/models/list_devices_response.rb +1 -1
  24. data/lib/openapi_client/models/list_paginated_users_item.rb +19 -2
  25. data/lib/openapi_client/models/list_paginated_users_response.rb +1 -1
  26. data/lib/openapi_client/models/magic_link.rb +1 -1
  27. data/lib/openapi_client/models/magic_link_auth_method.rb +1 -1
  28. data/lib/openapi_client/models/magic_link_channel.rb +1 -1
  29. data/lib/openapi_client/models/magic_link_response.rb +1 -1
  30. data/lib/openapi_client/models/magic_link_type.rb +1 -1
  31. data/lib/openapi_client/models/model400_error.rb +1 -1
  32. data/lib/openapi_client/models/model401_error.rb +1 -1
  33. data/lib/openapi_client/models/model403_error.rb +1 -1
  34. data/lib/openapi_client/models/model404_error.rb +3 -3
  35. data/lib/openapi_client/models/model500_error.rb +1 -1
  36. data/lib/openapi_client/models/nonce.rb +1 -1
  37. data/lib/openapi_client/models/otp_auth_method.rb +1 -1
  38. data/lib/openapi_client/models/paginated_links.rb +1 -1
  39. data/lib/openapi_client/models/passkeys_auth_method.rb +1 -1
  40. data/lib/openapi_client/models/social_connection_type.rb +41 -0
  41. data/lib/openapi_client/models/technologies.rb +1 -1
  42. data/lib/openapi_client/models/theme_type.rb +41 -0
  43. data/lib/openapi_client/models/ttl_display_unit.rb +1 -1
  44. data/lib/openapi_client/models/update_user_request.rb +1 -1
  45. data/lib/openapi_client/models/user_event_action.rb +41 -0
  46. data/lib/openapi_client/models/user_event_status.rb +1 -1
  47. data/lib/openapi_client/models/user_info.rb +19 -2
  48. data/lib/openapi_client/models/user_metadata_field.rb +1 -1
  49. data/lib/openapi_client/models/user_metadata_field_type.rb +1 -1
  50. data/lib/openapi_client/models/user_recent_event.rb +51 -5
  51. data/lib/openapi_client/models/user_response.rb +1 -1
  52. data/lib/openapi_client/models/user_social_connections.rb +1 -1
  53. data/lib/openapi_client/models/user_status.rb +1 -1
  54. data/lib/openapi_client/models/web_authn_devices.rb +1 -1
  55. data/lib/openapi_client/models/web_authn_icons.rb +1 -1
  56. data/lib/openapi_client/models/web_authn_type.rb +1 -1
  57. data/lib/openapi_client/version.rb +1 -1
  58. data/lib/openapi_client.rb +4 -4
  59. data/lib/passageidentity/auth.rb +205 -104
  60. data/lib/passageidentity/client.rb +71 -59
  61. data/lib/passageidentity/error.rb +42 -16
  62. data/lib/passageidentity/user_api.rb +120 -161
  63. data/lib/passageidentity/version.rb +1 -1
  64. data/lib/passageidentity.rb +6 -2
  65. metadata +33 -79
  66. data/.github/workflows/deploy.yml +0 -30
  67. data/.github/workflows/on-pull-request.yml +0 -33
  68. data/.gitignore +0 -58
  69. data/CHANGELOG.md +0 -57
  70. data/CONTRIBUTING.md +0 -66
  71. data/Gemfile +0 -13
  72. data/LICENSE +0 -21
  73. data/README.md +0 -84
  74. data/docs/custom/AuthApi.md +0 -141
  75. data/docs/custom/ClientApi.md +0 -107
  76. data/docs/custom/UserApi.md +0 -419
  77. data/docs/generated/AppInfo.md +0 -94
  78. data/docs/generated/AppResponse.md +0 -18
  79. data/docs/generated/AppleUserSocialConnection.md +0 -24
  80. data/docs/generated/AppsApi.md +0 -77
  81. data/docs/generated/AuthMethods.md +0 -22
  82. data/docs/generated/CreateMagicLinkRequest.md +0 -36
  83. data/docs/generated/CreateUserRequest.md +0 -22
  84. data/docs/generated/ElementCustomization.md +0 -56
  85. data/docs/generated/FontFamily.md +0 -15
  86. data/docs/generated/GithubUserSocialConnection.md +0 -24
  87. data/docs/generated/GoogleUserSocialConnection.md +0 -24
  88. data/docs/generated/LayoutConfig.md +0 -26
  89. data/docs/generated/Layouts.md +0 -20
  90. data/docs/generated/Link.md +0 -18
  91. data/docs/generated/ListDevicesResponse.md +0 -18
  92. data/docs/generated/ListPaginatedUsersItem.md +0 -38
  93. data/docs/generated/ListPaginatedUsersResponse.md +0 -28
  94. data/docs/generated/MagicLink.md +0 -36
  95. data/docs/generated/MagicLinkAuthMethod.md +0 -22
  96. data/docs/generated/MagicLinkChannel.md +0 -15
  97. data/docs/generated/MagicLinkResponse.md +0 -18
  98. data/docs/generated/MagicLinkType.md +0 -15
  99. data/docs/generated/MagicLinksApi.md +0 -79
  100. data/docs/generated/Model400Error.md +0 -20
  101. data/docs/generated/Model401Error.md +0 -20
  102. data/docs/generated/Model403Error.md +0 -20
  103. data/docs/generated/Model404Error.md +0 -20
  104. data/docs/generated/Model500Error.md +0 -20
  105. data/docs/generated/Nonce.md +0 -18
  106. data/docs/generated/OtpAuthMethod.md +0 -22
  107. data/docs/generated/PaginatedLinks.md +0 -26
  108. data/docs/generated/PasskeysAuthMethod.md +0 -18
  109. data/docs/generated/README.md +0 -158
  110. data/docs/generated/Technologies.md +0 -15
  111. data/docs/generated/TokensApi.md +0 -78
  112. data/docs/generated/TtlDisplayUnit.md +0 -15
  113. data/docs/generated/UpdateUserRequest.md +0 -22
  114. data/docs/generated/UserDevicesApi.md +0 -152
  115. data/docs/generated/UserEventStatus.md +0 -15
  116. data/docs/generated/UserInfo.md +0 -48
  117. data/docs/generated/UserMetadataField.md +0 -28
  118. data/docs/generated/UserMetadataFieldType.md +0 -15
  119. data/docs/generated/UserRecentEvent.md +0 -30
  120. data/docs/generated/UserResponse.md +0 -18
  121. data/docs/generated/UserSocialConnections.md +0 -22
  122. data/docs/generated/UserStatus.md +0 -15
  123. data/docs/generated/UsersApi.md +0 -534
  124. data/docs/generated/WebAuthnDevices.md +0 -34
  125. data/docs/generated/WebAuthnIcons.md +0 -20
  126. data/docs/generated/WebAuthnType.md +0 -15
  127. data/generate.sh +0 -31
  128. data/openapitools.json +0 -7
  129. data/passageidentity.gemspec +0 -32
  130. data/tests/all.rb +0 -3
  131. data/tests/app_test.rb +0 -15
  132. data/tests/auth_test.rb +0 -74
  133. data/tests/errors_test.rb +0 -30
  134. data/tests/magic_link_test.rb +0 -22
  135. data/tests/user_api_test.rb +0 -121
@@ -1,77 +0,0 @@
1
- # OpenapiClient::AppsApi
2
-
3
- All URIs are relative to *https://api.passage.id/v1*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**get_app**](AppsApi.md#get_app) | **GET** /apps/{app_id} | Get App |
8
-
9
-
10
- ## get_app
11
-
12
- > <AppResponse> get_app(app_id)
13
-
14
- Get App
15
-
16
- Get app information.
17
-
18
- ### Examples
19
-
20
- ```ruby
21
- require 'time'
22
- require 'openapi_client'
23
- # setup authorization
24
- OpenapiClient.configure do |config|
25
- # Configure Bearer authorization (JWT): bearerAuth
26
- config.access_token = 'YOUR_BEARER_TOKEN'
27
- end
28
-
29
- api_instance = OpenapiClient::AppsApi.new
30
- app_id = 'app_id_example' # String | App ID
31
-
32
- begin
33
- # Get App
34
- result = api_instance.get_app(app_id)
35
- p result
36
- rescue OpenapiClient::ApiError => e
37
- puts "Error when calling AppsApi->get_app: #{e}"
38
- end
39
- ```
40
-
41
- #### Using the get_app_with_http_info variant
42
-
43
- This returns an Array which contains the response data, status code and headers.
44
-
45
- > <Array(<AppResponse>, Integer, Hash)> get_app_with_http_info(app_id)
46
-
47
- ```ruby
48
- begin
49
- # Get App
50
- data, status_code, headers = api_instance.get_app_with_http_info(app_id)
51
- p status_code # => 2xx
52
- p headers # => { ... }
53
- p data # => <AppResponse>
54
- rescue OpenapiClient::ApiError => e
55
- puts "Error when calling AppsApi->get_app_with_http_info: #{e}"
56
- end
57
- ```
58
-
59
- ### Parameters
60
-
61
- | Name | Type | Description | Notes |
62
- | ---- | ---- | ----------- | ----- |
63
- | **app_id** | **String** | App ID | |
64
-
65
- ### Return type
66
-
67
- [**AppResponse**](AppResponse.md)
68
-
69
- ### Authorization
70
-
71
- [bearerAuth](../README.md#bearerAuth)
72
-
73
- ### HTTP request headers
74
-
75
- - **Content-Type**: Not defined
76
- - **Accept**: application/json
77
-
@@ -1,22 +0,0 @@
1
- # OpenapiClient::AuthMethods
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **passkeys** | [**PasskeysAuthMethod**](PasskeysAuthMethod.md) | | |
8
- | **otp** | [**OtpAuthMethod**](OtpAuthMethod.md) | | |
9
- | **magic_link** | [**MagicLinkAuthMethod**](MagicLinkAuthMethod.md) | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'openapi_client'
15
-
16
- instance = OpenapiClient::AuthMethods.new(
17
- passkeys: null,
18
- otp: null,
19
- magic_link: null
20
- )
21
- ```
22
-
@@ -1,36 +0,0 @@
1
- # OpenapiClient::CreateMagicLinkRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **channel** | [**MagicLinkChannel**](MagicLinkChannel.md) | | |
8
- | **email** | **String** | | |
9
- | **language** | **String** | language of the email to send (optional) | [optional] |
10
- | **magic_link_path** | **String** | | |
11
- | **phone** | **String** | | |
12
- | **redirect_url** | **String** | | |
13
- | **_send** | **Boolean** | | |
14
- | **ttl** | **Integer** | | |
15
- | **type** | [**MagicLinkType**](MagicLinkType.md) | | [optional] |
16
- | **user_id** | **String** | | |
17
-
18
- ## Example
19
-
20
- ```ruby
21
- require 'openapi_client'
22
-
23
- instance = OpenapiClient::CreateMagicLinkRequest.new(
24
- channel: null,
25
- email: null,
26
- language: null,
27
- magic_link_path: null,
28
- phone: null,
29
- redirect_url: null,
30
- _send: null,
31
- ttl: null,
32
- type: null,
33
- user_id: null
34
- )
35
- ```
36
-
@@ -1,22 +0,0 @@
1
- # OpenapiClient::CreateUserRequest
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **email** | **String** | Email of the new user. Either this or &#x60;phone&#x60; is required; both may be provided. | [optional] |
8
- | **phone** | **String** | Phone number of the new user. Either this or &#x60;email&#x60; is required; both may be provided. | [optional] |
9
- | **user_metadata** | **Object** | | [optional] |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'openapi_client'
15
-
16
- instance = OpenapiClient::CreateUserRequest.new(
17
- email: null,
18
- phone: null,
19
- user_metadata: null
20
- )
21
- ```
22
-
@@ -1,56 +0,0 @@
1
- # OpenapiClient::ElementCustomization
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **passage_container_background_color** | **String** | Container background color in hex. Default is &#x60;#ffffff&#x60; in light mode &amp; &#x60;#383838&#x60; in dark mode. | [optional] |
8
- | **passage_container_max_width** | **Integer** | Maximum width of container (px) | [optional][default to 300] |
9
- | **passage_input_box_background_color** | **String** | Input box background color in hex. Default is &#x60;#ffffff&#x60; in light mode &amp; &#x60;#4b4b4b&#x60; in dark mode. | [optional] |
10
- | **passage_input_box_border_radius** | **Integer** | Input box border radius (px) | [optional][default to 5] |
11
- | **passage_header_font_family** | [**FontFamily**](FontFamily.md) | | [optional][default to &#39;Helvetica&#39;] |
12
- | **passage_body_font_family** | [**FontFamily**](FontFamily.md) | | [optional][default to &#39;Helvetica&#39;] |
13
- | **passage_header_text_color** | **String** | Header text color in hex. Default is &#x60;#222222&#x60; in light mode &amp; &#x60;#f3f3f3&#x60; in dark mode. | [optional] |
14
- | **passage_body_text_color** | **String** | Body text color in hex. Default is &#x60;#222222&#x60; in light mode &amp; &#x60;#f3f3f3&#x60; in dark mode. | [optional] |
15
- | **passage_primary_button_background_color** | **String** | Primary button background colour (hex) | [optional][default to &#39;#121212&#39;] |
16
- | **passage_primary_button_text_color** | **String** | Primary button font colour (hex) | [optional][default to &#39;#f3f3f3&#39;] |
17
- | **passage_primary_button_hover_color** | **String** | Primary button background on hover (hex) | [optional][default to &#39;#4d4d4d&#39;] |
18
- | **passage_primary_button_border_radius** | **Integer** | Primary button border radius (px) | [optional][default to 5] |
19
- | **passage_primary_button_border_color** | **String** | Primary button border color | [optional][default to &#39;#121212&#39;] |
20
- | **passage_primary_button_border_width** | **Integer** | Primary button border width (px) | [optional][default to 0] |
21
- | **passage_secondary_button_background_color** | **String** | Secondary button background colour (hex) | [optional][default to &#39;#ffffff&#39;] |
22
- | **passage_secondary_button_text_color** | **String** | Secondary button font colour (hex) | [optional][default to &#39;#222222&#39;] |
23
- | **passage_secondary_button_hover_color** | **String** | Secondary button background on hover (hex) | [optional][default to &#39;#d7d7d7&#39;] |
24
- | **passage_secondary_button_border_radius** | **Integer** | Secondary button border radius (px) | [optional][default to 5] |
25
- | **passage_secondary_button_border_color** | **String** | Secondary button border color | [optional][default to &#39;#d7d7d7&#39;] |
26
- | **passage_secondary_button_border_width** | **Integer** | Secondary button border width (px) | [optional][default to 1] |
27
-
28
- ## Example
29
-
30
- ```ruby
31
- require 'openapi_client'
32
-
33
- instance = OpenapiClient::ElementCustomization.new(
34
- passage_container_background_color: #ffffff,
35
- passage_container_max_width: null,
36
- passage_input_box_background_color: #ffffff,
37
- passage_input_box_border_radius: null,
38
- passage_header_font_family: null,
39
- passage_body_font_family: null,
40
- passage_header_text_color: #222222,
41
- passage_body_text_color: #222222,
42
- passage_primary_button_background_color: null,
43
- passage_primary_button_text_color: null,
44
- passage_primary_button_hover_color: null,
45
- passage_primary_button_border_radius: null,
46
- passage_primary_button_border_color: null,
47
- passage_primary_button_border_width: null,
48
- passage_secondary_button_background_color: null,
49
- passage_secondary_button_text_color: null,
50
- passage_secondary_button_hover_color: null,
51
- passage_secondary_button_border_radius: null,
52
- passage_secondary_button_border_color: null,
53
- passage_secondary_button_border_width: null
54
- )
55
- ```
56
-
@@ -1,15 +0,0 @@
1
- # OpenapiClient::FontFamily
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'openapi_client'
12
-
13
- instance = OpenapiClient::FontFamily.new()
14
- ```
15
-
@@ -1,24 +0,0 @@
1
- # OpenapiClient::GithubUserSocialConnection
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **provider_id** | **String** | The external ID of the Social Connection. | |
8
- | **created_at** | **Time** | | |
9
- | **last_login_at** | **Time** | | |
10
- | **provider_identifier** | **String** | The email of connected social user. | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'openapi_client'
16
-
17
- instance = OpenapiClient::GithubUserSocialConnection.new(
18
- provider_id: null,
19
- created_at: null,
20
- last_login_at: null,
21
- provider_identifier: null
22
- )
23
- ```
24
-
@@ -1,24 +0,0 @@
1
- # OpenapiClient::GoogleUserSocialConnection
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **provider_id** | **String** | The external ID of the Social Connection. | |
8
- | **created_at** | **Time** | | |
9
- | **last_login_at** | **Time** | | |
10
- | **provider_identifier** | **String** | The email of connected social user. | |
11
-
12
- ## Example
13
-
14
- ```ruby
15
- require 'openapi_client'
16
-
17
- instance = OpenapiClient::GoogleUserSocialConnection.new(
18
- provider_id: null,
19
- created_at: null,
20
- last_login_at: null,
21
- provider_identifier: null
22
- )
23
- ```
24
-
@@ -1,26 +0,0 @@
1
- # OpenapiClient::LayoutConfig
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **h** | **Integer** | | |
8
- | **id** | **String** | | |
9
- | **w** | **Integer** | | |
10
- | **x** | **Integer** | | |
11
- | **y** | **Integer** | | |
12
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'openapi_client'
17
-
18
- instance = OpenapiClient::LayoutConfig.new(
19
- h: null,
20
- id: null,
21
- w: null,
22
- x: null,
23
- y: null
24
- )
25
- ```
26
-
@@ -1,20 +0,0 @@
1
- # OpenapiClient::Layouts
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **profile** | [**Array&lt;LayoutConfig&gt;**](LayoutConfig.md) | | |
8
- | **registration** | [**Array&lt;LayoutConfig&gt;**](LayoutConfig.md) | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'openapi_client'
14
-
15
- instance = OpenapiClient::Layouts.new(
16
- profile: null,
17
- registration: null
18
- )
19
- ```
20
-
@@ -1,18 +0,0 @@
1
- # OpenapiClient::Link
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **href** | **String** | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'openapi_client'
13
-
14
- instance = OpenapiClient::Link.new(
15
- href: null
16
- )
17
- ```
18
-
@@ -1,18 +0,0 @@
1
- # OpenapiClient::ListDevicesResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **devices** | [**Array&lt;WebAuthnDevices&gt;**](WebAuthnDevices.md) | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'openapi_client'
13
-
14
- instance = OpenapiClient::ListDevicesResponse.new(
15
- devices: null
16
- )
17
- ```
18
-
@@ -1,38 +0,0 @@
1
- # OpenapiClient::ListPaginatedUsersItem
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
- | **status** | [**UserStatus**](UserStatus.md) | | |
16
- | **updated_at** | **Time** | | |
17
- | **user_metadata** | **Object** | | |
18
-
19
- ## Example
20
-
21
- ```ruby
22
- require 'openapi_client'
23
-
24
- instance = OpenapiClient::ListPaginatedUsersItem.new(
25
- created_at: null,
26
- email: null,
27
- email_verified: null,
28
- id: null,
29
- last_login_at: null,
30
- login_count: null,
31
- phone: null,
32
- phone_verified: null,
33
- status: null,
34
- updated_at: null,
35
- user_metadata: null
36
- )
37
- ```
38
-
@@ -1,28 +0,0 @@
1
- # OpenapiClient::ListPaginatedUsersResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **_links** | [**PaginatedLinks**](PaginatedLinks.md) | | |
8
- | **created_before** | **Integer** | time anchor (Unix timestamp) --&gt; all users returned created before this timestamp | |
9
- | **limit** | **Integer** | | |
10
- | **page** | **Integer** | | |
11
- | **total_users** | **Integer** | total number of users for a particular query | |
12
- | **users** | [**Array&lt;ListPaginatedUsersItem&gt;**](ListPaginatedUsersItem.md) | | |
13
-
14
- ## Example
15
-
16
- ```ruby
17
- require 'openapi_client'
18
-
19
- instance = OpenapiClient::ListPaginatedUsersResponse.new(
20
- _links: null,
21
- created_before: null,
22
- limit: null,
23
- page: null,
24
- total_users: null,
25
- users: null
26
- )
27
- ```
28
-
@@ -1,36 +0,0 @@
1
- # OpenapiClient::MagicLink
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **activated** | **Boolean** | | |
8
- | **app_id** | **String** | | |
9
- | **id** | **String** | | |
10
- | **identifier** | **String** | | |
11
- | **redirect_url** | **String** | | |
12
- | **secret** | **String** | | |
13
- | **ttl** | **Integer** | | |
14
- | **type** | [**MagicLinkType**](MagicLinkType.md) | | |
15
- | **url** | **String** | | |
16
- | **user_id** | **String** | | |
17
-
18
- ## Example
19
-
20
- ```ruby
21
- require 'openapi_client'
22
-
23
- instance = OpenapiClient::MagicLink.new(
24
- activated: null,
25
- app_id: null,
26
- id: null,
27
- identifier: null,
28
- redirect_url: null,
29
- secret: null,
30
- ttl: null,
31
- type: null,
32
- url: null,
33
- user_id: null
34
- )
35
- ```
36
-
@@ -1,22 +0,0 @@
1
- # OpenapiClient::MagicLinkAuthMethod
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **enabled** | **Boolean** | | |
8
- | **ttl** | **Integer** | Maximum time (IN SECONDS) for the auth to expire. | [default to 300] |
9
- | **ttl_display_unit** | [**TtlDisplayUnit**](TtlDisplayUnit.md) | | |
10
-
11
- ## Example
12
-
13
- ```ruby
14
- require 'openapi_client'
15
-
16
- instance = OpenapiClient::MagicLinkAuthMethod.new(
17
- enabled: null,
18
- ttl: null,
19
- ttl_display_unit: null
20
- )
21
- ```
22
-
@@ -1,15 +0,0 @@
1
- # OpenapiClient::MagicLinkChannel
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'openapi_client'
12
-
13
- instance = OpenapiClient::MagicLinkChannel.new()
14
- ```
15
-
@@ -1,18 +0,0 @@
1
- # OpenapiClient::MagicLinkResponse
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **magic_link** | [**MagicLink**](MagicLink.md) | | |
8
-
9
- ## Example
10
-
11
- ```ruby
12
- require 'openapi_client'
13
-
14
- instance = OpenapiClient::MagicLinkResponse.new(
15
- magic_link: null
16
- )
17
- ```
18
-
@@ -1,15 +0,0 @@
1
- # OpenapiClient::MagicLinkType
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
-
8
- ## Example
9
-
10
- ```ruby
11
- require 'openapi_client'
12
-
13
- instance = OpenapiClient::MagicLinkType.new()
14
- ```
15
-
@@ -1,79 +0,0 @@
1
- # OpenapiClient::MagicLinksApi
2
-
3
- All URIs are relative to *https://api.passage.id/v1*
4
-
5
- | Method | HTTP request | Description |
6
- | ------ | ------------ | ----------- |
7
- | [**create_magic_link**](MagicLinksApi.md#create_magic_link) | **POST** /apps/{app_id}/magic-links | Create Embeddable Magic Link |
8
-
9
-
10
- ## create_magic_link
11
-
12
- > <MagicLinkResponse> create_magic_link(app_id, create_magic_link_request)
13
-
14
- Create Embeddable Magic Link
15
-
16
- Create magic link for a user.
17
-
18
- ### Examples
19
-
20
- ```ruby
21
- require 'time'
22
- require 'openapi_client'
23
- # setup authorization
24
- OpenapiClient.configure do |config|
25
- # Configure Bearer authorization (JWT): bearerAuth
26
- config.access_token = 'YOUR_BEARER_TOKEN'
27
- end
28
-
29
- api_instance = OpenapiClient::MagicLinksApi.new
30
- app_id = 'app_id_example' # String | App ID
31
- create_magic_link_request = OpenapiClient::CreateMagicLinkRequest.new({channel: OpenapiClient::MagicLinkChannel::EMAIL, email: 'email_example', magic_link_path: 'magic_link_path_example', phone: 'phone_example', redirect_url: 'redirect_url_example', _send: false, ttl: 37, user_id: 'user_id_example'}) # CreateMagicLinkRequest | magic link request
32
-
33
- begin
34
- # Create Embeddable Magic Link
35
- result = api_instance.create_magic_link(app_id, create_magic_link_request)
36
- p result
37
- rescue OpenapiClient::ApiError => e
38
- puts "Error when calling MagicLinksApi->create_magic_link: #{e}"
39
- end
40
- ```
41
-
42
- #### Using the create_magic_link_with_http_info variant
43
-
44
- This returns an Array which contains the response data, status code and headers.
45
-
46
- > <Array(<MagicLinkResponse>, Integer, Hash)> create_magic_link_with_http_info(app_id, create_magic_link_request)
47
-
48
- ```ruby
49
- begin
50
- # Create Embeddable Magic Link
51
- data, status_code, headers = api_instance.create_magic_link_with_http_info(app_id, create_magic_link_request)
52
- p status_code # => 2xx
53
- p headers # => { ... }
54
- p data # => <MagicLinkResponse>
55
- rescue OpenapiClient::ApiError => e
56
- puts "Error when calling MagicLinksApi->create_magic_link_with_http_info: #{e}"
57
- end
58
- ```
59
-
60
- ### Parameters
61
-
62
- | Name | Type | Description | Notes |
63
- | ---- | ---- | ----------- | ----- |
64
- | **app_id** | **String** | App ID | |
65
- | **create_magic_link_request** | [**CreateMagicLinkRequest**](CreateMagicLinkRequest.md) | magic link request | |
66
-
67
- ### Return type
68
-
69
- [**MagicLinkResponse**](MagicLinkResponse.md)
70
-
71
- ### Authorization
72
-
73
- [bearerAuth](../README.md#bearerAuth)
74
-
75
- ### HTTP request headers
76
-
77
- - **Content-Type**: application/json
78
- - **Accept**: application/json
79
-
@@ -1,20 +0,0 @@
1
- # OpenapiClient::Model400Error
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **code** | **String** | | |
8
- | **error** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'openapi_client'
14
-
15
- instance = OpenapiClient::Model400Error.new(
16
- code: null,
17
- error: null
18
- )
19
- ```
20
-
@@ -1,20 +0,0 @@
1
- # OpenapiClient::Model401Error
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **code** | **String** | | |
8
- | **error** | **String** | | |
9
-
10
- ## Example
11
-
12
- ```ruby
13
- require 'openapi_client'
14
-
15
- instance = OpenapiClient::Model401Error.new(
16
- code: null,
17
- error: null
18
- )
19
- ```
20
-