trinsic_api 1.1.0 → 1.1.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 19ee776fbe38a47650e1e3bdee0884ed5de859308a269779b4ba27ca04d3e965
4
- data.tar.gz: 24e3e576b85b62a9d3ff2d9d9f5dc879f80f3d4bdcffa9b7d7d3c4696630c7c6
3
+ metadata.gz: 555547575f24bd34d4674407c0516a0569a3252af1f79da905d2dad43c5a2b75
4
+ data.tar.gz: d8c405fa2d8c7c46592901108e04b61edc1a39f7f7f540a687478f7b6c56e992
5
5
  SHA512:
6
- metadata.gz: 53ec014f18bd5b36b451d0c3205857e1242a020b4a0eca6d156433cad78285b78e87e830c2b028e757fa24e2cc8b8cb6e3b64ba6ae4f8a883a6f66da3161d8e1
7
- data.tar.gz: 9f8b6858c4307a06d28e836d1bffc1218652d26b61370a61d86ede011b38e070991c5d072a03894f5e4a0f369d3f7e3c4d3553b223b0717348b44e031171a114
6
+ metadata.gz: 39358ab2dd616d6c51d8e08931531ebd3a238c4f3bf58269c032f9df2c20dd06ea51265b0322ab432fbcbfab95b21ce99d8cc8f4f565d27340cab6b92b0ac36d
7
+ data.tar.gz: 43c7d0b6a7f400bc5f7d78916d3dcd4a439c721cb4e2e7cf76850692f2154513dd2389bb7dba91b464c90fdac612db3085ff33f9404cd72f595c1ea8e4ebd83a
@@ -5,6 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **launch_provider_directly** | **Boolean** | Whether to immediately launch the identity provider, without invoking the Trinsic Widget UI. Users will not be shown the Widget; therefore, reuse of credentials, selection of an identity provider, and saving a verification for future reuse are not available to the end user in this mode. Sessions created with this option enabled must be created with a `RedirectUrl` specified, and cannot be invoked using the frontend SDK at this time. | [optional] |
8
+ | **enable_remember_me** | **Boolean** | Whether to enable Trinsic's \"Remember Me\" feature, which allows users to save their credentials for future use. This option is only relevant when `LaunchProviderDirectly` is unspecified or set to `false`. If `LaunchProviderDirectly` is `true`, this field must be unspecified or set to `false`. If this field is set to `true`, then: - The user will be prompted to authenticate with their phone number at the start of the flow - If the user has previously saved a verification for reuse with Trinsic, they will be offered the ability to reuse it - After the user has verified their identity (and if the identity provider in question supports it), they will be prompted to save their credentials for future use If this field is set to `false`, then: - The user will not be prompted to authenticate with their phone number at the start of the flow. - Instead, the user will be immediately shown the list of available providers - The user will not be offered the ability to reuse a previously-saved Trinsic credential - After the user has verified their identity, they will not be prompted to save their credentials for future use - Instead, they will immediately return to your product | [optional] |
8
9
  | **providers** | **Array<String>** | The list of allowed identity providers. If not specified, all available providers will be allowed. If `LaunchMethodDirectly` is `true`, this field must be set, and must have only a single entry. If `LaunchMethodDirectly` is not specified or is `false`, this field may have any number of entries. | [optional] |
9
10
  | **disclosed_fields** | [**DisclosedFieldsRequest**](DisclosedFieldsRequest.md) | Specific identity attributes to request. If not provided, all available attributes will be requested. | [optional] |
10
11
 
@@ -15,6 +16,7 @@ require 'trinsic_api'
15
16
 
16
17
  instance = TrinsicApi::CreateSessionRequest.new(
17
18
  launch_provider_directly: null,
19
+ enable_remember_me: false,
18
20
  providers: null,
19
21
  disclosed_fields: null
20
22
  )
@@ -18,6 +18,9 @@ module TrinsicApi
18
18
  # Whether to immediately launch the identity provider, without invoking the Trinsic Widget UI. Users will not be shown the Widget; therefore, reuse of credentials, selection of an identity provider, and saving a verification for future reuse are not available to the end user in this mode. Sessions created with this option enabled must be created with a `RedirectUrl` specified, and cannot be invoked using the frontend SDK at this time.
19
19
  attr_accessor :launch_provider_directly
20
20
 
21
+ # Whether to enable Trinsic's \"Remember Me\" feature, which allows users to save their credentials for future use. This option is only relevant when `LaunchProviderDirectly` is unspecified or set to `false`. If `LaunchProviderDirectly` is `true`, this field must be unspecified or set to `false`. If this field is set to `true`, then: - The user will be prompted to authenticate with their phone number at the start of the flow - If the user has previously saved a verification for reuse with Trinsic, they will be offered the ability to reuse it - After the user has verified their identity (and if the identity provider in question supports it), they will be prompted to save their credentials for future use If this field is set to `false`, then: - The user will not be prompted to authenticate with their phone number at the start of the flow. - Instead, the user will be immediately shown the list of available providers - The user will not be offered the ability to reuse a previously-saved Trinsic credential - After the user has verified their identity, they will not be prompted to save their credentials for future use - Instead, they will immediately return to your product
22
+ attr_accessor :enable_remember_me
23
+
21
24
  # The list of allowed identity providers. If not specified, all available providers will be allowed. If `LaunchMethodDirectly` is `true`, this field must be set, and must have only a single entry. If `LaunchMethodDirectly` is not specified or is `false`, this field may have any number of entries.
