@verana-labs/vs-agent-model 2.0.0-dev.44 → 2.0.0-dev.46

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.
@@ -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?: 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;
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 : 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;
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, "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);
47
+ ], VtFlowStateUpdated.prototype, "previousState", void 0);
134
48
  //# sourceM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B;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"}
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/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "default": "./build/utils/ecs.js"
15
15
  }
16
16
  },
17
- "version": "2.0.0-dev.44",
17
+ "version": "2.0.0-dev.46",
18
18
  "repository": {
19
19
  "type": "git",
20
20
  "url": "https://github.com/verana-labs/vs-agent"