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

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.
@@ -1,8 +1,9 @@
1
1
  export declare enum EventType {
2
- ConnectionStateUpdated = "connection-state-updated",
3
- MessageStateUpdated = "message-state-updated",
4
- MessageReceived = "message-received",
5
- PresentationStateUpdated = "presentation-state-updated",
6
- VtFlowStateUpdated = "vt-flow-state-updated",
7
- IndexerNotification = "indexer-notification"
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"] = "connection-state-updated";
7
- EventType["MessageStateUpdated"] = "message-state-updated";
8
- EventType["MessageReceived"] = "message-received";
9
- EventType["PresentationStateUpdated"] = "presentation-state-updated";
10
- EventType["VtFlowStateUpdated"] = "vt-flow-state-updated";
11
- EventType["IndexerNotification"] = "indexer-notification";
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,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"}
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"}
@@ -3,6 +3,5 @@ export * from './Event';
3
3
  export * from './EventType';
4
4
  export * from './IndexerNotification';
5
5
  export * from './MessageReceived';
6
- export * from './MessageStateUpdated';
7
6
  export * from './VtFlowStateUpdated';
8
7
  export * from './PresentationStateUpdated';
@@ -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,wDAAqC;AACrC,uDAAoC;AACpC,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,uDAAoC;AACpC,6DAA0C"}
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.42",
17
+ "version": "2.0.0-dev.44",
18
18
  "repository": {
19
19
  "type": "git",
20
20
  "url": "https://github.com/verana-labs/vs-agent"
@@ -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"}