@elevasis/ui 2.67.0 → 2.69.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.
Files changed (122) hide show
  1. package/dist/api/index.d.ts +1 -1
  2. package/dist/api/index.js +3 -3
  3. package/dist/app/index.d.ts +575 -370
  4. package/dist/app/index.js +17 -23
  5. package/dist/auth/index.css +149 -149
  6. package/dist/auth/index.d.ts +5 -0
  7. package/dist/auth/index.js +11 -13
  8. package/dist/charts/index.css +208 -208
  9. package/dist/charts/index.js +11 -13
  10. package/dist/{chunk-M535KHLW.js → chunk-26BTE3Z4.js} +1 -1
  11. package/dist/chunk-3KMDHCAR.js +52 -0
  12. package/dist/chunk-3MEXPLWT.js +265 -0
  13. package/dist/chunk-4JHLS234.js +39 -0
  14. package/dist/chunk-6PZFOHJK.js +1764 -0
  15. package/dist/chunk-7WJEPTE7.js +194 -0
  16. package/dist/chunk-AH52XQB7.js +1 -0
  17. package/dist/{chunk-UFTM5SZZ.js → chunk-AKANHRQ5.js} +9 -3
  18. package/dist/chunk-BZZCNLT6.js +12 -0
  19. package/dist/chunk-C75XWBYZ.js +383 -0
  20. package/dist/chunk-DLR4SDZW.js +51 -0
  21. package/dist/{chunk-4OEVLV66.js → chunk-FLECOYUS.js} +113 -148
  22. package/dist/chunk-IRV6KJPV.js +425 -0
  23. package/dist/chunk-IT7GTJCB.js +10 -0
  24. package/dist/chunk-LGKLC5MG.js +44 -0
  25. package/dist/chunk-MFLM7BVC.js +85 -0
  26. package/dist/chunk-MRVGQLWN.js +1595 -0
  27. package/dist/{chunk-4DV4ECMG.js → chunk-N7U24M2J.js} +4 -0
  28. package/dist/{chunk-I7BZVVVU.js → chunk-NM4A63KJ.js} +104 -415
  29. package/dist/chunk-NU3NBXHP.js +1194 -0
  30. package/dist/chunk-PDHTXPSF.js +12 -0
  31. package/dist/chunk-RW64UJWT.js +1934 -0
  32. package/dist/{chunk-JFBZ6XDW.js → chunk-SNZDFCOQ.js} +3 -49
  33. package/dist/chunk-TUMSNGTX.js +35 -0
  34. package/dist/chunk-UD657ICS.js +589 -0
  35. package/dist/{chunk-XNW3O6QW.js → chunk-VDX6DL7Z.js} +1 -1
  36. package/dist/chunk-WXHAHKKI.js +16411 -0
  37. package/dist/chunk-XAZR3T6Y.js +2162 -0
  38. package/dist/chunk-XQ3ILKYN.js +37 -0
  39. package/dist/chunk-YCRINA2D.js +67 -0
  40. package/dist/chunk-YGCMMOY4.js +1484 -0
  41. package/dist/chunk-YNRYIXUT.js +10945 -0
  42. package/dist/chunk-ZD6LM53O.js +4528 -0
  43. package/dist/chunk-ZPTEGGKU.js +631 -0
  44. package/dist/components/chat/index.js +2 -1
  45. package/dist/components/index.css +208 -208
  46. package/dist/components/index.d.ts +1634 -264
  47. package/dist/components/index.js +2774 -14
  48. package/dist/components/navigation/index.css +149 -149
  49. package/dist/components/navigation/index.js +12 -13
  50. package/dist/features/auth/index.css +149 -149
  51. package/dist/features/auth/index.d.ts +457 -167
  52. package/dist/features/auth/index.js +13 -14
  53. package/dist/features/clients/index.css +208 -208
  54. package/dist/features/clients/index.d.ts +39 -1
  55. package/dist/features/clients/index.js +16 -13
  56. package/dist/features/content/index.d.ts +1788 -0
  57. package/dist/features/content/index.js +2180 -0
  58. package/dist/features/crm/index.d.ts +1802 -231
  59. package/dist/features/crm/index.js +16 -13
  60. package/dist/features/dashboard/index.d.ts +1 -8
  61. package/dist/features/dashboard/index.js +17 -13
  62. package/dist/features/delivery/index.d.ts +457 -167
  63. package/dist/features/delivery/index.js +16 -13
  64. package/dist/features/knowledge/index.css +149 -149
  65. package/dist/features/knowledge/index.js +11 -13
  66. package/dist/features/lead-gen/index.d.ts +53 -104
  67. package/dist/features/lead-gen/index.js +17 -13
  68. package/dist/features/monitoring/index.js +16 -13
  69. package/dist/features/monitoring/requests/index.js +15 -20
  70. package/dist/features/operations/index.d.ts +1 -86
  71. package/dist/features/operations/index.js +22 -12
  72. package/dist/features/public-agent-chat/index.js +2 -1
  73. package/dist/features/seo/index.js +2 -1
  74. package/dist/features/settings/index.d.ts +457 -167
  75. package/dist/features/settings/index.js +15 -13
  76. package/dist/hooks/access/index.css +149 -149
  77. package/dist/hooks/access/index.d.ts +5 -0
  78. package/dist/hooks/access/index.js +11 -13
  79. package/dist/hooks/delivery/index.d.ts +457 -167
  80. package/dist/hooks/delivery/index.js +2 -23
  81. package/dist/hooks/index.d.ts +2203 -244
  82. package/dist/hooks/index.js +11 -13
  83. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +1 -8
  84. package/dist/hooks/published.d.ts +2203 -244
  85. package/dist/hooks/published.js +11 -13
  86. package/dist/initialization/index.d.ts +465 -169
  87. package/dist/knowledge/index.css +149 -149
  88. package/dist/knowledge/index.d.ts +5 -90
  89. package/dist/knowledge/index.js +3215 -3203
  90. package/dist/{knowledge-search-index-6EZNBNSR.js → knowledge-search-index-LP2WVSQX.js} +689 -695
  91. package/dist/layout/index.css +149 -149
  92. package/dist/layout/index.js +15 -13
  93. package/dist/organization/index.d.ts +10 -4
  94. package/dist/organization/index.js +1 -21
  95. package/dist/profile/index.d.ts +457 -167
  96. package/dist/provider/index.d.ts +576 -372
  97. package/dist/provider/index.js +11 -13
  98. package/dist/provider/published.css +149 -149
  99. package/dist/provider/published.d.ts +576 -372
  100. package/dist/provider/published.js +11 -13
  101. package/dist/supabase/index.d.ts +906 -347
  102. package/dist/test-utils/index.d.ts +15 -2
  103. package/dist/test-utils/index.js +41 -12
  104. package/dist/test-utils/setup-integration.js +1 -1
  105. package/dist/test-utils/setup.js +1 -1
  106. package/dist/theme/index.js +3 -2
  107. package/dist/theme/presets/index.js +1 -1
  108. package/dist/typeform/index.js +2049 -1
  109. package/dist/types/index.d.ts +477 -177
  110. package/dist/utils/index.d.ts +1 -8
  111. package/dist/utils/index.js +1 -1
  112. package/dist/vite/index.js +2 -2
  113. package/dist/vite-plugin-knowledge/index.js +1 -1
  114. package/package.json +7 -3
  115. package/src/features/README.md +28 -28
  116. package/dist/chunk-5TERYXOO.js +0 -51390
  117. package/dist/chunk-AUDNF2Q7.js +0 -2050
  118. package/dist/index.d.ts +0 -17888
  119. package/dist/index.js +0 -30
  120. package/dist/{chunk-GMXGDO3I.js → chunk-MISHPEJX.js} +1 -1
  121. package/dist/{chunk-RBGVNPA6.js → chunk-XQBURFKM.js} +0 -0
  122. package/dist/{index.css → features/content/index.css} +149 -149
