@the-ai-company/cbio-node-runtime 1.63.3 → 1.63.6

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.
Files changed (233) hide show
  1. package/README.md +48 -209
  2. package/dist/clients/agent/client.d.ts +18 -40
  3. package/dist/clients/agent/client.js +22 -109
  4. package/dist/clients/agent/client.js.map +1 -1
  5. package/dist/clients/agent/contracts.d.ts +1 -8
  6. package/dist/clients/agent/index.d.ts +1 -1
  7. package/dist/clients/owner/client.d.ts +2 -102
  8. package/dist/clients/owner/client.js +111 -266
  9. package/dist/clients/owner/client.js.map +1 -1
  10. package/dist/clients/owner/contracts.d.ts +37 -75
  11. package/dist/clients/owner/index.d.ts +2 -4
  12. package/dist/clients/owner/index.js +1 -2
  13. package/dist/clients/owner/index.js.map +1 -1
  14. package/dist/internal/id-factory.d.ts +0 -2
  15. package/dist/internal/id-factory.js +0 -6
  16. package/dist/internal/id-factory.js.map +1 -1
  17. package/dist/protocol/identity.d.ts +1 -1
  18. package/dist/protocol/identity.js +3 -3
  19. package/dist/protocol/identity.js.map +1 -1
  20. package/dist/public-types.d.ts +5 -14
  21. package/dist/public-types.js +1 -8
  22. package/dist/public-types.js.map +1 -1
  23. package/dist/runtime/bootstrap.d.ts +1 -3
  24. package/dist/runtime/bootstrap.js.map +1 -1
  25. package/dist/runtime/identity.d.ts +2 -2
  26. package/dist/runtime/identity.js +3 -5
  27. package/dist/runtime/identity.js.map +1 -1
  28. package/dist/runtime/index.d.ts +10 -12
  29. package/dist/runtime/index.js +7 -8
  30. package/dist/runtime/index.js.map +1 -1
  31. package/dist/runtime/owner-session.d.ts +7 -6
  32. package/dist/runtime/owner-session.js +5 -6
  33. package/dist/runtime/owner-session.js.map +1 -1
  34. package/dist/storage/fs.d.ts +3 -2
  35. package/dist/storage/fs.js +8 -5
  36. package/dist/storage/fs.js.map +1 -1
  37. package/dist/storage/prefix.d.ts +1 -0
  38. package/dist/storage/prefix.js +7 -0
  39. package/dist/storage/prefix.js.map +1 -1
  40. package/dist/storage/provider.d.ts +2 -0
  41. package/dist/vault-core/contracts.d.ts +95 -210
  42. package/dist/vault-core/contracts.js +8 -11
  43. package/dist/vault-core/contracts.js.map +1 -1
  44. package/dist/vault-core/core.d.ts +119 -62
  45. package/dist/vault-core/core.js +518 -1180
  46. package/dist/vault-core/core.js.map +1 -1
  47. package/dist/vault-core/defaults.d.ts +22 -44
  48. package/dist/vault-core/defaults.js +65 -234
  49. package/dist/vault-core/defaults.js.map +1 -1
  50. package/dist/vault-core/errors.d.ts +3 -2
  51. package/dist/vault-core/errors.js.map +1 -1
  52. package/dist/vault-core/index.d.ts +5 -5
  53. package/dist/vault-core/index.js +2 -2
  54. package/dist/vault-core/index.js.map +1 -1
  55. package/dist/vault-core/persistence.d.ts +72 -119
  56. package/dist/vault-core/persistence.js +310 -427
  57. package/dist/vault-core/persistence.js.map +1 -1
  58. package/dist/vault-core/ports.d.ts +19 -30
  59. package/dist/vault-core/read-policy.d.ts +3 -2
  60. package/dist/vault-core/read-policy.js.map +1 -1
  61. package/dist/vault-core/tool-metadata.js +2 -2
  62. package/dist/vault-core/tool-metadata.js.map +1 -1
  63. package/dist/vault-ingress/defaults.d.ts +4 -2
  64. package/dist/vault-ingress/defaults.js +14 -8
  65. package/dist/vault-ingress/defaults.js.map +1 -1
  66. package/dist/vault-ingress/index.d.ts +39 -119
  67. package/dist/vault-ingress/index.js +98 -456
  68. package/dist/vault-ingress/index.js.map +1 -1
  69. package/dist/vault-ingress/remote-transport.d.ts +5 -3
  70. package/dist/vault-ingress/remote-transport.js +8 -28
  71. package/dist/vault-ingress/remote-transport.js.map +1 -1
  72. package/docs/ARCHITECTURE.md +39 -22
  73. package/docs/CUSTODY_MODEL.md +1 -1
  74. package/docs/IDENTITY_MODEL.md +5 -5
  75. package/docs/MIGRATION-1.51.md +19 -19
  76. package/docs/MIGRATION-1.65.md +87 -0
  77. package/docs/PROCESS_ISOLATION.md +2 -2
  78. package/docs/REFERENCE.md +42 -224
  79. package/docs/api/README.md +48 -30
  80. package/docs/api/classes/IdentityError.md +1 -1
  81. package/docs/api/classes/OwnerClientError.md +1 -1
  82. package/docs/api/classes/PersistentVaultAgentIdentityRegistry.md +89 -0
  83. package/docs/api/classes/PersistentVaultAgentSecretGrantRegistry.md +125 -0
  84. package/docs/api/classes/PersistentVaultAuditLog.md +65 -0
  85. package/docs/api/classes/PersistentVaultSecretCustody.md +93 -0
  86. package/docs/api/classes/PersistentVaultSecretDestinationGrantRegistry.md +125 -0
  87. package/docs/api/classes/PersistentVaultSecretRepository.md +127 -0
  88. package/docs/api/classes/VaultCore.md +264 -237
  89. package/docs/api/classes/VaultCoreError.md +3 -3
  90. package/docs/api/enumerations/AuditAction.md +143 -0
  91. package/docs/api/enumerations/AuditOutcome.md +35 -0
  92. package/docs/api/enumerations/DispatchStatus.md +35 -0
  93. package/docs/api/enumerations/IdentityErrorCode.md +1 -1
  94. package/docs/api/enumerations/OwnerClientErrorCode.md +1 -1
  95. package/docs/api/functions/createAgentClient.md +1 -15
  96. package/docs/api/functions/createIdentity.md +2 -2
  97. package/docs/api/functions/createOwnerClient.md +17 -0
  98. package/docs/api/functions/createOwnerSession.md +1 -1
  99. package/docs/api/functions/createPersistentVaultCoreDependencies.md +4 -4
  100. package/docs/api/functions/createVault.md +1 -1
  101. package/docs/api/functions/createVaultCore.md +1 -1
  102. package/docs/api/functions/createVaultCoreDependencies.md +1 -1
  103. package/docs/api/functions/createVaultService.md +5 -13
  104. package/docs/api/functions/createWorkspaceStorage.md +1 -1
  105. package/docs/api/functions/deriveRootAgentId.md +17 -0
  106. package/docs/api/functions/deriveVaultWorkingKeyFromPassword.md +1 -1
  107. package/docs/api/functions/getDefaultWorkspaceDir.md +1 -1
  108. package/docs/api/functions/handleVaultAgentControlHttp.md +2 -2
  109. package/docs/api/functions/handleVaultHttpDispatch.md +2 -2
  110. package/docs/api/functions/initializeVaultCustody.md +7 -3
  111. package/docs/api/functions/listVaults.md +1 -1
  112. package/docs/api/functions/readVaultProfile.md +1 -1
  113. package/docs/api/functions/recoverVault.md +1 -1
  114. package/docs/api/functions/recoverVaultWorkingKey.md +4 -8
  115. package/docs/api/functions/restoreIdentity.md +1 -1
  116. package/docs/api/functions/updateVaultMetadata.md +1 -1
  117. package/docs/api/functions/writeVaultProfile.md +1 -1
  118. package/docs/api/interfaces/AgentClient.md +20 -59
  119. package/docs/api/interfaces/AgentDispatchIntent.md +1 -1
  120. package/docs/api/interfaces/AgentDispatchTransport.md +12 -44
  121. package/docs/api/interfaces/AgentIdentity.md +3 -3
  122. package/docs/api/interfaces/AgentIdentityRecord.md +47 -0
  123. package/docs/api/interfaces/AgentRequestResult.md +35 -0
  124. package/docs/api/interfaces/AgentRuntimeManifest.md +55 -0
  125. package/docs/api/interfaces/AgentSecretGrant.md +41 -0
  126. package/docs/api/interfaces/AgentSigner.md +1 -1
  127. package/docs/api/interfaces/AgentVisibleRequestRecord.md +53 -0
  128. package/docs/api/interfaces/AgentVisibleSecretRecord.md +65 -0
  129. package/docs/api/interfaces/AuditEntry.md +83 -0
  130. package/docs/api/interfaces/CbioRuntime.md +13 -154
  131. package/docs/api/interfaces/CreateAgentClientOptions.md +4 -10
  132. package/docs/api/interfaces/CreateIdentityOptions.md +1 -1
  133. package/docs/api/interfaces/{CreateVaultClientOptions.md → CreateOwnerClientOptions.md} +9 -11
  134. package/docs/api/interfaces/CreateOwnerSessionOptions.md +3 -121
  135. package/docs/api/interfaces/CreatePersistentVaultCoreDependenciesOptions.md +3 -131
  136. package/docs/api/interfaces/CreateVaultOptions.md +1 -125
  137. package/docs/api/interfaces/CreatedVault.md +2 -2
  138. package/docs/api/interfaces/DefaultPolicyEngineOptions.md +1 -13
  139. package/docs/api/interfaces/DispatchAuthorization.md +43 -0
  140. package/docs/api/interfaces/DispatchInstruction.md +47 -0
  141. package/docs/api/interfaces/DispatchRequest.md +83 -0
  142. package/docs/api/interfaces/DispatchResult.md +53 -0
  143. package/docs/api/interfaces/IStorageProvider.md +13 -1
  144. package/docs/api/interfaces/InitializeVaultCustodyOptions.md +31 -11
  145. package/docs/api/interfaces/InitializedVaultCustody.md +1 -7
  146. package/docs/api/interfaces/OwnerAgentProvisionResult.md +2 -2
  147. package/docs/api/interfaces/OwnerClient.md +401 -0
  148. package/docs/api/interfaces/OwnerCreateSecretInput.md +1 -1
  149. package/docs/api/interfaces/OwnerRemoveSecretInput.md +1 -1
  150. package/docs/api/interfaces/OwnerRequestRecord.md +97 -0
  151. package/docs/api/interfaces/OwnerSensitiveActionConfirmation.md +1 -1
  152. package/docs/api/interfaces/OwnerSensitiveActionContext.md +1 -1
  153. package/docs/api/interfaces/OwnerSession.md +3 -3
  154. package/docs/api/interfaces/OwnerUpdateSecretInput.md +1 -1
  155. package/docs/api/interfaces/OwnerVisibleRequestRecord.md +73 -0
  156. package/docs/api/interfaces/RecoverVaultOptions.md +1 -125
  157. package/docs/api/interfaces/RecoveredVault.md +2 -2
  158. package/docs/api/interfaces/RequestRecord.md +107 -0
  159. package/docs/api/interfaces/RestoreIdentityOptions.md +1 -1
  160. package/docs/api/interfaces/SecretAlias.md +11 -0
  161. package/docs/api/interfaces/SecretDestinationGrant.md +41 -0
  162. package/docs/api/interfaces/SecretId.md +11 -0
  163. package/docs/api/interfaces/SecretRecord.md +89 -0
  164. package/docs/api/interfaces/Signer.md +1 -1
  165. package/docs/api/interfaces/VaultApproveDispatchInput.md +3 -9
  166. package/docs/api/interfaces/VaultAuditQueryInput.md +1 -1
  167. package/docs/api/interfaces/VaultCoreDependenciesOptions.md +1 -5
  168. package/docs/api/interfaces/VaultCreateAgentInput.md +1 -1
  169. package/docs/api/interfaces/VaultExportSecretInput.md +1 -1
  170. package/docs/api/interfaces/VaultGetRequestInput.md +17 -0
  171. package/docs/api/interfaces/VaultGrantAgentSecretInput.md +23 -0
  172. package/docs/api/interfaces/VaultGrantSecretDestinationInput.md +23 -0
  173. package/docs/api/interfaces/VaultId.md +11 -0
  174. package/docs/api/interfaces/VaultImportAgentInput.md +1 -1
  175. package/docs/api/interfaces/VaultIssueSessionTokenInput.md +5 -5
  176. package/docs/api/interfaces/VaultListAgentsInput.md +1 -1
  177. package/docs/api/interfaces/VaultListGrantsInput.md +23 -0
  178. package/docs/api/interfaces/VaultListRequestsInput.md +17 -0
  179. package/docs/api/interfaces/VaultListSecretsInput.md +1 -1
  180. package/docs/api/interfaces/VaultMetadata.md +1 -1
  181. package/docs/api/interfaces/VaultObject.md +2 -2
  182. package/docs/api/interfaces/VaultPrincipal.md +17 -0
  183. package/docs/api/interfaces/VaultProfile.md +1 -1
  184. package/docs/api/interfaces/VaultReadAgentPrivateKeyInput.md +7 -7
  185. package/docs/api/interfaces/VaultReadSecretPlaintextInput.md +1 -1
  186. package/docs/api/interfaces/VaultRevokeAgentSecretInput.md +23 -0
  187. package/docs/api/interfaces/VaultRevokeSecretDestinationInput.md +23 -0
  188. package/docs/api/interfaces/VaultRevokeSessionTokenInput.md +1 -1
  189. package/docs/api/interfaces/VaultService.md +511 -0
  190. package/docs/api/interfaces/VaultUpdateAgentInput.md +7 -7
  191. package/docs/api/type-aliases/AgentId.md +7 -0
  192. package/docs/api/type-aliases/CbioRuntimeModule.md +1 -1
  193. package/docs/api/type-aliases/DispatchApprovalDecision.md +7 -0
  194. package/docs/api/type-aliases/GrantStatus.md +7 -0
  195. package/docs/api/type-aliases/SecretLifecycleStatus.md +7 -0
  196. package/docs/api/type-aliases/VaultPrincipalKind.md +7 -0
  197. package/docs/api/variables/DEFAULT_VAULT_KEY_CUSTODY_BLOB_KEY.md +2 -2
  198. package/docs/es/README.md +3 -3
  199. package/docs/fr/README.md +3 -3
  200. package/docs/ja/README.md +5 -5
  201. package/docs/ko/README.md +5 -5
  202. package/docs/pt/README.md +3 -3
  203. package/docs/zh/PROCESS_ISOLATION.md +2 -2
  204. package/docs/zh/README.md +47 -63
  205. package/examples/process-isolation.ts +26 -35
  206. package/package.json +1 -1
  207. package/docs/api/functions/createOwnerHttpFlowBoundary.md +0 -17
  208. package/docs/api/functions/createStandardAcquireBoundary.md +0 -31
  209. package/docs/api/functions/createStandardDispatchBoundary.md +0 -23
  210. package/docs/api/functions/createVaultClient.md +0 -32
  211. package/docs/api/functions/deriveIdentityId.md +0 -17
  212. package/docs/api/functions/wrapVaultCoreAsVaultService.md +0 -31
  213. package/docs/api/interfaces/AgentSubmitCapabilityRequestInput.md +0 -41
  214. package/docs/api/interfaces/VaultApproveCapabilityRequestInput.md +0 -23
  215. package/docs/api/interfaces/VaultClient.md +0 -473
  216. package/docs/api/interfaces/VaultGrantCapabilityInput.md +0 -79
  217. package/docs/api/interfaces/VaultGrantCapabilityRequest.md +0 -23
  218. package/docs/api/interfaces/VaultIdentity.md +0 -11
  219. package/docs/api/interfaces/VaultListCapabilitiesInput.md +0 -17
  220. package/docs/api/interfaces/VaultRegisterFlowInput.md +0 -77
  221. package/docs/api/interfaces/VaultRevokeCapabilityInput.md +0 -23
  222. package/docs/api/interfaces/VaultSigner.md +0 -21
  223. package/docs/api/interfaces/VaultSubmitCapabilityRequestInput.md +0 -73
  224. package/docs/api/type-aliases/AgentCapabilityEnvelope.md +0 -7
  225. package/docs/api/type-aliases/AgentVisibleSecretRecord.md +0 -7
  226. package/docs/api/type-aliases/CreateOwnerClientOptions.md +0 -7
  227. package/docs/api/type-aliases/OwnerAgentView.md +0 -7
  228. package/docs/api/type-aliases/OwnerClient.md +0 -13
  229. package/docs/api/type-aliases/OwnerGrantCapabilityInput.md +0 -7
  230. package/docs/api/type-aliases/OwnerPendingApprovalView.md +0 -7
  231. package/docs/api/type-aliases/OwnerRequestDetailView.md +0 -7
  232. package/docs/api/type-aliases/OwnerRequestSummaryView.md +0 -7
  233. package/docs/api/type-aliases/OwnerSecretView.md +0 -7
