@verana-labs/vs-agent-model 1.6.1-dev.2 → 1.7.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.
@@ -1,6 +1,5 @@
1
1
  export declare enum EventType {
2
2
  ConnectionState = "connection-state-updated",
3
3
  MessageStateUpdated = "message-state-updated",
4
- MessageReceived = "message-received",
5
- VCAuthnEvent = "vc-authn"
4
+ MessageReceived = "message-received"
6
5
  }
@@ -6,6 +6,5 @@ var EventType;
6
6
  EventType["ConnectionState"] = "connection-state-updated";
7
7
  EventType["MessageStateUpdated"] = "message-state-updated";
8
8
  EventType["MessageReceived"] = "message-received";
9
- EventType["VCAuthnEvent"] = "vc-authn";
10
9
  })(EventType || (exports.EventType = EventType = {}));
11
10
  //# sourceMappingURL=EventType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../src/events/EventType.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,yDAA4C,CAAA;IAC5C,0DAA6C,CAAA;IAC7C,iDAAoC,CAAA;IACpC,sCAAyB,CAAA;AAC3B,CAAC,EALW,SAAS,yBAAT,SAAS,QAKpB"}
1
+ {"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../src/events/EventType.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,yDAA4C,CAAA;IAC5C,0DAA6C,CAAA;IAC7C,iDAAoC,CAAA;AACtC,CAAC,EAJW,SAAS,yBAAT,SAAS,QAIpB"}
@@ -3,4 +3,3 @@ export * from './Event';
3
3
  export * from './EventType';
4
4
  export * from './MessageReceived';
5
5
  export * from './MessageStateUpdated';
6
- export * from './VCAuthnEvent';
@@ -19,5 +19,4 @@ __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("./VCAuthnEvent"), exports);
23
22
  //# 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;AACrC,iDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2DAAwC;AACxC,0CAAuB;AACvB,8CAA2B;AAC3B,oDAAiC;AACjC,wDAAqC"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@verana-labs/vs-agent-model",
3
3
  "main": "build/index",
4
4
  "types": "build/index",
5
- "version": "1.6.1-dev.2",
5
+ "version": "1.7.0-dev.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/verana-labs/vs-agent"
@@ -1,18 +0,0 @@
1
- import { Event } from './Event';
2
- import { EventType } from './EventType';
3
- export interface VCAuthnEventOptions {
4
- presentation_exchange_id: string;
5
- state: string;
6
- timestamp?: Date;
7
- verified: string;
8
- error_msg?: string;
9
- }
10
- export declare class VCAuthnEvent extends Event {
11
- constructor(options: VCAuthnEventOptions);
12
- readonly type = EventType.VCAuthnEvent;
13
- static readonly type = EventType.VCAuthnEvent;
14
- presentation_exchange_id: string;
15
- verified?: string;
16
- state: string;
17
- error_msg?: string;
18
- }
@@ -1,52 +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.VCAuthnEvent = 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 VCAuthnEvent extends Event_1.Event {
18
- constructor(options) {
19
- var _a;
20
- super();
21
- this.type = VCAuthnEvent.type;
22
- if (options) {
23
- this.presentation_exchange_id = options.presentation_exchange_id;
24
- this.state = options.state;
25
- this.timestamp = (_a = options.timestamp) !== null && _a !== void 0 ? _a : new Date();
26
- this.verified = options.verified;
27
- this.error_msg = options.error_msg;
28
- }
29
- }
30
- }
31
- exports.VCAuthnEvent = VCAuthnEvent;
32
- VCAuthnEvent.type = EventType_1.EventType.VCAuthnEvent;
33
- __decorate([
34
- (0, class_transformer_1.Expose)(),
35
- (0, class_validator_1.IsString)(),
36
- __metadata("design:type", String)
37
- ], VCAuthnEvent.prototype, "presentation_exchange_id", void 0);
38
- __decorate([
39
- (0, class_transformer_1.Expose)(),
40
- __metadata("design:type", String)
41
- ], VCAuthnEvent.prototype, "verified", void 0);
42
- __decorate([
43
- (0, class_transformer_1.Expose)(),
44
- (0, class_validator_1.IsString)(),
45
- __metadata("design:type", String)
46
- ], VCAuthnEvent.prototype, "state", void 0);
47
- __decorate([
48
- (0, class_transformer_1.Expose)(),
49
- (0, class_validator_1.IsString)(),
50
- __metadata("design:type", String)
51
- ], VCAuthnEvent.prototype, "error_msg", void 0);
52
- //# sourceMappingURL=VCAuthnEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VCAuthnEvent.js","sourceRoot":"","sources":["../../src/events/VCAuthnEvent.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yDAA0C;AAC1C,qDAA0C;AAE1C,mCAA+B;AAC/B,2CAAuC;AAUvC,MAAa,YAAa,SAAQ,aAAK;IACrC,YAAmB,OAA4B;;QAC7C,KAAK,EAAE,CAAA;QAWO,SAAI,GAAG,YAAY,CAAC,IAAI,CAAA;QATtC,IAAI,OAAO,EAAE,CAAC;YACZ,IAAI,CAAC,wBAAwB,GAAG,OAAO,CAAC,wBAAwB,CAAA;YAChE,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,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;YAChC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;QACpC,CAAC;IACH,CAAC;;AAXH,oCA8BC;AAhBwB,iBAAI,GAAG,qBAAS,CAAC,YAAY,AAAzB,CAAyB;AAI7C;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;8DAC6B;AAGjC;IADN,IAAA,0BAAM,GAAE;;8CACe;AAIjB;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;2CACU;AAId;IAFN,IAAA,0BAAM,GAAE;IACR,IAAA,0BAAQ,GAAE;;+CACc"}