@verana-labs/vs-agent-model 1.12.0-dev.14 → 1.12.0-dev.15
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 +1 -0
- package/build/events/EventType.js +1 -0
- package/build/events/EventType.js.map +1 -1
- package/build/events/VtFlowStateUpdated.d.ts +42 -0
- package/build/events/VtFlowStateUpdated.js +134 -0
- package/build/events/VtFlowStateUpdated.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
|
@@ -3,5 +3,6 @@ export declare enum EventType {
|
|
|
3
3
|
MessageStateUpdated = "message-state-updated",
|
|
4
4
|
MessageReceived = "message-received",
|
|
5
5
|
PresentationStateUpdated = "presentation-state-updated",
|
|
6
|
+
VtFlowStateUpdated = "vt-flow-state-updated",
|
|
6
7
|
IndexerNotification = "indexer-notification"
|
|
7
8
|
}
|
|
@@ -7,6 +7,7 @@ var EventType;
|
|
|
7
7
|
EventType["MessageStateUpdated"] = "message-state-updated";
|
|
8
8
|
EventType["MessageReceived"] = "message-received";
|
|
9
9
|
EventType["PresentationStateUpdated"] = "presentation-state-updated";
|
|
10
|
+
EventType["VtFlowStateUpdated"] = "vt-flow-state-updated";
|
|
10
11
|
EventType["IndexerNotification"] = "indexer-notification";
|
|
11
12
|
})(EventType || (exports.EventType = EventType = {}));
|
|
12
13
|
//# 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,SAOX;AAPD,WAAY,SAAS;IACnB,gEAAmD,CAAA;IACnD,0DAA6C,CAAA;IAC7C,iDAAoC,CAAA;IACpC,oEAAuD,CAAA;IACvD,yDAA4C,CAAA;IAC5C,yDAA4C,CAAA;AAC9C,CAAC,EAPW,SAAS,yBAAT,SAAS,QAOpB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Event } from './Event';
|
|
2
|
+
import { EventType } from './EventType';
|
|
3
|
+
export interface VtFlowStateUpdatedOptions {
|
|
4
|
+
vtFlowRecordId: string;
|
|
5
|
+
threadId: string;
|
|
6
|
+
participantSessionId: string;
|
|
7
|
+
connectionId: string;
|
|
8
|
+
role: string;
|
|
9
|
+
variant: string;
|
|
10
|
+
state: string;
|
|
11
|
+
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
|
+
timestamp?: Date;
|
|
21
|
+
}
|
|
22
|
+
export declare class VtFlowStateUpdated extends Event {
|
|
23
|
+
constructor(options: VtFlowStateUpdatedOptions);
|
|
24
|
+
readonly type = EventType.VtFlowStateUpdated;
|
|
25
|
+
static readonly type = EventType.VtFlowStateUpdated;
|
|
26
|
+
vtFlowRecordId: string;
|
|
27
|
+
threadId: string;
|
|
28
|
+
participantSessionId: string;
|
|
29
|
+
connectionId: string;
|
|
30
|
+
role: string;
|
|
31
|
+
variant: string;
|
|
32
|
+
state: string;
|
|
33
|
+
previousState?: string;
|
|
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;
|
|
42
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
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.VtFlowStateUpdated = 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
|
+
class VtFlowStateUpdated extends Event_1.Event {
|
|
18
|
+
constructor(options) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
super();
|
|
21
|
+
this.type = VtFlowStateUpdated.type;
|
|
22
|
+
if (options) {
|
|
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
|
+
this.state = options.state;
|
|
30
|
+
this.previousState = (_a = options.previousState) !== null && _a !== void 0 ? _a : undefined;
|
|
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;
|
|
39
|
+
this.timestamp = (_b = options.timestamp) !== null && _b !== void 0 ? _b : new Date();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.VtFlowStateUpdated = VtFlowStateUpdated;
|
|
44
|
+
VtFlowStateUpdated.type = EventType_1.EventType.VtFlowStateUpdated;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], 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
|
+
__decorate([
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
(0, class_validator_1.IsString)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], VtFlowStateUpdated.prototype, "state", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(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
|
+
__metadata("design:type", Object)
|
|
103
|
+
], VtFlowStateUpdated.prototype, "claims", void 0);
|
|
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);
|
|
134
|
+
//# sourceMappingURL=VtFlowStateUpdated.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VtFlowStateUpdated.js","sourceRoot":"","sources":["../../src/events/VtFlowStateUpdated.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0C;AAC1C,qDAAgE;AAEhE,mCAA+B;AAC/B,2CAAuC;AAsBvC,MAAa,kBAAmB,SAAQ,aAAK;IAC3C,YAAmB,OAAkC;;QACnD,KAAK,EAAE,CAAA;QAuBO,SAAI,GAAG,kBAAkB,CAAC,IAAI,CAAA;QArB5C,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,CAAA;YAC5C,IAAI,CAAC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AFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;wDACiB;AAIrB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;gDACS;AAIb;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;mDACY;AAIhB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;iDACU;AAKd;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACkB;AAKtB;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACkB;AAKtB;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oDACa;AAKjB;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;kDAC4B;AAKhC;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;sEAC+B;AAKnC;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;wDACiB;AAKrB;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;2DACoB;AAKxB;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;8DACuB;AAK3B;IAHN,IAAA,0BAAM,GAAE;IACR,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;oEAC6B"}
|
package/build/events/index.d.ts
CHANGED
package/build/events/index.js
CHANGED
|
@@ -20,5 +20,6 @@ __exportStar(require("./EventType"), exports);
|
|
|
20
20
|
__exportStar(require("./IndexerNotification"), exports);
|
|
21
21
|
__exportStar(require("./MessageReceived"), exports);
|
|
22
22
|
__exportStar(require("./MessageStateUpdated"), exports);
|
|
23
|
+
__exportStar(require("./VtFlowStateUpdated"), exports);
|
|
23
24
|
__exportStar(require("./PresentationStateUpdated"), exports);
|
|
24
25
|
//# 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,wDAAqC;AACrC,6DAA0C"}
|
|
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,wDAAqC;AACrC,uDAAoC;AACpC,6DAA0C"}
|