gwp-js 0.1.5 → 0.2.1

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.
@@ -76,10 +76,10 @@ export interface ResetRequest {
76
76
  }
77
77
  export interface ResetResponse {
78
78
  }
79
- export interface CloseRequest {
79
+ export interface CloseSessionRequest {
80
80
  sessionId: string;
81
81
  }
82
- export interface CloseResponse {
82
+ export interface CloseSessionResponse {
83
83
  }
84
84
  export interface PingRequest {
85
85
  sessionId: string;
@@ -109,6 +109,8 @@ export interface ExecuteResponse {
109
109
  export interface ResultHeader {
110
110
  resultType: ResultType;
111
111
  columns: ColumnDescriptor[];
112
+ /** Whether row order is semantically meaningful (sec 4.3.6) */
113
+ ordered: boolean;
112
114
  }
113
115
  export interface ColumnDescriptor {
114
116
  name: string;
@@ -158,56 +160,254 @@ export interface RollbackRequest {
158
160
  export interface RollbackResponse {
159
161
  status: GqlStatus | undefined;
160
162
  }
161
- export interface ListDatabasesRequest {
163
+ export interface ListSchemasRequest {
162
164
  }
163
- export interface DatabaseSummary {
165
+ export interface SchemaInfo {
166
+ name: string;
167
+ graphCount: number;
168
+ graphTypeCount: number;
169
+ }
170
+ export interface ListSchemasResponse {
171
+ schemas: SchemaInfo[];
172
+ }
173
+ export interface CreateSchemaRequest {
174
+ name: string;
175
+ ifNotExists: boolean;
176
+ }
177
+ export interface CreateSchemaResponse {
178
+ }
179
+ export interface DropSchemaRequest {
180
+ name: string;
181
+ ifExists: boolean;
182
+ }
183
+ export interface DropSchemaResponse {
184
+ existed: boolean;
185
+ }
186
+ export interface ListGraphsRequest {
187
+ /** Schema to list graphs from */
188
+ schema: string;
189
+ }
190
+ export interface GraphSummary {
191
+ schema: string;
164
192
  name: string;
165
193
  nodeCount: bigint;
166
194
  edgeCount: bigint;
167
- persistent: boolean;
168
- databaseType: string;
195
+ /** Graph type name (empty if open) */
196
+ graphType: string;
169
197
  }
170
- export interface ListDatabasesResponse {
171
- databases: DatabaseSummary[];
198
+ export interface ListGraphsResponse {
199
+ graphs: GraphSummary[];
172
200
  }
173
- export interface CreateDatabaseRequest {
201
+ export interface CreateGraphRequest {
202
+ schema: string;
174
203
  name: string;
175
- /** "Lpg", "Rdf", etc. */
176
- databaseType: string;
177
- /** "InMemory" or "Persistent" */
204
+ ifNotExists: boolean;
205
+ orReplace: boolean;
206
+ /** true = ANY GRAPH (open graph type) */
207
+ openType?: boolean | undefined;
208
+ /** Reference to a named graph type */
209
+ graphTypeRef?: string | undefined;
210
+ /** Optional: copy contents from source graph */
211
+ copyOf?: string | undefined;
212
+ /** Engine-specific options (GrafeoDB extensions) */
178
213
  storageMode: string;
179
- options: DatabaseOptions | undefined;
214
+ options: GraphOptions | undefined;
180
215
  }
181
- export interface DatabaseOptions {
216
+ export interface GraphOptions {
182
217
  memoryLimitBytes?: bigint | undefined;
183
218
  backwardEdges?: boolean | undefined;
184
219
  threads?: number | undefined;
185
220
  walEnabled?: boolean | undefined;
186
221
  walDurability?: string | undefined;
187
222
  }
188
- export interface CreateDatabaseResponse {
189
- database: DatabaseSummary | undefined;
223
+ export interface CreateGraphResponse {
224
+ graph: GraphSummary | undefined;
190
225
  }
191
- export interface DeleteDatabaseRequest {
226
+ export interface DropGraphRequest {
227
+ schema: string;
192
228
  name: string;
229
+ ifExists: boolean;
193
230
  }
194
- export interface DeleteDatabaseResponse {
195
- deleted: string;
231
+ export interface DropGraphResponse {
232
+ existed: boolean;
196
233
  }
197
- export interface GetDatabaseInfoRequest {
234
+ export interface GetGraphInfoRequest {
235
+ schema: string;
198
236
  name: string;
199
237
  }
200
- export interface GetDatabaseInfoResponse {
238
+ export interface GetGraphInfoResponse {
239
+ schema: string;
201
240
  name: string;
202
241
  nodeCount: bigint;
203
242
  edgeCount: bigint;
204
- persistent: boolean;
205
- databaseType: string;
243
+ graphType: string;
206
244
  storageMode: string;
207
245
  memoryLimitBytes: bigint;
208
246
  backwardEdges: boolean;
209
247
  threads: number;
210
248
  }
249
+ export interface ListGraphTypesRequest {
250
+ schema: string;
251
+ }
252
+ export interface GraphTypeInfo {
253
+ schema: string;
254
+ name: string;
255
+ }
256
+ export interface ListGraphTypesResponse {
257
+ graphTypes: GraphTypeInfo[];
258
+ }
259
+ export interface CreateGraphTypeRequest {
260
+ schema: string;
261
+ name: string;
262
+ ifNotExists: boolean;
263
+ orReplace: boolean;
264
+ }
265
+ export interface CreateGraphTypeResponse {
266
+ }
267
+ export interface DropGraphTypeRequest {
268
+ schema: string;
269
+ name: string;
270
+ ifExists: boolean;
271
+ }
272
+ export interface DropGraphTypeResponse {
273
+ existed: boolean;
274
+ }
275
+ export interface GetGraphStatsRequest {
276
+ graph: string;
277
+ }
278
+ export interface GetGraphStatsResponse {
279
+ nodeCount: bigint;
280
+ edgeCount: bigint;
281
+ labelCount: bigint;
282
+ edgeTypeCount: bigint;
283
+ propertyKeyCount: bigint;
284
+ indexCount: bigint;
285
+ memoryBytes: bigint;
286
+ diskBytes?: bigint | undefined;
287
+ }
288
+ export interface WalStatusRequest {
289
+ graph: string;
290
+ }
291
+ export interface WalStatusResponse {
292
+ enabled: boolean;
293
+ path?: string | undefined;
294
+ sizeBytes: bigint;
295
+ recordCount: bigint;
296
+ lastCheckpoint?: bigint | undefined;
297
+ currentEpoch: bigint;
298
+ }
299
+ export interface WalCheckpointRequest {
300
+ graph: string;
301
+ }
302
+ export interface WalCheckpointResponse {
303
+ }
304
+ export interface ValidateRequest {
305
+ graph: string;
306
+ }
307
+ export interface ValidateResponse {
308
+ valid: boolean;
309
+ errors: ValidationError[];
310
+ warnings: ValidationWarning[];
311
+ }
312
+ export interface ValidationError {
313
+ code: string;
314
+ message: string;
315
+ context?: string | undefined;
316
+ }
317
+ export interface ValidationWarning {
318
+ code: string;
319
+ message: string;
320
+ context?: string | undefined;
321
+ }
322
+ export interface CreateIndexRequest {
323
+ graph: string;
324
+ propertyIndex?: PropertyIndexDef | undefined;
325
+ vectorIndex?: VectorIndexDef | undefined;
326
+ textIndex?: TextIndexDef | undefined;
327
+ }
328
+ export interface PropertyIndexDef {
329
+ property: string;
330
+ }
331
+ export interface VectorIndexDef {
332
+ label: string;
333
+ property: string;
334
+ dimensions?: number | undefined;
335
+ /** cosine, euclidean, dot_product, manhattan */
336
+ metric?: string | undefined;
337
+ /** HNSW links per node */
338
+ m?: number | undefined;
339
+ efConstruction?: number | undefined;
340
+ }
341
+ export interface TextIndexDef {
342
+ label: string;
343
+ property: string;
344
+ }
345
+ export interface CreateIndexResponse {
346
+ }
347
+ export interface DropIndexRequest {
348
+ graph: string;
349
+ propertyIndex?: PropertyIndexDef | undefined;
350
+ vectorIndex?: VectorIndexDef | undefined;
351
+ textIndex?: TextIndexDef | undefined;
352
+ }
353
+ export interface DropIndexResponse {
354
+ existed: boolean;
355
+ }
356
+ export interface VectorSearchRequest {
357
+ graph: string;
358
+ label: string;
359
+ property: string;
360
+ queryVector: number[];
361
+ k: number;
362
+ ef?: number | undefined;
363
+ filters: {
364
+ [key: string]: Value;
365
+ };
366
+ }
367
+ export interface VectorSearchRequest_FiltersEntry {
368
+ key: string;
369
+ value: Value | undefined;
370
+ }
371
+ export interface TextSearchRequest {
372
+ graph: string;
373
+ label: string;
374
+ property: string;
375
+ query: string;
376
+ k: number;
377
+ }
378
+ export interface HybridSearchRequest {
379
+ graph: string;
380
+ label: string;
381
+ textProperty: string;
382
+ vectorProperty: string;
383
+ queryText: string;
384
+ queryVector: number[];
385
+ k: number;
386
+ }
387
+ /**
388
+ * A single search result. node_id is an internal numeric identifier
389
+ * (not the opaque bytes element ID from the GQL type system).
390
+ */
391
+ export interface SearchHit {
392
+ nodeId: bigint;
393
+ score: number;
394
+ properties: {
395
+ [key: string]: Value;
396
+ };
397
+ }
398
+ export interface SearchHit_PropertiesEntry {
399
+ key: string;
400
+ value: Value | undefined;
401
+ }
402
+ export interface VectorSearchResponse {
403
+ hits: SearchHit[];
404
+ }
405
+ export interface TextSearchResponse {
406
+ hits: SearchHit[];
407
+ }
408
+ export interface HybridSearchResponse {
409
+ hits: SearchHit[];
410
+ }
211
411
  export declare const HandshakeRequest: MessageFns<HandshakeRequest>;
212
412
  export declare const HandshakeRequest_ClientInfoEntry: MessageFns<HandshakeRequest_ClientInfoEntry>;
213
413
  export declare const HandshakeResponse: MessageFns<HandshakeResponse>;
@@ -218,8 +418,8 @@ export declare const SessionParameter: MessageFns<SessionParameter>;
218
418
  export declare const ConfigureResponse: MessageFns<ConfigureResponse>;
219
419
  export declare const ResetRequest: MessageFns<ResetRequest>;
220
420
  export declare const ResetResponse: MessageFns<ResetResponse>;
221
- export declare const CloseRequest: MessageFns<CloseRequest>;
222
- export declare const CloseResponse: MessageFns<CloseResponse>;
421
+ export declare const CloseSessionRequest: MessageFns<CloseSessionRequest>;
422
+ export declare const CloseSessionResponse: MessageFns<CloseSessionResponse>;
223
423
  export declare const PingRequest: MessageFns<PingRequest>;
224
424
  export declare const PongResponse: MessageFns<PongResponse>;
225
425
  export declare const ExecuteRequest: MessageFns<ExecuteRequest>;
@@ -237,16 +437,56 @@ export declare const CommitRequest: MessageFns<CommitRequest>;
237
437
  export declare const CommitResponse: MessageFns<CommitResponse>;
238
438
  export declare const RollbackRequest: MessageFns<RollbackRequest>;
239
439
  export declare const RollbackResponse: MessageFns<RollbackResponse>;
240
- export declare const ListDatabasesRequest: MessageFns<ListDatabasesRequest>;
241
- export declare const DatabaseSummary: MessageFns<DatabaseSummary>;
242
- export declare const ListDatabasesResponse: MessageFns<ListDatabasesResponse>;
243
- export declare const CreateDatabaseRequest: MessageFns<CreateDatabaseRequest>;
244
- export declare const DatabaseOptions: MessageFns<DatabaseOptions>;
245
- export declare const CreateDatabaseResponse: MessageFns<CreateDatabaseResponse>;
246
- export declare const DeleteDatabaseRequest: MessageFns<DeleteDatabaseRequest>;
247
- export declare const DeleteDatabaseResponse: MessageFns<DeleteDatabaseResponse>;
248
- export declare const GetDatabaseInfoRequest: MessageFns<GetDatabaseInfoRequest>;
249
- export declare const GetDatabaseInfoResponse: MessageFns<GetDatabaseInfoResponse>;
440
+ export declare const ListSchemasRequest: MessageFns<ListSchemasRequest>;
441
+ export declare const SchemaInfo: MessageFns<SchemaInfo>;
442
+ export declare const ListSchemasResponse: MessageFns<ListSchemasResponse>;
443
+ export declare const CreateSchemaRequest: MessageFns<CreateSchemaRequest>;
444
+ export declare const CreateSchemaResponse: MessageFns<CreateSchemaResponse>;
445
+ export declare const DropSchemaRequest: MessageFns<DropSchemaRequest>;
446
+ export declare const DropSchemaResponse: MessageFns<DropSchemaResponse>;
447
+ export declare const ListGraphsRequest: MessageFns<ListGraphsRequest>;
448
+ export declare const GraphSummary: MessageFns<GraphSummary>;
449
+ export declare const ListGraphsResponse: MessageFns<ListGraphsResponse>;
450
+ export declare const CreateGraphRequest: MessageFns<CreateGraphRequest>;
451
+ export declare const GraphOptions: MessageFns<GraphOptions>;
452
+ export declare const CreateGraphResponse: MessageFns<CreateGraphResponse>;
453
+ export declare const DropGraphRequest: MessageFns<DropGraphRequest>;
454
+ export declare const DropGraphResponse: MessageFns<DropGraphResponse>;
455
+ export declare const GetGraphInfoRequest: MessageFns<GetGraphInfoRequest>;
456
+ export declare const GetGraphInfoResponse: MessageFns<GetGraphInfoResponse>;
457
+ export declare const ListGraphTypesRequest: MessageFns<ListGraphTypesRequest>;
458
+ export declare const GraphTypeInfo: MessageFns<GraphTypeInfo>;
459
+ export declare const ListGraphTypesResponse: MessageFns<ListGraphTypesResponse>;
460
+ export declare const CreateGraphTypeRequest: MessageFns<CreateGraphTypeRequest>;
461
+ export declare const CreateGraphTypeResponse: MessageFns<CreateGraphTypeResponse>;
462
+ export declare const DropGraphTypeRequest: MessageFns<DropGraphTypeRequest>;
463
+ export declare const DropGraphTypeResponse: MessageFns<DropGraphTypeResponse>;
464
+ export declare const GetGraphStatsRequest: MessageFns<GetGraphStatsRequest>;
465
+ export declare const GetGraphStatsResponse: MessageFns<GetGraphStatsResponse>;
466
+ export declare const WalStatusRequest: MessageFns<WalStatusRequest>;
467
+ export declare const WalStatusResponse: MessageFns<WalStatusResponse>;
468
+ export declare const WalCheckpointRequest: MessageFns<WalCheckpointRequest>;
469
+ export declare const WalCheckpointResponse: MessageFns<WalCheckpointResponse>;
470
+ export declare const ValidateRequest: MessageFns<ValidateRequest>;
471
+ export declare const ValidateResponse: MessageFns<ValidateResponse>;
472
+ export declare const ValidationError: MessageFns<ValidationError>;
473
+ export declare const ValidationWarning: MessageFns<ValidationWarning>;
474
+ export declare const CreateIndexRequest: MessageFns<CreateIndexRequest>;
475
+ export declare const PropertyIndexDef: MessageFns<PropertyIndexDef>;
476
+ export declare const VectorIndexDef: MessageFns<VectorIndexDef>;
477
+ export declare const TextIndexDef: MessageFns<TextIndexDef>;
478
+ export declare const CreateIndexResponse: MessageFns<CreateIndexResponse>;
479
+ export declare const DropIndexRequest: MessageFns<DropIndexRequest>;
480
+ export declare const DropIndexResponse: MessageFns<DropIndexResponse>;
481
+ export declare const VectorSearchRequest: MessageFns<VectorSearchRequest>;
482
+ export declare const VectorSearchRequest_FiltersEntry: MessageFns<VectorSearchRequest_FiltersEntry>;
483
+ export declare const TextSearchRequest: MessageFns<TextSearchRequest>;
484
+ export declare const HybridSearchRequest: MessageFns<HybridSearchRequest>;
485
+ export declare const SearchHit: MessageFns<SearchHit>;
486
+ export declare const SearchHit_PropertiesEntry: MessageFns<SearchHit_PropertiesEntry>;
487
+ export declare const VectorSearchResponse: MessageFns<VectorSearchResponse>;
488
+ export declare const TextSearchResponse: MessageFns<TextSearchResponse>;
489
+ export declare const HybridSearchResponse: MessageFns<HybridSearchResponse>;
250
490
  export type SessionServiceService = typeof SessionServiceService;
251
491
  export declare const SessionServiceService: {
252
492
  /** Establish a session. Negotiates protocol version and authenticates. */
@@ -280,14 +520,14 @@ export declare const SessionServiceService: {
280
520
  readonly responseDeserialize: (value: Buffer) => ResetResponse;
281
521
  };
282
522
  /** Terminate the session. Rolls back any active transaction. */
283
- readonly close: {
284
- readonly path: "/gql.SessionService/Close";
523
+ readonly closeSession: {
524
+ readonly path: "/gql.SessionService/CloseSession";
285
525
  readonly requestStream: false;
286
526
  readonly responseStream: false;
287
- readonly requestSerialize: (value: CloseRequest) => Buffer;
288
- readonly requestDeserialize: (value: Buffer) => CloseRequest;
289
- readonly responseSerialize: (value: CloseResponse) => Buffer;
290
- readonly responseDeserialize: (value: Buffer) => CloseResponse;
527
+ readonly requestSerialize: (value: CloseSessionRequest) => Buffer;
528
+ readonly requestDeserialize: (value: Buffer) => CloseSessionRequest;
529
+ readonly responseSerialize: (value: CloseSessionResponse) => Buffer;
530
+ readonly responseDeserialize: (value: Buffer) => CloseSessionResponse;
291
531
  };
292
532
  /** Health check and keepalive. */
293
533
  readonly ping: {
@@ -308,7 +548,7 @@ export interface SessionServiceServer extends UntypedServiceImplementation {
308
548
  /** Reset session state to defaults. */
309
549
  reset: handleUnaryCall<ResetRequest, ResetResponse>;
310
550
  /** Terminate the session. Rolls back any active transaction. */
311
- close: handleUnaryCall<CloseRequest, CloseResponse>;
551
+ closeSession: handleUnaryCall<CloseSessionRequest, CloseSessionResponse>;
312
552
  /** Health check and keepalive. */
313
553
  ping: handleUnaryCall<PingRequest, PongResponse>;
314
554
  }
@@ -326,9 +566,9 @@ export interface SessionServiceClient extends Client {
326
566
  reset(request: ResetRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ResetResponse) => void): ClientUnaryCall;
327
567
  reset(request: ResetRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResetResponse) => void): ClientUnaryCall;
328
568
  /** Terminate the session. Rolls back any active transaction. */
329
- close(request: CloseRequest, callback: (error: ServiceError | null, response: CloseResponse) => void): ClientUnaryCall;
330
- close(request: CloseRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CloseResponse) => void): ClientUnaryCall;
331
- close(request: CloseRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CloseResponse) => void): ClientUnaryCall;
569
+ closeSession(request: CloseSessionRequest, callback: (error: ServiceError | null, response: CloseSessionResponse) => void): ClientUnaryCall;
570
+ closeSession(request: CloseSessionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CloseSessionResponse) => void): ClientUnaryCall;
571
+ closeSession(request: CloseSessionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CloseSessionResponse) => void): ClientUnaryCall;
332
572
  /** Health check and keepalive. */
333
573
  ping(request: PingRequest, callback: (error: ServiceError | null, response: PongResponse) => void): ClientUnaryCall;
334
574
  ping(request: PingRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PongResponse) => void): ClientUnaryCall;
@@ -429,80 +669,323 @@ export declare const GqlServiceClient: {
429
669
  service: typeof GqlServiceService;
430
670
  serviceName: string;
431
671
  };
432
- export type DatabaseServiceService = typeof DatabaseServiceService;
433
- export declare const DatabaseServiceService: {
434
- /** List all databases with summary info. */
435
- readonly listDatabases: {
436
- readonly path: "/gql.DatabaseService/ListDatabases";
672
+ export type CatalogServiceService = typeof CatalogServiceService;
673
+ export declare const CatalogServiceService: {
674
+ /** Schema management (sec 12.2, 12.3 - Feature GC01) */
675
+ readonly listSchemas: {
676
+ readonly path: "/gql.CatalogService/ListSchemas";
677
+ readonly requestStream: false;
678
+ readonly responseStream: false;
679
+ readonly requestSerialize: (value: ListSchemasRequest) => Buffer;
680
+ readonly requestDeserialize: (value: Buffer) => ListSchemasRequest;
681
+ readonly responseSerialize: (value: ListSchemasResponse) => Buffer;
682
+ readonly responseDeserialize: (value: Buffer) => ListSchemasResponse;
683
+ };
684
+ readonly createSchema: {
685
+ readonly path: "/gql.CatalogService/CreateSchema";
686
+ readonly requestStream: false;
687
+ readonly responseStream: false;
688
+ readonly requestSerialize: (value: CreateSchemaRequest) => Buffer;
689
+ readonly requestDeserialize: (value: Buffer) => CreateSchemaRequest;
690
+ readonly responseSerialize: (value: CreateSchemaResponse) => Buffer;
691
+ readonly responseDeserialize: (value: Buffer) => CreateSchemaResponse;
692
+ };
693
+ readonly dropSchema: {
694
+ readonly path: "/gql.CatalogService/DropSchema";
695
+ readonly requestStream: false;
696
+ readonly responseStream: false;
697
+ readonly requestSerialize: (value: DropSchemaRequest) => Buffer;
698
+ readonly requestDeserialize: (value: Buffer) => DropSchemaRequest;
699
+ readonly responseSerialize: (value: DropSchemaResponse) => Buffer;
700
+ readonly responseDeserialize: (value: Buffer) => DropSchemaResponse;
701
+ };
702
+ /** Graph management (sec 12.4, 12.5 - Feature GC04) */
703
+ readonly listGraphs: {
704
+ readonly path: "/gql.CatalogService/ListGraphs";
705
+ readonly requestStream: false;
706
+ readonly responseStream: false;
707
+ readonly requestSerialize: (value: ListGraphsRequest) => Buffer;
708
+ readonly requestDeserialize: (value: Buffer) => ListGraphsRequest;
709
+ readonly responseSerialize: (value: ListGraphsResponse) => Buffer;
710
+ readonly responseDeserialize: (value: Buffer) => ListGraphsResponse;
711
+ };
712
+ readonly createGraph: {
713
+ readonly path: "/gql.CatalogService/CreateGraph";
714
+ readonly requestStream: false;
715
+ readonly responseStream: false;
716
+ readonly requestSerialize: (value: CreateGraphRequest) => Buffer;
717
+ readonly requestDeserialize: (value: Buffer) => CreateGraphRequest;
718
+ readonly responseSerialize: (value: CreateGraphResponse) => Buffer;
719
+ readonly responseDeserialize: (value: Buffer) => CreateGraphResponse;
720
+ };
721
+ readonly dropGraph: {
722
+ readonly path: "/gql.CatalogService/DropGraph";
723
+ readonly requestStream: false;
724
+ readonly responseStream: false;
725
+ readonly requestSerialize: (value: DropGraphRequest) => Buffer;
726
+ readonly requestDeserialize: (value: Buffer) => DropGraphRequest;
727
+ readonly responseSerialize: (value: DropGraphResponse) => Buffer;
728
+ readonly responseDeserialize: (value: Buffer) => DropGraphResponse;
729
+ };
730
+ readonly getGraphInfo: {
731
+ readonly path: "/gql.CatalogService/GetGraphInfo";
732
+ readonly requestStream: false;
733
+ readonly responseStream: false;
734
+ readonly requestSerialize: (value: GetGraphInfoRequest) => Buffer;
735
+ readonly requestDeserialize: (value: Buffer) => GetGraphInfoRequest;
736
+ readonly responseSerialize: (value: GetGraphInfoResponse) => Buffer;
737
+ readonly responseDeserialize: (value: Buffer) => GetGraphInfoResponse;
738
+ };
739
+ /** Graph type management (sec 12.6, 12.7 - Feature GG02) */
740
+ readonly listGraphTypes: {
741
+ readonly path: "/gql.CatalogService/ListGraphTypes";
742
+ readonly requestStream: false;
743
+ readonly responseStream: false;
744
+ readonly requestSerialize: (value: ListGraphTypesRequest) => Buffer;
745
+ readonly requestDeserialize: (value: Buffer) => ListGraphTypesRequest;
746
+ readonly responseSerialize: (value: ListGraphTypesResponse) => Buffer;
747
+ readonly responseDeserialize: (value: Buffer) => ListGraphTypesResponse;
748
+ };
749
+ readonly createGraphType: {
750
+ readonly path: "/gql.CatalogService/CreateGraphType";
751
+ readonly requestStream: false;
752
+ readonly responseStream: false;
753
+ readonly requestSerialize: (value: CreateGraphTypeRequest) => Buffer;
754
+ readonly requestDeserialize: (value: Buffer) => CreateGraphTypeRequest;
755
+ readonly responseSerialize: (value: CreateGraphTypeResponse) => Buffer;
756
+ readonly responseDeserialize: (value: Buffer) => CreateGraphTypeResponse;
757
+ };
758
+ readonly dropGraphType: {
759
+ readonly path: "/gql.CatalogService/DropGraphType";
760
+ readonly requestStream: false;
761
+ readonly responseStream: false;
762
+ readonly requestSerialize: (value: DropGraphTypeRequest) => Buffer;
763
+ readonly requestDeserialize: (value: Buffer) => DropGraphTypeRequest;
764
+ readonly responseSerialize: (value: DropGraphTypeResponse) => Buffer;
765
+ readonly responseDeserialize: (value: Buffer) => DropGraphTypeResponse;
766
+ };
767
+ };
768
+ export interface CatalogServiceServer extends UntypedServiceImplementation {
769
+ /** Schema management (sec 12.2, 12.3 - Feature GC01) */
770
+ listSchemas: handleUnaryCall<ListSchemasRequest, ListSchemasResponse>;
771
+ createSchema: handleUnaryCall<CreateSchemaRequest, CreateSchemaResponse>;
772
+ dropSchema: handleUnaryCall<DropSchemaRequest, DropSchemaResponse>;
773
+ /** Graph management (sec 12.4, 12.5 - Feature GC04) */
774
+ listGraphs: handleUnaryCall<ListGraphsRequest, ListGraphsResponse>;
775
+ createGraph: handleUnaryCall<CreateGraphRequest, CreateGraphResponse>;
776
+ dropGraph: handleUnaryCall<DropGraphRequest, DropGraphResponse>;
777
+ getGraphInfo: handleUnaryCall<GetGraphInfoRequest, GetGraphInfoResponse>;
778
+ /** Graph type management (sec 12.6, 12.7 - Feature GG02) */
779
+ listGraphTypes: handleUnaryCall<ListGraphTypesRequest, ListGraphTypesResponse>;
780
+ createGraphType: handleUnaryCall<CreateGraphTypeRequest, CreateGraphTypeResponse>;
781
+ dropGraphType: handleUnaryCall<DropGraphTypeRequest, DropGraphTypeResponse>;
782
+ }
783
+ export interface CatalogServiceClient extends Client {
784
+ /** Schema management (sec 12.2, 12.3 - Feature GC01) */
785
+ listSchemas(request: ListSchemasRequest, callback: (error: ServiceError | null, response: ListSchemasResponse) => void): ClientUnaryCall;
786
+ listSchemas(request: ListSchemasRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListSchemasResponse) => void): ClientUnaryCall;
787
+ listSchemas(request: ListSchemasRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListSchemasResponse) => void): ClientUnaryCall;
788
+ createSchema(request: CreateSchemaRequest, callback: (error: ServiceError | null, response: CreateSchemaResponse) => void): ClientUnaryCall;
789
+ createSchema(request: CreateSchemaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateSchemaResponse) => void): ClientUnaryCall;
790
+ createSchema(request: CreateSchemaRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateSchemaResponse) => void): ClientUnaryCall;
791
+ dropSchema(request: DropSchemaRequest, callback: (error: ServiceError | null, response: DropSchemaResponse) => void): ClientUnaryCall;
792
+ dropSchema(request: DropSchemaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DropSchemaResponse) => void): ClientUnaryCall;
793
+ dropSchema(request: DropSchemaRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: DropSchemaResponse) => void): ClientUnaryCall;
794
+ /** Graph management (sec 12.4, 12.5 - Feature GC04) */
795
+ listGraphs(request: ListGraphsRequest, callback: (error: ServiceError | null, response: ListGraphsResponse) => void): ClientUnaryCall;
796
+ listGraphs(request: ListGraphsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListGraphsResponse) => void): ClientUnaryCall;
797
+ listGraphs(request: ListGraphsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListGraphsResponse) => void): ClientUnaryCall;
798
+ createGraph(request: CreateGraphRequest, callback: (error: ServiceError | null, response: CreateGraphResponse) => void): ClientUnaryCall;
799
+ createGraph(request: CreateGraphRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateGraphResponse) => void): ClientUnaryCall;
800
+ createGraph(request: CreateGraphRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateGraphResponse) => void): ClientUnaryCall;
801
+ dropGraph(request: DropGraphRequest, callback: (error: ServiceError | null, response: DropGraphResponse) => void): ClientUnaryCall;
802
+ dropGraph(request: DropGraphRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DropGraphResponse) => void): ClientUnaryCall;
803
+ dropGraph(request: DropGraphRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: DropGraphResponse) => void): ClientUnaryCall;
804
+ getGraphInfo(request: GetGraphInfoRequest, callback: (error: ServiceError | null, response: GetGraphInfoResponse) => void): ClientUnaryCall;
805
+ getGraphInfo(request: GetGraphInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetGraphInfoResponse) => void): ClientUnaryCall;
806
+ getGraphInfo(request: GetGraphInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetGraphInfoResponse) => void): ClientUnaryCall;
807
+ /** Graph type management (sec 12.6, 12.7 - Feature GG02) */
808
+ listGraphTypes(request: ListGraphTypesRequest, callback: (error: ServiceError | null, response: ListGraphTypesResponse) => void): ClientUnaryCall;
809
+ listGraphTypes(request: ListGraphTypesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListGraphTypesResponse) => void): ClientUnaryCall;
810
+ listGraphTypes(request: ListGraphTypesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListGraphTypesResponse) => void): ClientUnaryCall;
811
+ createGraphType(request: CreateGraphTypeRequest, callback: (error: ServiceError | null, response: CreateGraphTypeResponse) => void): ClientUnaryCall;
812
+ createGraphType(request: CreateGraphTypeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateGraphTypeResponse) => void): ClientUnaryCall;
813
+ createGraphType(request: CreateGraphTypeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateGraphTypeResponse) => void): ClientUnaryCall;
814
+ dropGraphType(request: DropGraphTypeRequest, callback: (error: ServiceError | null, response: DropGraphTypeResponse) => void): ClientUnaryCall;
815
+ dropGraphType(request: DropGraphTypeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DropGraphTypeResponse) => void): ClientUnaryCall;
816
+ dropGraphType(request: DropGraphTypeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: DropGraphTypeResponse) => void): ClientUnaryCall;
817
+ }
818
+ export declare const CatalogServiceClient: {
819
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): CatalogServiceClient;
820
+ service: typeof CatalogServiceService;
821
+ serviceName: string;
822
+ };
823
+ export type AdminServiceService = typeof AdminServiceService;
824
+ export declare const AdminServiceService: {
825
+ /** Get detailed graph statistics (counts, memory, disk, indexes). */
826
+ readonly getGraphStats: {
827
+ readonly path: "/gql.AdminService/GetGraphStats";
828
+ readonly requestStream: false;
829
+ readonly responseStream: false;
830
+ readonly requestSerialize: (value: GetGraphStatsRequest) => Buffer;
831
+ readonly requestDeserialize: (value: Buffer) => GetGraphStatsRequest;
832
+ readonly responseSerialize: (value: GetGraphStatsResponse) => Buffer;
833
+ readonly responseDeserialize: (value: Buffer) => GetGraphStatsResponse;
834
+ };
835
+ /** Get WAL (Write-Ahead Log) status. */
836
+ readonly walStatus: {
837
+ readonly path: "/gql.AdminService/WalStatus";
838
+ readonly requestStream: false;
839
+ readonly responseStream: false;
840
+ readonly requestSerialize: (value: WalStatusRequest) => Buffer;
841
+ readonly requestDeserialize: (value: Buffer) => WalStatusRequest;
842
+ readonly responseSerialize: (value: WalStatusResponse) => Buffer;
843
+ readonly responseDeserialize: (value: Buffer) => WalStatusResponse;
844
+ };
845
+ /** Force a WAL checkpoint (flush pending records to storage). */
846
+ readonly walCheckpoint: {
847
+ readonly path: "/gql.AdminService/WalCheckpoint";
437
848
  readonly requestStream: false;
438
849
  readonly responseStream: false;
439
- readonly requestSerialize: (value: ListDatabasesRequest) => Buffer;
440
- readonly requestDeserialize: (value: Buffer) => ListDatabasesRequest;
441
- readonly responseSerialize: (value: ListDatabasesResponse) => Buffer;
442
- readonly responseDeserialize: (value: Buffer) => ListDatabasesResponse;
443
- };
444
- /** Create a new named database. */
445
- readonly createDatabase: {
446
- readonly path: "/gql.DatabaseService/CreateDatabase";
850
+ readonly requestSerialize: (value: WalCheckpointRequest) => Buffer;
851
+ readonly requestDeserialize: (value: Buffer) => WalCheckpointRequest;
852
+ readonly responseSerialize: (value: WalCheckpointResponse) => Buffer;
853
+ readonly responseDeserialize: (value: Buffer) => WalCheckpointResponse;
854
+ };
855
+ /** Validate graph integrity (dangling edges, index consistency). */
856
+ readonly validate: {
857
+ readonly path: "/gql.AdminService/Validate";
447
858
  readonly requestStream: false;
448
859
  readonly responseStream: false;
449
- readonly requestSerialize: (value: CreateDatabaseRequest) => Buffer;
450
- readonly requestDeserialize: (value: Buffer) => CreateDatabaseRequest;
451
- readonly responseSerialize: (value: CreateDatabaseResponse) => Buffer;
452
- readonly responseDeserialize: (value: Buffer) => CreateDatabaseResponse;
453
- };
454
- /** Delete a database by name. Cannot delete "default". */
455
- readonly deleteDatabase: {
456
- readonly path: "/gql.DatabaseService/DeleteDatabase";
860
+ readonly requestSerialize: (value: ValidateRequest) => Buffer;
861
+ readonly requestDeserialize: (value: Buffer) => ValidateRequest;
862
+ readonly responseSerialize: (value: ValidateResponse) => Buffer;
863
+ readonly responseDeserialize: (value: Buffer) => ValidateResponse;
864
+ };
865
+ /** Create an index (property, vector, or text). */
866
+ readonly createIndex: {
867
+ readonly path: "/gql.AdminService/CreateIndex";
457
868
  readonly requestStream: false;
458
869
  readonly responseStream: false;
459
- readonly requestSerialize: (value: DeleteDatabaseRequest) => Buffer;
460
- readonly requestDeserialize: (value: Buffer) => DeleteDatabaseRequest;
461
- readonly responseSerialize: (value: DeleteDatabaseResponse) => Buffer;
462
- readonly responseDeserialize: (value: Buffer) => DeleteDatabaseResponse;
463
- };
464
- /** Get database info (node/edge counts, metadata). */
465
- readonly getDatabaseInfo: {
466
- readonly path: "/gql.DatabaseService/GetDatabaseInfo";
870
+ readonly requestSerialize: (value: CreateIndexRequest) => Buffer;
871
+ readonly requestDeserialize: (value: Buffer) => CreateIndexRequest;
872
+ readonly responseSerialize: (value: CreateIndexResponse) => Buffer;
873
+ readonly responseDeserialize: (value: Buffer) => CreateIndexResponse;
874
+ };
875
+ /** Drop an index. */
876
+ readonly dropIndex: {
877
+ readonly path: "/gql.AdminService/DropIndex";
878
+ readonly requestStream: false;
879
+ readonly responseStream: false;
880
+ readonly requestSerialize: (value: DropIndexRequest) => Buffer;
881
+ readonly requestDeserialize: (value: Buffer) => DropIndexRequest;
882
+ readonly responseSerialize: (value: DropIndexResponse) => Buffer;
883
+ readonly responseDeserialize: (value: Buffer) => DropIndexResponse;
884
+ };
885
+ };
886
+ export interface AdminServiceServer extends UntypedServiceImplementation {
887
+ /** Get detailed graph statistics (counts, memory, disk, indexes). */
888
+ getGraphStats: handleUnaryCall<GetGraphStatsRequest, GetGraphStatsResponse>;
889
+ /** Get WAL (Write-Ahead Log) status. */
890
+ walStatus: handleUnaryCall<WalStatusRequest, WalStatusResponse>;
891
+ /** Force a WAL checkpoint (flush pending records to storage). */
892
+ walCheckpoint: handleUnaryCall<WalCheckpointRequest, WalCheckpointResponse>;
893
+ /** Validate graph integrity (dangling edges, index consistency). */
894
+ validate: handleUnaryCall<ValidateRequest, ValidateResponse>;
895
+ /** Create an index (property, vector, or text). */
896
+ createIndex: handleUnaryCall<CreateIndexRequest, CreateIndexResponse>;
897
+ /** Drop an index. */
898
+ dropIndex: handleUnaryCall<DropIndexRequest, DropIndexResponse>;
899
+ }
900
+ export interface AdminServiceClient extends Client {
901
+ /** Get detailed graph statistics (counts, memory, disk, indexes). */
902
+ getGraphStats(request: GetGraphStatsRequest, callback: (error: ServiceError | null, response: GetGraphStatsResponse) => void): ClientUnaryCall;
903
+ getGraphStats(request: GetGraphStatsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetGraphStatsResponse) => void): ClientUnaryCall;
904
+ getGraphStats(request: GetGraphStatsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetGraphStatsResponse) => void): ClientUnaryCall;
905
+ /** Get WAL (Write-Ahead Log) status. */
906
+ walStatus(request: WalStatusRequest, callback: (error: ServiceError | null, response: WalStatusResponse) => void): ClientUnaryCall;
907
+ walStatus(request: WalStatusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: WalStatusResponse) => void): ClientUnaryCall;
908
+ walStatus(request: WalStatusRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: WalStatusResponse) => void): ClientUnaryCall;
909
+ /** Force a WAL checkpoint (flush pending records to storage). */
910
+ walCheckpoint(request: WalCheckpointRequest, callback: (error: ServiceError | null, response: WalCheckpointResponse) => void): ClientUnaryCall;
911
+ walCheckpoint(request: WalCheckpointRequest, metadata: Metadata, callback: (error: ServiceError | null, response: WalCheckpointResponse) => void): ClientUnaryCall;
912
+ walCheckpoint(request: WalCheckpointRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: WalCheckpointResponse) => void): ClientUnaryCall;
913
+ /** Validate graph integrity (dangling edges, index consistency). */
914
+ validate(request: ValidateRequest, callback: (error: ServiceError | null, response: ValidateResponse) => void): ClientUnaryCall;
915
+ validate(request: ValidateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ValidateResponse) => void): ClientUnaryCall;
916
+ validate(request: ValidateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ValidateResponse) => void): ClientUnaryCall;
917
+ /** Create an index (property, vector, or text). */
918
+ createIndex(request: CreateIndexRequest, callback: (error: ServiceError | null, response: CreateIndexResponse) => void): ClientUnaryCall;
919
+ createIndex(request: CreateIndexRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateIndexResponse) => void): ClientUnaryCall;
920
+ createIndex(request: CreateIndexRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateIndexResponse) => void): ClientUnaryCall;
921
+ /** Drop an index. */
922
+ dropIndex(request: DropIndexRequest, callback: (error: ServiceError | null, response: DropIndexResponse) => void): ClientUnaryCall;
923
+ dropIndex(request: DropIndexRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DropIndexResponse) => void): ClientUnaryCall;
924
+ dropIndex(request: DropIndexRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: DropIndexResponse) => void): ClientUnaryCall;
925
+ }
926
+ export declare const AdminServiceClient: {
927
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): AdminServiceClient;
928
+ service: typeof AdminServiceService;
929
+ serviceName: string;
930
+ };
931
+ export type SearchServiceService = typeof SearchServiceService;
932
+ export declare const SearchServiceService: {
933
+ /** Vector similarity search (KNN via HNSW index). */
934
+ readonly vectorSearch: {
935
+ readonly path: "/gql.SearchService/VectorSearch";
936
+ readonly requestStream: false;
937
+ readonly responseStream: false;
938
+ readonly requestSerialize: (value: VectorSearchRequest) => Buffer;
939
+ readonly requestDeserialize: (value: Buffer) => VectorSearchRequest;
940
+ readonly responseSerialize: (value: VectorSearchResponse) => Buffer;
941
+ readonly responseDeserialize: (value: Buffer) => VectorSearchResponse;
942
+ };
943
+ /** Full-text search (BM25 scoring). */
944
+ readonly textSearch: {
945
+ readonly path: "/gql.SearchService/TextSearch";
946
+ readonly requestStream: false;
947
+ readonly responseStream: false;
948
+ readonly requestSerialize: (value: TextSearchRequest) => Buffer;
949
+ readonly requestDeserialize: (value: Buffer) => TextSearchRequest;
950
+ readonly responseSerialize: (value: TextSearchResponse) => Buffer;
951
+ readonly responseDeserialize: (value: Buffer) => TextSearchResponse;
952
+ };
953
+ /** Hybrid search combining text and vector results with rank fusion. */
954
+ readonly hybridSearch: {
955
+ readonly path: "/gql.SearchService/HybridSearch";
467
956
  readonly requestStream: false;
468
957
  readonly responseStream: false;
469
- readonly requestSerialize: (value: GetDatabaseInfoRequest) => Buffer;
470
- readonly requestDeserialize: (value: Buffer) => GetDatabaseInfoRequest;
471
- readonly responseSerialize: (value: GetDatabaseInfoResponse) => Buffer;
472
- readonly responseDeserialize: (value: Buffer) => GetDatabaseInfoResponse;
958
+ readonly requestSerialize: (value: HybridSearchRequest) => Buffer;
959
+ readonly requestDeserialize: (value: Buffer) => HybridSearchRequest;
960
+ readonly responseSerialize: (value: HybridSearchResponse) => Buffer;
961
+ readonly responseDeserialize: (value: Buffer) => HybridSearchResponse;
473
962
  };
474
963
  };
