@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.
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +3 -3
- package/dist/app/index.d.ts +575 -370
- package/dist/app/index.js +17 -23
- package/dist/auth/index.css +149 -149
- package/dist/auth/index.d.ts +5 -0
- package/dist/auth/index.js +11 -13
- package/dist/charts/index.css +208 -208
- package/dist/charts/index.js +11 -13
- package/dist/{chunk-M535KHLW.js → chunk-26BTE3Z4.js} +1 -1
- package/dist/chunk-3KMDHCAR.js +52 -0
- package/dist/chunk-3MEXPLWT.js +265 -0
- package/dist/chunk-4JHLS234.js +39 -0
- package/dist/chunk-6PZFOHJK.js +1764 -0
- package/dist/chunk-7WJEPTE7.js +194 -0
- package/dist/chunk-AH52XQB7.js +1 -0
- package/dist/{chunk-UFTM5SZZ.js → chunk-AKANHRQ5.js} +9 -3
- package/dist/chunk-BZZCNLT6.js +12 -0
- package/dist/chunk-C75XWBYZ.js +383 -0
- package/dist/chunk-DLR4SDZW.js +51 -0
- package/dist/{chunk-4OEVLV66.js → chunk-FLECOYUS.js} +113 -148
- package/dist/chunk-IRV6KJPV.js +425 -0
- package/dist/chunk-IT7GTJCB.js +10 -0
- package/dist/chunk-LGKLC5MG.js +44 -0
- package/dist/chunk-MFLM7BVC.js +85 -0
- package/dist/chunk-MRVGQLWN.js +1595 -0
- package/dist/{chunk-4DV4ECMG.js → chunk-N7U24M2J.js} +4 -0
- package/dist/{chunk-I7BZVVVU.js → chunk-NM4A63KJ.js} +104 -415
- package/dist/chunk-NU3NBXHP.js +1194 -0
- package/dist/chunk-PDHTXPSF.js +12 -0
- package/dist/chunk-RW64UJWT.js +1934 -0
- package/dist/{chunk-JFBZ6XDW.js → chunk-SNZDFCOQ.js} +3 -49
- package/dist/chunk-TUMSNGTX.js +35 -0
- package/dist/chunk-UD657ICS.js +589 -0
- package/dist/{chunk-XNW3O6QW.js → chunk-VDX6DL7Z.js} +1 -1
- package/dist/chunk-WXHAHKKI.js +16411 -0
- package/dist/chunk-XAZR3T6Y.js +2162 -0
- package/dist/chunk-XQ3ILKYN.js +37 -0
- package/dist/chunk-YCRINA2D.js +67 -0
- package/dist/chunk-YGCMMOY4.js +1484 -0
- package/dist/chunk-YNRYIXUT.js +10945 -0
- package/dist/chunk-ZD6LM53O.js +4528 -0
- package/dist/chunk-ZPTEGGKU.js +631 -0
- package/dist/components/chat/index.js +2 -1
- package/dist/components/index.css +208 -208
- package/dist/components/index.d.ts +1634 -264
- package/dist/components/index.js +2774 -14
- package/dist/components/navigation/index.css +149 -149
- package/dist/components/navigation/index.js +12 -13
- package/dist/features/auth/index.css +149 -149
- package/dist/features/auth/index.d.ts +457 -167
- package/dist/features/auth/index.js +13 -14
- package/dist/features/clients/index.css +208 -208
- package/dist/features/clients/index.d.ts +39 -1
- package/dist/features/clients/index.js +16 -13
- package/dist/features/content/index.d.ts +1788 -0
- package/dist/features/content/index.js +2180 -0
- package/dist/features/crm/index.d.ts +1802 -231
- package/dist/features/crm/index.js +16 -13
- package/dist/features/dashboard/index.d.ts +1 -8
- package/dist/features/dashboard/index.js +17 -13
- package/dist/features/delivery/index.d.ts +457 -167
- package/dist/features/delivery/index.js +16 -13
- package/dist/features/knowledge/index.css +149 -149
- package/dist/features/knowledge/index.js +11 -13
- package/dist/features/lead-gen/index.d.ts +53 -104
- package/dist/features/lead-gen/index.js +17 -13
- package/dist/features/monitoring/index.js +16 -13
- package/dist/features/monitoring/requests/index.js +15 -20
- package/dist/features/operations/index.d.ts +1 -86
- package/dist/features/operations/index.js +22 -12
- package/dist/features/public-agent-chat/index.js +2 -1
- package/dist/features/seo/index.js +2 -1
- package/dist/features/settings/index.d.ts +457 -167
- package/dist/features/settings/index.js +15 -13
- package/dist/hooks/access/index.css +149 -149
- package/dist/hooks/access/index.d.ts +5 -0
- package/dist/hooks/access/index.js +11 -13
- package/dist/hooks/delivery/index.d.ts +457 -167
- package/dist/hooks/delivery/index.js +2 -23
- package/dist/hooks/index.d.ts +2203 -244
- package/dist/hooks/index.js +11 -13
- package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +1 -8
- package/dist/hooks/published.d.ts +2203 -244
- package/dist/hooks/published.js +11 -13
- package/dist/initialization/index.d.ts +465 -169
- package/dist/knowledge/index.css +149 -149
- package/dist/knowledge/index.d.ts +5 -90
- package/dist/knowledge/index.js +3215 -3203
- package/dist/{knowledge-search-index-6EZNBNSR.js → knowledge-search-index-LP2WVSQX.js} +689 -695
- package/dist/layout/index.css +149 -149
- package/dist/layout/index.js +15 -13
- package/dist/organization/index.d.ts +10 -4
- package/dist/organization/index.js +1 -21
- package/dist/profile/index.d.ts +457 -167
- package/dist/provider/index.d.ts +576 -372
- package/dist/provider/index.js +11 -13
- package/dist/provider/published.css +149 -149
- package/dist/provider/published.d.ts +576 -372
- package/dist/provider/published.js +11 -13
- package/dist/supabase/index.d.ts +906 -347
- package/dist/test-utils/index.d.ts +15 -2
- package/dist/test-utils/index.js +41 -12
- package/dist/test-utils/setup-integration.js +1 -1
- package/dist/test-utils/setup.js +1 -1
- package/dist/theme/index.js +3 -2
- package/dist/theme/presets/index.js +1 -1
- package/dist/typeform/index.js +2049 -1
- package/dist/types/index.d.ts +477 -177
- package/dist/utils/index.d.ts +1 -8
- package/dist/utils/index.js +1 -1
- package/dist/vite/index.js +2 -2
- package/dist/vite-plugin-knowledge/index.js +1 -1
- package/package.json +7 -3
- package/src/features/README.md +28 -28
- package/dist/chunk-5TERYXOO.js +0 -51390
- package/dist/chunk-AUDNF2Q7.js +0 -2050
- package/dist/index.d.ts +0 -17888
- package/dist/index.js +0 -30
- package/dist/{chunk-GMXGDO3I.js → chunk-MISHPEJX.js} +1 -1
- package/dist/{chunk-RBGVNPA6.js → chunk-XQBURFKM.js} +0 -0
- package/dist/{index.css → features/content/index.css} +149 -149
package/dist/app/index.d.ts
CHANGED
|
@@ -15,53 +15,6 @@ type Json = string | number | boolean | null | {
|
|
|
15
15
|
type Database = {
|
|
16
16
|
public: {
|
|
17
17
|
Tables: {
|
|
18
|
-
acq_artifacts: {
|
|
19
|
-
Row: {
|
|
20
|
-
content: Json;
|
|
21
|
-
created_at: string;
|
|
22
|
-
created_by: string | null;
|
|
23
|
-
id: string;
|
|
24
|
-
kind: string;
|
|
25
|
-
organization_id: string;
|
|
26
|
-
owner_id: string;
|
|
27
|
-
owner_kind: string;
|
|
28
|
-
source_execution_id: string | null;
|
|
29
|
-
version: number;
|
|
30
|
-
};
|
|
31
|
-
Insert: {
|
|
32
|
-
content: Json;
|
|
33
|
-
created_at?: string;
|
|
34
|
-
created_by?: string | null;
|
|
35
|
-
id?: string;
|
|
36
|
-
kind: string;
|
|
37
|
-
organization_id: string;
|
|
38
|
-
owner_id: string;
|
|
39
|
-
owner_kind: string;
|
|
40
|
-
source_execution_id?: string | null;
|
|
41
|
-
version?: number;
|
|
42
|
-
};
|
|
43
|
-
Update: {
|
|
44
|
-
content?: Json;
|
|
45
|
-
created_at?: string;
|
|
46
|
-
created_by?: string | null;
|
|
47
|
-
id?: string;
|
|
48
|
-
kind?: string;
|
|
49
|
-
organization_id?: string;
|
|
50
|
-
owner_id?: string;
|
|
51
|
-
owner_kind?: string;
|
|
52
|
-
source_execution_id?: string | null;
|
|
53
|
-
version?: number;
|
|
54
|
-
};
|
|
55
|
-
Relationships: [
|
|
56
|
-
{
|
|
57
|
-
foreignKeyName: "acq_artifacts_organization_id_fkey";
|
|
58
|
-
columns: ["organization_id"];
|
|
59
|
-
isOneToOne: false;
|
|
60
|
-
referencedRelation: "organizations";
|
|
61
|
-
referencedColumns: ["id"];
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
};
|
|
65
18
|
acq_companies: {
|
|
66
19
|
Row: {
|
|
67
20
|
batch_id: string | null;
|
|
@@ -273,122 +226,6 @@ type Database = {
|
|
|
273
226
|
}
|
|
274
227
|
];
|
|
275
228
|
};
|
|
276
|
-
acq_content: {
|
|
277
|
-
Row: {
|
|
278
|
-
body: string | null;
|
|
279
|
-
created_at: string;
|
|
280
|
-
id: string;
|
|
281
|
-
organization_id: string;
|
|
282
|
-
pillar: string;
|
|
283
|
-
status: string;
|
|
284
|
-
title: string;
|
|
285
|
-
updated_at: string;
|
|
286
|
-
};
|
|
287
|
-
Insert: {
|
|
288
|
-
body?: string | null;
|
|
289
|
-
created_at?: string;
|
|
290
|
-
id?: string;
|
|
291
|
-
organization_id: string;
|
|
292
|
-
pillar: string;
|
|
293
|
-
status?: string;
|
|
294
|
-
title: string;
|
|
295
|
-
updated_at?: string;
|
|
296
|
-
};
|
|
297
|
-
Update: {
|
|
298
|
-
body?: string | null;
|
|
299
|
-
created_at?: string;
|
|
300
|
-
id?: string;
|
|
301
|
-
organization_id?: string;
|
|
302
|
-
pillar?: string;
|
|
303
|
-
status?: string;
|
|
304
|
-
title?: string;
|
|
305
|
-
updated_at?: string;
|
|
306
|
-
};
|
|
307
|
-
Relationships: [
|
|
308
|
-
{
|
|
309
|
-
foreignKeyName: "acq_content_organization_id_fkey";
|
|
310
|
-
columns: ["organization_id"];
|
|
311
|
-
isOneToOne: false;
|
|
312
|
-
referencedRelation: "organizations";
|
|
313
|
-
referencedColumns: ["id"];
|
|
314
|
-
}
|
|
315
|
-
];
|
|
316
|
-
};
|
|
317
|
-
acq_content_distributions: {
|
|
318
|
-
Row: {
|
|
319
|
-
adapted_body: string | null;
|
|
320
|
-
checklist: Json | null;
|
|
321
|
-
content_id: string;
|
|
322
|
-
created_at: string;
|
|
323
|
-
format: string;
|
|
324
|
-
id: string;
|
|
325
|
-
media_urls: Json;
|
|
326
|
-
metrics: Json;
|
|
327
|
-
metrics_updated_at: string | null;
|
|
328
|
-
organization_id: string;
|
|
329
|
-
platform: string;
|
|
330
|
-
platform_content: Json | null;
|
|
331
|
-
platform_post_id: string | null;
|
|
332
|
-
platform_url: string | null;
|
|
333
|
-
published_at: string | null;
|
|
334
|
-
status: string;
|
|
335
|
-
updated_at: string;
|
|
336
|
-
};
|
|
337
|
-
Insert: {
|
|
338
|
-
adapted_body?: string | null;
|
|
339
|
-
checklist?: Json | null;
|
|
340
|
-
content_id: string;
|
|
341
|
-
created_at?: string;
|
|
342
|
-
format: string;
|
|
343
|
-
id?: string;
|
|
344
|
-
media_urls?: Json;
|
|
345
|
-
metrics?: Json;
|
|
346
|
-
metrics_updated_at?: string | null;
|
|
347
|
-
organization_id: string;
|
|
348
|
-
platform: string;
|
|
349
|
-
platform_content?: Json | null;
|
|
350
|
-
platform_post_id?: string | null;
|
|
351
|
-
platform_url?: string | null;
|
|
352
|
-
published_at?: string | null;
|
|
353
|
-
status?: string;
|
|
354
|
-
updated_at?: string;
|
|
355
|
-
};
|
|
356
|
-
Update: {
|
|
357
|
-
adapted_body?: string | null;
|
|
358
|
-
checklist?: Json | null;
|
|
359
|
-
content_id?: string;
|
|
360
|
-
created_at?: string;
|
|
361
|
-
format?: string;
|
|
362
|
-
id?: string;
|
|
363
|
-
media_urls?: Json;
|
|
364
|
-
metrics?: Json;
|
|
365
|
-
metrics_updated_at?: string | null;
|
|
366
|
-
organization_id?: string;
|
|
367
|
-
platform?: string;
|
|
368
|
-
platform_content?: Json | null;
|
|
369
|
-
platform_post_id?: string | null;
|
|
370
|
-
platform_url?: string | null;
|
|
371
|
-
published_at?: string | null;
|
|
372
|
-
status?: string;
|
|
373
|
-
updated_at?: string;
|
|
374
|
-
};
|
|
375
|
-
Relationships: [
|
|
376
|
-
{
|
|
377
|
-
foreignKeyName: "acq_content_distributions_content_id_fkey";
|
|
378
|
-
columns: ["content_id"];
|
|
379
|
-
isOneToOne: false;
|
|
380
|
-
referencedRelation: "acq_content";
|
|
381
|
-
referencedColumns: ["id"];
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
foreignKeyName: "acq_content_distributions_organization_id_fkey";
|
|
385
|
-
columns: ["organization_id"];
|
|
386
|
-
isOneToOne: false;
|
|
387
|
-
referencedRelation: "organizations";
|
|
388
|
-
referencedColumns: ["id"];
|
|
389
|
-
}
|
|
390
|
-
];
|
|
391
|
-
};
|
|
392
229
|
acq_deal_notes: {
|
|
393
230
|
Row: {
|
|
394
231
|
author_user_id: string | null;
|
|
@@ -418,6 +255,13 @@ type Database = {
|
|
|
418
255
|
updated_at?: string;
|
|
419
256
|
};
|
|
420
257
|
Relationships: [
|
|
258
|
+
{
|
|
259
|
+
foreignKeyName: "acq_deal_notes_author_user_id_fkey";
|
|
260
|
+
columns: ["author_user_id"];
|
|
261
|
+
isOneToOne: false;
|
|
262
|
+
referencedRelation: "users";
|
|
263
|
+
referencedColumns: ["id"];
|
|
264
|
+
},
|
|
421
265
|
{
|
|
422
266
|
foreignKeyName: "acq_deal_notes_deal_id_fkey";
|
|
423
267
|
columns: ["deal_id"];
|
|
@@ -481,6 +325,27 @@ type Database = {
|
|
|
481
325
|
updated_at?: string;
|
|
482
326
|
};
|
|
483
327
|
Relationships: [
|
|
328
|
+
{
|
|
329
|
+
foreignKeyName: "acq_deal_tasks_assignee_user_id_fkey";
|
|
330
|
+
columns: ["assignee_user_id"];
|
|
331
|
+
isOneToOne: false;
|
|
332
|
+
referencedRelation: "users";
|
|
333
|
+
referencedColumns: ["id"];
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
foreignKeyName: "acq_deal_tasks_completed_by_user_id_fkey";
|
|
337
|
+
columns: ["completed_by_user_id"];
|
|
338
|
+
isOneToOne: false;
|
|
339
|
+
referencedRelation: "users";
|
|
340
|
+
referencedColumns: ["id"];
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
foreignKeyName: "acq_deal_tasks_created_by_user_id_fkey";
|
|
344
|
+
columns: ["created_by_user_id"];
|
|
345
|
+
isOneToOne: false;
|
|
346
|
+
referencedRelation: "users";
|
|
347
|
+
referencedColumns: ["id"];
|
|
348
|
+
},
|
|
484
349
|
{
|
|
485
350
|
foreignKeyName: "acq_deal_tasks_deal_id_fkey";
|
|
486
351
|
columns: ["deal_id"];
|
|
@@ -637,6 +502,13 @@ type Database = {
|
|
|
637
502
|
referencedRelation: "acq_contacts";
|
|
638
503
|
referencedColumns: ["id"];
|
|
639
504
|
},
|
|
505
|
+
{
|
|
506
|
+
foreignKeyName: "acq_deals_discovery_submitted_by_fkey";
|
|
507
|
+
columns: ["discovery_submitted_by"];
|
|
508
|
+
isOneToOne: false;
|
|
509
|
+
referencedRelation: "users";
|
|
510
|
+
referencedColumns: ["id"];
|
|
511
|
+
},
|
|
640
512
|
{
|
|
641
513
|
foreignKeyName: "acq_deals_organization_id_fkey";
|
|
642
514
|
columns: ["organization_id"];
|
|
@@ -644,6 +516,13 @@ type Database = {
|
|
|
644
516
|
referencedRelation: "organizations";
|
|
645
517
|
referencedColumns: ["id"];
|
|
646
518
|
},
|
|
519
|
+
{
|
|
520
|
+
foreignKeyName: "acq_deals_proposal_reviewed_by_fkey";
|
|
521
|
+
columns: ["proposal_reviewed_by"];
|
|
522
|
+
isOneToOne: false;
|
|
523
|
+
referencedRelation: "users";
|
|
524
|
+
referencedColumns: ["id"];
|
|
525
|
+
},
|
|
647
526
|
{
|
|
648
527
|
foreignKeyName: "acq_deals_source_list_id_fkey";
|
|
649
528
|
columns: ["source_list_id"];
|
|
@@ -697,6 +576,13 @@ type Database = {
|
|
|
697
576
|
state_key?: string;
|
|
698
577
|
};
|
|
699
578
|
Relationships: [
|
|
579
|
+
{
|
|
580
|
+
foreignKeyName: "acq_list_companies_added_by_fkey";
|
|
581
|
+
columns: ["added_by"];
|
|
582
|
+
isOneToOne: false;
|
|
583
|
+
referencedRelation: "users";
|
|
584
|
+
referencedColumns: ["id"];
|
|
585
|
+
},
|
|
700
586
|
{
|
|
701
587
|
foreignKeyName: "acq_list_companies_company_id_fkey";
|
|
702
588
|
columns: ["company_id"];
|
|
@@ -803,6 +689,13 @@ type Database = {
|
|
|
803
689
|
state_key?: string;
|
|
804
690
|
};
|
|
805
691
|
Relationships: [
|
|
692
|
+
{
|
|
693
|
+
foreignKeyName: "acq_list_members_added_by_fkey";
|
|
694
|
+
columns: ["added_by"];
|
|
695
|
+
isOneToOne: false;
|
|
696
|
+
referencedRelation: "users";
|
|
697
|
+
referencedColumns: ["id"];
|
|
698
|
+
},
|
|
806
699
|
{
|
|
807
700
|
foreignKeyName: "acq_list_members_contact_id_fkey";
|
|
808
701
|
columns: ["contact_id"];
|
|
@@ -1203,6 +1096,13 @@ type Database = {
|
|
|
1203
1096
|
title?: string;
|
|
1204
1097
|
};
|
|
1205
1098
|
Relationships: [
|
|
1099
|
+
{
|
|
1100
|
+
foreignKeyName: "activities_actor_id_fkey";
|
|
1101
|
+
columns: ["actor_id"];
|
|
1102
|
+
isOneToOne: false;
|
|
1103
|
+
referencedRelation: "users";
|
|
1104
|
+
referencedColumns: ["id"];
|
|
1105
|
+
},
|
|
1206
1106
|
{
|
|
1207
1107
|
foreignKeyName: "activities_organization_id_fkey";
|
|
1208
1108
|
columns: ["organization_id"];
|
|
@@ -1284,205 +1184,566 @@ type Database = {
|
|
|
1284
1184
|
Row: {
|
|
1285
1185
|
created_at: string | null;
|
|
1286
1186
|
id: string;
|
|
1287
|
-
key_hash: string;
|
|
1288
|
-
last_used_at: string | null;
|
|
1289
|
-
name: string;
|
|
1187
|
+
key_hash: string;
|
|
1188
|
+
last_used_at: string | null;
|
|
1189
|
+
name: string;
|
|
1190
|
+
organization_id: string;
|
|
1191
|
+
};
|
|
1192
|
+
Insert: {
|
|
1193
|
+
created_at?: string | null;
|
|
1194
|
+
id?: string;
|
|
1195
|
+
key_hash: string;
|
|
1196
|
+
last_used_at?: string | null;
|
|
1197
|
+
name: string;
|
|
1198
|
+
organization_id: string;
|
|
1199
|
+
};
|
|
1200
|
+
Update: {
|
|
1201
|
+
created_at?: string | null;
|
|
1202
|
+
id?: string;
|
|
1203
|
+
key_hash?: string;
|
|
1204
|
+
last_used_at?: string | null;
|
|
1205
|
+
name?: string;
|
|
1206
|
+
organization_id?: string;
|
|
1207
|
+
};
|
|
1208
|
+
Relationships: [
|
|
1209
|
+
{
|
|
1210
|
+
foreignKeyName: "api_keys_organization_id_fkey";
|
|
1211
|
+
columns: ["organization_id"];
|
|
1212
|
+
isOneToOne: false;
|
|
1213
|
+
referencedRelation: "organizations";
|
|
1214
|
+
referencedColumns: ["id"];
|
|
1215
|
+
}
|
|
1216
|
+
];
|
|
1217
|
+
};
|
|
1218
|
+
artifacts: {
|
|
1219
|
+
Row: {
|
|
1220
|
+
content: Json;
|
|
1221
|
+
created_at: string;
|
|
1222
|
+
created_by: string | null;
|
|
1223
|
+
id: string;
|
|
1224
|
+
is_active: boolean;
|
|
1225
|
+
kind: string;
|
|
1226
|
+
organization_id: string;
|
|
1227
|
+
owner_id: string | null;
|
|
1228
|
+
owner_kind: string;
|
|
1229
|
+
pipeline_id: string | null;
|
|
1230
|
+
source_execution_id: string | null;
|
|
1231
|
+
updated_at: string;
|
|
1232
|
+
version: number;
|
|
1233
|
+
};
|
|
1234
|
+
Insert: {
|
|
1235
|
+
content: Json;
|
|
1236
|
+
created_at?: string;
|
|
1237
|
+
created_by?: string | null;
|
|
1238
|
+
id?: string;
|
|
1239
|
+
is_active?: boolean;
|
|
1240
|
+
kind: string;
|
|
1241
|
+
organization_id: string;
|
|
1242
|
+
owner_id?: string | null;
|
|
1243
|
+
owner_kind: string;
|
|
1244
|
+
pipeline_id?: string | null;
|
|
1245
|
+
source_execution_id?: string | null;
|
|
1246
|
+
updated_at?: string;
|
|
1247
|
+
version?: number;
|
|
1248
|
+
};
|
|
1249
|
+
Update: {
|
|
1250
|
+
content?: Json;
|
|
1251
|
+
created_at?: string;
|
|
1252
|
+
created_by?: string | null;
|
|
1253
|
+
id?: string;
|
|
1254
|
+
is_active?: boolean;
|
|
1255
|
+
kind?: string;
|
|
1256
|
+
organization_id?: string;
|
|
1257
|
+
owner_id?: string | null;
|
|
1258
|
+
owner_kind?: string;
|
|
1259
|
+
pipeline_id?: string | null;
|
|
1260
|
+
source_execution_id?: string | null;
|
|
1261
|
+
updated_at?: string;
|
|
1262
|
+
version?: number;
|
|
1263
|
+
};
|
|
1264
|
+
Relationships: [
|
|
1265
|
+
{
|
|
1266
|
+
foreignKeyName: "artifacts_organization_id_fkey";
|
|
1267
|
+
columns: ["organization_id"];
|
|
1268
|
+
isOneToOne: false;
|
|
1269
|
+
referencedRelation: "organizations";
|
|
1270
|
+
referencedColumns: ["id"];
|
|
1271
|
+
}
|
|
1272
|
+
];
|
|
1273
|
+
};
|
|
1274
|
+
clients: {
|
|
1275
|
+
Row: {
|
|
1276
|
+
converted_at: string | null;
|
|
1277
|
+
created_at: string;
|
|
1278
|
+
id: string;
|
|
1279
|
+
metadata: Json;
|
|
1280
|
+
name: string;
|
|
1281
|
+
organization_id: string;
|
|
1282
|
+
primary_company_id: string | null;
|
|
1283
|
+
primary_contact_id: string | null;
|
|
1284
|
+
source: string;
|
|
1285
|
+
source_deal_id: string | null;
|
|
1286
|
+
status: string;
|
|
1287
|
+
updated_at: string;
|
|
1288
|
+
};
|
|
1289
|
+
Insert: {
|
|
1290
|
+
converted_at?: string | null;
|
|
1291
|
+
created_at?: string;
|
|
1292
|
+
id?: string;
|
|
1293
|
+
metadata?: Json;
|
|
1294
|
+
name: string;
|
|
1295
|
+
organization_id: string;
|
|
1296
|
+
primary_company_id?: string | null;
|
|
1297
|
+
primary_contact_id?: string | null;
|
|
1298
|
+
source?: string;
|
|
1299
|
+
source_deal_id?: string | null;
|
|
1300
|
+
status?: string;
|
|
1301
|
+
updated_at?: string;
|
|
1302
|
+
};
|
|
1303
|
+
Update: {
|
|
1304
|
+
converted_at?: string | null;
|
|
1305
|
+
created_at?: string;
|
|
1306
|
+
id?: string;
|
|
1307
|
+
metadata?: Json;
|
|
1308
|
+
name?: string;
|
|
1309
|
+
organization_id?: string;
|
|
1310
|
+
primary_company_id?: string | null;
|
|
1311
|
+
primary_contact_id?: string | null;
|
|
1312
|
+
source?: string;
|
|
1313
|
+
source_deal_id?: string | null;
|
|
1314
|
+
status?: string;
|
|
1315
|
+
updated_at?: string;
|
|
1316
|
+
};
|
|
1317
|
+
Relationships: [
|
|
1318
|
+
{
|
|
1319
|
+
foreignKeyName: "clients_organization_id_fkey";
|
|
1320
|
+
columns: ["organization_id"];
|
|
1321
|
+
isOneToOne: false;
|
|
1322
|
+
referencedRelation: "organizations";
|
|
1323
|
+
referencedColumns: ["id"];
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
foreignKeyName: "clients_primary_company_id_fkey";
|
|
1327
|
+
columns: ["primary_company_id"];
|
|
1328
|
+
isOneToOne: false;
|
|
1329
|
+
referencedRelation: "acq_companies";
|
|
1330
|
+
referencedColumns: ["id"];
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
foreignKeyName: "clients_primary_contact_id_fkey";
|
|
1334
|
+
columns: ["primary_contact_id"];
|
|
1335
|
+
isOneToOne: false;
|
|
1336
|
+
referencedRelation: "acq_contacts";
|
|
1337
|
+
referencedColumns: ["id"];
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
foreignKeyName: "clients_source_deal_id_fkey";
|
|
1341
|
+
columns: ["source_deal_id"];
|
|
1342
|
+
isOneToOne: false;
|
|
1343
|
+
referencedRelation: "acq_deals";
|
|
1344
|
+
referencedColumns: ["id"];
|
|
1345
|
+
}
|
|
1346
|
+
];
|
|
1347
|
+
};
|
|
1348
|
+
command_queue: {
|
|
1349
|
+
Row: {
|
|
1350
|
+
action_payload: Json | null;
|
|
1351
|
+
actions: Json;
|
|
1352
|
+
completed_at: string | null;
|
|
1353
|
+
completed_by: string | null;
|
|
1354
|
+
context: Json;
|
|
1355
|
+
created_at: string;
|
|
1356
|
+
description: string | null;
|
|
1357
|
+
expires_at: string | null;
|
|
1358
|
+
human_checkpoint: string | null;
|
|
1359
|
+
id: string;
|
|
1360
|
+
idempotency_key: string | null;
|
|
1361
|
+
metadata: Json | null;
|
|
1362
|
+
organization_id: string;
|
|
1363
|
+
origin_execution_id: string;
|
|
1364
|
+
origin_resource_id: string;
|
|
1365
|
+
origin_resource_type: string;
|
|
1366
|
+
priority: number;
|
|
1367
|
+
selected_action: string | null;
|
|
1368
|
+
status: string;
|
|
1369
|
+
target_execution_id: string | null;
|
|
1370
|
+
target_resource_id: string | null;
|
|
1371
|
+
target_resource_type: string | null;
|
|
1372
|
+
};
|
|
1373
|
+
Insert: {
|
|
1374
|
+
action_payload?: Json | null;
|
|
1375
|
+
actions: Json;
|
|
1376
|
+
completed_at?: string | null;
|
|
1377
|
+
completed_by?: string | null;
|
|
1378
|
+
context: Json;
|
|
1379
|
+
created_at?: string;
|
|
1380
|
+
description?: string | null;
|
|
1381
|
+
expires_at?: string | null;
|
|
1382
|
+
human_checkpoint?: string | null;
|
|
1383
|
+
id?: string;
|
|
1384
|
+
idempotency_key?: string | null;
|
|
1385
|
+
metadata?: Json | null;
|
|
1386
|
+
organization_id: string;
|
|
1387
|
+
origin_execution_id: string;
|
|
1388
|
+
origin_resource_id: string;
|
|
1389
|
+
origin_resource_type: string;
|
|
1390
|
+
priority?: number;
|
|
1391
|
+
selected_action?: string | null;
|
|
1392
|
+
status?: string;
|
|
1393
|
+
target_execution_id?: string | null;
|
|
1394
|
+
target_resource_id?: string | null;
|
|
1395
|
+
target_resource_type?: string | null;
|
|
1396
|
+
};
|
|
1397
|
+
Update: {
|
|
1398
|
+
action_payload?: Json | null;
|
|
1399
|
+
actions?: Json;
|
|
1400
|
+
completed_at?: string | null;
|
|
1401
|
+
completed_by?: string | null;
|
|
1402
|
+
context?: Json;
|
|
1403
|
+
created_at?: string;
|
|
1404
|
+
description?: string | null;
|
|
1405
|
+
expires_at?: string | null;
|
|
1406
|
+
human_checkpoint?: string | null;
|
|
1407
|
+
id?: string;
|
|
1408
|
+
idempotency_key?: string | null;
|
|
1409
|
+
metadata?: Json | null;
|
|
1410
|
+
organization_id?: string;
|
|
1411
|
+
origin_execution_id?: string;
|
|
1412
|
+
origin_resource_id?: string;
|
|
1413
|
+
origin_resource_type?: string;
|
|
1414
|
+
priority?: number;
|
|
1415
|
+
selected_action?: string | null;
|
|
1416
|
+
status?: string;
|
|
1417
|
+
target_execution_id?: string | null;
|
|
1418
|
+
target_resource_id?: string | null;
|
|
1419
|
+
target_resource_type?: string | null;
|
|
1420
|
+
};
|
|
1421
|
+
Relationships: [
|
|
1422
|
+
{
|
|
1423
|
+
foreignKeyName: "command_queue_completed_by_fkey";
|
|
1424
|
+
columns: ["completed_by"];
|
|
1425
|
+
isOneToOne: false;
|
|
1426
|
+
referencedRelation: "users";
|
|
1427
|
+
referencedColumns: ["id"];
|
|
1428
|
+
},
|
|
1429
|
+
{
|
|
1430
|
+
foreignKeyName: "command_queue_organization_id_fkey";
|
|
1431
|
+
columns: ["organization_id"];
|
|
1432
|
+
isOneToOne: false;
|
|
1433
|
+
referencedRelation: "organizations";
|
|
1434
|
+
referencedColumns: ["id"];
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
1438
|
+
columns: ["target_execution_id"];
|
|
1439
|
+
isOneToOne: false;
|
|
1440
|
+
referencedRelation: "execution_logs";
|
|
1441
|
+
referencedColumns: ["execution_id"];
|
|
1442
|
+
}
|
|
1443
|
+
];
|
|
1444
|
+
};
|
|
1445
|
+
content_distributions: {
|
|
1446
|
+
Row: {
|
|
1447
|
+
adapted_body: string | null;
|
|
1448
|
+
checklist: Json | null;
|
|
1449
|
+
content_item_id: string;
|
|
1450
|
+
created_at: string;
|
|
1451
|
+
format: string;
|
|
1452
|
+
id: string;
|
|
1453
|
+
media_urls: Json;
|
|
1454
|
+
metrics: Json;
|
|
1455
|
+
metrics_updated_at: string | null;
|
|
1456
|
+
organization_id: string;
|
|
1457
|
+
platform: string;
|
|
1458
|
+
platform_content: Json | null;
|
|
1459
|
+
platform_post_id: string | null;
|
|
1460
|
+
platform_url: string | null;
|
|
1461
|
+
processing_state: Json;
|
|
1462
|
+
publish_method: string | null;
|
|
1463
|
+
published_at: string | null;
|
|
1464
|
+
status: string;
|
|
1465
|
+
updated_at: string;
|
|
1466
|
+
};
|
|
1467
|
+
Insert: {
|
|
1468
|
+
adapted_body?: string | null;
|
|
1469
|
+
checklist?: Json | null;
|
|
1470
|
+
content_item_id: string;
|
|
1471
|
+
created_at?: string;
|
|
1472
|
+
format: string;
|
|
1473
|
+
id?: string;
|
|
1474
|
+
media_urls?: Json;
|
|
1475
|
+
metrics?: Json;
|
|
1476
|
+
metrics_updated_at?: string | null;
|
|
1477
|
+
organization_id: string;
|
|
1478
|
+
platform: string;
|
|
1479
|
+
platform_content?: Json | null;
|
|
1480
|
+
platform_post_id?: string | null;
|
|
1481
|
+
platform_url?: string | null;
|
|
1482
|
+
processing_state?: Json;
|
|
1483
|
+
publish_method?: string | null;
|
|
1484
|
+
published_at?: string | null;
|
|
1485
|
+
status?: string;
|
|
1486
|
+
updated_at?: string;
|
|
1487
|
+
};
|
|
1488
|
+
Update: {
|
|
1489
|
+
adapted_body?: string | null;
|
|
1490
|
+
checklist?: Json | null;
|
|
1491
|
+
content_item_id?: string;
|
|
1492
|
+
created_at?: string;
|
|
1493
|
+
format?: string;
|
|
1494
|
+
id?: string;
|
|
1495
|
+
media_urls?: Json;
|
|
1496
|
+
metrics?: Json;
|
|
1497
|
+
metrics_updated_at?: string | null;
|
|
1498
|
+
organization_id?: string;
|
|
1499
|
+
platform?: string;
|
|
1500
|
+
platform_content?: Json | null;
|
|
1501
|
+
platform_post_id?: string | null;
|
|
1502
|
+
platform_url?: string | null;
|
|
1503
|
+
processing_state?: Json;
|
|
1504
|
+
publish_method?: string | null;
|
|
1505
|
+
published_at?: string | null;
|
|
1506
|
+
status?: string;
|
|
1507
|
+
updated_at?: string;
|
|
1508
|
+
};
|
|
1509
|
+
Relationships: [
|
|
1510
|
+
{
|
|
1511
|
+
foreignKeyName: "content_distributions_content_item_id_fkey";
|
|
1512
|
+
columns: ["content_item_id"];
|
|
1513
|
+
isOneToOne: false;
|
|
1514
|
+
referencedRelation: "content_items";
|
|
1515
|
+
referencedColumns: ["id"];
|
|
1516
|
+
},
|
|
1517
|
+
{
|
|
1518
|
+
foreignKeyName: "content_distributions_organization_id_fkey";
|
|
1519
|
+
columns: ["organization_id"];
|
|
1520
|
+
isOneToOne: false;
|
|
1521
|
+
referencedRelation: "organizations";
|
|
1522
|
+
referencedColumns: ["id"];
|
|
1523
|
+
}
|
|
1524
|
+
];
|
|
1525
|
+
};
|
|
1526
|
+
content_item_attempts: {
|
|
1527
|
+
Row: {
|
|
1528
|
+
attempt_number: number;
|
|
1529
|
+
content_item_id: string;
|
|
1530
|
+
created_at: string;
|
|
1531
|
+
created_by: string | null;
|
|
1532
|
+
id: string;
|
|
1290
1533
|
organization_id: string;
|
|
1534
|
+
payload: Json;
|
|
1535
|
+
source_execution_id: string | null;
|
|
1536
|
+
step_key: string | null;
|
|
1291
1537
|
};
|
|
1292
1538
|
Insert: {
|
|
1293
|
-
|
|
1539
|
+
attempt_number: number;
|
|
1540
|
+
content_item_id: string;
|
|
1541
|
+
created_at?: string;
|
|
1542
|
+
created_by?: string | null;
|
|
1294
1543
|
id?: string;
|
|
1295
|
-
key_hash: string;
|
|
1296
|
-
last_used_at?: string | null;
|
|
1297
|
-
name: string;
|
|
1298
1544
|
organization_id: string;
|
|
1545
|
+
payload?: Json;
|
|
1546
|
+
source_execution_id?: string | null;
|
|
1547
|
+
step_key?: string | null;
|
|
1299
1548
|
};
|
|
1300
1549
|
Update: {
|
|
1301
|
-
|
|
1550
|
+
attempt_number?: number;
|
|
1551
|
+
content_item_id?: string;
|
|
1552
|
+
created_at?: string;
|
|
1553
|
+
created_by?: string | null;
|
|
1302
1554
|
id?: string;
|
|
1303
|
-
key_hash?: string;
|
|
1304
|
-
last_used_at?: string | null;
|
|
1305
|
-
name?: string;
|
|
1306
1555
|
organization_id?: string;
|
|
1556
|
+
payload?: Json;
|
|
1557
|
+
source_execution_id?: string | null;
|
|
1558
|
+
step_key?: string | null;
|
|
1307
1559
|
};
|
|
1308
1560
|
Relationships: [
|
|
1309
1561
|
{
|
|
1310
|
-
foreignKeyName: "
|
|
1562
|
+
foreignKeyName: "content_item_attempts_content_item_id_fkey";
|
|
1563
|
+
columns: ["content_item_id"];
|
|
1564
|
+
isOneToOne: false;
|
|
1565
|
+
referencedRelation: "content_items";
|
|
1566
|
+
referencedColumns: ["id"];
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
foreignKeyName: "content_item_attempts_created_by_fkey";
|
|
1570
|
+
columns: ["created_by"];
|
|
1571
|
+
isOneToOne: false;
|
|
1572
|
+
referencedRelation: "users";
|
|
1573
|
+
referencedColumns: ["id"];
|
|
1574
|
+
},
|
|
1575
|
+
{
|
|
1576
|
+
foreignKeyName: "content_item_attempts_organization_id_fkey";
|
|
1311
1577
|
columns: ["organization_id"];
|
|
1312
1578
|
isOneToOne: false;
|
|
1313
1579
|
referencedRelation: "organizations";
|
|
1314
1580
|
referencedColumns: ["id"];
|
|
1581
|
+
},
|
|
1582
|
+
{
|
|
1583
|
+
foreignKeyName: "content_item_attempts_source_execution_id_fkey";
|
|
1584
|
+
columns: ["source_execution_id"];
|
|
1585
|
+
isOneToOne: false;
|
|
1586
|
+
referencedRelation: "execution_logs";
|
|
1587
|
+
referencedColumns: ["execution_id"];
|
|
1315
1588
|
}
|
|
1316
1589
|
];
|
|
1317
1590
|
};
|
|
1318
|
-
|
|
1591
|
+
content_items: {
|
|
1319
1592
|
Row: {
|
|
1320
|
-
|
|
1593
|
+
body: string | null;
|
|
1594
|
+
client_id: string | null;
|
|
1321
1595
|
created_at: string;
|
|
1596
|
+
created_by: string | null;
|
|
1322
1597
|
id: string;
|
|
1323
|
-
metadata: Json;
|
|
1324
|
-
name: string;
|
|
1325
1598
|
organization_id: string;
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1599
|
+
payload: Json;
|
|
1600
|
+
pillar: string | null;
|
|
1601
|
+
pipeline_id: string | null;
|
|
1602
|
+
processing_state: Json;
|
|
1603
|
+
reject_reason: string | null;
|
|
1604
|
+
reviewed_at: string | null;
|
|
1605
|
+
reviewed_by: string | null;
|
|
1606
|
+
reviewer_feedback: string | null;
|
|
1607
|
+
source_asset_id: string | null;
|
|
1330
1608
|
status: string;
|
|
1609
|
+
title: string;
|
|
1331
1610
|
updated_at: string;
|
|
1611
|
+
updated_by: string | null;
|
|
1332
1612
|
};
|
|
1333
1613
|
Insert: {
|
|
1334
|
-
|
|
1614
|
+
body?: string | null;
|
|
1615
|
+
client_id?: string | null;
|
|
1335
1616
|
created_at?: string;
|
|
1617
|
+
created_by?: string | null;
|
|
1336
1618
|
id?: string;
|
|
1337
|
-
metadata?: Json;
|
|
1338
|
-
name: string;
|
|
1339
1619
|
organization_id: string;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1620
|
+
payload?: Json;
|
|
1621
|
+
pillar?: string | null;
|
|
1622
|
+
pipeline_id?: string | null;
|
|
1623
|
+
processing_state?: Json;
|
|
1624
|
+
reject_reason?: string | null;
|
|
1625
|
+
reviewed_at?: string | null;
|
|
1626
|
+
reviewed_by?: string | null;
|
|
1627
|
+
reviewer_feedback?: string | null;
|
|
1628
|
+
source_asset_id?: string | null;
|
|
1344
1629
|
status?: string;
|
|
1630
|
+
title: string;
|
|
1345
1631
|
updated_at?: string;
|
|
1632
|
+
updated_by?: string | null;
|
|
1346
1633
|
};
|
|
1347
1634
|
Update: {
|
|
1348
|
-
|
|
1635
|
+
body?: string | null;
|
|
1636
|
+
client_id?: string | null;
|
|
1349
1637
|
created_at?: string;
|
|
1638
|
+
created_by?: string | null;
|
|
1350
1639
|
id?: string;
|
|
1351
|
-
metadata?: Json;
|
|
1352
|
-
name?: string;
|
|
1353
1640
|
organization_id?: string;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1641
|
+
payload?: Json;
|
|
1642
|
+
pillar?: string | null;
|
|
1643
|
+
pipeline_id?: string | null;
|
|
1644
|
+
processing_state?: Json;
|
|
1645
|
+
reject_reason?: string | null;
|
|
1646
|
+
reviewed_at?: string | null;
|
|
1647
|
+
reviewed_by?: string | null;
|
|
1648
|
+
reviewer_feedback?: string | null;
|
|
1649
|
+
source_asset_id?: string | null;
|
|
1358
1650
|
status?: string;
|
|
1651
|
+
title?: string;
|
|
1359
1652
|
updated_at?: string;
|
|
1653
|
+
updated_by?: string | null;
|
|
1360
1654
|
};
|
|
1361
1655
|
Relationships: [
|
|
1362
1656
|
{
|
|
1363
|
-
foreignKeyName: "
|
|
1657
|
+
foreignKeyName: "content_items_client_id_fkey";
|
|
1658
|
+
columns: ["client_id"];
|
|
1659
|
+
isOneToOne: false;
|
|
1660
|
+
referencedRelation: "clients";
|
|
1661
|
+
referencedColumns: ["id"];
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
foreignKeyName: "content_items_created_by_fkey";
|
|
1665
|
+
columns: ["created_by"];
|
|
1666
|
+
isOneToOne: false;
|
|
1667
|
+
referencedRelation: "users";
|
|
1668
|
+
referencedColumns: ["id"];
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
foreignKeyName: "content_items_organization_id_fkey";
|
|
1364
1672
|
columns: ["organization_id"];
|
|
1365
1673
|
isOneToOne: false;
|
|
1366
1674
|
referencedRelation: "organizations";
|
|
1367
1675
|
referencedColumns: ["id"];
|
|
1368
1676
|
},
|
|
1369
1677
|
{
|
|
1370
|
-
foreignKeyName: "
|
|
1371
|
-
columns: ["
|
|
1678
|
+
foreignKeyName: "content_items_reviewed_by_fkey";
|
|
1679
|
+
columns: ["reviewed_by"];
|
|
1372
1680
|
isOneToOne: false;
|
|
1373
|
-
referencedRelation: "
|
|
1681
|
+
referencedRelation: "users";
|
|
1374
1682
|
referencedColumns: ["id"];
|
|
1375
1683
|
},
|
|
1376
1684
|
{
|
|
1377
|
-
foreignKeyName: "
|
|
1378
|
-
columns: ["
|
|
1685
|
+
foreignKeyName: "content_items_source_asset_id_fkey";
|
|
1686
|
+
columns: ["source_asset_id"];
|
|
1379
1687
|
isOneToOne: false;
|
|
1380
|
-
referencedRelation: "
|
|
1688
|
+
referencedRelation: "content_source_assets";
|
|
1381
1689
|
referencedColumns: ["id"];
|
|
1382
1690
|
},
|
|
1383
1691
|
{
|
|
1384
|
-
foreignKeyName: "
|
|
1385
|
-
columns: ["
|
|
1692
|
+
foreignKeyName: "content_items_updated_by_fkey";
|
|
1693
|
+
columns: ["updated_by"];
|
|
1386
1694
|
isOneToOne: false;
|
|
1387
|
-
referencedRelation: "
|
|
1695
|
+
referencedRelation: "users";
|
|
1388
1696
|
referencedColumns: ["id"];
|
|
1389
1697
|
}
|
|
1390
1698
|
];
|
|
1391
1699
|
};
|
|
1392
|
-
|
|
1700
|
+
content_source_assets: {
|
|
1393
1701
|
Row: {
|
|
1394
|
-
action_payload: Json | null;
|
|
1395
|
-
actions: Json;
|
|
1396
|
-
completed_at: string | null;
|
|
1397
|
-
completed_by: string | null;
|
|
1398
|
-
context: Json;
|
|
1399
1702
|
created_at: string;
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
human_checkpoint: string | null;
|
|
1703
|
+
duration_seconds: number | null;
|
|
1704
|
+
external_url: string | null;
|
|
1403
1705
|
id: string;
|
|
1404
|
-
|
|
1405
|
-
metadata: Json
|
|
1706
|
+
kind: string;
|
|
1707
|
+
metadata: Json;
|
|
1406
1708
|
organization_id: string;
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
selected_action: string | null;
|
|
1412
|
-
status: string;
|
|
1413
|
-
target_execution_id: string | null;
|
|
1414
|
-
target_resource_id: string | null;
|
|
1415
|
-
target_resource_type: string | null;
|
|
1709
|
+
processing_state: Json;
|
|
1710
|
+
storage_path: string | null;
|
|
1711
|
+
title: string;
|
|
1712
|
+
updated_at: string;
|
|
1416
1713
|
};
|
|
1417
1714
|
Insert: {
|
|
1418
|
-
action_payload?: Json | null;
|
|
1419
|
-
actions: Json;
|
|
1420
|
-
completed_at?: string | null;
|
|
1421
|
-
completed_by?: string | null;
|
|
1422
|
-
context: Json;
|
|
1423
1715
|
created_at?: string;
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
human_checkpoint?: string | null;
|
|
1716
|
+
duration_seconds?: number | null;
|
|
1717
|
+
external_url?: string | null;
|
|
1427
1718
|
id?: string;
|
|
1428
|
-
|
|
1429
|
-
metadata?: Json
|
|
1719
|
+
kind: string;
|
|
1720
|
+
metadata?: Json;
|
|
1430
1721
|
organization_id: string;
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
selected_action?: string | null;
|
|
1436
|
-
status?: string;
|
|
1437
|
-
target_execution_id?: string | null;
|
|
1438
|
-
target_resource_id?: string | null;
|
|
1439
|
-
target_resource_type?: string | null;
|
|
1722
|
+
processing_state?: Json;
|
|
1723
|
+
storage_path?: string | null;
|
|
1724
|
+
title: string;
|
|
1725
|
+
updated_at?: string;
|
|
1440
1726
|
};
|
|
1441
1727
|
Update: {
|
|
1442
|
-
action_payload?: Json | null;
|
|
1443
|
-
actions?: Json;
|
|
1444
|
-
completed_at?: string | null;
|
|
1445
|
-
completed_by?: string | null;
|
|
1446
|
-
context?: Json;
|
|
1447
1728
|
created_at?: string;
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
human_checkpoint?: string | null;
|
|
1729
|
+
duration_seconds?: number | null;
|
|
1730
|
+
external_url?: string | null;
|
|
1451
1731
|
id?: string;
|
|
1452
|
-
|
|
1453
|
-
metadata?: Json
|
|
1732
|
+
kind?: string;
|
|
1733
|
+
metadata?: Json;
|
|
1454
1734
|
organization_id?: string;
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
selected_action?: string | null;
|
|
1460
|
-
status?: string;
|
|
1461
|
-
target_execution_id?: string | null;
|
|
1462
|
-
target_resource_id?: string | null;
|
|
1463
|
-
target_resource_type?: string | null;
|
|
1735
|
+
processing_state?: Json;
|
|
1736
|
+
storage_path?: string | null;
|
|
1737
|
+
title?: string;
|
|
1738
|
+
updated_at?: string;
|
|
1464
1739
|
};
|
|
1465
1740
|
Relationships: [
|
|
1466
1741
|
{
|
|
1467
|
-
foreignKeyName: "
|
|
1468
|
-
columns: ["completed_by"];
|
|
1469
|
-
isOneToOne: false;
|
|
1470
|
-
referencedRelation: "users";
|
|
1471
|
-
referencedColumns: ["id"];
|
|
1472
|
-
},
|
|
1473
|
-
{
|
|
1474
|
-
foreignKeyName: "command_queue_organization_id_fkey";
|
|
1742
|
+
foreignKeyName: "content_source_assets_organization_id_fkey";
|
|
1475
1743
|
columns: ["organization_id"];
|
|
1476
1744
|
isOneToOne: false;
|
|
1477
1745
|
referencedRelation: "organizations";
|
|
1478
1746
|
referencedColumns: ["id"];
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
foreignKeyName: "command_queue_target_execution_id_fkey";
|
|
1482
|
-
columns: ["target_execution_id"];
|
|
1483
|
-
isOneToOne: false;
|
|
1484
|
-
referencedRelation: "execution_logs";
|
|
1485
|
-
referencedColumns: ["execution_id"];
|
|
1486
1747
|
}
|
|
1487
1748
|
];
|
|
1488
1749
|
};
|
|
@@ -3102,6 +3363,33 @@ type Database = {
|
|
|
3102
3363
|
};
|
|
3103
3364
|
Returns: boolean;
|
|
3104
3365
|
};
|
|
3366
|
+
create_artifact_version: {
|
|
3367
|
+
Args: {
|
|
3368
|
+
p_content: Json;
|
|
3369
|
+
p_created_by?: string;
|
|
3370
|
+
p_kind: string;
|
|
3371
|
+
p_organization_id: string;
|
|
3372
|
+
p_owner_id?: string;
|
|
3373
|
+
p_owner_kind: string;
|
|
3374
|
+
p_pipeline_id?: string;
|
|
3375
|
+
p_source_execution_id?: string;
|
|
3376
|
+
};
|
|
3377
|
+
Returns: {
|
|
3378
|
+
content: Json;
|
|
3379
|
+
created_at: string;
|
|
3380
|
+
created_by: string | null;
|
|
3381
|
+
id: string;
|
|
3382
|
+
is_active: boolean;
|
|
3383
|
+
kind: string;
|
|
3384
|
+
organization_id: string;
|
|
3385
|
+
owner_id: string | null;
|
|
3386
|
+
owner_kind: string;
|
|
3387
|
+
pipeline_id: string | null;
|
|
3388
|
+
source_execution_id: string | null;
|
|
3389
|
+
updated_at: string;
|
|
3390
|
+
version: number;
|
|
3391
|
+
};
|
|
3392
|
+
};
|
|
3105
3393
|
current_user_is_platform_admin: {
|
|
3106
3394
|
Args: Record<PropertyKey, never>;
|
|
3107
3395
|
Returns: boolean;
|
|
@@ -3116,10 +3404,6 @@ type Database = {
|
|
|
3116
3404
|
Args: Record<PropertyKey, never>;
|
|
3117
3405
|
Returns: string;
|
|
3118
3406
|
};
|
|
3119
|
-
detect_stalled_executions: {
|
|
3120
|
-
Args: Record<PropertyKey, never>;
|
|
3121
|
-
Returns: undefined;
|
|
3122
|
-
};
|
|
3123
3407
|
execute_session_turn: {
|
|
3124
3408
|
Args: {
|
|
3125
3409
|
p_session_id: string;
|
|
@@ -3212,6 +3496,12 @@ type Database = {
|
|
|
3212
3496
|
Args: Record<PropertyKey, never>;
|
|
3213
3497
|
Returns: Json;
|
|
3214
3498
|
};
|
|
3499
|
+
purge_stale_test_data: {
|
|
3500
|
+
Args: {
|
|
3501
|
+
p_max_age?: unknown;
|
|
3502
|
+
};
|
|
3503
|
+
Returns: Json;
|
|
3504
|
+
};
|
|
3215
3505
|
recompute_all_memberships: {
|
|
3216
3506
|
Args: Record<PropertyKey, never>;
|
|
3217
3507
|
Returns: undefined;
|
|
@@ -3527,8 +3817,7 @@ declare const SystemApiInterfaceSchema: z$1.ZodObject<{
|
|
|
3527
3817
|
resourceIds: z$1.ZodOptional<z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>>;
|
|
3528
3818
|
readinessContract: z$1.ZodOptional<z$1.ZodObject<{
|
|
3529
3819
|
requiredObjects: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
|
|
3530
|
-
requiredCatalogs: z$1.
|
|
3531
|
-
requiredKinds: z$1.ZodOptional<z$1.ZodArray<z$1.ZodString>>;
|
|
3820
|
+
requiredCatalogs: z$1.ZodArray<z$1.ZodString>;
|
|
3532
3821
|
}, z$1.core.$strict>>;
|
|
3533
3822
|
}, z$1.core.$strict>;
|
|
3534
3823
|
type JsonPrimitive = string | number | boolean | null;
|
|
@@ -3547,7 +3836,6 @@ interface SystemEntry {
|
|
|
3547
3836
|
path: string;
|
|
3548
3837
|
surfaces: string[];
|
|
3549
3838
|
icon?: string;
|
|
3550
|
-
order?: number;
|
|
3551
3839
|
};
|
|
3552
3840
|
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
3553
3841
|
responsibleRoleId?: string;
|
|
@@ -3557,17 +3845,12 @@ interface SystemEntry {
|
|
|
3557
3845
|
intent: 'exposes' | 'consumes';
|
|
3558
3846
|
invocation?: unknown;
|
|
3559
3847
|
}[];
|
|
3560
|
-
policies?: string[];
|
|
3561
3848
|
drivesGoals?: string[];
|
|
3562
3849
|
apiInterface?: z$1.infer<typeof SystemApiInterfaceSchema>;
|
|
3563
|
-
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
3564
|
-
status?: 'active' | 'deprecated' | 'archived';
|
|
3565
3850
|
path?: string;
|
|
3566
3851
|
icon?: string;
|
|
3567
3852
|
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
3568
3853
|
enabled?: boolean;
|
|
3569
|
-
devOnly?: boolean;
|
|
3570
|
-
requiresAdmin?: boolean;
|
|
3571
3854
|
order: number;
|
|
3572
3855
|
config?: Record<string, JsonValue>;
|
|
3573
3856
|
ontology?: OntologyScope;
|
|
@@ -3666,10 +3949,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
|
|
|
3666
3949
|
version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
|
|
3667
3950
|
lastModified: z$1.ZodString;
|
|
3668
3951
|
}, z$1.core.$strip>>;
|
|
3669
|
-
policies: z$1.ZodOptional<z$1.ZodObject<{
|
|
3670
|
-
version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
|
|
3671
|
-
lastModified: z$1.ZodString;
|
|
3672
|
-
}, z$1.core.$strip>>;
|
|
3673
3952
|
knowledge: z$1.ZodOptional<z$1.ZodObject<{
|
|
3674
3953
|
version: z$1.ZodDefault<z$1.ZodLiteral<1>>;
|
|
3675
3954
|
lastModified: z$1.ZodString;
|
|
@@ -3727,10 +4006,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
|
|
|
3727
4006
|
version: 1;
|
|
3728
4007
|
lastModified: string;
|
|
3729
4008
|
};
|
|
3730
|
-
policies: {
|
|
3731
|
-
version: 1;
|
|
3732
|
-
lastModified: string;
|
|
3733
|
-
};
|
|
3734
4009
|
knowledge: {
|
|
3735
4010
|
version: 1;
|
|
3736
4011
|
lastModified: string;
|
|
@@ -3788,10 +4063,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
|
|
|
3788
4063
|
version: 1;
|
|
3789
4064
|
lastModified: string;
|
|
3790
4065
|
} | undefined;
|
|
3791
|
-
policies?: {
|
|
3792
|
-
version: 1;
|
|
3793
|
-
lastModified: string;
|
|
3794
|
-
} | undefined;
|
|
3795
4066
|
knowledge?: {
|
|
3796
4067
|
version: 1;
|
|
3797
4068
|
lastModified: string;
|
|
@@ -4385,9 +4656,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
|
|
|
4385
4656
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4386
4657
|
kind: z$1.ZodLiteral<"ontology">;
|
|
4387
4658
|
id: z$1.ZodString;
|
|
4388
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4389
|
-
kind: z$1.ZodLiteral<"policy">;
|
|
4390
|
-
id: z$1.ZodString;
|
|
4391
4659
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4392
4660
|
kind: z$1.ZodLiteral<"role">;
|
|
4393
4661
|
id: z$1.ZodString;
|
|
@@ -4415,9 +4683,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
|
|
|
4415
4683
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4416
4684
|
kind: z$1.ZodLiteral<"ontology">;
|
|
4417
4685
|
id: z$1.ZodString;
|
|
4418
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4419
|
-
kind: z$1.ZodLiteral<"policy">;
|
|
4420
|
-
id: z$1.ZodString;
|
|
4421
4686
|
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4422
4687
|
kind: z$1.ZodLiteral<"role">;
|
|
4423
4688
|
id: z$1.ZodString;
|
|
@@ -4499,66 +4764,6 @@ declare const OrganizationModelSchema: z$1.ZodObject<{
|
|
|
4499
4764
|
label: z$1.ZodOptional<z$1.ZodString>;
|
|
4500
4765
|
}, z$1.core.$strip>>>;
|
|
4501
4766
|
}, z$1.core.$strip>>>>;
|
|
4502
|
-
policies: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
4503
|
-
id: z$1.ZodString;
|
|
4504
|
-
order: z$1.ZodNumber;
|
|
4505
|
-
label: z$1.ZodString;
|
|
4506
|
-
description: z$1.ZodOptional<z$1.ZodString>;
|
|
4507
|
-
trigger: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4508
|
-
kind: z$1.ZodLiteral<"event">;
|
|
4509
|
-
eventId: z$1.ZodString;
|
|
4510
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4511
|
-
kind: z$1.ZodLiteral<"action-invocation">;
|
|
4512
|
-
actionId: z$1.ZodString;
|
|
4513
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4514
|
-
kind: z$1.ZodLiteral<"schedule">;
|
|
4515
|
-
cron: z$1.ZodString;
|
|
4516
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4517
|
-
kind: z$1.ZodLiteral<"manual">;
|
|
4518
|
-
}, z$1.core.$strip>], "kind">;
|
|
4519
|
-
predicate: z$1.ZodDefault<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4520
|
-
kind: z$1.ZodLiteral<"always">;
|
|
4521
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4522
|
-
kind: z$1.ZodLiteral<"expression">;
|
|
4523
|
-
expression: z$1.ZodString;
|
|
4524
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4525
|
-
kind: z$1.ZodLiteral<"threshold">;
|
|
4526
|
-
metric: z$1.ZodString;
|
|
4527
|
-
operator: z$1.ZodEnum<{
|
|
4528
|
-
lt: "lt";
|
|
4529
|
-
lte: "lte";
|
|
4530
|
-
eq: "eq";
|
|
4531
|
-
gte: "gte";
|
|
4532
|
-
gt: "gt";
|
|
4533
|
-
}>;
|
|
4534
|
-
value: z$1.ZodNumber;
|
|
4535
|
-
}, z$1.core.$strip>], "kind">>;
|
|
4536
|
-
actions: z$1.ZodArray<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
4537
|
-
kind: z$1.ZodLiteral<"require-approval">;
|
|
4538
|
-
roleId: z$1.ZodOptional<z$1.ZodString>;
|
|
4539
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4540
|
-
kind: z$1.ZodLiteral<"invoke-action">;
|
|
4541
|
-
actionId: z$1.ZodString;
|
|
4542
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4543
|
-
kind: z$1.ZodLiteral<"notify-role">;
|
|
4544
|
-
roleId: z$1.ZodString;
|
|
4545
|
-
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
4546
|
-
kind: z$1.ZodLiteral<"block">;
|
|
4547
|
-
}, z$1.core.$strip>], "kind">>;
|
|
4548
|
-
appliesTo: z$1.ZodDefault<z$1.ZodObject<{
|
|
4549
|
-
systemIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
|
|
4550
|
-
actionIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
|
|
4551
|
-
resourceIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
|
|
4552
|
-
roleIds: z$1.ZodDefault<z$1.ZodArray<z$1.ZodString>>;
|
|
4553
|
-
}, z$1.core.$strip>>;
|
|
4554
|
-
lifecycle: z$1.ZodDefault<z$1.ZodEnum<{
|
|
4555
|
-
active: "active";
|
|
4556
|
-
deprecated: "deprecated";
|
|
4557
|
-
draft: "draft";
|
|
4558
|
-
beta: "beta";
|
|
4559
|
-
archived: "archived";
|
|
4560
|
-
}>>;
|
|
4561
|
-
}, z$1.core.$strip>>>>;
|
|
4562
4767
|
knowledge: z$1.ZodDefault<z$1.ZodDefault<z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
4563
4768
|
id: z$1.ZodString;
|
|
4564
4769
|
kind: z$1.ZodEnum<{
|