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