@anvailabs/proximadb-client 0.3.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.
Files changed (65) hide show
  1. package/README.md +160 -0
  2. package/dist/client.d.ts +319 -0
  3. package/dist/client.d.ts.map +1 -0
  4. package/dist/client.js +681 -0
  5. package/dist/client.js.map +1 -0
  6. package/dist/collection.d.ts +227 -0
  7. package/dist/collection.d.ts.map +1 -0
  8. package/dist/collection.js +436 -0
  9. package/dist/collection.js.map +1 -0
  10. package/dist/esm/client.js +674 -0
  11. package/dist/esm/client.js.map +1 -0
  12. package/dist/esm/collection.js +428 -0
  13. package/dist/esm/collection.js.map +1 -0
  14. package/dist/esm/filter.js +228 -0
  15. package/dist/esm/filter.js.map +1 -0
  16. package/dist/esm/generated/schema.js +6 -0
  17. package/dist/esm/generated/schema.js.map +1 -0
  18. package/dist/esm/graph.js +678 -0
  19. package/dist/esm/graph.js.map +1 -0
  20. package/dist/esm/index.js +86 -0
  21. package/dist/esm/index.js.map +1 -0
  22. package/dist/esm/search.js +317 -0
  23. package/dist/esm/search.js.map +1 -0
  24. package/dist/esm/transport.js +33 -0
  25. package/dist/esm/transport.js.map +1 -0
  26. package/dist/esm/types.js +181 -0
  27. package/dist/esm/types.js.map +1 -0
  28. package/dist/filter.d.ts +51 -0
  29. package/dist/filter.d.ts.map +1 -0
  30. package/dist/filter.js +241 -0
  31. package/dist/filter.js.map +1 -0
  32. package/dist/generated/schema.d.ts +4271 -0
  33. package/dist/generated/schema.d.ts.map +1 -0
  34. package/dist/generated/schema.js +7 -0
  35. package/dist/generated/schema.js.map +1 -0
  36. package/dist/graph.d.ts +350 -0
  37. package/dist/graph.d.ts.map +1 -0
  38. package/dist/graph.js +690 -0
  39. package/dist/graph.js.map +1 -0
  40. package/dist/index.d.ts +58 -0
  41. package/dist/index.d.ts.map +1 -0
  42. package/dist/index.js +126 -0
  43. package/dist/index.js.map +1 -0
  44. package/dist/search.d.ts +160 -0
  45. package/dist/search.d.ts.map +1 -0
  46. package/dist/search.js +322 -0
  47. package/dist/search.js.map +1 -0
  48. package/dist/transport.d.ts +40 -0
  49. package/dist/transport.d.ts.map +1 -0
  50. package/dist/transport.js +39 -0
  51. package/dist/transport.js.map +1 -0
  52. package/dist/types.d.ts +632 -0
  53. package/dist/types.d.ts.map +1 -0
  54. package/dist/types.js +185 -0
  55. package/dist/types.js.map +1 -0
  56. package/package.json +72 -0
  57. package/src/client.ts +856 -0
  58. package/src/collection.ts +578 -0
  59. package/src/filter.ts +280 -0
  60. package/src/generated/schema.ts +4271 -0
  61. package/src/graph.ts +811 -0
  62. package/src/index.ts +184 -0
  63. package/src/search.ts +401 -0
  64. package/src/transport.ts +52 -0
  65. package/src/types.ts +726 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"collection.js","sourceRoot":"","sources":["../src/collection.ts"],"names":[],"mappings":";AAAA;;;;;;;GAOG;;;AAUH,mCAIiB;AACjB,qCAA2D;AAQ3D,SAAS,aAAa,CAAC,MAMtB;IACC,OAAO;QACL,EAAE,EAAE,MAAM,CAAC,EAAE;QACb,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE;QAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,IAAI,EAAE;QAC5C,MAAM,EAAE,MAAM,CAAC,MAAM;KACtB,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CAAC,QAA6B;IAClD,OAAO,QAAQ,CAAC,aAAa,IAAI,QAAQ,CAAC,cAAc,IAAI,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AACpF,CAAC;AA4BD,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E;;GAEG;AACH,MAAa,iBAAiB;IACpB,MAAM,CAAuB;IAC7B,cAAc,CAAS;IACvB,cAAc,GAAkB,IAAI,CAAC;IACrC,WAAW,GAAkB,qBAAa,CAAC,GAAG,CAAC;IAC/C,UAAU,GAAc,iBAAS,C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C7D,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACzB,CAAC;QACD,OAAO,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;IACjC,CAAC;CACF;AA3JD,4CA2JC"}
