@atbash/sdk 0.12.0-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,5 +1,14 @@
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
@@ -18,11 +27,11 @@ export interface AgentPubkeyOnlyQueryJs {
18
27
  file_path?: string
19
28
  }
20
29
 
21
- export const ARG_AGENT_PUBKEY: string
30
+ export declare const ARG_AGENT_PUBKEY: string
22
31
 
23
- export const ARG_FILE_PATH: string
32
+ export declare const ARG_FILE_PATH: string
24
33
 
25
- export const ARG_ID: string
34
+ export declare const ARG_ID: string
26
35
 
27
36
  export declare function buildAddAgentMemoryArgs(agentPubkeyHex: string, contentCipher: Buffer, nonce: Buffer, score: number, filePath: string): AddAgentMemoryArgsJs
28
37
 
@@ -77,11 +86,11 @@ export declare function decryptForOrg(payload: Buffer, orgPrivKeyHex: string, aa
77
86
 
78
87
  export declare function decryptMemoryContent(ciphertext: Buffer, nonce: Buffer, key: Buffer): string
79
88
 
80
- export const DEFAULT_BLOCKCHAIN_RID: string
89
+ export declare const DEFAULT_BLOCKCHAIN_RID: string
81
90
 
82
- export const DEFAULT_ENDPOINT: string
91
+ export declare const DEFAULT_ENDPOINT: string
83
92
 
84
- export const DEFAULT_PRIVATE_BLOCKCHAIN_RID: string
93
+ export declare const DEFAULT_PRIVATE_BLOCKCHAIN_RID: string
85
94
 
86
95
  export declare function defaultChromiaNodeUrls(): Array<string>
87
96
 
@@ -101,7 +110,7 @@ export declare function derivePublicKey(s: string): string
101
110
 
102
111
  export declare function diffMemorySnapshots(before: MemorySnapshotJs, after: MemorySnapshotJs): MemoryDiffResultJs
103
112
 
104
- export const ECIES_FORMAT_VERSION: number
113
+ export declare const ECIES_FORMAT_VERSION: number
105
114
 
106
115
  export declare function encryptedLength(plaintextByteLength: number): number
107
116
 
@@ -191,11 +200,11 @@ export declare function normalizeActionForHash(action: string): string
191
200
 
192
201
  export declare function normalizeForMatching(s: string): string
193
202
 
194
- export const OP_ADD_AGENT_MEMORY: string
203
+ export declare const OP_ADD_AGENT_MEMORY: string
195
204
 
196
- export const OP_LOG_TOOL_CALL: string
205
+ export declare const OP_LOG_TOOL_CALL: string
197
206
 
198
- export const OP_ROLLBACK_AGENT_MEMORY: string
207
+ export declare const OP_ROLLBACK_AGENT_MEMORY: string
199
208
 
200
209
  export declare function parseActiveMemoryId(value: any): number | null
201
210
 
@@ -216,17 +225,17 @@ export declare function parseRollbackRows(value: any): Array<RawRollbackRowJs>
216
225
 
217
226
  export declare function parseScoreFromReason(reason: string): ParsedScoreJs
218
227
 
219
- export const QUERY_GET_ACTIVE_AGENT_MEMORY: string
228
+ export declare const QUERY_GET_ACTIVE_AGENT_MEMORY: string
220
229
 
221
- export const QUERY_GET_ACTIVE_MEMORY_ID: string
230
+ export declare const QUERY_GET_ACTIVE_MEMORY_ID: string
222
231
 
223
- export const QUERY_GET_AGENT_MEMORY_BY_ID: string
232
+ export declare const QUERY_GET_AGENT_MEMORY_BY_ID: string
224
233
 
225
- export const QUERY_GET_AGENT_MEMORY_HISTORY: string
234
+ export declare const QUERY_GET_AGENT_MEMORY_HISTORY: string
226
235
 
227
- export const QUERY_GET_AGENT_MEMORY_ROLLBACK_HISTORY: string
236
+ export declare const QUERY_GET_AGENT_MEMORY_ROLLBACK_HISTORY: string
228
237
 
229
- export const QUERY_GET_RECENT_AGENT_MEMORY: string
238
+ export declare const QUERY_GET_RECENT_AGENT_MEMORY: string
230
239
 
231
240
  export interface RawMemoryRowJs {
232
241
  id: number