@sudoplatform/sudo-privacy-interaction 2.5.0 → 2.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/cjs/gen/graphqlTypes.js +57 -6
- package/cjs/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +2 -0
- package/cjs/private/data/data-holder/transformer/dataHolderTransformer.js +8 -1
- package/cjs/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +4 -1
- package/cjs/public/defaultSudoPrivacyInteractionClient.js +1 -0
- package/docs/assets/hierarchy.js +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/DefaultSudoPrivacyInteractionClient.html +25 -25
- package/docs/enums/DataHolderProtectionState.html +6 -6
- package/docs/enums/OrganizationCategory.html +31 -31
- package/docs/enums/RelationshipProvider.html +3 -3
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/CapabilitySignals.html +20 -12
- package/docs/interfaces/ConnectVirtualPresenceWithRefreshTokenInput.html +36 -21
- package/docs/interfaces/DataHolder.html +62 -42
- package/docs/interfaces/DataHolderScanSummary.html +14 -14
- package/docs/interfaces/ListVirtualPresencesInput.html +2 -2
- package/docs/interfaces/OrganizationIdentity.html +5 -5
- package/docs/interfaces/RescanVirtualPresenceInput.html +3 -3
- package/docs/interfaces/RiskIndicators.html +8 -8
- package/docs/interfaces/ScanOptions.html +6 -6
- package/docs/modules.html +1 -1
- package/lib/gen/graphqlTypes.js +57 -6
- package/lib/private/data/analysis-result/transformer/capabilitySignalsTransformer.js +2 -0
- package/lib/private/data/data-holder/transformer/dataHolderTransformer.js +8 -1
- package/lib/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.js +4 -1
- package/lib/public/defaultSudoPrivacyInteractionClient.js +1 -0
- package/package.json +1 -1
- package/types/gen/graphqlTypes.d.ts +20 -8
- package/types/gen/schema-types.d.ts +7 -4
- package/types/private/domain/entities/analysis-result/analysisResultEntity.d.ts +2 -0
- package/types/private/domain/entities/data-holder/dataHolderEntity.d.ts +5 -1
- package/types/private/domain/entities/virtual-presence/virtualPresenceService.d.ts +2 -2
- package/types/private/domain/use-cases/virtual-presence/connectVirtualPresenceWithRefreshTokenUseCase.d.ts +2 -0
- package/types/public/inputs/virtualPresence.d.ts +10 -1
- package/types/public/typings/analysisResult.d.ts +2 -0
- package/types/public/typings/dataHolder.d.ts +9 -1
|
@@ -7,6 +7,9 @@ import { DataHolderProtectionStateTransformer } from './dataHolderProtectionStat
|
|
|
7
7
|
export class DataHolderTransformer {
|
|
8
8
|
fromGraphQLToEntity(data) {
|
|
9
9
|
const dataHolderProtectionStateTransformer = new DataHolderProtectionStateTransformer();
|
|
10
|
+
const mostRecentInboundContactAt = new Date(data.mostRecentInboundContactEpochMs ??
|
|
11
|
+
data.firstInboundContactEpochMs ??
|
|
12
|
+
data.createdAtEpochMs);
|
|
10
13
|
return {
|
|
11
14
|
id: data.id,
|
|
12
15
|
virtualPresenceId: data.virtualPresenceId,
|
|
@@ -14,7 +17,9 @@ export class DataHolderTransformer {
|
|
|
14
17
|
name: data.name,
|
|
15
18
|
protectionState: dataHolderProtectionStateTransformer.fromGraphQLToEntity(data.protectionState),
|
|
16
19
|
complianceConcern: data.complianceConcern,
|
|
17
|
-
mostRecentInteractionAt:
|
|
20
|
+
mostRecentInteractionAt: mostRecentInboundContactAt,
|
|
21
|
+
mostRecentInboundContactAt,
|
|
22
|
+
firstInboundContactAt: new Date(data.firstInboundContactEpochMs ?? data.createdAtEpochMs),
|
|
18
23
|
owner: data.owner,
|
|
19
24
|
version: data.version,
|
|
20
25
|
createdAt: new Date(data.createdAtEpochMs),
|
|
@@ -31,6 +36,8 @@ export class DataHolderTransformer {
|
|
|
31
36
|
protectionState: dataHolderProtectionStateTransformer.fromEntityToAPI(entity.protectionState),
|
|
32
37
|
complianceConcern: entity.complianceConcern,
|
|
33
38
|
mostRecentInteractionAt: entity.mostRecentInteractionAt,
|
|
39
|
+
mostRecentInboundContactAt: entity.mostRecentInboundContactAt,
|
|
40
|
+
firstInboundContactAt: entity.firstInboundContactAt,
|
|
34
41
|
owner: entity.owner,
|
|
35
42
|
version: entity.version,
|
|
36
43
|
createdAt: entity.createdAt,
|
|
@@ -21,7 +21,10 @@ export class ConnectVirtualPresenceWithRefreshTokenUseCase {
|
|
|
21
21
|
refreshToken: input.refreshToken,
|
|
22
22
|
providerIdentity: input.providerIdentity,
|
|
23
23
|
scopes: input.scopes,
|
|
24
|
-
|
|
24
|
+
expiresAtEpochMs: input.expiresAtEpochMs ??
|
|
25
|
+
(input.expiresInEpochMs !== undefined
|
|
26
|
+
? Date.now() + input.expiresInEpochMs
|
|
27
|
+
: undefined),
|
|
25
28
|
},
|
|
26
29
|
relationshipProvider: input.relationshipProvider,
|
|
27
30
|
});
|
|
@@ -131,6 +131,7 @@ export class DefaultSudoPrivacyInteractionClient {
|
|
|
131
131
|
refreshToken: input.refreshToken,
|
|
132
132
|
providerIdentity: input.providerIdentity,
|
|
133
133
|
scopes: input.scopes,
|
|
134
|
+
expiresAtEpochMs: input.expiresAtEpochMs,
|
|
134
135
|
expiresInEpochMs: input.expiresInEpochMs,
|
|
135
136
|
relationshipProvider: input.relationshipProvider
|
|
136
137
|
? this.relationshipProviderTransformer.fromAPIToEntity(input.relationshipProvider)
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@ export type Incremental<T> = T | {
|
|
|
11
11
|
import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
|
12
12
|
export * from './schema-types';
|
|
13
13
|
export type ActionFulfilmentMethod = 'ASSISTED' | 'DELEGATED' | '%future added value';
|
|
14
|
-
export type ActionIntent = 'ACCESS_MY_DATA' | 'DELETE_MY_DATA' | 'LIMIT_DATA_USE' | 'OTHER' | 'SAVE_IN_PASSWORD' | 'STOP_CONTACT' | 'SWAP_EMAIL' | 'SWAP_PHONE' | 'SWAP_VIRTUAL_CARD' | '%future added value';
|
|
14
|
+
export type ActionIntent = 'ACCESS_MY_DATA' | 'DELETE_MY_DATA' | 'LIMIT_DATA_USE' | 'OTHER' | 'SAVE_IN_PASSWORD' | 'STOP_CONTACT' | 'SWAP_EMAIL' | 'SWAP_PHONE' | 'SWAP_VIRTUAL_CARD' | 'USE_PASSKEY' | 'USE_STRONG_PASSWORD' | 'USE_TWO_FACTOR_AUTH' | '%future added value';
|
|
15
15
|
export type ActionOrigin = 'ANALYSIS' | 'DISCOVERY' | 'STATIC' | '%future added value';
|
|
16
16
|
export type ActionStatus = 'COMPLETED_UNVERIFIED' | 'COMPLETED_VERIFIED' | 'CONTRADICTED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING' | 'REQUIRES_USER_INPUT' | '%future added value';
|
|
17
17
|
export type AnalysisResultStatus = 'COMPLETE' | 'FAILED' | 'PARTIAL' | 'PENDING' | 'UNAVAILABLE' | '%future added value';
|
|
@@ -45,7 +45,7 @@ export type OrganizationAnalysisOptions = {
|
|
|
45
45
|
export type OrganizationCategory = 'AdTechAndMarketing' | 'AdultEntertainment' | 'Automotive' | 'Communications' | 'CommunityAndCharity' | 'Cryptocurrency' | 'DataBroker' | 'Dating' | 'Education' | 'Employment' | 'EnergyAndUtilities' | 'Entertainment' | 'Finance' | 'FoodAndDining' | 'Gambling' | 'Government' | 'Health' | 'Insurance' | 'Military' | 'News' | 'Other' | 'PersonalEmail' | 'PrivacyAndSecurity' | 'RealEstate' | 'ShippingAndDelivery' | 'Shopping' | 'SocialMedia' | 'SportsAndFitness' | 'Technology' | 'Transportation' | 'Travel' | 'VideoGames' | '%future added value';
|
|
46
46
|
export type ProviderType = 'EMAIL' | '%future added value';
|
|
47
47
|
export type RefreshTokenInput = {
|
|
48
|
-
|
|
48
|
+
expiresAtEpochMs?: number | null | undefined;
|
|
49
49
|
providerIdentity: string;
|
|
50
50
|
refreshToken: string;
|
|
51
51
|
scopes?: Array<string> | null | undefined;
|
|
@@ -145,6 +145,7 @@ export type AnalysisResultDataFieldsFragment = {
|
|
|
145
145
|
supportsOptOutOfSale: SignalValue;
|
|
146
146
|
usesCookiesOrTracking: SignalValue;
|
|
147
147
|
supportsTwoFactorAuth: SignalValue;
|
|
148
|
+
supportsPasskeys: SignalValue;
|
|
148
149
|
};
|
|
149
150
|
riskIndicators: {
|
|
150
151
|
dataCollectionBreadth: number;
|
|
@@ -216,6 +217,7 @@ export type AnalysisResultFieldsFragment = {
|
|
|
216
217
|
supportsOptOutOfSale: SignalValue;
|
|
217
218
|
usesCookiesOrTracking: SignalValue;
|
|
218
219
|
supportsTwoFactorAuth: SignalValue;
|
|
220
|
+
supportsPasskeys: SignalValue;
|
|
219
221
|
};
|
|
220
222
|
riskIndicators: {
|
|
221
223
|
dataCollectionBreadth: number;
|
|
@@ -241,7 +243,8 @@ export type DataHolderFieldsFragment = {
|
|
|
241
243
|
name: string;
|
|
242
244
|
protectionState: DataHolderProtectionState;
|
|
243
245
|
complianceConcern: boolean;
|
|
244
|
-
|
|
246
|
+
mostRecentInboundContactEpochMs: number | null;
|
|
247
|
+
firstInboundContactEpochMs: number | null;
|
|
245
248
|
owner: string;
|
|
246
249
|
version: number;
|
|
247
250
|
createdAtEpochMs: number;
|
|
@@ -315,6 +318,7 @@ export type OrganizationAnalysisFieldsFragment = {
|
|
|
315
318
|
supportsOptOutOfSale: SignalValue;
|
|
316
319
|
usesCookiesOrTracking: SignalValue;
|
|
317
320
|
supportsTwoFactorAuth: SignalValue;
|
|
321
|
+
supportsPasskeys: SignalValue;
|
|
318
322
|
};
|
|
319
323
|
riskIndicators: {
|
|
320
324
|
dataCollectionBreadth: number;
|
|
@@ -532,7 +536,8 @@ export type ArchiveDataHolderMutation = {
|
|
|
532
536
|
name: string;
|
|
533
537
|
protectionState: DataHolderProtectionState;
|
|
534
538
|
complianceConcern: boolean;
|
|
535
|
-
|
|
539
|
+
mostRecentInboundContactEpochMs: number | null;
|
|
540
|
+
firstInboundContactEpochMs: number | null;
|
|
536
541
|
owner: string;
|
|
537
542
|
version: number;
|
|
538
543
|
createdAtEpochMs: number;
|
|
@@ -550,7 +555,8 @@ export type UnarchiveDataHolderMutation = {
|
|
|
550
555
|
name: string;
|
|
551
556
|
protectionState: DataHolderProtectionState;
|
|
552
557
|
complianceConcern: boolean;
|
|
553
|
-
|
|
558
|
+
mostRecentInboundContactEpochMs: number | null;
|
|
559
|
+
firstInboundContactEpochMs: number | null;
|
|
554
560
|
owner: string;
|
|
555
561
|
version: number;
|
|
556
562
|
createdAtEpochMs: number;
|
|
@@ -603,7 +609,8 @@ export type GetDataHolderQuery = {
|
|
|
603
609
|
name: string;
|
|
604
610
|
protectionState: DataHolderProtectionState;
|
|
605
611
|
complianceConcern: boolean;
|
|
606
|
-
|
|
612
|
+
mostRecentInboundContactEpochMs: number | null;
|
|
613
|
+
firstInboundContactEpochMs: number | null;
|
|
607
614
|
owner: string;
|
|
608
615
|
version: number;
|
|
609
616
|
createdAtEpochMs: number;
|
|
@@ -625,7 +632,8 @@ export type ListDataHoldersQuery = {
|
|
|
625
632
|
name: string;
|
|
626
633
|
protectionState: DataHolderProtectionState;
|
|
627
634
|
complianceConcern: boolean;
|
|
628
|
-
|
|
635
|
+
mostRecentInboundContactEpochMs: number | null;
|
|
636
|
+
firstInboundContactEpochMs: number | null;
|
|
629
637
|
owner: string;
|
|
630
638
|
version: number;
|
|
631
639
|
createdAtEpochMs: number;
|
|
@@ -691,6 +699,7 @@ export type GetAnalysisResultQuery = {
|
|
|
691
699
|
supportsOptOutOfSale: SignalValue;
|
|
692
700
|
usesCookiesOrTracking: SignalValue;
|
|
693
701
|
supportsTwoFactorAuth: SignalValue;
|
|
702
|
+
supportsPasskeys: SignalValue;
|
|
694
703
|
};
|
|
695
704
|
riskIndicators: {
|
|
696
705
|
dataCollectionBreadth: number;
|
|
@@ -769,6 +778,7 @@ export type GetOrganizationAnalysisQuery = {
|
|
|
769
778
|
supportsOptOutOfSale: SignalValue;
|
|
770
779
|
usesCookiesOrTracking: SignalValue;
|
|
771
780
|
supportsTwoFactorAuth: SignalValue;
|
|
781
|
+
supportsPasskeys: SignalValue;
|
|
772
782
|
};
|
|
773
783
|
riskIndicators: {
|
|
774
784
|
dataCollectionBreadth: number;
|
|
@@ -850,6 +860,7 @@ export type ListAnalysisResultsQuery = {
|
|
|
850
860
|
supportsOptOutOfSale: SignalValue;
|
|
851
861
|
usesCookiesOrTracking: SignalValue;
|
|
852
862
|
supportsTwoFactorAuth: SignalValue;
|
|
863
|
+
supportsPasskeys: SignalValue;
|
|
853
864
|
};
|
|
854
865
|
riskIndicators: {
|
|
855
866
|
dataCollectionBreadth: number;
|
|
@@ -1027,7 +1038,8 @@ export type OnDataHoldersUpdateSubscription = {
|
|
|
1027
1038
|
name: string;
|
|
1028
1039
|
protectionState: DataHolderProtectionState;
|
|
1029
1040
|
complianceConcern: boolean;
|
|
1030
|
-
|
|
1041
|
+
mostRecentInboundContactEpochMs: number | null;
|
|
1042
|
+
firstInboundContactEpochMs: number | null;
|
|
1031
1043
|
owner: string;
|
|
1032
1044
|
version: number;
|
|
1033
1045
|
createdAtEpochMs: number;
|
|
@@ -85,7 +85,7 @@ export type ActionContact = {
|
|
|
85
85
|
phone?: Maybe<Scalars['String']['output']>;
|
|
86
86
|
};
|
|
87
87
|
export type ActionFulfilmentMethod = 'ASSISTED' | 'DELEGATED' | '%future added value';
|
|
88
|
-
export type ActionIntent = 'ACCESS_MY_DATA' | 'DELETE_MY_DATA' | 'LIMIT_DATA_USE' | 'OTHER' | 'SAVE_IN_PASSWORD' | 'STOP_CONTACT' | 'SWAP_EMAIL' | 'SWAP_PHONE' | 'SWAP_VIRTUAL_CARD' | '%future added value';
|
|
88
|
+
export type ActionIntent = 'ACCESS_MY_DATA' | 'DELETE_MY_DATA' | 'LIMIT_DATA_USE' | 'OTHER' | 'SAVE_IN_PASSWORD' | 'STOP_CONTACT' | 'SWAP_EMAIL' | 'SWAP_PHONE' | 'SWAP_VIRTUAL_CARD' | 'USE_PASSKEY' | 'USE_STRONG_PASSWORD' | 'USE_TWO_FACTOR_AUTH' | '%future added value';
|
|
89
89
|
export type ActionOrigin = 'ANALYSIS' | 'DISCOVERY' | 'STATIC' | '%future added value';
|
|
90
90
|
export type ActionStatus = 'COMPLETED_UNVERIFIED' | 'COMPLETED_VERIFIED' | 'CONTRADICTED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING' | 'REQUIRES_USER_INPUT' | '%future added value';
|
|
91
91
|
export type AnalysisResult = {
|
|
@@ -164,6 +164,7 @@ export type CapabilitySignals = {
|
|
|
164
164
|
supportsDataDeletionRequests: SignalValue;
|
|
165
165
|
supportsDataExport: SignalValue;
|
|
166
166
|
supportsOptOutOfSale: SignalValue;
|
|
167
|
+
supportsPasskeys: SignalValue;
|
|
167
168
|
supportsSubscriptions: SignalValue;
|
|
168
169
|
supportsTwoFactorAuth: SignalValue;
|
|
169
170
|
usesCookiesOrTracking: SignalValue;
|
|
@@ -190,8 +191,9 @@ export type DataHolder = {
|
|
|
190
191
|
complianceConcern: Scalars['Boolean']['output'];
|
|
191
192
|
createdAtEpochMs: Scalars['Float']['output'];
|
|
192
193
|
domainName: Scalars['String']['output'];
|
|
194
|
+
firstInboundContactEpochMs?: Maybe<Scalars['Float']['output']>;
|
|
193
195
|
id: Scalars['ID']['output'];
|
|
194
|
-
|
|
196
|
+
mostRecentInboundContactEpochMs?: Maybe<Scalars['Float']['output']>;
|
|
195
197
|
name: Scalars['String']['output'];
|
|
196
198
|
owner: Scalars['ID']['output'];
|
|
197
199
|
protectionState: DataHolderProtectionState;
|
|
@@ -234,8 +236,9 @@ export type DataHolderUpdateItem = {
|
|
|
234
236
|
complianceConcern: Scalars['Boolean']['output'];
|
|
235
237
|
createdAtEpochMs: Scalars['Float']['output'];
|
|
236
238
|
domainName: Scalars['String']['output'];
|
|
239
|
+
firstInboundContactEpochMs?: Maybe<Scalars['Float']['output']>;
|
|
237
240
|
id: Scalars['ID']['output'];
|
|
238
|
-
|
|
241
|
+
mostRecentInboundContactEpochMs?: Maybe<Scalars['Float']['output']>;
|
|
239
242
|
name: Scalars['String']['output'];
|
|
240
243
|
owner: Scalars['ID']['output'];
|
|
241
244
|
protectionState: DataHolderProtectionState;
|
|
@@ -463,7 +466,7 @@ export type QueryListVirtualPresencesArgs = {
|
|
|
463
466
|
input?: InputMaybe<ListVirtualPresencesInput>;
|
|
464
467
|
};
|
|
465
468
|
export type RefreshTokenInput = {
|
|
466
|
-
|
|
469
|
+
expiresAtEpochMs?: InputMaybe<Scalars['Float']['input']>;
|
|
467
470
|
providerIdentity: Scalars['String']['input'];
|
|
468
471
|
refreshToken: Scalars['String']['input'];
|
|
469
472
|
scopes?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -258,6 +258,7 @@ export interface CategorySignalsEntity {
|
|
|
258
258
|
* @property {SignalValueEntity} supportsOptOutOfSale Whether the organization exposes an opt-out-of-sale control to users.
|
|
259
259
|
* @property {SignalValueEntity} usesCookiesOrTracking Whether the organization uses cookies or tracking.
|
|
260
260
|
* @property {SignalValueEntity} supportsTwoFactorAuth Whether the organization supports two-factor auth for logins.
|
|
261
|
+
* @property {SignalValueEntity} supportsPasskeys Whether the organization supports passkeys for logins.
|
|
261
262
|
*/
|
|
262
263
|
export interface CapabilitySignalsEntity {
|
|
263
264
|
supportsAccountCreation: SignalValueEntity;
|
|
@@ -268,6 +269,7 @@ export interface CapabilitySignalsEntity {
|
|
|
268
269
|
supportsOptOutOfSale: SignalValueEntity;
|
|
269
270
|
usesCookiesOrTracking: SignalValueEntity;
|
|
270
271
|
supportsTwoFactorAuth: SignalValueEntity;
|
|
272
|
+
supportsPasskeys: SignalValueEntity;
|
|
271
273
|
}
|
|
272
274
|
/**
|
|
273
275
|
* Aggregated risk indicators derived from categories and capabilities.
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
* @property {string} name Display name of the data holder.
|
|
16
16
|
* @property {DataHolderProtectionStateEntity} protectionState Current protection state.
|
|
17
17
|
* @property {boolean} complianceConcern Whether there is a compliance concern.
|
|
18
|
-
* @property {Date} mostRecentInteractionAt Date of the most recent
|
|
18
|
+
* @property {Date} mostRecentInteractionAt Date of the most recent inbound contact from the data holder.
|
|
19
|
+
* @property {Date} mostRecentInboundContactAt Date of the most recent inbound contact from the data holder.
|
|
20
|
+
* @property {Date} firstInboundContactAt Date of the earliest observed contact from the data holder.
|
|
19
21
|
* @property {string} owner Unique identifier of the user.
|
|
20
22
|
* @property {number} version Version of this entity. Increments on update.
|
|
21
23
|
* @property {Date} createdAt Date for when the data holder was created.
|
|
@@ -29,6 +31,8 @@ export interface DataHolderEntity {
|
|
|
29
31
|
protectionState: DataHolderProtectionStateEntity;
|
|
30
32
|
complianceConcern: boolean;
|
|
31
33
|
mostRecentInteractionAt: Date;
|
|
34
|
+
mostRecentInboundContactAt: Date;
|
|
35
|
+
firstInboundContactAt: Date;
|
|
32
36
|
owner: string;
|
|
33
37
|
version: number;
|
|
34
38
|
createdAt: Date;
|
|
@@ -25,13 +25,13 @@ export interface AuthCodeInput {
|
|
|
25
25
|
* @property {string} refreshToken The refresh token value.
|
|
26
26
|
* @property {string} providerIdentity The identity associated with the provider.
|
|
27
27
|
* @property {string[]} scopes Optional OAuth scopes associated with the token.
|
|
28
|
-
* @property {number}
|
|
28
|
+
* @property {number} expiresAtEpochMs Optional absolute expiry in milliseconds since epoch. Defaults to one year after the request.
|
|
29
29
|
*/
|
|
30
30
|
export interface RefreshTokenInput {
|
|
31
31
|
refreshToken: string;
|
|
32
32
|
providerIdentity: string;
|
|
33
33
|
scopes?: string[];
|
|
34
|
-
|
|
34
|
+
expiresAtEpochMs?: number;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Input for `VirtualPresenceService.connect` method.
|
|
@@ -15,6 +15,8 @@ interface ConnectVirtualPresenceWithRefreshTokenUseCaseInput {
|
|
|
15
15
|
refreshToken: string;
|
|
16
16
|
providerIdentity: string;
|
|
17
17
|
scopes?: string[];
|
|
18
|
+
expiresAtEpochMs?: number;
|
|
19
|
+
/** Relative expiry in milliseconds after the request. Converted to an absolute expiry. */
|
|
18
20
|
expiresInEpochMs?: number;
|
|
19
21
|
relationshipProvider?: RelationshipProviderEntity;
|
|
20
22
|
}
|
|
@@ -26,7 +26,12 @@ export interface ConnectVirtualPresenceWithAuthCodeInput {
|
|
|
26
26
|
* @property {string} refreshToken The refresh token value.
|
|
27
27
|
* @property {string} providerIdentity The identity associated with the provider.
|
|
28
28
|
* @property {string[]} scopes Optional OAuth scopes associated with the token.
|
|
29
|
-
* @property {number}
|
|
29
|
+
* @property {number} expiresAtEpochMs Optional absolute expiry of the credential in milliseconds
|
|
30
|
+
* since epoch. Takes precedence over `expiresInEpochMs` when both are provided. Defaults to one
|
|
31
|
+
* year after the request when neither is provided.
|
|
32
|
+
* @property {number} expiresInEpochMs Optional relative expiry: the number of milliseconds after
|
|
33
|
+
* the request at which the credential expires.
|
|
34
|
+
* @deprecated Use {@link ConnectVirtualPresenceWithRefreshTokenInput.expiresAtEpochMs} instead.
|
|
30
35
|
* @property {RelationshipProvider} relationshipProvider The relationship provider
|
|
31
36
|
* to associate with the connection.
|
|
32
37
|
*/
|
|
@@ -34,6 +39,10 @@ export interface ConnectVirtualPresenceWithRefreshTokenInput {
|
|
|
34
39
|
refreshToken: string;
|
|
35
40
|
providerIdentity: string;
|
|
36
41
|
scopes?: string[];
|
|
42
|
+
expiresAtEpochMs?: number;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Use {@link ConnectVirtualPresenceWithRefreshTokenInput.expiresAtEpochMs} instead.
|
|
45
|
+
*/
|
|
37
46
|
expiresInEpochMs?: number;
|
|
38
47
|
relationshipProvider?: RelationshipProvider;
|
|
39
48
|
}
|
|
@@ -287,6 +287,7 @@ export interface CategorySignals {
|
|
|
287
287
|
* @deprecated Use {@link CapabilitySignals.supportsOptOutOfSale} instead. Populated from `supportsOptOutOfSale`.
|
|
288
288
|
* @property {SignalValue} usesCookiesOrTracking Whether the organization uses cookies or tracking.
|
|
289
289
|
* @property {SignalValue} supportsTwoFactorAuth Whether the organization supports two-factor auth for logins.
|
|
290
|
+
* @property {SignalValue} supportsPasskeys Whether the organization supports passkeys for logins.
|
|
290
291
|
*/
|
|
291
292
|
export interface CapabilitySignals {
|
|
292
293
|
supportsAccountCreation: SignalValue;
|
|
@@ -302,6 +303,7 @@ export interface CapabilitySignals {
|
|
|
302
303
|
sellsPersonalInformation: SignalValue;
|
|
303
304
|
usesCookiesOrTracking: SignalValue;
|
|
304
305
|
supportsTwoFactorAuth: SignalValue;
|
|
306
|
+
supportsPasskeys: SignalValue;
|
|
305
307
|
}
|
|
306
308
|
/**
|
|
307
309
|
* Aggregated risk indicators derived from categories and capabilities.
|
|
@@ -16,7 +16,10 @@
|
|
|
16
16
|
* @property {string} name Display name of the data holder.
|
|
17
17
|
* @property {DataHolderProtectionState} protectionState Current protection state.
|
|
18
18
|
* @property {boolean} complianceConcern Whether there is a compliance concern.
|
|
19
|
-
* @property {Date} mostRecentInteractionAt Date of the most recent
|
|
19
|
+
* @property {Date} mostRecentInteractionAt Date of the most recent inbound contact from the data holder.
|
|
20
|
+
* @deprecated Use {@link DataHolder.mostRecentInboundContactAt} instead.
|
|
21
|
+
* @property {Date} mostRecentInboundContactAt Date of the most recent inbound contact from the data holder.
|
|
22
|
+
* @property {Date} firstInboundContactAt Date of the earliest observed contact from the data holder.
|
|
20
23
|
* @property {number} version Version of this entity. Increments on update.
|
|
21
24
|
* @property {Date} createdAt Date for when the data holder was created.
|
|
22
25
|
* @property {Date} updatedAt Date for when the data holder was last updated.
|
|
@@ -32,7 +35,12 @@ export interface DataHolder {
|
|
|
32
35
|
name: string;
|
|
33
36
|
protectionState: DataHolderProtectionState;
|
|
34
37
|
complianceConcern: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated Use {@link DataHolder.mostRecentInboundContactAt} instead.
|
|
40
|
+
*/
|
|
35
41
|
mostRecentInteractionAt: Date;
|
|
42
|
+
mostRecentInboundContactAt: Date;
|
|
43
|
+
firstInboundContactAt: Date;
|
|
36
44
|
version: number;
|
|
37
45
|
createdAt: Date;
|
|
38
46
|
updatedAt: Date;
|