@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.
package/README.md CHANGED
@@ -39,11 +39,11 @@ You can find a full TypeScript server example in the [samples](https://github.co
39
39
 
40
40
  ## SDK Versioning
41
41
 
42
- var configuration = new Configuration { AccessToken = "your-access-token" };
42
+ Our SDKs follow the [Semantic Versioning](https://semver.org) ("SemVer") scheme.
43
43
 
44
- var attachments = new AttachmentsApi(configuration);
45
- var network = new NetworkApi(configuration);
46
- var sessions = new SessionsApi(configuration);
44
+ For example, the version number `1.13.0` has a major version of `1`, a minor version of `13`, and a patch version of `0`.
45
+
46
+ Breaking changes are only introduced alongside a new major version.
47
47
 
48
48
  ## Support
49
49
 
@@ -27,6 +27,27 @@ export interface CreateSessionRequest {
27
27
  * @memberof CreateSessionRequest
28
28
  */
29
29
  launchProviderDirectly?: boolean;
30
+ /**
31
+ * Whether to enable Trinsic's "Remember Me" feature, which allows users to save their credentials for future use.
32
+ *
33
+ * This option is only relevant when `LaunchProviderDirectly` is unspecified or set to `false`.
34
+ * If `LaunchProviderDirectly` is `true`, this field must be unspecified or set to `false`.
35
+ *
36
+ * If this field is set to `true`, then:
37
+ * - The user will be prompted to authenticate with their phone number at the start of the flow
38
+ * - If the user has previously saved a verification for reuse with Trinsic, they will be offered the ability to reuse it
39
+ * - 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
40
+ *
41
+ * If this field is set to `false`, then:
42
+ * - The user will not be prompted to authenticate with their phone number at the start of the flow.
43
+ * - Instead, the user will be immediately shown the list of available providers
44
+ * - The user will not be offered the ability to reuse a previously-saved Trinsic credential
45
+ * - After the user has verified their identity, they will not be prompted to save their credentials for future use
46
+ * - Instead, they will immediately return to your product
47
+ * @type {boolean}
48
+ * @memberof CreateSessionRequest
49
+ */
50
+ enableRememberMe?: boolean;
30
51
  /**
31
52
  * The list of allowed identity providers. If not specified, all available providers will be allowed.
32
53
  *
@@ -27,6 +27,7 @@ export function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
27
27
  }
28
28
  return {
29
29
  'launchProviderDirectly': json['launchProviderDirectly'] == null ? undefined : json['launchProviderDirectly'],
30
+ 'enableRememberMe': json['enableRememberMe'] == null ? undefined : json['enableRememberMe'],
30
31
  'providers': json['providers'] == null ? undefined : json['providers'],
31
32
  'disclosedFields': json['disclosedFields'] == null ? undefined : DisclosedFieldsRequestFromJSON(json['disclosedFields']),
32
33
  };
@@ -37,6 +38,7 @@ export function CreateSessionRequestToJSON(value) {
37
38
  }
38
39
  return {
39
40
  'launchProviderDirectly': value['launchProviderDirectly'],
41
+ 'enableRememberMe': value['enableRememberMe'],
40
42
  'providers': value['providers'],
41
43
  'disclosedFields': DisclosedFieldsRequestToJSON(value['disclosedFields']),
42
44
  };
@@ -27,6 +27,27 @@ export interface CreateSessionRequest {
27
27
  * @memberof CreateSessionRequest
28
28
  */
29
29
  launchProviderDirectly?: boolean;
30
+ /**
31
+ * Whether to enable Trinsic's "Remember Me" feature, which allows users to save their credentials for future use.
32
+ *
33
+ * This option is only relevant when `LaunchProviderDirectly` is unspecified or set to `false`.
34
+ * If `LaunchProviderDirectly` is `true`, this field must be unspecified or set to `false`.
35
+ *
36
+ * If this field is set to `true`, then:
37
+ * - The user will be prompted to authenticate with their phone number at the start of the flow
38
+ * - If the user has previously saved a verification for reuse with Trinsic, they will be offered the ability to reuse it
39
+ * - 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
40
+ *
41
+ * If this field is set to `false`, then:
42
+ * - The user will not be prompted to authenticate with their phone number at the start of the flow.
43
+ * - Instead, the user will be immediately shown the list of available providers
44
+ * - The user will not be offered the ability to reuse a previously-saved Trinsic credential
45
+ * - After the user has verified their identity, they will not be prompted to save their credentials for future use
46
+ * - Instead, they will immediately return to your product
47
+ * @type {boolean}
48
+ * @memberof CreateSessionRequest
49
+ */
50
+ enableRememberMe?: boolean;
30
51
  /**
31
52
  * The list of allowed identity providers. If not specified, all available providers will be allowed.
32
53
  *
@@ -33,6 +33,7 @@ function CreateSessionRequestFromJSONTyped(json, ignoreDiscriminator) {
33
33
  }
34
34
  return {
35
35
  'launchProviderDirectly': json['launchProviderDirectly'] == null ? undefined : json['launchProviderDirectly'],
36
+ 'enableRememberMe': json['enableRememberMe'] == null ? undefined : json['enableRememberMe'],
36
37
  'providers': json['providers'] == null ? undefined : json['providers'],
37
38
  'disclosedFields': json['disclosedFields'] == null ? undefined : (0, DisclosedFieldsRequest_1.DisclosedFieldsRequestFromJSON)(json['disclosedFields']),
38
39
  };
@@ -43,6 +44,7 @@ function CreateSessionRequestToJSON(value) {
43
44
  }
44
45
  return {
45
46
  'launchProviderDirectly': value['launchProviderDirectly'],
47
+ 'enableRememberMe': value['enableRememberMe'],
46
48
  'providers': value['providers'],
47
49
  'disclosedFields': (0, DisclosedFieldsRequest_1.DisclosedFieldsRequestToJSON)(value['disclosedFields']),
48
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trinsic/api",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Trinsic API TypeScript library.",
5
5
  "author": "Trinsic",
6
6
  "repository": {
@@ -37,6 +37,27 @@ export interface CreateSessionRequest {
37
37
  * @memberof CreateSessionRequest
38
38
  */
39
39
  launchProviderDirectly?: boolean;
40
+ /**
41
+ * Whether to enable Trinsic's "Remember Me" feature, which allows users to save their credentials for future use.
42
+ *
43
+ * This option is only relevant when `LaunchProviderDirectly` is unspecified or set to `false`.
44
+ * If `LaunchProviderDirectly` is `true`, this field must be unspecified or set to `false`.
45
+ *
46
+ * If this field is set to `true`, then:
47
+ * - The user will be prompted to authenticate with their phone number at the start of the flow
48
+ * - If the user has previously saved a verification for reuse with Trinsic, they will be offered the ability to reuse it
49
+ * - 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
50
+ *
51
+ * If this field is set to `false`, then:
52
+ * - The user will not be prompted to authenticate with their phone number at the start of the flow.
53
+ * - Instead, the user will be immediately shown the list of available providers
54
+ * - The user will not be offered the ability to reuse a previously-saved Trinsic credential
55
+ * - After the user has verified their identity, they will not be prompted to save their credentials for future use
56
+ * - Instead, they will immediately return to your product
57
+ * @type {boolean}
58
+ * @memberof CreateSessionRequest
59
+ */
60
+ enableRememberMe?: boolean;
40
61
  /**
41
62
  * The list of allowed identity providers. If not specified, all available providers will be allowed.
42
63
  *
@@ -72,6 +93,7 @@ export function CreateSessionRequestFromJSONTyped(json: any, ignoreDiscriminator
72
93
  return {
73
94
 
74
95
  'launchProviderDirectly': json['launchProviderDirectly'] == null ? undefined : json['launchProviderDirectly'],
96
+ 'enableRememberMe': json['enableRememberMe'] == null ? undefined : json['enableRememberMe'],
75
97
  'providers': json['providers'] == null ? undefined : json['providers'],
76
98
  'disclosedFields': json['disclosedFields'] == null ? undefined : DisclosedFieldsRequestFromJSON(json['disclosedFields']),
77
99
  };
@@ -84,6 +106,7 @@ export function CreateSessionRequestToJSON(value?: CreateSessionRequest | null):
84
106
  return {
85
107
 
86
108
  'launchProviderDirectly': value['launchProviderDirectly'],
109
+ 'enableRememberMe': value['enableRememberMe'],
87
110
  'providers': value['providers'],
88
111
  'disclosedFields': DisclosedFieldsRequestToJSON(value['disclosedFields']),
89
112
  };