@verana-labs/vs-agent-model 1.11.0 → 1.12.0-dev.1
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/events/ConnectionStateUpdated.d.ts +2 -2
- package/build/events/ConnectionStateUpdated.js +1 -1
- package/build/events/ConnectionStateUpdated.js.map +1 -1
- package/build/events/EventType.d.ts +3 -2
- package/build/events/EventType.js +2 -1
- package/build/events/EventType.js.map +1 -1
- package/build/events/PresentationStateUpdated.d.ts +32 -0
- package/build/events/PresentationStateUpdated.js +78 -0
- package/build/events/PresentationStateUpdated.js.map +1 -0
- package/build/events/index.d.ts +1 -0
- package/build/events/index.js +1 -0
- package/build/events/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -24,8 +24,8 @@ export interface ConnectionStateUpdatedOptions {
|
|
|
24
24
|
}
|
|
25
25
|
export declare class ConnectionStateUpdated extends Event {
|
|
26
26
|
constructor(options: ConnectionStateUpdatedOptions);
|
|
27
|
-
readonly type = EventType.
|
|
28
|
-
static readonly type = EventType.
|
|
27
|
+
readonly type = EventType.ConnectionStateUpdated;
|
|
28
|
+
static readonly type = EventType.ConnectionStateUpdated;
|
|
29
29
|
connectionId: string;
|
|
30
30
|
invitationId?: string;
|
|
31
31
|
state: ExtendedDidExchangeState;
|
|
@@ -31,7 +31,7 @@ class ConnectionStateUpdated extends Event_1.Event {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.ConnectionStateUpdated = ConnectionStateUpdated;
|
|
34
|
-
ConnectionStateUpdated.type = EventType_1.EventType.
|
|
34
|
+
ConnectionStateUpdated.type = EventType_1.EventType.ConnectionStateUpdated;
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, class_transformer_1.Expose)(),
|
|
37
37
|
(0, class_validator_1.IsString)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionStateUpdated.js","sourceRoot":"","sources":["../../src/events/ConnectionStateUpdated.ts"],"names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,CAAA;YACxC,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;YAC1B,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,IAAI,IAAI,EAAE,CAAA;YAChD,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,CAAA;YACxC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;QAClC,CAAC;IACH,CAAC;;AAXH,wDAgCC;AAlBwB,2BAAI,GAAG,qBAAS,CAAC,sBAAsB,AAAnC,CAAmC;AAIvD;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;4DACiB;AAIrB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;4DACiB;AAIrB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;qDAC4B;AAKhC;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDAC6B"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare enum EventType {
|
|
2
|
-
|
|
2
|
+
ConnectionStateUpdated = "connection-state-updated",
|
|
3
3
|
MessageStateUpdated = "message-state-updated",
|
|
4
|
-
MessageReceived = "message-received"
|
|
4
|
+
MessageReceived = "message-received",
|
|
5
|
+
PresentationStateUpdated = "presentation-state-updated"
|
|
5
6
|
}
|
|
@@ -3,8 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EventType = void 0;
|
|
4
4
|
var EventType;
|
|
5
5
|
(function (EventType) {
|
|
6
|
-
EventType["
|
|
6
|
+
EventType["ConnectionStateUpdated"] = "connection-state-updated";
|
|
7
7
|
EventType["MessageStateUpdated"] = "message-state-updated";
|
|
8
8
|
EventType["MessageReceived"] = "message-received";
|
|
9
|
+
EventType["PresentationStateUpdated"] = "presentation-state-updated";
|
|
9
10
|
})(EventType || (exports.EventType = EventType = {}));
|
|
10
11
|
//# sourceMappingURL=EventType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../src/events/EventType.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../src/events/EventType.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,gEAAmD,CAAA;IACnD,0DAA6C,CAAA;IAC7C,iDAAoC,CAAA;IACpC,oEAAuD,CAAA;AACzD,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Claim } from '../messages/CredentialIssuanceMessage';
|
|
2
|
+
import { Event } from './Event';
|
|
3
|
+
import { EventType } from './EventType';
|
|
4
|
+
export declare enum PresentationState {
|
|
5
|
+
OK = "ok",
|
|
6
|
+
CONNECTED = "connected",
|
|
7
|
+
SCANNED = "scanned",
|
|
8
|
+
REFUSED = "refused",
|
|
9
|
+
NO_COMPATIBLE_CREDENTIALS = "no-compatible-credentials",
|
|
10
|
+
VERIFICATION_ERROR = "verification-error",
|
|
11
|
+
UNSPECIFIED_ERROR = "unspecified-error"
|
|
12
|
+
}
|
|
13
|
+
export interface PresentationStateUpdatedOptions {
|
|
14
|
+
proofExchangeId: string;
|
|
15
|
+
state: PresentationState;
|
|
16
|
+
callbackUrl: string;
|
|
17
|
+
ref?: string;
|
|
18
|
+
claims?: Claim[];
|
|
19
|
+
verified?: boolean;
|
|
20
|
+
timestamp?: Date;
|
|
21
|
+
}
|
|
22
|
+
export declare class PresentationStateUpdated extends Event {
|
|
23
|
+
constructor(options: PresentationStateUpdatedOptions);
|
|
24
|
+
readonly type = EventType.PresentationStateUpdated;
|
|
25
|
+
static readonly type = EventType.PresentationStateUpdated;
|
|
26
|
+
proofExchangeId: string;
|
|
27
|
+
state: PresentationState;
|
|
28
|
+
callbackUrl: string;
|
|
29
|
+
ref?: string;
|
|
30
|
+
claims?: Claim[];
|
|
31
|
+
verified?: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.PresentationStateUpdated = exports.PresentationState = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const Event_1 = require("./Event");
|
|
16
|
+
const EventType_1 = require("./EventType");
|
|
17
|
+
var PresentationState;
|
|
18
|
+
(function (PresentationState) {
|
|
19
|
+
PresentationState["OK"] = "ok";
|
|
20
|
+
PresentationState["CONNECTED"] = "connected";
|
|
21
|
+
PresentationState["SCANNED"] = "scanned";
|
|
22
|
+
PresentationState["REFUSED"] = "refused";
|
|
23
|
+
PresentationState["NO_COMPATIBLE_CREDENTIALS"] = "no-compatible-credentials";
|
|
24
|
+
PresentationState["VERIFICATION_ERROR"] = "verification-error";
|
|
25
|
+
PresentationState["UNSPECIFIED_ERROR"] = "unspecified-error";
|
|
26
|
+
})(PresentationState || (exports.PresentationState = PresentationState = {}));
|
|
27
|
+
class PresentationStateUpdated extends Event_1.Event {
|
|
28
|
+
constructor(options) {
|
|
29
|
+
var _a;
|
|
30
|
+
super();
|
|
31
|
+
this.type = PresentationStateUpdated.type;
|
|
32
|
+
if (options) {
|
|
33
|
+
this.proofExchangeId = options.proofExchangeId;
|
|
34
|
+
this.state = options.state;
|
|
35
|
+
this.callbackUrl = options.callbackUrl;
|
|
36
|
+
this.ref = options.ref;
|
|
37
|
+
this.claims = options.claims;
|
|
38
|
+
this.verified = options.verified;
|
|
39
|
+
this.timestamp = (_a = options.timestamp) !== null && _a !== void 0 ? _a : new Date();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.PresentationStateUpdated = PresentationStateUpdated;
|
|
44
|
+
PresentationStateUpdated.type = EventType_1.EventType.PresentationStateUpdated;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], PresentationStateUpdated.prototype, "proofExchangeId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], PresentationStateUpdated.prototype, "state", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
(0, class_validator_1.IsString)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], PresentationStateUpdated.prototype, "callbackUrl", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], PresentationStateUpdated.prototype, "ref", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsArray)(),
|
|
70
|
+
__metadata("design:type", Array)
|
|
71
|
+
], PresentationStateUpdated.prototype, "claims", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, class_validator_1.IsBoolean)(),
|
|
76
|
+
__metadata("design:type", Boolean)
|
|
77
|
+
], PresentationStateUpdated.prototype, "verified", void 0);
|
|
78
|
+
//# sourceMappingURL=PresentationStateUpdated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PresentationStateUpdated.js","sourceRoot":"","sources":["../../src/events/PresentationStateUpdated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0C;AAC1C,qDAA0E;AAI1E,mCAA+B;AAC/B,2CAAuC;AAEvC,IAAY,iBAQX;AARD,WAAY,iBAAiB;IAC3B,8BAAS,CAAA;IACT,4CAAuB,CAAA;IACvB,wCAAmB,CAAA;IACnB,wCAAmB,CAAA;IACnB,4EAAuD,CAAA;IACvD,8DAAyC,CAAA;IACzC,4DAAuC,CAAA;AACzC,CAAC,EARW,iBAAiB,iCAAjB,iBAAiB,QAQ5B;AAYD,MAAa,wBAAyB,SAAQ,aAAK;IACjD,YAAmB,OAAwC;;QACzD,KAAK,EAAE,CAAA;QAaO,SAAI,GAAG,wBAAwB,CAAC,IAAI,CAAA;QAXlD,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,CAAA;YAC9C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;YAC1B,IAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;YACtC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;YACtB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;YAC5B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;YAChC,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,IAAI,IAAI,EAAE,CAAA;QAClD,CAAC;IACH,CAAC;;AAbH,4DA4CC;AA5BwB,6BAAI,GAAG,qBAAS,CAAC,wBAAwB,AAArC,CAAqC;AAIzD;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;iEACoB;AAIxB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;uDACqB;AAIzB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;6DACgB;AAKpB;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAKZ;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,GAAE;;wDACa;AAKhB;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;0DACa"}
|
package/build/events/index.d.ts
CHANGED
package/build/events/index.js
CHANGED
|
@@ -19,4 +19,5 @@ __exportStar(require("./Event"), exports);
|
|
|
19
19
|
__exportStar(require("./EventType"), exports);
|
|
20
20
|
__exportStar(require("./MessageReceived"), exports);
|
|
21
21
|
__exportStar(require("./MessageStateUpdated"), exports);
|
|
22
|
+
__exportStar(require("./PresentationStateUpdated"), exports);
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,0CAAuB;AACvB,8CAA2B;AAC3B,oDAAiC;AACjC,wDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,0CAAuB;AACvB,8CAA2B;AAC3B,oDAAiC;AACjC,wDAAqC;AACrC,6DAA0C"}
|