22
25
  attr_accessor :providers
23
26
 
@@ -28,6 +31,7 @@ module TrinsicApi
28
31
  def self.attribute_map
29
32
  {
30
33
  :'launch_provider_directly' => :'launchProviderDirectly',
34
+ :'enable_remember_me' => :'enableRememberMe',
31
35
  :'providers' => :'providers',
32
36
  :'disclosed_fields' => :'disclosedFields'
33
37
  }
@@ -42,6 +46,7 @@ module TrinsicApi
42
46
  def self.openapi_types
43
47
  {
44
48
  :'launch_provider_directly' => :'Boolean',
49
+ :'enable_remember_me' => :'Boolean',
45
50
  :'providers' => :'Array<String>',
46
51
  :'disclosed_fields' => :'DisclosedFieldsRequest'
47
52
  }
@@ -72,6 +77,10 @@ module TrinsicApi
72
77
  self.launch_provider_directly = attributes[:'launch_provider_directly']
73
78
  end
74
79
 
80
+ if attributes.key?(:'enable_remember_me')
81
+ self.enable_remember_me = attributes[:'enable_remember_me']
82
+ end
83
+
75
84
  if attributes.key?(:'providers')
76
85
  if (value = attributes[:'providers']).is_a?(Array)
77
86
  self.providers = value
@@ -104,6 +113,7 @@ module TrinsicApi
104
113
  return true if self.equal?(o)
105
114
  self.class == o.class &&
106
115
  launch_provider_directly == o.launch_provider_directly &&
116
+ enable_remember_me == o.enable_remember_me &&
107
117
  providers == o.providers &&
108
118
  disclosed_fields == o.disclosed_fields
109
119
  end
@@ -117,7 +127,7 @@ module TrinsicApi
117
127
  # Calculates hash code according to all attributes.
118
128
  # @return [Integer] Hash code
119
129
  def hash
120
- [launch_provider_directly, providers, disclosed_fields].hash
130
+ [launch_provider_directly, enable_remember_me, providers, disclosed_fields].hash
121
131
  end
122
132
 
123
133
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.8.0
11
11
  =end
12
12
 
13
13
  module TrinsicApi
14
- VERSION = '1.1.0'
14
+ VERSION = '1.1.2'
15
15
  end
@@ -33,6 +33,12 @@ describe TrinsicApi::CreateSessionRequest do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "enable_remember_me"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
+ end
40
+ end
41
+
36
42
  describe 'test attribute "providers"' do
37
43
  it 'should work' do
38
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinsic_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trinsic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -186,35 +186,35 @@ signing_key:
186
186
  specification_version: 4
187
187
  summary: Trinsic API Ruby Library
188
188
  test_files:
189
+ - spec/api/sessions_api_spec.rb
189
190
  - spec/api/attachments_api_spec.rb
190
191
  - spec/api/network_api_spec.rb
191
- - spec/api/sessions_api_spec.rb
192
- - spec/models/attachment_access_keys_spec.rb
193
- - spec/models/get_session_response_spec.rb
194
- - spec/models/create_session_response_spec.rb
195
- - spec/models/document_data_spec.rb
196
- - spec/models/identity_data_spec.rb
192
+ - spec/models/session_spec.rb
197
193
  - spec/models/disclosed_fields_spec.rb
198
- - spec/models/session_state_spec.rb
199
- - spec/models/verification_spec.rb
200
- - spec/models/get_session_result_request_spec.rb
194
+ - spec/models/disclosed_fields_request_spec.rb
201
195
  - spec/models/identity_lookup_response_spec.rb
202
- - spec/models/order_direction_spec.rb
203
- - spec/models/person_data_spec.rb
204
- - spec/models/session_spec.rb
205
196
  - spec/models/list_providers_response_spec.rb
206
- - spec/models/validation_result_spec.rb
207
- - spec/models/session_ordering_spec.rb
197
+ - spec/models/attachment_access_keys_spec.rb
198
+ - spec/models/cancel_session_response_spec.rb
199
+ - spec/models/session_state_spec.rb
208
200
  - spec/models/verification_fail_code_spec.rb
201
+ - spec/models/document_data_spec.rb
209
202
  - spec/models/get_session_result_response_spec.rb
210
- - spec/models/get_attachment_request_spec.rb
203
+ - spec/models/verification_spec.rb
204
+ - spec/models/list_sessions_response_spec.rb
205
+ - spec/models/create_session_response_spec.rb
206
+ - spec/models/order_direction_spec.rb
207
+ - spec/models/validation_result_spec.rb
211
208
  - spec/models/provider_info_spec.rb
212
- - spec/models/cancel_session_response_spec.rb
213
- - spec/models/failure_message_spec.rb
209
+ - spec/models/session_fail_code_spec.rb
210
+ - spec/models/get_session_response_spec.rb
211
+ - spec/models/get_attachment_request_spec.rb
214
212
  - spec/models/address_spec.rb
215
213
  - spec/models/get_attachment_response_spec.rb
216
- - spec/models/session_fail_code_spec.rb
217
- - spec/models/disclosed_fields_request_spec.rb
218
- - spec/models/list_sessions_response_spec.rb
219
214
  - spec/models/create_session_request_spec.rb
215
+ - spec/models/session_ordering_spec.rb
216
+ - spec/models/failure_message_spec.rb
217
+ - spec/models/identity_data_spec.rb
218
+ - spec/models/person_data_spec.rb
219
+ - spec/models/get_session_result_request_spec.rb
220
220
  - spec/spec_helper.rb