@mastra/pg 1.12.1 → 1.13.0-alpha.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.
Files changed (68) hide show
  1. package/CHANGELOG.md +91 -0
  2. package/dist/docs/SKILL.md +1 -1
  3. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  4. package/dist/docs/references/docs-memory-working-memory.md +2 -2
  5. package/dist/docs/references/reference-storage-composite.md +34 -2
  6. package/dist/docs/references/reference-storage-postgresql.md +1 -1
  7. package/dist/index.cjs +3837 -147
  8. package/dist/index.cjs.map +1 -1
  9. package/dist/index.js +3836 -149
  10. package/dist/index.js.map +1 -1
  11. package/dist/{storage → shared}/pool-config.d.ts +10 -2
  12. package/dist/shared/pool-config.d.ts.map +1 -0
  13. package/dist/storage/domains/agents/index.d.ts.map +1 -1
  14. package/dist/storage/domains/background-tasks/index.d.ts.map +1 -1
  15. package/dist/storage/domains/blobs/index.d.ts +1 -0
  16. package/dist/storage/domains/blobs/index.d.ts.map +1 -1
  17. package/dist/storage/domains/mcp-clients/index.d.ts +2 -0
  18. package/dist/storage/domains/mcp-clients/index.d.ts.map +1 -1
  19. package/dist/storage/domains/mcp-servers/index.d.ts +2 -0
  20. package/dist/storage/domains/mcp-servers/index.d.ts.map +1 -1
  21. package/dist/storage/domains/observability/v-next/ddl.d.ts +55 -0
  22. package/dist/storage/domains/observability/v-next/ddl.d.ts.map +1 -0
  23. package/dist/storage/domains/observability/v-next/discovery.d.ts +52 -0
  24. package/dist/storage/domains/observability/v-next/discovery.d.ts.map +1 -0
  25. package/dist/storage/domains/observability/v-next/feedback.d.ts +17 -0
  26. package/dist/storage/domains/observability/v-next/feedback.d.ts.map +1 -0
  27. package/dist/storage/domains/observability/v-next/filters.d.ts +29 -0
  28. package/dist/storage/domains/observability/v-next/filters.d.ts.map +1 -0
  29. package/dist/storage/domains/observability/v-next/helpers.d.ts +33 -0
  30. package/dist/storage/domains/observability/v-next/helpers.d.ts.map +1 -0
  31. package/dist/storage/domains/observability/v-next/index.d.ts +104 -0
  32. package/dist/storage/domains/observability/v-next/index.d.ts.map +1 -0
  33. package/dist/storage/domains/observability/v-next/listing.d.ts +53 -0
  34. package/dist/storage/domains/observability/v-next/listing.d.ts.map +1 -0
  35. package/dist/storage/domains/observability/v-next/logs.d.ts +8 -0
  36. package/dist/storage/domains/observability/v-next/logs.d.ts.map +1 -0
  37. package/dist/storage/domains/observability/v-next/metrics.d.ts +19 -0
  38. package/dist/storage/domains/observability/v-next/metrics.d.ts.map +1 -0
  39. package/dist/storage/domains/observability/v-next/olap.d.ts +93 -0
  40. package/dist/storage/domains/observability/v-next/olap.d.ts.map +1 -0
  41. package/dist/storage/domains/observability/v-next/partitioning.d.ts +76 -0
  42. package/dist/storage/domains/observability/v-next/partitioning.d.ts.map +1 -0
  43. package/dist/storage/domains/observability/v-next/pg-errors.d.ts +25 -0
  44. package/dist/storage/domains/observability/v-next/pg-errors.d.ts.map +1 -0
  45. package/dist/storage/domains/observability/v-next/polling.d.ts +28 -0
  46. package/dist/storage/domains/observability/v-next/polling.d.ts.map +1 -0
  47. package/dist/storage/domains/observability/v-next/scores.d.ts +17 -0
  48. package/dist/storage/domains/observability/v-next/scores.d.ts.map +1 -0
  49. package/dist/storage/domains/observability/v-next/signal-schema.d.ts +776 -0
  50. package/dist/storage/domains/observability/v-next/signal-schema.d.ts.map +1 -0
  51. package/dist/storage/domains/observability/v-next/sql.d.ts +31 -0
  52. package/dist/storage/domains/observability/v-next/sql.d.ts.map +1 -0
  53. package/dist/storage/domains/observability/v-next/traces.d.ts +16 -0
  54. package/dist/storage/domains/observability/v-next/traces.d.ts.map +1 -0
  55. package/dist/storage/domains/observability/v-next/tracing.d.ts +19 -0
  56. package/dist/storage/domains/observability/v-next/tracing.d.ts.map +1 -0
  57. package/dist/storage/domains/skills/index.d.ts +2 -0
  58. package/dist/storage/domains/skills/index.d.ts.map +1 -1
  59. package/dist/storage/domains/tool-provider-connections/index.d.ts +20 -0
  60. package/dist/storage/domains/tool-provider-connections/index.d.ts.map +1 -0
  61. package/dist/storage/domains/workflows/index.d.ts.map +1 -1
  62. package/dist/storage/domains/workspaces/index.d.ts +2 -0
  63. package/dist/storage/domains/workspaces/index.d.ts.map +1 -1
  64. package/dist/storage/index.d.ts +89 -1
  65. package/dist/storage/index.d.ts.map +1 -1
  66. package/dist/vector/index.d.ts.map +1 -1
  67. package/package.json +9 -7
  68. package/dist/storage/pool-config.d.ts.map +0 -1
