@trinsic/api 0.5.0 → 0.6.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.
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trinsic/api",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
"author": "
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"description": "Trinsic API TypeScript library.",
|
|
5
|
+
"author": "Trinsic",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "https://github.com/
|
|
8
|
+
"url": "https://github.com/trinsic-id/sdk"
|
|
9
9
|
},
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"typings": "./dist/index.d.ts",
|
|
@@ -17,5 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"typescript": "^4.0 || ^5.0"
|
|
20
|
-
}
|
|
20
|
+
},
|
|
21
|
+
"homepage": "https://trinsic.id",
|
|
22
|
+
"license": "MIT"
|
|
21
23
|
}
|
package/src/apis/SessionsApi.ts
CHANGED
|
@@ -171,7 +171,7 @@ export interface SessionsApiInterface {
|
|
|
171
171
|
listSessions(orderBy?: SessionOrdering, orderDirection?: OrderDirection, pageSize?: number, page?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListSessionsResponse>;
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
174
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
175
175
|
* @summary Redact Session
|
|
176
176
|
* @param {string} sessionId
|
|
177
177
|
* @param {*} [options] Override http request option.
|
|
@@ -181,7 +181,7 @@ export interface SessionsApiInterface {
|
|
|
181
181
|
redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
182
182
|
|
|
183
183
|
/**
|
|
184
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
184
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
185
185
|
* Redact Session
|
|
186
186
|
*/
|
|
187
187
|
redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
@@ -415,7 +415,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
418
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
419
419
|
* Redact Session
|
|
420
420
|
*/
|
|
421
421
|
async redactSessionRaw(requestParameters: RedactSessionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
@@ -449,7 +449,7 @@ export class SessionsApi extends runtime.BaseAPI implements SessionsApiInterface
|
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
/**
|
|
452
|
-
* Redact a Session, removing all identity data from Trinsic\'s servers. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
452
|
+
* Redact a Session, removing all identity data from Trinsic\'s servers. Every application has a redaction period that dictates how long we will hold on to your users\' PII data. Once a session falls outside the redaction cutoff date, all PII will automatically be removed from that session. You can utilize this endpoint to redact a session immediately. Identity data that a user has chosen to save in their passkey-protected wallet will not be deleted.
|
|
453
453
|
* Redact Session
|
|
454
454
|
*/
|
|
455
455
|
async redactSession(sessionId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
@@ -27,16 +27,16 @@ import {
|
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateSessionRequest {
|
|
29
29
|
/**
|
|
30
|
-
* Whether to immediately launch the identity provider, without invoking the Trinsic
|
|
30
|
+
* Whether to immediately launch the identity provider, without invoking the Trinsic Widget UI.
|
|
31
31
|
*
|
|
32
|
-
* Users will not be shown the
|
|
32
|
+
* Users will not be shown the Widget; therefore, reuse of credentials, selection of an identity provider, and saving a verification for future reuse
|
|
33
33
|
* are not available to the end user in this mode.
|
|
34
34
|
*
|
|
35
35
|
* Sessions created with this option enabled must be created with a `RedirectUrl` specified, and cannot be invoked using the frontend SDK at this time.
|
|
36
36
|
* @type {boolean}
|
|
37
37
|
* @memberof CreateSessionRequest
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
launchProviderDirectly?: boolean;
|
|
40
40
|
/**
|
|
41
41
|
* The list of allowed identity providers. If not specified, all available providers will be allowed.
|
|
42
42
|
*
|
|
@@ -71,7 +71,7 @@ export function CreateSessionRequestFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
71
71
|
}
|
|
72
72
|
return {
|
|
73
73
|
|
|
74
|
-
'
|
|
74
|
+
'launchProviderDirectly': json['launchProviderDirectly'] == null ? undefined : json['launchProviderDirectly'],
|
|
75
75
|
'providers': json['providers'] == null ? undefined : json['providers'],
|
|
76
76
|
'disclosedFields': json['disclosedFields'] == null ? undefined : DisclosedFieldsRequestFromJSON(json['disclosedFields']),
|
|
77
77
|
};
|
|
@@ -83,7 +83,7 @@ export function CreateSessionRequestToJSON(value?: CreateSessionRequest | null):
|
|
|
83
83
|
}
|
|
84
84
|
return {
|
|
85
85
|
|
|
86
|
-
'
|
|
86
|
+
'launchProviderDirectly': value['launchProviderDirectly'],
|
|
87
87
|
'providers': value['providers'],
|
|
88
88
|
'disclosedFields': DisclosedFieldsRequestToJSON(value['disclosedFields']),
|
|
89
89
|
};
|
|
@@ -35,10 +35,8 @@ export interface CreateSessionResponse {
|
|
|
35
35
|
/**
|
|
36
36
|
* The URL that should be used to invoke the Acceptance Session on your user's device.
|
|
37
37
|
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
* Otherwise, you should pass this URL to your user's frontend and use the frontend SDK to invoke the Session.
|
|
38
|
+
* You can use our frontend SDKs to launch the user into the Acceptance Session, or you can redirect the user's browser to this URL.
|
|
39
|
+
* If the Session was created with `LaunchProviderDirectly` set to `true`, you can't use the iFrame mode.
|
|
42
40
|
*
|
|
43
41
|
* This URL is sensitive and as such can only be obtained once. If you need to obtain it again, you will need to create a new Acceptance Session.
|
|
44
42
|
* @type {string}
|