@@ -0,0 +1,65 @@
1
+ [**CBIO Node Runtime Agent API v1.63.6**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultAuditLog
6
+
7
+ ## Implements
8
+
9
+ - `AuditLog`
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultAuditLog**(`baseDir`): `FileAuditLog`
16
+
17
+ #### Parameters
18
+
19
+ ##### baseDir
20
+
21
+ `string`
22
+
23
+ #### Returns
24
+
25
+ `FileAuditLog`
26
+
27
+ ## Methods
28
+
29
+ ### append()
30
+
31
+ > **append**(`entry`): `Promise`\<`void`\>
32
+
33
+ #### Parameters
34
+
35
+ ##### entry
36
+
37
+ [`AuditEntry`](../interfaces/AuditEntry.md)
38
+
39
+ #### Returns
40
+
41
+ `Promise`\<`void`\>
42
+
43
+ #### Implementation of
44
+
45
+ `AuditLog.append`
46
+
47
+ ***
48
+
49
+ ### query()
50
+
51
+ > **query**(`query`): `Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
52
+
53
+ #### Parameters
54
+
55
+ ##### query
56
+
57
+ `AuditQuery`
58
+
59
+ #### Returns
60
+
61
+ `Promise`\<readonly [`AuditEntry`](../interfaces/AuditEntry.md)[]\>
62
+
63
+ #### Implementation of
64
+
65
+ `AuditLog.query`
@@ -0,0 +1,93 @@
1
+ [**CBIO Node Runtime Agent API v1.63.6**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultSecretCustody
6
+
7
+ ## Implements
8
+
9
+ - `SecretCustody`
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultSecretCustody**(`baseDir`, `workingKey`): `FileSecretCustody`
16
+
17
+ #### Parameters
18
+
19
+ ##### baseDir
20
+
21
+ `string`
22
+
23
+ ##### workingKey
24
+
25
+ `string`
26
+
27
+ #### Returns
28
+
29
+ `FileSecretCustody`
30
+
31
+ ## Methods
32
+
33
+ ### delete()
34
+
35
+ > **delete**(`secretId`): `Promise`\<`void`\>
36
+
37
+ #### Parameters
38
+
39
+ ##### secretId
40
+
41
+ [`SecretId`](../interfaces/SecretId.md)
42
+
43
+ #### Returns
44
+
45
+ `Promise`\<`void`\>
46
+
47
+ #### Implementation of
48
+
49
+ `SecretCustody.delete`
50
+
51
+ ***
52
+
53
+ ### load()
54
+
55
+ > **load**(`secretId`): `Promise`\<`string` \| `null`\>
56
+
57
+ #### Parameters
58
+
59
+ ##### secretId
60
+
61
+ [`SecretId`](../interfaces/SecretId.md)
62
+
63
+ #### Returns
64
+
65
+ `Promise`\<`string` \| `null`\>
66
+
67
+ #### Implementation of
68
+
69
+ `SecretCustody.load`
70
+
71
+ ***
72
+
73
+ ### store()
74
+
75
+ > **store**(`secretId`, `plaintext`): `Promise`\<`void`\>
76
+
77
+ #### Parameters
78
+
79
+ ##### secretId
80
+
81
+ [`SecretId`](../interfaces/SecretId.md)
82
+
83
+ ##### plaintext
84
+
85
+ `string`
86
+
87
+ #### Returns
88
+
89
+ `Promise`\<`void`\>
90
+
91
+ #### Implementation of
92
+
93
+ `SecretCustody.store`
@@ -0,0 +1,125 @@
1
+ [**CBIO Node Runtime Agent API v1.63.6**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultSecretDestinationGrantRegistry
6
+
7
+ ## Implements
8
+
9
+ - `SecretDestinationGrantRegistry`
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultSecretDestinationGrantRegistry**(`baseDir`): `FileSecretDestinationGrantRegistry`
16
+
17
+ #### Parameters
18
+
19
+ ##### baseDir
20
+
21
+ `string`
22
+
23
+ #### Returns
24
+
25
+ `FileSecretDestinationGrantRegistry`
26
+
27
+ ## Methods
28
+
29
+ ### delete()
30
+
31
+ > **delete**(`vaultId`, `secretAlias`, `siteId`): `Promise`\<`void`\>
32
+
33
+ #### Parameters
34
+
35
+ ##### vaultId
36
+
37
+ [`VaultId`](../interfaces/VaultId.md)
38
+
39
+ ##### secretAlias
40
+
41
+ `string`
42
+
43
+ ##### siteId
44
+
45
+ `string`
46
+
47
+ #### Returns
48
+
49
+ `Promise`\<`void`\>
50
+
51
+ #### Implementation of
52
+
53
+ `SecretDestinationGrantRegistry.delete`
54
+
55
+ ***
56
+
57
+ ### get()
58
+
59
+ > **get**(`vaultId`, `secretAlias`, `siteId`): `Promise`\<[`SecretDestinationGrant`](../interfaces/SecretDestinationGrant.md) \| `null`\>
60
+
61
+ #### Parameters
62
+
63
+ ##### vaultId
64
+
65
+ [`VaultId`](../interfaces/VaultId.md)
66
+
67
+ ##### secretAlias
68
+
69
+ `string`
70
+
71
+ ##### siteId
72
+
73
+ `string`
74
+
75
+ #### Returns
76
+
77
+ `Promise`\<[`SecretDestinationGrant`](../interfaces/SecretDestinationGrant.md) \| `null`\>
78
+
79
+ #### Implementation of
80
+
81
+ `SecretDestinationGrantRegistry.get`
82
+
83
+ ***
84
+
85
+ ### list()
86
+
87
+ > **list**(`vaultId`, `secretAlias?`): `Promise`\<readonly [`SecretDestinationGrant`](../interfaces/SecretDestinationGrant.md)[]\>
88
+
89
+ #### Parameters
90
+
91
+ ##### vaultId
92
+
93
+ [`VaultId`](../interfaces/VaultId.md)
94
+
95
+ ##### secretAlias?
96
+
97
+ `string`
98
+
99
+ #### Returns
100
+
101
+ `Promise`\<readonly [`SecretDestinationGrant`](../interfaces/SecretDestinationGrant.md)[]\>
102
+
103
+ #### Implementation of
104
+
105
+ `SecretDestinationGrantRegistry.list`
106
+
107
+ ***
108
+
109
+ ### upsert()
110
+
111
+ > **upsert**(`grant`): `Promise`\<`void`\>
112
+
113
+ #### Parameters
114
+
115
+ ##### grant
116
+
117
+ [`SecretDestinationGrant`](../interfaces/SecretDestinationGrant.md)
118
+
119
+ #### Returns
120
+
121
+ `Promise`\<`void`\>
122
+
123
+ #### Implementation of
124
+
125
+ `SecretDestinationGrantRegistry.upsert`
@@ -0,0 +1,127 @@
1
+ [**CBIO Node Runtime Agent API v1.63.6**](../README.md)
2
+
3
+ ***
4
+
5
+ # Class: PersistentVaultSecretRepository
6
+
7
+ ## Implements
8
+
9
+ - `SecretRepository`
10
+
11
+ ## Constructors
12
+
13
+ ### Constructor
14
+
15
+ > **new PersistentVaultSecretRepository**(`baseDir`): `FileSecretRepository`
16
+
17
+ #### Parameters
18
+
19
+ ##### baseDir
20
+
21
+ `string`
22
+
23
+ #### Returns
24
+
25
+ `FileSecretRepository`
26
+
27
+ ## Methods
28
+
29
+ ### delete()
30
+
31
+ > **delete**(`secretId`): `Promise`\<`void`\>
32
+
33
+ #### Parameters
34
+
35
+ ##### secretId
36
+
37
+ [`SecretId`](../interfaces/SecretId.md)
38
+
39
+ #### Returns
40
+
41
+ `Promise`\<`void`\>
42
+
43
+ #### Implementation of
44
+
45
+ `SecretRepository.delete`
46
+
47
+ ***
48
+
49
+ ### getByAlias()
50
+
51
+ > **getByAlias**(`alias`): `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
52
+
53
+ #### Parameters
54
+
55
+ ##### alias
56
+
57
+ ###### value
58
+
59
+ `string`
60
+
61
+ #### Returns
62
+
63
+ `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
64
+
65
+ #### Implementation of
66
+
67
+ `SecretRepository.getByAlias`
68
+
69
+ ***
70
+
71
+ ### getById()
72
+
73
+ > **getById**(`secretId`): `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
74
+
75
+ #### Parameters
76
+
77
+ ##### secretId
78
+
79
+ [`SecretId`](../interfaces/SecretId.md)
80
+
81
+ #### Returns
82
+
83
+ `Promise`\<[`SecretRecord`](../interfaces/SecretRecord.md) \| `null`\>
84
+
85
+ #### Implementation of
86
+
87
+ `SecretRepository.getById`
88
+
89
+ ***
90
+
91
+ ### list()
92
+
93
+ > **list**(`vaultId`): `Promise`\<readonly [`SecretRecord`](../interfaces/SecretRecord.md)[]\>
94
+
95
+ #### Parameters
96
+
97
+ ##### vaultId
98
+
99
+ [`VaultId`](../interfaces/VaultId.md)
100
+
101
+ #### Returns
102
+
103
+ `Promise`\<readonly [`SecretRecord`](../interfaces/SecretRecord.md)[]\>
104
+
105
+ #### Implementation of
106
+
107
+ `SecretRepository.list`
108
+
109
+ ***
110
+
111
+ ### save()
112
+
113
+ > **save**(`record`): `Promise`\<`void`\>
114
+
115
+ #### Parameters
116
+
117
+ ##### record
118
+
119
+ [`SecretRecord`](../interfaces/SecretRecord.md)
120
+
121
+ #### Returns
122
+
123
+ `Promise`\<`void`\>
124
+
125
+ #### Implementation of
126
+
127
+ `SecretRepository.save`