@credo-ts/node 0.8.0-alpha-20261104213554 → 0.8.0-alpha-20261106144819
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommHttpInboundTransport.d.mts","names":[],"sources":["../../src/transport/DidCommHttpInboundTransport.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"DidCommHttpInboundTransport.d.mts","names":[],"sources":["../../src/transport/DidCommHttpInboundTransport.ts"],"mappings":";;;;qBA0Ba,uCAAuC;WAClC,KAAK;UACb;UACA;UACA;UACA;MAEG,UAAM,6BAAA,uCAAA;EAIE,cACjB,KACA,MACA,MACA;IAEI,KAAK;IAAS;IAAkB;IAAe;;IAC/C,MAAM;IAAS;IAAc;IAAe;;EASrC,MAAM,cAAc,eAAY;EA+BhC,QAAQ;UAQb"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CredoError, EventEmitter, utils } from "@credo-ts/core";
|
|
2
|
-
import { DidCommEventTypes, DidCommMimeType, DidCommModuleConfig, DidCommTransportService } from "@credo-ts/didcomm";
|
|
2
|
+
import { DIDCOMM_V2_ENCRYPTED_MIME_TYPE, DIDCOMM_V2_SIGNED_MIME_TYPE, DidCommEventTypes, DidCommMimeType, DidCommModuleConfig, DidCommTransportService, isDidCommV2EncryptedMessage, normalizeDidCommMediaType } from "@credo-ts/didcomm";
|
|
3
3
|
import express, { text } from "express";
|
|
4
4
|
import { ReplaySubject, filter, firstValueFrom, take, timeout } from "rxjs";
|
|
5
5
|
// src/transport/DidCommHttpInboundTransport.ts
|
|
@@ -39,12 +39,18 @@ var DidCommHttpInboundTransport = class {
|
|
|
39
39
|
return new Promise((resolve, reject) => this._server?.close((err) => err ? reject(err) : resolve()));
|
|
40
40
|
}
|
|
41
41
|
registerRoute(agentContext, transportService) {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
const acceptedContentTypes = agentContext.dependencyManager.resolve(DidCommModuleConfig).isSupported("v2") ? [
|
|
43
|
+
...supportedContentTypes,
|
|
44
|
+
DIDCOMM_V2_ENCRYPTED_MIME_TYPE,
|
|
45
|
+
DIDCOMM_V2_SIGNED_MIME_TYPE
|
|
46
|
+
] : supportedContentTypes;
|
|
47
|
+
const isAccepted = (contentType) => contentType !== void 0 && acceptedContentTypes.includes(normalizeDidCommMediaType(contentType));
|
|
48
|
+
const parseBody = text({
|
|
49
|
+
type: (req) => isAccepted(req.headers["content-type"]),
|
|
44
50
|
limit: "5mb"
|
|
45
|
-
})
|
|
46
|
-
|
|
47
|
-
if (!
|
|
51
|
+
});
|
|
52
|
+
this.app.post(this.path, parseBody, async (req, res) => {
|
|
53
|
+
if (!isAccepted(req.headers["content-type"])) return res.status(415).send(`Unsupported content-type. Supported content-types are: ${acceptedContentTypes.join(", ")}`);
|
|
48
54
|
const session = new HttpTransportSession(utils.uuid(), req, res);
|
|
49
55
|
req.once("close", () => transportService.removeSession(session));
|
|
50
56
|
try {
|
|
@@ -89,7 +95,9 @@ var HttpTransportSession = class {
|
|
|
89
95
|
if (this.res.headersSent) throw new CredoError(`${this.type} transport session has been closed.`);
|
|
90
96
|
let responseMimeType = agentContext.dependencyManager.resolve(DidCommModuleConfig).didCommMimeType;
|
|
91
97
|
const requestMimeType = this.req.headers["content-type"];
|
|
92
|
-
|
|
98
|
+
const normalized = requestMimeType ? normalizeDidCommMediaType(requestMimeType) : void 0;
|
|
99
|
+
if (isDidCommV2EncryptedMessage(encryptedMessage)) responseMimeType = DIDCOMM_V2_ENCRYPTED_MIME_TYPE;
|
|
100
|
+
else if (normalized && supportedContentTypes.includes(normalized)) responseMimeType = normalized;
|
|
93
101
|
this.res.status(200).contentType(responseMimeType).json(encryptedMessage).end();
|
|
94
102
|
}
|
|
95
103
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DidCommHttpInboundTransport.mjs","names":[],"sources":["../../src/transport/DidCommHttpInboundTransport.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport { CredoError, EventEmitter, utils } from '@credo-ts/core'\nimport type {\n DidCommEncryptedMessage,\n DidCommInboundTransport,\n DidCommMessageProcessedEvent,\n DidCommMessageReceivedEvent,\n DidCommTransportSession,\n} from '@credo-ts/didcomm'\nimport { DidCommEventTypes, DidCommMimeType, DidCommModuleConfig, DidCommTransportService } from '@credo-ts/didcomm'\nimport type { Express, Request, Response } from 'express'\nimport express, { text } from 'express'\nimport type { Server } from 'http'\nimport { filter, firstValueFrom, ReplaySubject, take, timeout } from 'rxjs'\n\nconst supportedContentTypes: string[] = [DidCommMimeType.V0, DidCommMimeType.V1]\n\nexport class DidCommHttpInboundTransport implements DidCommInboundTransport {\n public readonly app: Express\n private port?: number\n private path: string\n private _server?: Server\n private processedMessageListenerTimeoutMs: number\n\n public get server() {\n return this._server\n }\n\n public constructor({\n app,\n path,\n port,\n processedMessageListenerTimeoutMs,\n }:\n | { app: Express; port?: undefined; path?: string; processedMessageListenerTimeoutMs?: number }\n | { app?: Express; port: number; path?: string; processedMessageListenerTimeoutMs?: number }) {\n this.port = port\n this.processedMessageListenerTimeoutMs = processedMessageListenerTimeoutMs ?? 10000 // timeout after 10 seconds\n\n // Use the caller-provided Express app, or create one\n this.app = app ?? express()\n this.path = path ?? '/'\n }\n\n public async start(agentContext: AgentContext) {\n const transportService = agentContext.dependencyManager.resolve(DidCommTransportService)\n\n agentContext.config.logger.debug('Starting HTTP inbound transport', {\n port: this.port,\n })\n\n this.registerRoute(agentContext, transportService)\n\n if (this.port === undefined) {\n return\n }\n\n const server = this.app.listen(this.port)\n this._server = server\n\n await new Promise<void>((resolve, reject) => {\n const onError = (error: Error) => {\n server.off('listening', onListening)\n reject(error)\n }\n const onListening = () => {\n server.off('error', onError)\n resolve()\n }\n\n server.once('error', onError)\n server.once('listening', onListening)\n })\n }\n\n public async stop(): Promise<void> {\n if (!this._server) {\n return\n }\n\n return new Promise((resolve, reject) => this._server?.close((err) => (err ? reject(err) : resolve())))\n }\n\n private registerRoute(agentContext: AgentContext, transportService: DidCommTransportService) {\n this.app.post(this.path, text({ type: supportedContentTypes, limit: '5mb' }), async (req, res) => {\n const contentType = req.headers['content-type']\n\n if (!contentType || !supportedContentTypes.includes(contentType)) {\n return res\n .status(415)\n .send(`Unsupported content-type. Supported content-types are: ${supportedContentTypes.join(', ')}`)\n }\n\n const session = new HttpTransportSession(utils.uuid(), req, res)\n // We want to make sure the session is removed if the connection is closed, as it\n // can't be used anymore then. This could happen if the client abruptly closes the connection.\n req.once('close', () => transportService.removeSession(session))\n\n try {\n const message = req.body as string\n const encryptedMessage = JSON.parse(message) as DidCommEncryptedMessage\n\n const eventEmitter = agentContext.dependencyManager.resolve(EventEmitter)\n const observable = eventEmitter.observable<DidCommMessageProcessedEvent>(\n DidCommEventTypes.DidCommMessageProcessed\n )\n const subject = new ReplaySubject(1)\n\n observable\n .pipe(\n filter((e) => e.type === DidCommEventTypes.DidCommMessageProcessed),\n filter((e) => e.payload.encryptedMessage === encryptedMessage),\n timeout({\n first: this.processedMessageListenerTimeoutMs,\n meta: 'DidCommHttpInboundTransport.start',\n }),\n take(1) // automatically unsubscribe after the first matching event\n )\n .subscribe(subject)\n\n eventEmitter.emit<DidCommMessageReceivedEvent>(agentContext, {\n type: DidCommEventTypes.DidCommMessageReceived,\n payload: {\n message: encryptedMessage,\n session: session,\n },\n })\n\n // Wait for message to be processed\n await firstValueFrom(subject)\n\n // If agent did not use session when processing message we need to send response here.\n if (!res.headersSent) {\n res.status(200).end()\n }\n } catch (error) {\n agentContext.config.logger.error(`Error processing inbound message: ${error.message}`, error)\n\n if (!res.headersSent) {\n res.status(500).send('Error processing message')\n }\n } finally {\n transportService.removeSession(session)\n }\n })\n }\n}\n\nexport class HttpTransportSession implements DidCommTransportSession {\n public id: string\n public readonly type = 'http'\n public req: Request\n public res: Response\n\n public constructor(id: string, req: Request, res: Response) {\n this.id = id\n this.req = req\n this.res = res\n }\n\n public async close(): Promise<void> {\n if (!this.res.headersSent) {\n this.res.status(200).end()\n }\n }\n\n public async send(agentContext: AgentContext, encryptedMessage: DidCommEncryptedMessage): Promise<void> {\n if (this.res.headersSent) {\n throw new CredoError(`${this.type} transport session has been closed.`)\n }\n\n // By default we take the agent config's default DIDComm content-type\n const didcommConfig = agentContext.dependencyManager.resolve(DidCommModuleConfig)\n let responseMimeType = didcommConfig.didCommMimeType as string\n\n // However, if the request mime-type is a mime-type that is supported by us, we use that\n // to minimize the chance of interoperability issues\n const requestMimeType = this.req.headers['content-type']\n if (requestMimeType && supportedContentTypes.includes(requestMimeType)) {\n responseMimeType = requestMimeType\n }\n\n this.res.status(200).contentType(responseMimeType).json(encryptedMessage).end()\n }\n}\n"],"mappings":";;;;;AAeA,MAAM,wBAAkC,CAAC,gBAAgB,IAAI,gBAAgB,EAAE;AAE/E,IAAa,8BAAb,MAA4E;CAO1E,IAAW,SAAS;EAClB,OAAO,KAAK;CACd;CAEA,YAAmB,EACjB,KACA,MACA,MACA,qCAG8F;EAC9F,KAAK,OAAO;EACZ,KAAK,oCAAoC,qCAAqC;EAG9E,KAAK,MAAM,OAAO,QAAQ;EAC1B,KAAK,OAAO,QAAQ;CACtB;CAEA,MAAa,MAAM,cAA4B;EAC7C,MAAM,mBAAmB,aAAa,kBAAkB,QAAQ,uBAAuB;EAEvF,aAAa,OAAO,OAAO,MAAM,mCAAmC,EAClE,MAAM,KAAK,KACb,CAAC;EAED,KAAK,cAAc,cAAc,gBAAgB;EAEjD,IAAI,KAAK,SAAS,KAAA,GAChB;EAGF,MAAM,SAAS,KAAK,IAAI,OAAO,KAAK,IAAI;EACxC,KAAK,UAAU;EAEf,MAAM,IAAI,SAAe,SAAS,WAAW;GAC3C,MAAM,WAAW,UAAiB;IAChC,OAAO,IAAI,aAAa,WAAW;IACnC,OAAO,KAAK;GACd;GACA,MAAM,oBAAoB;IACxB,OAAO,IAAI,SAAS,OAAO;IAC3B,QAAQ;GACV;GAEA,OAAO,KAAK,SAA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S,OAAO;IACd,aAAa,OAAO,OAAO,MAAM,qCAAqC,MAAM,WAAW,KAAK;IAE5F,IAAI,CAAC,IAAI,aACP,IAAI,OAAO,GAAG,CAAC,CAAC,KAAK,0BAA0B;GAEnD,UAAU;IACR,iBAAiB,cAAc,OAAO;GACxC;EACF,CAAC;CACH;AACF;AAEA,IAAa,uBAAb,MAAqE;CAMnE,YAAmB,IAAY,KAAc,KAAe;EAJ5D,KAAgB,OAAO;EAKrB,KAAK,KAAK;EACV,KAAK,MAAM;EACX,KAAK,MAAM;CACb;CAEA,MAAa,QAAuB;EAClC,IAAI,CAAC,KAAK,IAAI,aACZ,KAAK,IAAI,OAAO,GAAG,CAAC,CAAC,IAAI;CAE7B;CAEA,MAAa,KAAK,cAA4B,kBAA0D;EACtG,IAAI,KAAK,IAAI,aACX,MAAM,IAAI,WAAW,GAAG,KAAK,KAAK,oCAAoC;EAKxE,IAAI,mBADkB,aAAa,kBAAkB,QAAQ,mBAC1B,CAAC,CAAC;EAIrC,MAAM,kBAAkB,KAAK,IAAI,QAAQ;EACzC,IAAI,mBAAmB,sBAAsB,SAAS,eAAe,GACnE,mBAAmB;EAGrB,KAAK,IAAI,OAAO,GAAG,CAAC,CAAC,YAAY,gBAAgB,CAAC,CAAC,KAAK,gBAAgB,CAAC,CAAC,IAAI;CAChF;AACF"}
|
|
1
|
+
{"version":3,"file":"DidCommHttpInboundTransport.mjs","names":[],"sources":["../../src/transport/DidCommHttpInboundTransport.ts"],"sourcesContent":["import type { AgentContext } from '@credo-ts/core'\nimport { CredoError, EventEmitter, utils } from '@credo-ts/core'\nimport type {\n DidCommEncryptedMessage,\n DidCommInboundTransport,\n DidCommMessageProcessedEvent,\n DidCommMessageReceivedEvent,\n DidCommTransportSession,\n} from '@credo-ts/didcomm'\nimport {\n DIDCOMM_V2_ENCRYPTED_MIME_TYPE,\n DIDCOMM_V2_SIGNED_MIME_TYPE,\n DidCommEventTypes,\n DidCommMimeType,\n DidCommModuleConfig,\n DidCommTransportService,\n isDidCommV2EncryptedMessage,\n normalizeDidCommMediaType,\n} from '@credo-ts/didcomm'\nimport type { Express, Request, Response } from 'express'\nimport express, { text } from 'express'\nimport type { Server } from 'http'\nimport { filter, firstValueFrom, ReplaySubject, take, timeout } from 'rxjs'\n\nconst supportedContentTypes: string[] = [DidCommMimeType.V0, DidCommMimeType.V1]\n\nexport class DidCommHttpInboundTransport implements DidCommInboundTransport {\n public readonly app: Express\n private port?: number\n private path: string\n private _server?: Server\n private processedMessageListenerTimeoutMs: number\n\n public get server() {\n return this._server\n }\n\n public constructor({\n app,\n path,\n port,\n processedMessageListenerTimeoutMs,\n }:\n | { app: Express; port?: undefined; path?: string; processedMessageListenerTimeoutMs?: number }\n | { app?: Express; port: number; path?: string; processedMessageListenerTimeoutMs?: number }) {\n this.port = port\n this.processedMessageListenerTimeoutMs = processedMessageListenerTimeoutMs ?? 10000 // timeout after 10 seconds\n\n // Use the caller-provided Express app, or create one\n this.app = app ?? express()\n this.path = path ?? '/'\n }\n\n public async start(agentContext: AgentContext) {\n const transportService = agentContext.dependencyManager.resolve(DidCommTransportService)\n\n agentContext.config.logger.debug('Starting HTTP inbound transport', {\n port: this.port,\n })\n\n this.registerRoute(agentContext, transportService)\n\n if (this.port === undefined) {\n return\n }\n\n const server = this.app.listen(this.port)\n this._server = server\n\n await new Promise<void>((resolve, reject) => {\n const onError = (error: Error) => {\n server.off('listening', onListening)\n reject(error)\n }\n const onListening = () => {\n server.off('error', onError)\n resolve()\n }\n\n server.once('error', onError)\n server.once('listening', onListening)\n })\n }\n\n public async stop(): Promise<void> {\n if (!this._server) {\n return\n }\n\n return new Promise((resolve, reject) => this._server?.close((err) => (err ? reject(err) : resolve())))\n }\n\n private registerRoute(agentContext: AgentContext, transportService: DidCommTransportService) {\n const acceptedContentTypes = agentContext.dependencyManager.resolve(DidCommModuleConfig).isSupported('v2')\n ? [...supportedContentTypes, DIDCOMM_V2_ENCRYPTED_MIME_TYPE, DIDCOMM_V2_SIGNED_MIME_TYPE]\n : supportedContentTypes\n const isAccepted = (contentType: string | undefined): boolean =>\n contentType !== undefined && acceptedContentTypes.includes(normalizeDidCommMediaType(contentType))\n\n const parseBody = text({ type: (req) => isAccepted(req.headers['content-type']), limit: '5mb' })\n this.app.post(this.path, parseBody, async (req, res) => {\n if (!isAccepted(req.headers['content-type'])) {\n return res\n .status(415)\n .send(`Unsupported content-type. Supported content-types are: ${acceptedContentTypes.join(', ')}`)\n }\n\n const session = new HttpTransportSession(utils.uuid(), req, res)\n // We want to make sure the session is removed if the connection is closed, as it\n // can't be used anymore then. This could happen if the client abruptly closes the connection.\n req.once('close', () => transportService.removeSession(session))\n\n try {\n const message = req.body as string\n const encryptedMessage = JSON.parse(message) as DidCommEncryptedMessage\n\n const eventEmitter = agentContext.dependencyManager.resolve(EventEmitter)\n const observable = eventEmitter.observable<DidCommMessageProcessedEvent>(\n DidCommEventTypes.DidCommMessageProcessed\n )\n const subject = new ReplaySubject(1)\n\n observable\n .pipe(\n filter((e) => e.type === DidCommEventTypes.DidCommMessageProcessed),\n filter((e) => e.payload.encryptedMessage === encryptedMessage),\n timeout({\n first: this.processedMessageListenerTimeoutMs,\n meta: 'DidCommHttpInboundTransport.start',\n }),\n take(1) // automatically unsubscribe after the first matching event\n )\n .subscribe(subject)\n\n eventEmitter.emit<DidCommMessageReceivedEvent>(agentContext, {\n type: DidCommEventTypes.DidCommMessageReceived,\n payload: {\n message: encryptedMessage,\n session: session,\n },\n })\n\n // Wait for message to be processed\n await firstValueFrom(subject)\n\n // If agent did not use session when processing message we need to send response here.\n if (!res.headersSent) {\n res.status(200).end()\n }\n } catch (error) {\n agentContext.config.logger.error(`Error processing inbound message: ${error.message}`, error)\n\n if (!res.headersSent) {\n res.status(500).send('Error processing message')\n }\n } finally {\n transportService.removeSession(session)\n }\n })\n }\n}\n\nexport class HttpTransportSession implements DidCommTransportSession {\n public id: string\n public readonly type = 'http'\n public req: Request\n public res: Response\n\n public constructor(id: string, req: Request, res: Response) {\n this.id = id\n this.req = req\n this.res = res\n }\n\n public async close(): Promise<void> {\n if (!this.res.headersSent) {\n this.res.status(200).end()\n }\n }\n\n public async send(agentContext: AgentContext, encryptedMessage: DidCommEncryptedMessage): Promise<void> {\n if (this.res.headersSent) {\n throw new CredoError(`${this.type} transport session has been closed.`)\n }\n\n // By default we take the agent config's default DIDComm content-type\n const didcommConfig = agentContext.dependencyManager.resolve(DidCommModuleConfig)\n let responseMimeType = didcommConfig.didCommMimeType as string\n\n // However, if the request mime-type is a mime-type that is supported by us, we use that\n // to minimize the chance of interoperability issues\n const requestMimeType = this.req.headers['content-type']\n const normalized = requestMimeType ? normalizeDidCommMediaType(requestMimeType) : undefined\n if (isDidCommV2EncryptedMessage(encryptedMessage)) {\n responseMimeType = DIDCOMM_V2_ENCRYPTED_MIME_TYPE\n } else if (normalized && supportedContentTypes.includes(normalized)) {\n responseMimeType = normalized\n }\n\n this.res.status(200).contentType(responseMimeType).json(encryptedMessage).end()\n }\n}\n"],"mappings":";;;;;AAwBA,MAAM,wBAAkC,CAAC,gBAAgB,IAAI,gBAAgB,EAAE;AAE/E,IAAa,8BAAb,MAA4E;CAO1E,IAAW,SAAS;EAClB,OAAO,KAAK;CACd;CAEA,YAAmB,EACjB,KACA,MACA,MACA,qCAG8F;EAC9F,KAAK,OAAO;EACZ,KAAK,oCAAoC,qCAAqC;EAG9E,KAAK,MAAM,OAAO,QAAQ;EAC1B,KAAK,OAAO,QAAQ;CACtB;CAEA,MAAa,MAAM,cAA4B;EAC7C,MAAM,mBAAmB,aAAa,kBAAkB,QAAQ,uBAAuB;EAEvF,aAAa,OAAO,OAAO,MAAM,mCAAmC,EAClE,MAAM,KAAK,KACb,CAAC;EAED,KAAK,cAAc,cAAc,gBAAgB;EAEjD,IAAI,KAAK,SAAS,KAAA,GAChB;EAGF,MAAM,SAAS,KAAK,IAAI,OAAO,KAAK,IAAI;EACxC,KAAK,UAAU;EAEf,MAAM,IAAI,SAAe,SAAS,WAAW;GAC3C,M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AgB,CAAC,CAAC,KAAK,gBAAgB,CAAC,CAAC,IAAI;CAChF;AACF"}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
".": "./build/index.mjs",
|
|
5
5
|
"./package.json": "./package.json"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.8.0-alpha-
|
|
7
|
+
"version": "0.8.0-alpha-20261106144819",
|
|
8
8
|
"files": [
|
|
9
9
|
"build"
|
|
10
10
|
],
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
"directory": "packages/node"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@credo-ts/core": "0.8.0-alpha-
|
|
26
|
-
"@credo-ts/didcomm": "0.8.0-alpha-
|
|
25
|
+
"@credo-ts/core": "0.8.0-alpha-20261106144819",
|
|
26
|
+
"@credo-ts/didcomm": "0.8.0-alpha-20261106144819",
|
|
27
27
|
"@types/node": "^22.19.0",
|
|
28
28
|
"@types/express": "^5.0.6",
|
|
29
29
|
"@types/ws": "^8.18.2",
|