@@ -0,0 +1,674 @@
1
+ /**
2
+ * ProximaDB TypeScript SDK - Client
3
+ *
4
+ * Main entry point for connecting to ProximaDB servers.
5
+ *
6
+ * Copyright 2025 ProximaDB Contributors
7
+ * Licensed under the Apache License, Version 2.0
8
+ */
9
+ import { ProximaDBError, ErrorCode, } from "./types";
10
+ import { CollectionBuilder, CollectionHandle } from "./collection";
11
+ import { GraphBuilder, GraphHandle } from "./graph";
12
+ import { createTransport } from "./transport";
13
+ /**
14
+ * Default client configuration
15
+ */
16
+ const DEFAULT_CONFIG = {
17
+ url: "http://localhost:5678",
18
+ timeoutMs: 30000,
19
+ maxRetries: 3,
20
+ apiKey: "",
21
+ poolConnections: true,
22
+ maxIdleConnections: 10,
23
+ };
24
+ /**
25
+ * Get the global fetch function
26
+ */
27
+ function getFetch() {
28
+ if (typeof globalThis.fetch === "function") {
29
+ return globalThis.fetch.bind(globalThis);
30
+ }
31
+ throw new Error("No fetch implementation available. " +
32
+ "Node.js 18+ includes fetch natively. " +
33
+ "For older versions, install node-fetch.");
34
+ }
35
+ /**
36
+ * ProximaDB client for connecting to a remote server
37
+ */
38
+ export class ProximaDBClient {
39
+ config;
40
+ fetchFn;
41
+ /**
42
+ * Generated typed REST transport (TD-126 Phase 4). Core collection / record
43
+ * / search operations route through this; it owns URL/path/query/body
44
+ * encoding per the OpenAPI spec. Auth, retries, and error mapping are
45
+ * injected via the facade's own fetch (see `transportFetch`).
46
+ */
47
+ gen;
48
+ /**
49
+ * Create a new client with the given URL
50
+ */
51
+ static connect(url) {
52
+ return new ProximaDBClient({ url });
53
+ }
54
+ /**
55
+ * Create a new client builder
56
+ */
57
+ static builder() {
58
+ return new ClientBuilder();
59
+ }
60
+ /**
61
+ * Create a client with configuration
62
+ */
63
+ constructor(config = {}) {
64
+ this.config = { ...DEFAULT_CONFIG, ...config };
65
+ this.fetchFn = getFetch();
66
+ // Validate URL
67
+ try {
68
+ new URL(this.config.url);
69
+ }
70
+ catch {
71
+ throw new ProximaDBError("Invalid URL: " + this.config.url, ErrorCode.InvalidConfig);
72
+ }
73
+ // Wire the generated typed transport. Every request the generated client
74
+ // issues is funneled through `transportFetch`, the facade's own fetch that
75
+ // applies bearer auth, retries, and error mapping — exactly as the legacy
76
+ // generic `request<T>` path does.
77
+ this.gen = createTransport(this.config.url, (req) => this.transportFetch(req));
78
+ }
79
+ /**
80
+ * Transport `fetch` handed to the generated client.
81
+ *
82
+ * The generated client assembles a resolved `Request` (URL + method + body);
83
+ * this normalizes it back to the facade's `(url, init)` retry/auth/error
84
+ * pipeline so the wire plumbing and transport policy compose. The returned
85
+ * value is a `Response`-shaped object the generated client parses; on an
86
+ * unsuccessful response a `ProximaDBError` is thrown (matching the generic
87
+ * path), so callers never see a non-2xx body.
88
+ */
89
+ async transportFetch(req) {
90
+ const method = (req.method || "GET").toUpperCase();
91
+ let body = undefined;
92
+ if (method !== "GET" && method !== "DELETE") {
93
+ const text = await req.clone().text();
94
+ if (text.length > 0) {
95
+ body = JSON.parse(text);
96
+ }
97
+ }
98
+ const data = await this.request(method, req.url, body);
99
+ // Re-wrap the already-parsed, validated body as a Response so the
100
+ // generated client can read `.json()`/`.ok` without re-issuing I/O.
101
+ return new Response(JSON.stringify(data ?? null), {
102
+ status: 200,
103
+ headers: { "Content-Type": "application/json" },
104
+ });
105
+ }
106
+ /**
107
+ * Get the server URL
108
+ */
109
+ url() {
110
+ return this.config.url;
111
+ }
112
+ /**
113
+ * Get the client configuration
114
+ */
115
+ getConfig() {
116
+ return { ...this.config };
117
+ }
118
+ // =========================================================================
119
+ // HTTP Methods
120
+ // =========================================================================
121
+ /**
122
+ * Make a GET request
123
+ */
124
+ async get(requestUrl) {
125
+ return this.request("GET", requestUrl);
126
+ }
127
+ /**
128
+ * Make a POST request
129
+ */
130
+ async post(requestUrl, body) {
131
+ return this.request("POST", requestUrl, body);
132
+ }
133
+ /**
134
+ * Make a PUT request
135
+ */
136
+ async put(requestUrl, body) {
137
+ return this.request("PUT", requestUrl, body);
138
+ }
139
+ /**
140
+ * Make a DELETE request
141
+ */
142
+ async delete(requestUrl) {
143
+ return this.request("DELETE", requestUrl);
144
+ }
145
+ /**
146
+ * Make an HTTP request with retry logic
147
+ */
148
+ async request(method, requestUrl, body) {
149
+ const headers = {
150
+ "Content-Type": "application/json",
151
+ Accept: "application/json",
152
+ };
153
+ if (this.config.apiKey) {
154
+ headers["Authorization"] = "Bearer " + this.config.apiKey;
155
+ }
156
+ const buildInit = (signal) => {
157
+ const init = {
158
+ method,
159
+ headers,
160
+ signal,
161
+ };
162
+ if (body !== undefined) {
163
+ init.body = JSON.stringify(body);
164
+ }
165
+ return init;
166
+ };
167
+ let lastError = null;
168
+ for (let attempt = 0; attempt <= this.config.maxRetries; attempt++) {
169
+ const controller = new AbortController();
170
+ const timeoutId = setTimeout(() => controller.abort(), this.config.timeoutMs);
171
+ try {
172
+ const response = await this.fetchFn(requestUrl, buildInit(controller.signal));
173
+ return await this.handleResponse(response);
174
+ }
175
+ catch (e) {
176
+ lastError = e instanceof Error ? e : new Error(String(e));
177
+ // Don't retry on client errors (4xx)
178
+ if (lastError instanceof ProximaDBError) {
179
+ if (lastError.statusCode && lastError.statusCode >= 400 && lastError.statusCode < 500) {
180
+ throw lastError;
181
+ }
182
+ }
183
+ // Wait before retry with exponential backoff
184
+ if (attempt < this.config.maxRetries) {
185
+ const delay = Math.min(1000 * Math.pow(2, attempt), 10000);
186
+ await new Promise((resolve) => setTimeout(resolve, delay));
187
+ }
188
+ }
189
+ finally {
190
+ clearTimeout(timeoutId);
191
+ }
192
+ }
193
+ throw lastError ?? new Error("Request failed after retries");
194
+ }
195
+ /**
196
+ * Handle HTTP response
197
+ */
198
+ async handleResponse(response) {
199
+ if (response.ok) {
200
+ try {
201
+ return (await response.json());
202
+ }
203
+ catch {
204
+ throw new ProximaDBError("Failed to parse response JSON", ErrorCode.ServerError, response.status);
205
+ }
206
+ }
207
+ const statusCode = response.status;
208
+ let message = response.statusText;
209
+ try {
210
+ message = await response.text();
211
+ }
212
+ catch {
213
+ // Use statusText if text() fails
214
+ }
215
+ switch (statusCode) {
216
+ case 401:
217
+ throw new ProximaDBError(message, ErrorCode.AuthenticationFailed, statusCode);
218
+ case 403:
219
+ throw new ProximaDBError(message, ErrorCode.AuthorizationDenied, statusCode);
220
+ case 404:
221
+ throw new ProximaDBError(message, ErrorCode.CollectionNotFound, statusCode);
222
+ case 409:
223
+ throw new ProximaDBError(message, ErrorCode.CollectionExists, statusCode);
224
+ case 429:
225
+ throw new ProximaDBError(message, ErrorCode.RateLimited, statusCode);
226
+ default:
227
+ throw new ProximaDBError(message, ErrorCode.ServerError, statusCode);
228
+ }
229
+ }
230
+ // =========================================================================
231
+ // Collection Operations
232
+ // =========================================================================
233
+ /**
234
+ * Get a handle to a collection for fluent operations
235
+ */
236
+ collection(name) {
237
+ return new CollectionHandle(this, name);
238
+ }
239
+ /**
240
+ * Create a collection builder
241
+ */
242
+ createCollection(name) {
243
+ return new CollectionBuilder(this, name);
244
+ }
245
+ /**
246
+ * Delete a collection
247
+ *
248
+ * Routed through the generated typed transport (TD-126 Phase 4).
249
+ * Wire endpoint: DELETE /api/v2/collections/{collection_id}
250
+ * OpenAPI operationId: deleteCollection
251
+ */
252
+ async deleteCollection(name) {
253
+ await this.gen.DELETE("/api/v2/collections/{collection_id}", {
254
+ params: { path: { collection_id: name } },
255
+ });
256
+ }
257
+ /**
258
+ * List all collections
259
+ *
260
+ * Routed through the generated typed transport (TD-126 Phase 4).
261
+ * Wire endpoint: GET /api/v2/collections
262
+ * OpenAPI operationId: listCollections
263
+ */
264
+ async listCollections() {
265
+ const { data } = await this.gen.GET("/api/v2/collections", {});
266
+ return (data?.collections ?? []);
267
+ }
268
+ /**
269
+ * Get the schema for a collection
270
+ *
271
+ * Routed through the generated typed transport (TD-126 Phase 4).
272
+ * Wire endpoint: GET /api/v2/collections/{collection_id}/schema
273
+ * OpenAPI operationId: getCollectionSchema
274
+ */
275
+ async getCollectionSchema(collectionId) {
276
+ const { data } = await this.gen.GET("/api/v2/collections/{collection_id}/schema", { params: { path: { collection_id: collectionId } } });
277
+ return data;
278
+ }
279
+ /**
280
+ * Update the schema for a collection
281
+ *
282
+ * Routed through the generated typed transport (TD-126 Phase 4).
283
+ * Wire endpoint: PUT /api/v2/collections/{collection_id}/schema
284
+ * OpenAPI operationId: updateCollectionSchema
285
+ */
286
+ async updateCollectionSchema(collectionId, schema) {
287
+ const { data } = await this.gen.PUT("/api/v2/collections/{collection_id}/schema", {
288
+ params: { path: { collection_id: collectionId } },
289
+ body: schema,
290
+ });
291
+ return data;
292
+ }
293
+ // =========================================================================
294
+ // Query Facade (AQL / UQL)
295
+ // =========================================================================
296
+ /**
297
+ * Execute an AQL or UQL query through the shared query facade
298
+ *
299
+ * Wire endpoint: POST /api/v2/query
300
+ * OpenAPI operationId: executeQuery
301
+ */
302
+ async executeQuery(req) {
303
+ const { data } = await this.gen.POST("/api/v2/query", {
304
+ body: req,
305
+ });
306
+ return data;
307
+ }
308
+ /**
309
+ * Explain an AQL or UQL query through the shared query facade
310
+ *
311
+ * Wire endpoint: POST /api/v2/query/explain
312
+ * OpenAPI operationId: explainQuery
313
+ */
314
+ async explainQuery(req) {
315
+ const { data } = await this.gen.POST("/api/v2/query/explain", {
316
+ body: req,
317
+ });
318
+ return data;
319
+ }
320
+ // =========================================================================
321
+ // Typed transport for core collection / record / search ops (TD-126 Phase 4)
322
+ //
323
+ // These route the builders' wire calls through the generated typed client.
324
+ // The builders (collection.ts / search.ts) call these instead of hand-building
325
+ // URL strings, so the core CRUD + search paths are spec-generated end to end.
326
+ // =========================================================================
327
+ /**
328
+ * Create a collection.
329
+ * Wire endpoint: POST /api/v2/collections (createCollection)
330
+ */
331
+ async createCollectionRequest(body) {
332
+ const { data } = await this.gen.POST("/api/v2/collections", {
333
+ body: body,
334
+ });
335
+ return data;
336
+ }
337
+ /**
338
+ * Get collection details.
339
+ * Wire endpoint: GET /api/v2/collections/{collection_id} (getCollection)
340
+ */
341
+ async getCollectionRequest(collectionId) {
342
+ const { data } = await this.gen.GET("/api/v2/collections/{collection_id}", {
343
+ params: { path: { collection_id: collectionId } },
344
+ });
345
+ return data;
346
+ }
347
+ /**
348
+ * Insert / upsert records in a batch.
349
+ * Wire endpoint: POST /api/v2/collections/{collection_id}/records/batch (insertRecords)
350
+ */
351
+ async insertRecordsRequest(collectionId, body) {
352
+ const { data } = await this.gen.POST("/api/v2/collections/{collection_id}/records/batch", {
353
+ params: { path: { collection_id: collectionId } },
354
+ body: body,
355
+ });
356
+ return data;
357
+ }
358
+ /**
359
+ * Get a single record by ID.
360
+ * Wire endpoint: GET /api/v2/collections/{collection_id}/records/{record_id} (getRecord)
361
+ */
362
+ async getRecordRequest(collectionId, recordId, includeVector, includeText) {
363
+ const { data } = await this.gen.GET("/api/v2/collections/{collection_id}/records/{record_id}", {
364
+ params: {
365
+ path: { collection_id: collectionId, record_id: recordId },
366
+ query: { include_vector: includeVector, include_text: includeText },
367
+ },
368
+ });
369
+ return data;
370
+ }
371
+ /**
372
+ * Delete a single record by ID.
373
+ * Wire endpoint: DELETE /api/v2/collections/{collection_id}/records/{record_id} (deleteRecord)
374
+ */
375
+ async deleteRecordRequest(collectionId, recordId) {
376
+ await this.gen.DELETE("/api/v2/collections/{collection_id}/records/{record_id}", {
377
+ params: { path: { collection_id: collectionId, record_id: recordId } },
378
+ });
379
+ }
380
+ /**
381
+ * Vector similarity search.
382
+ * Wire endpoint: POST /api/v2/collections/{collection_id}/search (searchRecords)
383
+ */
384
+ async searchRecordsRequest(collectionId, body) {
385
+ const { data } = await this.gen.POST("/api/v2/collections/{collection_id}/search", {
386
+ params: { path: { collection_id: collectionId } },
387
+ body: body,
388
+ });
389
+ return data;
390
+ }
391
+ // =========================================================================
392
+ // Graph Operations
393
+ // =========================================================================
394
+ /**
395
+ * Get a handle to a graph for fluent operations
396
+ */
397
+ graph(name) {
398
+ return new GraphHandle(this, name);
399
+ }
400
+ /**
401
+ * Create a graph builder.
402
+ *
403
+ * Wire endpoint: POST /api/v2/graphs
404
+ * OpenAPI operationId: createGraph
405
+ *
406
+ * The argument is the server-true `graph_id` (unique identifier). Use
407
+ * `.name(...)` on the returned builder to set the optional display name.
408
+ */
409
+ createGraph(graphId) {
410
+ return new GraphBuilder(this, graphId);
411
+ }
412
+ /**
413
+ * Delete a graph
414
+ *
415
+ * Routed through the generated typed transport (TD-126 Phase 4).
416
+ * Wire endpoint: DELETE /api/v2/graphs/{graph_id}
417
+ * OpenAPI operationId: deleteGraph
418
+ */
419
+ async deleteGraph(name) {
420
+ await this.gen.DELETE("/api/v2/graphs/{graph_id}", {
421
+ params: { path: { graph_id: name } },
422
+ });
423
+ }
424
+ /**
425
+ * List all graphs
426
+ *
427
+ * Routed through the generated typed transport (TD-126 Phase 4).
428
+ * Wire endpoint: GET /api/v2/graphs
429
+ * OpenAPI operationId: listGraphs
430
+ */
431
+ async listGraphs() {
432
+ const { data } = await this.gen.GET("/api/v2/graphs", {});
433
+ return (data?.graphs ?? []);
434
+ }
435
+ // =========================================================================
436
+ // Typed transport for graph ops (TD-126 Phase 4)
437
+ //
438
+ // Seam methods routing the graph builders' / handle's wire calls through the
439
+ // generated typed client, mirroring the core collection / record / search
440
+ // seams above. The public graph API (graph.ts builders + handle) is
441
+ // unchanged; only the wire dispatch moves off hand-built URL strings.
442
+ // =========================================================================
443
+ /**
444
+ * Create a graph collection.
445
+ * Wire endpoint: POST /api/v2/graphs (createGraph)
446
+ */
447
+ async createGraphRequest(body) {
448
+ const { data } = await this.gen.POST("/api/v2/graphs", {
449
+ body: body,
450
+ });
451
+ return data;
452
+ }
453
+ /**
454
+ * Get a graph collection by id.
455
+ * Wire endpoint: GET /api/v2/graphs/{graph_id} (getGraph)
456
+ */
457
+ async getGraphRequest(graphId) {
458
+ const { data } = await this.gen.GET("/api/v2/graphs/{graph_id}", {
459
+ params: { path: { graph_id: graphId } },
460
+ });
461
+ return data;
462
+ }
463
+ /**
464
+ * Get graph statistics.
465
+ * Wire endpoint: GET /api/v2/graphs/{graph_id}/stats (getGraphStats)
466
+ */
467
+ async getGraphStatsRequest(graphId) {
468
+ const { data } = await this.gen.GET("/api/v2/graphs/{graph_id}/stats", {
469
+ params: { path: { graph_id: graphId } },
470
+ });
471
+ return data;
472
+ }
473
+ /**
474
+ * Create a node in a graph.
475
+ * Wire endpoint: POST /api/v2/graphs/{graph_id}/nodes (createNode)
476
+ */
477
+ async createNodeRequest(graphId, body) {
478
+ const { data } = await this.gen.POST("/api/v2/graphs/{graph_id}/nodes", {
479
+ params: { path: { graph_id: graphId } },
480
+ body: body,
481
+ });
482
+ return data;
483
+ }
484
+ /**
485
+ * Create multiple nodes in a single call.
486
+ * Wire endpoint: POST /api/v2/graphs/{graph_id}/nodes/batch (batchCreateNodes)
487
+ */
488
+ async batchCreateNodesRequest(graphId, body) {
489
+ const { data } = await this.gen.POST("/api/v2/graphs/{graph_id}/nodes/batch", {
490
+ params: { path: { graph_id: graphId } },
491
+ body: body,
492
+ });
493
+ return data;
494
+ }
495
+ /**
496
+ * Get a node by id.
497
+ * Wire endpoint: GET /api/v2/graphs/{graph_id}/nodes/{node_id} (getNode)
498
+ */
499
+ async getNodeRequest(graphId, nodeId) {
500
+ const { data } = await this.gen.GET("/api/v2/graphs/{graph_id}/nodes/{node_id}", {
501
+ params: { path: { graph_id: graphId, node_id: nodeId } },
502
+ });
503
+ return data;
504
+ }
505
+ /**
506
+ * Delete a node by id.
507
+ * Wire endpoint: DELETE /api/v2/graphs/{graph_id}/nodes/{node_id} (deleteNode)
508
+ */
509
+ async deleteNodeRequest(graphId, nodeId) {
510
+ await this.gen.DELETE("/api/v2/graphs/{graph_id}/nodes/{node_id}", {
511
+ params: { path: { graph_id: graphId, node_id: nodeId } },
512
+ });
513
+ }
514
+ /**
515
+ * Create an edge in a graph.
516
+ * Wire endpoint: POST /api/v2/graphs/{graph_id}/edges (createEdge)
517
+ */
518
+ async createEdgeRequest(graphId, body) {
519
+ const { data } = await this.gen.POST("/api/v2/graphs/{graph_id}/edges", {
520
+ params: { path: { graph_id: graphId } },
521
+ body: body,
522
+ });
523
+ return data;
524
+ }
525
+ /**
526
+ * Create multiple edges in a single call.
527
+ * Wire endpoint: POST /api/v2/graphs/{graph_id}/edges/batch (batchCreateEdges)
528
+ */
529
+ async batchCreateEdgesRequest(graphId, body) {
530
+ const { data } = await this.gen.POST("/api/v2/graphs/{graph_id}/edges/batch", {
531
+ params: { path: { graph_id: graphId } },
532
+ body: body,
533
+ });
534
+ return data;
535
+ }
536
+ /**
537
+ * Traverse a graph from a start node.
538
+ * Wire endpoint: POST /api/v2/graphs/{graph_id}/traverse (traverseGraph)
539
+ */
540
+ async traverseGraphRequest(graphId, body) {
541
+ const { data } = await this.gen.POST("/api/v2/graphs/{graph_id}/traverse", {
542
+ params: { path: { graph_id: graphId } },
543
+ body: body,
544
+ });
545
+ return data;
546
+ }
547
+ // =========================================================================
548
+ // Health and Monitoring
549
+ // =========================================================================
550
+ /**
551
+ * Check if the server is healthy
552
+ *
553
+ * Routed through the generated typed transport (TD-126 Phase 4).
554
+ * Wire endpoint: GET /health
555
+ * OpenAPI operationId: getHealth
556
+ */
557
+ async health() {
558
+ const { data } = await this.gen.GET("/health", {});
559
+ return data;
560
+ }
561
+ /**
562
+ * Kubernetes-style liveness probe
563
+ *
564
+ * Routed through the generated typed transport (TD-126 Phase 4).
565
+ * Wire endpoint: GET /health/live
566
+ * OpenAPI operationId: getLiveness
567
+ */
568
+ async healthLive() {
569
+ const { data } = await this.gen.GET("/health/live", {});
570
+ return data;
571
+ }
572
+ /**
573
+ * Kubernetes-style readiness probe
574
+ *
575
+ * Routed through the generated typed transport (TD-126 Phase 4).
576
+ * Wire endpoint: GET /health/ready
577
+ * OpenAPI operationId: getReadiness
578
+ */
579
+ async healthReady() {
580
+ const { data } = await this.gen.GET("/health/ready", {});
581
+ return data;
582
+ }
583
+ /**
584
+ * Check if the server is reachable
585
+ */
586
+ async ping() {
587
+ try {
588
+ await this.health();
589
+ return true;
590
+ }
591
+ catch {
592
+ return false;
593
+ }
594
+ }
595
+ }
596
+ // ============================================================================
597
+ // CLIENT BUILDER
598
+ // ============================================================================
599
+ /**
600
+ * Builder for creating a ProximaDB client with custom configuration
601
+ */
602
+ export class ClientBuilder {
603
+ config = {};
604
+ /**
605
+ * Set the server URL
606
+ */
607
+ url(serverUrl) {
608
+ this.config.url = serverUrl;
609
+ return this;
610
+ }
611
+ /**
612
+ * Set the request timeout in milliseconds
613
+ */
614
+ timeoutMs(timeout) {
615
+ this.config.timeoutMs = timeout;
616
+ return this;
617
+ }
618
+ /**
619
+ * Set the maximum number of retries
620
+ */
621
+ maxRetries(retries) {
622
+ this.config.maxRetries = retries;
623
+ return this;
624
+ }
625
+ /**
626
+ * Set the API key for authentication
627
+ */
628
+ apiKey(key) {
629
+ this.config.apiKey = key;
630
+ return this;
631
+ }
632
+ /**
633
+ * Enable or disable connection pooling
634
+ */
635
+ poolConnections(enable) {
636
+ this.config.poolConnections = enable;
637
+ return this;
638
+ }
639
+ /**
640
+ * Set maximum idle connections in pool
641
+ */
642
+ maxIdleConnections(max) {
643
+ this.config.maxIdleConnections = max;
644
+ return this;
645
+ }
646
+ /**
647
+ * Build the ProximaDB client
648
+ */
649
+ build() {
650
+ return new ProximaDBClient(this.config);
651
+ }
652
+ /**
653
+ * Connect to the server (alias for build)
654
+ */
655
+ connect() {
656
+ return this.build();
657
+ }
658
+ }
659
+ // ============================================================================
660
+ // CONVENIENCE FUNCTIONS
661
+ // ============================================================================
662
+ /**
663
+ * Create a ProximaDB client connected to the given URL
664
+ */
665
+ export function connect(url = "http://localhost:5678") {
666
+ return ProximaDBClient.connect(url);
667
+ }
668
+ /**
669
+ * Create a ProximaDB client with REST protocol
670
+ */
671
+ export function connectRest(url = "http://localhost:5678") {
672
+ return ProximaDBClient.connect(url);
673
+ }
674
+ //# sourceMappingURL=client.js.map