@@ -0,0 +1,776 @@
1
+ type ColumnType = 'bigserial' | 'boolean' | 'double precision' | 'jsonb' | 'text' | 'text[]' | 'timestamptz' | 'xid8';
2
+ interface SignalColumn {
3
+ name: string;
4
+ type: ColumnType;
5
+ nullable?: boolean;
6
+ defaultSql?: string;
7
+ }
8
+ export declare const SPAN_EVENT_COLUMNS: readonly [{
9
+ readonly name: "cursorId";
10
+ readonly type: "bigserial";
11
+ }, {
12
+ readonly name: "xactId";
13
+ readonly type: "xid8";
14
+ readonly defaultSql: "pg_current_xact_id()";
15
+ }, {
16
+ readonly name: "traceId";
17
+ readonly type: "text";
18
+ }, {
19
+ readonly name: "spanId";
20
+ readonly type: "text";
21
+ }, {
22
+ readonly name: "parentSpanId";
23
+ readonly type: "text";
24
+ readonly nullable: true;
25
+ }, {
26
+ readonly name: "experimentId";
27
+ readonly type: "text";
28
+ readonly nullable: true;
29
+ }, {
30
+ readonly name: "entityType";
31
+ readonly type: "text";
32
+ readonly nullable: true;
33
+ }, {
34
+ readonly name: "entityId";
35
+ readonly type: "text";
36
+ readonly nullable: true;
37
+ }, {
38
+ readonly name: "entityName";
39
+ readonly type: "text";
40
+ readonly nullable: true;
41
+ }, {
42
+ readonly name: "entityVersionId";
43
+ readonly type: "text";
44
+ readonly nullable: true;
45
+ }, {
46
+ readonly name: "parentEntityType";
47
+ readonly type: "text";
48
+ readonly nullable: true;
49
+ }, {
50
+ readonly name: "parentEntityId";
51
+ readonly type: "text";
52
+ readonly nullable: true;
53
+ }, {
54
+ readonly name: "parentEntityName";
55
+ readonly type: "text";
56
+ readonly nullable: true;
57
+ }, {
58
+ readonly name: "parentEntityVersionId";
59
+ readonly type: "text";
60
+ readonly nullable: true;
61
+ }, {
62
+ readonly name: "rootEntityType";
63
+ readonly type: "text";
64
+ readonly nullable: true;
65
+ }, {
66
+ readonly name: "rootEntityId";
67
+ readonly type: "text";
68
+ readonly nullable: true;
69
+ }, {
70
+ readonly name: "rootEntityName";
71
+ readonly type: "text";
72
+ readonly nullable: true;
73
+ }, {
74
+ readonly name: "rootEntityVersionId";
75
+ readonly type: "text";
76
+ readonly nullable: true;
77
+ }, {
78
+ readonly name: "userId";
79
+ readonly type: "text";
80
+ readonly nullable: true;
81
+ }, {
82
+ readonly name: "organizationId";
83
+ readonly type: "text";
84
+ readonly nullable: true;
85
+ }, {
86
+ readonly name: "resourceId";
87
+ readonly type: "text";
88
+ readonly nullable: true;
89
+ }, {
90
+ readonly name: "runId";
91
+ readonly type: "text";
92
+ readonly nullable: true;
93
+ }, {
94
+ readonly name: "sessionId";
95
+ readonly type: "text";
96
+ readonly nullable: true;
97
+ }, {
98
+ readonly name: "threadId";
99
+ readonly type: "text";
100
+ readonly nullable: true;
101
+ }, {
102
+ readonly name: "requestId";
103
+ readonly type: "text";
104
+ readonly nullable: true;
105
+ }, {
106
+ readonly name: "environment";
107
+ readonly type: "text";
108
+ readonly nullable: true;
109
+ }, {
110
+ readonly name: "executionSource";
111
+ readonly type: "text";
112
+ readonly nullable: true;
113
+ }, {
114
+ readonly name: "serviceName";
115
+ readonly type: "text";
116
+ readonly nullable: true;
117
+ }, {
118
+ readonly name: "name";
119
+ readonly type: "text";
120
+ }, {
121
+ readonly name: "spanType";
122
+ readonly type: "text";
123
+ }, {
124
+ readonly name: "isEvent";
125
+ readonly type: "boolean";
126
+ readonly defaultSql: "false";
127
+ }, {
128
+ readonly name: "startedAt";
129
+ readonly type: "timestamptz";
130
+ }, {
131
+ readonly name: "endedAt";
132
+ readonly type: "timestamptz";
133
+ }, {
134
+ readonly name: "tags";
135
+ readonly type: "text[]";
136
+ readonly defaultSql: "'{}'";
137
+ }, {
138
+ readonly name: "metadataSearch";
139
+ readonly type: "jsonb";
140
+ readonly defaultSql: "'{}'::jsonb";
141
+ }, {
142
+ readonly name: "attributes";
143
+ readonly type: "jsonb";
144
+ readonly nullable: true;
145
+ }, {
146
+ readonly name: "scope";
147
+ readonly type: "jsonb";
148
+ readonly nullable: true;
149
+ }, {
150
+ readonly name: "links";
151
+ readonly type: "jsonb";
152
+ readonly nullable: true;
153
+ }, {
154
+ readonly name: "input";
155
+ readonly type: "jsonb";
156
+ readonly nullable: true;
157
+ }, {
158
+ readonly name: "output";
159
+ readonly type: "jsonb";
160
+ readonly nullable: true;
161
+ }, {
162
+ readonly name: "error";
163
+ readonly type: "jsonb";
164
+ readonly nullable: true;
165
+ }, {
166
+ readonly name: "metadataRaw";
167
+ readonly type: "jsonb";
168
+ readonly nullable: true;
169
+ }, {
170
+ readonly name: "requestContext";
171
+ readonly type: "jsonb";
172
+ readonly nullable: true;
173
+ }];
174
+ export declare const METRIC_EVENT_COLUMNS: readonly [{
175
+ readonly name: "cursorId";
176
+ readonly type: "bigserial";
177
+ }, {
178
+ readonly name: "xactId";
179
+ readonly type: "xid8";
180
+ readonly defaultSql: "pg_current_xact_id()";
181
+ }, {
182
+ readonly name: "metricId";
183
+ readonly type: "text";
184
+ }, {
185
+ readonly name: "timestamp";
186
+ readonly type: "timestamptz";
187
+ }, {
188
+ readonly name: "name";
189
+ readonly type: "text";
190
+ }, {
191
+ readonly name: "value";
192
+ readonly type: "double precision";
193
+ }, {
194
+ readonly name: "traceId";
195
+ readonly type: "text";
196
+ readonly nullable: true;
197
+ }, {
198
+ readonly name: "spanId";
199
+ readonly type: "text";
200
+ readonly nullable: true;
201
+ }, {
202
+ readonly name: "experimentId";
203
+ readonly type: "text";
204
+ readonly nullable: true;
205
+ }, {
206
+ readonly name: "entityType";
207
+ readonly type: "text";
208
+ readonly nullable: true;
209
+ }, {
210
+ readonly name: "entityId";
211
+ readonly type: "text";
212
+ readonly nullable: true;
213
+ }, {
214
+ readonly name: "entityName";
215
+ readonly type: "text";
216
+ readonly nullable: true;
217
+ }, {
218
+ readonly name: "entityVersionId";
219
+ readonly type: "text";
220
+ readonly nullable: true;
221
+ }, {
222
+ readonly name: "parentEntityType";
223
+ readonly type: "text";
224
+ readonly nullable: true;
225
+ }, {
226
+ readonly name: "parentEntityId";
227
+ readonly type: "text";
228
+ readonly nullable: true;
229
+ }, {
230
+ readonly name: "parentEntityName";
231
+ readonly type: "text";
232
+ readonly nullable: true;
233
+ }, {
234
+ readonly name: "parentEntityVersionId";
235
+ readonly type: "text";
236
+ readonly nullable: true;
237
+ }, {
238
+ readonly name: "rootEntityType";
239
+ readonly type: "text";
240
+ readonly nullable: true;
241
+ }, {
242
+ readonly name: "rootEntityId";
243
+ readonly type: "text";
244
+ readonly nullable: true;
245
+ }, {
246
+ readonly name: "rootEntityName";
247
+ readonly type: "text";
248
+ readonly nullable: true;
249
+ }, {
250
+ readonly name: "rootEntityVersionId";
251
+ readonly type: "text";
252
+ readonly nullable: true;
253
+ }, {
254
+ readonly name: "userId";
255
+ readonly type: "text";
256
+ readonly nullable: true;
257
+ }, {
258
+ readonly name: "organizationId";
259
+ readonly type: "text";
260
+ readonly nullable: true;
261
+ }, {
262
+ readonly name: "resourceId";
263
+ readonly type: "text";
264
+ readonly nullable: true;
265
+ }, {
266
+ readonly name: "runId";
267
+ readonly type: "text";
268
+ readonly nullable: true;
269
+ }, {
270
+ readonly name: "sessionId";
271
+ readonly type: "text";
272
+ readonly nullable: true;
273
+ }, {
274
+ readonly name: "threadId";
275
+ readonly type: "text";
276
+ readonly nullable: true;
277
+ }, {
278
+ readonly name: "requestId";
279
+ readonly type: "text";
280
+ readonly nullable: true;
281
+ }, {
282
+ readonly name: "environment";
283
+ readonly type: "text";
284
+ readonly nullable: true;
285
+ }, {
286
+ readonly name: "executionSource";
287
+ readonly type: "text";
288
+ readonly nullable: true;
289
+ }, {
290
+ readonly name: "serviceName";
291
+ readonly type: "text";
292
+ readonly nullable: true;
293
+ }, {
294
+ readonly name: "provider";
295
+ readonly type: "text";
296
+ readonly nullable: true;
297
+ }, {
298
+ readonly name: "model";
299
+ readonly type: "text";
300
+ readonly nullable: true;
301
+ }, {
302
+ readonly name: "estimatedCost";
303
+ readonly type: "double precision";
304
+ readonly nullable: true;
305
+ }, {
306
+ readonly name: "costUnit";
307
+ readonly type: "text";
308
+ readonly nullable: true;
309
+ }, {
310
+ readonly name: "tags";
311
+ readonly type: "text[]";
312
+ readonly defaultSql: "'{}'";
313
+ }, {
314
+ readonly name: "labels";
315
+ readonly type: "jsonb";
316
+ readonly defaultSql: "'{}'::jsonb";
317
+ }, {
318
+ readonly name: "costMetadata";
319
+ readonly type: "jsonb";
320
+ readonly nullable: true;
321
+ }, {
322
+ readonly name: "metadata";
323
+ readonly type: "jsonb";
324
+ readonly nullable: true;
325
+ }, {
326
+ readonly name: "scope";
327
+ readonly type: "jsonb";
328
+ readonly nullable: true;
329
+ }];
330
+ export declare const LOG_EVENT_COLUMNS: readonly [{
331
+ readonly name: "cursorId";
332
+ readonly type: "bigserial";
333
+ }, {
334
+ readonly name: "xactId";
335
+ readonly type: "xid8";
336
+ readonly defaultSql: "pg_current_xact_id()";
337
+ }, {
338
+ readonly name: "logId";
339
+ readonly type: "text";
340
+ }, {
341
+ readonly name: "timestamp";
342
+ readonly type: "timestamptz";
343
+ }, {
344
+ readonly name: "level";
345
+ readonly type: "text";
346
+ }, {
347
+ readonly name: "message";
348
+ readonly type: "text";
349
+ }, {
350
+ readonly name: "traceId";
351
+ readonly type: "text";
352
+ readonly nullable: true;
353
+ }, {
354
+ readonly name: "spanId";
355
+ readonly type: "text";
356
+ readonly nullable: true;
357
+ }, {
358
+ readonly name: "experimentId";
359
+ readonly type: "text";
360
+ readonly nullable: true;
361
+ }, {
362
+ readonly name: "entityType";
363
+ readonly type: "text";
364
+ readonly nullable: true;
365
+ }, {
366
+ readonly name: "entityId";
367
+ readonly type: "text";
368
+ readonly nullable: true;
369
+ }, {
370
+ readonly name: "entityName";
371
+ readonly type: "text";
372
+ readonly nullable: true;
373
+ }, {
374
+ readonly name: "entityVersionId";
375
+ readonly type: "text";
376
+ readonly nullable: true;
377
+ }, {
378
+ readonly name: "parentEntityType";
379
+ readonly type: "text";
380
+ readonly nullable: true;
381
+ }, {
382
+ readonly name: "parentEntityId";
383
+ readonly type: "text";
384
+ readonly nullable: true;
385
+ }, {
386
+ readonly name: "parentEntityName";
387
+ readonly type: "text";
388
+ readonly nullable: true;
389
+ }, {
390
+ readonly name: "parentEntityVersionId";
391
+ readonly type: "text";
392
+ readonly nullable: true;
393
+ }, {
394
+ readonly name: "rootEntityType";
395
+ readonly type: "text";
396
+ readonly nullable: true;
397
+ }, {
398
+ readonly name: "rootEntityId";
399
+ readonly type: "text";
400
+ readonly nullable: true;
401
+ }, {
402
+ readonly name: "rootEntityName";
403
+ readonly type: "text";
404
+ readonly nullable: true;
405
+ }, {
406
+ readonly name: "rootEntityVersionId";
407
+ readonly type: "text";
408
+ readonly nullable: true;
409
+ }, {
410
+ readonly name: "userId";
411
+ readonly type: "text";
412
+ readonly nullable: true;
413
+ }, {
414
+ readonly name: "organizationId";
415
+ readonly type: "text";
416
+ readonly nullable: true;
417
+ }, {
418
+ readonly name: "resourceId";
419
+ readonly type: "text";
420
+ readonly nullable: true;
421
+ }, {
422
+ readonly name: "runId";
423
+ readonly type: "text";
424
+ readonly nullable: true;
425
+ }, {
426
+ readonly name: "sessionId";
427
+ readonly type: "text";
428
+ readonly nullable: true;
429
+ }, {
430
+ readonly name: "threadId";
431
+ readonly type: "text";
432
+ readonly nullable: true;
433
+ }, {
434
+ readonly name: "requestId";
435
+ readonly type: "text";
436
+ readonly nullable: true;
437
+ }, {
438
+ readonly name: "environment";
439
+ readonly type: "text";
440
+ readonly nullable: true;
441
+ }, {
442
+ readonly name: "executionSource";
443
+ readonly type: "text";
444
+ readonly nullable: true;
445
+ }, {
446
+ readonly name: "serviceName";
447
+ readonly type: "text";
448
+ readonly nullable: true;
449
+ }, {
450
+ readonly name: "tags";
451
+ readonly type: "text[]";
452
+ readonly defaultSql: "'{}'";
453
+ }, {
454
+ readonly name: "data";
455
+ readonly type: "jsonb";
456
+ readonly nullable: true;
457
+ }, {
458
+ readonly name: "metadata";
459
+ readonly type: "jsonb";
460
+ readonly nullable: true;
461
+ }, {
462
+ readonly name: "scope";
463
+ readonly type: "jsonb";
464
+ readonly nullable: true;
465
+ }];
466
+ export declare const SCORE_EVENT_COLUMNS: readonly [{
467
+ readonly name: "cursorId";
468
+ readonly type: "bigserial";
469
+ }, {
470
+ readonly name: "xactId";
471
+ readonly type: "xid8";
472
+ readonly defaultSql: "pg_current_xact_id()";
473
+ }, {
474
+ readonly name: "scoreId";
475
+ readonly type: "text";
476
+ }, {
477
+ readonly name: "timestamp";
478
+ readonly type: "timestamptz";
479
+ }, {
480
+ readonly name: "scorerId";
481
+ readonly type: "text";
482
+ }, {
483
+ readonly name: "scorerVersion";
484
+ readonly type: "text";
485
+ readonly nullable: true;
486
+ }, {
487
+ readonly name: "scoreSource";
488
+ readonly type: "text";
489
+ readonly nullable: true;
490
+ }, {
491
+ readonly name: "score";
492
+ readonly type: "double precision";
493
+ }, {
494
+ readonly name: "reason";
495
+ readonly type: "text";
496
+ readonly nullable: true;
497
+ }, {
498
+ readonly name: "traceId";
499
+ readonly type: "text";
500
+ readonly nullable: true;
501
+ }, {
502
+ readonly name: "spanId";
503
+ readonly type: "text";
504
+ readonly nullable: true;
505
+ }, {
506
+ readonly name: "experimentId";
507
+ readonly type: "text";
508
+ readonly nullable: true;
509
+ }, {
510
+ readonly name: "entityType";
511
+ readonly type: "text";
512
+ readonly nullable: true;
513
+ }, {
514
+ readonly name: "entityId";
515
+ readonly type: "text";
516
+ readonly nullable: true;
517
+ }, {
518
+ readonly name: "entityName";
519
+ readonly type: "text";
520
+ readonly nullable: true;
521
+ }, {
522
+ readonly name: "entityVersionId";
523
+ readonly type: "text";
524
+ readonly nullable: true;
525
+ }, {
526
+ readonly name: "parentEntityType";
527
+ readonly type: "text";
528
+ readonly nullable: true;
529
+ }, {
530
+ readonly name: "parentEntityId";
531
+ readonly type: "text";
532
+ readonly nullable: true;
533
+ }, {
534
+ readonly name: "parentEntityName";
535
+ readonly type: "text";
536
+ readonly nullable: true;
537
+ }, {
538
+ readonly name: "parentEntityVersionId";
539
+ readonly type: "text";
540
+ readonly nullable: true;
541
+ }, {
542
+ readonly name: "rootEntityType";
543
+ readonly type: "text";
544
+ readonly nullable: true;
545
+ }, {
546
+ readonly name: "rootEntityId";
547
+ readonly type: "text";
548
+ readonly nullable: true;
549
+ }, {
550
+ readonly name: "rootEntityName";
551
+ readonly type: "text";
552
+ readonly nullable: true;
553
+ }, {
554
+ readonly name: "rootEntityVersionId";
555
+ readonly type: "text";
556
+ readonly nullable: true;
557
+ }, {
558
+ readonly name: "userId";
559
+ readonly type: "text";
560
+ readonly nullable: true;
561
+ }, {
562
+ readonly name: "organizationId";
563
+ readonly type: "text";
564
+ readonly nullable: true;
565
+ }, {
566
+ readonly name: "resourceId";
567
+ readonly type: "text";
568
+ readonly nullable: true;
569
+ }, {
570
+ readonly name: "runId";
571
+ readonly type: "text";
572
+ readonly nullable: true;
573
+ }, {
574
+ readonly name: "sessionId";
575
+ readonly type: "text";
576
+ readonly nullable: true;
577
+ }, {
578
+ readonly name: "threadId";
579
+ readonly type: "text";
580
+ readonly nullable: true;
581
+ }, {
582
+ readonly name: "requestId";
583
+ readonly type: "text";
584
+ readonly nullable: true;
585
+ }, {
586
+ readonly name: "environment";
587
+ readonly type: "text";
588
+ readonly nullable: true;
589
+ }, {
590
+ readonly name: "executionSource";
591
+ readonly type: "text";
592
+ readonly nullable: true;
593
+ }, {
594
+ readonly name: "serviceName";
595
+ readonly type: "text";
596
+ readonly nullable: true;
597
+ }, {
598
+ readonly name: "scoreTraceId";
599
+ readonly type: "text";
600
+ readonly nullable: true;
601
+ }, {
602
+ readonly name: "tags";
603
+ readonly type: "text[]";
604
+ readonly defaultSql: "'{}'";
605
+ }, {
606
+ readonly name: "metadata";
607
+ readonly type: "jsonb";
608
+ readonly nullable: true;
609
+ }, {
610
+ readonly name: "scope";
611
+ readonly type: "jsonb";
612
+ readonly nullable: true;
613
+ }];
614
+ export declare const FEEDBACK_EVENT_COLUMNS: readonly [{
615
+ readonly name: "cursorId";
616
+ readonly type: "bigserial";
617
+ }, {
618
+ readonly name: "xactId";
619
+ readonly type: "xid8";
620
+ readonly defaultSql: "pg_current_xact_id()";
621
+ }, {
622
+ readonly name: "feedbackId";
623
+ readonly type: "text";
624
+ }, {
625
+ readonly name: "timestamp";
626
+ readonly type: "timestamptz";
627
+ }, {
628
+ readonly name: "feedbackSource";
629
+ readonly type: "text";
630
+ }, {
631
+ readonly name: "feedbackType";
632
+ readonly type: "text";
633
+ }, {
634
+ readonly name: "valueString";
635
+ readonly type: "text";
636
+ readonly nullable: true;
637
+ }, {
638
+ readonly name: "valueNumber";
639
+ readonly type: "double precision";
640
+ readonly nullable: true;
641
+ }, {
642
+ readonly name: "comment";
643
+ readonly type: "text";
644
+ readonly nullable: true;
645
+ }, {
646
+ readonly name: "feedbackUserId";
647
+ readonly type: "text";
648
+ readonly nullable: true;
649
+ }, {
650
+ readonly name: "sourceId";
651
+ readonly type: "text";
652
+ readonly nullable: true;
653
+ }, {
654
+ readonly name: "traceId";
655
+ readonly type: "text";
656
+ readonly nullable: true;
657
+ }, {
658
+ readonly name: "spanId";
659
+ readonly type: "text";
660
+ readonly nullable: true;
661
+ }, {
662
+ readonly name: "experimentId";
663
+ readonly type: "text";
664
+ readonly nullable: true;
665
+ }, {
666
+ readonly name: "entityType";
667
+ readonly type: "text";
668
+ readonly nullable: true;
669
+ }, {
670
+ readonly name: "entityId";
671
+ readonly type: "text";
672
+ readonly nullable: true;
673
+ }, {
674
+ readonly name: "entityName";
675
+ readonly type: "text";
676
+ readonly nullable: true;
677
+ }, {
678
+ readonly name: "entityVersionId";
679
+ readonly type: "text";
680
+ readonly nullable: true;
681
+ }, {
682
+ readonly name: "parentEntityType";
683
+ readonly type: "text";
684
+ readonly nullable: true;
685
+ }, {
686
+ readonly name: "parentEntityId";
687
+ readonly type: "text";
688
+ readonly nullable: true;
689
+ }, {
690
+ readonly name: "parentEntityName";
691
+ readonly type: "text";
692
+ readonly nullable: true;
693
+ }, {
694
+ readonly name: "parentEntityVersionId";
695
+ readonly type: "text";
696
+ readonly nullable: true;
697
+ }, {
698
+ readonly name: "rootEntityType";
699
+ readonly type: "text";
700
+ readonly nullable: true;
701
+ }, {
702
+ readonly name: "rootEntityId";
703
+ readonly type: "text";
704
+ readonly nullable: true;
705
+ }, {
706
+ readonly name: "rootEntityName";
707
+ readonly type: "text";
708
+ readonly nullable: true;
709
+ }, {
710
+ readonly name: "rootEntityVersionId";
711
+ readonly type: "text";
712
+ readonly nullable: true;
713
+ }, {
714
+ readonly name: "userId";
715
+ readonly type: "text";
716
+ readonly nullable: true;
717
+ }, {
718
+ readonly name: "organizationId";
719
+ readonly type: "text";
720
+ readonly nullable: true;
721
+ }, {
722
+ readonly name: "resourceId";
723
+ readonly type: "text";
724
+ readonly nullable: true;
725
+ }, {
726
+ readonly name: "runId";
727
+ readonly type: "text";
728
+ readonly nullable: true;
729
+ }, {
730
+ readonly name: "sessionId";
731
+ readonly type: "text";
732
+ readonly nullable: true;
733
+ }, {
734
+ readonly name: "threadId";
735
+ readonly type: "text";
736
+ readonly nullable: true;
737
+ }, {
738
+ readonly name: "requestId";
739
+ readonly type: "text";
740
+ readonly nullable: true;
741
+ }, {
742
+ readonly name: "environment";
743
+ readonly type: "text";
744
+ readonly nullable: true;
745
+ }, {
746
+ readonly name: "executionSource";
747
+ readonly type: "text";
748
+ readonly nullable: true;
749
+ }, {
750
+ readonly name: "serviceName";
751
+ readonly type: "text";
752
+ readonly nullable: true;
753
+ }, {
754
+ readonly name: "tags";
755
+ readonly type: "text[]";
756
+ readonly defaultSql: "'{}'";
757
+ }, {
758
+ readonly name: "metadata";
759
+ readonly type: "jsonb";
760
+ readonly nullable: true;
761
+ }, {
762
+ readonly name: "scope";
763
+ readonly type: "jsonb";
764
+ readonly nullable: true;
765
+ }];
766
+ export declare const SPAN_LIGHT_SELECT_COLUMN_NAMES: readonly ["cursorId", "xactId", "traceId", "spanId", "parentSpanId", "name", "entityType", "entityId", "entityName", "spanType", "error", "isEvent", "startedAt", "endedAt"];
767
+ export declare function buildColumnDefinitions(columns: readonly SignalColumn[]): string;
768
+ export declare function buildSelectColumns(columns: readonly SignalColumn[]): string;
769
+ export declare function buildNamedSelectColumns(columnNames: readonly string[]): string;
770
+ export declare const JSONB_COLUMNS: Set<string>;
771
+ export declare const TEXT_ARRAY_COLUMNS: Set<string>;
772
+ export declare const METRIC_TYPED_COLUMNS: Set<string>;
773
+ export declare const SCORE_TYPED_COLUMNS: Set<string>;
774
+ export declare const FEEDBACK_TYPED_COLUMNS: Set<string>;
775
+ export {};
776
+ //# sourceMappingURL=signal-schema.d.ts.map