rice-node-sdk 1.0.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/README.md +270 -0
- package/dist/Client.d.ts +16 -0
- package/dist/Client.js +117 -0
- package/dist/config.d.ts +13 -0
- package/dist/config.js +53 -0
- package/dist/index.d.ts +110 -0
- package/dist/index.js +34 -0
- package/dist/state/index.d.ts +62 -0
- package/dist/state/index.js +189 -0
- package/dist/state/proto/state.proto +100 -0
- package/dist/state/tools.d.ts +97 -0
- package/dist/state/tools.js +13 -0
- package/dist/storage/client/BaseClient.d.ts +133 -0
- package/dist/storage/client/BaseClient.js +81 -0
- package/dist/storage/client/GrpcClient.d.ts +87 -0
- package/dist/storage/client/GrpcClient.js +398 -0
- package/dist/storage/client/HttpClient.d.ts +87 -0
- package/dist/storage/client/HttpClient.js +335 -0
- package/dist/storage/client/RiceDBClient.d.ts +306 -0
- package/dist/storage/client/RiceDBClient.js +408 -0
- package/dist/storage/index.d.ts +8 -0
- package/dist/storage/index.js +29 -0
- package/dist/storage/proto/ricedb.d.ts +1183 -0
- package/dist/storage/proto/ricedb.js +4469 -0
- package/dist/storage/utils/BitVector.d.ts +10 -0
- package/dist/storage/utils/BitVector.js +54 -0
- package/dist/tools/anthropic.d.ts +29 -0
- package/dist/tools/anthropic.js +44 -0
- package/dist/tools/execute.d.ts +2 -0
- package/dist/tools/execute.js +22 -0
- package/dist/tools/google.d.ts +29 -0
- package/dist/tools/google.js +44 -0
- package/dist/tools/openai.d.ts +35 -0
- package/dist/tools/openai.js +53 -0
- package/package.json +58 -0
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.RiceDBClient = void 0;
|
|
7
|
+
const BaseClient_1 = require("./BaseClient");
|
|
8
|
+
const GrpcClient_1 = require("./GrpcClient");
|
|
9
|
+
const HttpClient_1 = require("./HttpClient");
|
|
10
|
+
const long_1 = __importDefault(require("long"));
|
|
11
|
+
/**
|
|
12
|
+
* Client for RiceDB (Persistent Semantic Database).
|
|
13
|
+
* Supports both gRPC and HTTP transports.
|
|
14
|
+
*/
|
|
15
|
+
class RiceDBClient extends BaseClient_1.BaseRiceDBClient {
|
|
16
|
+
/**
|
|
17
|
+
* Creates a new RiceDB client instance.
|
|
18
|
+
* @param host - The hostname of the RiceDB server (default: "localhost").
|
|
19
|
+
* @param transport - The transport protocol to use: "grpc", "http", or "auto" (default: "auto").
|
|
20
|
+
* @param grpcPort - The port for gRPC connections (default: 50051).
|
|
21
|
+
* @param httpPort - The port for HTTP connections (default: 3000).
|
|
22
|
+
* @param token - Optional authentication token.
|
|
23
|
+
*/
|
|
24
|
+
constructor(host = "localhost", transport = "auto", grpcPort = 50051, httpPort = 3000, token) {
|
|
25
|
+
super(host, 0);
|
|
26
|
+
this.client = null;
|
|
27
|
+
this.transport = transport;
|
|
28
|
+
this._grpcPort = grpcPort;
|
|
29
|
+
this._httpPort = httpPort;
|
|
30
|
+
this.token = token;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Connects to the RiceDB server.
|
|
34
|
+
* If transport is "auto", tries gRPC first, then falls back to HTTP.
|
|
35
|
+
* @returns A promise that resolves to true if connected successfully.
|
|
36
|
+
*/
|
|
37
|
+
async connect() {
|
|
38
|
+
if (this.transport === "grpc") {
|
|
39
|
+
this.client = new GrpcClient_1.GrpcClient(this.host, this._grpcPort, this.token);
|
|
40
|
+
await this.client.connect();
|
|
41
|
+
this.connected = true;
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
else if (this.transport === "http") {
|
|
45
|
+
this.client = new HttpClient_1.HttpClient(this.host, this._httpPort, this.token);
|
|
46
|
+
await this.client.connect();
|
|
47
|
+
this.connected = true;
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
// Auto
|
|
52
|
+
try {
|
|
53
|
+
const grpcClient = new GrpcClient_1.GrpcClient(this.host, this._grpcPort, this.token);
|
|
54
|
+
await grpcClient.connect();
|
|
55
|
+
this.client = grpcClient;
|
|
56
|
+
this.connected = true;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
catch (e) {
|
|
60
|
+
// Fallback
|
|
61
|
+
console.warn("gRPC connection failed, falling back to HTTP");
|
|
62
|
+
this.client = new HttpClient_1.HttpClient(this.host, this._httpPort, this.token);
|
|
63
|
+
await this.client.connect();
|
|
64
|
+
this.connected = true;
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Disconnects from the RiceDB server.
|
|
71
|
+
*/
|
|
72
|
+
disconnect() {
|
|
73
|
+
if (this.client) {
|
|
74
|
+
this.client.disconnect();
|
|
75
|
+
this.client = null;
|
|
76
|
+
}
|
|
77
|
+
this.connected = false;
|
|
78
|
+
}
|
|
79
|
+
checkConnected() {
|
|
80
|
+
if (!this.client)
|
|
81
|
+
throw new Error("Not connected");
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Checks the health of the RiceDB server.
|
|
85
|
+
* @returns Detailed health information.
|
|
86
|
+
*/
|
|
87
|
+
async health() {
|
|
88
|
+
this.checkConnected();
|
|
89
|
+
return this.client.health();
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* Logs in a user.
|
|
93
|
+
* @param username - The username.
|
|
94
|
+
* @param password - The password.
|
|
95
|
+
* @returns An authentication token or session ID.
|
|
96
|
+
*/
|
|
97
|
+
async login(username, password) {
|
|
98
|
+
this.checkConnected();
|
|
99
|
+
return this.client.login(username, password);
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Creates a new user.
|
|
103
|
+
* @param username - The username.
|
|
104
|
+
* @param password - The password.
|
|
105
|
+
* @param role - Optional role for the user.
|
|
106
|
+
* @returns The ID of the created user.
|
|
107
|
+
*/
|
|
108
|
+
async createUser(username, password, role) {
|
|
109
|
+
this.checkConnected();
|
|
110
|
+
return this.client.createUser(username, password, role);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Deletes a user.
|
|
114
|
+
* @param username - The username to delete.
|
|
115
|
+
* @returns True if successful.
|
|
116
|
+
*/
|
|
117
|
+
async deleteUser(username) {
|
|
118
|
+
this.checkConnected();
|
|
119
|
+
return this.client.deleteUser(username);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves user details.
|
|
123
|
+
* @param username - The username.
|
|
124
|
+
* @returns User details object.
|
|
125
|
+
*/
|
|
126
|
+
async getUser(username) {
|
|
127
|
+
this.checkConnected();
|
|
128
|
+
return this.client.getUser(username);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Lists all users.
|
|
132
|
+
* @returns An array of user objects.
|
|
133
|
+
*/
|
|
134
|
+
async listUsers() {
|
|
135
|
+
this.checkConnected();
|
|
136
|
+
return this.client.listUsers();
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Inserts a document/node into the database.
|
|
140
|
+
* @param nodeId - Unique identifier for the node.
|
|
141
|
+
* @param text - The text content.
|
|
142
|
+
* @param metadata - Arbitrary metadata object.
|
|
143
|
+
* @param userId - The ID of the user inserting.
|
|
144
|
+
* @param sessionId - Optional session ID.
|
|
145
|
+
* @param embedding - Optional pre-computed embedding vector.
|
|
146
|
+
* @returns Result of the insertion.
|
|
147
|
+
*/
|
|
148
|
+
async insert(nodeId, text, metadata, userId = 1, sessionId, embedding) {
|
|
149
|
+
this.checkConnected();
|
|
150
|
+
return this.client.insert(nodeId, text, metadata, userId, sessionId, embedding);
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Searches for similar documents/nodes.
|
|
154
|
+
* @param query - The query text.
|
|
155
|
+
* @param userId - The user ID performing the search.
|
|
156
|
+
* @param k - Number of results to return (default: 10).
|
|
157
|
+
* @param sessionId - Optional session ID to filter by.
|
|
158
|
+
* @param filter - Metadata filter criteria.
|
|
159
|
+
* @param queryEmbedding - Optional query embedding vector.
|
|
160
|
+
* @returns An array of search results.
|
|
161
|
+
*/
|
|
162
|
+
async search(query, userId, k = 10, sessionId, filter, queryEmbedding) {
|
|
163
|
+
this.checkConnected();
|
|
164
|
+
return this.client.search(query, userId, k, sessionId, filter, queryEmbedding);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Deletes a document/node.
|
|
168
|
+
* @param nodeId - The ID of the node to delete.
|
|
169
|
+
* @param sessionId - Optional session ID.
|
|
170
|
+
* @returns True if successful.
|
|
171
|
+
*/
|
|
172
|
+
async delete(nodeId, sessionId) {
|
|
173
|
+
this.checkConnected();
|
|
174
|
+
return this.client.delete(nodeId, sessionId);
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Creates a new session.
|
|
178
|
+
* @param parentSessionId - Optional parent session ID to fork from.
|
|
179
|
+
* @returns The new session ID.
|
|
180
|
+
*/
|
|
181
|
+
async createSession(parentSessionId) {
|
|
182
|
+
this.checkConnected();
|
|
183
|
+
return this.client.createSession(parentSessionId);
|
|
184
|
+
}
|
|
185
|
+
/**
|
|
186
|
+
* Saves a snapshot of a session to disk.
|
|
187
|
+
* @param sessionId - The session ID.
|
|
188
|
+
* @param path - The file path to save to.
|
|
189
|
+
* @returns True if successful.
|
|
190
|
+
*/
|
|
191
|
+
async snapshotSession(sessionId, path) {
|
|
192
|
+
this.checkConnected();
|
|
193
|
+
return this.client.snapshotSession(sessionId, path);
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Loads a session from a snapshot.
|
|
197
|
+
* @param path - The file path to load from.
|
|
198
|
+
* @returns The loaded session ID.
|
|
199
|
+
*/
|
|
200
|
+
async loadSession(path) {
|
|
201
|
+
this.checkConnected();
|
|
202
|
+
return this.client.loadSession(path);
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Commits changes in a session (e.g., merging back).
|
|
206
|
+
* @param sessionId - The session ID.
|
|
207
|
+
* @param mergeStrategy - Strategy for merging ("overwrite", etc.).
|
|
208
|
+
* @returns True if successful.
|
|
209
|
+
*/
|
|
210
|
+
async commitSession(sessionId, mergeStrategy = "overwrite") {
|
|
211
|
+
this.checkConnected();
|
|
212
|
+
return this.client.commitSession(sessionId, mergeStrategy);
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Drops (deletes) a session.
|
|
216
|
+
* @param sessionId - The session ID.
|
|
217
|
+
* @returns True if successful.
|
|
218
|
+
*/
|
|
219
|
+
async dropSession(sessionId) {
|
|
220
|
+
this.checkConnected();
|
|
221
|
+
return this.client.dropSession(sessionId);
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Writes raw data to memory at a specific address.
|
|
225
|
+
* @param address - The memory address (BitVector).
|
|
226
|
+
* @param data - The data to write (BitVector).
|
|
227
|
+
* @param userId - The user ID.
|
|
228
|
+
* @returns Success status and message.
|
|
229
|
+
*/
|
|
230
|
+
async writeMemory(address, data, userId = 1) {
|
|
231
|
+
this.checkConnected();
|
|
232
|
+
return this.client.writeMemory(address, data, userId);
|
|
233
|
+
}
|
|
234
|
+
/**
|
|
235
|
+
* Reads raw data from memory at a specific address.
|
|
236
|
+
* @param address - The memory address (BitVector).
|
|
237
|
+
* @param userId - The user ID.
|
|
238
|
+
* @returns The data at the address (BitVector).
|
|
239
|
+
*/
|
|
240
|
+
async readMemory(address, userId = 1) {
|
|
241
|
+
this.checkConnected();
|
|
242
|
+
return this.client.readMemory(address, userId);
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* Adds a high-level memory entry for an agent.
|
|
246
|
+
* @param sessionId - The session ID.
|
|
247
|
+
* @param agentId - The agent ID.
|
|
248
|
+
* @param content - The content of the memory.
|
|
249
|
+
* @param metadata - Optional metadata.
|
|
250
|
+
* @param ttlSeconds - Time-to-live in seconds.
|
|
251
|
+
* @returns The created memory entry.
|
|
252
|
+
*/
|
|
253
|
+
async addMemory(sessionId, agentId, content, metadata = {}, ttlSeconds) {
|
|
254
|
+
this.checkConnected();
|
|
255
|
+
return this.client.addMemory(sessionId, agentId, content, metadata, ttlSeconds);
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Retrieves memories for a session.
|
|
259
|
+
* @param sessionId - The session ID.
|
|
260
|
+
* @param limit - Maximum number of memories.
|
|
261
|
+
* @param after - Timestamp or ID to start after.
|
|
262
|
+
* @param filter - Metadata filter.
|
|
263
|
+
* @returns An array of memory entries.
|
|
264
|
+
*/
|
|
265
|
+
async getMemory(sessionId, limit = 50, after = 0, filter = {}) {
|
|
266
|
+
this.checkConnected();
|
|
267
|
+
return this.client.getMemory(sessionId, limit, after, filter);
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* Clears all memories for a session.
|
|
271
|
+
* @param sessionId - The session ID.
|
|
272
|
+
* @returns Success status.
|
|
273
|
+
*/
|
|
274
|
+
async clearMemory(sessionId) {
|
|
275
|
+
this.checkConnected();
|
|
276
|
+
return this.client.clearMemory(sessionId);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Watches for changes in memory for a session.
|
|
280
|
+
* @param sessionId - The session ID.
|
|
281
|
+
* @returns An async iterable of changes.
|
|
282
|
+
*/
|
|
283
|
+
async *watchMemory(sessionId) {
|
|
284
|
+
this.checkConnected();
|
|
285
|
+
yield* this.client.watchMemory(sessionId);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Adds an edge between two nodes in the graph.
|
|
289
|
+
* @param fromNode - Source node ID.
|
|
290
|
+
* @param toNode - Target node ID.
|
|
291
|
+
* @param relation - The type of relation.
|
|
292
|
+
* @param weight - Edge weight (default: 1.0).
|
|
293
|
+
* @returns True if successful.
|
|
294
|
+
*/
|
|
295
|
+
async addEdge(fromNode, toNode, relation, weight = 1.0) {
|
|
296
|
+
this.checkConnected();
|
|
297
|
+
return this.client.addEdge(fromNode, toNode, relation, weight);
|
|
298
|
+
}
|
|
299
|
+
/**
|
|
300
|
+
* Gets neighboring nodes.
|
|
301
|
+
* @param nodeId - The node ID.
|
|
302
|
+
* @param relation - Optional relation type to filter by.
|
|
303
|
+
* @returns An array of neighbor node IDs.
|
|
304
|
+
*/
|
|
305
|
+
async getNeighbors(nodeId, relation) {
|
|
306
|
+
this.checkConnected();
|
|
307
|
+
return this.client.getNeighbors(nodeId, relation);
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Traverses the graph from a start node.
|
|
311
|
+
* @param startNode - The starting node ID.
|
|
312
|
+
* @param maxDepth - Maximum depth to traverse (default: 1).
|
|
313
|
+
* @returns An array of visited node IDs.
|
|
314
|
+
*/
|
|
315
|
+
async traverse(startNode, maxDepth = 1) {
|
|
316
|
+
this.checkConnected();
|
|
317
|
+
return this.client.traverse(startNode, maxDepth);
|
|
318
|
+
}
|
|
319
|
+
/**
|
|
320
|
+
* Samples random nodes from the graph.
|
|
321
|
+
* @param limit - Number of nodes to sample.
|
|
322
|
+
* @returns Sampled nodes.
|
|
323
|
+
*/
|
|
324
|
+
async sampleGraph(limit = 100) {
|
|
325
|
+
this.checkConnected();
|
|
326
|
+
return this.client.sampleGraph(limit);
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Subscribes to real-time updates.
|
|
330
|
+
* @param filterType - "all", "node", "query".
|
|
331
|
+
* @param nodeId - Specific node ID to watch.
|
|
332
|
+
* @param queryText - Query text to watch for similar items.
|
|
333
|
+
* @param threshold - Similarity threshold.
|
|
334
|
+
* @returns An async iterable of updates.
|
|
335
|
+
*/
|
|
336
|
+
async *subscribe(filterType = "all", nodeId, queryText = "", threshold = 0.8) {
|
|
337
|
+
this.checkConnected();
|
|
338
|
+
yield* this.client.subscribe(filterType, nodeId, queryText, threshold);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* Inserts multiple documents in a batch.
|
|
342
|
+
* @param documents - Array of documents.
|
|
343
|
+
* @param userId - User ID.
|
|
344
|
+
* @returns Count of inserted items and their node IDs.
|
|
345
|
+
*/
|
|
346
|
+
async batchInsert(documents, userId = 1) {
|
|
347
|
+
this.checkConnected();
|
|
348
|
+
return this.client.batchInsert(documents, userId);
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Grants permissions on a node to a user.
|
|
352
|
+
* @param nodeId - Node ID.
|
|
353
|
+
* @param userId - User ID.
|
|
354
|
+
* @param permissions - Permissions object ({ read, write, delete }).
|
|
355
|
+
* @returns True if successful.
|
|
356
|
+
*/
|
|
357
|
+
async grantPermission(nodeId, userId, permissions) {
|
|
358
|
+
this.checkConnected();
|
|
359
|
+
return this.client.grantPermission(nodeId, userId, permissions);
|
|
360
|
+
}
|
|
361
|
+
/**
|
|
362
|
+
* Revokes all permissions on a node for a user.
|
|
363
|
+
* @param nodeId - Node ID.
|
|
364
|
+
* @param userId - User ID.
|
|
365
|
+
* @returns True if successful.
|
|
366
|
+
*/
|
|
367
|
+
async revokePermission(nodeId, userId) {
|
|
368
|
+
this.checkConnected();
|
|
369
|
+
return this.client.revokePermission(nodeId, userId);
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* Checks if a user has a specific permission on a node.
|
|
373
|
+
* @param nodeId - Node ID.
|
|
374
|
+
* @param userId - User ID.
|
|
375
|
+
* @param permissionType - "read", "write", "delete".
|
|
376
|
+
* @returns True if allowed.
|
|
377
|
+
*/
|
|
378
|
+
async checkPermission(nodeId, userId, permissionType) {
|
|
379
|
+
this.checkConnected();
|
|
380
|
+
return this.client.checkPermission(nodeId, userId, permissionType);
|
|
381
|
+
}
|
|
382
|
+
/**
|
|
383
|
+
* Grants permissions in batch.
|
|
384
|
+
* @param grants - Array of grant objects.
|
|
385
|
+
* @returns Detailed results of the operation.
|
|
386
|
+
*/
|
|
387
|
+
async batchGrant(grants) {
|
|
388
|
+
this.checkConnected();
|
|
389
|
+
return this.client.batchGrant(grants);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Inserts a node with ACL permissions in one go.
|
|
393
|
+
* @param nodeId - Node ID.
|
|
394
|
+
* @param text - Content.
|
|
395
|
+
* @param metadata - Metadata.
|
|
396
|
+
* @param userPermissions - Array of user permissions.
|
|
397
|
+
* @returns Insertion result.
|
|
398
|
+
*/
|
|
399
|
+
async insertWithAcl(nodeId, text, metadata, userPermissions) {
|
|
400
|
+
this.checkConnected();
|
|
401
|
+
return this.client.insertWithAcl(nodeId, text, metadata, userPermissions);
|
|
402
|
+
}
|
|
403
|
+
// Helper to convert inputs to Long
|
|
404
|
+
toLong(val) {
|
|
405
|
+
return long_1.default.fromValue(val);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
exports.RiceDBClient = RiceDBClient;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./client/BaseClient";
|
|
2
|
+
export * from "./client/GrpcClient";
|
|
3
|
+
export * from "./client/HttpClient";
|
|
4
|
+
export * from "./client/RiceDBClient";
|
|
5
|
+
export * from "./utils/BitVector";
|
|
6
|
+
export { RiceDBClient as default } from "./client/RiceDBClient";
|
|
7
|
+
import Long from "long";
|
|
8
|
+
export { Long };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.Long = exports.default = void 0;
|
|
21
|
+
__exportStar(require("./client/BaseClient"), exports);
|
|
22
|
+
__exportStar(require("./client/GrpcClient"), exports);
|
|
23
|
+
__exportStar(require("./client/HttpClient"), exports);
|
|
24
|
+
__exportStar(require("./client/RiceDBClient"), exports);
|
|
25
|
+
__exportStar(require("./utils/BitVector"), exports);
|
|
26
|
+
var RiceDBClient_1 = require("./client/RiceDBClient");
|
|
27
|
+
Object.defineProperty(exports, "default", { enumerable: true, get: function () { return RiceDBClient_1.RiceDBClient; } });
|
|
28
|
+
const long_1 = __importDefault(require("long"));
|
|
29
|
+
exports.Long = long_1.default;
|