@liquidmetal-ai/drizzle 0.4.13 → 0.5.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.
@@ -0,0 +1,707 @@
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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BpaURhdGFSZXF1ZXN0GigubGlxdWlkbWV0YWwudjFhbHBoYTEuR2V0UGlpRGF0YVJlc3BvbnNlQugBChhjb20ubGlxdWlkbWV0YWwudjFhbHBoYTFCDVNtYXJ0c3FsUHJvdG9QAVpMZ2l0aHViLmNvbS9saXF1aWRtZXRhbC1haS9wcm90b2dlbjIvbGlxdWlkbWV0YWwvdjFhbHBoYTE7bGlxdWlkbWV0YWx2MWFscGhhMaICA0xYWKoCFExpcXVpZG1ldGFsLlYxYWxwaGExygIUTGlxdWlkbWV0YWxcVjFhbHBoYTHiAiBMaXF1aWRtZXRhbFxWMWFscGhhMVxHUEJNZXRhZGF0YeoCFUxpcXVpZG1ldGFsOjpWMWFscGhhMWIGcHJvdG8z", [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
+ * __DESCRIPTION__ Update mode: replace (overwrite), merge (preserve existing), or append (only new entries)
234
+ * __EXAMPLE__ UPDATE_MODE_MERGE
235
+ * __REQUIRED__ FALSE
236
+ *
237
+ * @generated from field: optional liquidmetal.v1alpha1.UpdateMode mode = 3;
238
+ */
239
+ mode?: UpdateMode;
240
+
241
+ /**
242
+ * @generated from field: string user_id = 4;
243
+ */
244
+ userId: string;
245
+
246
+ /**
247
+ * @generated from field: string organization_id = 5;
248
+ */
249
+ organizationId: string;
250
+ };
251
+
252
+ /**
253
+ * Describes the message liquidmetal.v1alpha1.UpdateMetadataRequest.
254
+ * Use `create(UpdateMetadataRequestSchema)` to create a new message.
255
+ */
256
+ export const UpdateMetadataRequestSchema: GenMessage<UpdateMetadataRequest> = /*@__PURE__*/
257
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 4);
258
+
259
+ /**
260
+ * @generated from message liquidmetal.v1alpha1.UpdateMetadataResponse
261
+ */
262
+ export type UpdateMetadataResponse = Message<"liquidmetal.v1alpha1.UpdateMetadataResponse"> & {
263
+ /**
264
+ * __DESCRIPTION__ Indicates whether the update was successful
265
+ *
266
+ * @generated from field: bool success = 1;
267
+ */
268
+ success: boolean;
269
+
270
+ /**
271
+ * __DESCRIPTION__ Number of tables updated
272
+ *
273
+ * @generated from field: int32 tables_updated = 2;
274
+ */
275
+ tablesUpdated: number;
276
+
277
+ /**
278
+ * __DESCRIPTION__ Status message
279
+ *
280
+ * @generated from field: string message = 3;
281
+ */
282
+ message: string;
283
+ };
284
+
285
+ /**
286
+ * Describes the message liquidmetal.v1alpha1.UpdateMetadataResponse.
287
+ * Use `create(UpdateMetadataResponseSchema)` to create a new message.
288
+ */
289
+ export const UpdateMetadataResponseSchema: GenMessage<UpdateMetadataResponse> = /*@__PURE__*/
290
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 5);
291
+
292
+ /**
293
+ * @generated from message liquidmetal.v1alpha1.GetPiiDataRequest
294
+ */
295
+ export type GetPiiDataRequest = Message<"liquidmetal.v1alpha1.GetPiiDataRequest"> & {
296
+ /**
297
+ * __DESCRIPTION__ Smart SQL locator for targeting the correct smart SQL instance
298
+ * __EXAMPLE__ { module_id: "01jtryx2f2f61ryk06vd8mr91p" }
299
+ * __REQUIRED__ TRUE
300
+ *
301
+ * @generated from field: liquidmetal.v1alpha1.SmartSqlLocator smart_sql_location = 1;
302
+ */
303
+ smartSqlLocation?: SmartSqlLocator;
304
+
305
+ /**
306
+ * __DESCRIPTION__ Table name to retrieve PII data from
307
+ * __EXAMPLE__ "users"
308
+ * __REQUIRED__ TRUE
309
+ *
310
+ * @generated from field: string table_name = 2;
311
+ */
312
+ tableName: string;
313
+
314
+ /**
315
+ * __DESCRIPTION__ Optional record identifier to filter PII data
316
+ * __EXAMPLE__ "user_123"
317
+ * __REQUIRED__ FALSE
318
+ *
319
+ * @generated from field: optional string record_id = 3;
320
+ */
321
+ recordId?: string;
322
+
323
+ /**
324
+ * @generated from field: string user_id = 4;
325
+ */
326
+ userId: string;
327
+
328
+ /**
329
+ * @generated from field: string organization_id = 5;
330
+ */
331
+ organizationId: string;
332
+ };
333
+
334
+ /**
335
+ * Describes the message liquidmetal.v1alpha1.GetPiiDataRequest.
336
+ * Use `create(GetPiiDataRequestSchema)` to create a new message.
337
+ */
338
+ export const GetPiiDataRequestSchema: GenMessage<GetPiiDataRequest> = /*@__PURE__*/
339
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 6);
340
+
341
+ /**
342
+ * @generated from message liquidmetal.v1alpha1.GetPiiDataResponse
343
+ */
344
+ export type GetPiiDataResponse = Message<"liquidmetal.v1alpha1.GetPiiDataResponse"> & {
345
+ /**
346
+ * __DESCRIPTION__ List of PII detection results
347
+ *
348
+ * @generated from field: repeated liquidmetal.v1alpha1.PiiDetection pii_detections = 1;
349
+ */
350
+ piiDetections: PiiDetection[];
351
+ };
352
+
353
+ /**
354
+ * Describes the message liquidmetal.v1alpha1.GetPiiDataResponse.
355
+ * Use `create(GetPiiDataResponseSchema)` to create a new message.
356
+ */
357
+ export const GetPiiDataResponseSchema: GenMessage<GetPiiDataResponse> = /*@__PURE__*/
358
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 7);
359
+
360
+ /**
361
+ * @generated from message liquidmetal.v1alpha1.TableMetadata
362
+ */
363
+ export type TableMetadata = Message<"liquidmetal.v1alpha1.TableMetadata"> & {
364
+ /**
365
+ * __DESCRIPTION__ Name of the database table
366
+ * __EXAMPLE__ "users"
367
+ *
368
+ * @generated from field: string table_name = 1;
369
+ */
370
+ tableName: string;
371
+
372
+ /**
373
+ * __DESCRIPTION__ List of column information for the table
374
+ *
375
+ * @generated from field: repeated liquidmetal.v1alpha1.ColumnMetadata columns = 2;
376
+ */
377
+ columns: ColumnMetadata[];
378
+
379
+ /**
380
+ * __DESCRIPTION__ When this table metadata was created
381
+ *
382
+ * @generated from field: optional google.protobuf.Timestamp created_at = 3;
383
+ */
384
+ createdAt?: Timestamp;
385
+
386
+ /**
387
+ * __DESCRIPTION__ When this table metadata was last updated
388
+ *
389
+ * @generated from field: optional google.protobuf.Timestamp updated_at = 4;
390
+ */
391
+ updatedAt?: Timestamp;
392
+ };
393
+
394
+ /**
395
+ * Describes the message liquidmetal.v1alpha1.TableMetadata.
396
+ * Use `create(TableMetadataSchema)` to create a new message.
397
+ */
398
+ export const TableMetadataSchema: GenMessage<TableMetadata> = /*@__PURE__*/
399
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 8);
400
+
401
+ /**
402
+ * @generated from message liquidmetal.v1alpha1.ColumnMetadata
403
+ */
404
+ export type ColumnMetadata = Message<"liquidmetal.v1alpha1.ColumnMetadata"> & {
405
+ /**
406
+ * __DESCRIPTION__ Name of the database column
407
+ * __EXAMPLE__ "user_id"
408
+ *
409
+ * @generated from field: string column_name = 1;
410
+ */
411
+ columnName: string;
412
+
413
+ /**
414
+ * __DESCRIPTION__ Data type of the column
415
+ * __EXAMPLE__ "INTEGER"
416
+ *
417
+ * @generated from field: string data_type = 2;
418
+ */
419
+ dataType: string;
420
+
421
+ /**
422
+ * __DESCRIPTION__ Sample data for AI context (nullable)
423
+ * __EXAMPLE__ "123"
424
+ *
425
+ * @generated from field: optional string sample_data = 3;
426
+ */
427
+ sampleData?: string;
428
+
429
+ /**
430
+ * __DESCRIPTION__ Whether the column can contain null values
431
+ *
432
+ * @generated from field: bool nullable = 4;
433
+ */
434
+ nullable: boolean;
435
+
436
+ /**
437
+ * __DESCRIPTION__ Whether the column is a primary key
438
+ *
439
+ * @generated from field: bool is_primary_key = 5;
440
+ */
441
+ isPrimaryKey: boolean;
442
+ };
443
+
444
+ /**
445
+ * Describes the message liquidmetal.v1alpha1.ColumnMetadata.
446
+ * Use `create(ColumnMetadataSchema)` to create a new message.
447
+ */
448
+ export const ColumnMetadataSchema: GenMessage<ColumnMetadata> = /*@__PURE__*/
449
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 9);
450
+
451
+ /**
452
+ * @generated from message liquidmetal.v1alpha1.PiiDetection
453
+ */
454
+ export type PiiDetection = Message<"liquidmetal.v1alpha1.PiiDetection"> & {
455
+ /**
456
+ * __DESCRIPTION__ Unique identifier for this PII detection record
457
+ * __EXAMPLE__ "01jxanr45haeswhay4n0q8340y"
458
+ *
459
+ * @generated from field: string detection_id = 1;
460
+ */
461
+ detectionId: string;
462
+
463
+ /**
464
+ * __DESCRIPTION__ Table name where PII was detected
465
+ * __EXAMPLE__ "users"
466
+ *
467
+ * @generated from field: string table_name = 2;
468
+ */
469
+ tableName: string;
470
+
471
+ /**
472
+ * __DESCRIPTION__ Record identifier within the table
473
+ * __EXAMPLE__ "user_123"
474
+ *
475
+ * @generated from field: string record_id = 3;
476
+ */
477
+ recordId: string;
478
+
479
+ /**
480
+ * __DESCRIPTION__ List of detected PII entities
481
+ *
482
+ * @generated from field: repeated liquidmetal.v1alpha1.PiiEntity entities = 4;
483
+ */
484
+ entities: PiiEntity[];
485
+
486
+ /**
487
+ * __DESCRIPTION__ When the PII detection was performed
488
+ *
489
+ * @generated from field: google.protobuf.Timestamp detected_at = 5;
490
+ */
491
+ detectedAt?: Timestamp;
492
+ };
493
+
494
+ /**
495
+ * Describes the message liquidmetal.v1alpha1.PiiDetection.
496
+ * Use `create(PiiDetectionSchema)` to create a new message.
497
+ */
498
+ export const PiiDetectionSchema: GenMessage<PiiDetection> = /*@__PURE__*/
499
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 10);
500
+
501
+ /**
502
+ * @generated from message liquidmetal.v1alpha1.PiiEntity
503
+ */
504
+ export type PiiEntity = Message<"liquidmetal.v1alpha1.PiiEntity"> & {
505
+ /**
506
+ * __DESCRIPTION__ Type of PII entity detected
507
+ * __EXAMPLE__ "EMAIL"
508
+ *
509
+ * @generated from field: string entity_type = 1;
510
+ */
511
+ entityType: string;
512
+
513
+ /**
514
+ * __DESCRIPTION__ Confidence score for this detection (0.0 to 1.0)
515
+ * __EXAMPLE__ 0.95
516
+ *
517
+ * @generated from field: float confidence_score = 2;
518
+ */
519
+ confidenceScore: number;
520
+
521
+ /**
522
+ * __DESCRIPTION__ The detected text/token
523
+ * __EXAMPLE__ "john.doe@example.com"
524
+ *
525
+ * @generated from field: string detected_text = 3;
526
+ */
527
+ detectedText: string;
528
+
529
+ /**
530
+ * __DESCRIPTION__ Start character position in the original text
531
+ * __EXAMPLE__ 25
532
+ *
533
+ * @generated from field: int32 start_position = 4;
534
+ */
535
+ startPosition: number;
536
+
537
+ /**
538
+ * __DESCRIPTION__ End character position in the original text
539
+ * __EXAMPLE__ 46
540
+ *
541
+ * @generated from field: int32 end_position = 5;
542
+ */
543
+ endPosition: number;
544
+
545
+ /**
546
+ * __DESCRIPTION__ Token index in the tokenized text
547
+ * __EXAMPLE__ 5
548
+ *
549
+ * @generated from field: int32 token_index = 6;
550
+ */
551
+ tokenIndex: number;
552
+ };
553
+
554
+ /**
555
+ * Describes the message liquidmetal.v1alpha1.PiiEntity.
556
+ * Use `create(PiiEntitySchema)` to create a new message.
557
+ */
558
+ export const PiiEntitySchema: GenMessage<PiiEntity> = /*@__PURE__*/
559
+ messageDesc(file_liquidmetal_v1alpha1_smartsql, 11);
560
+
561
+ /**
562
+ * @generated from enum liquidmetal.v1alpha1.OutputFormat
563
+ */
564
+ export enum OutputFormat {
565
+ /**
566
+ * @generated from enum value: OUTPUT_FORMAT_UNSPECIFIED = 0;
567
+ */
568
+ UNSPECIFIED = 0,
569
+
570
+ /**
571
+ * @generated from enum value: OUTPUT_FORMAT_JSON = 1;
572
+ */
573
+ JSON = 1,
574
+
575
+ /**
576
+ * @generated from enum value: OUTPUT_FORMAT_CSV = 2;
577
+ */
578
+ CSV = 2,
579
+ }
580
+
581
+ /**
582
+ * Describes the enum liquidmetal.v1alpha1.OutputFormat.
583
+ */
584
+ export const OutputFormatSchema: GenEnum<OutputFormat> = /*@__PURE__*/
585
+ enumDesc(file_liquidmetal_v1alpha1_smartsql, 0);
586
+
587
+ /**
588
+ * @generated from enum liquidmetal.v1alpha1.UpdateMode
589
+ */
590
+ export enum UpdateMode {
591
+ /**
592
+ * @generated from enum value: UPDATE_MODE_UNSPECIFIED = 0;
593
+ */
594
+ UNSPECIFIED = 0,
595
+
596
+ /**
597
+ * Replace mode: completely overwrites existing metadata (current behavior)
598
+ *
599
+ * @generated from enum value: UPDATE_MODE_REPLACE = 1;
600
+ */
601
+ REPLACE = 1,
602
+
603
+ /**
604
+ * Merge mode: preserves existing fields, updates only provided fields
605
+ *
606
+ * @generated from enum value: UPDATE_MODE_MERGE = 2;
607
+ */
608
+ MERGE = 2,
609
+
610
+ /**
611
+ * Append mode: only adds new entries, never updates existing ones
612
+ *
613
+ * @generated from enum value: UPDATE_MODE_APPEND = 3;
614
+ */
615
+ APPEND = 3,
616
+ }
617
+
618
+ /**
619
+ * Describes the enum liquidmetal.v1alpha1.UpdateMode.
620
+ */
621
+ export const UpdateModeSchema: GenEnum<UpdateMode> = /*@__PURE__*/
622
+ enumDesc(file_liquidmetal_v1alpha1_smartsql, 1);
623
+
624
+ /**
625
+ * __TITLE__ Smart SQL
626
+ * The Smart SQL service provides intelligent SQL query execution capabilities with natural language
627
+ * to SQL conversion and automatic metadata management. It enables users to interact
628
+ * with databases using both direct SQL queries and natural language descriptions.
629
+ *
630
+ * @generated from service liquidmetal.v1alpha1.SmartSqlService
631
+ */
632
+ export const SmartSqlService: GenService<{
633
+ /**
634
+ * Executes a SQL query or converts natural language to SQL and executes it.
635
+ * Supports both direct SQL execution and AI-powered natural language to SQL conversion.
636
+ * Automatically handles metadata updates and PII detection for data governance.
637
+ *
638
+ * Features:
639
+ * - Direct SQL query execution
640
+ * - Natural language to SQL conversion using AI
641
+ * - Automatic metadata tracking for schema changes
642
+ * - PII detection for security
643
+ * - Multiple output formats (JSON, CSV)
644
+ *
645
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.ExecuteQuery
646
+ */
647
+ executeQuery: {
648
+ methodKind: "unary";
649
+ input: typeof ExecuteQueryRequestSchema;
650
+ output: typeof ExecuteQueryResponseSchema;
651
+ },
652
+ /**
653
+ * Retrieves database schema metadata for a smart SQL instance.
654
+ * Returns table structures, column information, and sample data
655
+ * that can be used for AI context or application development.
656
+ *
657
+ * Metadata includes:
658
+ * - Table names and structures
659
+ * - Column names and data types
660
+ * - Sample data for AI context
661
+ * - Schema versioning information
662
+ *
663
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.GetMetadata
664
+ */
665
+ getMetadata: {
666
+ methodKind: "unary";
667
+ input: typeof GetMetadataRequestSchema;
668
+ output: typeof GetMetadataResponseSchema;
669
+ },
670
+ /**
671
+ * Updates database schema metadata manually.
672
+ * Allows for explicit metadata management when automatic detection
673
+ * is insufficient or needs correction.
674
+ *
675
+ * Use cases:
676
+ * - Manual schema corrections
677
+ * - Bulk metadata updates
678
+ * - Custom metadata annotations
679
+ *
680
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.UpdateMetadata
681
+ */
682
+ updateMetadata: {
683
+ methodKind: "unary";
684
+ input: typeof UpdateMetadataRequestSchema;
685
+ output: typeof UpdateMetadataResponseSchema;
686
+ },
687
+ /**
688
+ * Retrieves PII detection results for specific database records.
689
+ * Returns detailed information about detected personally identifiable
690
+ * information for compliance and auditing purposes.
691
+ *
692
+ * PII information includes:
693
+ * - Entity types detected
694
+ * - Confidence scores
695
+ * - Character positions
696
+ * - Detection timestamps
697
+ *
698
+ * @generated from rpc liquidmetal.v1alpha1.SmartSqlService.GetPiiData
699
+ */
700
+ getPiiData: {
701
+ methodKind: "unary";
702
+ input: typeof GetPiiDataRequestSchema;
703
+ output: typeof GetPiiDataResponseSchema;
704
+ },
705
+ }> = /*@__PURE__*/
706
+ serviceDesc(file_liquidmetal_v1alpha1_smartsql, 0);
707
+