@verana-labs/credo-ts-didcomm-vt-flow 2.0.0-dev.7 → 2.0.0-dev.70
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/build/VtFlowApi.d.ts +16 -3
- package/build/VtFlowApi.js +51 -11
- package/build/VtFlowApi.js.map +1 -1
- package/build/VtFlowModule.js +17 -13
- package/build/VtFlowModule.js.map +1 -1
- package/build/VtFlowModuleConfig.d.ts +27 -3
- package/build/VtFlowModuleConfig.js +10 -1
- package/build/VtFlowModuleConfig.js.map +1 -1
- package/build/errors/VtFlowErrorCode.d.ts +7 -3
- package/build/errors/VtFlowErrorCode.js +52 -17
- package/build/errors/VtFlowErrorCode.js.map +1 -1
- package/build/errors/buildVtFlowProblemReport.d.ts +4 -2
- package/build/errors/buildVtFlowProblemReport.js +7 -3
- package/build/errors/buildVtFlowProblemReport.js.map +1 -1
- package/build/errors/index.d.ts +2 -2
- package/build/errors/index.js +2 -1
- package/build/errors/index.js.map +1 -1
- package/build/handlers/ProblemReportHandler.d.ts +10 -0
- package/build/handlers/ProblemReportHandler.js +17 -0
- package/build/handlers/ProblemReportHandler.js.map +1 -0
- package/build/handlers/index.d.ts +1 -0
- package/build/handlers/index.js +3 -1
- package/build/handlers/index.js.map +1 -1
- package/build/index.d.ts +5 -4
- package/build/index.js +11 -1
- package/build/index.js.map +1 -1
- package/build/messages/ValidatingMessage.d.ts +1 -1
- package/build/messages/ValidatingMessage.js +1 -1
- package/build/messages/ValidatingMessage.js.map +1 -1
- package/build/messages/VtFlowProblemReportMessage.d.ts +13 -0
- package/build/messages/VtFlowProblemReportMessage.js +53 -0
- package/build/messages/VtFlowProblemReportMessage.js.map +1 -0
- package/build/messages/VtFlowProtocol.d.ts +3 -1
- package/build/messages/VtFlowProtocol.js +4 -2
- package/build/messages/VtFlowProtocol.js.map +1 -1
- package/build/messages/index.d.ts +2 -1
- package/build/messages/index.js +4 -1
- package/build/messages/index.js.map +1 -1
- package/build/repository/VtFlowRecord.d.ts +21 -7
- package/build/repository/VtFlowRecord.js +9 -3
- package/build/repository/VtFlowRecord.js.map +1 -1
- package/build/services/VtFlowService.d.ts +55 -14
- package/build/services/VtFlowService.js +280 -50
- package/build/services/VtFlowService.js.map +1 -1
- package/build/types.d.ts +94 -4
- package/build/types.js +55 -2
- package/build/types.js.map +1 -1
- package/build/utils/index.d.ts +1 -0
- package/build/utils/index.js +6 -0
- package/build/utils/index.js.map +1 -0
- package/build/utils/peerAnchorDid.d.ts +2 -0
- package/build/utils/peerAnchorDid.js +8 -0
- package/build/utils/peerAnchorDid.js.map +1 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VtFlowErrorCode.js","sourceRoot":"","sources":["../../src/errors/VtFlowErrorCode.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"VtFlowErrorCode.js","sourceRoot":"","sources":["../../src/errors/VtFlowErrorCode.ts"],"names":[],"mappings":";;;AAoIA,8CAEC;AAtID,oCAAsC;AAEtC,yFAAyF;AACzF,IAAY,eAkBX;AAlBD,WAAY,eAAe;IACzB,qDAAkC,CAAA;IAClC,qDAAkC,CAAA;IAClC,qEAAkD,CAAA;IAClD,0EAAuD,CAAA;IACvD,gEAA6C,CAAA;IAC7C,qFAAkE,CAAA;IAClE,kGAA+E,CAAA;IAC/E,2DAAwC,CAAA;IACxC,yFAAsE,CAAA;IACtE,6EAA0D,CAAA;IAC1D,iEAA8C,CAAA;IAC9C,mEAAgD,CAAA;IAChD,qDAAkC,CAAA;IAClC,mEAAgD,CAAA;IAChD,qEAAkD,CAAA;IAClD,qEAAkD,CAAA;IAClD,2DAAwC,CAAA;AAC1C,CAAC,EAlBW,eAAe,+BAAf,eAAe,QAkB1B;AAuBY,QAAA,kBAAkB,GAAuD;IACpF,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE;QAC5B,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,QAAQ;QAChB,S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AAE,QAAQ;QAChB,SAAS,EAAE,oBAAoB;KAChC;IACD,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAAE;QACnC,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,mBAAW,CAAC,qBAAqB;KAC7C;IACD,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE;QAC5B,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,mBAAW,CAAC,qBAAqB;KAC7C;IACD,CAAC,eAAe,CAAC,iBAAiB,CAAC,EAAE;QACnC,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,sBAAsB;KAClC;IACD,CAAC,eAAe,CAAC,kBAAkB,CAAC,EAAE;QACpC,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,mBAAW,CAAC,kBAAkB;KAC1C;IACD,CAAC,eAAe,CAAC,kBAAkB,CAAC,EAAE;QACpC,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,YAAY;QACpB,SAAS,EAAE,mBAAW,CAAC,kBAAkB;KAC1C;IACD,CAAC,eAAe,CAAC,aAAa,CAAC,EAAE;QAC/B,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,QAAQ;QAChB,SAAS,EAAE,kBAAkB;KAC9B;CACF,CAAA;AAED,SAAgB,iBAAiB,CAAC,IAAY;IAC5C,OAAQ,MAAM,CAAC,MAAM,CAAC,eAAe,CAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAA;AACpE,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ImpactStatus, WhoRetriesStatus } from '@credo-ts/didcomm';
|
|
2
|
+
import { VtFlowProblemReportMessage } from '../messages/VtFlowProblemReportMessage';
|
|
2
3
|
import { VtFlowErrorCode } from './VtFlowErrorCode';
|
|
3
4
|
/** Inputs to `buildVtFlowProblemReport`; `enDescription`/`whoRetries`/`impact` default to per-code values from `VT_FLOW_ERROR_INFO`. */
|
|
4
5
|
export interface BuildVtFlowProblemReportOptions {
|
|
@@ -9,5 +10,6 @@ export interface BuildVtFlowProblemReportOptions {
|
|
|
9
10
|
whoRetries?: WhoRetriesStatus;
|
|
10
11
|
impact?: ImpactStatus;
|
|
11
12
|
}
|
|
13
|
+
export declare const whoRetriesMap: Record<'you' | 'me' | 'both' | 'none', WhoRetriesStatus>;
|
|
12
14
|
/** Build a problem-report with a `VtFlowErrorCode` description and `who_retries`/`impact` pulled from `VT_FLOW_ERROR_INFO`; caller drives dispatch and terminal-state transition. */
|
|
13
|
-
export declare function buildVtFlowProblemReport(options: BuildVtFlowProblemReportOptions):
|
|
15
|
+
export declare function buildVtFlowProblemReport(options: BuildVtFlowProblemReportOptions): VtFlowProblemReportMessage;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.whoRetriesMap = void 0;
|
|
3
4
|
exports.buildVtFlowProblemReport = buildVtFlowProblemReport;
|
|
4
5
|
const didcomm_1 = require("@credo-ts/didcomm");
|
|
6
|
+
const VtFlowProblemReportMessage_1 = require("../messages/VtFlowProblemReportMessage");
|
|
5
7
|
const VtFlowErrorCode_1 = require("./VtFlowErrorCode");
|
|
6
|
-
|
|
8
|
+
exports.whoRetriesMap = {
|
|
7
9
|
you: didcomm_1.WhoRetriesStatus.You,
|
|
8
10
|
me: didcomm_1.WhoRetriesStatus.Me,
|
|
9
11
|
both: didcomm_1.WhoRetriesStatus.Both,
|
|
@@ -18,12 +20,12 @@ const impactMap = {
|
|
|
18
20
|
function buildVtFlowProblemReport(options) {
|
|
19
21
|
var _a, _b, _c;
|
|
20
22
|
const info = VtFlowErrorCode_1.VT_FLOW_ERROR_INFO[options.code];
|
|
21
|
-
const message = new
|
|
23
|
+
const message = new VtFlowProblemReportMessage_1.VtFlowProblemReportMessage({
|
|
22
24
|
description: {
|
|
23
25
|
code: options.code,
|
|
24
26
|
en: (_a = options.enDescription) !== null && _a !== void 0 ? _a : defaultEnglishDescription(options.code),
|
|
25
27
|
},
|
|
26
|
-
whoRetries: (_b = options.whoRetries) !== null && _b !== void 0 ? _b : whoRetriesMap[info.whoRetries],
|
|
28
|
+
whoRetries: (_b = options.whoRetries) !== null && _b !== void 0 ? _b : exports.whoRetriesMap[info.whoRetries],
|
|
27
29
|
impact: (_c = options.impact) !== null && _c !== void 0 ? _c : impactMap[info.impact],
|
|
28
30
|
fixHint: options.fixHintEn ? { en: options.fixHintEn } : undefined,
|
|
29
31
|
});
|
|
@@ -54,6 +56,8 @@ function defaultEnglishDescription(code) {
|
|
|
54
56
|
return "The peer's DID does not identify a Verifiable Service.";
|
|
55
57
|
case VtFlowErrorCode_1.VtFlowErrorCode.ValidationFailed:
|
|
56
58
|
return 'Off-chain validation of the submitted documentation failed.';
|
|
59
|
+
case VtFlowErrorCode_1.VtFlowErrorCode.ValidationRefused:
|
|
60
|
+
return 'The Validator refused the request after its off-chain validation.';
|
|
57
61
|
case VtFlowErrorCode_1.VtFlowErrorCode.OobExpired:
|
|
58
62
|
return 'The OOB link expired before the Applicant completed it.';
|
|
59
63
|
case VtFlowErrorCode_1.VtFlowErrorCode.SessionTerminated:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buildVtFlowProblemReport.js","sourceRoot":"","sources":["../../src/errors/buildVtFlowProblemReport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buildVtFlowProblemReport.js","sourceRoot":"","sources":["../../src/errors/buildVtFlowProblemReport.ts"],"names":[],"mappings":";;;AA8BA,4DAkBC;AAhDD,+CAAkE;AAElE,uFAAmF;AAEnF,uDAAuE;AAY1D,QAAA,aAAa,GAA6D;IACrF,GAAG,EAAE,0BAAgB,CAAC,GAAG;IACzB,EAAE,EAAE,0BAAgB,CAAC,EAAE;IACvB,IAAI,EAAE,0BAAgB,CAAC,IAA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C,OAAO,4DAA4D,CAAA;QACrE,KAAK,iCAAe,CAAC,eAAe;YAClC,OAAO,4DAA4D,CAAA;QACrE,KAAK,iCAAe,CAAC,yBAAyB;YAC5C,OAAO,6DAA6D,CAAA;QACtE,KAAK,iCAAe,CAAC,+BAA+B;YAClD,OAAO,oEAAoE,CAAA;QAC7E,KAAK,iCAAe,CAAC,aAAa;YAChC,OAAO,iDAAiD,CAAA;QAC1D,KAAK,iCAAe,CAAC,2BAA2B;YAC9C,OAAO,uFAAuF,CAAA;QAChG,KAAK,iCAAe,CAAC,qBAAqB;YACxC,OAAO,wDAAwD,CAAA;QACjE,KAAK,iCAAe,CAAC,gBAAgB;YACnC,OAAO,6DAA6D,CAAA;QACtE,KAAK,iCAAe,CAAC,iBAAiB;YACpC,OAAO,mEAAmE,CAAA;QAC5E,KAAK,iCAAe,CAAC,UAAU;YAC7B,OAAO,yDAAyD,CAAA;QAClE,KAAK,iCAAe,CAAC,iBAAiB;YACpC,OAAO,yCAAyC,CAAA;QAClD,KAAK,iCAAe,CAAC,kBAAkB;YACrC,OAAO,iEAAiE,CAAA;QAC1E,KAAK,iCAAe,CAAC,kBAAkB;YACrC,OAAO,kFAAkF,CAAA;QAC3F,KAAK,iCAAe,CAAC,aAAa;YAChC,OAAO,0DAA0D,CAAA;QACnE,OAAO,CAAC,CAAC,CAAC;YACR,MAAM,WAAW,GAAU,IAAI,CAAA;YAC/B,KAAK,WAAW,CAAA;YAChB,OAAO,wBAAwB,CAAA;QACjC,CAAC;IACH,CAAC;AACH,CAAC"}
|
package/build/errors/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { VT_FLOW_ERROR_INFO, VtFlowErrorCode, isVtFlowErrorCode } from './VtFlowErrorCode';
|
|
2
|
-
export type { ErrorImpact, VtFlowErrorInfo, WhoRetries } from './VtFlowErrorCode';
|
|
3
|
-
export { buildVtFlowProblemReport } from './buildVtFlowProblemReport';
|
|
2
|
+
export type { ErrorImpact, VtFlowErrorFlowState, VtFlowErrorInfo, WhoRetries } from './VtFlowErrorCode';
|
|
3
|
+
export { buildVtFlowProblemReport, whoRetriesMap } from './buildVtFlowProblemReport';
|
|
4
4
|
export type { BuildVtFlowProblemReportOptions } from './buildVtFlowProblemReport';
|
package/build/errors/index.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.buildVtFlowProblemReport = exports.isVtFlowErrorCode = exports.VtFlowErrorCode = exports.VT_FLOW_ERROR_INFO = void 0;
|
|
3
|
+
exports.whoRetriesMap = exports.buildVtFlowProblemReport = exports.isVtFlowErrorCode = exports.VtFlowErrorCode = exports.VT_FLOW_ERROR_INFO = void 0;
|
|
4
4
|
var VtFlowErrorCode_1 = require("./VtFlowErrorCode");
|
|
5
5
|
Object.defineProperty(exports, "VT_FLOW_ERROR_INFO", { enumerable: true, get: function () { return VtFlowErrorCode_1.VT_FLOW_ERROR_INFO; } });
|
|
6
6
|
Object.defineProperty(exports, "VtFlowErrorCode", { enumerable: true, get: function () { return VtFlowErrorCode_1.VtFlowErrorCode; } });
|
|
7
7
|
Object.defineProperty(exports, "isVtFlowErrorCode", { enumerable: true, get: function () { return VtFlowErrorCode_1.isVtFlowErrorCode; } });
|
|
8
8
|
var buildVtFlowProblemReport_1 = require("./buildVtFlowProblemReport");
|
|
9
9
|
Object.defineProperty(exports, "buildVtFlowProblemReport", { enumerable: true, get: function () { return buildVtFlowProblemReport_1.buildVtFlowProblemReport; } });
|
|
10
|
+
Object.defineProperty(exports, "whoRetriesMap", { enumerable: true, get: function () { return buildVtFlowProblemReport_1.whoRetriesMap; } });
|
|
10
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0F;AAAjF,qHAAA,kBAAkB,OAAA;AAAE,kHAAA,eAAe,OAAA;AAAE,oHAAA,iBAAiB,OAAA;AAG/D,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/errors/index.ts"],"names":[],"mappings":";;;AAAA,qDAA0F;AAAjF,qHAAA,kBAAkB,OAAA;AAAE,kHAAA,eAAe,OAAA;AAAE,oHAAA,iBAAiB,OAAA;AAG/D,uEAAoF;AAA3E,oIAAA,wBAAwB,OAAA;AAAE,yHAAA,aAAa,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { VtFlowService } from '../services';
|
|
2
|
+
import type { DidCommMessageHandler, DidCommMessageHandlerInboundMessage } from '@credo-ts/didcomm';
|
|
3
|
+
import { VtFlowProblemReportMessage } from '../messages';
|
|
4
|
+
/** Inbound handler for the adopted `problem-report`; both roles apply the Error Codes table. */
|
|
5
|
+
export declare class ProblemReportHandler implements DidCommMessageHandler {
|
|
6
|
+
private readonly vtFlowService;
|
|
7
|
+
supportedMessages: (typeof VtFlowProblemReportMessage)[];
|
|
8
|
+
constructor(vtFlowService: VtFlowService);
|
|
9
|
+
handle(messageContext: DidCommMessageHandlerInboundMessage<ProblemReportHandler>): Promise<undefined>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProblemReportHandler = void 0;
|
|
4
|
+
const messages_1 = require("../messages");
|
|
5
|
+
/** Inbound handler for the adopted `problem-report`; both roles apply the Error Codes table. */
|
|
6
|
+
class ProblemReportHandler {
|
|
7
|
+
constructor(vtFlowService) {
|
|
8
|
+
this.vtFlowService = vtFlowService;
|
|
9
|
+
this.supportedMessages = [messages_1.VtFlowProblemReportMessage];
|
|
10
|
+
}
|
|
11
|
+
async handle(messageContext) {
|
|
12
|
+
await this.vtFlowService.processReceiveProblemReport(messageContext);
|
|
13
|
+
return undefined;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.ProblemReportHandler = ProblemReportHandler;
|
|
17
|
+
//# sourceMappingURL=ProblemReportHandler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProblemReportHandler.js","sourceRoot":"","sources":["../../src/handlers/ProblemReportHandler.ts"],"names":[],"mappings":";;;AAGA,0CAAwD;AAExD,gGAAgG;AAChG,MAAa,oBAAoB;IAG/B,YAAoC,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QAFzD,sBAAiB,GAAG,CAAC,qCAA0B,CAAC,CAAA;IAEY,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,cAAyE;QAC3F,MAAM,IAAI,CAAC,aAAa,CAAC,2BAA2B,CAAC,cAAc,CAAC,CAAA;QACpE,OAAO,SAAS,CAAA;IAClB,CAAC;CACF;AATD,oDASC"}
|
|
@@ -3,3 +3,4 @@ export { IssuanceRequestHandler } from './IssuanceRequestHandler';
|
|
|
3
3
|
export { OobLinkHandler } from './OobLinkHandler';
|
|
4
4
|
export { OnboardingRequestHandler } from './OnboardingRequestHandler';
|
|
5
5
|
export { ValidatingHandler } from './ValidatingHandler';
|
|
6
|
+
export { ProblemReportHandler } from './ProblemReportHandler';
|
package/build/handlers/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidatingHandler = exports.OnboardingRequestHandler = exports.OobLinkHandler = exports.IssuanceRequestHandler = exports.CredentialStateChangeHandler = void 0;
|
|
3
|
+
exports.ProblemReportHandler = exports.ValidatingHandler = exports.OnboardingRequestHandler = exports.OobLinkHandler = exports.IssuanceRequestHandler = exports.CredentialStateChangeHandler = void 0;
|
|
4
4
|
var CredentialStateChangeHandler_1 = require("./CredentialStateChangeHandler");
|
|
5
5
|
Object.defineProperty(exports, "CredentialStateChangeHandler", { enumerable: true, get: function () { return CredentialStateChangeHandler_1.CredentialStateChangeHandler; } });
|
|
6
6
|
var IssuanceRequestHandler_1 = require("./IssuanceRequestHandler");
|
|
@@ -11,4 +11,6 @@ var OnboardingRequestHandler_1 = require("./OnboardingRequestHandler");
|
|
|
11
11
|
Object.defineProperty(exports, "OnboardingRequestHandler", { enumerable: true, get: function () { return OnboardingRequestHandler_1.OnboardingRequestHandler; } });
|
|
12
12
|
var ValidatingHandler_1 = require("./ValidatingHandler");
|
|
13
13
|
Object.defineProperty(exports, "ValidatingHandler", { enumerable: true, get: function () { return ValidatingHandler_1.ValidatingHandler; } });
|
|
14
|
+
var ProblemReportHandler_1 = require("./ProblemReportHandler");
|
|
15
|
+
Object.defineProperty(exports, "ProblemReportHandler", { enumerable: true, get: function () { return ProblemReportHandler_1.ProblemReportHandler; } });
|
|
14
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":";;;AAAA,+EAA6E;AAApE,4IAAA,4BAA4B,OAAA;AACrC,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AACjC,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/handlers/index.ts"],"names":[],"mappings":";;;AAAA,+EAA6E;AAApE,4IAAA,4BAA4B,OAAA;AACrC,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAC/B,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AACvB,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AACjC,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAC1B,+DAA6D;AAApD,4HAAA,oBAAoB,OAAA"}
|
package/build/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { VtFlowEventTypes, VtFlowRole, VtFlowState, VtFlowTerminalStates, VtFlowVariant, isVtFlowTerminalState, } from './types';
|
|
2
|
-
export type { NotifyCredentialStateChangeOptions, OfferCredentialForSessionOptions, ProblemReportDispatchOptions, SendIssuanceRequestOptions, SendOnboardingRequestOptions, SendOobLinkOptions, VtFlowStateChangedEvent, } from './types';
|
|
1
|
+
export { VtFlowEventTypes, VtFlowMessageType, VtFlowPendingAction, VtFlowRole, VtFlowState, VtFlowSubmission, VtFlowTerminalStates, VtFlowTxReason, VtFlowTxStatus, VtFlowValidatedFromStates, VtFlowVariant, isVtFlowTerminalState, } from './types';
|
|
2
|
+
export type { NotifyCredentialStateChangeOptions, VtFlowIssuance, VtFlowMessage, VtFlowOobLink, VtFlowTx, VtFlowValidation, OfferCredentialForSessionOptions, ProblemReportDispatchOptions, ResendOnboardingRequestOptions, SendIssuanceRequestOptions, SendOnboardingRequestOptions, SendOobLinkOptions, VtFlowStateChangedEvent, } from './types';
|
|
3
3
|
export { VT_FLOW_PROTOCOL_URI, VT_FLOW_ONBOARDING_REQUEST_TYPE, VT_FLOW_ISSUANCE_REQUEST_TYPE, VT_FLOW_OOB_LINK_TYPE, VT_FLOW_VALIDATING_TYPE, VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE, OnboardingRequestMessage, IssuanceRequestMessage, OobLinkMessage, ValidatingMessage, CredentialStateChangeMessage, VtCredentialState, } from './messages';
|
|
4
4
|
export type { OnboardingRequestMessageOptions, IssuanceRequestMessageOptions, OobLinkMessageOptions, ValidatingMessageOptions, CredentialStateChangeMessageOptions, } from './messages';
|
|
5
5
|
export { VT_FLOW_ERROR_INFO, VtFlowErrorCode, buildVtFlowProblemReport, isVtFlowErrorCode } from './errors';
|
|
@@ -8,8 +8,9 @@ export { VtFlowRecord, VtFlowRepository } from './repository';
|
|
|
8
8
|
export type { CustomVtFlowTags, DefaultVtFlowTags, VtFlowStorageProps, VtFlowTags } from './repository';
|
|
9
9
|
export { VtFlowService } from './services';
|
|
10
10
|
export type { CreateIssuanceRequestParams, CreateOnboardingRequestParams } from './services';
|
|
11
|
+
export { peerAnchorDid } from './utils';
|
|
11
12
|
export { CredentialStateChangeHandler, IssuanceRequestHandler, OnboardingRequestHandler, OobLinkHandler, ValidatingHandler, } from './handlers';
|
|
12
|
-
export { VtFlowModuleConfig } from './VtFlowModuleConfig';
|
|
13
|
-
export type { VtFlowAssertVerifiableServiceContext, VtFlowAssertVerifiableServiceHook, VtFlowBuildCredentialOfferContext, VtFlowBuildCredentialOfferHook, VtFlowCredentialLifecycleContext, VtFlowCredentialOfferPayload, VtFlowModuleConfigOptions, VtFlowOnCompletedHook, VtFlowVerifyCredentialHook, } from './VtFlowModuleConfig';
|
|
13
|
+
export { DEFAULT_DATA_INTEGRITY_CRYPTOSUITE, VtFlowModuleConfig } from './VtFlowModuleConfig';
|
|
14
|
+
export type { VtFlowAssertVerifiableServiceContext, VtFlowAssertVerifiableServiceHook, VtFlowBuildCredentialOfferContext, VtFlowBuildCredentialOfferHook, VtFlowCredentialLifecycleContext, VtFlowCredentialOfferPayload, VtFlowModuleConfigOptions, VtFlowOnCompletedHook, VtFlowRequestPurpose, VtFlowEcsIssuanceExemptionContext, VtFlowEcsIssuanceExemptionHook, VtFlowVerifyCredentialHook, } from './VtFlowModuleConfig';
|
|
14
15
|
export { VtFlowModule } from './VtFlowModule';
|
|
15
16
|
export { VtFlowApi } from './VtFlowApi';
|
package/build/index.js
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VtFlowApi = exports.VtFlowModule = exports.VtFlowModuleConfig = exports.ValidatingHandler = exports.OobLinkHandler = exports.OnboardingRequestHandler = exports.IssuanceRequestHandler = exports.CredentialStateChangeHandler = exports.VtFlowService = exports.VtFlowRepository = exports.VtFlowRecord = exports.isVtFlowErrorCode = exports.buildVtFlowProblemReport = exports.VtFlowErrorCode = exports.VT_FLOW_ERROR_INFO = exports.VtCredentialState = exports.CredentialStateChangeMessage = exports.ValidatingMessage = exports.OobLinkMessage = exports.IssuanceRequestMessage = exports.OnboardingRequestMessage = exports.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE = exports.VT_FLOW_VALIDATING_TYPE = exports.VT_FLOW_OOB_LINK_TYPE = exports.VT_FLOW_ISSUANCE_REQUEST_TYPE = exports.VT_FLOW_ONBOARDING_REQUEST_TYPE = exports.VT_FLOW_PROTOCOL_URI = exports.isVtFlowTerminalState = exports.VtFlowVariant = exports.VtFlowTerminalStates = exports.VtFlowState = exports.VtFlowRole = exports.VtFlowEventTypes = void 0;
|
|
3
|
+
exports.VtFlowApi = exports.VtFlowModule = exports.VtFlowModuleConfig = exports.DEFAULT_DATA_INTEGRITY_CRYPTOSUITE = exports.ValidatingHandler = exports.OobLinkHandler = exports.OnboardingRequestHandler = exports.IssuanceRequestHandler = exports.CredentialStateChangeHandler = exports.peerAnchorDid = exports.VtFlowService = exports.VtFlowRepository = exports.VtFlowRecord = exports.isVtFlowErrorCode = exports.buildVtFlowProblemReport = exports.VtFlowErrorCode = exports.VT_FLOW_ERROR_INFO = exports.VtCredentialState = exports.CredentialStateChangeMessage = exports.ValidatingMessage = exports.OobLinkMessage = exports.IssuanceRequestMessage = exports.OnboardingRequestMessage = exports.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE = exports.VT_FLOW_VALIDATING_TYPE = exports.VT_FLOW_OOB_LINK_TYPE = exports.VT_FLOW_ISSUANCE_REQUEST_TYPE = exports.VT_FLOW_ONBOARDING_REQUEST_TYPE = exports.VT_FLOW_PROTOCOL_URI = exports.isVtFlowTerminalState = exports.VtFlowVariant = exports.VtFlowValidatedFromStates = exports.VtFlowTxStatus = exports.VtFlowTxReason = exports.VtFlowTerminalStates = exports.VtFlowSubmission = exports.VtFlowState = exports.VtFlowRole = exports.VtFlowPendingAction = exports.VtFlowMessageType = exports.VtFlowEventTypes = void 0;
|
|
4
4
|
// Types: enums, events, API option interfaces
|
|
5
5
|
var types_1 = require("./types");
|
|
6
6
|
Object.defineProperty(exports, "VtFlowEventTypes", { enumerable: true, get: function () { return types_1.VtFlowEventTypes; } });
|
|
7
|
+
Object.defineProperty(exports, "VtFlowMessageType", { enumerable: true, get: function () { return types_1.VtFlowMessageType; } });
|
|
8
|
+
Object.defineProperty(exports, "VtFlowPendingAction", { enumerable: true, get: function () { return types_1.VtFlowPendingAction; } });
|
|
7
9
|
Object.defineProperty(exports, "VtFlowRole", { enumerable: true, get: function () { return types_1.VtFlowRole; } });
|
|
8
10
|
Object.defineProperty(exports, "VtFlowState", { enumerable: true, get: function () { return types_1.VtFlowState; } });
|
|
11
|
+
Object.defineProperty(exports, "VtFlowSubmission", { enumerable: true, get: function () { return types_1.VtFlowSubmission; } });
|
|
9
12
|
Object.defineProperty(exports, "VtFlowTerminalStates", { enumerable: true, get: function () { return types_1.VtFlowTerminalStates; } });
|
|
13
|
+
Object.defineProperty(exports, "VtFlowTxReason", { enumerable: true, get: function () { return types_1.VtFlowTxReason; } });
|
|
14
|
+
Object.defineProperty(exports, "VtFlowTxStatus", { enumerable: true, get: function () { return types_1.VtFlowTxStatus; } });
|
|
15
|
+
Object.defineProperty(exports, "VtFlowValidatedFromStates", { enumerable: true, get: function () { return types_1.VtFlowValidatedFromStates; } });
|
|
10
16
|
Object.defineProperty(exports, "VtFlowVariant", { enumerable: true, get: function () { return types_1.VtFlowVariant; } });
|
|
11
17
|
Object.defineProperty(exports, "isVtFlowTerminalState", { enumerable: true, get: function () { return types_1.isVtFlowTerminalState; } });
|
|
12
18
|
// Wire messages
|
|
@@ -36,6 +42,9 @@ Object.defineProperty(exports, "VtFlowRepository", { enumerable: true, get: func
|
|
|
36
42
|
// Service
|
|
37
43
|
var services_1 = require("./services");
|
|
38
44
|
Object.defineProperty(exports, "VtFlowService", { enumerable: true, get: function () { return services_1.VtFlowService; } });
|
|
45
|
+
// Utils
|
|
46
|
+
var utils_1 = require("./utils");
|
|
47
|
+
Object.defineProperty(exports, "peerAnchorDid", { enumerable: true, get: function () { return utils_1.peerAnchorDid; } });
|
|
39
48
|
// Handlers
|
|
40
49
|
var handlers_1 = require("./handlers");
|
|
41
50
|
Object.defineProperty(exports, "CredentialStateChangeHandler", { enumerable: true, get: function () { return handlers_1.CredentialStateChangeHandler; } });
|
|
@@ -45,6 +54,7 @@ Object.defineProperty(exports, "OobLinkHandler", { enumerable: true, get: functi
|
|
|
45
54
|
Object.defineProperty(exports, "ValidatingHandler", { enumerable: true, get: function () { return handlers_1.ValidatingHandler; } });
|
|
46
55
|
// Module surface
|
|
47
56
|
var VtFlowModuleConfig_1 = require("./VtFlowModuleConfig");
|
|
57
|
+
Object.defineProperty(exports, "DEFAULT_DATA_INTEGRITY_CRYPTOSUITE", { enumerable: true, get: function () { return VtFlowModuleConfig_1.DEFAULT_DATA_INTEGRITY_CRYPTOSUITE; } });
|
|
48
58
|
Object.defineProperty(exports, "VtFlowModuleConfig", { enumerable: true, get: function () { return VtFlowModuleConfig_1.VtFlowModuleConfig; } });
|
|
49
59
|
var VtFlowModule_1 = require("./VtFlowModule");
|
|
50
60
|
Object.defineProperty(exports, "VtFlowModule", { enumerable: true, get: function () { return VtFlowModule_1.VtFlowModule; } });
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,8CAA8C;AAC9C,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,8CAA8C;AAC9C,iCAagB;AAZd,yGAAA,gBAAgB,OAAA;AAChB,0GAAA,iBAAiB,OAAA;AACjB,4GAAA,mBAAmB,OAAA;AACnB,mGAAA,UAAU,OAAA;AACV,oGAAA,WAAW,OAAA;AACX,yGAAA,gBAAgB,OAAA;AAChB,6GAAA,oBAAoB,OAAA;AACpB,uGAAA,cAAc,OAAA;AACd,uGAAA,cAAc,OAAA;AACd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
+
/** Spec `validating`; moves the flow to `VALIDATING`, sent when the Validator accepts a request and after an out-of-band step. */
|
|
8
8
|
export declare class ValidatingMessage extends DidCommMessage {
|
|
9
9
|
constructor(options: ValidatingMessageOptions);
|
|
10
10
|
static readonly type: import("@credo-ts/didcomm").ParsedMessageType;
|
|
@@ -13,7 +13,7 @@ exports.ValidatingMessage = void 0;
|
|
|
13
13
|
const didcomm_1 = require("@credo-ts/didcomm");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const VtFlowProtocol_1 = require("./VtFlowProtocol");
|
|
16
|
-
/** Spec `validating`;
|
|
16
|
+
/** Spec `validating`; moves the flow to `VALIDATING`, sent when the Validator accepts a request and after an out-of-band step. */
|
|
17
17
|
class ValidatingMessage extends didcomm_1.DidCommMessage {
|
|
18
18
|
constructor(options) {
|
|
19
19
|
var _a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValidatingMessage.js","sourceRoot":"","sources":["../../src/messages/ValidatingMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwF;AACxF,qDAAsD;AAEtD,qDAA0D;AAQ1D,
|
|
1
|
+
{"version":3,"file":"ValidatingMessage.js","sourceRoot":"","sources":["../../src/messages/ValidatingMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAAwF;AACxF,qDAAsD;AAEtD,qDAA0D;AAQ1D,kIAAkI;AAClI,MAAa,iBAAkB,SAAQ,wBAAc;IACnD,YAAmB,OAAiC;;QAClD,KAAK,EAAE,CAAA;QAaO,SAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,cAAc,CAAA;QAX1D,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,EAAE,GAAG,MAAA,OAAO,CAAC,EAAE,mCAAI,IAAI,CAAC,UAAU,EAAE,CAAA;YACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;YAE9B,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAA;QAChD,CAAC;IACH,CAAC;;AAVH,8CAoBC;AARwB,sBAAI,GAAG,IAAA,0BAAgB,EAAC,wCAAuB,CAAC,AAA5C,CAA4C;AAGvD;IADf,IAAA,4BAAkB,EAAC,iBAAiB,CAAC,IAAI,CAAC;;+CACiB;AAIrD;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDACY"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { DidCommProblemReportMessage, ImpactStatus, WhereStatus, WhoRetriesStatus } from '@credo-ts/didcomm';
|
|
2
|
+
/**
|
|
3
|
+
* Spec `problem-report (adopted)`. Credo's base class is typed
|
|
4
|
+
* `notification/1.0/problem-report`, which is not the `report-problem/1.0` URI the vt-flow
|
|
5
|
+
* Message Type URIs table requires, and a handler keys on the message class.
|
|
6
|
+
*/
|
|
7
|
+
export declare class VtFlowProblemReportMessage extends DidCommProblemReportMessage {
|
|
8
|
+
static readonly type: import("@credo-ts/didcomm").ParsedMessageType;
|
|
9
|
+
readonly type: string;
|
|
10
|
+
whoRetries?: WhoRetriesStatus;
|
|
11
|
+
impact?: ImpactStatus;
|
|
12
|
+
where?: WhereStatus;
|
|
13
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.VtFlowProblemReportMessage = void 0;
|
|
13
|
+
const didcomm_1 = require("@credo-ts/didcomm");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const VtFlowProtocol_1 = require("./VtFlowProtocol");
|
|
17
|
+
// RFC 0035 values are lower case on the wire, while Credo's enums and their IsEnum checks are upper case.
|
|
18
|
+
function rfc0035Case({ value, type }) {
|
|
19
|
+
if (typeof value !== 'string')
|
|
20
|
+
return value;
|
|
21
|
+
return type === class_transformer_1.TransformationType.CLASS_TO_PLAIN ? value.toLowerCase() : value.toUpperCase();
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Spec `problem-report (adopted)`. Credo's base class is typed
|
|
25
|
+
* `notification/1.0/problem-report`, which is not the `report-problem/1.0` URI the vt-flow
|
|
26
|
+
* Message Type URIs table requires, and a handler keys on the message class.
|
|
27
|
+
*/
|
|
28
|
+
class VtFlowProblemReportMessage extends didcomm_1.DidCommProblemReportMessage {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.type = VtFlowProblemReportMessage.type.messageTypeUri;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.VtFlowProblemReportMessage = VtFlowProblemReportMessage;
|
|
35
|
+
VtFlowProblemReportMessage.type = (0, didcomm_1.parseMessageType)(VtFlowProtocol_1.VT_FLOW_PROBLEM_REPORT_TYPE);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, didcomm_1.IsValidMessageType)(VtFlowProblemReportMessage.type),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], VtFlowProblemReportMessage.prototype, "type", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Transform)(rfc0035Case),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], VtFlowProblemReportMessage.prototype, "whoRetries", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Transform)(rfc0035Case),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], VtFlowProblemReportMessage.prototype, "impact", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], VtFlowProblemReportMessage.prototype, "where", void 0);
|
|
53
|
+
//# sourceMappingURL=VtFlowProblemReportMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VtFlowProblemReportMessage.js","sourceRoot":"","sources":["../../src/messages/VtFlowProblemReportMessage.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAO0B;AAC1B,yDAAiE;AACjE,qDAAsD;AAEtD,qDAA8D;AAE9D,0GAA0G;AAC1G,SAAS,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAgD;IAChF,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAA;IAC3C,OAAO,IAAI,KAAK,sCAAkB,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,WAAW,EAAE,CAAA;AAC/F,CAAC;AAED;;;;GAIG;AACH,MAAa,0BAA2B,SAAQ,qCAA2B;IAA3E;;QAIkB,SAAI,GAAG,0BAA0B,CAAC,IAAI,CAAC,cAAc,CAAA;IAYvE,CAAC;;AAhBD,gEAgBC;AAfwB,+BAAI,GAAG,IAAA,0BAAgB,EAAC,4CAA2B,CAAC,AAAhD,CAAgD;AAG3D;IADf,IAAA,4BAAkB,EAAC,0BAA0B,CAAC,IAAI,CAAC;;wDACiB;AAG9D;IADN,IAAA,6BAAS,EAAC,WAAW,CAAC;;8DACa;AAG7B;IADN,IAAA,6BAAS,EAAC,WAAW,CAAC;;0DACK;AAKrB;IAFN,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACe"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
/** Canonical URIs for the five vt-flow superprotocol messages. */
|
|
1
|
+
/** Canonical URIs for the five vt-flow superprotocol messages and the adopted problem-report. */
|
|
2
2
|
export declare const VT_FLOW_PROTOCOL_URI: "https://didcomm.org/vt-flow/1.0";
|
|
3
3
|
export declare const VT_FLOW_ONBOARDING_REQUEST_TYPE: "https://didcomm.org/vt-flow/1.0/onboarding-request";
|
|
4
4
|
export declare const VT_FLOW_ISSUANCE_REQUEST_TYPE: "https://didcomm.org/vt-flow/1.0/issuance-request";
|
|
5
5
|
export declare const VT_FLOW_OOB_LINK_TYPE: "https://didcomm.org/vt-flow/1.0/oob-link";
|
|
6
6
|
export declare const VT_FLOW_VALIDATING_TYPE: "https://didcomm.org/vt-flow/1.0/validating";
|
|
7
7
|
export declare const VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE: "https://didcomm.org/vt-flow/1.0/credential-state-change";
|
|
8
|
+
/** The adopted problem-report of the spec, which is not under the vt-flow protocol URI. */
|
|
9
|
+
export declare const VT_FLOW_PROBLEM_REPORT_TYPE: "https://didcomm.org/report-problem/1.0/problem-report";
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE = exports.VT_FLOW_VALIDATING_TYPE = exports.VT_FLOW_OOB_LINK_TYPE = exports.VT_FLOW_ISSUANCE_REQUEST_TYPE = exports.VT_FLOW_ONBOARDING_REQUEST_TYPE = exports.VT_FLOW_PROTOCOL_URI = void 0;
|
|
4
|
-
/** Canonical URIs for the five vt-flow superprotocol messages. */
|
|
3
|
+
exports.VT_FLOW_PROBLEM_REPORT_TYPE = exports.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE = exports.VT_FLOW_VALIDATING_TYPE = exports.VT_FLOW_OOB_LINK_TYPE = exports.VT_FLOW_ISSUANCE_REQUEST_TYPE = exports.VT_FLOW_ONBOARDING_REQUEST_TYPE = exports.VT_FLOW_PROTOCOL_URI = void 0;
|
|
4
|
+
/** Canonical URIs for the five vt-flow superprotocol messages and the adopted problem-report. */
|
|
5
5
|
exports.VT_FLOW_PROTOCOL_URI = 'https://didcomm.org/vt-flow/1.0';
|
|
6
6
|
exports.VT_FLOW_ONBOARDING_REQUEST_TYPE = `${exports.VT_FLOW_PROTOCOL_URI}/onboarding-request`;
|
|
7
7
|
exports.VT_FLOW_ISSUANCE_REQUEST_TYPE = `${exports.VT_FLOW_PROTOCOL_URI}/issuance-request`;
|
|
8
8
|
exports.VT_FLOW_OOB_LINK_TYPE = `${exports.VT_FLOW_PROTOCOL_URI}/oob-link`;
|
|
9
9
|
exports.VT_FLOW_VALIDATING_TYPE = `${exports.VT_FLOW_PROTOCOL_URI}/validating`;
|
|
10
10
|
exports.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE = `${exports.VT_FLOW_PROTOCOL_URI}/credential-state-change`;
|
|
11
|
+
/** The adopted problem-report of the spec, which is not under the vt-flow protocol URI. */
|
|
12
|
+
exports.VT_FLOW_PROBLEM_REPORT_TYPE = 'https://didcomm.org/report-problem/1.0/problem-report';
|
|
11
13
|
//# sourceMappingURL=VtFlowProtocol.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VtFlowProtocol.js","sourceRoot":"","sources":["../../src/messages/VtFlowProtocol.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"VtFlowProtocol.js","sourceRoot":"","sources":["../../src/messages/VtFlowProtocol.ts"],"names":[],"mappings":";;;AAAA,iGAAiG;AACpF,QAAA,oBAAoB,GAAG,iCAA0C,CAAA;AAEjE,QAAA,+BAA+B,GAAG,GAAG,4BAAoB,qBAA8B,CAAA;AACvF,QAAA,6BAA6B,GAAG,GAAG,4BAAoB,mBAA4B,CAAA;AACnF,QAAA,qBAAqB,GAAG,GAAG,4BAAoB,WAAoB,CAAA;AACnE,QAAA,uBAAuB,GAAG,GAAG,4BAAoB,aAAsB,CAAA;AACvE,QAAA,oCAAoC,GAAG,GAAG,4BAAoB,0BAAmC,CAAA;AAE9G,2FAA2F;AAC9E,QAAA,2BAA2B,GAAG,uDAAgE,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { VT_FLOW_PROTOCOL_URI, VT_FLOW_ONBOARDING_REQUEST_TYPE, VT_FLOW_ISSUANCE_REQUEST_TYPE, VT_FLOW_OOB_LINK_TYPE, VT_FLOW_VALIDATING_TYPE, VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE, } from './VtFlowProtocol';
|
|
1
|
+
export { VT_FLOW_PROTOCOL_URI, VT_FLOW_ONBOARDING_REQUEST_TYPE, VT_FLOW_ISSUANCE_REQUEST_TYPE, VT_FLOW_OOB_LINK_TYPE, VT_FLOW_VALIDATING_TYPE, VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE, VT_FLOW_PROBLEM_REPORT_TYPE, } from './VtFlowProtocol';
|
|
2
2
|
export { OnboardingRequestMessage } from './OnboardingRequestMessage';
|
|
3
3
|
export type { OnboardingRequestMessageOptions } from './OnboardingRequestMessage';
|
|
4
4
|
export { IssuanceRequestMessage } from './IssuanceRequestMessage';
|
|
@@ -9,3 +9,4 @@ export { ValidatingMessage } from './ValidatingMessage';
|
|
|
9
9
|
export type { ValidatingMessageOptions } from './ValidatingMessage';
|
|
10
10
|
export { CredentialStateChangeMessage, VtCredentialState } from './CredentialStateChangeMessage';
|
|
11
11
|
export type { CredentialStateChangeMessageOptions } from './CredentialStateChangeMessage';
|
|
12
|
+
export { VtFlowProblemReportMessage } from './VtFlowProblemReportMessage';
|
package/build/messages/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VtCredentialState = exports.CredentialStateChangeMessage = exports.ValidatingMessage = exports.OobLinkMessage = exports.IssuanceRequestMessage = exports.OnboardingRequestMessage = exports.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE = exports.VT_FLOW_VALIDATING_TYPE = exports.VT_FLOW_OOB_LINK_TYPE = exports.VT_FLOW_ISSUANCE_REQUEST_TYPE = exports.VT_FLOW_ONBOARDING_REQUEST_TYPE = exports.VT_FLOW_PROTOCOL_URI = void 0;
|
|
3
|
+
exports.VtFlowProblemReportMessage = exports.VtCredentialState = exports.CredentialStateChangeMessage = exports.ValidatingMessage = exports.OobLinkMessage = exports.IssuanceRequestMessage = exports.OnboardingRequestMessage = exports.VT_FLOW_PROBLEM_REPORT_TYPE = exports.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE = exports.VT_FLOW_VALIDATING_TYPE = exports.VT_FLOW_OOB_LINK_TYPE = exports.VT_FLOW_ISSUANCE_REQUEST_TYPE = exports.VT_FLOW_ONBOARDING_REQUEST_TYPE = exports.VT_FLOW_PROTOCOL_URI = void 0;
|
|
4
4
|
var VtFlowProtocol_1 = require("./VtFlowProtocol");
|
|
5
5
|
Object.defineProperty(exports, "VT_FLOW_PROTOCOL_URI", { enumerable: true, get: function () { return VtFlowProtocol_1.VT_FLOW_PROTOCOL_URI; } });
|
|
6
6
|
Object.defineProperty(exports, "VT_FLOW_ONBOARDING_REQUEST_TYPE", { enumerable: true, get: function () { return VtFlowProtocol_1.VT_FLOW_ONBOARDING_REQUEST_TYPE; } });
|
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "VT_FLOW_ISSUANCE_REQUEST_TYPE", { enumerable: tr
|
|
|
8
8
|
Object.defineProperty(exports, "VT_FLOW_OOB_LINK_TYPE", { enumerable: true, get: function () { return VtFlowProtocol_1.VT_FLOW_OOB_LINK_TYPE; } });
|
|
9
9
|
Object.defineProperty(exports, "VT_FLOW_VALIDATING_TYPE", { enumerable: true, get: function () { return VtFlowProtocol_1.VT_FLOW_VALIDATING_TYPE; } });
|
|
10
10
|
Object.defineProperty(exports, "VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE", { enumerable: true, get: function () { return VtFlowProtocol_1.VT_FLOW_CREDENTIAL_STATE_CHANGE_TYPE; } });
|
|
11
|
+
Object.defineProperty(exports, "VT_FLOW_PROBLEM_REPORT_TYPE", { enumerable: true, get: function () { return VtFlowProtocol_1.VT_FLOW_PROBLEM_REPORT_TYPE; } });
|
|
11
12
|
var OnboardingRequestMessage_1 = require("./OnboardingRequestMessage");
|
|
12
13
|
Object.defineProperty(exports, "OnboardingRequestMessage", { enumerable: true, get: function () { return OnboardingRequestMessage_1.OnboardingRequestMessage; } });
|
|
13
14
|
var IssuanceRequestMessage_1 = require("./IssuanceRequestMessage");
|
|
@@ -19,4 +20,6 @@ Object.defineProperty(exports, "ValidatingMessage", { enumerable: true, get: fun
|
|
|
19
20
|
var CredentialStateChangeMessage_1 = require("./CredentialStateChangeMessage");
|
|
20
21
|
Object.defineProperty(exports, "CredentialStateChangeMessage", { enumerable: true, get: function () { return CredentialStateChangeMessage_1.CredentialStateChangeMessage; } });
|
|
21
22
|
Object.defineProperty(exports, "VtCredentialState", { enumerable: true, get: function () { return CredentialStateChangeMessage_1.VtCredentialState; } });
|
|
23
|
+
var VtFlowProblemReportMessage_1 = require("./VtFlowProblemReportMessage");
|
|
24
|
+
Object.defineProperty(exports, "VtFlowProblemReportMessage", { enumerable: true, get: function () { return VtFlowProblemReportMessage_1.VtFlowProblemReportMessage; } });
|
|
22
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":";;;AAAA,mDAQyB;AAPvB,sHAAA,oBAAoB,OAAA;AACpB,iIAAA,+BAA+B,OAAA;AAC/B,+HAAA,6BAA6B,OAAA;AAC7B,uHAAA,qBAAqB,OAAA;AACrB,yHAAA,uBAAuB,OAAA;AACvB,sIAAA,oCAAoC,OAAA;AACpC,6HAAA,2BAA2B,OAAA;AAG7B,uEAAqE;AAA5D,oIAAA,wBAAwB,OAAA;AAGjC,mEAAiE;AAAxD,gIAAA,sBAAsB,OAAA;AAG/B,mDAAiD;AAAxC,gHAAA,cAAc,OAAA;AAGvB,yDAAuD;AAA9C,sHAAA,iBAAiB,OAAA;AAG1B,+EAAgG;AAAvF,4IAAA,4BAA4B,OAAA;AAAE,iIAAA,iBAAiB,OAAA;AAGxD,2EAAyE;AAAhE,wIAAA,0BAA0B,OAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { RecordTags, TagsBase } from '@credo-ts/core';
|
|
2
2
|
import type { DidCommAttachment } from '@credo-ts/didcomm';
|
|
3
3
|
import { BaseRecord } from '@credo-ts/core';
|
|
4
|
-
import { VtFlowRole, VtFlowState, VtFlowVariant } from '../types';
|
|
5
|
-
/** Indexed storage tags queryable through `VtFlowRepository`;
|
|
4
|
+
import { VtFlowIssuance, VtFlowMessage, VtFlowOobLink, VtFlowRole, VtFlowState, VtFlowValidation, VtFlowVariant } from '../types';
|
|
5
|
+
/** Indexed storage tags queryable through `VtFlowRepository`; the participant ids are OnboardingProcess-only. */
|
|
6
6
|
export type DefaultVtFlowTags = {
|
|
7
7
|
threadId: string;
|
|
8
8
|
participantSessionId: string;
|
|
@@ -10,7 +10,8 @@ export type DefaultVtFlowTags = {
|
|
|
10
10
|
role: VtFlowRole;
|
|
11
11
|
flowState: VtFlowState;
|
|
12
12
|
flowVariant: VtFlowVariant;
|
|
13
|
-
|
|
13
|
+
applicantParticipantId?: string;
|
|
14
|
+
validatorParticipantId?: string;
|
|
14
15
|
schemaId?: string;
|
|
15
16
|
credentialExchangeRecordId?: string;
|
|
16
17
|
subprotocolThid?: string;
|
|
@@ -29,12 +30,18 @@ export interface VtFlowStorageProps {
|
|
|
29
30
|
agentParticipantId: string;
|
|
30
31
|
walletAgentParticipantId: string;
|
|
31
32
|
issuerParticipantId?: number;
|
|
32
|
-
|
|
33
|
+
applicantParticipantId?: string;
|
|
34
|
+
applicantParticipantRole?: number;
|
|
35
|
+
validatorParticipantId?: string;
|
|
33
36
|
schemaId?: string;
|
|
34
37
|
claims?: Record<string, unknown>;
|
|
35
38
|
credentialExchangeRecordId?: string;
|
|
36
39
|
subprotocolThid?: string;
|
|
37
|
-
|
|
40
|
+
ecsSchemaKey?: string;
|
|
41
|
+
oobLink?: VtFlowOobLink;
|
|
42
|
+
messages?: VtFlowMessage[];
|
|
43
|
+
validation?: VtFlowValidation;
|
|
44
|
+
issuance?: VtFlowIssuance;
|
|
38
45
|
proofsAttach?: DidCommAttachment[];
|
|
39
46
|
credentialDigest?: string;
|
|
40
47
|
errorMessage?: string;
|
|
@@ -53,12 +60,19 @@ export declare class VtFlowRecord extends BaseRecord<DefaultVtFlowTags, CustomVt
|
|
|
53
60
|
agentParticipantId: string;
|
|
54
61
|
walletAgentParticipantId: string;
|
|
55
62
|
issuerParticipantId?: number;
|
|
56
|
-
|
|
63
|
+
applicantParticipantId?: string;
|
|
64
|
+
applicantParticipantRole?: number;
|
|
65
|
+
validatorParticipantId?: string;
|
|
57
66
|
schemaId?: string;
|
|
58
67
|
claims?: Record<string, unknown>;
|
|
59
68
|
credentialExchangeRecordId?: string;
|
|
60
69
|
subprotocolThid?: string;
|
|
61
|
-
|
|
70
|
+
/** ECS key of the credential schema, resolved while verifying the offer so publication needs no indexer */
|
|
71
|
+
ecsSchemaKey?: string;
|
|
72
|
+
oobLink?: VtFlowOobLink;
|
|
73
|
+
messages?: VtFlowMessage[];
|
|
74
|
+
validation?: VtFlowValidation;
|
|
75
|
+
issuance?: VtFlowIssuance;
|
|
62
76
|
proofsAttach?: DidCommAttachment[];
|
|
63
77
|
credentialDigest?: string;
|
|
64
78
|
errorMessage?: string;
|
|
@@ -21,19 +21,25 @@ class VtFlowRecord extends core_1.BaseRecord {
|
|
|
21
21
|
this.agentParticipantId = props.agentParticipantId;
|
|
22
22
|
this.walletAgentParticipantId = props.walletAgentParticipantId;
|
|
23
23
|
this.issuerParticipantId = props.issuerParticipantId;
|
|
24
|
-
this.
|
|
24
|
+
this.applicantParticipantId = props.applicantParticipantId;
|
|
25
|
+
this.applicantParticipantRole = props.applicantParticipantRole;
|
|
26
|
+
this.validatorParticipantId = props.validatorParticipantId;
|
|
25
27
|
this.schemaId = props.schemaId;
|
|
26
28
|
this.claims = props.claims;
|
|
27
29
|
this.credentialExchangeRecordId = props.credentialExchangeRecordId;
|
|
28
30
|
this.subprotocolThid = props.subprotocolThid;
|
|
29
|
-
this.
|
|
31
|
+
this.ecsSchemaKey = props.ecsSchemaKey;
|
|
32
|
+
this.oobLink = props.oobLink;
|
|
33
|
+
this.messages = props.messages;
|
|
34
|
+
this.validation = props.validation;
|
|
35
|
+
this.issuance = props.issuance;
|
|
30
36
|
this.proofsAttach = props.proofsAttach;
|
|
31
37
|
this.credentialDigest = props.credentialDigest;
|
|
32
38
|
this.errorMessage = props.errorMessage;
|
|
33
39
|
}
|
|
34
40
|
}
|
|
35
41
|
getTags() {
|
|
36
|
-
return Object.assign(Object.assign({}, this._tags), { threadId: this.threadId, participantSessionId: this.participantSessionId, connectionId: this.connectionId, role: this.role, flowState: this.state, flowVariant: this.variant,
|
|
42
|
+
return Object.assign(Object.assign({}, this._tags), { threadId: this.threadId, participantSessionId: this.participantSessionId, connectionId: this.connectionId, role: this.role, flowState: this.state, flowVariant: this.variant, applicantParticipantId: this.applicantParticipantId, validatorParticipantId: this.validatorParticipantId, schemaId: this.schemaId, credentialExchangeRecordId: this.credentialExchangeRecordId, subprotocolThid: this.subprotocolThid });
|
|
37
43
|
}
|
|
38
44
|
assertRole(expectedRole) {
|
|
39
45
|
if (this.role !== expectedRole) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VtFlowRecord.js","sourceRoot":"","sources":["../../src/repository/VtFlowRecord.ts"],"names":[],"mappings":";;;AAGA,yCAA8D;
|
|
1
|
+
{"version":3,"file":"VtFlowRecord.js","sourceRoot":"","sources":["../../src/repository/VtFlowRecord.ts"],"names":[],"mappings":";;;AAGA,yCAA8D;AAoE9D,uGAAuG;AACvG,MAAa,YAAa,SAAQ,iBAA+C;IAoC/E,YAAmB,KAAyB;;QAC1C,KAAK,EAAE,CAAA;QAnCO,SAAI,GAAG,YAAY,CAAC,IAAI,CAAA;QAqCtC,IAAI,KAAK,EAAE,CAAC;YACV,IAAI,CAAC,EAAE,GAAG,MAAA,KAAK,CAAC,EAAE,mCAAI,YAAK,CAAC,IAAI,EAAE,CAAA;YAClC,IAAI,CAAC,SAAS,GAAG,MAAA,KAAK,CAAC,SAAS,mCAAI,IAAI,IAAI,EAAE,CAAA;YAC9C,IAAI,CAAC,KAAK,GAAG,MAAA,KAAK,CAAC,IAAI,mCAAI,EAAE,CAAA;YAE7B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAA;YAC9B,IAAI,CAAC,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAA;YACtD,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC,YAAY,CAAA;YACtC,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,CAAA;YACtB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAA;YACxB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAA;YAE5B,IAAI,CAAC,kBAAkB,GAAG,KAAK,CAAC,kBAAkB,CAAA;YAClD,IAAI,CAAC,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAAA;YAC9D,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAA;YAEpD,IAAI,CAAC,sBAAsB,GAAG,KAAK,C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