@verana-labs/vs-agent-nestjs-client 2.0.0-dev.8 → 2.0.0-dev.80
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/README.md +61 -201
- package/build/app.module.js +26 -34
- package/build/app.module.js.map +1 -1
- package/build/connections/connection.entity.d.ts +4 -5
- package/build/connections/connection.entity.js +2 -10
- package/build/connections/connection.entity.js.map +1 -1
- package/build/connections/connection.repository.d.ts +6 -20
- package/build/connections/connection.repository.js +12 -40
- package/build/connections/connection.repository.js.map +1 -1
- package/build/connections/connection.service.d.ts +8 -17
- package/build/connections/connection.service.js +33 -54
- package/build/connections/connection.service.js.map +1 -1
- package/build/connections/index.d.ts +0 -2
- package/build/connections/index.js +0 -2
- package/build/connections/index.js.map +1 -1
- package/build/credentials/credential.entity.d.ts +1 -1
- package/build/credentials/credential.entity.js +1 -1
- package/build/credentials/credential.entity.js.map +1 -1
- package/build/credentials/credential.service.d.ts +22 -90
- package/build/credentials/credential.service.js +109 -204
- package/build/credentials/credential.service.js.map +1 -1
- package/build/credentials/index.d.ts +0 -1
- package/build/credentials/index.js +0 -1
- package/build/credentials/index.js.map +1 -1
- package/build/events.controller.d.ts +9 -0
- package/build/events.controller.js +47 -0
- package/build/events.controller.js.map +1 -0
- package/build/events.service.d.ts +12 -0
- package/build/events.service.js +80 -0
- package/build/events.service.js.map +1 -0
- package/build/index.d.ts +4 -3
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/build/interfaces.d.ts +2 -28
- package/build/jms/index.d.ts +1 -1
- package/build/jms/index.js +4 -1
- package/build/jms/index.js.map +1 -1
- package/build/jms/stats-producer.service.d.ts +3 -4
- package/build/jms/stats-producer.service.js +3 -4
- package/build/jms/stats-producer.service.js.map +1 -1
- package/build/tokens.d.ts +3 -0
- package/build/tokens.js +7 -0
- package/build/tokens.js.map +1 -0
- package/build/types.d.ts +25 -53
- package/build/types.js +7 -1
- package/build/types.js.map +1 -1
- package/package.json +3 -9
- package/build/connections/connection.controller.d.ts +0 -10
- package/build/connections/connection.controller.js +0 -65
- package/build/connections/connection.controller.js.map +0 -1
- package/build/connections/connection.module.d.ts +0 -5
- package/build/connections/connection.module.js +0 -44
- package/build/connections/connection.module.js.map +0 -1
- package/build/credentials/credential.module.d.ts +0 -5
- package/build/credentials/credential.module.js +0 -34
- package/build/credentials/credential.module.js.map +0 -1
- package/build/jms/stats.module.d.ts +0 -5
- package/build/jms/stats.module.js +0 -34
- package/build/jms/stats.module.js.map +0 -1
- package/build/messages/index.d.ts +0 -3
- package/build/messages/index.js +0 -20
- package/build/messages/index.js.map +0 -1
- package/build/messages/message.controller.d.ts +0 -13
- package/build/messages/message.controller.js +0 -95
- package/build/messages/message.controller.js.map +0 -1
- package/build/messages/message.module.d.ts +0 -5
- package/build/messages/message.module.js +0 -41
- package/build/messages/message.module.js.map +0 -1
- package/build/messages/message.service.d.ts +0 -19
- package/build/messages/message.service.js +0 -104
- package/build/messages/message.service.js.map +0 -1
package/build/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export * from '@verana-labs/vs-agent-client';
|
|
2
|
-
export * from '@verana-labs/vs-agent-model';
|
|
3
2
|
export * from './app.module';
|
|
4
3
|
export * from './connections';
|
|
5
4
|
export * from './credentials';
|
|
6
|
-
export * from './
|
|
5
|
+
export * from './events.controller';
|
|
6
|
+
export * from './events.service';
|
|
7
7
|
export * from './interfaces';
|
|
8
|
-
export * from './
|
|
8
|
+
export * from './jms';
|
|
9
|
+
export * from './tokens';
|
|
9
10
|
export * from './types';
|
package/build/index.js
CHANGED
|
@@ -15,12 +15,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("@verana-labs/vs-agent-client"), exports);
|
|
18
|
-
__exportStar(require("@verana-labs/vs-agent-model"), exports);
|
|
19
18
|
__exportStar(require("./app.module"), exports);
|
|
20
19
|
__exportStar(require("./connections"), exports);
|
|
21
20
|
__exportStar(require("./credentials"), exports);
|
|
22
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./events.controller"), exports);
|
|
22
|
+
__exportStar(require("./events.service"), exports);
|
|
23
23
|
__exportStar(require("./interfaces"), exports);
|
|
24
|
-
__exportStar(require("./
|
|
24
|
+
__exportStar(require("./jms"), exports);
|
|
25
|
+
__exportStar(require("./tokens"), exports);
|
|
25
26
|
__exportStar(require("./types"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,sDAAmC;AACnC,mDAAgC;AAChC,+CAA4B;AAC5B,wCAAqB;AACrB,2CAAwB;AACxB,0CAAuB"}
|
package/build/interfaces.d.ts
CHANGED
|
@@ -1,32 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
/**
|
|
3
|
-
* The EventHandler interface defines the blueprint for handling events
|
|
4
|
-
* in the main class, ensuring it implements the required methods for
|
|
5
|
-
* basic and proper functionality. Classes implementing this interface
|
|
6
|
-
* must handle connection updates and process input messages effectively.
|
|
7
|
-
*/
|
|
1
|
+
import { EventEnvelope, UnknownEventEnvelope } from '@verana-labs/vs-agent-client';
|
|
8
2
|
export interface EventHandler {
|
|
9
|
-
/**
|
|
10
|
-
* Handles a new connection event, typically triggered when the connection
|
|
11
|
-
* state changes. This method can execute synchronously or asynchronously.
|
|
12
|
-
*
|
|
13
|
-
* @param event - An instance of ConnectionStateUpdated representing
|
|
14
|
-
* the updated connection state.
|
|
15
|
-
*/
|
|
16
3
|
newConnection(connectionId: string): Promise<void> | void;
|
|
17
|
-
/**
|
|
18
|
-
* Handles a terminated connection event, typically triggered when the connection
|
|
19
|
-
* state changes. This method can execute synchronously or asynchronously.
|
|
20
|
-
*
|
|
21
|
-
* @param event - An instance of ConnectionStateUpdated representing
|
|
22
|
-
* the updated connection state.
|
|
23
|
-
*/
|
|
24
4
|
closeConnection(connectionId: string): Promise<void> | void;
|
|
25
|
-
|
|
26
|
-
* Processes an incoming message. This method allows for both synchronous
|
|
27
|
-
* and asynchronous handling of messages of type BaseMessage.
|
|
28
|
-
*
|
|
29
|
-
* @param message - An instance of BaseMessage containing the input message details.
|
|
30
|
-
*/
|
|
31
|
-
inputMessage(message: BaseMessage): Promise<void> | void;
|
|
5
|
+
onEvent(envelope: EventEnvelope | UnknownEventEnvelope): Promise<void> | void;
|
|
32
6
|
}
|
package/build/jms/index.d.ts
CHANGED
package/build/jms/index.js
CHANGED
|
@@ -14,6 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.StatEvent = exports.StatEnum = void 0;
|
|
18
|
+
var vs_agent_model_1 = require("@verana-labs/vs-agent-model");
|
|
19
|
+
Object.defineProperty(exports, "StatEnum", { enumerable: true, get: function () { return vs_agent_model_1.StatEnum; } });
|
|
20
|
+
Object.defineProperty(exports, "StatEvent", { enumerable: true, get: function () { return vs_agent_model_1.StatEvent; } });
|
|
17
21
|
__exportStar(require("./stats-producer.service"), exports);
|
|
18
|
-
__exportStar(require("./stats.module"), exports);
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
package/build/jms/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/jms/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/jms/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,8DAAiE;AAAxD,0GAAA,QAAQ,OAAA;AAAE,2GAAA,SAAS,OAAA;AAC5B,2DAAwC"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { OnModuleDestroy, OnModuleInit } from '@nestjs/common';
|
|
2
2
|
import { StatEnum } from '@verana-labs/vs-agent-model';
|
|
3
|
-
import {
|
|
3
|
+
import { EventsModuleOptions } from '../types';
|
|
4
4
|
export declare class StatProducerService implements OnModuleInit, OnModuleDestroy {
|
|
5
|
-
private options;
|
|
6
5
|
private readonly logger;
|
|
7
6
|
private connection;
|
|
8
7
|
private sender;
|
|
@@ -12,11 +11,11 @@ export declare class StatProducerService implements OnModuleInit, OnModuleDestro
|
|
|
12
11
|
* Initializes the StatProducerService with default settings optimized for a local development environment.
|
|
13
12
|
* By default, it connects to a JMS broker running on `localhost` with predefined credentials.
|
|
14
13
|
*
|
|
15
|
-
* If custom options are provided through `
|
|
14
|
+
* If custom options are provided through `EVENTS_MODULE_OPTIONS`, they will override the defaults.
|
|
16
15
|
*
|
|
17
16
|
* @param options - Configuration options for the JMS connection.
|
|
18
17
|
*/
|
|
19
|
-
constructor(options:
|
|
18
|
+
constructor(options: EventsModuleOptions);
|
|
20
19
|
onModuleInit(): Promise<void>;
|
|
21
20
|
onModuleDestroy(): Promise<void>;
|
|
22
21
|
private connect;
|
|
@@ -14,22 +14,21 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
var StatProducerService_1;
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.StatProducerService = void 0;
|
|
17
|
-
// stats.service.ts
|
|
18
17
|
const common_1 = require("@nestjs/common");
|
|
19
18
|
const vs_agent_model_1 = require("@verana-labs/vs-agent-model");
|
|
20
19
|
const rhea_1 = require("rhea");
|
|
20
|
+
const tokens_1 = require("../tokens");
|
|
21
21
|
let StatProducerService = StatProducerService_1 = class StatProducerService {
|
|
22
22
|
/**
|
|
23
23
|
* Initializes the StatProducerService with default settings optimized for a local development environment.
|
|
24
24
|
* By default, it connects to a JMS broker running on `localhost` with predefined credentials.
|
|
25
25
|
*
|
|
26
|
-
* If custom options are provided through `
|
|
26
|
+
* If custom options are provided through `EVENTS_MODULE_OPTIONS`, they will override the defaults.
|
|
27
27
|
*
|
|
28
28
|
* @param options - Configuration options for the JMS connection.
|
|
29
29
|
*/
|
|
30
30
|
constructor(options) {
|
|
31
31
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
32
|
-
this.options = options;
|
|
33
32
|
this.logger = new common_1.Logger(StatProducerService_1.name);
|
|
34
33
|
this.connection = null;
|
|
35
34
|
this.sender = null;
|
|
@@ -139,7 +138,7 @@ let StatProducerService = StatProducerService_1 = class StatProducerService {
|
|
|
139
138
|
exports.StatProducerService = StatProducerService;
|
|
140
139
|
exports.StatProducerService = StatProducerService = StatProducerService_1 = __decorate([
|
|
141
140
|
(0, common_1.Injectable)(),
|
|
142
|
-
__param(0, (0, common_1.Inject)(
|
|
141
|
+
__param(0, (0, common_1.Inject)(tokens_1.EVENTS_MODULE_OPTIONS)),
|
|
143
142
|
__metadata("design:paramtypes", [Object])
|
|
144
143
|
], StatProducerService);
|
|
145
144
|
//# sourceMappingURL=stats-producer.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats-producer.service.js","sourceRoot":"","sources":["../../src/jms/stats-producer.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"stats-producer.service.js","sourceRoot":"","sources":["../../src/jms/stats-producer.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAA0F;AAC1F,gEAAiE;AACjE,+BAAsE;AAEtE,sCAAiD;AAI1C,IAAM,mBAAmB,2BAAzB,MAAM,mBAAmB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AM,CAAC,KAAK,CAAC,oBAAoB,GAAG,CAAC,IAAI,EAAE,CAAC,CAAA;YACnD,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,2BAA2B,KAAK,CAAC,OAAO,EAAE,CAAC,CAAA;gBAC7D,MAAM,KAAK,CAAA;YACb,CAAC;QACH,CAAC;IACH,CAAC;IAED,KAAK,CAAC,WAAW,CACf,SAAiB,EACjB,QAAgB,EAChB,QAAkB,EAClB,KAAW,IAAI,IAAI,EAAE,EACrB,YAAoB,CAAC;QAErB,MAAM,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,QAAQ,EAAE,CAAC,QAAQ,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;IAClE,CAAC;CACF,CAAA;AAvJY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IA0BE,WAAA,IAAA,eAAM,EAAC,8BAAqB,CAAC,CAAA;;GAzB/B,mBAAmB,CAuJ/B"}
|
package/build/tokens.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VS_AGENT_CLIENT = exports.EVENT_HANDLER = exports.EVENTS_MODULE_OPTIONS = void 0;
|
|
4
|
+
exports.EVENTS_MODULE_OPTIONS = 'EVENTS_MODULE_OPTIONS';
|
|
5
|
+
exports.EVENT_HANDLER = 'EVENT_HANDLER';
|
|
6
|
+
exports.VS_AGENT_CLIENT = 'VS_AGENT_CLIENT';
|
|
7
|
+
//# sourceMappingURL=tokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tokens.js","sourceRoot":"","sources":["../src/tokens.ts"],"names":[],"mappings":";;;AAAa,QAAA,qBAAqB,GAAG,uBAAuB,CAAA;AAC/C,QAAA,aAAa,GAAG,eAAe,CAAA;AAC/B,QAAA,eAAe,GAAG,iBAAiB,CAAA"}
|
package/build/types.d.ts
CHANGED
|
@@ -1,61 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ApiVersion } from '@verana-labs/vs-agent-client';
|
|
3
|
-
import { ProfileMessageOptions } from '@verana-labs/vs-agent-model';
|
|
1
|
+
import { Type } from '@nestjs/common';
|
|
4
2
|
import { EventHandler } from './interfaces';
|
|
5
|
-
export interface
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
imports?: (DynamicModule | Type<any> | Promise<DynamicModule> | ForwardReference<any>)[];
|
|
15
|
-
useMessages?: boolean;
|
|
16
|
-
}
|
|
17
|
-
export interface StatEventOptions {
|
|
18
|
-
imports?: (DynamicModule | Type<any> | Promise<DynamicModule> | ForwardReference<any>)[];
|
|
19
|
-
statOptions?: {
|
|
20
|
-
host?: string;
|
|
21
|
-
port?: number;
|
|
22
|
-
queue?: string;
|
|
23
|
-
username?: string;
|
|
24
|
-
password?: string;
|
|
25
|
-
reconnectLimit?: number;
|
|
26
|
-
threads?: number;
|
|
27
|
-
delay?: number;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export interface CredentialOptions {
|
|
31
|
-
imports?: (DynamicModule | Type<any> | Promise<DynamicModule> | ForwardReference<any>)[];
|
|
32
|
-
url?: string;
|
|
33
|
-
version?: ApiVersion;
|
|
34
|
-
}
|
|
35
|
-
export interface ModulesConfig {
|
|
36
|
-
messages?: boolean;
|
|
37
|
-
connections?: boolean;
|
|
38
|
-
credentials?: boolean;
|
|
39
|
-
stats?: boolean;
|
|
3
|
+
export interface StatOptions {
|
|
4
|
+
host?: string;
|
|
5
|
+
port?: number;
|
|
6
|
+
queue?: string;
|
|
7
|
+
username?: string;
|
|
8
|
+
password?: string;
|
|
9
|
+
reconnectLimit?: number;
|
|
10
|
+
threads?: number;
|
|
11
|
+
delay?: number;
|
|
40
12
|
}
|
|
41
13
|
export interface EventsModuleOptions {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
host?: string;
|
|
50
|
-
port?: number;
|
|
51
|
-
queue?: string;
|
|
52
|
-
username?: string;
|
|
53
|
-
password?: string;
|
|
54
|
-
reconnectLimit?: number;
|
|
55
|
-
threads?: number;
|
|
56
|
-
delay?: number;
|
|
14
|
+
url: string;
|
|
15
|
+
token?: string;
|
|
16
|
+
webhookApiKey?: string;
|
|
17
|
+
eventHandler: Type<EventHandler>;
|
|
18
|
+
modules?: {
|
|
19
|
+
connections?: boolean | {
|
|
20
|
+
requireProfile?: boolean;
|
|
57
21
|
};
|
|
22
|
+
credentials?: boolean;
|
|
23
|
+
stats?: boolean;
|
|
58
24
|
};
|
|
25
|
+
statOptions?: StatOptions;
|
|
26
|
+
}
|
|
27
|
+
export declare enum ConnectionStatus {
|
|
28
|
+
Start = "start",
|
|
29
|
+
Completed = "completed",
|
|
30
|
+
Terminated = "terminated"
|
|
59
31
|
}
|
|
60
32
|
export declare enum CredentialStatus {
|
|
61
33
|
OFFERED = "offered",
|
package/build/types.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CredentialStatus = void 0;
|
|
3
|
+
exports.CredentialStatus = exports.ConnectionStatus = void 0;
|
|
4
|
+
var ConnectionStatus;
|
|
5
|
+
(function (ConnectionStatus) {
|
|
6
|
+
ConnectionStatus["Start"] = "start";
|
|
7
|
+
ConnectionStatus["Completed"] = "completed";
|
|
8
|
+
ConnectionStatus["Terminated"] = "terminated";
|
|
9
|
+
})(ConnectionStatus || (exports.ConnectionStatus = ConnectionStatus = {}));
|
|
4
10
|
var CredentialStatus;
|
|
5
11
|
(function (CredentialStatus) {
|
|
6
12
|
CredentialStatus["OFFERED"] = "offered";
|
package/build/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AA4BA,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,2CAAuB,CAAA;IACvB,6CAAyB,CAAA;AAC3B,CAAC,EAJW,gBAAgB,gCAAhB,gBAAgB,QAI3B;AAED,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,uCAAmB,CAAA;IACnB,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;AACrB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verana-labs/vs-agent-nestjs-client",
|
|
3
|
-
"version": "2.0.0-dev.
|
|
3
|
+
"version": "2.0.0-dev.80",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,25 +16,19 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@2060.io/credo-ts-didcomm-mrtd": "0.1.1",
|
|
20
|
-
"@credo-ts/core": "0.7.1-pr-2704-20260630143332",
|
|
21
|
-
"@credo-ts/didcomm": "0.7.1-pr-2704-20260630143332",
|
|
22
19
|
"@nestjs/common": "^10.0.0",
|
|
23
20
|
"@nestjs/core": "^10.0.0",
|
|
24
|
-
"@nestjs/platform-express": "^10.0.0",
|
|
25
21
|
"@nestjs/typeorm": "^10.0.2",
|
|
26
22
|
"reflect-metadata": "^0.2.0",
|
|
27
23
|
"rhea": "^3.0.3",
|
|
28
24
|
"rxjs": "^7.8.1",
|
|
29
25
|
"typeorm": "^0.3.20",
|
|
30
|
-
"@verana-labs/vs-agent-
|
|
31
|
-
"@verana-labs/vs-agent-
|
|
26
|
+
"@verana-labs/vs-agent-client": "2.0.0-dev.80",
|
|
27
|
+
"@verana-labs/vs-agent-model": "2.0.0-dev.80"
|
|
32
28
|
},
|
|
33
29
|
"devDependencies": {
|
|
34
|
-
"@2060.io/credo-ts-didcomm-receipts": "0.1.1",
|
|
35
30
|
"@nestjs/cli": "^10.0.0",
|
|
36
31
|
"@nestjs/schematics": "^10.0.0",
|
|
37
|
-
"@nestjs/swagger": "^8.0.7",
|
|
38
32
|
"@nestjs/testing": "^10.0.0",
|
|
39
33
|
"@types/express": "^4.17.13",
|
|
40
34
|
"source-map-support": "^0.5.21",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ConnectionStateUpdated } from '@verana-labs/vs-agent-model';
|
|
2
|
-
import { ConnectionsEventService } from './connection.service';
|
|
3
|
-
export declare class ConnectionsEventController {
|
|
4
|
-
private readonly service;
|
|
5
|
-
private readonly logger;
|
|
6
|
-
constructor(service: ConnectionsEventService);
|
|
7
|
-
update(body: ConnectionStateUpdated): Promise<{
|
|
8
|
-
message: string;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
@@ -1,65 +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
|
-
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
-
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
-
};
|
|
14
|
-
var ConnectionsEventController_1;
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.ConnectionsEventController = void 0;
|
|
17
|
-
const common_1 = require("@nestjs/common");
|
|
18
|
-
const swagger_1 = require("@nestjs/swagger");
|
|
19
|
-
const vs_agent_client_1 = require("@verana-labs/vs-agent-client");
|
|
20
|
-
const vs_agent_model_1 = require("@verana-labs/vs-agent-model");
|
|
21
|
-
const connection_service_1 = require("./connection.service");
|
|
22
|
-
let ConnectionsEventController = ConnectionsEventController_1 = class ConnectionsEventController {
|
|
23
|
-
constructor(service) {
|
|
24
|
-
this.service = service;
|
|
25
|
-
this.logger = new common_1.Logger(ConnectionsEventController_1.name);
|
|
26
|
-
}
|
|
27
|
-
async update(body) {
|
|
28
|
-
try {
|
|
29
|
-
this.logger.log(`connectionStateUpdated event: ${JSON.stringify(body)}`);
|
|
30
|
-
await this.service.update(body);
|
|
31
|
-
return { message: 'Connection state updated successfully' };
|
|
32
|
-
}
|
|
33
|
-
catch (error) {
|
|
34
|
-
vs_agent_client_1.HttpUtils.handleException(this.logger, error, 'Failed to update connection state');
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
exports.ConnectionsEventController = ConnectionsEventController;
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, common_1.Post)(`/${vs_agent_model_1.EventType.ConnectionStateUpdated}`),
|
|
41
|
-
(0, swagger_1.ApiOperation)({
|
|
42
|
-
summary: 'Handle the ConnectionState event',
|
|
43
|
-
description: 'Processes the ConnectionState event and updates the connection state.',
|
|
44
|
-
}),
|
|
45
|
-
(0, swagger_1.ApiResponse)({
|
|
46
|
-
status: common_1.HttpStatus.OK,
|
|
47
|
-
description: 'Connection state updated successfully.',
|
|
48
|
-
schema: {
|
|
49
|
-
example: { message: 'Connection state updated successfully' },
|
|
50
|
-
},
|
|
51
|
-
}),
|
|
52
|
-
(0, swagger_1.ApiResponse)({ status: common_1.HttpStatus.BAD_REQUEST, description: 'Invalid input data.' }),
|
|
53
|
-
(0, swagger_1.ApiResponse)({ status: common_1.HttpStatus.INTERNAL_SERVER_ERROR, description: 'Internal server error.' }),
|
|
54
|
-
__param(0, (0, common_1.Body)()),
|
|
55
|
-
__metadata("design:type", Function),
|
|
56
|
-
__metadata("design:paramtypes", [vs_agent_model_1.ConnectionStateUpdated]),
|
|
57
|
-
__metadata("design:returntype", Promise)
|
|
58
|
-
], ConnectionsEventController.prototype, "update", null);
|
|
59
|
-
exports.ConnectionsEventController = ConnectionsEventController = ConnectionsEventController_1 = __decorate([
|
|
60
|
-
(0, swagger_1.ApiTags)('Connections Event'),
|
|
61
|
-
(0, common_1.Controller)(),
|
|
62
|
-
__param(0, (0, common_1.Inject)(connection_service_1.ConnectionsEventService)),
|
|
63
|
-
__metadata("design:paramtypes", [connection_service_1.ConnectionsEventService])
|
|
64
|
-
], ConnectionsEventController);
|
|
65
|
-
//# sourceMappingURL=connection.controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.controller.js","sourceRoot":"","sources":["../../src/connections/connection.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAmF;AACnF,6CAAoE;AACpE,kEAAwD;AACxD,gEAA+E;AAE/E,6DAA8D;AAIvD,IAAM,0BAA0B,kCAAhC,MAAM,0BAA0B;IAGrC,YAA6C,OAAiD;QAAhC,YAAO,GAAP,OAAO,CAAyB;QAF7E,WAAM,GAAG,IAAI,eAAM,CAAC,4BAA0B,CAAC,IAAI,CAAC,CAAA;IAE4B,CAAC;IAgB5F,AAAN,KAAK,CAAC,MAAM,CAAS,IAA4B;QAC/C,IAAI,CAAC;YACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,iCAAiC,IAAI,CAAC,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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 ConnectionsEventModule_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.ConnectionsEventModule = void 0;
|
|
11
|
-
const common_1 = require("@nestjs/common");
|
|
12
|
-
const connection_controller_1 = require("./connection.controller");
|
|
13
|
-
const connection_repository_1 = require("./connection.repository");
|
|
14
|
-
const connection_service_1 = require("./connection.service");
|
|
15
|
-
let ConnectionsEventModule = ConnectionsEventModule_1 = class ConnectionsEventModule {
|
|
16
|
-
static forRoot(options) {
|
|
17
|
-
if (!options.eventHandler) {
|
|
18
|
-
throw new Error('Event handler is required but not provided.');
|
|
19
|
-
}
|
|
20
|
-
return {
|
|
21
|
-
module: ConnectionsEventModule_1,
|
|
22
|
-
imports: options.imports,
|
|
23
|
-
controllers: [connection_controller_1.ConnectionsEventController],
|
|
24
|
-
providers: [
|
|
25
|
-
connection_service_1.ConnectionsEventService,
|
|
26
|
-
connection_repository_1.ConnectionsRepository,
|
|
27
|
-
{
|
|
28
|
-
provide: 'GLOBAL_MODULE_OPTIONS',
|
|
29
|
-
useValue: options,
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
provide: 'CONNECTIONS_EVENT',
|
|
33
|
-
useClass: options.eventHandler,
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
exports: [connection_repository_1.ConnectionsRepository, connection_service_1.ConnectionsEventService],
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.ConnectionsEventModule = ConnectionsEventModule;
|
|
41
|
-
exports.ConnectionsEventModule = ConnectionsEventModule = ConnectionsEventModule_1 = __decorate([
|
|
42
|
-
(0, common_1.Module)({})
|
|
43
|
-
], ConnectionsEventModule);
|
|
44
|
-
//# sourceMappingURL=connection.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connection.module.js","sourceRoot":"","sources":["../../src/connections/connection.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAsD;AAItD,mEAAoE;AACpE,mEAA+D;AAC/D,6DAA8D;AAGvD,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IACjC,MAAM,CAAC,OAAO,CAAC,OAA+B;QAC5C,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,6CAA6C,CAAC,CAAA;QAChE,CAAC;QACD,OAAO;YACL,MAAM,EAAE,wBAAsB;YAC9B,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,WAAW,EAAE,CAAC,kDAA0B,CAAC;YACzC,SAAS,EAAE;gBACT,4CAAuB;gBACvB,6CAAqB;gBACrB;oBACE,OAAO,EAAE,uBAAuB;oBAChC,QAAQ,EAAE,OAAO;iBAClB;gBACD;oBACE,OAAO,EAAE,mBAAmB;oBAC5B,QAAQ,EAAE,OAAO,CAAC,YAAY;iBAC/B;aACF;YACD,OAAO,EAAE,CAAC,6CAAqB,EAAE,4CAAuB,CAAC;SAC1D,CAAA;IACH,CAAC;CACF,CAAA;AAxBY,wDAAsB;iCAAtB,sBAAsB;IADlC,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,sBAAsB,CAwBlC"}
|
|
@@ -1,34 +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 CredentialModule_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.CredentialModule = void 0;
|
|
11
|
-
const common_1 = require("@nestjs/common");
|
|
12
|
-
const credential_service_1 = require("./credential.service");
|
|
13
|
-
let CredentialModule = CredentialModule_1 = class CredentialModule {
|
|
14
|
-
static forRoot(options) {
|
|
15
|
-
return {
|
|
16
|
-
module: CredentialModule_1,
|
|
17
|
-
imports: options.imports,
|
|
18
|
-
controllers: [],
|
|
19
|
-
providers: [
|
|
20
|
-
credential_service_1.CredentialService,
|
|
21
|
-
{
|
|
22
|
-
provide: 'GLOBAL_MODULE_OPTIONS',
|
|
23
|
-
useValue: options,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
exports: [credential_service_1.CredentialService],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.CredentialModule = CredentialModule;
|
|
31
|
-
exports.CredentialModule = CredentialModule = CredentialModule_1 = __decorate([
|
|
32
|
-
(0, common_1.Module)({})
|
|
33
|
-
], CredentialModule);
|
|
34
|
-
//# sourceMappingURL=credential.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credential.module.js","sourceRoot":"","sources":["../../src/credentials/credential.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAsD;AAItD,6DAAwD;AAGjD,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAC3B,MAAM,CAAC,OAAO,CAAC,OAA0B;QACvC,OAAO;YACL,MAAM,EAAE,kBAAgB;YACxB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,WAAW,EAAE,EAAE;YACf,SAAS,EAAE;gBACT,sCAAiB;gBACjB;oBACE,OAAO,EAAE,uBAAuB;oBAChC,QAAQ,EAAE,OAAO;iBAClB;aACF;YACD,OAAO,EAAE,CAAC,sCAAiB,CAAC;SAC7B,CAAA;IACH,CAAC;CACF,CAAA;AAhBY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,gBAAgB,CAgB5B"}
|
|
@@ -1,34 +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 StatEventModule_1;
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.StatEventModule = void 0;
|
|
11
|
-
const common_1 = require("@nestjs/common");
|
|
12
|
-
const stats_producer_service_1 = require("./stats-producer.service");
|
|
13
|
-
let StatEventModule = StatEventModule_1 = class StatEventModule {
|
|
14
|
-
static forRoot(options) {
|
|
15
|
-
return {
|
|
16
|
-
module: StatEventModule_1,
|
|
17
|
-
imports: options.imports,
|
|
18
|
-
controllers: [],
|
|
19
|
-
providers: [
|
|
20
|
-
stats_producer_service_1.StatProducerService,
|
|
21
|
-
{
|
|
22
|
-
provide: 'GLOBAL_MODULE_OPTIONS',
|
|
23
|
-
useValue: options,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
exports: [stats_producer_service_1.StatProducerService],
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.StatEventModule = StatEventModule;
|
|
31
|
-
exports.StatEventModule = StatEventModule = StatEventModule_1 = __decorate([
|
|
32
|
-
(0, common_1.Module)({})
|
|
33
|
-
], StatEventModule);
|
|
34
|
-
//# sourceMappingURL=stats.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stats.module.js","sourceRoot":"","sources":["../../src/jms/stats.module.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,2CAAsD;AAItD,qEAA8D;AAGvD,IAAM,eAAe,uBAArB,MAAM,eAAe;IAC1B,MAAM,CAAC,OAAO,CAAC,OAAyB;QACtC,OAAO;YACL,MAAM,EAAE,iBAAe;YACvB,OAAO,EAAE,OAAO,CAAC,OAAO;YACxB,WAAW,EAAE,EAAE;YACf,SAAS,EAAE;gBACT,4CAAmB;gBACnB;oBACE,OAAO,EAAE,uBAAuB;oBAChC,QAAQ,EAAE,OAAO;iBAClB;aACF;YACD,OAAO,EAAE,CAAC,4CAAmB,CAAC;SAC/B,CAAA;IACH,CAAC;CACF,CAAA;AAhBY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,eAAe,CAgB3B"}
|
package/build/messages/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./message.controller"), exports);
|
|
18
|
-
__exportStar(require("./message.module"), exports);
|
|
19
|
-
__exportStar(require("./message.service"), exports);
|
|
20
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAoC;AACpC,mDAAgC;AAChC,oDAAiC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MessageReceived, MessageStateUpdated } from '@verana-labs/vs-agent-model';
|
|
2
|
-
import { MessageEventService } from './message.service';
|
|
3
|
-
export declare class MessageEventController {
|
|
4
|
-
private readonly message;
|
|
5
|
-
private readonly logger;
|
|
6
|
-
constructor(message: MessageEventService);
|
|
7
|
-
received(body: MessageReceived): Promise<{
|
|
8
|
-
message: string;
|
|
9
|
-
}>;
|
|
10
|
-
updated(body: MessageStateUpdated): Promise<{
|
|
11
|
-
message: string;
|
|
12
|
-
}>;
|
|
13
|
-
}
|