@verana-labs/vs-agent-sdk 2.0.0-dev.92 → 2.0.0-dev.94
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,7 +2,6 @@ import type { BaseAgentModules, VsAgent } from '../agent/VsAgent';
|
|
|
2
2
|
import { BaseRecord } from '@credo-ts/core';
|
|
3
3
|
import { DidCommConnectionRecord, DidCommMessage } from '@credo-ts/didcomm';
|
|
4
4
|
type Agent = VsAgent<BaseAgentModules>;
|
|
5
|
-
export declare function moduleService<T>(agent: Agent, service: new (...args: any[]) => T, module: string): T;
|
|
6
5
|
export declare function connectionOf(agent: Agent, connectionId: string): Promise<DidCommConnectionRecord>;
|
|
7
6
|
export declare function sendMessage(agent: Agent, connection: DidCommConnectionRecord, message: DidCommMessage, associatedRecord?: BaseRecord<any, any, any>): Promise<string>;
|
|
8
7
|
export {};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.moduleService = moduleService;
|
|
4
3
|
exports.connectionOf = connectionOf;
|
|
5
4
|
exports.sendMessage = sendMessage;
|
|
6
5
|
const didcomm_1 = require("@credo-ts/didcomm");
|
|
7
6
|
const AdminApiError_1 = require("./AdminApiError");
|
|
8
|
-
function moduleService(agent, service, module) {
|
|
9
|
-
const { dependencyManager } = agent.context;
|
|
10
|
-
if (!dependencyManager.isRegistered(service))
|
|
11
|
-
throw (0, AdminApiError_1.moduleNotServed)(module);
|
|
12
|
-
return dependencyManager.resolve(service);
|
|
13
|
-
}
|
|
14
7
|
async function connectionOf(agent, connectionId) {
|
|
15
8
|
const connection = await agent.didcomm.connections.findById(connectionId);
|
|
16
9
|
if (!connection)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"moduleEndpoint.js","sourceRoot":"","sources":["../../src/adminApi/moduleEndpoint.ts"],"names":[],"mappings":";;AAcA,
|
|
1
|
+
{"version":3,"file":"moduleEndpoint.js","sourceRoot":"","sources":["../../src/adminApi/moduleEndpoint.ts"],"names":[],"mappings":";;AAcA,oCAIC;AAED,kCAcC;AA/BD,+CAK0B;AAE1B,mDAAmD;AAI5C,KAAK,UAAU,YAAY,CAAC,KAAY,EAAE,YAAoB;IACnE,MAAM,UAAU,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAA;IACzE,IAAI,CAAC,UAAU;QAAE,MAAM,IAAA,iCAAiB,EAAC,YAAY,CAAC,CAAA;IACtD,OAAO,UAAU,CAAA;AACnB,CAAC;AAEM,KAAK,UAAU,WAAW,CAC/B,KAAY,EACZ,UAAmC,EACnC,OAAuB,EACvB,gBAA4C;IAE5C,MAAM,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC,OAAO,CAAC,8BAAoB,CAAC,CAAC,WAAW,CAC7E,IAAI,uCAA6B,CAAC,OAAO,EAAE;QACzC,YAAY,EAAE,KAAK,CAAC,OAAO;QAC3B,UAAU;QACV,gBAAgB;KACjB,CAAC,CACH,CAAA;IACD,OAAO,OAAO,CAAC,EAAE,CAAA;AACnB,CAAC"}
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"default": "./build/index.js"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
"version": "2.0.0-dev.
|
|
12
|
+
"version": "2.0.0-dev.94",
|
|
13
13
|
"repository": {
|
|
14
14
|
"type": "git",
|
|
15
15
|
"url": "https://github.com/verana-labs/vs-agent"
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"didwebvh-ts": "^2.8.0",
|
|
51
51
|
"express": "^4.18.1",
|
|
52
52
|
"tsyringe": "4.8.0",
|
|
53
|
-
"@verana-labs/
|
|
54
|
-
"@verana-labs/
|
|
53
|
+
"@verana-labs/credo-ts-didcomm-vt-flow": "2.0.0-dev.94",
|
|
54
|
+
"@verana-labs/vs-agent-model": "2.0.0-dev.94"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
57
|
"@credo-ts/core": "0.7.1-pr-2704-20260909134930",
|