@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
@@ -56,53 +56,6 @@ type Json = string | number | boolean | null | {
56
56
  type Database = {
57
57
  public: {
58
58
  Tables: {
59
- acq_artifacts: {
60
- Row: {
61
- content: Json;
62
- created_at: string;
63
- created_by: string | null;
64
- id: string;
65
- kind: string;
66
- organization_id: string;
67
- owner_id: string;
68
- owner_kind: string;
69
- source_execution_id: string | null;
70
- version: number;
71
- };
72
- Insert: {
73
- content: Json;
74
- created_at?: string;
75
- created_by?: string | null;
76
- id?: string;
77
- kind: string;
78
- organization_id: string;
79
- owner_id: string;
80
- owner_kind: string;
81
- source_execution_id?: string | null;
82
- version?: number;
83
- };
84
- Update: {
85
- content?: Json;
86
- created_at?: string;
87
- created_by?: string | null;
88
- id?: string;
89
- kind?: string;
90
- organization_id?: string;
91
- owner_id?: string;
92
- owner_kind?: string;
93
- source_execution_id?: string | null;
94
- version?: number;
95
- };
96
- Relationships: [
97
- {
98
- foreignKeyName: "acq_artifacts_organization_id_fkey";
99
- columns: ["organization_id"];
100
- isOneToOne: false;
101
- referencedRelation: "organizations";
102
- referencedColumns: ["id"];
103
- }
104
- ];
105
- };
106
59
  acq_companies: {
107
60
  Row: {
108
61
  batch_id: string | null;
@@ -314,122 +267,6 @@ type Database = {
314
267
  }
315
268
  ];
316
269
  };
317
- acq_content: {
318
- Row: {
319
- body: string | null;
320
- created_at: string;
321
- id: string;
322
- organization_id: string;
323
- pillar: string;
324
- status: string;
325
- title: string;
326
- updated_at: string;
327
- };
328
- Insert: {
329
- body?: string | null;
330
- created_at?: string;
331
- id?: string;
332
- organization_id: string;
333
- pillar: string;
334
- status?: string;
335
- title: string;
336
- updated_at?: string;
337
- };
338
- Update: {
339
- body?: string | null;
340
- created_at?: string;
341
- id?: string;
342
- organization_id?: string;
343
- pillar?: string;
344
- status?: string;
345
- title?: string;
346
- updated_at?: string;
347
- };
348
- Relationships: [
349
- {
350
- foreignKeyName: "acq_content_organization_id_fkey";
351
- columns: ["organization_id"];
352
- isOneToOne: false;
353
- referencedRelation: "organizations";
354
- referencedColumns: ["id"];
355
- }
356
- ];
357
- };
358
- acq_content_distributions: {
359
- Row: {
360
- adapted_body: string | null;
361
- checklist: Json | null;
362
- content_id: string;
363
- created_at: string;
364
- format: string;
365
- id: string;
366
- media_urls: Json;
367
- metrics: Json;
368
- metrics_updated_at: string | null;
369
- organization_id: string;
370
- platform: string;
371
- platform_content: Json | null;
372
- platform_post_id: string | null;
373
- platform_url: string | null;
374
- published_at: string | null;
375
- status: string;
376
- updated_at: string;
377
- };
378
- Insert: {
379
- adapted_body?: string | null;
380
- checklist?: Json | null;
381
- content_id: string;
382
- created_at?: string;
383
- format: string;
384
- id?: string;
385
- media_urls?: Json;
386
- metrics?: Json;
387
- metrics_updated_at?: string | null;
388
- organization_id: string;
389
- platform: string;
390
- platform_content?: Json | null;
391
- platform_post_id?: string | null;
392
- platform_url?: string | null;
393
- published_at?: string | null;
394
- status?: string;
395
- updated_at?: string;
396
- };
397
- Update: {
398
- adapted_body?: string | null;
399
- checklist?: Json | null;
400
- content_id?: string;
401
- created_at?: string;
402
- format?: string;
403
- id?: string;
404
- media_urls?: Json;
405
- metrics?: Json;
406
- metrics_updated_at?: string | null;
407
- organization_id?: string;
408
- platform?: string;
409
- platform_content?: Json | null;
410
- platform_post_id?: string | null;
411
- platform_url?: string | null;
412
- published_at?: string | null;
413
- status?: string;
414
- updated_at?: string;
415
- };
416
- Relationships: [
417
- {
418
- foreignKeyName: "acq_content_distributions_content_id_fkey";
419
- columns: ["content_id"];
420
- isOneToOne: false;
421
- referencedRelation: "acq_content";
422
- referencedColumns: ["id"];
423
- },
424
- {
425
- foreignKeyName: "acq_content_distributions_organization_id_fkey";
426
- columns: ["organization_id"];
427
- isOneToOne: false;
428
- referencedRelation: "organizations";
429
- referencedColumns: ["id"];
430
- }
431
- ];
432
- };
433
270
  acq_deal_notes: {
434
271
  Row: {
435
272
  author_user_id: string | null;
@@ -459,6 +296,13 @@ type Database = {
459
296
  updated_at?: string;
460
297
  };
461
298
  Relationships: [
299
+ {
300
+ foreignKeyName: "acq_deal_notes_author_user_id_fkey";
301
+ columns: ["author_user_id"];
302
+ isOneToOne: false;
303
+ referencedRelation: "users";
304
+ referencedColumns: ["id"];
305
+ },
462
306
  {
463
307
  foreignKeyName: "acq_deal_notes_deal_id_fkey";
464
308
  columns: ["deal_id"];
@@ -522,6 +366,27 @@ type Database = {
522
366
  updated_at?: string;
523
367
  };
524
368
  Relationships: [
369
+ {
370
+ foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
371
+ columns: ["assignee_user_id"];
372
+ isOneToOne: false;
373
+ referencedRelation: "users";
374
+ referencedColumns: ["id"];
375
+ },
376
+ {
377
+ foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
378
+ columns: ["completed_by_user_id"];
379
+ isOneToOne: false;
380
+ referencedRelation: "users";
381
+ referencedColumns: ["id"];
382
+ },
383
+ {
384
+ foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
385
+ columns: ["created_by_user_id"];
386
+ isOneToOne: false;
387
+ referencedRelation: "users";
388
+ referencedColumns: ["id"];
389
+ },
525
390
  {
526
391
  foreignKeyName: "acq_deal_tasks_deal_id_fkey";
527
392
  columns: ["deal_id"];
@@ -678,6 +543,13 @@ type Database = {
678
543
  referencedRelation: "acq_contacts";
679
544
  referencedColumns: ["id"];
680
545
  },
546
+ {
547
+ foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
548
+ columns: ["discovery_submitted_by"];
549
+ isOneToOne: false;
550
+ referencedRelation: "users";
551
+ referencedColumns: ["id"];
552
+ },
681
553
  {
682
554
  foreignKeyName: "acq_deals_organization_id_fkey";
683
555
  columns: ["organization_id"];
@@ -685,6 +557,13 @@ type Database = {
685
557
  referencedRelation: "organizations";
686
558
  referencedColumns: ["id"];
687
559
  },
560
+ {
561
+ foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
562
+ columns: ["proposal_reviewed_by"];
563
+ isOneToOne: false;
564
+ referencedRelation: "users";
565
+ referencedColumns: ["id"];
566
+ },
688
567
  {
689
568
  foreignKeyName: "acq_deals_source_list_id_fkey";
690
569
  columns: ["source_list_id"];
@@ -738,6 +617,13 @@ type Database = {
738
617
  state_key?: string;
739
618
  };
740
619
  Relationships: [
620
+ {
621
+ foreignKeyName: "acq_list_companies_added_by_fkey";
622
+ columns: ["added_by"];
623
+ isOneToOne: false;
624
+ referencedRelation: "users";
625
+ referencedColumns: ["id"];
626
+ },
741
627
  {
742
628
  foreignKeyName: "acq_list_companies_company_id_fkey";
743
629
  columns: ["company_id"];
@@ -844,6 +730,13 @@ type Database = {
844
730
  state_key?: string;
845
731
  };
846
732
  Relationships: [
733
+ {
734
+ foreignKeyName: "acq_list_members_added_by_fkey";
735
+ columns: ["added_by"];
736
+ isOneToOne: false;
737
+ referencedRelation: "users";
738
+ referencedColumns: ["id"];
739
+ },
847
740
  {
848
741
  foreignKeyName: "acq_list_members_contact_id_fkey";
849
742
  columns: ["contact_id"];
@@ -1244,6 +1137,13 @@ type Database = {
1244
1137
  title?: string;
1245
1138
  };
1246
1139
  Relationships: [
1140
+ {
1141
+ foreignKeyName: "activities_actor_id_fkey";
1142
+ columns: ["actor_id"];
1143
+ isOneToOne: false;
1144
+ referencedRelation: "users";
1145
+ referencedColumns: ["id"];
1146
+ },
1247
1147
  {
1248
1148
  foreignKeyName: "activities_organization_id_fkey";
1249
1149
  columns: ["organization_id"];
@@ -1313,7 +1213,350 @@ type Database = {
1313
1213
  };
1314
1214
  Relationships: [
1315
1215
  {
1316
- foreignKeyName: "agent_access_grants_organization_id_fkey";
1216
+ foreignKeyName: "agent_access_grants_organization_id_fkey";
1217
+ columns: ["organization_id"];
1218
+ isOneToOne: false;
1219
+ referencedRelation: "organizations";
1220
+ referencedColumns: ["id"];
1221
+ }
1222
+ ];
1223
+ };
1224
+ api_keys: {
1225
+ Row: {
1226
+ created_at: string | null;
1227
+ id: string;
1228
+ key_hash: string;
1229
+ last_used_at: string | null;
1230
+ name: string;
1231
+ organization_id: string;
1232
+ };
1233
+ Insert: {
1234
+ created_at?: string | null;
1235
+ id?: string;
1236
+ key_hash: string;
1237
+ last_used_at?: string | null;
1238
+ name: string;
1239
+ organization_id: string;
1240
+ };
1241
+ Update: {
1242
+ created_at?: string | null;
1243
+ id?: string;
1244
+ key_hash?: string;
1245
+ last_used_at?: string | null;
1246
+ name?: string;
1247
+ organization_id?: string;
1248
+ };
1249
+ Relationships: [
1250
+ {
1251
+ foreignKeyName: "api_keys_organization_id_fkey";
1252
+ columns: ["organization_id"];
1253
+ isOneToOne: false;
1254
+ referencedRelation: "organizations";
1255
+ referencedColumns: ["id"];
1256
+ }
1257
+ ];
1258
+ };
1259
+ artifacts: {
1260
+ Row: {
1261
+ content: Json;
1262
+ created_at: string;
1263
+ created_by: string | null;
1264
+ id: string;
1265
+ is_active: boolean;
1266
+ kind: string;
1267
+ organization_id: string;
1268
+ owner_id: string | null;
1269
+ owner_kind: string;
1270
+ pipeline_id: string | null;
1271
+ source_execution_id: string | null;
1272
+ updated_at: string;
1273
+ version: number;
1274
+ };
1275
+ Insert: {
1276
+ content: Json;
1277
+ created_at?: string;
1278
+ created_by?: string | null;
1279
+ id?: string;
1280
+ is_active?: boolean;
1281
+ kind: string;
1282
+ organization_id: string;
1283
+ owner_id?: string | null;
1284
+ owner_kind: string;
1285
+ pipeline_id?: string | null;
1286
+ source_execution_id?: string | null;
1287
+ updated_at?: string;
1288
+ version?: number;
1289
+ };
1290
+ Update: {
1291
+ content?: Json;
1292
+ created_at?: string;
1293
+ created_by?: string | null;
1294
+ id?: string;
1295
+ is_active?: boolean;
1296
+ kind?: string;
1297
+ organization_id?: string;
1298
+ owner_id?: string | null;
1299
+ owner_kind?: string;
1300
+ pipeline_id?: string | null;
1301
+ source_execution_id?: string | null;
1302
+ updated_at?: string;
1303
+ version?: number;
1304
+ };
1305
+ Relationships: [
1306
+ {
1307
+ foreignKeyName: "artifacts_organization_id_fkey";
1308
+ columns: ["organization_id"];
1309
+ isOneToOne: false;
1310
+ referencedRelation: "organizations";
1311
+ referencedColumns: ["id"];
1312
+ }
1313
+ ];
1314
+ };
1315
+ clients: {
1316
+ Row: {
1317
+ converted_at: string | null;
1318
+ created_at: string;
1319
+ id: string;
1320
+ metadata: Json;
1321
+ name: string;
1322
+ organization_id: string;
1323
+ primary_company_id: string | null;
1324
+ primary_contact_id: string | null;
1325
+ source: string;
1326
+ source_deal_id: string | null;
1327
+ status: string;
1328
+ updated_at: string;
1329
+ };
1330
+ Insert: {
1331
+ converted_at?: string | null;
1332
+ created_at?: string;
1333
+ id?: string;
1334
+ metadata?: Json;
1335
+ name: string;
1336
+ organization_id: string;
1337
+ primary_company_id?: string | null;
1338
+ primary_contact_id?: string | null;
1339
+ source?: string;
1340
+ source_deal_id?: string | null;
1341
+ status?: string;
1342
+ updated_at?: string;
1343
+ };
1344
+ Update: {
1345
+ converted_at?: string | null;
1346
+ created_at?: string;
1347
+ id?: string;
1348
+ metadata?: Json;
1349
+ name?: string;
1350
+ organization_id?: string;
1351
+ primary_company_id?: string | null;
1352
+ primary_contact_id?: string | null;
1353
+ source?: string;
1354
+ source_deal_id?: string | null;
1355
+ status?: string;
1356
+ updated_at?: string;
1357
+ };
1358
+ Relationships: [
1359
+ {
1360
+ foreignKeyName: "clients_organization_id_fkey";
1361
+ columns: ["organization_id"];
1362
+ isOneToOne: false;
1363
+ referencedRelation: "organizations";
1364
+ referencedColumns: ["id"];
1365
+ },
1366
+ {
1367
+ foreignKeyName: "clients_primary_company_id_fkey";
1368
+ columns: ["primary_company_id"];
1369
+ isOneToOne: false;
1370
+ referencedRelation: "acq_companies";
1371
+ referencedColumns: ["id"];
1372
+ },
1373
+ {
1374
+ foreignKeyName: "clients_primary_contact_id_fkey";
1375
+ columns: ["primary_contact_id"];
1376
+ isOneToOne: false;
1377
+ referencedRelation: "acq_contacts";
1378
+ referencedColumns: ["id"];
1379
+ },
1380
+ {
1381
+ foreignKeyName: "clients_source_deal_id_fkey";
1382
+ columns: ["source_deal_id"];
1383
+ isOneToOne: false;
1384
+ referencedRelation: "acq_deals";
1385
+ referencedColumns: ["id"];
1386
+ }
1387
+ ];
1388
+ };
1389
+ command_queue: {
1390
+ Row: {
1391
+ action_payload: Json | null;
1392
+ actions: Json;
1393
+ completed_at: string | null;
1394
+ completed_by: string | null;
1395
+ context: Json;
1396
+ created_at: string;
1397
+ description: string | null;
1398
+ expires_at: string | null;
1399
+ human_checkpoint: string | null;
1400
+ id: string;
1401
+ idempotency_key: string | null;
1402
+ metadata: Json | null;
1403
+ organization_id: string;
1404
+ origin_execution_id: string;
1405
+ origin_resource_id: string;
1406
+ origin_resource_type: string;
1407
+ priority: number;
1408
+ selected_action: string | null;
1409
+ status: string;
1410
+ target_execution_id: string | null;
1411
+ target_resource_id: string | null;
1412
+ target_resource_type: string | null;
1413
+ };
1414
+ Insert: {
1415
+ action_payload?: Json | null;
1416
+ actions: Json;
1417
+ completed_at?: string | null;
1418
+ completed_by?: string | null;
1419
+ context: Json;
1420
+ created_at?: string;
1421
+ description?: string | null;
1422
+ expires_at?: string | null;
1423
+ human_checkpoint?: string | null;
1424
+ id?: string;
1425
+ idempotency_key?: string | null;
1426
+ metadata?: Json | null;
1427
+ organization_id: string;
1428
+ origin_execution_id: string;
1429
+ origin_resource_id: string;
1430
+ origin_resource_type: string;
1431
+ priority?: number;
1432
+ selected_action?: string | null;
1433
+ status?: string;
1434
+ target_execution_id?: string | null;
1435
+ target_resource_id?: string | null;
1436
+ target_resource_type?: string | null;
1437
+ };
1438
+ Update: {
1439
+ action_payload?: Json | null;
1440
+ actions?: Json;
1441
+ completed_at?: string | null;
1442
+ completed_by?: string | null;
1443
+ context?: Json;
1444
+ created_at?: string;
1445
+ description?: string | null;
1446
+ expires_at?: string | null;
1447
+ human_checkpoint?: string | null;
1448
+ id?: string;
1449
+ idempotency_key?: string | null;
1450
+ metadata?: Json | null;
1451
+ organization_id?: string;
1452
+ origin_execution_id?: string;
1453
+ origin_resource_id?: string;
1454
+ origin_resource_type?: string;
1455
+ priority?: number;
1456
+ selected_action?: string | null;
1457
+ status?: string;
1458
+ target_execution_id?: string | null;
1459
+ target_resource_id?: string | null;
1460
+ target_resource_type?: string | null;
1461
+ };
1462
+ Relationships: [
1463
+ {
1464
+ foreignKeyName: "command_queue_completed_by_fkey";
1465
+ columns: ["completed_by"];
1466
+ isOneToOne: false;
1467
+ referencedRelation: "users";
1468
+ referencedColumns: ["id"];
1469
+ },
1470
+ {
1471
+ foreignKeyName: "command_queue_organization_id_fkey";
1472
+ columns: ["organization_id"];
1473
+ isOneToOne: false;
1474
+ referencedRelation: "organizations";
1475
+ referencedColumns: ["id"];
1476
+ },
1477
+ {
1478
+ foreignKeyName: "command_queue_target_execution_id_fkey";
1479
+ columns: ["target_execution_id"];
1480
+ isOneToOne: false;
1481
+ referencedRelation: "execution_logs";
1482
+ referencedColumns: ["execution_id"];
1483
+ }
1484
+ ];
1485
+ };
1486
+ content_distributions: {
1487
+ Row: {
1488
+ adapted_body: string | null;
1489
+ checklist: Json | null;
1490
+ content_item_id: string;
1491
+ created_at: string;
1492
+ format: string;
1493
+ id: string;
1494
+ media_urls: Json;
1495
+ metrics: Json;
1496
+ metrics_updated_at: string | null;
1497
+ organization_id: string;
1498
+ platform: string;
1499
+ platform_content: Json | null;
1500
+ platform_post_id: string | null;
1501
+ platform_url: string | null;
1502
+ processing_state: Json;
1503
+ publish_method: string | null;
1504
+ published_at: string | null;
1505
+ status: string;
1506
+ updated_at: string;
1507
+ };
1508
+ Insert: {
1509
+ adapted_body?: string | null;
1510
+ checklist?: Json | null;
1511
+ content_item_id: string;
1512
+ created_at?: string;
1513
+ format: string;
1514
+ id?: string;
1515
+ media_urls?: Json;
1516
+ metrics?: Json;
1517
+ metrics_updated_at?: string | null;
1518
+ organization_id: string;
1519
+ platform: string;
1520
+ platform_content?: Json | null;
1521
+ platform_post_id?: string | null;
1522
+ platform_url?: string | null;
1523
+ processing_state?: Json;
1524
+ publish_method?: string | null;
1525
+ published_at?: string | null;
1526
+ status?: string;
1527
+ updated_at?: string;
1528
+ };
1529
+ Update: {
1530
+ adapted_body?: string | null;
1531
+ checklist?: Json | null;
1532
+ content_item_id?: string;
1533
+ created_at?: string;
1534
+ format?: string;
1535
+ id?: string;
1536
+ media_urls?: Json;
1537
+ metrics?: Json;
1538
+ metrics_updated_at?: string | null;
1539
+ organization_id?: string;
1540
+ platform?: string;
1541
+ platform_content?: Json | null;
1542
+ platform_post_id?: string | null;
1543
+ platform_url?: string | null;
1544
+ processing_state?: Json;
1545
+ publish_method?: string | null;
1546
+ published_at?: string | null;
1547
+ status?: string;
1548
+ updated_at?: string;
1549
+ };
1550
+ Relationships: [
1551
+ {
1552
+ foreignKeyName: "content_distributions_content_item_id_fkey";
1553
+ columns: ["content_item_id"];
1554
+ isOneToOne: false;
1555
+ referencedRelation: "content_items";
1556
+ referencedColumns: ["id"];
1557
+ },
1558
+ {
1559
+ foreignKeyName: "content_distributions_organization_id_fkey";
1317
1560
  columns: ["organization_id"];
1318
1561
  isOneToOne: false;
1319
1562
  referencedRelation: "organizations";
@@ -1321,209 +1564,227 @@ type Database = {
1321
1564
  }
1322
1565
  ];
1323
1566
  };
1324
- api_keys: {
1567
+ content_item_attempts: {
1325
1568
  Row: {
1326
- created_at: string | null;
1569
+ attempt_number: number;
1570
+ content_item_id: string;
1571
+ created_at: string;
1572
+ created_by: string | null;
1327
1573
  id: string;
1328
- key_hash: string;
1329
- last_used_at: string | null;
1330
- name: string;
1331
1574
  organization_id: string;
1575
+ payload: Json;
1576
+ source_execution_id: string | null;
1577
+ step_key: string | null;
1332
1578
  };
1333
1579
  Insert: {
1334
- created_at?: string | null;
1580
+ attempt_number: number;
1581
+ content_item_id: string;
1582
+ created_at?: string;
1583
+ created_by?: string | null;
1335
1584
  id?: string;
1336
- key_hash: string;
1337
- last_used_at?: string | null;
1338
- name: string;
1339
1585
  organization_id: string;
1586
+ payload?: Json;
1587
+ source_execution_id?: string | null;
1588
+ step_key?: string | null;
1340
1589
  };
1341
1590
  Update: {
1342
- created_at?: string | null;
1591
+ attempt_number?: number;
1592
+ content_item_id?: string;
1593
+ created_at?: string;
1594
+ created_by?: string | null;
1343
1595
  id?: string;
1344
- key_hash?: string;
1345
- last_used_at?: string | null;
1346
- name?: string;
1347
1596
  organization_id?: string;
1597
+ payload?: Json;
1598
+ source_execution_id?: string | null;
1599
+ step_key?: string | null;
1348
1600
  };
1349
1601
  Relationships: [
1350
1602
  {
1351
- foreignKeyName: "api_keys_organization_id_fkey";
1603
+ foreignKeyName: "content_item_attempts_content_item_id_fkey";
1604
+ columns: ["content_item_id"];
1605
+ isOneToOne: false;
1606
+ referencedRelation: "content_items";
1607
+ referencedColumns: ["id"];
1608
+ },
1609
+ {
1610
+ foreignKeyName: "content_item_attempts_created_by_fkey";
1611
+ columns: ["created_by"];
1612
+ isOneToOne: false;
1613
+ referencedRelation: "users";
1614
+ referencedColumns: ["id"];
1615
+ },
1616
+ {
1617
+ foreignKeyName: "content_item_attempts_organization_id_fkey";
1352
1618
  columns: ["organization_id"];
1353
1619
  isOneToOne: false;
1354
1620
  referencedRelation: "organizations";
1355
1621
  referencedColumns: ["id"];
1622
+ },
1623
+ {
1624
+ foreignKeyName: "content_item_attempts_source_execution_id_fkey";
1625
+ columns: ["source_execution_id"];
1626
+ isOneToOne: false;
1627
+ referencedRelation: "execution_logs";
1628
+ referencedColumns: ["execution_id"];
1356
1629
  }
1357
1630
  ];
1358
1631
  };
1359
- clients: {
1632
+ content_items: {
1360
1633
  Row: {
1361
- converted_at: string | null;
1634
+ body: string | null;
1635
+ client_id: string | null;
1362
1636
  created_at: string;
1637
+ created_by: string | null;
1363
1638
  id: string;
1364
- metadata: Json;
1365
- name: string;
1366
1639
  organization_id: string;
1367
- primary_company_id: string | null;
1368
- primary_contact_id: string | null;
1369
- source: string;
1370
- source_deal_id: string | null;
1640
+ payload: Json;
1641
+ pillar: string | null;
1642
+ pipeline_id: string | null;
1643
+ processing_state: Json;
1644
+ reject_reason: string | null;
1645
+ reviewed_at: string | null;
1646
+ reviewed_by: string | null;
1647
+ reviewer_feedback: string | null;
1648
+ source_asset_id: string | null;
1371
1649
  status: string;
1650
+ title: string;
1372
1651
  updated_at: string;
1652
+ updated_by: string | null;
1373
1653
  };
1374
1654
  Insert: {
1375
- converted_at?: string | null;
1655
+ body?: string | null;
1656
+ client_id?: string | null;
1376
1657
  created_at?: string;
1658
+ created_by?: string | null;
1377
1659
  id?: string;
1378
- metadata?: Json;
1379
- name: string;
1380
1660
  organization_id: string;
1381
- primary_company_id?: string | null;
1382
- primary_contact_id?: string | null;
1383
- source?: string;
1384
- source_deal_id?: string | null;
1661
+ payload?: Json;
1662
+ pillar?: string | null;
1663
+ pipeline_id?: string | null;
1664
+ processing_state?: Json;
1665
+ reject_reason?: string | null;
1666
+ reviewed_at?: string | null;
1667
+ reviewed_by?: string | null;
1668
+ reviewer_feedback?: string | null;
1669
+ source_asset_id?: string | null;
1385
1670
  status?: string;
1671
+ title: string;
1386
1672
  updated_at?: string;
1673
+ updated_by?: string | null;
1387
1674
  };
1388
1675
  Update: {
1389
- converted_at?: string | null;
1676
+ body?: string | null;
1677
+ client_id?: string | null;
1390
1678
  created_at?: string;
1679
+ created_by?: string | null;
1391
1680
  id?: string;
1392
- metadata?: Json;
1393
- name?: string;
1394
1681
  organization_id?: string;
1395
- primary_company_id?: string | null;
1396
- primary_contact_id?: string | null;
1397
- source?: string;
1398
- source_deal_id?: string | null;
1682
+ payload?: Json;
1683
+ pillar?: string | null;
1684
+ pipeline_id?: string | null;
1685
+ processing_state?: Json;
1686
+ reject_reason?: string | null;
1687
+ reviewed_at?: string | null;
1688
+ reviewed_by?: string | null;
1689
+ reviewer_feedback?: string | null;
1690
+ source_asset_id?: string | null;
1399
1691
  status?: string;
1692
+ title?: string;
1400
1693
  updated_at?: string;
1694
+ updated_by?: string | null;
1401
1695
  };
1402
1696
  Relationships: [
1403
1697
  {
1404
- foreignKeyName: "clients_organization_id_fkey";
1698
+ foreignKeyName: "content_items_client_id_fkey";
1699
+ columns: ["client_id"];
1700
+ isOneToOne: false;
1701
+ referencedRelation: "clients";
1702
+ referencedColumns: ["id"];
1703
+ },
1704
+ {
1705
+ foreignKeyName: "content_items_created_by_fkey";
1706
+ columns: ["created_by"];
1707
+ isOneToOne: false;
1708
+ referencedRelation: "users";
1709
+ referencedColumns: ["id"];
1710
+ },
1711
+ {
1712
+ foreignKeyName: "content_items_organization_id_fkey";
1405
1713
  columns: ["organization_id"];
1406
1714
  isOneToOne: false;
1407
1715
  referencedRelation: "organizations";
1408
1716
  referencedColumns: ["id"];
1409
1717
  },
1410
1718
  {
1411
- foreignKeyName: "clients_primary_company_id_fkey";
1412
- columns: ["primary_company_id"];
1719
+ foreignKeyName: "content_items_reviewed_by_fkey";
1720
+ columns: ["reviewed_by"];
1413
1721
  isOneToOne: false;
1414
- referencedRelation: "acq_companies";
1722
+ referencedRelation: "users";
1415
1723
  referencedColumns: ["id"];
1416
1724
  },
1417
1725
  {
1418
- foreignKeyName: "clients_primary_contact_id_fkey";
1419
- columns: ["primary_contact_id"];
1726
+ foreignKeyName: "content_items_source_asset_id_fkey";
1727
+ columns: ["source_asset_id"];
1420
1728
  isOneToOne: false;
1421
- referencedRelation: "acq_contacts";
1729
+ referencedRelation: "content_source_assets";
1422
1730
  referencedColumns: ["id"];
1423
1731
  },
1424
1732
  {
1425
- foreignKeyName: "clients_source_deal_id_fkey";
1426
- columns: ["source_deal_id"];
1733
+ foreignKeyName: "content_items_updated_by_fkey";
1734
+ columns: ["updated_by"];
1427
1735
  isOneToOne: false;
1428
- referencedRelation: "acq_deals";
1736
+ referencedRelation: "users";
1429
1737
  referencedColumns: ["id"];
1430
1738
  }
1431
1739
  ];
1432
1740
  };
1433
- command_queue: {
1741
+ content_source_assets: {
1434
1742
  Row: {
1435
- action_payload: Json | null;
1436
- actions: Json;
1437
- completed_at: string | null;
1438
- completed_by: string | null;
1439
- context: Json;
1440
1743
  created_at: string;
1441
- description: string | null;
1442
- expires_at: string | null;
1443
- human_checkpoint: string | null;
1744
+ duration_seconds: number | null;
1745
+ external_url: string | null;
1444
1746
  id: string;
1445
- idempotency_key: string | null;
1446
- metadata: Json | null;
1747
+ kind: string;
1748
+ metadata: Json;
1447
1749
  organization_id: string;
1448
- origin_execution_id: string;
1449
- origin_resource_id: string;
1450
- origin_resource_type: string;
1451
- priority: number;
1452
- selected_action: string | null;
1453
- status: string;
1454
- target_execution_id: string | null;
1455
- target_resource_id: string | null;
1456
- target_resource_type: string | null;
1750
+ processing_state: Json;
1751
+ storage_path: string | null;
1752
+ title: string;
1753
+ updated_at: string;
1457
1754
  };
1458
1755
  Insert: {
1459
- action_payload?: Json | null;
1460
- actions: Json;
1461
- completed_at?: string | null;
1462
- completed_by?: string | null;
1463
- context: Json;
1464
1756
  created_at?: string;
1465
- description?: string | null;
1466
- expires_at?: string | null;
1467
- human_checkpoint?: string | null;
1757
+ duration_seconds?: number | null;
1758
+ external_url?: string | null;
1468
1759
  id?: string;
1469
- idempotency_key?: string | null;
1470
- metadata?: Json | null;
1760
+ kind: string;
1761
+ metadata?: Json;
1471
1762
  organization_id: string;
1472
- origin_execution_id: string;
1473
- origin_resource_id: string;
1474
- origin_resource_type: string;
1475
- priority?: number;
1476
- selected_action?: string | null;
1477
- status?: string;
1478
- target_execution_id?: string | null;
1479
- target_resource_id?: string | null;
1480
- target_resource_type?: string | null;
1763
+ processing_state?: Json;
1764
+ storage_path?: string | null;
1765
+ title: string;
1766
+ updated_at?: string;
1481
1767
  };
1482
1768
  Update: {
1483
- action_payload?: Json | null;
1484
- actions?: Json;
1485
- completed_at?: string | null;
1486
- completed_by?: string | null;
1487
- context?: Json;
1488
1769
  created_at?: string;
1489
- description?: string | null;
1490
- expires_at?: string | null;
1491
- human_checkpoint?: string | null;
1770
+ duration_seconds?: number | null;
1771
+ external_url?: string | null;
1492
1772
  id?: string;
1493
- idempotency_key?: string | null;
1494
- metadata?: Json | null;
1773
+ kind?: string;
1774
+ metadata?: Json;
1495
1775
  organization_id?: string;
1496
- origin_execution_id?: string;
1497
- origin_resource_id?: string;
1498
- origin_resource_type?: string;
1499
- priority?: number;
1500
- selected_action?: string | null;
1501
- status?: string;
1502
- target_execution_id?: string | null;
1503
- target_resource_id?: string | null;
1504
- target_resource_type?: string | null;
1776
+ processing_state?: Json;
1777
+ storage_path?: string | null;
1778
+ title?: string;
1779
+ updated_at?: string;
1505
1780
  };
1506
1781
  Relationships: [
1507
1782
  {
1508
- foreignKeyName: "command_queue_completed_by_fkey";
1509
- columns: ["completed_by"];
1510
- isOneToOne: false;
1511
- referencedRelation: "users";
1512
- referencedColumns: ["id"];
1513
- },
1514
- {
1515
- foreignKeyName: "command_queue_organization_id_fkey";
1783
+ foreignKeyName: "content_source_assets_organization_id_fkey";
1516
1784
  columns: ["organization_id"];
1517
1785
  isOneToOne: false;
1518
1786
  referencedRelation: "organizations";
1519
1787
  referencedColumns: ["id"];
1520
- },
1521
- {
1522
- foreignKeyName: "command_queue_target_execution_id_fkey";
1523
- columns: ["target_execution_id"];
1524
- isOneToOne: false;
1525
- referencedRelation: "execution_logs";
1526
- referencedColumns: ["execution_id"];
1527
1788
  }
1528
1789
  ];
1529
1790
  };
@@ -3143,6 +3404,33 @@ type Database = {
3143
3404
  };
3144
3405
  Returns: boolean;
3145
3406
  };
3407
+ create_artifact_version: {
3408
+ Args: {
3409
+ p_content: Json;
3410
+ p_created_by?: string;
3411
+ p_kind: string;
3412
+ p_organization_id: string;
3413
+ p_owner_id?: string;
3414
+ p_owner_kind: string;
3415
+ p_pipeline_id?: string;
3416
+ p_source_execution_id?: string;
3417
+ };
3418
+ Returns: {
3419
+ content: Json;
3420
+ created_at: string;
3421
+ created_by: string | null;
3422
+ id: string;
3423
+ is_active: boolean;
3424
+ kind: string;
3425
+ organization_id: string;
3426
+ owner_id: string | null;
3427
+ owner_kind: string;
3428
+ pipeline_id: string | null;
3429
+ source_execution_id: string | null;
3430
+ updated_at: string;
3431
+ version: number;
3432
+ };
3433
+ };
3146
3434
  current_user_is_platform_admin: {
3147
3435
  Args: Record<PropertyKey, never>;
3148
3436
  Returns: boolean;
@@ -3249,6 +3537,12 @@ type Database = {
3249
3537
  Args: Record<PropertyKey, never>;
3250
3538
  Returns: Json;
3251
3539
  };
3540
+ purge_stale_test_data: {
3541
+ Args: {
3542
+ p_max_age?: unknown;
3543
+ };
3544
+ Returns: Json;
3545
+ };
3252
3546
  recompute_all_memberships: {
3253
3547
  Args: Record<PropertyKey, never>;
3254
3548
  Returns: undefined;
@@ -3679,7 +3973,6 @@ interface SystemEntry {
3679
3973
  path: string;
3680
3974
  surfaces: string[];
3681
3975
  icon?: string;
3682
- order?: number;
3683
3976
  };
3684
3977
  lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
3685
3978
  responsibleRoleId?: string;
@@ -3689,17 +3982,12 @@ interface SystemEntry {
3689
3982
  intent: 'exposes' | 'consumes';
3690
3983
  invocation?: unknown;
3691
3984
  }[];
3692
- policies?: string[];
3693
3985
  drivesGoals?: string[];
3694
3986
  apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
3695
- /** @deprecated Use lifecycle. Accepted for one publish cycle. */
3696
- status?: 'active' | 'deprecated' | 'archived';
3697
3987
  path?: string;
3698
3988
  icon?: string;
3699
3989
  uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
3700
3990
  enabled?: boolean;
3701
- devOnly?: boolean;
3702
- requiresAdmin?: boolean;
3703
3991
  order: number;
3704
3992
  config?: Record<string, JsonValue>;
3705
3993
  ontology?: OntologyScope;
@@ -3751,6 +4039,11 @@ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
3751
4039
  * - `registerBuiltInReadinessProfile` — a profile id (e.g. `sales.lead-gen.api`)
3752
4040
  * maps to structural validation logic plus an optional model-preparation
3753
4041
  * hook run before ontology compilation (e.g. injecting a derived catalog).
4042
+ * This is the ONE readiness-profile registry (`_builtInProfileValidators`
4043
+ * below) — `../domains/systems`'s `isBuiltInReadinessProfile` /
4044
+ * `lookupReadinessProfile` read it directly via `getBuiltInReadinessProfile`
4045
+ * rather than mirroring registrations into a second map, so a profile id
4046
+ * can never read as built-in without an actual registered validator.
3754
4047
  * - `registerReadinessInterfaceMarker` — a `(systemPath, interfaceKey)` pair
3755
4048
  * maps to a synthesized interface marker for interfaces that are not
3756
4049
  * authored on `system.apiInterface` (e.g. the lead-gen/CRM handoff bridge,
@@ -3758,8 +4051,8 @@ type SidebarNode = SidebarSurfaceNode | SidebarGroupNode;
3758
4051
  *
3759
4052
  * `business/acquisition/ontology-validation.ts` calls both at module load to
3760
4053
  * register its three built-in profiles. Both registries are module-level
3761
- * mutable maps with no reset function, matching the existing
3762
- * `domains/systems.ts` profile registry's shape.
4054
+ * mutable maps with no reset function. Reachable by a tenant via the
4055
+ * `./organization-model/readiness` subpath (see `./index`).
3763
4056
  */
3764
4057
 
3765
4058
  type SystemInterfaceReadinessIssueFamily = 'SYSTEM_INTERFACE_MISSING' | 'SYSTEM_INTERFACE_DISABLED' | 'SYSTEM_INTERFACE_INVALID' | 'SYSTEM_INTERFACE_NOT_READY' | 'SYSTEM_BRIDGE_NOT_READY'
@@ -3832,10 +4125,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
3832
4125
  version: z.ZodDefault<z.ZodLiteral<1>>;
3833
4126
  lastModified: z.ZodString;
3834
4127
  }, z.core.$strip>>;
3835
- policies: z.ZodOptional<z.ZodObject<{
3836
- version: z.ZodDefault<z.ZodLiteral<1>>;
3837
- lastModified: z.ZodString;
3838
- }, z.core.$strip>>;
3839
4128
  knowledge: z.ZodOptional<z.ZodObject<{
3840
4129
  version: z.ZodDefault<z.ZodLiteral<1>>;
3841
4130
  lastModified: z.ZodString;
@@ -3893,10 +4182,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
3893
4182
  version: 1;
3894
4183
  lastModified: string;
3895
4184
  };
3896
- policies: {
3897
- version: 1;
3898
- lastModified: string;
3899
- };
3900
4185
  knowledge: {
3901
4186
  version: 1;
3902
4187
  lastModified: string;
@@ -3954,10 +4239,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
3954
4239
  version: 1;
3955
4240
  lastModified: string;
3956
4241
  } | undefined;
3957
- policies?: {
3958
- version: 1;
3959
- lastModified: string;
3960
- } | undefined;
3961
4242
  knowledge?: {
3962
4243
  version: 1;
3963
4244
  lastModified: string;
@@ -4551,9 +4832,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
4551
4832
  }, z.core.$strip>, z.ZodObject<{
4552
4833
  kind: z.ZodLiteral<"ontology">;
4553
4834
  id: z.ZodString;
4554
- }, z.core.$strip>, z.ZodObject<{
4555
- kind: z.ZodLiteral<"policy">;
4556
- id: z.ZodString;
4557
4835
  }, z.core.$strip>, z.ZodObject<{
4558
4836
  kind: z.ZodLiteral<"role">;
4559
4837
  id: z.ZodString;
@@ -4581,9 +4859,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
4581
4859
  }, z.core.$strip>, z.ZodObject<{
4582
4860
  kind: z.ZodLiteral<"ontology">;
4583
4861
  id: z.ZodString;
4584
- }, z.core.$strip>, z.ZodObject<{
4585
- kind: z.ZodLiteral<"policy">;
4586
- id: z.ZodString;
4587
4862
  }, z.core.$strip>, z.ZodObject<{
4588
4863
  kind: z.ZodLiteral<"role">;
4589
4864
  id: z.ZodString;
@@ -4665,66 +4940,6 @@ declare const OrganizationModelSchema: z.ZodObject<{
4665
4940
  label: z.ZodOptional<z.ZodString>;
4666
4941
  }, z.core.$strip>>>;
4667
4942
  }, z.core.$strip>>>>;
4668
- policies: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4669
- id: z.ZodString;
4670
- order: z.ZodNumber;
4671
- label: z.ZodString;
4672
- description: z.ZodOptional<z.ZodString>;
4673
- trigger: z.ZodDiscriminatedUnion<[z.ZodObject<{
4674
- kind: z.ZodLiteral<"event">;
4675
- eventId: z.ZodString;
4676
- }, z.core.$strip>, z.ZodObject<{
4677
- kind: z.ZodLiteral<"action-invocation">;
4678
- actionId: z.ZodString;
4679
- }, z.core.$strip>, z.ZodObject<{
4680
- kind: z.ZodLiteral<"schedule">;
4681
- cron: z.ZodString;
4682
- }, z.core.$strip>, z.ZodObject<{
4683
- kind: z.ZodLiteral<"manual">;
4684
- }, z.core.$strip>], "kind">;
4685
- predicate: z.ZodDefault<z.ZodDiscriminatedUnion<[z.ZodObject<{
4686
- kind: z.ZodLiteral<"always">;
4687
- }, z.core.$strip>, z.ZodObject<{
4688
- kind: z.ZodLiteral<"expression">;
4689
- expression: z.ZodString;
4690
- }, z.core.$strip>, z.ZodObject<{
4691
- kind: z.ZodLiteral<"threshold">;
4692
- metric: z.ZodString;
4693
- operator: z.ZodEnum<{
4694
- lt: "lt";
4695
- lte: "lte";
4696
- eq: "eq";
4697
- gte: "gte";
4698
- gt: "gt";
4699
- }>;
4700
- value: z.ZodNumber;
4701
- }, z.core.$strip>], "kind">>;
4702
- actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
4703
- kind: z.ZodLiteral<"require-approval">;
4704
- roleId: z.ZodOptional<z.ZodString>;
4705
- }, z.core.$strip>, z.ZodObject<{
4706
- kind: z.ZodLiteral<"invoke-action">;
4707
- actionId: z.ZodString;
4708
- }, z.core.$strip>, z.ZodObject<{
4709
- kind: z.ZodLiteral<"notify-role">;
4710
- roleId: z.ZodString;
4711
- }, z.core.$strip>, z.ZodObject<{
4712
- kind: z.ZodLiteral<"block">;
4713
- }, z.core.$strip>], "kind">>;
4714
- appliesTo: z.ZodDefault<z.ZodObject<{
4715
- systemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4716
- actionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4717
- resourceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4718
- roleIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
4719
- }, z.core.$strip>>;
4720
- lifecycle: z.ZodDefault<z.ZodEnum<{
4721
- active: "active";
4722
- deprecated: "deprecated";
4723
- draft: "draft";
4724
- beta: "beta";
4725
- archived: "archived";
4726
- }>>;
4727
- }, z.core.$strip>>>>;
4728
4943
  knowledge: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4729
4944
  id: z.ZodString;
4730
4945
  kind: z.ZodEnum<{