@verana-labs/vs-agent-sdk 2.0.0-dev.12 → 2.0.0-dev.120
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 +0 -2
- package/build/adminApi/AdminApiError.d.ts +28 -0
- package/build/adminApi/AdminApiError.js +67 -0
- package/build/adminApi/AdminApiError.js.map +1 -0
- package/build/adminApi/didcommModules.d.ts +2 -0
- package/build/adminApi/didcommModules.js +8 -0
- package/build/adminApi/didcommModules.js.map +1 -0
- package/build/adminApi/index.d.ts +4 -0
- package/build/adminApi/index.js +21 -0
- package/build/adminApi/index.js.map +1 -0
- package/build/adminApi/moduleEndpoint.d.ts +7 -0
- package/build/adminApi/moduleEndpoint.js +21 -0
- package/build/adminApi/moduleEndpoint.js.map +1 -0
- package/build/adminApi/pagination/PageDto.d.ts +7 -0
- package/build/adminApi/pagination/PageDto.js +50 -0
- package/build/adminApi/pagination/PageDto.js.map +1 -0
- package/build/adminApi/pagination/PaginationQueryDto.d.ts +11 -0
- package/build/adminApi/pagination/PaginationQueryDto.js +46 -0
- package/build/adminApi/pagination/PaginationQueryDto.js.map +1 -0
- package/build/adminApi/pagination/cursor.d.ts +28 -0
- package/build/adminApi/pagination/cursor.js +64 -0
- package/build/adminApi/pagination/cursor.js.map +1 -0
- package/build/adminApi/pagination/index.d.ts +4 -0
- package/build/adminApi/pagination/index.js +21 -0
- package/build/adminApi/pagination/index.js.map +1 -0
- package/build/adminApi/pagination/paginate.d.ts +27 -0
- package/build/adminApi/pagination/paginate.js +77 -0
- package/build/adminApi/pagination/paginate.js.map +1 -0
- package/build/agent/VsAgent.d.ts +32 -36
- package/build/agent/VsAgent.js +179 -221
- package/build/agent/VsAgent.js.map +1 -1
- package/build/agent/createVsAgent.d.ts +9 -6
- package/build/agent/createVsAgent.js +5 -5
- package/build/agent/createVsAgent.js.map +1 -1
- package/build/blockchain/AnonCredsTrustService.d.ts +115 -0
- package/build/blockchain/AnonCredsTrustService.js +287 -0
- package/build/blockchain/AnonCredsTrustService.js.map +1 -0
- package/build/blockchain/AuthorizationService.d.ts +8 -6
- package/build/blockchain/AuthorizationService.js +30 -38
- package/build/blockchain/AuthorizationService.js.map +1 -1
- package/build/blockchain/IndexerWebSocketService.d.ts +5 -1
- package/build/blockchain/IndexerWebSocketService.js +42 -21
- package/build/blockchain/IndexerWebSocketService.js.map +1 -1
- package/build/blockchain/VeranaChainService.d.ts +38 -27
- package/build/blockchain/VeranaChainService.js +186 -177
- package/build/blockchain/VeranaChainService.js.map +1 -1
- package/build/blockchain/VeranaIndexerService.d.ts +14 -1
- package/build/blockchain/VeranaIndexerService.js +122 -8
- package/build/blockchain/VeranaIndexerService.js.map +1 -1
- package/build/blockchain/feePreflight.d.ts +34 -0
- package/build/blockchain/feePreflight.js +96 -0
- package/build/blockchain/feePreflight.js.map +1 -0
- package/build/blockchain/handlers/IndexerHandlerRegistry.d.ts +0 -1
- package/build/blockchain/handlers/IndexerHandlerRegistry.js.map +1 -1
- package/build/blockchain/handlers/authorizationHandlers.js +2 -2
- package/build/blockchain/handlers/authorizationHandlers.js.map +1 -1
- package/build/blockchain/handlers/defaultHandlers.js +7 -2
- package/build/blockchain/handlers/defaultHandlers.js.map +1 -1
- package/build/blockchain/handlers/index.d.ts +1 -0
- package/build/blockchain/handlers/index.js +1 -0
- package/build/blockchain/handlers/index.js.map +1 -1
- package/build/blockchain/handlers/selfIssuanceHandlers.d.ts +13 -0
- package/build/blockchain/handlers/selfIssuanceHandlers.js +76 -0
- package/build/blockchain/handlers/selfIssuanceHandlers.js.map +1 -0
- package/build/blockchain/handlers/stateMutations.d.ts +28 -4
- package/build/blockchain/handlers/stateMutations.js +356 -48
- package/build/blockchain/handlers/stateMutations.js.map +1 -1
- package/build/blockchain/index.d.ts +4 -0
- package/build/blockchain/index.js +4 -0
- package/build/blockchain/index.js.map +1 -1
- package/build/blockchain/indexerMappers.d.ts +3 -0
- package/build/blockchain/indexerMappers.js +57 -0
- package/build/blockchain/indexerMappers.js.map +1 -0
- package/build/blockchain/rpcRetry.d.ts +2 -0
- package/build/blockchain/rpcRetry.js +43 -0
- package/build/blockchain/rpcRetry.js.map +1 -0
- package/build/blockchain/triggerResolver.d.ts +26 -0
- package/build/blockchain/triggerResolver.js +110 -0
- package/build/blockchain/triggerResolver.js.map +1 -0
- package/build/blockchain/types.d.ts +14 -70
- package/build/blockchain/types.js +6 -1
- package/build/blockchain/types.js.map +1 -1
- package/build/bootstrap/EcsBootstrapService.d.ts +13 -4
- package/build/bootstrap/EcsBootstrapService.js +176 -124
- package/build/bootstrap/EcsBootstrapService.js.map +1 -1
- package/build/connections/InvitationRecord.d.ts +50 -0
- package/build/connections/InvitationRecord.js +60 -0
- package/build/connections/InvitationRecord.js.map +1 -0
- package/build/connections/ParentConnectionModule.d.ts +22 -0
- package/build/connections/ParentConnectionModule.js +91 -0
- package/build/connections/ParentConnectionModule.js.map +1 -0
- package/build/credentials/FullTailsFileService.d.ts +0 -1
- package/build/credentials/FullTailsFileService.js +0 -49
- package/build/credentials/FullTailsFileService.js.map +1 -1
- package/build/did/CachedDocumentLoader.d.ts +3 -0
- package/build/did/CachedDocumentLoader.js +9 -3
- package/build/did/CachedDocumentLoader.js.map +1 -1
- package/build/did/CachedWebDidResolver.d.ts +0 -4
- package/build/did/CachedWebDidResolver.js +1 -5
- package/build/did/CachedWebDidResolver.js.map +1 -1
- package/build/did/artifactServices.d.ts +12 -0
- package/build/did/artifactServices.js +48 -0
- package/build/did/artifactServices.js.map +1 -0
- package/build/did/legacyDidWeb.d.ts +6 -4
- package/build/did/legacyDidWeb.js +17 -14
- package/build/did/legacyDidWeb.js.map +1 -1
- package/build/did/publicDid.d.ts +4 -0
- package/build/did/publicDid.js +19 -0
- package/build/did/publicDid.js.map +1 -0
- package/build/did/reusedDidDocument.d.ts +37 -0
- package/build/did/reusedDidDocument.js +93 -0
- package/build/did/reusedDidDocument.js.map +1 -0
- package/build/events/BaseMessageEvents.d.ts +24 -0
- package/build/events/BaseMessageEvents.js +368 -14
- package/build/events/BaseMessageEvents.js.map +1 -1
- package/build/events/ConnectionEvents.js +149 -87
- package/build/events/ConnectionEvents.js.map +1 -1
- package/build/events/InvitationEvents.d.ts +6 -0
- package/build/events/InvitationEvents.js +57 -0
- package/build/events/InvitationEvents.js.map +1 -0
- package/build/events/VsAgentEvents.d.ts +40 -9
- package/build/events/VsAgentEvents.js +10 -1
- package/build/events/VsAgentEvents.js.map +1 -1
- package/build/events/VtFlowEvents.d.ts +1 -1
- package/build/events/VtFlowEvents.js +29 -17
- package/build/events/VtFlowEvents.js.map +1 -1
- package/build/events/index.d.ts +1 -0
- package/build/events/index.js +1 -0
- package/build/events/index.js.map +1 -1
- package/build/index.d.ts +9 -1
- package/build/index.js +20 -2
- package/build/index.js.map +1 -1
- package/build/plugins/setupBaseDidComm.js +24 -22
- package/build/plugins/setupBaseDidComm.js.map +1 -1
- package/build/transports/HttpInboundTransport.js +6 -1
- package/build/transports/HttpInboundTransport.js.map +1 -1
- package/build/transports/VsAgentWsInboundTransport.d.ts +1 -1
- package/build/transports/VsAgentWsInboundTransport.js +20 -14
- package/build/transports/VsAgentWsInboundTransport.js.map +1 -1
- package/build/types.d.ts +14 -13
- package/build/types.js +1 -2
- package/build/types.js.map +1 -1
- package/build/utils/agent.d.ts +42 -4
- package/build/utils/agent.js +126 -22
- package/build/utils/agent.js.map +1 -1
- package/build/utils/boundedFetch.d.ts +13 -0
- package/build/utils/boundedFetch.js +47 -0
- package/build/utils/boundedFetch.js.map +1 -0
- package/build/utils/didReadiness.js +5 -2
- package/build/utils/didReadiness.js.map +1 -1
- package/build/utils/ecsClaims.d.ts +46 -0
- package/build/utils/ecsClaims.js +115 -0
- package/build/utils/ecsClaims.js.map +1 -0
- package/build/utils/ecsService.d.ts +8 -0
- package/build/utils/ecsService.js +23 -0
- package/build/utils/ecsService.js.map +1 -0
- package/build/utils/index.d.ts +7 -0
- package/build/utils/index.js +7 -0
- package/build/utils/index.js.map +1 -1
- package/build/utils/publishedDidRecord.d.ts +15 -0
- package/build/utils/publishedDidRecord.js +83 -0
- package/build/utils/publishedDidRecord.js.map +1 -0
- package/build/utils/selfIssuedEcsCredential.d.ts +8 -0
- package/build/utils/selfIssuedEcsCredential.js +158 -0
- package/build/utils/selfIssuedEcsCredential.js.map +1 -0
- package/build/utils/setupSelfTr.d.ts +34 -74
- package/build/utils/setupSelfTr.js +79 -321
- package/build/utils/setupSelfTr.js.map +1 -1
- package/build/utils/trustCredentialStore.d.ts +86 -9
- package/build/utils/trustCredentialStore.js +342 -137
- package/build/utils/trustCredentialStore.js.map +1 -1
- package/build/utils/typeMetadata.d.ts +44 -0
- package/build/utils/typeMetadata.js +89 -0
- package/build/utils/typeMetadata.js.map +1 -0
- package/build/utils/util.d.ts +20 -0
- package/build/utils/util.js +32 -1
- package/build/utils/util.js.map +1 -1
- package/build/utils/vcdm2.d.ts +34 -0
- package/build/utils/vcdm2.js +60 -0
- package/build/utils/vcdm2.js.map +1 -0
- package/build/utils/vtjscResolver.d.ts +23 -0
- package/build/utils/vtjscResolver.js +53 -0
- package/build/utils/vtjscResolver.js.map +1 -0
- package/build/vtFlow/VtFlowOrchestrator.d.ts +134 -16
- package/build/vtFlow/VtFlowOrchestrator.js +965 -138
- package/build/vtFlow/VtFlowOrchestrator.js.map +1 -1
- package/build/vtFlow/assertVerifiableService.d.ts +31 -2
- package/build/vtFlow/assertVerifiableService.js +68 -10
- package/build/vtFlow/assertVerifiableService.js.map +1 -1
- package/build/vtFlow/ecsIssuanceExemption.d.ts +12 -0
- package/build/vtFlow/ecsIssuanceExemption.js +63 -0
- package/build/vtFlow/ecsIssuanceExemption.js.map +1 -0
- package/build/vtFlow/index.d.ts +2 -0
- package/build/vtFlow/index.js +2 -0
- package/build/vtFlow/index.js.map +1 -1
- package/build/vtFlow/issuanceRepair.d.ts +4 -0
- package/build/vtFlow/issuanceRepair.js +181 -0
- package/build/vtFlow/issuanceRepair.js.map +1 -0
- package/package.json +27 -19
- package/build/did/migrateWebVhLog.d.ts +0 -34
- package/build/did/migrateWebVhLog.js +0 -230
- package/build/did/migrateWebVhLog.js.map +0 -1
- package/build/did/migrateWebVhVersionTime.d.ts +0 -9
- package/build/did/migrateWebVhVersionTime.js +0 -191
- package/build/did/migrateWebVhVersionTime.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import type { JsonObject } from '@credo-ts/core';
|
|
2
|
+
import type { DidCommDataIntegrityOfferCredentialFormat } from '@credo-ts/didcomm';
|
|
3
|
+
import { VtFlowRecord, type VtFlowCheckParticipantIdContext, type VtFlowCheckSchemaIdContext, type VtFlowEcsIssuanceExemptionContext, type VtFlowIssuance } from '@verana-labs/credo-ts-didcomm-vt-flow';
|
|
3
4
|
import { BaseAgentModules, VsAgent } from '../agent';
|
|
4
|
-
import {
|
|
5
|
+
import { CredentialSchemaDto, Participant, ParticipantDto } from '../blockchain/types';
|
|
6
|
+
export declare const FAILED_SUBMISSION_RETRY_INTERVAL_MS = 60000;
|
|
5
7
|
export interface VtFlowOrchestratorOptions {
|
|
6
8
|
publicApiBaseUrl?: string;
|
|
7
|
-
indexer?: VeranaIndexerService;
|
|
8
9
|
agentParticipantId?: number;
|
|
9
10
|
walletAgentParticipantId?: number;
|
|
10
11
|
}
|
|
@@ -13,13 +14,33 @@ export interface StartOnboardingProcessInput {
|
|
|
13
14
|
participantSessionId?: string;
|
|
14
15
|
claims?: Record<string, unknown>;
|
|
15
16
|
}
|
|
16
|
-
export interface
|
|
17
|
+
export interface ValidateOnboardingProcessInput {
|
|
17
18
|
vtFlowRecordId: string;
|
|
19
|
+
/** Only for a HOLDER. It defaults to the schema of the applicant participant. */
|
|
20
|
+
credentialSchemaId?: string;
|
|
21
|
+
credentialType?: string[];
|
|
22
|
+
credentialContext?: string[];
|
|
23
|
+
}
|
|
24
|
+
export interface ValidateFlowInput {
|
|
25
|
+
vtFlowRecordId: string;
|
|
26
|
+
validationFees?: number;
|
|
27
|
+
issuanceFees?: number;
|
|
28
|
+
verificationFees?: number;
|
|
29
|
+
issuanceFeeDiscount?: number;
|
|
30
|
+
verificationFeeDiscount?: number;
|
|
31
|
+
effectiveUntil?: string;
|
|
32
|
+
opSummaryDigest?: string;
|
|
33
|
+
}
|
|
34
|
+
export interface OfferOnboardingCredentialInput {
|
|
35
|
+
vtFlowRecordId: string;
|
|
36
|
+
/** The credential validateOnboardingProcess built. Without it the method builds one. */
|
|
37
|
+
credential?: JsonObject;
|
|
38
|
+
/** It defaults to the schema of the applicant participant. */
|
|
39
|
+
credentialSchemaId?: string;
|
|
40
|
+
/** The participant validateOnboardingProcess returned; saves a second chain read. */
|
|
41
|
+
participant?: Participant;
|
|
18
42
|
credentialType?: string[];
|
|
19
43
|
credentialContext?: string[];
|
|
20
|
-
credentialSchemaId: string;
|
|
21
|
-
agentParticipantId?: number;
|
|
22
|
-
walletAgentParticipantId?: number;
|
|
23
44
|
}
|
|
24
45
|
export interface AcceptCredentialInput {
|
|
25
46
|
vtFlowRecordId: string;
|
|
@@ -27,27 +48,124 @@ export interface AcceptCredentialInput {
|
|
|
27
48
|
export declare class VtFlowOrchestrator {
|
|
28
49
|
private readonly agent;
|
|
29
50
|
private readonly options;
|
|
51
|
+
private startupRepeats?;
|
|
30
52
|
constructor(agent: VsAgent<BaseAgentModules>, options?: VtFlowOrchestratorOptions);
|
|
31
53
|
startOnboardingProcess(input: StartOnboardingProcessInput): Promise<VtFlowRecord>;
|
|
32
|
-
|
|
54
|
+
/**
|
|
55
|
+
* Validate an onboarding process: record the outcome on-chain, accept the onboarding request and
|
|
56
|
+
* move the record to VALIDATED. It sends no credential. Only a HOLDER takes part in a credential
|
|
57
|
+
* exchange; an ISSUER, a VERIFIER or a grantor joins the Ecosystem, and SetParticipantOPToValidated
|
|
58
|
+
* is the whole of it. The caller decides what follows, from the role of the returned participant.
|
|
59
|
+
*
|
|
60
|
+
* For a HOLDER it builds the credential before the chain write, and returns it for
|
|
61
|
+
* offerOnboardingCredential. Claims that do not satisfy the schema, or a schema fetch that fails,
|
|
62
|
+
* must stop the process while the chain holds no outcome yet and the caller can repeat the call.
|
|
63
|
+
*
|
|
64
|
+
* A record that is already VALIDATED and has no credential exchange keeps the chain outcome and
|
|
65
|
+
* only builds the credential again. A repeat call thus re-drives an offer that did not complete.
|
|
66
|
+
*/
|
|
67
|
+
validateOnboardingProcess(input: ValidateOnboardingProcessInput): Promise<{
|
|
68
|
+
record: VtFlowRecord;
|
|
69
|
+
participant: Participant;
|
|
70
|
+
credential?: JsonObject;
|
|
71
|
+
}>;
|
|
72
|
+
/**
|
|
73
|
+
* Offer the credential of an onboarding process to its applicant. Call it only for a HOLDER, and
|
|
74
|
+
* only after validateOnboardingProcess has moved the record to VALIDATED. Give it the credential
|
|
75
|
+
* that validateOnboardingProcess built, so that the process does not build the credential twice.
|
|
76
|
+
*/
|
|
77
|
+
offerOnboardingCredential(input: OfferOnboardingCredentialInput): Promise<VtFlowRecord>;
|
|
78
|
+
/**
|
|
79
|
+
* Close an onboarding process that carries no credential exchange, on the validator side. The
|
|
80
|
+
* applicant reaches the same state from the SetParticipantOPToValidated chain event.
|
|
81
|
+
*/
|
|
82
|
+
completeOnboardingProcess(vtFlowRecordId: string): Promise<VtFlowRecord>;
|
|
83
|
+
/** [VSA-ADM-VT-FL-VALIDATE] */
|
|
84
|
+
validateFlow(input: ValidateFlowInput): Promise<VtFlowRecord>;
|
|
85
|
+
private validateFlowOnce;
|
|
86
|
+
private validateDirectIssuance;
|
|
87
|
+
private sendValidating;
|
|
88
|
+
private assertClaims;
|
|
89
|
+
private assertValidateState;
|
|
90
|
+
private validationTerms;
|
|
91
|
+
private assertClaimsAndTerm;
|
|
92
|
+
private submissionPath;
|
|
93
|
+
private submitValidation;
|
|
94
|
+
private preflight;
|
|
95
|
+
private anchor;
|
|
96
|
+
resolveValidationTx(recordId: string): Promise<void>;
|
|
97
|
+
private failUnlessValidated;
|
|
98
|
+
/**
|
|
99
|
+
* [VSA-VTI-FLOW-OP-ISSUE]: moves the flow to VALIDATED and fills `validation` from the validated
|
|
100
|
+
* entry. Without the landed transaction, a recorded broadcast keeps its tx, and its submission
|
|
101
|
+
* unless that tx failed.
|
|
102
|
+
*/
|
|
103
|
+
markValidated(recordId: string, entry: ParticipantDto, landed?: {
|
|
104
|
+
hash: string;
|
|
105
|
+
height: number;
|
|
106
|
+
timestamp?: string;
|
|
107
|
+
}): Promise<VtFlowRecord>;
|
|
108
|
+
/** rejectFlow ended the flow with its transaction in flight, and no newer flow of the applicant replaced it ([VSA-ADM-VT-FL-REJECT-2]). */
|
|
109
|
+
isRejectedInFlight(record: VtFlowRecord): Promise<boolean>;
|
|
110
|
+
continueAfterValidated(recordId: string): Promise<VtFlowRecord>;
|
|
111
|
+
private oneAtATime;
|
|
112
|
+
private issuanceAfterValidated;
|
|
113
|
+
/** [VSA-ADM-VT-FL-VALIDATE-8]: at startup, resume every flow left in VALIDATION_TX_SUBMITTED. */
|
|
114
|
+
resumeValidationSubmissions(): Promise<void>;
|
|
115
|
+
/** [VSA-VTI-FLOW-ISSUE-1]: at startup, resume through the stored issued credential every anchoring left SUBMITTED. */
|
|
116
|
+
resumeIssuanceSubmissions(): Promise<void>;
|
|
117
|
+
resumeIssuance(recordId: string, reoffer?: boolean): Promise<VtFlowRecord | null>;
|
|
118
|
+
private resumeIssuanceRun;
|
|
119
|
+
resumeIssuanceRuns(): Promise<void>;
|
|
120
|
+
/**
|
|
121
|
+
* [VSA-ADM-VT-FL-VALIDATE-12], [VSA-VTI-FLOW-ISSUE-3]: repeat validateFlow for each anchoring and
|
|
122
|
+
* validation that failed in the pre-flight. The first run repeats each of them one time. A later run
|
|
123
|
+
* repeats only SERVICE_UNAVAILABLE. A run stops after a validation it broadcasts, as its inclusion
|
|
124
|
+
* is not awaited and a second signature would reuse the account sequence. The flows that the first
|
|
125
|
+
* run did not reach stay for the subsequent runs.
|
|
126
|
+
*/
|
|
127
|
+
resumeFailedSubmissions(): Promise<void>;
|
|
33
128
|
acceptCredential(input: AcceptCredentialInput): Promise<VtFlowRecord>;
|
|
34
|
-
|
|
129
|
+
/** `schema` saves the indexer reads when the caller already fetched the schema of the flow. */
|
|
130
|
+
buildDirectIssuanceOffer(vtFlowRecordId: string, schema?: CredentialSchemaDto): Promise<{
|
|
35
131
|
credentialFormats: {
|
|
36
|
-
|
|
132
|
+
dataIntegrity: DidCommDataIntegrityOfferCredentialFormat;
|
|
37
133
|
};
|
|
38
134
|
issuerParticipantId: number;
|
|
39
135
|
} | null>;
|
|
136
|
+
/**
|
|
137
|
+
* The ISSUER entry under which this agent issues the schema by Direct Issuance, if any.
|
|
138
|
+
* [VSA-VTI-FLOW-DI]: Direct Issuance is only for a schema with holder_onboarding_mode =
|
|
139
|
+
* PERMISSIONLESS, and the ECS schemas use ISSUER_ONBOARDING_PROCESS. The chain accepts the
|
|
140
|
+
* anchoring CreateOrUpdateParticipantSession only from the vs_operator of the entry.
|
|
141
|
+
*/
|
|
142
|
+
private directIssuanceIssuer;
|
|
143
|
+
/**
|
|
144
|
+
* Builds the unsigned VC Data Model 2.0 credential that goes into the offer. RFC 0809 derives the
|
|
145
|
+
* advertised data model version from its context, and the issuer secures it with a
|
|
146
|
+
* DataIntegrityProof once the applicant requests it.
|
|
147
|
+
*/
|
|
40
148
|
private buildCredential;
|
|
149
|
+
private resolveJsonSchemaCredentialId;
|
|
41
150
|
/** Per the spec the algorithm comes from the schema, never from the digest value. */
|
|
42
151
|
private digestAlgorithmForSchema;
|
|
43
|
-
|
|
44
|
-
|
|
152
|
+
private credentialSchema;
|
|
153
|
+
/** Fired after signing and before delivery. A failed anchoring comes back in `issuance`, and the credential stays undelivered. */
|
|
154
|
+
onCredentialIssued(vtFlowRecordId: string, signedCredential: Record<string, unknown>): Promise<{
|
|
155
|
+
credentialDigest: string;
|
|
156
|
+
issuance: VtFlowIssuance;
|
|
157
|
+
}>;
|
|
45
158
|
verifyOfferedCredential(vtFlowRecordId: string): Promise<void>;
|
|
159
|
+
/** [VSA-VTI-FLOW-FMT-1]. Credo already verified the proof and its assertionMethod key, for data model 2.0 only. */
|
|
160
|
+
private assertFlowCredentialFormat;
|
|
46
161
|
onCredentialRevoked(vtFlowRecordId: string): Promise<void>;
|
|
47
162
|
onCredentialCompleted(vtFlowRecordId: string): Promise<void>;
|
|
48
|
-
|
|
49
|
-
private
|
|
50
|
-
|
|
163
|
+
/** The signed credential as the issuer attached it, which is the exact JSON its digest covers. */
|
|
164
|
+
private getReceivedCredentialJson;
|
|
165
|
+
checkEcsIssuanceExemption(context: VtFlowEcsIssuanceExemptionContext): Promise<boolean>;
|
|
166
|
+
checkParticipantId({ record }: VtFlowCheckParticipantIdContext): Promise<boolean | 'validated'>;
|
|
167
|
+
isParticipantPending({ record }: VtFlowCheckParticipantIdContext): Promise<boolean>;
|
|
168
|
+
checkSchemaId({ record }: VtFlowCheckSchemaIdContext): Promise<boolean>;
|
|
51
169
|
publishCredentialAsLinkedVp(vtFlowRecordId: string): Promise<void>;
|
|
52
170
|
private extractSchemaBaseId;
|
|
53
171
|
rotateRequesterDidToPeer(connectionId: string): Promise<void>;
|