@liquidmetal-ai/drizzle 0.4.12 → 0.5.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.
@@ -0,0 +1,649 @@
1
+ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1";
2
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { SmartSqlLocator } from "./smartsql_name_pb.js";
4
+ import type { Message } from "@bufbuild/protobuf";
5
+ /**
6
+ * Describes the file liquidmetal/v1alpha1/smartsql.proto.
7
+ */
8
+ export declare const file_liquidmetal_v1alpha1_smartsql: GenFile;
9
+ /**
10
+ * @generated from message liquidmetal.v1alpha1.ExecuteQueryRequest
11
+ */
12
+ export type ExecuteQueryRequest = Message<"liquidmetal.v1alpha1.ExecuteQueryRequest"> & {
13
+ /**
14
+ * __DESCRIPTION__ Smart SQL locator for targeting the correct smart SQL instance
15
+ * __EXAMPLE__ { module_id: "01jtryx2f2f61ryk06vd8mr91p" }
16
+ * __REQUIRED__ TRUE
17
+ *
18
+ * @generated from field: liquidmetal.v1alpha1.SmartSqlLocator smart_sql_location = 1;
19
+ */
20
+ smartSqlLocation?: SmartSqlLocator;
21
+ /**
22
+ * __DESCRIPTION__ Direct SQL query to execute (mutually exclusive with text_query)
23
+ * __EXAMPLE__ "SELECT * FROM users WHERE active = true"
24
+ * __REQUIRED__ FALSE
25
+ *
26
+ * @generated from field: optional string sql_query = 2;
27
+ */
28
+ sqlQuery?: string;
29
+ /**
30
+ * __DESCRIPTION__ Natural language query to convert to SQL (mutually exclusive with sql_query)
31
+ * __EXAMPLE__ "Show me all active users from the last month"
32
+ * __REQUIRED__ FALSE
33
+ *
34
+ * @generated from field: optional string text_query = 3;
35
+ */
36
+ textQuery?: string;
37
+ /**
38
+ * __DESCRIPTION__ Desired output format for query results
39
+ * __EXAMPLE__ "json"
40
+ * __REQUIRED__ FALSE
41
+ *
42
+ * @generated from field: optional liquidmetal.v1alpha1.OutputFormat format = 4;
43
+ */
44
+ format?: OutputFormat;
45
+ /**
46
+ * @generated from field: string user_id = 5;
47
+ */
48
+ userId: string;
49
+ /**
50
+ * @generated from field: string organization_id = 6;
51
+ */
52
+ organizationId: string;
53
+ };
54
+ /**
55
+ * Describes the message liquidmetal.v1alpha1.ExecuteQueryRequest.
56
+ * Use `create(ExecuteQueryRequestSchema)` to create a new message.
57
+ */
58
+ export declare const ExecuteQueryRequestSchema: GenMessage<ExecuteQueryRequest>;
59
+ /**
60
+ * @generated from message liquidmetal.v1alpha1.ExecuteQueryResponse
61
+ */
62
+ export type ExecuteQueryResponse = Message<"liquidmetal.v1alpha1.ExecuteQueryResponse"> & {
63
+ /**
64
+ * __DESCRIPTION__ Status message indicating success or failure
65
+ * __EXAMPLE__ "Query executed successfully"
66
+ *
67
+ * @generated from field: string message = 1;
68
+ */
69
+ message: string;
70
+ /**
71
+ * __DESCRIPTION__ Query results in the requested format
72
+ * __EXAMPLE__ [{"id": 1, "name": "John", "active": true}]
73
+ *
74
+ * @generated from oneof liquidmetal.v1alpha1.ExecuteQueryResponse.results
75
+ */
76
+ results: {
77
+ /**
78
+ * JSON formatted results as a string
79
+ *
80
+ * @generated from field: string json_results = 2;
81
+ */
82
+ value: string;
83
+ case: "jsonResults";
84
+ } | {
85
+ /**
86
+ * CSV formatted results as a string
87
+ *
88
+ * @generated from field: string csv_results = 3;
89
+ */
90
+ value: string;
91
+ case: "csvResults";
92
+ } | {
93
+ case: undefined;
94
+ value?: undefined;
95
+ };
96
+ /**
97
+ * __DESCRIPTION__ HTTP status code for the operation
98
+ * __EXAMPLE__ 200
99
+ *
100
+ * @generated from field: int32 status = 4;
101
+ */
102
+ status: number;
103
+ /**
104
+ * __DESCRIPTION__ The actual SQL query that was executed
105
+ * __EXAMPLE__ "SELECT * FROM users WHERE active = true"
106
+ *
107
+ * @generated from field: string query_executed = 5;
108
+ */
109
+ queryExecuted: string;
110
+ /**
111
+ * __DESCRIPTION__ AI reasoning for natural language queries (if applicable)
112
+ * __EXAMPLE__ "Converting 'active users' to SQL WHERE clause filtering for active = true"
113
+ *
114
+ * @generated from field: optional string ai_reasoning = 6;
115
+ */
116
+ aiReasoning?: string;
117
+ };
118
+ /**
119
+ * Describes the message liquidmetal.v1alpha1.ExecuteQueryResponse.
120
+ * Use `create(ExecuteQueryResponseSchema)` to create a new message.
121
+ */
122
+ export declare const ExecuteQueryResponseSchema: GenMessage<ExecuteQueryResponse>;
123
+ /**
124
+ * @generated from message liquidmetal.v1alpha1.GetMetadataRequest
125
+ */
126
+ export type GetMetadataRequest = Message<"liquidmetal.v1alpha1.GetMetadataRequest"> & {
127
+ /**
128
+ * __DESCRIPTION__ Smart SQL locator for targeting the correct smart SQL instance
129
+ * __EXAMPLE__ { module_id: "01jtryx2f2f61ryk06vd8mr91p" }
130
+ * __REQUIRED__ TRUE
131
+ *
132
+ * @generated from field: liquidmetal.v1alpha1.SmartSqlLocator smart_sql_location = 1;
133
+ */
134
+ smartSqlLocation?: SmartSqlLocator;
135
+ /**
136
+ * __DESCRIPTION__ Optional table name to filter metadata
137
+ * __EXAMPLE__ "users"
138
+ * __REQUIRED__ FALSE
139
+ *
140
+ * @generated from field: optional string table_name = 2;
141
+ */
142
+ tableName?: string;
143
+ /**
144
+ * @generated from field: string user_id = 3;
145
+ */
146
+ userId: string;
147
+ /**
148
+ * @generated from field: string organization_id = 4;
149
+ */
150
+ organizationId: string;
151
+ };
152
+ /**
153
+ * Describes the message liquidmetal.v1alpha1.GetMetadataRequest.
154
+ * Use `create(GetMetadataRequestSchema)` to create a new message.
155
+ */
156
+ export declare const GetMetadataRequestSchema: GenMessage<GetMetadataRequest>;
157
+ /**
158
+ * @generated from message liquidmetal.v1alpha1.GetMetadataResponse
159
+ */
160
+ export type GetMetadataResponse = Message<"liquidmetal.v1alpha1.GetMetadataResponse"> & {
161
+ /**
162
+ * __DESCRIPTION__ List of table metadata entries
163
+ *
164
+ * @generated from field: repeated liquidmetal.v1alpha1.TableMetadata tables = 1;
165
+ */
166
+ tables: TableMetadata[];
167
+ /**
168
+ * __DESCRIPTION__ Timestamp when metadata was last updated
169
+ *
170
+ * @generated from field: optional google.protobuf.Timestamp last_updated = 2;
171
+ */
172
+ lastUpdated?: Timestamp;
173
+ };
174
+ /**
175
+ * Describes the message liquidmetal.v1alpha1.GetMetadataResponse.
176
+ * Use `create(GetMetadataResponseSchema)` to create a new message.
177
+ */
178
+ export declare const GetMetadataResponseSchema: GenMessage<GetMetadataResponse>;
179
+ /**
180
+ * @generated from message liquidmetal.v1alpha1.UpdateMetadataRequest
181
+ */
182
+ export type UpdateMetadataRequest = Message<"liquidmetal.v1alpha1.UpdateMetadataRequest"> & {
183
+ /**
184
+ * __DESCRIPTION__ Smart SQL locator for targeting the correct smart SQL instance
185
+ * __EXAMPLE__ { module_id: "01jtryx2f2f61ryk06vd8mr91p" }
186
+ * __REQUIRED__ TRUE
187
+ *
188
+ * @generated from field: liquidmetal.v1alpha1.SmartSqlLocator smart_sql_location = 1;
189
+ */
190
+ smartSqlLocation?: SmartSqlLocator;
191
+ /**
192
+ * __DESCRIPTION__ Table metadata to update or create
193
+ * __REQUIRED__ TRUE
194
+ *
195
+ * @generated from field: repeated liquidmetal.v1alpha1.TableMetadata tables = 2;
196
+ */
197
+ tables: TableMetadata[];
198
+ /**
199
+ * @generated from field: string user_id = 3;
200
+ */
201
+ userId: string;
202
+ /**
203
+ * @generated from field: string organization_id = 4;
204
+ */
205
+ organizationId: string;
206
+ };
207
+ /**
208
+ * Describes the message liquidmetal.v1alpha1.UpdateMetadataRequest.
209
+ * Use `create(UpdateMetadataRequestSchema)` to create a new message.
210
+ */
211
+ export declare const UpdateMetadataRequestSchema: GenMessage<UpdateMetadataRequest>;
212
+ /**
213
+ * @generated from message liquidmetal.v1alpha1.UpdateMetadataResponse
214
+ */
215
+ export type UpdateMetadataResponse = Message<"liquidmetal.v1alpha1.UpdateMetadataResponse"> & {
216
+ /**
217
+ * __DESCRIPTION__ Indicates whether the update was successful
218
+ *
219
+ * @generated from field: bool success = 1;
220
+ */
221
+ success: boolean;
222
+ /**
223
+ * __DESCRIPTION__ Number of tables updated
224
+ *
225
+ * @generated from field: int32 tables_updated = 2;
226
+ */
227
+ tablesUpdated: number;
228
+ /**
229
+ * __DESCRIPTION__ Status message
230
+ *
231
+ * @generated from field: string message = 3;
232
+ */
233
+ message: string;
234
+ };
235
+ /**
236
+ * Describes the message liquidmetal.v1alpha1.UpdateMetadataResponse.
237
+ * Use `create(UpdateMetadataResponseSchema)` to create a new message.
238
+ */
239
+ export declare const UpdateMetadataResponseSchema: GenMessage<UpdateMetadataResponse>;
240
+ /**
241
+ * @generated from message liquidmetal.v1alpha1.GetPiiDataRequest
242
+ */
243
+ export type GetPiiDataRequest = Message<"liquidmetal.v1alpha1.GetPiiDataRequest"> & {
244
+ /**
245
+ * __DESCRIPTION__ Smart SQL locator for targeting the correct smart SQL instance
246
+ * __EXAMPLE__ { module_id: "01jtryx2f2f61ryk06vd8mr91p" }
247
+ * __REQUIRED__ TRUE
248
+ *
249
+ * @generated from field: liquidmetal.v1alpha1.SmartSqlLocator smart_sql_location = 1;
250
+ */
251
+ smartSqlLocation?: SmartSqlLocator;
252
+ /**
253
+ * __DESCRIPTION__ Table name to retrieve PII data from
254
+ * __EXAMPLE__ "users"
255
+ * __REQUIRED__ TRUE
256
+ *
257
+ * @generated from field: string table_name = 2;
258
+ */
259
+ tableName: string;
260
+ /**
261
+ * __DESCRIPTION__ Optional record identifier to filter PII data
262
+ * __EXAMPLE__ "user_123"
263
+ * __REQUIRED__ FALSE
264
+ *
265
+ * @generated from field: optional string record_id = 3;
266
+ */
267
+ recordId?: string;
268
+ /**
269
+ * @generated from field: string user_id = 4;
270
+ */
271
+ userId: string;
272
+ /**
273
+ * @generated from field: string organization_id = 5;
274
+ */
275
+ organizationId: string;
276
+ };
277
+ /**
278
+ * Describes the message liquidmetal.v1alpha1.GetPiiDataRequest.
279
+ * Use `create(GetPiiDataRequestSchema)` to create a new message.
280
+ */
281
+ export declare const GetPiiDataRequestSchema: GenMessage<GetPiiDataRequest>;
282
+ /**
283
+ * @generated from message liquidmetal.v1alpha1.GetPiiDataResponse
284
+ */
285
+ export type GetPiiDataResponse = Message<"liquidmetal.v1alpha1.GetPiiDataResponse"> & {
286
+ /**
287
+ * __DESCRIPTION__ List of PII detection results
288
+ *
289
+ * @generated from field: repeated liquidmetal.v1alpha1.PiiDetection pii_detections = 1;
290
+ */
291
+ piiDetections: PiiDetection[];
292
+ };
293
+ /**
294
+ * Describes the message liquidmetal.v1alpha1.GetPiiDataResponse.
295
+ * Use `create(GetPiiDataResponseSchema)` to create a new message.
296
+ */
297
+ export declare const GetPiiDataResponseSchema: GenMessage<GetPiiDataResponse>;
298
+ /**
299
+ * @generated from message liquidmetal.v1alpha1.AnalyzePiiRequest
300
+ */
301
+ export type AnalyzePiiRequest = Message<"liquidmetal.v1alpha1.AnalyzePiiRequest"> & {
302
+ /**
303
+ * __DESCRIPTION__ Smart SQL locator for targeting the correct smart SQL instance
304
+ * __EXAMPLE__ { module_id: "01jtryx2f2f61ryk06vd8mr91p" }
305
+ * __REQUIRED__ TRUE
306
+ *
307
+ * @generated from field: liquidmetal.v1alpha1.SmartSqlLocator smart_sql_location = 1;
308
+ */
309
+ smartSqlLocation?: SmartSqlLocator;
310
+ /**
311
+ * __DESCRIPTION__ Text content to analyze for PII
312
+ * __EXAMPLE__ "John Doe's email is john.doe@example.com and his phone is 555-123-4567"
313
+ * __REQUIRED__ TRUE
314
+ *
315
+ * @generated from field: string content = 2;
316
+ */
317
+ content: string;
318
+ /**
319
+ * @generated from field: string user_id = 3;
320
+ */
321
+ userId: string;
322
+ /**
323
+ * @generated from field: string organization_id = 4;
324
+ */
325
+ organizationId: string;
326
+ };
327
+ /**
328
+ * Describes the message liquidmetal.v1alpha1.AnalyzePiiRequest.
329
+ * Use `create(AnalyzePiiRequestSchema)` to create a new message.
330
+ */
331
+ export declare const AnalyzePiiRequestSchema: GenMessage<AnalyzePiiRequest>;
332
+ /**
333
+ * @generated from message liquidmetal.v1alpha1.AnalyzePiiResponse
334
+ */
335
+ export type AnalyzePiiResponse = Message<"liquidmetal.v1alpha1.AnalyzePiiResponse"> & {
336
+ /**
337
+ * __DESCRIPTION__ List of detected PII entities
338
+ *
339
+ * @generated from field: repeated liquidmetal.v1alpha1.PiiEntity entities = 1;
340
+ */
341
+ entities: PiiEntity[];
342
+ /**
343
+ * __DESCRIPTION__ Overall confidence score for the analysis
344
+ *
345
+ * @generated from field: float confidence_score = 2;
346
+ */
347
+ confidenceScore: number;
348
+ };
349
+ /**
350
+ * Describes the message liquidmetal.v1alpha1.AnalyzePiiResponse.
351
+ * Use `create(AnalyzePiiResponseSchema)` to create a new message.
352
+ */
353
+ export declare const AnalyzePiiResponseSchema: GenMessage<AnalyzePiiResponse>;
354
+ /**
355
+ * @generated from message liquidmetal.v1alpha1.TableMetadata
356
+ */
357
+ export type TableMetadata = Message<"liquidmetal.v1alpha1.TableMetadata"> & {
358
+ /**
359
+ * __DESCRIPTION__ Name of the database table
360
+ * __EXAMPLE__ "users"
361
+ *
362
+ * @generated from field: string table_name = 1;
363
+ */
364
+ tableName: string;
365
+ /**
366
+ * __DESCRIPTION__ List of column information for the table
367
+ *
368
+ * @generated from field: repeated liquidmetal.v1alpha1.ColumnMetadata columns = 2;
369
+ */
370
+ columns: ColumnMetadata[];
371
+ /**
372
+ * __DESCRIPTION__ When this table metadata was created
373
+ *
374
+ * @generated from field: optional google.protobuf.Timestamp created_at = 3;
375
+ */
376
+ createdAt?: Timestamp;
377
+ /**
378
+ * __DESCRIPTION__ When this table metadata was last updated
379
+ *
380
+ * @generated from field: optional google.protobuf.Timestamp updated_at = 4;
381
+ */
382
+ updatedAt?: Timestamp;
383
+ };
384
+ /**
385
+ * Describes the message liquidmetal.v1alpha1.TableMetadata.
386
+ * Use `create(TableMetadataSchema)` to create a new message.
387
+ */
388
+ export declare const TableMetadataSchema: GenMessage<TableMetadata>;
389
+ /**
390
+ * @generated from message liquidmetal.v1alpha1.ColumnMetadata
391
+ */
392
+ export type ColumnMetadata = Message<"liquidmetal.v1alpha1.ColumnMetadata"> & {
393
+ /**
394
+ * __DESCRIPTION__ Name of the database column
395
+ * __EXAMPLE__ "user_id"
396
+ *
397
+ * @generated from field: string column_name = 1;
398
+ */
399
+ columnName: string;
400
+ /**
401
+ * __DESCRIPTION__ Data type of the column
402
+ * __EXAMPLE__ "INTEGER"
403
+ *
404
+ * @generated from field: string data_type = 2;
405
+ */
406
+ dataType: string;
407
+ /**
408
+ * __DESCRIPTION__ Sample data for AI context (nullable)
409
+ * __EXAMPLE__ "123"
410
+ *
411
+ * @generated from field: optional string sample_data = 3;
412
+ */
413
+ sampleData?: string;
414
+ /**
415
+ * __DESCRIPTION__ Whether the column can contain null values
416
+ *
417
+ * @generated from field: bool nullable = 4;
418
+ */
419
+ nullable: boolean;
420
+ /**
421
+ * __DESCRIPTION__ Whether the column is a primary key
422
+ *
423
+ * @generated from field: bool is_primary_key = 5;
424
+ */
425
+ isPrimaryKey: boolean;
426
+ };
427
+ /**
428
+ * Describes the message liquidmetal.v1alpha1.ColumnMetadata.
429
+ * Use `create(ColumnMetadataSchema)` to create a new message.
430
+ */
431
+ export declare const ColumnMetadataSchema: GenMessage<ColumnMetadata>;
432
+ /**
433
+ * @generated from message liquidmetal.v1alpha1.PiiDetection
434
+ */
435
+ export type PiiDetection = Message<"liquidmetal.v1alpha1.PiiDetection"> & {
436
+ /**
437
+ * __DESCRIPTION__ Unique identifier for this PII detection record
438
+ * __EXAMPLE__ "01jxanr45haeswhay4n0q8340y"
439
+ *
440
+ * @generated from field: string detection_id = 1;
441
+ */
442
+ detectionId: string;
443
+ /**
444
+ * __DESCRIPTION__ Table name where PII was detected
445
+ * __EXAMPLE__ "users"
446
+ *
447
+ * @generated from field: string table_name = 2;
448
+ */
449
+ tableName: string;
450
+ /**
451
+ * __DESCRIPTION__ Record identifier within the table
452
+ * __EXAMPLE__ "user_123"
453
+ *
454
+ * @generated from field: string record_id = 3;
455
+ */
456
+ recordId: string;
457
+ /**
458
+ * __DESCRIPTION__ List of detected PII entities
459
+ *
460
+ * @generated from field: repeated liquidmetal.v1alpha1.PiiEntity entities = 4;
461
+ */
462
+ entities: PiiEntity[];
463
+ /**
464
+ * __DESCRIPTION__ When the PII detection was performed
465
+ *
466
+ * @generated from field: google.protobuf.Timestamp detected_at = 5;
467
+ */
468
+ detectedAt?: Timestamp;
469
+ };
470
+ /**
471
+ * Describes the message liquidmetal.v1alpha1.PiiDetection.
472
+ * Use `create(PiiDetectionSchema)` to create a new message.
473
+ */
474
+ export declare const PiiDetectionSchema: GenMessage<PiiDetection>;
475
+ /**
476
+ * @generated from message liquidmetal.v1alpha1.PiiEntity
477
+ */
478
+ export type PiiEntity = Message<"liquidmetal.v1alpha1.PiiEntity"> & {
479
+ /**
480
+ * __DESCRIPTION__ Type of PII entity detected
481
+ * __EXAMPLE__ "EMAIL"
482
+ *
483
+ * @generated from field: string entity_type = 1;
484
+ */
485
+ entityType: string;
486
+ /**
487
+ * __DESCRIPTION__ Confidence score for this detection (0.0 to 1.0)
488
+ * __EXAMPLE__ 0.95
489
+ *
490
+ * @generated from field: float confidence_score = 2;
491
+ */
492
+ confidenceScore: number;
493
+ /**
494
+ * __DESCRIPTION__ The detected text/token
495
+ * __EXAMPLE__ "john.doe@example.com"
496
+ *
497
+ * @generated from field: string detected_text = 3;
498
+ */
499
+ detectedText: string;
500
+ /**
501
+ * __DESCRIPTION__ Start character position in the original text
502
+ * __EXAMPLE__ 25
503
+ *
504
+ * @generated from field: int32 start_position = 4;
505
+ */
506
+ startPosition: number;
507
+ /**
508
+ * __DESCRIPTION__ End character position in the original text
509
+ * __EXAMPLE__ 46
510
+ *
511
+ * @generated from field: int32 end_position = 5;
512
+ */
513
+ endPosition: number;
514
+ /**
515
+ * __DESCRIPTION__ Token index in the tokenized text
516
+ * __EXAMPLE__ 5
517
+ *
518
+ * @generated from field: int32 token_index = 6;
519
+ */
520
+ tokenIndex: number;
521
+ };
522
+ /**
523
+ * Describes the message liquidmetal.v1alpha1.PiiEntity.
524
+ * Use `create(PiiEntitySchema)` to create a new message.
525
+ */
526
+ export declare const PiiEntitySchema: GenMessage<PiiEntity>;
527
+ /**
528
+ * @generated from enum liquidmetal.v1alpha1.OutputFormat
529
+ */
530
+ export declare enum OutputFormat {
531
+ /**
532
+ * @generated from enum value: OUTPUT_FORMAT_UNSPECIFIED = 0;
533
+ */
534
+ UNSPECIFIED = 0,
535
+ /**
536
+ * @generated from enum value: OUTPUT_FORMAT_JSON = 1;
537
+ */
538
+ JSON = 1,
539
+ /**
540
+ * @generated from enum value: OUTPUT_FORMAT_CSV = 2;
541
+ */
542
+ CSV = 2
543
+ }
544
+ /**
545
+ * Describes the enum liquidmetal.v1alpha1.OutputFormat.
546
+ */
547
+ export declare const OutputFormatSchema: GenEnum<OutputFormat>;
548
+ /**
549
+ * __TITLE__ Smart SQL
550
+ * The Smart SQL service provides intelligent SQL query execution capabilities with natural language
551
+ * to SQL conversion, automatic metadata management, and PII detection. It enables users to interact
552
+ * with databases using both direct SQL queries and natural language descriptions, while maintaining
553
+ * security and data governance through automated PII detection and metadata tracking.
554
+ *
555
+ * @generated from service liquidmetal.v1alpha1.SmartSqlService
556
+ */
557
+ export declare const SmartSqlService: GenService<{
558
+ /**
559
+ * Executes a SQL query or converts natural language to SQL and executes it.
560
+ * Supports both direct SQL execution and AI-powered natural language to SQL conversion.
561
+ * Automatically handles metadata updates and PII detection for data governance.
562
+ *
563
+ * Features:
564
+ * - Direct SQL query execution
565
+ * - Natural language to SQL conversion using AI
566
+ * - Automatic metadata tracking for schema changes
567
+ * - PII detection and masking for security
568
+ * - Multiple output formats (JSON, CSV)
569
+ *
570
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.ExecuteQuery
571
+ */
572
+ executeQuery: {
573
+ methodKind: "unary";
574
+ input: typeof ExecuteQueryRequestSchema;
575
+ output: typeof ExecuteQueryResponseSchema;
576
+ };
577
+ /**
578
+ * Retrieves database schema metadata for a smart SQL instance.
579
+ * Returns table structures, column information, and sample data
580
+ * that can be used for AI context or application development.
581
+ *
582
+ * Metadata includes:
583
+ * - Table names and structures
584
+ * - Column names and data types
585
+ * - Sample data for AI context
586
+ * - Schema versioning information
587
+ *
588
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.GetMetadata
589
+ */
590
+ getMetadata: {
591
+ methodKind: "unary";
592
+ input: typeof GetMetadataRequestSchema;
593
+ output: typeof GetMetadataResponseSchema;
594
+ };
595
+ /**
596
+ * Updates database schema metadata manually.
597
+ * Allows for explicit metadata management when automatic detection
598
+ * is insufficient or needs correction.
599
+ *
600
+ * Use cases:
601
+ * - Manual schema corrections
602
+ * - Bulk metadata updates
603
+ * - Custom metadata annotations
604
+ *
605
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.UpdateMetadata
606
+ */
607
+ updateMetadata: {
608
+ methodKind: "unary";
609
+ input: typeof UpdateMetadataRequestSchema;
610
+ output: typeof UpdateMetadataResponseSchema;
611
+ };
612
+ /**
613
+ * Retrieves PII detection results for specific database records.
614
+ * Returns detailed information about detected personally identifiable
615
+ * information for compliance and auditing purposes.
616
+ *
617
+ * PII information includes:
618
+ * - Entity types detected
619
+ * - Confidence scores
620
+ * - Character positions
621
+ * - Detection timestamps
622
+ *
623
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.GetPiiData
624
+ */
625
+ getPiiData: {
626
+ methodKind: "unary";
627
+ input: typeof GetPiiDataRequestSchema;
628
+ output: typeof GetPiiDataResponseSchema;
629
+ };
630
+ /**
631
+ * Analyzes text content for PII without storing results.
632
+ * Provides real-time PII detection for validation or preview purposes
633
+ * before data insertion or processing.
634
+ *
635
+ * Analysis features:
636
+ * - Real-time PII detection
637
+ * - Multiple entity type support
638
+ * - Confidence scoring
639
+ * - No data persistence
640
+ *
641
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.AnalyzePii
642
+ */
643
+ analyzePii: {
644
+ methodKind: "unary";
645
+ input: typeof AnalyzePiiRequestSchema;
646
+ output: typeof AnalyzePiiResponseSchema;
647
+ };
648
+ }>;
649
+ //# sourceMappingURL=smartsql_pb.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smartsql_pb.d.ts","sourceRoot":"","sources":["../../../src/liquidmetal/v1alpha1/smartsql_pb.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE7F,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAExD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE,OAC+sI,CAAC;AAEjwI;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,0CAA0C,CAAC,GAAG;IACtF;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,eAAe,CAAC;IAEnC;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;;;;;OAMG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IAEtB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,UAAU,CAAC,mBAAmB,CAClB,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,2CAA2C,CAAC,GAAG;IACxF;;;;;OAKG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;;;;OAKG;IACH,OAAO,EAAE;QACP;;;;WAIG;QACH,KAAK,EAAE,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