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