@@ -8,53 +8,6 @@ type Json = string | number | boolean | null | {
8
8
  type Database = {
9
9
  public: {
10
10
  Tables: {
11
- acq_artifacts: {
12
- Row: {
13
- content: Json;
14
- created_at: string;
15
- created_by: string | null;
16
- id: string;
17
- kind: string;
18
- organization_id: string;
19
- owner_id: string;
20
- owner_kind: string;
21
- source_execution_id: string | null;
22
- version: number;
23
- };
24
- Insert: {
25
- content: Json;
26
- created_at?: string;
27
- created_by?: string | null;
28
- id?: string;
29
- kind: string;
30
- organization_id: string;
31
- owner_id: string;
32
- owner_kind: string;
33
- source_execution_id?: string | null;
34
- version?: number;
35
- };
36
- Update: {
37
- content?: Json;
38
- created_at?: string;
39
- created_by?: string | null;
40
- id?: string;
41
- kind?: string;
42
- organization_id?: string;
43
- owner_id?: string;
44
- owner_kind?: string;
45
- source_execution_id?: string | null;
46
- version?: number;
47
- };
48
- Relationships: [
49
- {
50
- foreignKeyName: "acq_artifacts_organization_id_fkey";
51
- columns: ["organization_id"];
52
- isOneToOne: false;
53
- referencedRelation: "organizations";
54
- referencedColumns: ["id"];
55
- }
56
- ];
57
- };
58
11
  acq_companies: {
59
12
  Row: {
60
13
  batch_id: string | null;
@@ -266,122 +219,6 @@ type Database = {
266
219
  }
267
220
  ];
268
221
  };
269
- acq_content: {
270
- Row: {
271
- body: string | null;
272
- created_at: string;
273
- id: string;
274
- organization_id: string;
275
- pillar: string;
276
- status: string;
277
- title: string;
278
- updated_at: string;
279
- };
280
- Insert: {
281
- body?: string | null;
282
- created_at?: string;
283
- id?: string;
284
- organization_id: string;
285
- pillar: string;
286
- status?: string;
287
- title: string;
288
- updated_at?: string;
289
- };
290
- Update: {
291
- body?: string | null;
292
- created_at?: string;
293
- id?: string;
294
- organization_id?: string;
295
- pillar?: string;
296
- status?: string;
297
- title?: string;
298
- updated_at?: string;
299
- };
300
- Relationships: [
301
- {
302
- foreignKeyName: "acq_content_organization_id_fkey";
303
- columns: ["organization_id"];
304
- isOneToOne: false;
305
- referencedRelation: "organizations";
306
- referencedColumns: ["id"];
307
- }
308
- ];
309
- };
310
- acq_content_distributions: {
311
- Row: {
312
- adapted_body: string | null;
313
- checklist: Json | null;
314
- content_id: string;
315
- created_at: string;
316
- format: string;
317
- id: string;
318
- media_urls: Json;
319
- metrics: Json;
320
- metrics_updated_at: string | null;
321
- organization_id: string;
322
- platform: string;
323
- platform_content: Json | null;
324
- platform_post_id: string | null;
325
- platform_url: string | null;
326
- published_at: string | null;
327
- status: string;
328
- updated_at: string;
329
- };
330
- Insert: {
331
- adapted_body?: string | null;
332
- checklist?: Json | null;
333
- content_id: string;
334
- created_at?: string;
335
- format: string;
336
- id?: string;
337
- media_urls?: Json;
338
- metrics?: Json;
339
- metrics_updated_at?: string | null;
340
- organization_id: string;
341
- platform: string;
342
- platform_content?: Json | null;
343
- platform_post_id?: string | null;
344
- platform_url?: string | null;
345
- published_at?: string | null;
346
- status?: string;
347
- updated_at?: string;
348
- };
349
- Update: {
350
- adapted_body?: string | null;
351
- checklist?: Json | null;
352
- content_id?: string;
353
- created_at?: string;
354
- format?: string;
355
- id?: string;
356
- media_urls?: Json;
357
- metrics?: Json;
358
- metrics_updated_at?: string | null;
359
- organization_id?: string;
360
- platform?: string;
361
- platform_content?: Json | null;
362
- platform_post_id?: string | null;
363
- platform_url?: string | null;
364
- published_at?: string | null;
365
- status?: string;
366
- updated_at?: string;
367
- };
368
- Relationships: [
369
- {
370
- foreignKeyName: "acq_content_distributions_content_id_fkey";
371
- columns: ["content_id"];
372
- isOneToOne: false;
373
- referencedRelation: "acq_content";
374
- referencedColumns: ["id"];
375
- },
376
- {
377
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
378
- columns: ["organization_id"];
379
- isOneToOne: false;
380
- referencedRelation: "organizations";
381
- referencedColumns: ["id"];
382
- }
383
- ];
384
- };
385
222
  acq_deal_notes: {
386
223
  Row: {
387
224
  author_user_id: string | null;
@@ -411,6 +248,13 @@ type Database = {
411
248
  updated_at?: string;
412
249
  };
413
250
  Relationships: [
251
+ {
252
+ foreignKeyName: "acq_deal_notes_author_user_id_fkey";
253
+ columns: ["author_user_id"];
254
+ isOneToOne: false;
255
+ referencedRelation: "users";
256
+ referencedColumns: ["id"];
257
+ },
414
258
  {
415
259
  foreignKeyName: "acq_deal_notes_deal_id_fkey";
416
260
  columns: ["deal_id"];
@@ -474,6 +318,27 @@ type Database = {
474
318
  updated_at?: string;
475
319
  };
476
320
  Relationships: [
321
+ {
322
+ foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
323
+ columns: ["assignee_user_id"];
324
+ isOneToOne: false;
325
+ referencedRelation: "users";
326
+ referencedColumns: ["id"];
327
+ },
328
+ {
329
+ foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
330
+ columns: ["completed_by_user_id"];
331
+ isOneToOne: false;
332
+ referencedRelation: "users";
333
+ referencedColumns: ["id"];
334
+ },
335
+ {
336
+ foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
337
+ columns: ["created_by_user_id"];
338
+ isOneToOne: false;
339
+ referencedRelation: "users";
340
+ referencedColumns: ["id"];
341
+ },
477
342
  {
478
343
  foreignKeyName: "acq_deal_tasks_deal_id_fkey";
479
344
  columns: ["deal_id"];
@@ -630,6 +495,13 @@ type Database = {
630
495
  referencedRelation: "acq_contacts";
631
496
  referencedColumns: ["id"];
632
497
  },
498
+ {
499
+ foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
500
+ columns: ["discovery_submitted_by"];
501
+ isOneToOne: false;
502
+ referencedRelation: "users";
503
+ referencedColumns: ["id"];
504
+ },
633
505
  {
634
506
  foreignKeyName: "acq_deals_organization_id_fkey";
635
507
  columns: ["organization_id"];
@@ -637,6 +509,13 @@ type Database = {
637
509
  referencedRelation: "organizations";
638
510
  referencedColumns: ["id"];
639
511
  },
512
+ {
513
+ foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
514
+ columns: ["proposal_reviewed_by"];
515
+ isOneToOne: false;
516
+ referencedRelation: "users";
517
+ referencedColumns: ["id"];
518
+ },
640
519
  {
641
520
  foreignKeyName: "acq_deals_source_list_id_fkey";
642
521
  columns: ["source_list_id"];
@@ -690,6 +569,13 @@ type Database = {
690
569
  state_key?: string;
691
570
  };
692
571
  Relationships: [
572
+ {
573
+ foreignKeyName: "acq_list_companies_added_by_fkey";
574
+ columns: ["added_by"];
575
+ isOneToOne: false;
576
+ referencedRelation: "users";
577
+ referencedColumns: ["id"];
578
+ },
693
579
  {
694
580
  foreignKeyName: "acq_list_companies_company_id_fkey";
695
581
  columns: ["company_id"];
@@ -796,6 +682,13 @@ type Database = {
796
682
  state_key?: string;
797
683
  };
798
684
  Relationships: [
685
+ {
686
+ foreignKeyName: "acq_list_members_added_by_fkey";
687
+ columns: ["added_by"];
688
+ isOneToOne: false;
689
+ referencedRelation: "users";
690
+ referencedColumns: ["id"];
691
+ },
799
692
  {
800
693
  foreignKeyName: "acq_list_members_contact_id_fkey";
801
694
  columns: ["contact_id"];
@@ -1196,6 +1089,13 @@ type Database = {
1196
1089
  title?: string;
1197
1090
  };
1198
1091
  Relationships: [
1092
+ {
1093
+ foreignKeyName: "activities_actor_id_fkey";
1094
+ columns: ["actor_id"];
1095
+ isOneToOne: false;
1096
+ referencedRelation: "users";
1097
+ referencedColumns: ["id"];
1098
+ },
1199
1099
  {
1200
1100
  foreignKeyName: "activities_organization_id_fkey";
1201
1101
  columns: ["organization_id"];
@@ -1308,6 +1208,62 @@ type Database = {
1308
1208
  }
1309
1209
  ];
1310
1210
  };
1211
+ artifacts: {
1212
+ Row: {
1213
+ content: Json;
1214
+ created_at: string;
1215
+ created_by: string | null;
1216
+ id: string;
1217
+ is_active: boolean;
1218
+ kind: string;
1219
+ organization_id: string;
1220
+ owner_id: string | null;
1221
+ owner_kind: string;
1222
+ pipeline_id: string | null;
1223
+ source_execution_id: string | null;
1224
+ updated_at: string;
1225
+ version: number;
1226
+ };
1227
+ Insert: {
1228
+ content: Json;
1229
+ created_at?: string;
1230
+ created_by?: string | null;
1231
+ id?: string;
1232
+ is_active?: boolean;
1233
+ kind: string;
1234
+ organization_id: string;
1235
+ owner_id?: string | null;
1236
+ owner_kind: string;
1237
+ pipeline_id?: string | null;
1238
+ source_execution_id?: string | null;
1239
+ updated_at?: string;
1240
+ version?: number;
1241
+ };
1242
+ Update: {
1243
+ content?: Json;
1244
+ created_at?: string;
1245
+ created_by?: string | null;
1246
+ id?: string;
1247
+ is_active?: boolean;
1248
+ kind?: string;
1249
+ organization_id?: string;
1250
+ owner_id?: string | null;
1251
+ owner_kind?: string;
1252
+ pipeline_id?: string | null;
1253
+ source_execution_id?: string | null;
1254
+ updated_at?: string;
1255
+ version?: number;
1256
+ };
1257
+ Relationships: [
1258
+ {
1259
+ foreignKeyName: "artifacts_organization_id_fkey";
1260
+ columns: ["organization_id"];
1261
+ isOneToOne: false;
1262
+ referencedRelation: "organizations";
1263
+ referencedColumns: ["id"];
1264
+ }
1265
+ ];
1266
+ };
1311
1267
  clients: {
1312
1268
  Row: {
1313
1269
  converted_at: string | null;
@@ -1479,6 +1435,311 @@ type Database = {
1479
1435
  }
1480
1436
  ];
1481
1437
  };
1438
+ content_distributions: {
1439
+ Row: {
1440
+ adapted_body: string | null;
1441
+ checklist: Json | null;
1442
+ content_item_id: string;
1443
+ created_at: string;
1444
+ format: string;
1445
+ id: string;
1446
+ media_urls: Json;
1447
+ metrics: Json;
1448
+ metrics_updated_at: string | null;
1449
+ organization_id: string;
1450
+ platform: string;
1451
+ platform_content: Json | null;
1452
+ platform_post_id: string | null;
1453
+ platform_url: string | null;
1454
+ processing_state: Json;
1455
+ publish_method: string | null;
1456
+ published_at: string | null;
1457
+ status: string;
1458
+ updated_at: string;
1459
+ };
1460
+ Insert: {
1461
+ adapted_body?: string | null;
1462
+ checklist?: Json | null;
1463
+ content_item_id: string;
1464
+ created_at?: string;
1465
+ format: string;
1466
+ id?: string;
1467
+ media_urls?: Json;
1468
+ metrics?: Json;
1469
+ metrics_updated_at?: string | null;
1470
+ organization_id: string;
1471
+ platform: string;
1472
+ platform_content?: Json | null;
1473
+ platform_post_id?: string | null;
1474
+ platform_url?: string | null;
1475
+ processing_state?: Json;
1476
+ publish_method?: string | null;
1477
+ published_at?: string | null;
1478
+ status?: string;
1479
+ updated_at?: string;
1480
+ };
1481
+ Update: {
1482
+ adapted_body?: string | null;
1483
+ checklist?: Json | null;
1484
+ content_item_id?: string;
1485
+ created_at?: string;
1486
+ format?: string;
1487
+ id?: string;
1488
+ media_urls?: Json;
1489
+ metrics?: Json;
1490
+ metrics_updated_at?: string | null;
1491
+ organization_id?: string;
1492
+ platform?: string;
1493
+ platform_content?: Json | null;
1494
+ platform_post_id?: string | null;
1495
+ platform_url?: string | null;
1496
+ processing_state?: Json;
1497
+ publish_method?: string | null;
1498
+ published_at?: string | null;
1499
+ status?: string;
1500
+ updated_at?: string;
1501
+ };
1502
+ Relationships: [
1503
+ {
1504
+ foreignKeyName: "content_distributions_content_item_id_fkey";
1505
+ columns: ["content_item_id"];
1506
+ isOneToOne: false;
1507
+ referencedRelation: "content_items";
1508
+ referencedColumns: ["id"];
1509
+ },
1510
+ {
1511
+ foreignKeyName: "content_distributions_organization_id_fkey";
1512
+ columns: ["organization_id"];
1513
+ isOneToOne: false;
1514
+ referencedRelation: "organizations";
1515
+ referencedColumns: ["id"];
1516
+ }
1517
+ ];
1518
+ };
1519
+ content_item_attempts: {
1520
+ Row: {
1521
+ attempt_number: number;
1522
+ content_item_id: string;
1523
+ created_at: string;
1524
+ created_by: string | null;
1525
+ id: string;
1526
+ organization_id: string;
1527
+ payload: Json;
1528
+ source_execution_id: string | null;
1529
+ step_key: string | null;
1530
+ };
1531
+ Insert: {
1532
+ attempt_number: number;
1533
+ content_item_id: string;
1534
+ created_at?: string;
1535
+ created_by?: string | null;
1536
+ id?: string;
1537
+ organization_id: string;
1538
+ payload?: Json;
1539
+ source_execution_id?: string | null;
1540
+ step_key?: string | null;
1541
+ };
1542
+ Update: {
1543
+ attempt_number?: number;
1544
+ content_item_id?: string;
1545
+ created_at?: string;
1546
+ created_by?: string | null;
1547
+ id?: string;
1548
+ organization_id?: string;
1549
+ payload?: Json;
1550
+ source_execution_id?: string | null;
1551
+ step_key?: string | null;
1552
+ };
1553
+ Relationships: [
1554
+ {
1555
+ foreignKeyName: "content_item_attempts_content_item_id_fkey";
1556
+ columns: ["content_item_id"];
1557
+ isOneToOne: false;
1558
+ referencedRelation: "content_items";
1559
+ referencedColumns: ["id"];
1560
+ },
1561
+ {
1562
+ foreignKeyName: "content_item_attempts_created_by_fkey";
1563
+ columns: ["created_by"];
1564
+ isOneToOne: false;
1565
+ referencedRelation: "users";
1566
+ referencedColumns: ["id"];
1567
+ },
1568
+ {
1569
+ foreignKeyName: "content_item_attempts_organization_id_fkey";
1570
+ columns: ["organization_id"];
1571
+ isOneToOne: false;
1572
+ referencedRelation: "organizations";
1573
+ referencedColumns: ["id"];
1574
+ },
1575
+ {
1576
+ foreignKeyName: "content_item_attempts_source_execution_id_fkey";
1577
+ columns: ["source_execution_id"];
1578
+ isOneToOne: false;
1579
+ referencedRelation: "execution_logs";
1580
+ referencedColumns: ["execution_id"];
1581
+ }
1582
+ ];
1583
+ };
1584
+ content_items: {
1585
+ Row: {
1586
+ body: string | null;
1587
+ client_id: string | null;
1588
+ created_at: string;
1589
+ created_by: string | null;
1590
+ id: string;
1591
+ organization_id: string;
1592
+ payload: Json;
1593
+ pillar: string | null;
1594
+ pipeline_id: string | null;
1595
+ processing_state: Json;
1596
+ reject_reason: string | null;
1597
+ reviewed_at: string | null;
1598
+ reviewed_by: string | null;
1599
+ reviewer_feedback: string | null;
1600
+ source_asset_id: string | null;
1601
+ status: string;
1602
+ title: string;
1603
+ updated_at: string;
1604
+ updated_by: string | null;
1605
+ };
1606
+ Insert: {
1607
+ body?: string | null;
1608
+ client_id?: string | null;
1609
+ created_at?: string;
1610
+ created_by?: string | null;
1611
+ id?: string;
1612
+ organization_id: string;
1613
+ payload?: Json;
1614
+ pillar?: string | null;
1615
+ pipeline_id?: string | null;
1616
+ processing_state?: Json;
1617
+ reject_reason?: string | null;
1618
+ reviewed_at?: string | null;
1619
+ reviewed_by?: string | null;
1620
+ reviewer_feedback?: string | null;
1621
+ source_asset_id?: string | null;
1622
+ status?: string;
1623
+ title: string;
1624
+ updated_at?: string;
1625
+ updated_by?: string | null;
1626
+ };
1627
+ Update: {
1628
+ body?: string | null;
1629
+ client_id?: string | null;
1630
+ created_at?: string;
1631
+ created_by?: string | null;
1632
+ id?: string;
1633
+ organization_id?: string;
1634
+ payload?: Json;
1635
+ pillar?: string | null;
1636
+ pipeline_id?: string | null;
1637
+ processing_state?: Json;
1638
+ reject_reason?: string | null;
1639
+ reviewed_at?: string | null;
1640
+ reviewed_by?: string | null;
1641
+ reviewer_feedback?: string | null;
1642
+ source_asset_id?: string | null;
1643
+ status?: string;
1644
+ title?: string;
1645
+ updated_at?: string;
1646
+ updated_by?: string | null;
1647
+ };
1648
+ Relationships: [
1649
+ {
1650
+ foreignKeyName: "content_items_client_id_fkey";
1651
+ columns: ["client_id"];
1652
+ isOneToOne: false;
1653
+ referencedRelation: "clients";
1654
+ referencedColumns: ["id"];
1655
+ },
1656
+ {
1657
+ foreignKeyName: "content_items_created_by_fkey";
1658
+ columns: ["created_by"];
1659
+ isOneToOne: false;
1660
+ referencedRelation: "users";
1661
+ referencedColumns: ["id"];
1662
+ },
1663
+ {
1664
+ foreignKeyName: "content_items_organization_id_fkey";
1665
+ columns: ["organization_id"];
1666
+ isOneToOne: false;
1667
+ referencedRelation: "organizations";
1668
+ referencedColumns: ["id"];
1669
+ },
1670
+ {
1671
+ foreignKeyName: "content_items_reviewed_by_fkey";
1672
+ columns: ["reviewed_by"];
1673
+ isOneToOne: false;
1674
+ referencedRelation: "users";
1675
+ referencedColumns: ["id"];
1676
+ },
1677
+ {
1678
+ foreignKeyName: "content_items_source_asset_id_fkey";
1679
+ columns: ["source_asset_id"];
1680
+ isOneToOne: false;
1681
+ referencedRelation: "content_source_assets";
1682
+ referencedColumns: ["id"];
1683
+ },
1684
+ {
1685
+ foreignKeyName: "content_items_updated_by_fkey";
1686
+ columns: ["updated_by"];
1687
+ isOneToOne: false;
1688
+ referencedRelation: "users";
1689
+ referencedColumns: ["id"];
1690
+ }
1691
+ ];
1692
+ };
1693
+ content_source_assets: {
1694
+ Row: {
1695
+ created_at: string;
1696
+ duration_seconds: number | null;
1697
+ external_url: string | null;
1698
+ id: string;
1699
+ kind: string;
1700
+ metadata: Json;
1701
+ organization_id: string;
1702
+ processing_state: Json;
1703
+ storage_path: string | null;
1704
+ title: string;
1705
+ updated_at: string;
1706
+ };
1707
+ Insert: {
1708
+ created_at?: string;
1709
+ duration_seconds?: number | null;
1710
+ external_url?: string | null;
1711
+ id?: string;
1712
+ kind: string;
1713
+ metadata?: Json;
1714
+ organization_id: string;
1715
+ processing_state?: Json;
1716
+ storage_path?: string | null;
1717
+ title: string;
1718
+ updated_at?: string;
1719
+ };
1720
+ Update: {
1721
+ created_at?: string;
1722
+ duration_seconds?: number | null;
1723
+ external_url?: string | null;
1724
+ id?: string;
1725
+ kind?: string;
1726
+ metadata?: Json;
1727
+ organization_id?: string;
1728
+ processing_state?: Json;
1729
+ storage_path?: string | null;
1730
+ title?: string;
1731
+ updated_at?: string;
1732
+ };
1733
+ Relationships: [
1734
+ {
1735
+ foreignKeyName: "content_source_assets_organization_id_fkey";
1736
+ columns: ["organization_id"];
1737
+ isOneToOne: false;
1738
+ referencedRelation: "organizations";
1739
+ referencedColumns: ["id"];
1740
+ }
1741
+ ];
1742
+ };
1482
1743
  credentials: {
1483
1744
  Row: {
1484
1745
  created_at: string;
@@ -3095,6 +3356,33 @@ type Database = {
3095
3356
  };
3096
3357
  Returns: boolean;
3097
3358
  };
3359
+ create_artifact_version: {
3360
+ Args: {
3361
+ p_content: Json;
3362
+ p_created_by?: string;
3363
+ p_kind: string;
3364
+ p_organization_id: string;
3365
+ p_owner_id?: string;
3366
+ p_owner_kind: string;
3367
+ p_pipeline_id?: string;
3368
+ p_source_execution_id?: string;
3369
+ };
3370
+ Returns: {
3371
+ content: Json;
3372
+ created_at: string;
3373
+ created_by: string | null;
3374
+ id: string;
3375
+ is_active: boolean;
3376
+ kind: string;
3377
+ organization_id: string;
3378
+ owner_id: string | null;
3379
+ owner_kind: string;
3380
+ pipeline_id: string | null;
3381
+ source_execution_id: string | null;
3382
+ updated_at: string;
3383
+ version: number;
3384
+ };
3385
+ };
3098
3386
  current_user_is_platform_admin: {
3099
3387
  Args: Record<PropertyKey, never>;
3100
3388
  Returns: boolean;
@@ -3109,10 +3397,6 @@ type Database = {
3109
3397
  Args: Record<PropertyKey, never>;
3110
3398
  Returns: string;
3111
3399
  };
3112
- detect_stalled_executions: {
3113
- Args: Record<PropertyKey, never>;
3114
- Returns: undefined;
3115
- };
3116
3400
  execute_session_turn: {
3117
3401
  Args: {
3118
3402
  p_session_id: string;
@@ -3205,6 +3489,12 @@ type Database = {
3205
3489
  Args: Record<PropertyKey, never>;
3206
3490
  Returns: Json;
3207
3491
  };
3492
+ purge_stale_test_data: {
3493
+ Args: {
3494
+ p_max_age?: unknown;
3495
+ };
3496
+ Returns: Json;
3497
+ };
3208
3498
  recompute_all_memberships: {
3209
3499
  Args: Record<PropertyKey, never>;
3210
3500
  Returns: undefined;