475
- export interface DatabaseServiceServer extends UntypedServiceImplementation {
476
- /** List all databases with summary info. */
477
- listDatabases: handleUnaryCall<ListDatabasesRequest, ListDatabasesResponse>;
478
- /** Create a new named database. */
479
- createDatabase: handleUnaryCall<CreateDatabaseRequest, CreateDatabaseResponse>;
480
- /** Delete a database by name. Cannot delete "default". */
481
- deleteDatabase: handleUnaryCall<DeleteDatabaseRequest, DeleteDatabaseResponse>;
482
- /** Get database info (node/edge counts, metadata). */
483
- getDatabaseInfo: handleUnaryCall<GetDatabaseInfoRequest, GetDatabaseInfoResponse>;
484
- }
485
- export interface DatabaseServiceClient extends Client {
486
- /** List all databases with summary info. */
487
- listDatabases(request: ListDatabasesRequest, callback: (error: ServiceError | null, response: ListDatabasesResponse) => void): ClientUnaryCall;
488
- listDatabases(request: ListDatabasesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListDatabasesResponse) => void): ClientUnaryCall;
489
- listDatabases(request: ListDatabasesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListDatabasesResponse) => void): ClientUnaryCall;
490
- /** Create a new named database. */
491
- createDatabase(request: CreateDatabaseRequest, callback: (error: ServiceError | null, response: CreateDatabaseResponse) => void): ClientUnaryCall;
492
- createDatabase(request: CreateDatabaseRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CreateDatabaseResponse) => void): ClientUnaryCall;
493
- createDatabase(request: CreateDatabaseRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CreateDatabaseResponse) => void): ClientUnaryCall;
494
- /** Delete a database by name. Cannot delete "default". */
495
- deleteDatabase(request: DeleteDatabaseRequest, callback: (error: ServiceError | null, response: DeleteDatabaseResponse) => void): ClientUnaryCall;
496
- deleteDatabase(request: DeleteDatabaseRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DeleteDatabaseResponse) => void): ClientUnaryCall;
497
- deleteDatabase(request: DeleteDatabaseRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: DeleteDatabaseResponse) => void): ClientUnaryCall;
498
- /** Get database info (node/edge counts, metadata). */
499
- getDatabaseInfo(request: GetDatabaseInfoRequest, callback: (error: ServiceError | null, response: GetDatabaseInfoResponse) => void): ClientUnaryCall;
500
- getDatabaseInfo(request: GetDatabaseInfoRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetDatabaseInfoResponse) => void): ClientUnaryCall;
501
- getDatabaseInfo(request: GetDatabaseInfoRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetDatabaseInfoResponse) => void): ClientUnaryCall;
502
- }
503
- export declare const DatabaseServiceClient: {
504
- new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): DatabaseServiceClient;
505
- service: typeof DatabaseServiceService;
964
+ export interface SearchServiceServer extends UntypedServiceImplementation {
965
+ /** Vector similarity search (KNN via HNSW index). */
966
+ vectorSearch: handleUnaryCall<VectorSearchRequest, VectorSearchResponse>;
967
+ /** Full-text search (BM25 scoring). */
968
+ textSearch: handleUnaryCall<TextSearchRequest, TextSearchResponse>;
969
+ /** Hybrid search combining text and vector results with rank fusion. */
970
+ hybridSearch: handleUnaryCall<HybridSearchRequest, HybridSearchResponse>;
971
+ }
972
+ export interface SearchServiceClient extends Client {
973
+ /** Vector similarity search (KNN via HNSW index). */
974
+ vectorSearch(request: VectorSearchRequest, callback: (error: ServiceError | null, response: VectorSearchResponse) => void): ClientUnaryCall;
975
+ vectorSearch(request: VectorSearchRequest, metadata: Metadata, callback: (error: ServiceError | null, response: VectorSearchResponse) => void): ClientUnaryCall;
976
+ vectorSearch(request: VectorSearchRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: VectorSearchResponse) => void): ClientUnaryCall;
977
+ /** Full-text search (BM25 scoring). */
978
+ textSearch(request: TextSearchRequest, callback: (error: ServiceError | null, response: TextSearchResponse) => void): ClientUnaryCall;
979
+ textSearch(request: TextSearchRequest, metadata: Metadata, callback: (error: ServiceError | null, response: TextSearchResponse) => void): ClientUnaryCall;
980
+ textSearch(request: TextSearchRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: TextSearchResponse) => void): ClientUnaryCall;
981
+ /** Hybrid search combining text and vector results with rank fusion. */
982
+ hybridSearch(request: HybridSearchRequest, callback: (error: ServiceError | null, response: HybridSearchResponse) => void): ClientUnaryCall;
983
+ hybridSearch(request: HybridSearchRequest, metadata: Metadata, callback: (error: ServiceError | null, response: HybridSearchResponse) => void): ClientUnaryCall;
984
+ hybridSearch(request: HybridSearchRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: HybridSearchResponse) => void): ClientUnaryCall;
985
+ }
986
+ export declare const SearchServiceClient: {
987
+ new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): SearchServiceClient;
988
+ service: typeof SearchServiceService;
506
989
  serviceName: string;
507
990
  };
508
991
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;