@verana-labs/vs-agent-model 2.0.0-dev.43 → 2.0.0-dev.45
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/EventType.d.ts +7 -6
- package/build/events/EventType.js +7 -6
- package/build/events/EventType.js.map +1 -1
- package/build/events/VtFlowStateUpdated.d.ts +1 -27
- package/build/events/VtFlowStateUpdated.js +2 -88
- package/build/events/VtFlowStateUpdated.js.map +1 -1
- package/build/events/index.d.ts +0 -1
- package/build/events/index.js +0 -1
- package/build/events/index.js.map +1 -1
- package/package.json +1 -1
- package/build/events/MessageStateUpdated.d.ts +0 -17
- package/build/events/MessageStateUpdated.js +0 -48
- package/build/events/MessageStateUpdated.js.map +0 -1
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export declare enum EventType {
|
|
2
|
-
ConnectionStateUpdated = "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
PresentationStateUpdated = "
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
ConnectionStateUpdated = "didcomm.connections.state-updated",
|
|
3
|
+
MessageReceived = "didcomm.basic-messages.message-received",
|
|
4
|
+
ReceiptsMessageReceived = "didcomm.receipts.message-receipts-received",
|
|
5
|
+
PresentationStateUpdated = "didcomm.presentations.state-updated",
|
|
6
|
+
CredentialExchangeStateUpdated = "didcomm.credential-exchanges.state-updated",
|
|
7
|
+
VtFlowStateUpdated = "vt.flows.state-updated",
|
|
8
|
+
IndexerNotification = "vpr.notification"
|
|
8
9
|
}
|
|
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.EventType = void 0;
|
|
4
4
|
var EventType;
|
|
5
5
|
(function (EventType) {
|
|
6
|
-
EventType["ConnectionStateUpdated"] = "
|
|
7
|
-
EventType["
|
|
8
|
-
EventType["
|
|
9
|
-
EventType["PresentationStateUpdated"] = "
|
|
10
|
-
EventType["
|
|
11
|
-
EventType["
|
|
6
|
+
EventType["ConnectionStateUpdated"] = "didcomm.connections.state-updated";
|
|
7
|
+
EventType["MessageReceived"] = "didcomm.basic-messages.message-received";
|
|
8
|
+
EventType["ReceiptsMessageReceived"] = "didcomm.receipts.message-receipts-received";
|
|
9
|
+
EventType["PresentationStateUpdated"] = "didcomm.presentations.state-updated";
|
|
10
|
+
EventType["CredentialExchangeStateUpdated"] = "didcomm.credential-exchanges.state-updated";
|
|
11
|
+
EventType["VtFlowStateUpdated"] = "vt.flows.state-updated";
|
|
12
|
+
EventType["IndexerNotification"] = "vpr.notification";
|
|
12
13
|
})(EventType || (exports.EventType = EventType = {}));
|
|
13
14
|
//# 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,SAQX;AARD,WAAY,SAAS;IACnB,yEAA4D,CAAA;IAC5D,wEAA2D,CAAA;IAC3D,mFAAsE,CAAA;IACtE,6EAAgE,CAAA;IAChE,0FAA6E,CAAA;IAC7E,0DAA6C,CAAA;IAC7C,qDAAwC,CAAA;AAC1C,CAAC,EARW,SAAS,yBAAT,SAAS,QAQpB"}
|
|
@@ -2,21 +2,8 @@ import { Event } from './Event';
|
|
|
2
2
|
import { EventType } from './EventType';
|
|
3
3
|
export interface VtFlowStateUpdatedOptions {
|
|
4
4
|
vtFlowRecordId: string;
|
|
5
|
-
threadId: string;
|
|
6
|
-
participantSessionId: string;
|
|
7
|
-
connectionId: string;
|
|
8
|
-
role: string;
|
|
9
|
-
variant: string;
|
|
10
5
|
state: string;
|
|
11
6
|
previousState?: string | null;
|
|
12
|
-
participantId?: string;
|
|
13
|
-
schemaId?: string;
|
|
14
|
-
claims?: Record<string, unknown>;
|
|
15
|
-
credentialExchangeRecordId?: string;
|
|
16
|
-
errorMessage?: string;
|
|
17
|
-
subprotocolThid?: string;
|
|
18
|
-
agentParticipantId?: string;
|
|
19
|
-
walletAgentParticipantId?: string;
|
|
20
7
|
timestamp?: Date;
|
|
21
8
|
}
|
|
22
9
|
export declare class VtFlowStateUpdated extends Event {
|
|
@@ -24,19 +11,6 @@ export declare class VtFlowStateUpdated extends Event {
|
|
|
24
11
|
readonly type = EventType.VtFlowStateUpdated;
|
|
25
12
|
static readonly type = EventType.VtFlowStateUpdated;
|
|
26
13
|
vtFlowRecordId: string;
|
|
27
|
-
threadId: string;
|
|
28
|
-
participantSessionId: string;
|
|
29
|
-
connectionId: string;
|
|
30
|
-
role: string;
|
|
31
|
-
variant: string;
|
|
32
14
|
state: string;
|
|
33
|
-
previousState
|
|
34
|
-
participantId?: string;
|
|
35
|
-
schemaId?: string;
|
|
36
|
-
claims?: Record<string, unknown>;
|
|
37
|
-
credentialExchangeRecordId?: string;
|
|
38
|
-
errorMessage?: string;
|
|
39
|
-
subprotocolThid?: string;
|
|
40
|
-
agentParticipantId?: string;
|
|
41
|
-
walletAgentParticipantId?: string;
|
|
15
|
+
previousState: string | null;
|
|
42
16
|
}
|
|
@@ -21,21 +21,8 @@ class VtFlowStateUpdated extends Event_1.Event {
|
|
|
21
21
|
this.type = VtFlowStateUpdated.type;
|
|
22
22
|
if (options) {
|
|
23
23
|
this.vtFlowRecordId = options.vtFlowRecordId;
|
|
24
|
-
this.threadId = options.threadId;
|
|
25
|
-
this.participantSessionId = options.participantSessionId;
|
|
26
|
-
this.connectionId = options.connectionId;
|
|
27
|
-
this.role = options.role;
|
|
28
|
-
this.variant = options.variant;
|
|
29
24
|
this.state = options.state;
|
|
30
|
-
this.previousState = (_a = options.previousState) !== null && _a !== void 0 ? _a :
|
|
31
|
-
this.participantId = options.participantId;
|
|
32
|
-
this.schemaId = options.schemaId;
|
|
33
|
-
this.claims = options.claims;
|
|
34
|
-
this.credentialExchangeRecordId = options.credentialExchangeRecordId;
|
|
35
|
-
this.errorMessage = options.errorMessage;
|
|
36
|
-
this.subprotocolThid = options.subprotocolThid;
|
|
37
|
-
this.agentParticipantId = options.agentParticipantId;
|
|
38
|
-
this.walletAgentParticipantId = options.walletAgentParticipantId;
|
|
25
|
+
this.previousState = (_a = options.previousState) !== null && _a !== void 0 ? _a : null;
|
|
39
26
|
this.timestamp = (_b = options.timestamp) !== null && _b !== void 0 ? _b : new Date();
|
|
40
27
|
}
|
|
41
28
|
}
|
|
@@ -47,31 +34,6 @@ __decorate([
|
|
|
47
34
|
(0, class_validator_1.IsString)(),
|
|
48
35
|
__metadata("design:type", String)
|
|
49
36
|
], VtFlowStateUpdated.prototype, "vtFlowRecordId", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_transformer_1.Expose)(),
|
|
52
|
-
(0, class_validator_1.IsString)(),
|
|
53
|
-
__metadata("design:type", String)
|
|
54
|
-
], VtFlowStateUpdated.prototype, "threadId", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_transformer_1.Expose)(),
|
|
57
|
-
(0, class_validator_1.IsString)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], VtFlowStateUpdated.prototype, "participantSessionId", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_transformer_1.Expose)(),
|
|
62
|
-
(0, class_validator_1.IsString)(),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], VtFlowStateUpdated.prototype, "connectionId", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_transformer_1.Expose)(),
|
|
67
|
-
(0, class_validator_1.IsString)(),
|
|
68
|
-
__metadata("design:type", String)
|
|
69
|
-
], VtFlowStateUpdated.prototype, "role", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, class_transformer_1.Expose)(),
|
|
72
|
-
(0, class_validator_1.IsString)(),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], VtFlowStateUpdated.prototype, "variant", void 0);
|
|
75
37
|
__decorate([
|
|
76
38
|
(0, class_transformer_1.Expose)(),
|
|
77
39
|
(0, class_validator_1.IsString)(),
|
|
@@ -81,54 +43,6 @@ __decorate([
|
|
|
81
43
|
(0, class_transformer_1.Expose)(),
|
|
82
44
|
(0, class_validator_1.IsOptional)(),
|
|
83
45
|
(0, class_validator_1.IsString)(),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], VtFlowStateUpdated.prototype, "previousState", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, class_transformer_1.Expose)(),
|
|
88
|
-
(0, class_validator_1.IsOptional)(),
|
|
89
|
-
(0, class_validator_1.IsString)(),
|
|
90
|
-
__metadata("design:type", String)
|
|
91
|
-
], VtFlowStateUpdated.prototype, "participantId", void 0);
|
|
92
|
-
__decorate([
|
|
93
|
-
(0, class_transformer_1.Expose)(),
|
|
94
|
-
(0, class_validator_1.IsOptional)(),
|
|
95
|
-
(0, class_validator_1.IsString)(),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], VtFlowStateUpdated.prototype, "schemaId", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, class_transformer_1.Expose)(),
|
|
100
|
-
(0, class_validator_1.IsOptional)(),
|
|
101
|
-
(0, class_validator_1.IsObject)(),
|
|
102
46
|
__metadata("design:type", Object)
|
|
103
|
-
], VtFlowStateUpdated.prototype, "
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, class_transformer_1.Expose)(),
|
|
106
|
-
(0, class_validator_1.IsOptional)(),
|
|
107
|
-
(0, class_validator_1.IsString)(),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], VtFlowStateUpdated.prototype, "credentialExchangeRecordId", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, class_transformer_1.Expose)(),
|
|
112
|
-
(0, class_validator_1.IsOptional)(),
|
|
113
|
-
(0, class_validator_1.IsString)(),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], VtFlowStateUpdated.prototype, "errorMessage", void 0);
|
|
116
|
-
__decorate([
|
|
117
|
-
(0, class_transformer_1.Expose)(),
|
|
118
|
-
(0, class_validator_1.IsOptional)(),
|
|
119
|
-
(0, class_validator_1.IsString)(),
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], VtFlowStateUpdated.prototype, "subprotocolThid", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, class_transformer_1.Expose)(),
|
|
124
|
-
(0, class_validator_1.IsOptional)(),
|
|
125
|
-
(0, class_validator_1.IsString)(),
|
|
126
|
-
__metadata("design:type", String)
|
|
127
|
-
], VtFlowStateUpdated.prototype, "agentParticipantId", void 0);
|
|
128
|
-
__decorate([
|
|
129
|
-
(0, class_transformer_1.Expose)(),
|
|
130
|
-
(0, class_validator_1.IsOptional)(),
|
|
131
|
-
(0, class_validator_1.IsString)(),
|
|
132
|
-
__metadata("design:type", String)
|
|
133
|
-
], VtFlowStateUpdated.prototype, "walletAgentParticipantId", void 0);
|
|
47
|
+
], VtFlowStateUpdated.prototype, "previousState", void 0);
|
|
134
48
|
//# sourceMappingURL=VtFlowStateUpdated.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VtFlowStateUpdated.js","sourceRoot":"","sources":["../../src/events/VtFlowStateUpdated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"VtFlowStateUpdated.js","sourceRoot":"","sources":["../../src/events/VtFlowStateUpdated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0C;AAC1C,qDAAsD;AAEtD,mCAA+B;AAC/B,2CAAuC;AASvC,MAAa,kBAAmB,SAAQ,aAAK;IAC3C,YAAmB,OAAkC;;QACnD,KAAK,EAAE,CAAA;QASO,SAAI,GAAG,kBAAkB,CAAC,IAAI,CAAA;QAR5C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAA;YAC5C,IAAI,CAAC,KAAK,GAAG,OAAO,CAAC,KAAK,CAAA;YAC1B,IAAI,CAAC,aAAa,GAAG,MAAA,OAAO,CAAC,aAAa,mCAAI,IAAI,CAAA;YAClD,IAAI,CAAC,SAAS,GAAG,MAAA,OAAO,CAAC,SAAS,mCAAI,IAAI,IAAI,EAAE,CAAA;QAClD,CAAC;IACH,CAAC;;AATH,gDA0BC;AAdwB,uBAAI,GAAG,qBAAS,CAAC,kBAAkB,AAA/B,CAA+B;AAInD;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;0DACmB;AAIvB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;iDACU;AAKd;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACyB"}
|
package/build/events/index.d.ts
CHANGED
package/build/events/index.js
CHANGED
|
@@ -19,7 +19,6 @@ __exportStar(require("./Event"), exports);
|
|
|
19
19
|
__exportStar(require("./EventType"), exports);
|
|
20
20
|
__exportStar(require("./IndexerNotification"), exports);
|
|
21
21
|
__exportStar(require("./MessageReceived"), exports);
|
|
22
|
-
__exportStar(require("./MessageStateUpdated"), exports);
|
|
23
22
|
__exportStar(require("./VtFlowStateUpdated"), exports);
|
|
24
23
|
__exportStar(require("./PresentationStateUpdated"), exports);
|
|
25
24
|
//# 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,wDAAqC;AACrC,oDAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,0CAAuB;AACvB,8CAA2B;AAC3B,wDAAqC;AACrC,oDAAiC;AACjC,uDAAoC;AACpC,6DAA0C"}
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { MessageState } from '@2060.io/credo-ts-didcomm-receipts';
|
|
2
|
-
import { Event } from './Event';
|
|
3
|
-
import { EventType } from './EventType';
|
|
4
|
-
export interface MessageStateUpdatedOptions {
|
|
5
|
-
connectionId: string;
|
|
6
|
-
state: MessageState;
|
|
7
|
-
timestamp?: Date;
|
|
8
|
-
messageId: string;
|
|
9
|
-
}
|
|
10
|
-
export declare class MessageStateUpdated extends Event {
|
|
11
|
-
constructor(options: MessageStateUpdatedOptions);
|
|
12
|
-
readonly type = EventType.MessageStateUpdated;
|
|
13
|
-
static readonly type = EventType.MessageStateUpdated;
|
|
14
|
-
connectionId: string;
|
|
15
|
-
messageId: string;
|
|
16
|
-
state: MessageState;
|
|
17
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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.MessageStateUpdated = void 0;
|
|
13
|
-
const credo_ts_didcomm_receipts_1 = require("@2060.io/credo-ts-didcomm-receipts");
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
const Event_1 = require("./Event");
|
|
17
|
-
const EventType_1 = require("./EventType");
|
|
18
|
-
class MessageStateUpdated extends Event_1.Event {
|
|
19
|
-
constructor(options) {
|
|
20
|
-
var _a;
|
|
21
|
-
super();
|
|
22
|
-
this.type = MessageStateUpdated.type;
|
|
23
|
-
if (options) {
|
|
24
|
-
this.connectionId = options.connectionId;
|
|
25
|
-
this.state = options.state;
|
|
26
|
-
this.timestamp = (_a = options.timestamp) !== null && _a !== void 0 ? _a : new Date();
|
|
27
|
-
this.messageId = options.messageId;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.MessageStateUpdated = MessageStateUpdated;
|
|
32
|
-
MessageStateUpdated.type = EventType_1.EventType.MessageStateUpdated;
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, class_transformer_1.Expose)(),
|
|
35
|
-
(0, class_validator_1.IsString)(),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], MessageStateUpdated.prototype, "connectionId", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_transformer_1.Expose)(),
|
|
40
|
-
(0, class_validator_1.IsString)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], MessageStateUpdated.prototype, "messageId", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, class_transformer_1.Expose)(),
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], MessageStateUpdated.prototype, "state", void 0);
|
|
48
|
-
//# sourceMappingURL=MessageStateUpdated.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MessageStateUpdated.js","sourceRoot":"","sources":["../../src/events/MessageStateUpdated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kFAAiE;AACjE,yDAA0C;AAC1C,qDAA0C;AAE1C,mCAA+B;AAC/B,2CAAuC;AASvC,MAAa,mBAAoB,SAAQ,aAAK;IAC5C,YAAmB,OAAmC;;QACpD,KAAK,EAAE,CAAA;QAUO,SAAI,GAAG,mBAAmB,CAAC,IAAI,CAAA;QAR7C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,YAAY,GAAG,OAAO,CAAC,YAAY,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,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;QACpC,CAAC;IACH,CAAC;;AAVH,kDA0BC;AAbwB,wBAAI,GAAG,qBAAS,CAAC,mBAAmB,AAAhC,CAAgC;AAIpD;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;yDACiB;AAIrB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;sDACc;AAIlB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;kDACgB"}
|