@credo-ts/node 0.7.1-alpha-20260615091021 → 0.7.1-alpha-20260618111320

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.
@@ -0,0 +1,33 @@
1
+ import { DownloadToFileOptions, FileSystem } from "@credo-ts/core";
2
+
3
+ //#region src/NodeFileSystem.d.ts
4
+ declare class NodeFileSystem implements FileSystem {
5
+ readonly dataPath: string;
6
+ readonly cachePath: string;
7
+ readonly tempPath: string;
8
+ /**
9
+ * Create new NodeFileSystem class instance.
10
+ *
11
+ * @param baseDataPath The base path to use for reading and writing data files used within the framework.
12
+ * Files will be created under baseDataPath/.afj directory. If not specified, it will be set to homedir()
13
+ * @param baseCachePath The base path to use for reading and writing cache files used within the framework.
14
+ * Files will be created under baseCachePath/.afj directory. If not specified, it will be set to homedir()
15
+ * @param baseTempPath The base path to use for reading and writing temporary files within the framework.
16
+ * Files will be created under baseTempPath/.afj directory. If not specified, it will be set to tmpdir()
17
+ */
18
+ constructor(options?: {
19
+ baseDataPath?: string;
20
+ baseCachePath?: string;
21
+ baseTempPath?: string;
22
+ });
23
+ exists(path: string): Promise<boolean>;
24
+ createDirectory(path: string): Promise<void>;
25
+ copyFile(sourcePath: string, destinationPath: string): Promise<void>;
26
+ write(path: string, data: string): Promise<void>;
27
+ read(path: string): Promise<string>;
28
+ delete(path: string): Promise<void>;
29
+ downloadToFile(url: string, path: string, options: DownloadToFileOptions): Promise<void>;
30
+ }
31
+ //#endregion
32
+ export { NodeFileSystem };
33
+ //# sourceMappingURL=NodeFileSystem.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NodeFileSystem.d.mts","names":[],"sources":["../src/NodeFileSystem.ts"],"mappings":";;;cAWa,cAAA,YAA0B,UAAA;EAAA,SACrB,QAAA;EAAA,SACA,SAAA;EAAA,SACA,QAAA;;;;;;;;;;;cAYG,OAAA;IAAY,YAAA;IAAuB,aAAA;IAAwB,YAAA;EAAA;EAMjE,MAAA,CAAO,IAAA,WAAY,OAAA;EASnB,eAAA,CAAgB,IAAA,WAAe,OAAA;EAI/B,QAAA,CAAS,UAAA,UAAoB,eAAA,WAA0B,OAAA;EAIvD,KAAA,CAAM,IAAA,UAAc,IAAA,WAAe,OAAA;EAOnC,IAAA,CAAK,IAAA,WAAe,OAAA;EAIpB,MAAA,CAAO,IAAA,WAAe,OAAA;EAItB,cAAA,CAAe,GAAA,UAAa,IAAA,UAAc,OAAA,EAAS,qBAAA,GAAqB,OAAA;AAAA"}
package/build/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { NodeFileSystem } from "./NodeFileSystem.mjs";
1
2
  import { DidCommHttpInboundTransport } from "./transport/DidCommHttpInboundTransport.mjs";
2
3
  import { DidCommWsInboundTransport } from "./transport/DidCommWsInboundTransport.mjs";
3
4
  import { NodeKeyManagementStorage } from "./kms/NodeKeyManagementStorage.mjs";
@@ -8,5 +9,5 @@ import { AgentDependencies } from "@credo-ts/core";
8
9
  //#region src/index.d.ts
9
10
  declare const agentDependencies: AgentDependencies;
10
11
  //#endregion
11
- export { DidCommHttpInboundTransport, DidCommWsInboundTransport, NodeInMemoryKeyManagementStorage, NodeKeyManagementService, type NodeKeyManagementStorage, agentDependencies };
12
+ export { DidCommHttpInboundTransport, DidCommWsInboundTransport, NodeFileSystem, NodeInMemoryKeyManagementStorage, NodeKeyManagementService, type NodeKeyManagementStorage, agentDependencies };
12
13
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;cAaM,iBAAA,EAAmB,iBAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;cAaM,iBAAA,EAAmB,iBAAA"}
package/build/index.mjs CHANGED
@@ -15,5 +15,5 @@ const agentDependencies = {
15
15
  };
