@elevasis/sdk 1.46.0 → 1.48.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/cli.cjs +816 -107
- package/dist/index.d.ts +166 -2
- package/dist/index.js +23 -7
- package/dist/node/index.d.ts +2 -2
- package/dist/test-utils/index.d.ts +166 -2
- package/dist/test-utils/index.js +48 -9
- package/dist/worker/index.d.ts +213 -10
- package/dist/worker/index.js +14 -2
- package/package.json +2 -2
- package/reference/_navigation.md +5 -4
- package/reference/_reference-manifest.json +11 -1
- package/reference/packages/core/src/content/README.md +15 -10
- package/reference/packages/core/src/organization-model/README.md +9 -6
- package/reference/rules/content.md +27 -0
- package/reference/rules/organization-model.md +9 -3
- package/reference/rules/organization-os.md +2 -2
- package/reference/rules/vibe-intents.md +18 -15
- package/reference/rules/vibe.md +12 -12
- package/reference/scaffold/recipes/add-a-feature.md +1 -1
- package/reference/scaffold/recipes/customize-organization-model.md +2 -2
- package/reference/scaffold/recipes/extend-content.md +167 -68
- package/reference/scaffold/reference/glossary.md +2 -2
- package/reference/scaffold/reference/system-interface-capabilities.md +26 -6
- package/reference/sdk/cli-management.mdx +175 -29
- package/reference/sdk/platform-tools/adapters-platform.mdx +5 -5
- package/reference/sdk/platform-tools/index.mdx +0 -2
- package/reference/sdk/resources/patterns.mdx +14 -6
|
@@ -2482,6 +2482,7 @@ type Database = {
|
|
|
2482
2482
|
activities: {
|
|
2483
2483
|
Row: {
|
|
2484
2484
|
activity_type: string;
|
|
2485
|
+
actor_api_key_id: string | null;
|
|
2485
2486
|
actor_id: string | null;
|
|
2486
2487
|
actor_type: string | null;
|
|
2487
2488
|
created_at: string;
|
|
@@ -2498,6 +2499,7 @@ type Database = {
|
|
|
2498
2499
|
};
|
|
2499
2500
|
Insert: {
|
|
2500
2501
|
activity_type: string;
|
|
2502
|
+
actor_api_key_id?: string | null;
|
|
2501
2503
|
actor_id?: string | null;
|
|
2502
2504
|
actor_type?: string | null;
|
|
2503
2505
|
created_at?: string;
|
|
@@ -2514,6 +2516,7 @@ type Database = {
|
|
|
2514
2516
|
};
|
|
2515
2517
|
Update: {
|
|
2516
2518
|
activity_type?: string;
|
|
2519
|
+
actor_api_key_id?: string | null;
|
|
2517
2520
|
actor_id?: string | null;
|
|
2518
2521
|
actor_type?: string | null;
|
|
2519
2522
|
created_at?: string;
|
|
@@ -2529,6 +2532,13 @@ type Database = {
|
|
|
2529
2532
|
title?: string;
|
|
2530
2533
|
};
|
|
2531
2534
|
Relationships: [
|
|
2535
|
+
{
|
|
2536
|
+
foreignKeyName: "activities_actor_api_key_id_fkey";
|
|
2537
|
+
columns: ["actor_api_key_id"];
|
|
2538
|
+
isOneToOne: false;
|
|
2539
|
+
referencedRelation: "api_keys";
|
|
2540
|
+
referencedColumns: ["id"];
|
|
2541
|
+
},
|
|
2532
2542
|
{
|
|
2533
2543
|
foreignKeyName: "activities_actor_id_fkey";
|
|
2534
2544
|
columns: ["actor_id"];
|
|
@@ -2616,6 +2626,7 @@ type Database = {
|
|
|
2616
2626
|
api_keys: {
|
|
2617
2627
|
Row: {
|
|
2618
2628
|
created_at: string | null;
|
|
2629
|
+
created_by: string | null;
|
|
2619
2630
|
id: string;
|
|
2620
2631
|
key_hash: string;
|
|
2621
2632
|
last_used_at: string | null;
|
|
@@ -2624,6 +2635,7 @@ type Database = {
|
|
|
2624
2635
|
};
|
|
2625
2636
|
Insert: {
|
|
2626
2637
|
created_at?: string | null;
|
|
2638
|
+
created_by?: string | null;
|
|
2627
2639
|
id?: string;
|
|
2628
2640
|
key_hash: string;
|
|
2629
2641
|
last_used_at?: string | null;
|
|
@@ -2632,6 +2644,7 @@ type Database = {
|
|
|
2632
2644
|
};
|
|
2633
2645
|
Update: {
|
|
2634
2646
|
created_at?: string | null;
|
|
2647
|
+
created_by?: string | null;
|
|
2635
2648
|
id?: string;
|
|
2636
2649
|
key_hash?: string;
|
|
2637
2650
|
last_used_at?: string | null;
|
|
@@ -2639,6 +2652,13 @@ type Database = {
|
|
|
2639
2652
|
organization_id?: string;
|
|
2640
2653
|
};
|
|
2641
2654
|
Relationships: [
|
|
2655
|
+
{
|
|
2656
|
+
foreignKeyName: "api_keys_created_by_fkey";
|
|
2657
|
+
columns: ["created_by"];
|
|
2658
|
+
isOneToOne: false;
|
|
2659
|
+
referencedRelation: "users";
|
|
2660
|
+
referencedColumns: ["id"];
|
|
2661
|
+
},
|
|
2642
2662
|
{
|
|
2643
2663
|
foreignKeyName: "api_keys_organization_id_fkey";
|
|
2644
2664
|
columns: ["organization_id"];
|
|
@@ -2966,6 +2986,7 @@ type Database = {
|
|
|
2966
2986
|
organization_id: string;
|
|
2967
2987
|
payload: Json;
|
|
2968
2988
|
source_execution_id: string | null;
|
|
2989
|
+
status: string;
|
|
2969
2990
|
step_key: string | null;
|
|
2970
2991
|
};
|
|
2971
2992
|
Insert: {
|
|
@@ -2977,6 +2998,7 @@ type Database = {
|
|
|
2977
2998
|
organization_id: string;
|
|
2978
2999
|
payload?: Json;
|
|
2979
3000
|
source_execution_id?: string | null;
|
|
3001
|
+
status: string;
|
|
2980
3002
|
step_key?: string | null;
|
|
2981
3003
|
};
|
|
2982
3004
|
Update: {
|
|
@@ -2988,6 +3010,7 @@ type Database = {
|
|
|
2988
3010
|
organization_id?: string;
|
|
2989
3011
|
payload?: Json;
|
|
2990
3012
|
source_execution_id?: string | null;
|
|
3013
|
+
status?: string;
|
|
2991
3014
|
step_key?: string | null;
|
|
2992
3015
|
};
|
|
2993
3016
|
Relationships: [
|
|
@@ -3139,6 +3162,7 @@ type Database = {
|
|
|
3139
3162
|
kind: string;
|
|
3140
3163
|
metadata: Json;
|
|
3141
3164
|
organization_id: string;
|
|
3165
|
+
payload: Json;
|
|
3142
3166
|
processing_state: Json;
|
|
3143
3167
|
storage_path: string | null;
|
|
3144
3168
|
title: string;
|
|
@@ -3152,6 +3176,7 @@ type Database = {
|
|
|
3152
3176
|
kind: string;
|
|
3153
3177
|
metadata?: Json;
|
|
3154
3178
|
organization_id: string;
|
|
3179
|
+
payload?: Json;
|
|
3155
3180
|
processing_state?: Json;
|
|
3156
3181
|
storage_path?: string | null;
|
|
3157
3182
|
title: string;
|
|
@@ -3165,6 +3190,7 @@ type Database = {
|
|
|
3165
3190
|
kind?: string;
|
|
3166
3191
|
metadata?: Json;
|
|
3167
3192
|
organization_id?: string;
|
|
3193
|
+
payload?: Json;
|
|
3168
3194
|
processing_state?: Json;
|
|
3169
3195
|
storage_path?: string | null;
|
|
3170
3196
|
title?: string;
|
|
@@ -6454,7 +6480,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
|
|
|
6454
6480
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6455
6481
|
route: z.ZodOptional<z.ZodString>;
|
|
6456
6482
|
}, z.core.$loose>>>>;
|
|
6457
|
-
}, z.core.$
|
|
6483
|
+
}, z.core.$strict>>;
|
|
6458
6484
|
type OntologyScope = z.infer<typeof OntologyScopeSchema>;
|
|
6459
6485
|
|
|
6460
6486
|
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
@@ -7101,7 +7127,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
7101
7127
|
aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7102
7128
|
route: z.ZodOptional<z.ZodString>;
|
|
7103
7129
|
}, z.core.$loose>>>>;
|
|
7104
|
-
}, z.core.$
|
|
7130
|
+
}, z.core.$strict>>>;
|
|
7105
7131
|
resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
7106
7132
|
id: z.ZodString;
|
|
7107
7133
|
order: z.ZodDefault<z.ZodNumber>;
|
|
@@ -9539,6 +9565,20 @@ declare const ProjectSchemas: {
|
|
|
9539
9565
|
}, z.core.$strip>;
|
|
9540
9566
|
};
|
|
9541
9567
|
|
|
9568
|
+
/**
|
|
9569
|
+
* `'running'` is the only in-flight value; every other member is terminal.
|
|
9570
|
+
* Added 2026-08-14 (the step-state model): a producer writes `'running'`
|
|
9571
|
+
* when it starts a step and patches the same row to a terminal status when
|
|
9572
|
+
* the step finishes (`updateAttempt`) — see `CreateContentItemAttemptRequestSchema`
|
|
9573
|
+
* / `UpdateContentItemAttemptRequestSchema` below.
|
|
9574
|
+
*/
|
|
9575
|
+
declare const ContentStepStatusSchema: z.ZodEnum<{
|
|
9576
|
+
error: "error";
|
|
9577
|
+
success: "success";
|
|
9578
|
+
running: "running";
|
|
9579
|
+
no_result: "no_result";
|
|
9580
|
+
skipped: "skipped";
|
|
9581
|
+
}>;
|
|
9542
9582
|
/** D18: `pipeline_id` is an OM ontology id (free text), not a UUID. */
|
|
9543
9583
|
declare const ContentPipelineIdSchema: z.ZodString;
|
|
9544
9584
|
/** `content:catalog/status` entries. Free text, model-owned. */
|
|
@@ -9573,9 +9613,13 @@ declare const ContentItemResponseSchema: z.ZodObject<{
|
|
|
9573
9613
|
status: z.ZodEnum<{
|
|
9574
9614
|
error: "error";
|
|
9575
9615
|
success: "success";
|
|
9616
|
+
running: "running";
|
|
9576
9617
|
no_result: "no_result";
|
|
9577
9618
|
skipped: "skipped";
|
|
9578
9619
|
}>;
|
|
9620
|
+
attemptId: z.ZodString;
|
|
9621
|
+
executionId: z.ZodNullable<z.ZodString>;
|
|
9622
|
+
attemptedAt: z.ZodString;
|
|
9579
9623
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
9580
9624
|
}, z.core.$loose>>;
|
|
9581
9625
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -9603,9 +9647,13 @@ declare const ContentItemListResponseSchema: z.ZodObject<{
|
|
|
9603
9647
|
status: z.ZodEnum<{
|
|
9604
9648
|
error: "error";
|
|
9605
9649
|
success: "success";
|
|
9650
|
+
running: "running";
|
|
9606
9651
|
no_result: "no_result";
|
|
9607
9652
|
skipped: "skipped";
|
|
9608
9653
|
}>;
|
|
9654
|
+
attemptId: z.ZodString;
|
|
9655
|
+
executionId: z.ZodNullable<z.ZodString>;
|
|
9656
|
+
attemptedAt: z.ZodString;
|
|
9609
9657
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
9610
9658
|
}, z.core.$loose>>;
|
|
9611
9659
|
reviewedAt: z.ZodNullable<z.ZodString>;
|
|
@@ -9627,6 +9675,13 @@ declare const ContentItemAttemptResponseSchema: z.ZodObject<{
|
|
|
9627
9675
|
contentItemId: z.ZodString;
|
|
9628
9676
|
attemptNumber: z.ZodNumber;
|
|
9629
9677
|
stepKey: z.ZodNullable<z.ZodString>;
|
|
9678
|
+
status: z.ZodEnum<{
|
|
9679
|
+
error: "error";
|
|
9680
|
+
success: "success";
|
|
9681
|
+
running: "running";
|
|
9682
|
+
no_result: "no_result";
|
|
9683
|
+
skipped: "skipped";
|
|
9684
|
+
}>;
|
|
9630
9685
|
payload: z.ZodUnknown;
|
|
9631
9686
|
sourceExecutionId: z.ZodNullable<z.ZodString>;
|
|
9632
9687
|
createdBy: z.ZodNullable<z.ZodString>;
|
|
@@ -9639,12 +9694,45 @@ declare const ContentItemAttemptListResponseSchema: z.ZodObject<{
|
|
|
9639
9694
|
contentItemId: z.ZodString;
|
|
9640
9695
|
attemptNumber: z.ZodNumber;
|
|
9641
9696
|
stepKey: z.ZodNullable<z.ZodString>;
|
|
9697
|
+
status: z.ZodEnum<{
|
|
9698
|
+
error: "error";
|
|
9699
|
+
success: "success";
|
|
9700
|
+
running: "running";
|
|
9701
|
+
no_result: "no_result";
|
|
9702
|
+
skipped: "skipped";
|
|
9703
|
+
}>;
|
|
9642
9704
|
payload: z.ZodUnknown;
|
|
9643
9705
|
sourceExecutionId: z.ZodNullable<z.ZodString>;
|
|
9644
9706
|
createdBy: z.ZodNullable<z.ZodString>;
|
|
9645
9707
|
createdAt: z.ZodString;
|
|
9646
9708
|
}, z.core.$strip>>;
|
|
9647
9709
|
}, z.core.$strip>;
|
|
9710
|
+
declare const ContentSourceAssetResponseSchema: z.ZodObject<{
|
|
9711
|
+
id: z.ZodString;
|
|
9712
|
+
organizationId: z.ZodString;
|
|
9713
|
+
kind: z.ZodString;
|
|
9714
|
+
title: z.ZodString;
|
|
9715
|
+
externalUrl: z.ZodNullable<z.ZodString>;
|
|
9716
|
+
storagePath: z.ZodNullable<z.ZodString>;
|
|
9717
|
+
durationSeconds: z.ZodNullable<z.ZodNumber>;
|
|
9718
|
+
metadata: z.ZodUnknown;
|
|
9719
|
+
payload: z.ZodUnknown;
|
|
9720
|
+
processingState: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
9721
|
+
status: z.ZodEnum<{
|
|
9722
|
+
error: "error";
|
|
9723
|
+
success: "success";
|
|
9724
|
+
running: "running";
|
|
9725
|
+
no_result: "no_result";
|
|
9726
|
+
skipped: "skipped";
|
|
9727
|
+
}>;
|
|
9728
|
+
attemptId: z.ZodString;
|
|
9729
|
+
executionId: z.ZodNullable<z.ZodString>;
|
|
9730
|
+
attemptedAt: z.ZodString;
|
|
9731
|
+
data: z.ZodOptional<z.ZodUnknown>;
|
|
9732
|
+
}, z.core.$loose>>;
|
|
9733
|
+
createdAt: z.ZodString;
|
|
9734
|
+
updatedAt: z.ZodString;
|
|
9735
|
+
}, z.core.$strip>;
|
|
9648
9736
|
declare const ContentDistributionResponseSchema: z.ZodObject<{
|
|
9649
9737
|
id: z.ZodString;
|
|
9650
9738
|
organizationId: z.ZodString;
|
|
@@ -9660,9 +9748,13 @@ declare const ContentDistributionResponseSchema: z.ZodObject<{
|
|
|
9660
9748
|
status: z.ZodEnum<{
|
|
9661
9749
|
error: "error";
|
|
9662
9750
|
success: "success";
|
|
9751
|
+
running: "running";
|
|
9663
9752
|
no_result: "no_result";
|
|
9664
9753
|
skipped: "skipped";
|
|
9665
9754
|
}>;
|
|
9755
|
+
attemptId: z.ZodString;
|
|
9756
|
+
executionId: z.ZodNullable<z.ZodString>;
|
|
9757
|
+
attemptedAt: z.ZodString;
|
|
9666
9758
|
data: z.ZodOptional<z.ZodUnknown>;
|
|
9667
9759
|
}, z.core.$loose>>;
|
|
9668
9760
|
publishMethod: z.ZodNullable<z.ZodString>;
|
|
@@ -9674,6 +9766,7 @@ declare const ContentDistributionResponseSchema: z.ZodObject<{
|
|
|
9674
9766
|
createdAt: z.ZodString;
|
|
9675
9767
|
updatedAt: z.ZodString;
|
|
9676
9768
|
}, z.core.$strip>;
|
|
9769
|
+
type ContentStepStatus = z.infer<typeof ContentStepStatusSchema>;
|
|
9677
9770
|
type ContentPipelineId = z.infer<typeof ContentPipelineIdSchema>;
|
|
9678
9771
|
type ContentItemStatus = z.infer<typeof ContentItemStatusSchema>;
|
|
9679
9772
|
type ContentPillar = z.infer<typeof ContentPillarSchema>;
|
|
@@ -9685,6 +9778,7 @@ type ContentItemResponse = z.infer<typeof ContentItemResponseSchema>;
|
|
|
9685
9778
|
type ContentItemListResponse = z.infer<typeof ContentItemListResponseSchema>;
|
|
9686
9779
|
type ContentItemAttemptResponse = z.infer<typeof ContentItemAttemptResponseSchema>;
|
|
9687
9780
|
type ContentItemAttemptListResponse = z.infer<typeof ContentItemAttemptListResponseSchema>;
|
|
9781
|
+
type ContentSourceAssetResponse = z.infer<typeof ContentSourceAssetResponseSchema>;
|
|
9688
9782
|
type ContentDistributionResponse = z.infer<typeof ContentDistributionResponseSchema>;
|
|
9689
9783
|
|
|
9690
9784
|
/**
|
|
@@ -10707,6 +10801,13 @@ type ContentToolMap = {
|
|
|
10707
10801
|
/** Which step this attempt implements. Stored as-is; NULL when omitted. */
|
|
10708
10802
|
stepKey?: string | null;
|
|
10709
10803
|
sourceExecutionId?: string | null;
|
|
10804
|
+
/**
|
|
10805
|
+
* The status the row is created with. Optional so a producer starting a
|
|
10806
|
+
* step can write `'running'` before doing the work -- the "write-at-start"
|
|
10807
|
+
* half of write-at-start/patch-at-end. Omitted, the column's own default
|
|
10808
|
+
* applies, which is why a producer that means `'running'` must say so.
|
|
10809
|
+
*/
|
|
10810
|
+
status?: ContentStepStatus;
|
|
10710
10811
|
};
|
|
10711
10812
|
result: ContentItemAttemptResponse;
|
|
10712
10813
|
};
|
|
@@ -10717,6 +10818,69 @@ type ContentToolMap = {
|
|
|
10717
10818
|
};
|
|
10718
10819
|
result: ContentItemAttemptListResponse;
|
|
10719
10820
|
};
|
|
10821
|
+
/**
|
|
10822
|
+
* Patch an existing attempt to its terminal status -- the "patch-at-end"
|
|
10823
|
+
* half of write-at-start/patch-at-end (see `ContentStepStatus`'s
|
|
10824
|
+
* `'running'` value). `attemptNumber`, `stepKey`, and `sourceExecutionId`
|
|
10825
|
+
* are immutable once written; only `status` and `payload` change here.
|
|
10826
|
+
*/
|
|
10827
|
+
updateAttempt: {
|
|
10828
|
+
params: {
|
|
10829
|
+
attemptId: string;
|
|
10830
|
+
status?: ContentStepStatus;
|
|
10831
|
+
payload?: ContentPayloadEnvelope;
|
|
10832
|
+
};
|
|
10833
|
+
result: ContentItemAttemptResponse;
|
|
10834
|
+
};
|
|
10835
|
+
/**
|
|
10836
|
+
* Insert a new `content_source_assets` row. `payload` is an open envelope
|
|
10837
|
+
* (D5, content-source-asset-write-path.mdx) -- per-`kind` field membership
|
|
10838
|
+
* is declared in the OM catalog, not enforced by this transport type.
|
|
10839
|
+
*/
|
|
10840
|
+
createSourceAsset: {
|
|
10841
|
+
params: {
|
|
10842
|
+
kind: string;
|
|
10843
|
+
title: string;
|
|
10844
|
+
externalUrl?: string | null;
|
|
10845
|
+
storagePath?: string | null;
|
|
10846
|
+
durationSeconds?: number | null;
|
|
10847
|
+
metadata?: Record<string, unknown>;
|
|
10848
|
+
payload?: ContentPayloadEnvelope;
|
|
10849
|
+
};
|
|
10850
|
+
result: ContentSourceAssetResponse;
|
|
10851
|
+
};
|
|
10852
|
+
/** Fetch a single source asset by id, org-scoped. */
|
|
10853
|
+
getSourceAsset: {
|
|
10854
|
+
params: {
|
|
10855
|
+
sourceAssetId: string;
|
|
10856
|
+
};
|
|
10857
|
+
result: ContentSourceAssetResponse | null;
|
|
10858
|
+
};
|
|
10859
|
+
/** Query source assets -- e.g. a producer picking material for the next item. */
|
|
10860
|
+
listSourceAssets: {
|
|
10861
|
+
params: {
|
|
10862
|
+
kind?: string;
|
|
10863
|
+
limit?: number;
|
|
10864
|
+
offset?: number;
|
|
10865
|
+
};
|
|
10866
|
+
result: {
|
|
10867
|
+
data: ContentSourceAssetResponse[];
|
|
10868
|
+
};
|
|
10869
|
+
};
|
|
10870
|
+
/** Update a source asset's mutable fields. */
|
|
10871
|
+
updateSourceAsset: {
|
|
10872
|
+
params: {
|
|
10873
|
+
sourceAssetId: string;
|
|
10874
|
+
kind?: string;
|
|
10875
|
+
title?: string;
|
|
10876
|
+
externalUrl?: string | null;
|
|
10877
|
+
storagePath?: string | null;
|
|
10878
|
+
durationSeconds?: number | null;
|
|
10879
|
+
metadata?: Record<string, unknown>;
|
|
10880
|
+
payload?: ContentPayloadEnvelope;
|
|
10881
|
+
};
|
|
10882
|
+
result: ContentSourceAssetResponse;
|
|
10883
|
+
};
|
|
10720
10884
|
/** Insert a `content_distributions` row for one platform/format target. */
|
|
10721
10885
|
createDistribution: {
|
|
10722
10886
|
params: {
|
package/dist/test-utils/index.js
CHANGED
|
@@ -8541,6 +8541,8 @@ createAdapter("acqDb", [
|
|
|
8541
8541
|
"addCompaniesToList",
|
|
8542
8542
|
"updateCompanyStage",
|
|
8543
8543
|
"updateContactStage",
|
|
8544
|
+
"clearCompanyStages",
|
|
8545
|
+
"clearContactStages",
|
|
8544
8546
|
// Company operations
|
|
8545
8547
|
"createCompany",
|
|
8546
8548
|
"upsertCompany",
|
|
@@ -8567,6 +8569,8 @@ createAdapter("acqDb", [
|
|
|
8567
8569
|
"getDealById",
|
|
8568
8570
|
"getContactById",
|
|
8569
8571
|
"getCompanyById",
|
|
8572
|
+
"listDeals",
|
|
8573
|
+
"getDealPipelineAnalytics",
|
|
8570
8574
|
// Deal transitions
|
|
8571
8575
|
"updateDiscoveryData",
|
|
8572
8576
|
"updateProposalData",
|
|
@@ -8644,6 +8648,8 @@ createAdapter("list", [
|
|
|
8644
8648
|
"recordExecution",
|
|
8645
8649
|
"updateCompanyStage",
|
|
8646
8650
|
"updateContactStage",
|
|
8651
|
+
"clearCompanyStages",
|
|
8652
|
+
"clearContactStages",
|
|
8647
8653
|
"listPendingCompanyIds",
|
|
8648
8654
|
"listPendingContactIds"
|
|
8649
8655
|
]);
|
|
@@ -8656,16 +8662,22 @@ createAdapter("artifacts", [
|
|
|
8656
8662
|
]);
|
|
8657
8663
|
|
|
8658
8664
|
// src/worker/adapters/content.ts
|
|
8659
|
-
|
|
8665
|
+
var METHODS = [
|
|
8660
8666
|
"createItem",
|
|
8661
8667
|
"getItem",
|
|
8662
8668
|
"listItems",
|
|
8663
8669
|
"updateItem",
|
|
8664
8670
|
"createAttempt",
|
|
8665
8671
|
"listAttempts",
|
|
8672
|
+
"updateAttempt",
|
|
8673
|
+
"createSourceAsset",
|
|
8674
|
+
"getSourceAsset",
|
|
8675
|
+
"listSourceAssets",
|
|
8676
|
+
"updateSourceAsset",
|
|
8666
8677
|
"createDistribution",
|
|
8667
8678
|
"updateDistribution"
|
|
8668
|
-
]
|
|
8679
|
+
];
|
|
8680
|
+
createAdapter("content", METHODS);
|
|
8669
8681
|
|
|
8670
8682
|
// src/worker/adapters/pdf.ts
|
|
8671
8683
|
createAdapter("pdf", ["render", "renderToBuffer"]);
|
|
@@ -8771,7 +8783,7 @@ var OntologyScopeSchema = z.object({
|
|
|
8771
8783
|
sharedProperties: z.record(OntologyIdSchema, OntologySharedPropertySchema).default({}).optional(),
|
|
8772
8784
|
groups: z.record(OntologyIdSchema, OntologyGroupSchema).default({}).optional(),
|
|
8773
8785
|
endpoints: z.record(OntologyIdSchema, OntologyEndpointTypeSchema).default({}).optional()
|
|
8774
|
-
}).default({});
|
|
8786
|
+
}).strict().default({});
|
|
8775
8787
|
var SCOPE_KIND = {
|
|
8776
8788
|
objectTypes: "object",
|
|
8777
8789
|
linkTypes: "link",
|
|
@@ -9024,29 +9036,45 @@ var SystemUiSchema = z.object({
|
|
|
9024
9036
|
path: PathSchema,
|
|
9025
9037
|
surfaces: ReferenceIdsSchema,
|
|
9026
9038
|
icon: IconNameSchema.optional()
|
|
9027
|
-
});
|
|
9039
|
+
}).strict();
|
|
9028
9040
|
var SystemInterfaceKeySchema = ModelIdSchema;
|
|
9029
9041
|
var SystemInterfaceLifecycleSchema = z.enum(["draft", "active", "disabled", "deprecated", "archived"]).meta({ label: "System interface lifecycle", color: "teal" });
|
|
9030
9042
|
var SYSTEM_INTERFACE_PROFILES = [
|
|
9031
9043
|
{
|
|
9032
9044
|
systemPath: "sales.lead-gen",
|
|
9033
9045
|
interfaceKey: "api",
|
|
9034
|
-
readinessProfile: "sales.lead-gen.api"
|
|
9046
|
+
readinessProfile: "sales.lead-gen.api",
|
|
9047
|
+
validation: "built-in"
|
|
9035
9048
|
},
|
|
9036
9049
|
{
|
|
9037
9050
|
systemPath: "sales.crm",
|
|
9038
9051
|
interfaceKey: "api",
|
|
9039
|
-
readinessProfile: "sales.crm.api"
|
|
9052
|
+
readinessProfile: "sales.crm.api",
|
|
9053
|
+
validation: "built-in"
|
|
9040
9054
|
},
|
|
9041
9055
|
{
|
|
9042
9056
|
systemPath: "sales.lead-gen",
|
|
9043
9057
|
interfaceKey: "crm-handoff",
|
|
9044
|
-
readinessProfile: "sales.lead-gen.crm-handoff"
|
|
9058
|
+
readinessProfile: "sales.lead-gen.crm-handoff",
|
|
9059
|
+
validation: "built-in"
|
|
9060
|
+
},
|
|
9061
|
+
{
|
|
9062
|
+
// Gated by `CONTENT_API_INTERFACE` in `apps/api/src/business/content/organization-model.ts`,
|
|
9063
|
+
// which every `/api/content/*` and `/api/external/content/*` route asserts. Contract-validated
|
|
9064
|
+
// rather than built-in because the required step catalog is per-adopter: Elevasis declares
|
|
9065
|
+
// `content:catalog/long-form-to-shorts-steps`, a tenant declares its own.
|
|
9066
|
+
systemPath: "content",
|
|
9067
|
+
interfaceKey: "api",
|
|
9068
|
+
readinessProfile: "content.api",
|
|
9069
|
+
validation: "contract"
|
|
9045
9070
|
}
|
|
9046
9071
|
];
|
|
9047
|
-
|
|
9072
|
+
SYSTEM_INTERFACE_PROFILES.map(
|
|
9048
9073
|
(profile) => profile.readinessProfile
|
|
9049
9074
|
);
|
|
9075
|
+
var BUILT_IN_VALIDATED_PROFILE_IDS = SYSTEM_INTERFACE_PROFILES.filter(
|
|
9076
|
+
(profile) => profile.validation === "built-in"
|
|
9077
|
+
).map((profile) => profile.readinessProfile);
|
|
9050
9078
|
var SystemInterfaceReadinessProfileSchema = z.string().trim().min(1);
|
|
9051
9079
|
var SystemInterfaceResourceScopeSchema = z.array(ModelIdSchema).default([]);
|
|
9052
9080
|
var SystemApiInterfaceReadinessContractSchema = z.object({
|
|
@@ -9084,7 +9112,7 @@ var SystemApiInterfaceSchema = z.object({
|
|
|
9084
9112
|
readinessContract: SystemApiInterfaceReadinessContractSchema.optional()
|
|
9085
9113
|
}).strict();
|
|
9086
9114
|
function isReservedPlatformProfileId(profileId) {
|
|
9087
|
-
return
|
|
9115
|
+
return BUILT_IN_VALIDATED_PROFILE_IDS.includes(profileId);
|
|
9088
9116
|
}
|
|
9089
9117
|
function isBuiltInReadinessProfile(profileId) {
|
|
9090
9118
|
return isReservedPlatformProfileId(profileId) || getBuiltInReadinessProfile(profileId) !== void 0;
|
|
@@ -27629,6 +27657,8 @@ var mockAcqDb = (overrides) => createMockAdapter(
|
|
|
27629
27657
|
"addCompaniesToList",
|
|
27630
27658
|
"updateCompanyStage",
|
|
27631
27659
|
"updateContactStage",
|
|
27660
|
+
"clearCompanyStages",
|
|
27661
|
+
"clearContactStages",
|
|
27632
27662
|
"createCompany",
|
|
27633
27663
|
"upsertCompany",
|
|
27634
27664
|
"updateCompany",
|
|
@@ -27652,6 +27682,8 @@ var mockAcqDb = (overrides) => createMockAdapter(
|
|
|
27652
27682
|
"getDealById",
|
|
27653
27683
|
"getContactById",
|
|
27654
27684
|
"getCompanyById",
|
|
27685
|
+
"listDeals",
|
|
27686
|
+
"getDealPipelineAnalytics",
|
|
27655
27687
|
"updateDiscoveryData",
|
|
27656
27688
|
"updateProposalData",
|
|
27657
27689
|
"markProposalSent",
|
|
@@ -27728,6 +27760,8 @@ var mockList = (overrides) => createMockAdapter(
|
|
|
27728
27760
|
"recordExecution",
|
|
27729
27761
|
"updateCompanyStage",
|
|
27730
27762
|
"updateContactStage",
|
|
27763
|
+
"clearCompanyStages",
|
|
27764
|
+
"clearContactStages",
|
|
27731
27765
|
"listPendingCompanyIds",
|
|
27732
27766
|
"listPendingContactIds"
|
|
27733
27767
|
],
|
|
@@ -27742,6 +27776,11 @@ var mockContent = (overrides) => createMockAdapter(
|
|
|
27742
27776
|
"updateItem",
|
|
27743
27777
|
"createAttempt",
|
|
27744
27778
|
"listAttempts",
|
|
27779
|
+
"updateAttempt",
|
|
27780
|
+
"createSourceAsset",
|
|
27781
|
+
"getSourceAsset",
|
|
27782
|
+
"listSourceAssets",
|
|
27783
|
+
"updateSourceAsset",
|
|
27745
27784
|
"createDistribution",
|
|
27746
27785
|
"updateDistribution"
|
|
27747
27786
|
],
|