@elevasis/sdk 1.9.0 → 1.11.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 +228 -190
- package/dist/index.d.ts +127 -154
- package/dist/index.js +15 -139
- package/dist/test-utils/index.d.ts +8270 -0
- package/dist/test-utils/index.js +20070 -0
- package/dist/types/worker/index.d.ts +20 -1
- package/dist/worker/index.js +7 -4
- package/package.json +8 -2
- package/reference/_navigation.md +15 -1
- package/reference/_reference-manifest.json +56 -0
- package/reference/claude-config/sync-notes/2026-04-24-test-utils-and-template-tests.md +73 -0
- package/reference/claude-config/sync-notes/2026-04-24-ui-consolidation-and-sdk-cli-train.md +1 -1
- package/reference/deployment/provided-features.mdx +40 -267
- package/reference/examples/organization-model.ts +96 -564
- package/reference/packages/core/src/organization-model/README.md +101 -97
- package/reference/packages/core/src/test-utils/README.md +5 -10
- package/reference/packages/ui/src/test-utils/README.md +5 -0
- package/reference/resources/types.mdx +72 -163
- package/reference/scaffold/core/organization-graph.mdx +89 -272
- package/reference/scaffold/core/organization-model.mdx +149 -320
- package/reference/scaffold/operations/workflow-recipes.md +94 -1
- package/reference/scaffold/recipes/add-a-feature.md +102 -158
- package/reference/scaffold/recipes/add-a-resource.md +85 -158
- package/reference/scaffold/recipes/customize-organization-model.md +141 -400
- package/reference/scaffold/recipes/gate-by-feature-or-admin.md +114 -158
- package/reference/scaffold/reference/contracts.md +62 -148
- package/reference/scaffold/reference/feature-registry.md +8 -8
- package/reference/scaffold/reference/glossary.md +71 -105
- package/reference/scaffold/ui/feature-flags-and-gating.md +27 -232
- package/reference/scaffold/ui/feature-shell.mdx +50 -219
- package/reference/scaffold/ui/recipes.md +62 -397
package/dist/index.d.ts
CHANGED
|
@@ -340,74 +340,6 @@ interface FormSchema {
|
|
|
340
340
|
fields: FormField[];
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
/**
|
|
344
|
-
* Command View Types
|
|
345
|
-
*
|
|
346
|
-
* Unified type definitions for the Command View graph visualization.
|
|
347
|
-
* These types are used by both backend serialization and frontend rendering.
|
|
348
|
-
*
|
|
349
|
-
* Command View shows the resource graph: agents, workflows, triggers, integrations,
|
|
350
|
-
* external resources, and human checkpoints with their relationships.
|
|
351
|
-
*/
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Extended agent metadata for Command View
|
|
355
|
-
* Includes model and capability information for graph display
|
|
356
|
-
*/
|
|
357
|
-
interface CommandViewAgent extends ResourceDefinition {
|
|
358
|
-
type: 'agent';
|
|
359
|
-
modelProvider: string;
|
|
360
|
-
modelId: string;
|
|
361
|
-
toolCount: number;
|
|
362
|
-
hasKnowledgeMap: boolean;
|
|
363
|
-
hasMemory: boolean;
|
|
364
|
-
sessionCapable: boolean;
|
|
365
|
-
}
|
|
366
|
-
/**
|
|
367
|
-
* Extended workflow metadata for Command View
|
|
368
|
-
* Includes step information for graph display
|
|
369
|
-
*/
|
|
370
|
-
interface CommandViewWorkflow extends ResourceDefinition {
|
|
371
|
-
type: 'workflow';
|
|
372
|
-
stepCount: number;
|
|
373
|
-
entryPoint: string;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* Relationship types between resources
|
|
377
|
-
*
|
|
378
|
-
* - triggers: Resource initiates/starts another resource (orange)
|
|
379
|
-
* - uses: Resource uses an integration (teal)
|
|
380
|
-
* - approval: Resource requires human approval (yellow)
|
|
381
|
-
*/
|
|
382
|
-
type RelationshipType = 'triggers' | 'uses' | 'approval';
|
|
383
|
-
/**
|
|
384
|
-
* Command View edge (relationship between resources)
|
|
385
|
-
*/
|
|
386
|
-
interface CommandViewEdge {
|
|
387
|
-
id: string;
|
|
388
|
-
source: string;
|
|
389
|
-
target: string;
|
|
390
|
-
relationship: RelationshipType;
|
|
391
|
-
label?: string;
|
|
392
|
-
}
|
|
393
|
-
/**
|
|
394
|
-
* Command View data structure
|
|
395
|
-
* Complete graph data for visualization
|
|
396
|
-
*
|
|
397
|
-
* Backend serializes this once at startup and serves it via /command-view endpoint.
|
|
398
|
-
* Frontend consumes this directly for graph rendering.
|
|
399
|
-
*/
|
|
400
|
-
interface CommandViewData {
|
|
401
|
-
workflows: CommandViewWorkflow[];
|
|
402
|
-
agents: CommandViewAgent[];
|
|
403
|
-
triggers: TriggerDefinition[];
|
|
404
|
-
integrations: IntegrationDefinition[];
|
|
405
|
-
externalResources: ExternalResourceDefinition[];
|
|
406
|
-
humanCheckpoints: HumanCheckpointDefinition[];
|
|
407
|
-
edges: CommandViewEdge[];
|
|
408
|
-
domainDefinitions?: DomainDefinition[];
|
|
409
|
-
}
|
|
410
|
-
|
|
411
343
|
/**
|
|
412
344
|
* Serialized Registry Types
|
|
413
345
|
*
|
|
@@ -488,6 +420,8 @@ interface SerializedAgentDefinition {
|
|
|
488
420
|
version: string;
|
|
489
421
|
type: 'agent';
|
|
490
422
|
status: 'dev' | 'prod';
|
|
423
|
+
links?: ResourceLink[];
|
|
424
|
+
category?: ResourceCategory;
|
|
491
425
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
492
426
|
archived?: boolean;
|
|
493
427
|
systemPrompt: string;
|
|
@@ -543,6 +477,8 @@ interface SerializedWorkflowDefinition {
|
|
|
543
477
|
version: string;
|
|
544
478
|
type: 'workflow';
|
|
545
479
|
status: 'dev' | 'prod';
|
|
480
|
+
links?: ResourceLink[];
|
|
481
|
+
category?: ResourceCategory;
|
|
546
482
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
547
483
|
archived?: boolean;
|
|
548
484
|
};
|
|
@@ -4622,12 +4558,12 @@ declare const DealSchemas: {
|
|
|
4622
4558
|
}, z.core.$strip>;
|
|
4623
4559
|
ListDealsQuery: z.ZodObject<{
|
|
4624
4560
|
stage: z.ZodOptional<z.ZodEnum<{
|
|
4561
|
+
nurturing: "nurturing";
|
|
4562
|
+
closed_won: "closed_won";
|
|
4563
|
+
closed_lost: "closed_lost";
|
|
4625
4564
|
interested: "interested";
|
|
4626
4565
|
proposal: "proposal";
|
|
4627
4566
|
closing: "closing";
|
|
4628
|
-
closed_won: "closed_won";
|
|
4629
|
-
closed_lost: "closed_lost";
|
|
4630
|
-
nurturing: "nurturing";
|
|
4631
4567
|
}>>;
|
|
4632
4568
|
search: z.ZodOptional<z.ZodString>;
|
|
4633
4569
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -4639,10 +4575,10 @@ declare const DealSchemas: {
|
|
|
4639
4575
|
}, z.core.$strict>;
|
|
4640
4576
|
ListDealTasksDueQuery: z.ZodObject<{
|
|
4641
4577
|
window: z.ZodOptional<z.ZodEnum<{
|
|
4578
|
+
upcoming: "upcoming";
|
|
4642
4579
|
overdue: "overdue";
|
|
4643
4580
|
today: "today";
|
|
4644
4581
|
today_and_overdue: "today_and_overdue";
|
|
4645
|
-
upcoming: "upcoming";
|
|
4646
4582
|
}>>;
|
|
4647
4583
|
assigneeUserId: z.ZodOptional<z.ZodString>;
|
|
4648
4584
|
}, z.core.$strict>;
|
|
@@ -4663,12 +4599,12 @@ declare const DealSchemas: {
|
|
|
4663
4599
|
}, z.core.$strict>;
|
|
4664
4600
|
SyncDealStageRequest: z.ZodObject<{
|
|
4665
4601
|
stage: z.ZodEnum<{
|
|
4602
|
+
nurturing: "nurturing";
|
|
4603
|
+
closed_won: "closed_won";
|
|
4604
|
+
closed_lost: "closed_lost";
|
|
4666
4605
|
interested: "interested";
|
|
4667
4606
|
proposal: "proposal";
|
|
4668
4607
|
closing: "closing";
|
|
4669
|
-
closed_won: "closed_won";
|
|
4670
|
-
closed_lost: "closed_lost";
|
|
4671
|
-
nurturing: "nurturing";
|
|
4672
4608
|
}>;
|
|
4673
4609
|
}, z.core.$strict>;
|
|
4674
4610
|
DealListResponse: z.ZodObject<{
|
|
@@ -6562,18 +6498,18 @@ declare const ProjectSchemas: {
|
|
|
6562
6498
|
CreateProjectRequest: z.ZodObject<{
|
|
6563
6499
|
name: z.ZodString;
|
|
6564
6500
|
kind: z.ZodEnum<{
|
|
6501
|
+
internal: "internal";
|
|
6565
6502
|
other: "other";
|
|
6566
6503
|
client_engagement: "client_engagement";
|
|
6567
|
-
internal: "internal";
|
|
6568
6504
|
research: "research";
|
|
6569
6505
|
}>;
|
|
6570
6506
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6571
|
-
completed: "completed";
|
|
6572
6507
|
active: "active";
|
|
6573
|
-
paused: "paused";
|
|
6574
6508
|
on_track: "on_track";
|
|
6575
6509
|
at_risk: "at_risk";
|
|
6576
6510
|
blocked: "blocked";
|
|
6511
|
+
paused: "paused";
|
|
6512
|
+
completed: "completed";
|
|
6577
6513
|
}>>;
|
|
6578
6514
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6579
6515
|
deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6586,18 +6522,18 @@ declare const ProjectSchemas: {
|
|
|
6586
6522
|
UpdateProjectRequest: z.ZodObject<{
|
|
6587
6523
|
name: z.ZodOptional<z.ZodString>;
|
|
6588
6524
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
6525
|
+
internal: "internal";
|
|
6589
6526
|
other: "other";
|
|
6590
6527
|
client_engagement: "client_engagement";
|
|
6591
|
-
internal: "internal";
|
|
6592
6528
|
research: "research";
|
|
6593
6529
|
}>>;
|
|
6594
6530
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6595
|
-
completed: "completed";
|
|
6596
6531
|
active: "active";
|
|
6597
|
-
paused: "paused";
|
|
6598
6532
|
on_track: "on_track";
|
|
6599
6533
|
at_risk: "at_risk";
|
|
6600
6534
|
blocked: "blocked";
|
|
6535
|
+
paused: "paused";
|
|
6536
|
+
completed: "completed";
|
|
6601
6537
|
}>>;
|
|
6602
6538
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6603
6539
|
deal_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6610,18 +6546,18 @@ declare const ProjectSchemas: {
|
|
|
6610
6546
|
}, z.core.$strict>;
|
|
6611
6547
|
GetProjectsQuery: z.ZodObject<{
|
|
6612
6548
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
6549
|
+
internal: "internal";
|
|
6613
6550
|
other: "other";
|
|
6614
6551
|
client_engagement: "client_engagement";
|
|
6615
|
-
internal: "internal";
|
|
6616
6552
|
research: "research";
|
|
6617
6553
|
}>>;
|
|
6618
6554
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6619
|
-
completed: "completed";
|
|
6620
6555
|
active: "active";
|
|
6621
|
-
paused: "paused";
|
|
6622
6556
|
on_track: "on_track";
|
|
6623
6557
|
at_risk: "at_risk";
|
|
6624
6558
|
blocked: "blocked";
|
|
6559
|
+
paused: "paused";
|
|
6560
|
+
completed: "completed";
|
|
6625
6561
|
}>>;
|
|
6626
6562
|
search: z.ZodOptional<z.ZodString>;
|
|
6627
6563
|
}, z.core.$strict>;
|
|
@@ -6631,11 +6567,11 @@ declare const ProjectSchemas: {
|
|
|
6631
6567
|
CreateMilestoneRequest: z.ZodObject<{
|
|
6632
6568
|
name: z.ZodString;
|
|
6633
6569
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6570
|
+
blocked: "blocked";
|
|
6634
6571
|
completed: "completed";
|
|
6635
|
-
overdue: "overdue";
|
|
6636
6572
|
upcoming: "upcoming";
|
|
6637
|
-
blocked: "blocked";
|
|
6638
6573
|
in_progress: "in_progress";
|
|
6574
|
+
overdue: "overdue";
|
|
6639
6575
|
}>>;
|
|
6640
6576
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6641
6577
|
due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6645,11 +6581,11 @@ declare const ProjectSchemas: {
|
|
|
6645
6581
|
UpdateMilestoneRequest: z.ZodObject<{
|
|
6646
6582
|
name: z.ZodOptional<z.ZodString>;
|
|
6647
6583
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6584
|
+
blocked: "blocked";
|
|
6648
6585
|
completed: "completed";
|
|
6649
|
-
overdue: "overdue";
|
|
6650
6586
|
upcoming: "upcoming";
|
|
6651
|
-
blocked: "blocked";
|
|
6652
6587
|
in_progress: "in_progress";
|
|
6588
|
+
overdue: "overdue";
|
|
6653
6589
|
}>>;
|
|
6654
6590
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6655
6591
|
due_date: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6673,25 +6609,25 @@ declare const ProjectSchemas: {
|
|
|
6673
6609
|
name: z.ZodString;
|
|
6674
6610
|
type: z.ZodOptional<z.ZodEnum<{
|
|
6675
6611
|
code: "code";
|
|
6612
|
+
feature: "feature";
|
|
6676
6613
|
other: "other";
|
|
6677
6614
|
research: "research";
|
|
6678
6615
|
documentation: "documentation";
|
|
6679
6616
|
report: "report";
|
|
6680
6617
|
design: "design";
|
|
6681
6618
|
refactor: "refactor";
|
|
6682
|
-
feature: "feature";
|
|
6683
6619
|
bug: "bug";
|
|
6684
6620
|
}>>;
|
|
6685
6621
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6686
|
-
completed: "completed";
|
|
6687
|
-
cancelled: "cancelled";
|
|
6688
6622
|
blocked: "blocked";
|
|
6623
|
+
completed: "completed";
|
|
6689
6624
|
in_progress: "in_progress";
|
|
6690
6625
|
planned: "planned";
|
|
6691
6626
|
submitted: "submitted";
|
|
6692
6627
|
approved: "approved";
|
|
6693
|
-
rejected: "rejected";
|
|
6694
6628
|
revision_requested: "revision_requested";
|
|
6629
|
+
rejected: "rejected";
|
|
6630
|
+
cancelled: "cancelled";
|
|
6695
6631
|
}>>;
|
|
6696
6632
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6697
6633
|
milestone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6709,25 +6645,25 @@ declare const ProjectSchemas: {
|
|
|
6709
6645
|
name: z.ZodOptional<z.ZodString>;
|
|
6710
6646
|
type: z.ZodOptional<z.ZodEnum<{
|
|
6711
6647
|
code: "code";
|
|
6648
|
+
feature: "feature";
|
|
6712
6649
|
other: "other";
|
|
6713
6650
|
research: "research";
|
|
6714
6651
|
documentation: "documentation";
|
|
6715
6652
|
report: "report";
|
|
6716
6653
|
design: "design";
|
|
6717
6654
|
refactor: "refactor";
|
|
6718
|
-
feature: "feature";
|
|
6719
6655
|
bug: "bug";
|
|
6720
6656
|
}>>;
|
|
6721
6657
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6722
|
-
completed: "completed";
|
|
6723
|
-
cancelled: "cancelled";
|
|
6724
6658
|
blocked: "blocked";
|
|
6659
|
+
completed: "completed";
|
|
6725
6660
|
in_progress: "in_progress";
|
|
6726
6661
|
planned: "planned";
|
|
6727
6662
|
submitted: "submitted";
|
|
6728
6663
|
approved: "approved";
|
|
6729
|
-
rejected: "rejected";
|
|
6730
6664
|
revision_requested: "revision_requested";
|
|
6665
|
+
rejected: "rejected";
|
|
6666
|
+
cancelled: "cancelled";
|
|
6731
6667
|
}>>;
|
|
6732
6668
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
6733
6669
|
milestone_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -6746,15 +6682,15 @@ declare const ProjectSchemas: {
|
|
|
6746
6682
|
MergeResumeContextRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6747
6683
|
GetTasksQuery: z.ZodObject<{
|
|
6748
6684
|
status: z.ZodOptional<z.ZodEnum<{
|
|
6749
|
-
completed: "completed";
|
|
6750
|
-
cancelled: "cancelled";
|
|
6751
6685
|
blocked: "blocked";
|
|
6686
|
+
completed: "completed";
|
|
6752
6687
|
in_progress: "in_progress";
|
|
6753
6688
|
planned: "planned";
|
|
6754
6689
|
submitted: "submitted";
|
|
6755
6690
|
approved: "approved";
|
|
6756
|
-
rejected: "rejected";
|
|
6757
6691
|
revision_requested: "revision_requested";
|
|
6692
|
+
rejected: "rejected";
|
|
6693
|
+
cancelled: "cancelled";
|
|
6758
6694
|
}>>;
|
|
6759
6695
|
milestone_id: z.ZodOptional<z.ZodString>;
|
|
6760
6696
|
parent_task_id: z.ZodOptional<z.ZodString>;
|
|
@@ -8089,8 +8025,10 @@ interface ResourceDefinition {
|
|
|
8089
8025
|
type: ResourceType;
|
|
8090
8026
|
/** Environment/deployment status */
|
|
8091
8027
|
status: ResourceStatus$1;
|
|
8092
|
-
/**
|
|
8093
|
-
|
|
8028
|
+
/** Graph links to Organization Model nodes */
|
|
8029
|
+
links?: ResourceLink[];
|
|
8030
|
+
/** Infrastructure category for filtering */
|
|
8031
|
+
category?: ResourceCategory;
|
|
8094
8032
|
/** Whether the agent supports multi-turn sessions (agents only) */
|
|
8095
8033
|
sessionCapable?: boolean;
|
|
8096
8034
|
/** Whether the resource is local (monorepo) or remote (externally deployed) */
|
|
@@ -8098,33 +8036,6 @@ interface ResourceDefinition {
|
|
|
8098
8036
|
/** Whether this resource is archived and should be excluded from registration and deployment */
|
|
8099
8037
|
archived?: boolean;
|
|
8100
8038
|
}
|
|
8101
|
-
/**
|
|
8102
|
-
* Domain definition for Command View filtering
|
|
8103
|
-
*
|
|
8104
|
-
* Domains are organizational metadata for UI filtering/grouping.
|
|
8105
|
-
* No execution impact - purely for visualization.
|
|
8106
|
-
*
|
|
8107
|
-
* @example
|
|
8108
|
-
* {
|
|
8109
|
-
* id: 'support',
|
|
8110
|
-
* name: 'Customer Support',
|
|
8111
|
-
* description: 'Ticket triage, knowledge base, escalations',
|
|
8112
|
-
* color: 'green',
|
|
8113
|
-
* icon: 'IconHeadset'
|
|
8114
|
-
* }
|
|
8115
|
-
*/
|
|
8116
|
-
interface DomainDefinition {
|
|
8117
|
-
/** Unique identifier (e.g., 'support') */
|
|
8118
|
-
id: string;
|
|
8119
|
-
/** Display name (e.g., 'Customer Support') */
|
|
8120
|
-
name: string;
|
|
8121
|
-
/** Purpose description */
|
|
8122
|
-
description: string;
|
|
8123
|
-
/** Optional Mantine color for UI (e.g., 'blue', 'green', 'orange') */
|
|
8124
|
-
color?: string;
|
|
8125
|
-
/** Optional Tabler icon name (e.g., 'IconHeadset') */
|
|
8126
|
-
icon?: string;
|
|
8127
|
-
}
|
|
8128
8039
|
/**
|
|
8129
8040
|
* Resource list for organization
|
|
8130
8041
|
* Returns ResourceDefinition metadata (not full definitions)
|
|
@@ -8172,7 +8083,7 @@ type TriggerConfig = WebhookTriggerConfig | ScheduleTriggerConfig | EventTrigger
|
|
|
8172
8083
|
* scheduled cron jobs, platform events, or manual user actions.
|
|
8173
8084
|
*
|
|
8174
8085
|
* BREAKING CHANGES (2025-11-30):
|
|
8175
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
8086
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
8176
8087
|
* - Field renames: `id` -> `resourceId` (inherited), `type` -> `triggerType`
|
|
8177
8088
|
* - Relationship rename: `invokes` -> `triggers` (unified vocabulary)
|
|
8178
8089
|
* - New required fields: `version` (inherited), `type: 'trigger'` (inherited)
|
|
@@ -8217,7 +8128,7 @@ interface TriggerDefinition extends ResourceDefinition {
|
|
|
8217
8128
|
* stored here (queried at runtime from credentials table).
|
|
8218
8129
|
*
|
|
8219
8130
|
* BREAKING CHANGES (2025-11-30):
|
|
8220
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
8131
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
8221
8132
|
* - Field renames: `id` -> `resourceId` (inherited)
|
|
8222
8133
|
* - New required field: `status` (inherited) - organizations must add status to all integrations
|
|
8223
8134
|
* - New required field: `version` (inherited) - organizations must add version to all integrations
|
|
@@ -8297,7 +8208,7 @@ type ExternalPlatform = 'n8n' | 'make' | 'zapier' | 'other';
|
|
|
8297
8208
|
* no API integration with external platforms, no status syncing.
|
|
8298
8209
|
*
|
|
8299
8210
|
* BREAKING CHANGES (2025-11-30):
|
|
8300
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
8211
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
8301
8212
|
* - Field renames: `id` -> `resourceId` (inherited)
|
|
8302
8213
|
* - New required field: `version` (inherited) - organizations must add version to all external resources
|
|
8303
8214
|
* - New required field: `type: 'external'` (inherited) - resource type discriminator
|
|
@@ -8346,7 +8257,7 @@ interface ExternalResourceDefinition extends ResourceDefinition {
|
|
|
8346
8257
|
* Tasks with matching command_queue_group are routed to this checkpoint.
|
|
8347
8258
|
*
|
|
8348
8259
|
* BREAKING CHANGES (2025-11-30):
|
|
8349
|
-
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status,
|
|
8260
|
+
* - Now extends ResourceDefinition (inherits: resourceId, name, description, version, type, status, links, category)
|
|
8350
8261
|
* - Field renames: `id` -> `resourceId` (inherited)
|
|
8351
8262
|
* - description is now REQUIRED (was optional) - organizations must add description to all human checkpoints
|
|
8352
8263
|
* - New required field: `version` (inherited) - organizations must add version to all human checkpoints
|
|
@@ -8384,31 +8295,93 @@ interface HumanCheckpointDefinition extends ResourceDefinition {
|
|
|
8384
8295
|
}
|
|
8385
8296
|
|
|
8386
8297
|
/**
|
|
8387
|
-
*
|
|
8388
|
-
*
|
|
8298
|
+
* Command View Types
|
|
8299
|
+
*
|
|
8300
|
+
* Unified type definitions for the Command View graph visualization.
|
|
8301
|
+
* These types are used by both backend serialization and frontend rendering.
|
|
8302
|
+
*
|
|
8303
|
+
* Command View shows the resource graph: agents, workflows, triggers, integrations,
|
|
8304
|
+
* external resources, and human checkpoints with their relationships.
|
|
8389
8305
|
*/
|
|
8390
8306
|
|
|
8391
|
-
declare const DOMAINS: {
|
|
8392
|
-
readonly INBOUND_PIPELINE: "inbound-pipeline";
|
|
8393
|
-
readonly LEAD_GEN_PIPELINE: "lead-gen-pipeline";
|
|
8394
|
-
readonly SUPPORT: "support";
|
|
8395
|
-
readonly CLIENT_SUPPORT: "client-support";
|
|
8396
|
-
readonly DELIVERY: "delivery";
|
|
8397
|
-
readonly OPERATIONS: "operations";
|
|
8398
|
-
readonly FINANCE: "finance";
|
|
8399
|
-
readonly EXECUTIVE: "executive";
|
|
8400
|
-
readonly INSTANTLY: "instantly";
|
|
8401
|
-
readonly TESTING: "testing";
|
|
8402
|
-
readonly INTERNAL: "internal";
|
|
8403
|
-
readonly INTEGRATION: "integration";
|
|
8404
|
-
readonly UTILITY: "utility";
|
|
8405
|
-
readonly DIAGNOSTIC: "diagnostic";
|
|
8406
|
-
};
|
|
8407
8307
|
/**
|
|
8408
|
-
*
|
|
8409
|
-
*
|
|
8308
|
+
* Extended agent metadata for Command View
|
|
8309
|
+
* Includes model and capability information for graph display
|
|
8410
8310
|
*/
|
|
8411
|
-
|
|
8311
|
+
interface CommandViewAgent extends ResourceDefinition {
|
|
8312
|
+
type: 'agent';
|
|
8313
|
+
modelProvider: string;
|
|
8314
|
+
modelId: string;
|
|
8315
|
+
toolCount: number;
|
|
8316
|
+
hasKnowledgeMap: boolean;
|
|
8317
|
+
hasMemory: boolean;
|
|
8318
|
+
sessionCapable: boolean;
|
|
8319
|
+
}
|
|
8320
|
+
/**
|
|
8321
|
+
* Extended workflow metadata for Command View
|
|
8322
|
+
* Includes step information for graph display
|
|
8323
|
+
*/
|
|
8324
|
+
interface CommandViewWorkflow extends ResourceDefinition {
|
|
8325
|
+
type: 'workflow';
|
|
8326
|
+
stepCount: number;
|
|
8327
|
+
entryPoint: string;
|
|
8328
|
+
}
|
|
8329
|
+
/**
|
|
8330
|
+
* Relationship types between resources
|
|
8331
|
+
*
|
|
8332
|
+
* - triggers: Resource initiates/starts another resource (orange)
|
|
8333
|
+
* - uses: Resource uses an integration (teal)
|
|
8334
|
+
* - approval: Resource requires human approval (yellow)
|
|
8335
|
+
*/
|
|
8336
|
+
type RelationshipType = 'triggers' | 'uses' | 'approval';
|
|
8337
|
+
/**
|
|
8338
|
+
* Command View edge (relationship between resources)
|
|
8339
|
+
*/
|
|
8340
|
+
interface CommandViewEdge {
|
|
8341
|
+
id: string;
|
|
8342
|
+
source: string;
|
|
8343
|
+
target: string;
|
|
8344
|
+
relationship: RelationshipType;
|
|
8345
|
+
label?: string;
|
|
8346
|
+
}
|
|
8347
|
+
/**
|
|
8348
|
+
* Command View data structure
|
|
8349
|
+
* Complete graph data for visualization
|
|
8350
|
+
*
|
|
8351
|
+
* Backend serializes this once at startup and serves it via /command-view endpoint.
|
|
8352
|
+
* Frontend consumes this directly for graph rendering.
|
|
8353
|
+
*/
|
|
8354
|
+
interface CommandViewData {
|
|
8355
|
+
workflows: CommandViewWorkflow[];
|
|
8356
|
+
agents: CommandViewAgent[];
|
|
8357
|
+
triggers: TriggerDefinition[];
|
|
8358
|
+
integrations: IntegrationDefinition[];
|
|
8359
|
+
externalResources: ExternalResourceDefinition[];
|
|
8360
|
+
humanCheckpoints: HumanCheckpointDefinition[];
|
|
8361
|
+
edges: CommandViewEdge[];
|
|
8362
|
+
}
|
|
8363
|
+
|
|
8364
|
+
declare const LinkSchema: z.ZodObject<{
|
|
8365
|
+
nodeId: z.ZodString;
|
|
8366
|
+
kind: z.ZodEnum<{
|
|
8367
|
+
contains: "contains";
|
|
8368
|
+
references: "references";
|
|
8369
|
+
exposes: "exposes";
|
|
8370
|
+
maps_to: "maps_to";
|
|
8371
|
+
"operates-on": "operates-on";
|
|
8372
|
+
uses: "uses";
|
|
8373
|
+
}>;
|
|
8374
|
+
}, z.core.$strip>;
|
|
8375
|
+
type Link = z.infer<typeof LinkSchema>;
|
|
8376
|
+
|
|
8377
|
+
declare const ResourceCategorySchema: z.ZodEnum<{
|
|
8378
|
+
production: "production";
|
|
8379
|
+
diagnostic: "diagnostic";
|
|
8380
|
+
internal: "internal";
|
|
8381
|
+
testing: "testing";
|
|
8382
|
+
}>;
|
|
8383
|
+
type ResourceCategory = z.infer<typeof ResourceCategorySchema>;
|
|
8384
|
+
type ResourceLink = Link;
|
|
8412
8385
|
|
|
8413
8386
|
/**
|
|
8414
8387
|
* ResourceRegistry - Resource discovery and lookup
|
|
@@ -8822,4 +8795,4 @@ declare class ToolingError extends ExecutionError {
|
|
|
8822
8795
|
}
|
|
8823
8796
|
|
|
8824
8797
|
export { ExecutionError, RegistryValidationError, ResourceRegistry, StepType, ToolingError };
|
|
8825
|
-
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqList, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec,
|
|
8798
|
+
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqList, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, FindCompanyEmailParams as AnymailfinderFindCompanyEmailParams, FindCompanyEmailResult as AnymailfinderFindCompanyEmailResult, FindDecisionMakerEmailParams as AnymailfinderFindDecisionMakerEmailParams, FindDecisionMakerEmailResult as AnymailfinderFindDecisionMakerEmailResult, FindPersonEmailParams as AnymailfinderFindPersonEmailParams, FindPersonEmailResult as AnymailfinderFindPersonEmailResult, AnymailfinderToolMap, VerifyEmailParams as AnymailfinderVerifyEmailParams, VerifyEmailResult as AnymailfinderVerifyEmailResult, ApifyToolMap, ApifyWebhookConfig, AppendRowsParams, AppendRowsResult, ApprovalToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, CompanyFilters, ConditionalNext, ContactFilters, Contract, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DownloadDocumentParams, DownloadDocumentResult, DropboxToolMap, ElevasConfig, EmailToolMap, EnvelopeDocument, EventTriggerConfig, ExecutionContext, ExecutionInterface, ExecutionMetadata, ExecutionToolMap, FilterExpression, FilterRowsParams, FilterRowsResult, FormField, FormFieldType, FormSchema, GetDailyCampaignAnalyticsParams, GetDailyCampaignAnalyticsResult, GetEmailsParams, GetEmailsResult, GetEnvelopeParams, GetEnvelopeResult, GetHeadersParams, GetHeadersResult, GetLastRowParams, GetLastRowResult, GetPaymentLinkParams, GetPaymentLinkResult, GetRecordParams, GetRecordResult, GetRowByValueParams, GetRowByValueResult, GetSpreadsheetMetadataParams, GetSpreadsheetMetadataResult, GmailSendEmailParams, GmailSendEmailResult, GmailToolMap, GoogleSheetsToolMap, HumanCheckpointDefinition, InstantlyToolMap, IntegrationDefinition, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, PaginatedResult, PaginationParams, PdfToolMap, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceRelationships, ResourceStatus$1 as ResourceStatus, ResourceType, RunActorParams, RunActorResult, SDKLLMGenerateParams, ScheduleOriginTracking, ScheduleTarget, ScheduleTriggerConfig, SchedulerToolMap, SendReplyParams, SendReplyResult, SetContactNurtureParams, SheetInfo, SignatureApiFieldType, SignatureApiToolMap, SigningPlace, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SyncDealStageParams, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TriggerConfig, TriggerDefinition, UpdateAttributeParams, UpdateAttributeResult, UpdateCloseLostReasonParams, UpdateCompanyParams, UpdateContactParams, UpdateDiscoveryDataParams, UpdateFeesParams, UpdateInterestStatusParams, UpdateInterestStatusResult, UpdateListParams, UpdatePaymentLinkParams, UpdatePaymentLinkResult, UpdateProposalDataParams, UpdateRecordParams, UpdateRecordResult, UpdateRowByValueParams, UpdateRowByValueResult, UploadFileParams, UploadFileResult, UpsertCompanyParams, UpsertContactParams, UpsertDealParams, UpsertRowParams, UpsertRowResult, VoidEnvelopeParams, VoidEnvelopeResult, WebhookProviderType, WebhookTriggerConfig, WorkflowConfig, WorkflowDefinition, WorkflowStep, WriteSheetParams, WriteSheetResult };
|