@atbash/sdk 0.10.13-dev.0 → 0.13.0-dev.0

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/index.d.ts CHANGED
@@ -1,10 +1,20 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+
4
+ /**
5
+ * Which binding artifact the generated loader actually loaded: `'native'` for
6
+ * a native addon, otherwise the `platformArchABI` of the WASI flavor. Every
7
+ * flavor napi-rs can build is listed, because `NAPI_RS_NATIVE_LIBRARY_PATH`
8
+ * can point the loader at a WASI artifact this package does not build itself.
9
+ */
10
+ export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1'
11
+
3
12
  export interface AddAgentMemoryArgsJs {
4
13
  agent_pubkey: Buffer
5
14
  content_cipher: Buffer
6
15
  nonce: Buffer
7
16
  score: number
17
+ file_path: string
8
18
  }
9
19
 
10
20
  export interface AgentAuthJs {
@@ -14,27 +24,30 @@ export interface AgentAuthJs {
14
24
 
15
25
  export interface AgentPubkeyOnlyQueryJs {
16
26
  agent_pubkey_hex: string
27
+ file_path?: string
17
28
  }
18
29
 
19
- export const ARG_AGENT_PUBKEY: string
30
+ export declare const ARG_AGENT_PUBKEY: string
20
31
 
21
- export const ARG_ID: string
32
+ export declare const ARG_FILE_PATH: string
22
33
 
23
- export declare function buildAddAgentMemoryArgs(agentPubkeyHex: string, contentCipher: Buffer, nonce: Buffer, score: number): AddAgentMemoryArgsJs
34
+ export declare const ARG_ID: string
35
+
36
+ export declare function buildAddAgentMemoryArgs(agentPubkeyHex: string, contentCipher: Buffer, nonce: Buffer, score: number, filePath: string): AddAgentMemoryArgsJs
24
37
 
25
38
  export declare function buildEncryptedToolcallArgs(toolCallId: string, action: string, context: string, toolName: string, toolArgsJson: string, orgEncryptionPubKeyHex: string): EncryptedToolCallArgsJs
26
39
 
27
- export declare function buildGetActiveMemoryIdQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
40
+ export declare function buildGetActiveAgentMemoryQuery(agentPubkeyHex: string, filePath?: string | undefined | null): AgentPubkeyOnlyQueryJs
28
41
 
29
- export declare function buildGetAgentMemoryByIdQuery(agentPubkeyHex: string, id: number): MemoryByIdQueryJs
42
+ export declare function buildGetActiveMemoryIdQuery(agentPubkeyHex: string, filePath?: string | undefined | null): AgentPubkeyOnlyQueryJs
30
43
 
31
- export declare function buildGetAgentMemoryHistoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
44
+ export declare function buildGetAgentMemoryByIdQuery(agentPubkeyHex: string, id: number): MemoryByIdQueryJs
32
45
 
33
- export declare function buildGetAgentMemoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
46
+ export declare function buildGetAgentMemoryHistoryQuery(agentPubkeyHex: string, filePath?: string | undefined | null): AgentPubkeyOnlyQueryJs
34
47
 
35
- export declare function buildGetAgentMemoryRollbackHistoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
48
+ export declare function buildGetAgentMemoryRollbackHistoryQuery(agentPubkeyHex: string, filePath?: string | undefined | null): AgentPubkeyOnlyQueryJs
36
49
 
37
- export declare function buildGetAllAgentMemoryQuery(agentPubkeyHex: string): AgentPubkeyOnlyQueryJs
50
+ export declare function buildGetRecentAgentMemoryQuery(agentPubkeyHex: string, filePath?: string | undefined | null): AgentPubkeyOnlyQueryJs
38
51
 
39
52
  export declare function buildRollbackAgentMemoryArgs(agentPubkeyHex: string, toId: number, reason: string): RollbackAgentMemoryArgsJs
40
53
 
@@ -73,11 +86,11 @@ export declare function decryptForOrg(payload: Buffer, orgPrivKeyHex: string, aa
73
86
 
74
87
  export declare function decryptMemoryContent(ciphertext: Buffer, nonce: Buffer, key: Buffer): string
75
88
 
76
- export const DEFAULT_BLOCKCHAIN_RID: string
89
+ export declare const DEFAULT_BLOCKCHAIN_RID: string
77
90
 
78
- export const DEFAULT_ENDPOINT: string
91
+ export declare const DEFAULT_ENDPOINT: string
79
92
 
80
- export const DEFAULT_PRIVATE_BLOCKCHAIN_RID: string
93
+ export declare const DEFAULT_PRIVATE_BLOCKCHAIN_RID: string
81
94
 
82
95
  export declare function defaultChromiaNodeUrls(): Array<string>
83
96
 
@@ -97,7 +110,7 @@ export declare function derivePublicKey(s: string): string
97
110
 
98
111
  export declare function diffMemorySnapshots(before: MemorySnapshotJs, after: MemorySnapshotJs): MemoryDiffResultJs
99
112
 
100
- export const ECIES_FORMAT_VERSION: number
113
+ export declare const ECIES_FORMAT_VERSION: number
101
114
 
102
115
  export declare function encryptedLength(plaintextByteLength: number): number
103
116
 
@@ -187,11 +200,11 @@ export declare function normalizeActionForHash(action: string): string
187
200
 
188
201
  export declare function normalizeForMatching(s: string): string
189
202
 
190
- export const OP_ADD_AGENT_MEMORY: string
203
+ export declare const OP_ADD_AGENT_MEMORY: string
191
204
 
192
- export const OP_LOG_TOOL_CALL: string
205
+ export declare const OP_LOG_TOOL_CALL: string
193
206
 
194
- export const OP_ROLLBACK_AGENT_MEMORY: string
207
+ export declare const OP_ROLLBACK_AGENT_MEMORY: string
195
208
 
196
209
  export declare function parseActiveMemoryId(value: any): number | null
197
210
 
@@ -212,20 +225,21 @@ export declare function parseRollbackRows(value: any): Array<RawRollbackRowJs>
212
225
 
213
226
  export declare function parseScoreFromReason(reason: string): ParsedScoreJs
214
227
 
215
- export const QUERY_GET_ACTIVE_MEMORY_ID: string
228
+ export declare const QUERY_GET_ACTIVE_AGENT_MEMORY: string
216
229
 
217
- export const QUERY_GET_AGENT_MEMORY: string
230
+ export declare const QUERY_GET_ACTIVE_MEMORY_ID: string
218
231
 
219
- export const QUERY_GET_AGENT_MEMORY_BY_ID: string
232
+ export declare const QUERY_GET_AGENT_MEMORY_BY_ID: string
220
233
 
221
- export const QUERY_GET_AGENT_MEMORY_HISTORY: string
234
+ export declare const QUERY_GET_AGENT_MEMORY_HISTORY: string
222
235
 
223
- export const QUERY_GET_AGENT_MEMORY_ROLLBACK_HISTORY: string
236
+ export declare const QUERY_GET_AGENT_MEMORY_ROLLBACK_HISTORY: string
224
237
 
225
- export const QUERY_GET_ALL_AGENT_MEMORY: string
238
+ export declare const QUERY_GET_RECENT_AGENT_MEMORY: string
226
239
 
227
240
  export interface RawMemoryRowJs {
228
241
  id: number
242
+ file_path: string
229
243
  content_cipher: Buffer
230
244
  nonce: Buffer
231
245
  score: number
@@ -237,6 +251,7 @@ export interface RawMemoryRowJs {
237
251
  export interface RawRollbackRowJs {
238
252
  from_id: number
239
253
  to_id: number
254
+ file_path: string
240
255
  reason: string
241
256
  signer: Buffer
242
257
  created_at: number
@@ -275,6 +290,8 @@ export declare function signLogToolCall(toolCallId: string, action: string, cont
275
290
 
276
291
  export declare function validateAgentPubkeyHex(pubkeyHex: string): Buffer
277
292
 
293
+ export declare function validateFilePath(filePath: string): string
294
+
278
295
  export declare function validateMemoryId(id: number): void
279
296
 
280
297
  export declare function validateMemoryNonce(nonce: Buffer): void