16
16
 
17
17
  //#endregion
18
- export { DidCommHttpInboundTransport, DidCommWsInboundTransport, NodeInMemoryKeyManagementStorage, NodeKeyManagementService, agentDependencies };
18
+ export { DidCommHttpInboundTransport, DidCommWsInboundTransport, NodeFileSystem, NodeInMemoryKeyManagementStorage, NodeKeyManagementService, agentDependencies };
19
19
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["WebSocket"],"sources":["../src/index.ts"],"sourcesContent":["import type { AgentDependencies } from '@credo-ts/core'\n\nimport { EventEmitter } from 'events'\nimport { WebSocket } from 'ws'\n\nimport { NodeFileSystem } from './NodeFileSystem'\nimport { DidCommHttpInboundTransport } from './transport/DidCommHttpInboundTransport'\nimport { DidCommWsInboundTransport } from './transport/DidCommWsInboundTransport'\n\nexport { NodeInMemoryKeyManagementStorage } from './kms/NodeInMemoryKeyManagementStorage'\nexport { NodeKeyManagementService } from './kms/NodeKeyManagementService'\nexport type { NodeKeyManagementStorage } from './kms/NodeKeyManagementStorage'\n\nconst agentDependencies: AgentDependencies = {\n FileSystem: NodeFileSystem,\n fetch,\n EventEmitterClass: EventEmitter,\n WebSocketClass: WebSocket,\n}\n\nexport { agentDependencies, DidCommHttpInboundTransport, DidCommWsInboundTransport }\n"],"mappings":";;;;;;;;;AAaA,MAAM,oBAAuC;CAC3C,YAAY;CACZ;CACA,mBAAmB;CACnB,gBAAgBA;CACjB"}
1
+ {"version":3,"file":"index.mjs","names":["WebSocket"],"sources":["../src/index.ts"],"sourcesContent":["import type { AgentDependencies } from '@credo-ts/core'\n\nimport { EventEmitter } from 'events'\nimport { WebSocket } from 'ws'\n\nimport { NodeFileSystem } from './NodeFileSystem'\nimport { DidCommHttpInboundTransport } from './transport/DidCommHttpInboundTransport'\nimport { DidCommWsInboundTransport } from './transport/DidCommWsInboundTransport'\n\nexport { NodeInMemoryKeyManagementStorage } from './kms/NodeInMemoryKeyManagementStorage'\nexport { NodeKeyManagementService } from './kms/NodeKeyManagementService'\nexport type { NodeKeyManagementStorage } from './kms/NodeKeyManagementStorage'\n\nconst agentDependencies: AgentDependencies = {\n FileSystem: NodeFileSystem,\n fetch,\n EventEmitterClass: EventEmitter,\n WebSocketClass: WebSocket,\n}\n\nexport { agentDependencies, DidCommHttpInboundTransport, DidCommWsInboundTransport, NodeFileSystem }\n"],"mappings":";;;;;;;;;AAaA,MAAM,oBAAuC;CAC3C,YAAY;CACZ;CACA,mBAAmB;CACnB,gBAAgBA;CACjB"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  ".": "./build/index.mjs",
5
5
  "./package.json": "./package.json"
6
6
  },
7
- "version": "0.7.1-alpha-20260615091021",
7
+ "version": "0.7.1-alpha-20260618111320",
8
8
  "files": [
9
9
  "build"
10
10
  ],
@@ -26,8 +26,8 @@
26
26
  "express": "^5.2.1",
27
27
  "rxjs": "^7.8.2",
28
28
  "ws": "^8.19.0",
29
- "@credo-ts/core": "0.7.1-alpha-20260615091021",
30
- "@credo-ts/didcomm": "0.7.1-alpha-20260615091021"
29
+ "@credo-ts/core": "0.7.1-alpha-20260618111320",
30
+ "@credo-ts/didcomm": "0.7.1-alpha-20260618111320"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@types/node": "^20.19.31",