@elevasis/core 0.39.0 → 0.41.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/auth/index.d.ts +69 -2
- package/dist/index.d.ts +650 -413
- package/dist/index.js +92 -3
- package/dist/knowledge/index.d.ts +90 -19
- package/dist/knowledge/index.js +10 -1
- package/dist/organization-model/index.d.ts +650 -413
- package/dist/organization-model/index.js +92 -3
- package/dist/test-utils/index.d.ts +104 -37
- package/dist/test-utils/index.js +81 -2
- package/package.json +1 -1
- package/src/_gen/__tests__/__snapshots__/contracts.md.snap +54 -0
- package/src/business/acquisition/ontology-validation.ts +31 -9
- package/src/business/clients/api-schemas.test.ts +63 -29
- package/src/business/clients/api-schemas.ts +41 -29
- package/src/knowledge/index.ts +14 -1
- package/src/knowledge/queries.ts +74 -15
- package/src/organization-model/__tests__/clients.test.ts +146 -0
- package/src/organization-model/__tests__/snapshot-hash.test.ts +82 -0
- package/src/organization-model/cross-ref.ts +4 -0
- package/src/organization-model/defaults.ts +2 -2
- package/src/organization-model/domains/knowledge.ts +1 -0
- package/src/organization-model/graph/build.ts +23 -6
- package/src/organization-model/graph/schema.ts +4 -3
- package/src/organization-model/graph/types.ts +4 -3
- package/src/organization-model/helpers.ts +15 -0
- package/src/organization-model/index.ts +1 -0
- package/src/organization-model/published.ts +19 -1
- package/src/organization-model/schema-refinements.ts +2 -2
- package/src/organization-model/schema.ts +109 -0
- package/src/organization-model/server/snapshot-hash-server.ts +23 -0
- package/src/organization-model/snapshot-hash.ts +62 -0
- package/src/organization-model/types.ts +19 -1
- package/src/platform/constants/versions.ts +1 -1
- package/src/reference/_generated/contracts.md +54 -0
- package/src/server.ts +292 -289
- package/src/supabase/database.types.ts +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -312,407 +312,6 @@ type ActionLike = {
|
|
|
312
312
|
declare function compileOrganizationOntology(model: ModelLike): OntologyCompilation;
|
|
313
313
|
declare function getOntologyDiagnostics(model: ModelLike): OntologyDiagnostic[];
|
|
314
314
|
|
|
315
|
-
declare const OrganizationModelBrandingSchema: z.ZodObject<{
|
|
316
|
-
organizationName: z.ZodString;
|
|
317
|
-
productName: z.ZodString;
|
|
318
|
-
shortName: z.ZodString;
|
|
319
|
-
description: z.ZodOptional<z.ZodString>;
|
|
320
|
-
logos: z.ZodDefault<z.ZodObject<{
|
|
321
|
-
light: z.ZodOptional<z.ZodString>;
|
|
322
|
-
dark: z.ZodOptional<z.ZodString>;
|
|
323
|
-
}, z.core.$strip>>;
|
|
324
|
-
voice: z.ZodOptional<z.ZodString>;
|
|
325
|
-
tagline: z.ZodOptional<z.ZodString>;
|
|
326
|
-
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
327
|
-
themePresetId: z.ZodOptional<z.ZodString>;
|
|
328
|
-
}, z.core.$loose>;
|
|
329
|
-
|
|
330
|
-
/** One entry in the lead-gen stage catalog. */
|
|
331
|
-
interface LeadGenStageCatalogEntry {
|
|
332
|
-
/** Matches the status key written into processing_state jsonb (e.g. 'scraped'). */
|
|
333
|
-
key: string;
|
|
334
|
-
/** Human-readable label for UI display. */
|
|
335
|
-
label: string;
|
|
336
|
-
/** Short description of what this stage represents. */
|
|
337
|
-
description: string;
|
|
338
|
-
/** Canonical pipeline order for UI sorting. Lower = earlier in the funnel. */
|
|
339
|
-
order: number;
|
|
340
|
-
/** Which entity's processing_state jsonb carries this stage status. */
|
|
341
|
-
entity: 'company' | 'contact';
|
|
342
|
-
/** Additional entities allowed to write/read this processing_state key. */
|
|
343
|
-
additionalEntities?: Array<'company' | 'contact'>;
|
|
344
|
-
/**
|
|
345
|
-
* Optional read-side override for Records views when a company-scoped step
|
|
346
|
-
* produces records on a different entity.
|
|
347
|
-
*/
|
|
348
|
-
recordEntity?: 'company' | 'contact';
|
|
349
|
-
/** Stage key to read from recordEntity.processing_state for Records views. */
|
|
350
|
-
recordStageKey?: string;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
declare const SystemKindSchema: z.ZodEnum<{
|
|
354
|
-
platform: "platform";
|
|
355
|
-
product: "product";
|
|
356
|
-
operational: "operational";
|
|
357
|
-
diagnostic: "diagnostic";
|
|
358
|
-
}>;
|
|
359
|
-
declare const SystemLifecycleSchema: z.ZodEnum<{
|
|
360
|
-
active: "active";
|
|
361
|
-
deprecated: "deprecated";
|
|
362
|
-
draft: "draft";
|
|
363
|
-
beta: "beta";
|
|
364
|
-
archived: "archived";
|
|
365
|
-
}>;
|
|
366
|
-
/** @deprecated Use SystemLifecycleSchema. Accepted for one publish cycle. */
|
|
367
|
-
declare const SystemStatusSchema: z.ZodEnum<{
|
|
368
|
-
active: "active";
|
|
369
|
-
deprecated: "deprecated";
|
|
370
|
-
archived: "archived";
|
|
371
|
-
}>;
|
|
372
|
-
declare const SystemIdSchema: z.ZodString;
|
|
373
|
-
/**
|
|
374
|
-
* Validates a dot-separated system path (e.g. "sales.lead-gen", "sales.crm").
|
|
375
|
-
* Each segment is lowercase, starts with a letter or digit, and may contain hyphens.
|
|
376
|
-
* This is the canonical form used in `resource.systemPath`.
|
|
377
|
-
*/
|
|
378
|
-
declare const SystemPathSchema: z.ZodString;
|
|
379
|
-
declare const UiPositionSchema: z.ZodEnum<{
|
|
380
|
-
"sidebar-primary": "sidebar-primary";
|
|
381
|
-
"sidebar-bottom": "sidebar-bottom";
|
|
382
|
-
}>;
|
|
383
|
-
declare const NodeIdPathSchema: z.ZodString;
|
|
384
|
-
declare const NodeIdStringSchema: z.ZodString;
|
|
385
|
-
declare const SystemUiSchema: z.ZodObject<{
|
|
386
|
-
path: z.ZodString;
|
|
387
|
-
surfaces: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
388
|
-
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
389
|
-
message: "message";
|
|
390
|
-
error: "error";
|
|
391
|
-
agent: "agent";
|
|
392
|
-
workflow: "workflow";
|
|
393
|
-
"google-sheets": "google-sheets";
|
|
394
|
-
dashboard: "dashboard";
|
|
395
|
-
calendar: "calendar";
|
|
396
|
-
sales: "sales";
|
|
397
|
-
crm: "crm";
|
|
398
|
-
"lead-gen": "lead-gen";
|
|
399
|
-
projects: "projects";
|
|
400
|
-
clients: "clients";
|
|
401
|
-
operations: "operations";
|
|
402
|
-
monitoring: "monitoring";
|
|
403
|
-
knowledge: "knowledge";
|
|
404
|
-
settings: "settings";
|
|
405
|
-
admin: "admin";
|
|
406
|
-
archive: "archive";
|
|
407
|
-
business: "business";
|
|
408
|
-
finance: "finance";
|
|
409
|
-
platform: "platform";
|
|
410
|
-
seo: "seo";
|
|
411
|
-
playbook: "playbook";
|
|
412
|
-
strategy: "strategy";
|
|
413
|
-
reference: "reference";
|
|
414
|
-
integration: "integration";
|
|
415
|
-
database: "database";
|
|
416
|
-
user: "user";
|
|
417
|
-
team: "team";
|
|
418
|
-
gmail: "gmail";
|
|
419
|
-
attio: "attio";
|
|
420
|
-
overview: "overview";
|
|
421
|
-
"command-view": "command-view";
|
|
422
|
-
"command-queue": "command-queue";
|
|
423
|
-
pipeline: "pipeline";
|
|
424
|
-
lists: "lists";
|
|
425
|
-
resources: "resources";
|
|
426
|
-
approve: "approve";
|
|
427
|
-
reject: "reject";
|
|
428
|
-
retry: "retry";
|
|
429
|
-
edit: "edit";
|
|
430
|
-
view: "view";
|
|
431
|
-
launch: "launch";
|
|
432
|
-
"message-plus": "message-plus";
|
|
433
|
-
escalate: "escalate";
|
|
434
|
-
promote: "promote";
|
|
435
|
-
submit: "submit";
|
|
436
|
-
email: "email";
|
|
437
|
-
success: "success";
|
|
438
|
-
warning: "warning";
|
|
439
|
-
info: "info";
|
|
440
|
-
pending: "pending";
|
|
441
|
-
bolt: "bolt";
|
|
442
|
-
building: "building";
|
|
443
|
-
briefcase: "briefcase";
|
|
444
|
-
apps: "apps";
|
|
445
|
-
graph: "graph";
|
|
446
|
-
shield: "shield";
|
|
447
|
-
users: "users";
|
|
448
|
-
"chart-bar": "chart-bar";
|
|
449
|
-
search: "search";
|
|
450
|
-
}>, z.ZodString]>>;
|
|
451
|
-
order: z.ZodOptional<z.ZodNumber>;
|
|
452
|
-
}, z.core.$strip>;
|
|
453
|
-
declare const SystemInterfaceKeySchema: z.ZodString;
|
|
454
|
-
declare const SystemInterfaceLifecycleSchema: z.ZodEnum<{
|
|
455
|
-
active: "active";
|
|
456
|
-
deprecated: "deprecated";
|
|
457
|
-
draft: "draft";
|
|
458
|
-
archived: "archived";
|
|
459
|
-
disabled: "disabled";
|
|
460
|
-
}>;
|
|
461
|
-
declare const SYSTEM_INTERFACE_PROFILES: readonly [{
|
|
462
|
-
readonly systemPath: "sales.lead-gen";
|
|
463
|
-
readonly interfaceKey: "api";
|
|
464
|
-
readonly readinessProfile: "sales.lead-gen.api";
|
|
465
|
-
}, {
|
|
466
|
-
readonly systemPath: "sales.crm";
|
|
467
|
-
readonly interfaceKey: "api";
|
|
468
|
-
readonly readinessProfile: "sales.crm.api";
|
|
469
|
-
}, {
|
|
470
|
-
readonly systemPath: "sales.lead-gen";
|
|
471
|
-
readonly interfaceKey: "crm-handoff";
|
|
472
|
-
readonly readinessProfile: "sales.lead-gen.crm-handoff";
|
|
473
|
-
}];
|
|
474
|
-
type SystemInterfaceReadinessProfileValue = (typeof SYSTEM_INTERFACE_PROFILES)[number]['readinessProfile'];
|
|
475
|
-
declare const SYSTEM_INTERFACE_READINESS_PROFILES: [SystemInterfaceReadinessProfileValue, ...SystemInterfaceReadinessProfileValue[]];
|
|
476
|
-
declare const SystemInterfaceReadinessProfileSchema: z.ZodEnum<{
|
|
477
|
-
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
478
|
-
"sales.crm.api": "sales.crm.api";
|
|
479
|
-
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
480
|
-
}>;
|
|
481
|
-
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
482
|
-
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
483
|
-
active: "active";
|
|
484
|
-
deprecated: "deprecated";
|
|
485
|
-
draft: "draft";
|
|
486
|
-
archived: "archived";
|
|
487
|
-
disabled: "disabled";
|
|
488
|
-
}>>;
|
|
489
|
-
readinessProfile: z.ZodOptional<z.ZodEnum<{
|
|
490
|
-
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
491
|
-
"sales.crm.api": "sales.crm.api";
|
|
492
|
-
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
493
|
-
}>>;
|
|
494
|
-
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
495
|
-
}, z.core.$strict>;
|
|
496
|
-
declare const SystemInterfaceRefSchema: z.ZodObject<{
|
|
497
|
-
systemPath: z.ZodString;
|
|
498
|
-
interfaceKey: z.ZodString;
|
|
499
|
-
}, z.core.$strict>;
|
|
500
|
-
type JsonPrimitive = string | number | boolean | null;
|
|
501
|
-
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
502
|
-
[key: string]: JsonValue;
|
|
503
|
-
};
|
|
504
|
-
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
505
|
-
interface SystemEntry {
|
|
506
|
-
id: string;
|
|
507
|
-
label?: string;
|
|
508
|
-
title?: string;
|
|
509
|
-
description?: string;
|
|
510
|
-
kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
|
|
511
|
-
parentSystemId?: string;
|
|
512
|
-
ui?: {
|
|
513
|
-
path: string;
|
|
514
|
-
surfaces: string[];
|
|
515
|
-
icon?: string;
|
|
516
|
-
order?: number;
|
|
517
|
-
};
|
|
518
|
-
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
519
|
-
responsibleRoleId?: string;
|
|
520
|
-
governedByKnowledge?: string[];
|
|
521
|
-
actions?: {
|
|
522
|
-
actionId: string;
|
|
523
|
-
intent: 'exposes' | 'consumes';
|
|
524
|
-
invocation?: unknown;
|
|
525
|
-
}[];
|
|
526
|
-
policies?: string[];
|
|
527
|
-
drivesGoals?: string[];
|
|
528
|
-
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
529
|
-
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
530
|
-
status?: 'active' | 'deprecated' | 'archived';
|
|
531
|
-
path?: string;
|
|
532
|
-
icon?: string;
|
|
533
|
-
color?: string;
|
|
534
|
-
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
535
|
-
enabled?: boolean;
|
|
536
|
-
devOnly?: boolean;
|
|
537
|
-
requiresAdmin?: boolean;
|
|
538
|
-
order: number;
|
|
539
|
-
config?: Record<string, JsonValue>;
|
|
540
|
-
ontology?: OntologyScope;
|
|
541
|
-
systems?: Record<string, SystemEntry>;
|
|
542
|
-
subsystems?: Record<string, SystemEntry>;
|
|
543
|
-
}
|
|
544
|
-
declare const SystemEntrySchema: ZodType<SystemEntry>;
|
|
545
|
-
declare const SystemsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>;
|
|
546
|
-
declare const DEFAULT_ORGANIZATION_MODEL_SYSTEMS: z.infer<typeof SystemsDomainSchema>;
|
|
547
|
-
/** Validate and return a single system entry. */
|
|
548
|
-
declare function defineSystem(entry: z.input<typeof SystemEntrySchema>): z.infer<typeof SystemEntrySchema>;
|
|
549
|
-
/** Validate and return an id-keyed map of system entries. */
|
|
550
|
-
declare function defineSystems(entries: readonly z.input<typeof SystemEntrySchema>[]): Record<string, z.infer<typeof SystemEntrySchema>>;
|
|
551
|
-
|
|
552
|
-
declare const ActionInvocationKindSchema: z.ZodEnum<{
|
|
553
|
-
"slash-command": "slash-command";
|
|
554
|
-
"mcp-tool": "mcp-tool";
|
|
555
|
-
"api-endpoint": "api-endpoint";
|
|
556
|
-
"script-execution": "script-execution";
|
|
557
|
-
}>;
|
|
558
|
-
declare const ActionIdSchema: z.ZodString;
|
|
559
|
-
declare const ActionScopeSchema: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
|
|
560
|
-
domain: z.ZodString;
|
|
561
|
-
}, z.core.$strip>]>;
|
|
562
|
-
declare const ActionRefSchema: z.ZodObject<{
|
|
563
|
-
actionId: z.ZodString;
|
|
564
|
-
intent: z.ZodEnum<{
|
|
565
|
-
exposes: "exposes";
|
|
566
|
-
consumes: "consumes";
|
|
567
|
-
}>;
|
|
568
|
-
}, z.core.$strip>;
|
|
569
|
-
declare const SlashCommandInvocationSchema: z.ZodObject<{
|
|
570
|
-
kind: z.ZodLiteral<"slash-command">;
|
|
571
|
-
command: z.ZodString;
|
|
572
|
-
toolFactory: z.ZodOptional<z.ZodString>;
|
|
573
|
-
}, z.core.$strip>;
|
|
574
|
-
declare const McpToolInvocationSchema: z.ZodObject<{
|
|
575
|
-
kind: z.ZodLiteral<"mcp-tool">;
|
|
576
|
-
server: z.ZodString;
|
|
577
|
-
name: z.ZodString;
|
|
578
|
-
}, z.core.$strip>;
|
|
579
|
-
declare const ApiEndpointInvocationSchema: z.ZodObject<{
|
|
580
|
-
kind: z.ZodLiteral<"api-endpoint">;
|
|
581
|
-
method: z.ZodEnum<{
|
|
582
|
-
GET: "GET";
|
|
583
|
-
POST: "POST";
|
|
584
|
-
PATCH: "PATCH";
|
|
585
|
-
DELETE: "DELETE";
|
|
586
|
-
}>;
|
|
587
|
-
path: z.ZodString;
|
|
588
|
-
requestSchema: z.ZodOptional<z.ZodString>;
|
|
589
|
-
responseSchema: z.ZodOptional<z.ZodString>;
|
|
590
|
-
}, z.core.$strip>;
|
|
591
|
-
declare const ScriptExecutionInvocationSchema: z.ZodObject<{
|
|
592
|
-
kind: z.ZodLiteral<"script-execution">;
|
|
593
|
-
resourceId: z.ZodString;
|
|
594
|
-
}, z.core.$strip>;
|
|
595
|
-
declare const ActionInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
596
|
-
kind: z.ZodLiteral<"slash-command">;
|
|
597
|
-
command: z.ZodString;
|
|
598
|
-
toolFactory: z.ZodOptional<z.ZodString>;
|
|
599
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
600
|
-
kind: z.ZodLiteral<"mcp-tool">;
|
|
601
|
-
server: z.ZodString;
|
|
602
|
-
name: z.ZodString;
|
|
603
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
604
|
-
kind: z.ZodLiteral<"api-endpoint">;
|
|
605
|
-
method: z.ZodEnum<{
|
|
606
|
-
GET: "GET";
|
|
607
|
-
POST: "POST";
|
|
608
|
-
PATCH: "PATCH";
|
|
609
|
-
DELETE: "DELETE";
|
|
610
|
-
}>;
|
|
611
|
-
path: z.ZodString;
|
|
612
|
-
requestSchema: z.ZodOptional<z.ZodString>;
|
|
613
|
-
responseSchema: z.ZodOptional<z.ZodString>;
|
|
614
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
615
|
-
kind: z.ZodLiteral<"script-execution">;
|
|
616
|
-
resourceId: z.ZodString;
|
|
617
|
-
}, z.core.$strip>], "kind">;
|
|
618
|
-
declare const ActionSchema: z.ZodObject<{
|
|
619
|
-
id: z.ZodString;
|
|
620
|
-
order: z.ZodNumber;
|
|
621
|
-
label: z.ZodString;
|
|
622
|
-
description: z.ZodOptional<z.ZodString>;
|
|
623
|
-
scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
|
|
624
|
-
domain: z.ZodString;
|
|
625
|
-
}, z.core.$strip>]>>;
|
|
626
|
-
resourceId: z.ZodOptional<z.ZodString>;
|
|
627
|
-
affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
628
|
-
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
629
|
-
kind: z.ZodLiteral<"slash-command">;
|
|
630
|
-
command: z.ZodString;
|
|
631
|
-
toolFactory: z.ZodOptional<z.ZodString>;
|
|
632
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
633
|
-
kind: z.ZodLiteral<"mcp-tool">;
|
|
634
|
-
server: z.ZodString;
|
|
635
|
-
name: z.ZodString;
|
|
636
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
637
|
-
kind: z.ZodLiteral<"api-endpoint">;
|
|
638
|
-
method: z.ZodEnum<{
|
|
639
|
-
GET: "GET";
|
|
640
|
-
POST: "POST";
|
|
641
|
-
PATCH: "PATCH";
|
|
642
|
-
DELETE: "DELETE";
|
|
643
|
-
}>;
|
|
644
|
-
path: z.ZodString;
|
|
645
|
-
requestSchema: z.ZodOptional<z.ZodString>;
|
|
646
|
-
responseSchema: z.ZodOptional<z.ZodString>;
|
|
647
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
648
|
-
kind: z.ZodLiteral<"script-execution">;
|
|
649
|
-
resourceId: z.ZodString;
|
|
650
|
-
}, z.core.$strip>], "kind">>>;
|
|
651
|
-
knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
652
|
-
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
653
|
-
active: "active";
|
|
654
|
-
deprecated: "deprecated";
|
|
655
|
-
draft: "draft";
|
|
656
|
-
beta: "beta";
|
|
657
|
-
archived: "archived";
|
|
658
|
-
}>>;
|
|
659
|
-
}, z.core.$strip>;
|
|
660
|
-
declare const ActionsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
661
|
-
id: z.ZodString;
|
|
662
|
-
order: z.ZodNumber;
|
|
663
|
-
label: z.ZodString;
|
|
664
|
-
description: z.ZodOptional<z.ZodString>;
|
|
665
|
-
scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
|
|
666
|
-
domain: z.ZodString;
|
|
667
|
-
}, z.core.$strip>]>>;
|
|
668
|
-
resourceId: z.ZodOptional<z.ZodString>;
|
|
669
|
-
affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
670
|
-
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
671
|
-
kind: z.ZodLiteral<"slash-command">;
|
|
672
|
-
command: z.ZodString;
|
|
673
|
-
toolFactory: z.ZodOptional<z.ZodString>;
|
|
674
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
675
|
-
kind: z.ZodLiteral<"mcp-tool">;
|
|
676
|
-
server: z.ZodString;
|
|
677
|
-
name: z.ZodString;
|
|
678
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
679
|
-
kind: z.ZodLiteral<"api-endpoint">;
|
|
680
|
-
method: z.ZodEnum<{
|
|
681
|
-
GET: "GET";
|
|
682
|
-
POST: "POST";
|
|
683
|
-
PATCH: "PATCH";
|
|
684
|
-
DELETE: "DELETE";
|
|
685
|
-
}>;
|
|
686
|
-
path: z.ZodString;
|
|
687
|
-
requestSchema: z.ZodOptional<z.ZodString>;
|
|
688
|
-
responseSchema: z.ZodOptional<z.ZodString>;
|
|
689
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
690
|
-
kind: z.ZodLiteral<"script-execution">;
|
|
691
|
-
resourceId: z.ZodString;
|
|
692
|
-
}, z.core.$strip>], "kind">>>;
|
|
693
|
-
knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
694
|
-
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
695
|
-
active: "active";
|
|
696
|
-
deprecated: "deprecated";
|
|
697
|
-
draft: "draft";
|
|
698
|
-
beta: "beta";
|
|
699
|
-
archived: "archived";
|
|
700
|
-
}>>;
|
|
701
|
-
}, z.core.$strip>>>;
|
|
702
|
-
/**
|
|
703
|
-
* Generic empty default for the actions domain.
|
|
704
|
-
* Elevasis-specific action entries (LEAD_GEN_ACTION_ENTRIES, CRM_ACTION_ENTRIES,
|
|
705
|
-
* DEFAULT_ORGANIZATION_MODEL_ACTIONS) have been relocated to
|
|
706
|
-
* `@repo/elevasis-core/src/organization-model/actions.ts`.
|
|
707
|
-
* Tenant OM configs supply their own action entries via `resolveOrganizationModel`.
|
|
708
|
-
*/
|
|
709
|
-
declare const DEFAULT_ORGANIZATION_MODEL_ACTIONS: z.infer<typeof ActionsDomainSchema>;
|
|
710
|
-
declare function findOrganizationActionById(id: string, actions?: z.infer<typeof ActionsDomainSchema>): z.infer<typeof ActionSchema> | undefined;
|
|
711
|
-
/** Validate and return a single action entry. */
|
|
712
|
-
declare function defineAction(entry: z.input<typeof ActionSchema>): z.infer<typeof ActionSchema>;
|
|
713
|
-
/** Validate and return an id-keyed map of action entries. */
|
|
714
|
-
declare function defineActions(entries: readonly z.input<typeof ActionSchema>[]): Record<string, z.infer<typeof ActionSchema>>;
|
|
715
|
-
|
|
716
315
|
declare const SurfaceTypeSchema: z.ZodEnum<{
|
|
717
316
|
dashboard: "dashboard";
|
|
718
317
|
settings: "settings";
|
|
@@ -1097,9 +696,410 @@ declare function getSortedSidebarEntries<TNode extends SidebarNode>(nodes: Recor
|
|
|
1097
696
|
declare const NavigationGroupSchema: z.ZodObject<{
|
|
1098
697
|
id: z.ZodString;
|
|
1099
698
|
label: z.ZodString;
|
|
1100
|
-
placement: z.ZodString;
|
|
1101
|
-
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
699
|
+
placement: z.ZodString;
|
|
700
|
+
surfaceIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
701
|
+
}, z.core.$strip>;
|
|
702
|
+
|
|
703
|
+
declare const OrganizationModelBrandingSchema: z.ZodObject<{
|
|
704
|
+
organizationName: z.ZodString;
|
|
705
|
+
productName: z.ZodString;
|
|
706
|
+
shortName: z.ZodString;
|
|
707
|
+
description: z.ZodOptional<z.ZodString>;
|
|
708
|
+
logos: z.ZodDefault<z.ZodObject<{
|
|
709
|
+
light: z.ZodOptional<z.ZodString>;
|
|
710
|
+
dark: z.ZodOptional<z.ZodString>;
|
|
711
|
+
}, z.core.$strip>>;
|
|
712
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
713
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
714
|
+
values: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
715
|
+
themePresetId: z.ZodOptional<z.ZodString>;
|
|
716
|
+
}, z.core.$loose>;
|
|
717
|
+
|
|
718
|
+
/** One entry in the lead-gen stage catalog. */
|
|
719
|
+
interface LeadGenStageCatalogEntry {
|
|
720
|
+
/** Matches the status key written into processing_state jsonb (e.g. 'scraped'). */
|
|
721
|
+
key: string;
|
|
722
|
+
/** Human-readable label for UI display. */
|
|
723
|
+
label: string;
|
|
724
|
+
/** Short description of what this stage represents. */
|
|
725
|
+
description: string;
|
|
726
|
+
/** Canonical pipeline order for UI sorting. Lower = earlier in the funnel. */
|
|
727
|
+
order: number;
|
|
728
|
+
/** Which entity's processing_state jsonb carries this stage status. */
|
|
729
|
+
entity: 'company' | 'contact';
|
|
730
|
+
/** Additional entities allowed to write/read this processing_state key. */
|
|
731
|
+
additionalEntities?: Array<'company' | 'contact'>;
|
|
732
|
+
/**
|
|
733
|
+
* Optional read-side override for Records views when a company-scoped step
|
|
734
|
+
* produces records on a different entity.
|
|
735
|
+
*/
|
|
736
|
+
recordEntity?: 'company' | 'contact';
|
|
737
|
+
/** Stage key to read from recordEntity.processing_state for Records views. */
|
|
738
|
+
recordStageKey?: string;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
declare const SystemKindSchema: z.ZodEnum<{
|
|
742
|
+
platform: "platform";
|
|
743
|
+
product: "product";
|
|
744
|
+
operational: "operational";
|
|
745
|
+
diagnostic: "diagnostic";
|
|
746
|
+
}>;
|
|
747
|
+
declare const SystemLifecycleSchema: z.ZodEnum<{
|
|
748
|
+
active: "active";
|
|
749
|
+
deprecated: "deprecated";
|
|
750
|
+
draft: "draft";
|
|
751
|
+
beta: "beta";
|
|
752
|
+
archived: "archived";
|
|
753
|
+
}>;
|
|
754
|
+
/** @deprecated Use SystemLifecycleSchema. Accepted for one publish cycle. */
|
|
755
|
+
declare const SystemStatusSchema: z.ZodEnum<{
|
|
756
|
+
active: "active";
|
|
757
|
+
deprecated: "deprecated";
|
|
758
|
+
archived: "archived";
|
|
759
|
+
}>;
|
|
760
|
+
declare const SystemIdSchema: z.ZodString;
|
|
761
|
+
/**
|
|
762
|
+
* Validates a dot-separated system path (e.g. "sales.lead-gen", "sales.crm").
|
|
763
|
+
* Each segment is lowercase, starts with a letter or digit, and may contain hyphens.
|
|
764
|
+
* This is the canonical form used in `resource.systemPath`.
|
|
765
|
+
*/
|
|
766
|
+
declare const SystemPathSchema: z.ZodString;
|
|
767
|
+
declare const UiPositionSchema: z.ZodEnum<{
|
|
768
|
+
"sidebar-primary": "sidebar-primary";
|
|
769
|
+
"sidebar-bottom": "sidebar-bottom";
|
|
770
|
+
}>;
|
|
771
|
+
declare const NodeIdPathSchema: z.ZodString;
|
|
772
|
+
declare const NodeIdStringSchema: z.ZodString;
|
|
773
|
+
declare const SystemUiSchema: z.ZodObject<{
|
|
774
|
+
path: z.ZodString;
|
|
775
|
+
surfaces: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
776
|
+
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
|
|
777
|
+
message: "message";
|
|
778
|
+
error: "error";
|
|
779
|
+
agent: "agent";
|
|
780
|
+
workflow: "workflow";
|
|
781
|
+
"google-sheets": "google-sheets";
|
|
782
|
+
dashboard: "dashboard";
|
|
783
|
+
calendar: "calendar";
|
|
784
|
+
sales: "sales";
|
|
785
|
+
crm: "crm";
|
|
786
|
+
"lead-gen": "lead-gen";
|
|
787
|
+
projects: "projects";
|
|
788
|
+
clients: "clients";
|
|
789
|
+
operations: "operations";
|
|
790
|
+
monitoring: "monitoring";
|
|
791
|
+
knowledge: "knowledge";
|
|
792
|
+
settings: "settings";
|
|
793
|
+
admin: "admin";
|
|
794
|
+
archive: "archive";
|
|
795
|
+
business: "business";
|
|
796
|
+
finance: "finance";
|
|
797
|
+
platform: "platform";
|
|
798
|
+
seo: "seo";
|
|
799
|
+
playbook: "playbook";
|
|
800
|
+
strategy: "strategy";
|
|
801
|
+
reference: "reference";
|
|
802
|
+
integration: "integration";
|
|
803
|
+
database: "database";
|
|
804
|
+
user: "user";
|
|
805
|
+
team: "team";
|
|
806
|
+
gmail: "gmail";
|
|
807
|
+
attio: "attio";
|
|
808
|
+
overview: "overview";
|
|
809
|
+
"command-view": "command-view";
|
|
810
|
+
"command-queue": "command-queue";
|
|
811
|
+
pipeline: "pipeline";
|
|
812
|
+
lists: "lists";
|
|
813
|
+
resources: "resources";
|
|
814
|
+
approve: "approve";
|
|
815
|
+
reject: "reject";
|
|
816
|
+
retry: "retry";
|
|
817
|
+
edit: "edit";
|
|
818
|
+
view: "view";
|
|
819
|
+
launch: "launch";
|
|
820
|
+
"message-plus": "message-plus";
|
|
821
|
+
escalate: "escalate";
|
|
822
|
+
promote: "promote";
|
|
823
|
+
submit: "submit";
|
|
824
|
+
email: "email";
|
|
825
|
+
success: "success";
|
|
826
|
+
warning: "warning";
|
|
827
|
+
info: "info";
|
|
828
|
+
pending: "pending";
|
|
829
|
+
bolt: "bolt";
|
|
830
|
+
building: "building";
|
|
831
|
+
briefcase: "briefcase";
|
|
832
|
+
apps: "apps";
|
|
833
|
+
graph: "graph";
|
|
834
|
+
shield: "shield";
|
|
835
|
+
users: "users";
|
|
836
|
+
"chart-bar": "chart-bar";
|
|
837
|
+
search: "search";
|
|
838
|
+
}>, z.ZodString]>>;
|
|
839
|
+
order: z.ZodOptional<z.ZodNumber>;
|
|
840
|
+
}, z.core.$strip>;
|
|
841
|
+
declare const SystemInterfaceKeySchema: z.ZodString;
|
|
842
|
+
declare const SystemInterfaceLifecycleSchema: z.ZodEnum<{
|
|
843
|
+
active: "active";
|
|
844
|
+
deprecated: "deprecated";
|
|
845
|
+
draft: "draft";
|
|
846
|
+
archived: "archived";
|
|
847
|
+
disabled: "disabled";
|
|
848
|
+
}>;
|
|
849
|
+
declare const SYSTEM_INTERFACE_PROFILES: readonly [{
|
|
850
|
+
readonly systemPath: "sales.lead-gen";
|
|
851
|
+
readonly interfaceKey: "api";
|
|
852
|
+
readonly readinessProfile: "sales.lead-gen.api";
|
|
853
|
+
}, {
|
|
854
|
+
readonly systemPath: "sales.crm";
|
|
855
|
+
readonly interfaceKey: "api";
|
|
856
|
+
readonly readinessProfile: "sales.crm.api";
|
|
857
|
+
}, {
|
|
858
|
+
readonly systemPath: "sales.lead-gen";
|
|
859
|
+
readonly interfaceKey: "crm-handoff";
|
|
860
|
+
readonly readinessProfile: "sales.lead-gen.crm-handoff";
|
|
861
|
+
}];
|
|
862
|
+
type SystemInterfaceReadinessProfileValue = (typeof SYSTEM_INTERFACE_PROFILES)[number]['readinessProfile'];
|
|
863
|
+
declare const SYSTEM_INTERFACE_READINESS_PROFILES: [SystemInterfaceReadinessProfileValue, ...SystemInterfaceReadinessProfileValue[]];
|
|
864
|
+
declare const SystemInterfaceReadinessProfileSchema: z.ZodEnum<{
|
|
865
|
+
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
866
|
+
"sales.crm.api": "sales.crm.api";
|
|
867
|
+
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
868
|
+
}>;
|
|
869
|
+
declare const SystemApiInterfaceSchema: z.ZodObject<{
|
|
870
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
871
|
+
active: "active";
|
|
872
|
+
deprecated: "deprecated";
|
|
873
|
+
draft: "draft";
|
|
874
|
+
archived: "archived";
|
|
875
|
+
disabled: "disabled";
|
|
876
|
+
}>>;
|
|
877
|
+
readinessProfile: z.ZodOptional<z.ZodEnum<{
|
|
878
|
+
"sales.lead-gen.api": "sales.lead-gen.api";
|
|
879
|
+
"sales.crm.api": "sales.crm.api";
|
|
880
|
+
"sales.lead-gen.crm-handoff": "sales.lead-gen.crm-handoff";
|
|
881
|
+
}>>;
|
|
882
|
+
resourceIds: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
883
|
+
}, z.core.$strict>;
|
|
884
|
+
declare const SystemInterfaceRefSchema: z.ZodObject<{
|
|
885
|
+
systemPath: z.ZodString;
|
|
886
|
+
interfaceKey: z.ZodString;
|
|
887
|
+
}, z.core.$strict>;
|
|
888
|
+
type JsonPrimitive = string | number | boolean | null;
|
|
889
|
+
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
890
|
+
[key: string]: JsonValue;
|
|
891
|
+
};
|
|
892
|
+
/** Explicit interface needed to annotate the recursive SystemEntrySchema. */
|
|
893
|
+
interface SystemEntry {
|
|
894
|
+
id: string;
|
|
895
|
+
label?: string;
|
|
896
|
+
title?: string;
|
|
897
|
+
description?: string;
|
|
898
|
+
kind?: 'product' | 'operational' | 'platform' | 'diagnostic';
|
|
899
|
+
parentSystemId?: string;
|
|
900
|
+
ui?: {
|
|
901
|
+
path: string;
|
|
902
|
+
surfaces: string[];
|
|
903
|
+
icon?: string;
|
|
904
|
+
order?: number;
|
|
905
|
+
};
|
|
906
|
+
lifecycle?: 'draft' | 'beta' | 'active' | 'deprecated' | 'archived';
|
|
907
|
+
responsibleRoleId?: string;
|
|
908
|
+
governedByKnowledge?: string[];
|
|
909
|
+
actions?: {
|
|
910
|
+
actionId: string;
|
|
911
|
+
intent: 'exposes' | 'consumes';
|
|
912
|
+
invocation?: unknown;
|
|
913
|
+
}[];
|
|
914
|
+
policies?: string[];
|
|
915
|
+
drivesGoals?: string[];
|
|
916
|
+
apiInterface?: z.infer<typeof SystemApiInterfaceSchema>;
|
|
917
|
+
/** @deprecated Use lifecycle. Accepted for one publish cycle. */
|
|
918
|
+
status?: 'active' | 'deprecated' | 'archived';
|
|
919
|
+
path?: string;
|
|
920
|
+
icon?: string;
|
|
921
|
+
color?: string;
|
|
922
|
+
uiPosition?: 'sidebar-primary' | 'sidebar-bottom';
|
|
923
|
+
enabled?: boolean;
|
|
924
|
+
devOnly?: boolean;
|
|
925
|
+
requiresAdmin?: boolean;
|
|
926
|
+
order: number;
|
|
927
|
+
config?: Record<string, JsonValue>;
|
|
928
|
+
ontology?: OntologyScope;
|
|
929
|
+
systems?: Record<string, SystemEntry>;
|
|
930
|
+
subsystems?: Record<string, SystemEntry>;
|
|
931
|
+
}
|
|
932
|
+
declare const SystemEntrySchema: ZodType<SystemEntry>;
|
|
933
|
+
declare const SystemsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<SystemEntry, unknown, z.core.$ZodTypeInternals<SystemEntry, unknown>>>>;
|
|
934
|
+
declare const DEFAULT_ORGANIZATION_MODEL_SYSTEMS: z.infer<typeof SystemsDomainSchema>;
|
|
935
|
+
/** Validate and return a single system entry. */
|
|
936
|
+
declare function defineSystem(entry: z.input<typeof SystemEntrySchema>): z.infer<typeof SystemEntrySchema>;
|
|
937
|
+
/** Validate and return an id-keyed map of system entries. */
|
|
938
|
+
declare function defineSystems(entries: readonly z.input<typeof SystemEntrySchema>[]): Record<string, z.infer<typeof SystemEntrySchema>>;
|
|
939
|
+
|
|
940
|
+
declare const ActionInvocationKindSchema: z.ZodEnum<{
|
|
941
|
+
"slash-command": "slash-command";
|
|
942
|
+
"mcp-tool": "mcp-tool";
|
|
943
|
+
"api-endpoint": "api-endpoint";
|
|
944
|
+
"script-execution": "script-execution";
|
|
945
|
+
}>;
|
|
946
|
+
declare const ActionIdSchema: z.ZodString;
|
|
947
|
+
declare const ActionScopeSchema: z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
|
|
948
|
+
domain: z.ZodString;
|
|
949
|
+
}, z.core.$strip>]>;
|
|
950
|
+
declare const ActionRefSchema: z.ZodObject<{
|
|
951
|
+
actionId: z.ZodString;
|
|
952
|
+
intent: z.ZodEnum<{
|
|
953
|
+
exposes: "exposes";
|
|
954
|
+
consumes: "consumes";
|
|
955
|
+
}>;
|
|
956
|
+
}, z.core.$strip>;
|
|
957
|
+
declare const SlashCommandInvocationSchema: z.ZodObject<{
|
|
958
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
959
|
+
command: z.ZodString;
|
|
960
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
961
|
+
}, z.core.$strip>;
|
|
962
|
+
declare const McpToolInvocationSchema: z.ZodObject<{
|
|
963
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
964
|
+
server: z.ZodString;
|
|
965
|
+
name: z.ZodString;
|
|
966
|
+
}, z.core.$strip>;
|
|
967
|
+
declare const ApiEndpointInvocationSchema: z.ZodObject<{
|
|
968
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
969
|
+
method: z.ZodEnum<{
|
|
970
|
+
GET: "GET";
|
|
971
|
+
POST: "POST";
|
|
972
|
+
PATCH: "PATCH";
|
|
973
|
+
DELETE: "DELETE";
|
|
974
|
+
}>;
|
|
975
|
+
path: z.ZodString;
|
|
976
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
977
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
978
|
+
}, z.core.$strip>;
|
|
979
|
+
declare const ScriptExecutionInvocationSchema: z.ZodObject<{
|
|
980
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
981
|
+
resourceId: z.ZodString;
|
|
982
|
+
}, z.core.$strip>;
|
|
983
|
+
declare const ActionInvocationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
984
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
985
|
+
command: z.ZodString;
|
|
986
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
987
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
988
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
989
|
+
server: z.ZodString;
|
|
990
|
+
name: z.ZodString;
|
|
991
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
992
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
993
|
+
method: z.ZodEnum<{
|
|
994
|
+
GET: "GET";
|
|
995
|
+
POST: "POST";
|
|
996
|
+
PATCH: "PATCH";
|
|
997
|
+
DELETE: "DELETE";
|
|
998
|
+
}>;
|
|
999
|
+
path: z.ZodString;
|
|
1000
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
1001
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
1002
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1003
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
1004
|
+
resourceId: z.ZodString;
|
|
1005
|
+
}, z.core.$strip>], "kind">;
|
|
1006
|
+
declare const ActionSchema: z.ZodObject<{
|
|
1007
|
+
id: z.ZodString;
|
|
1008
|
+
order: z.ZodNumber;
|
|
1009
|
+
label: z.ZodString;
|
|
1010
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1011
|
+
scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
|
|
1012
|
+
domain: z.ZodString;
|
|
1013
|
+
}, z.core.$strip>]>>;
|
|
1014
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
1015
|
+
affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1016
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1017
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
1018
|
+
command: z.ZodString;
|
|
1019
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
1020
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1021
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
1022
|
+
server: z.ZodString;
|
|
1023
|
+
name: z.ZodString;
|
|
1024
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1025
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
1026
|
+
method: z.ZodEnum<{
|
|
1027
|
+
GET: "GET";
|
|
1028
|
+
POST: "POST";
|
|
1029
|
+
PATCH: "PATCH";
|
|
1030
|
+
DELETE: "DELETE";
|
|
1031
|
+
}>;
|
|
1032
|
+
path: z.ZodString;
|
|
1033
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
1034
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
1035
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1036
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
1037
|
+
resourceId: z.ZodString;
|
|
1038
|
+
}, z.core.$strip>], "kind">>>;
|
|
1039
|
+
knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1040
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
1041
|
+
active: "active";
|
|
1042
|
+
deprecated: "deprecated";
|
|
1043
|
+
draft: "draft";
|
|
1044
|
+
beta: "beta";
|
|
1045
|
+
archived: "archived";
|
|
1046
|
+
}>>;
|
|
1102
1047
|
}, z.core.$strip>;
|
|
1048
|
+
declare const ActionsDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1049
|
+
id: z.ZodString;
|
|
1050
|
+
order: z.ZodNumber;
|
|
1051
|
+
label: z.ZodString;
|
|
1052
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1053
|
+
scope: z.ZodDefault<z.ZodUnion<readonly [z.ZodLiteral<"global">, z.ZodObject<{
|
|
1054
|
+
domain: z.ZodString;
|
|
1055
|
+
}, z.core.$strip>]>>;
|
|
1056
|
+
resourceId: z.ZodOptional<z.ZodString>;
|
|
1057
|
+
affects: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1058
|
+
invocations: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1059
|
+
kind: z.ZodLiteral<"slash-command">;
|
|
1060
|
+
command: z.ZodString;
|
|
1061
|
+
toolFactory: z.ZodOptional<z.ZodString>;
|
|
1062
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1063
|
+
kind: z.ZodLiteral<"mcp-tool">;
|
|
1064
|
+
server: z.ZodString;
|
|
1065
|
+
name: z.ZodString;
|
|
1066
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1067
|
+
kind: z.ZodLiteral<"api-endpoint">;
|
|
1068
|
+
method: z.ZodEnum<{
|
|
1069
|
+
GET: "GET";
|
|
1070
|
+
POST: "POST";
|
|
1071
|
+
PATCH: "PATCH";
|
|
1072
|
+
DELETE: "DELETE";
|
|
1073
|
+
}>;
|
|
1074
|
+
path: z.ZodString;
|
|
1075
|
+
requestSchema: z.ZodOptional<z.ZodString>;
|
|
1076
|
+
responseSchema: z.ZodOptional<z.ZodString>;
|
|
1077
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1078
|
+
kind: z.ZodLiteral<"script-execution">;
|
|
1079
|
+
resourceId: z.ZodString;
|
|
1080
|
+
}, z.core.$strip>], "kind">>>;
|
|
1081
|
+
knowledge: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
|
|
1082
|
+
lifecycle: z.ZodDefault<z.ZodEnum<{
|
|
1083
|
+
active: "active";
|
|
1084
|
+
deprecated: "deprecated";
|
|
1085
|
+
draft: "draft";
|
|
1086
|
+
beta: "beta";
|
|
1087
|
+
archived: "archived";
|
|
1088
|
+
}>>;
|
|
1089
|
+
}, z.core.$strip>>>;
|
|
1090
|
+
/**
|
|
1091
|
+
* Generic empty default for the actions domain.
|
|
1092
|
+
* Elevasis-specific action entries (LEAD_GEN_ACTION_ENTRIES, CRM_ACTION_ENTRIES,
|
|
1093
|
+
* DEFAULT_ORGANIZATION_MODEL_ACTIONS) have been relocated to
|
|
1094
|
+
* `@repo/elevasis-core/src/organization-model/actions.ts`.
|
|
1095
|
+
* Tenant OM configs supply their own action entries via `resolveOrganizationModel`.
|
|
1096
|
+
*/
|
|
1097
|
+
declare const DEFAULT_ORGANIZATION_MODEL_ACTIONS: z.infer<typeof ActionsDomainSchema>;
|
|
1098
|
+
declare function findOrganizationActionById(id: string, actions?: z.infer<typeof ActionsDomainSchema>): z.infer<typeof ActionSchema> | undefined;
|
|
1099
|
+
/** Validate and return a single action entry. */
|
|
1100
|
+
declare function defineAction(entry: z.input<typeof ActionSchema>): z.infer<typeof ActionSchema>;
|
|
1101
|
+
/** Validate and return an id-keyed map of action entries. */
|
|
1102
|
+
declare function defineActions(entries: readonly z.input<typeof ActionSchema>[]): Record<string, z.infer<typeof ActionSchema>>;
|
|
1103
1103
|
|
|
1104
1104
|
declare const IconNameSchema: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1105
1105
|
message: "message";
|
|
@@ -1461,6 +1461,7 @@ declare const KnowledgeTargetKindSchema: z.ZodEnum<{
|
|
|
1461
1461
|
action: "action";
|
|
1462
1462
|
ontology: "ontology";
|
|
1463
1463
|
role: "role";
|
|
1464
|
+
client: "client";
|
|
1464
1465
|
stage: "stage";
|
|
1465
1466
|
goal: "goal";
|
|
1466
1467
|
"customer-segment": "customer-segment";
|
|
@@ -1474,6 +1475,7 @@ declare const KnowledgeTargetRefSchema: z.ZodObject<{
|
|
|
1474
1475
|
action: "action";
|
|
1475
1476
|
ontology: "ontology";
|
|
1476
1477
|
role: "role";
|
|
1478
|
+
client: "client";
|
|
1477
1479
|
stage: "stage";
|
|
1478
1480
|
goal: "goal";
|
|
1479
1481
|
"customer-segment": "customer-segment";
|
|
@@ -1490,6 +1492,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1490
1492
|
action: "action";
|
|
1491
1493
|
ontology: "ontology";
|
|
1492
1494
|
role: "role";
|
|
1495
|
+
client: "client";
|
|
1493
1496
|
stage: "stage";
|
|
1494
1497
|
goal: "goal";
|
|
1495
1498
|
"customer-segment": "customer-segment";
|
|
@@ -1501,7 +1504,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1501
1504
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
1502
1505
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1503
1506
|
target: {
|
|
1504
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1507
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1505
1508
|
id: string;
|
|
1506
1509
|
};
|
|
1507
1510
|
nodeId: string;
|
|
@@ -1509,7 +1512,7 @@ declare const KnowledgeLinkSchema: z.ZodPipe<z.ZodUnion<readonly [z.ZodObject<{
|
|
|
1509
1512
|
nodeId: string;
|
|
1510
1513
|
} | {
|
|
1511
1514
|
target: {
|
|
1512
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1515
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1513
1516
|
id: string;
|
|
1514
1517
|
};
|
|
1515
1518
|
}>>;
|
|
@@ -1602,6 +1605,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
1602
1605
|
action: "action";
|
|
1603
1606
|
ontology: "ontology";
|
|
1604
1607
|
role: "role";
|
|
1608
|
+
client: "client";
|
|
1605
1609
|
stage: "stage";
|
|
1606
1610
|
goal: "goal";
|
|
1607
1611
|
"customer-segment": "customer-segment";
|
|
@@ -1613,7 +1617,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
1613
1617
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
1614
1618
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1615
1619
|
target: {
|
|
1616
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1620
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1617
1621
|
id: string;
|
|
1618
1622
|
};
|
|
1619
1623
|
nodeId: string;
|
|
@@ -1621,7 +1625,7 @@ declare const OrgKnowledgeNodeSchema: z.ZodObject<{
|
|
|
1621
1625
|
nodeId: string;
|
|
1622
1626
|
} | {
|
|
1623
1627
|
target: {
|
|
1624
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1628
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1625
1629
|
id: string;
|
|
1626
1630
|
};
|
|
1627
1631
|
}>>>>;
|
|
@@ -1712,6 +1716,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1712
1716
|
action: "action";
|
|
1713
1717
|
ontology: "ontology";
|
|
1714
1718
|
role: "role";
|
|
1719
|
+
client: "client";
|
|
1715
1720
|
stage: "stage";
|
|
1716
1721
|
goal: "goal";
|
|
1717
1722
|
"customer-segment": "customer-segment";
|
|
@@ -1723,7 +1728,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1723
1728
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
1724
1729
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
1725
1730
|
target: {
|
|
1726
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1731
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1727
1732
|
id: string;
|
|
1728
1733
|
};
|
|
1729
1734
|
nodeId: string;
|
|
@@ -1731,7 +1736,7 @@ declare const KnowledgeDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.Zod
|
|
|
1731
1736
|
nodeId: string;
|
|
1732
1737
|
} | {
|
|
1733
1738
|
target: {
|
|
1734
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1739
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
1735
1740
|
id: string;
|
|
1736
1741
|
};
|
|
1737
1742
|
}>>>>;
|
|
@@ -3652,6 +3657,15 @@ type OrganizationModelDomainKey = z.infer<typeof OrganizationModelDomainKeySchem
|
|
|
3652
3657
|
type OrganizationModelDomainMetadata = z.infer<typeof OrganizationModelDomainMetadataSchema>;
|
|
3653
3658
|
type OrganizationModelDomainMetadataByDomain = z.infer<typeof OrganizationModelDomainMetadataByDomainSchema>;
|
|
3654
3659
|
type OrganizationModelBranding = z.infer<typeof OrganizationModelBrandingSchema>;
|
|
3660
|
+
type ClientProfile = z.infer<typeof ClientProfileSchema>;
|
|
3661
|
+
type ClientProfileBranding = z.infer<typeof ClientProfileBrandingSchema>;
|
|
3662
|
+
type ClientProfileIdentity = z.infer<typeof ClientProfileIdentitySchema>;
|
|
3663
|
+
type ClientProfileLinks = z.infer<typeof ClientProfileLinksSchema>;
|
|
3664
|
+
type ClientProfilePrompts = z.infer<typeof ClientProfilePromptsSchema>;
|
|
3665
|
+
type ClientProfileSource = z.infer<typeof ClientProfileSourceSchema>;
|
|
3666
|
+
type ClientProfileStatus = z.infer<typeof ClientProfileStatusSchema>;
|
|
3667
|
+
type ClientProfileWorkspace = z.infer<typeof ClientProfileWorkspaceSchema>;
|
|
3668
|
+
type OrganizationModelClients = z.infer<typeof ClientProfilesDomainSchema>;
|
|
3655
3669
|
type NodeIdPath = z.infer<typeof NodeIdPathSchema>;
|
|
3656
3670
|
type NodeIdString = z.infer<typeof NodeIdStringSchema>;
|
|
3657
3671
|
type OrganizationModelSurface = z.infer<typeof SurfaceDefinitionSchema>;
|
|
@@ -3929,6 +3943,9 @@ declare function defineDomainRecord<TSchema extends z.ZodTypeAny>(schema: TSchem
|
|
|
3929
3943
|
* for clarity at call sites.
|
|
3930
3944
|
*/
|
|
3931
3945
|
type SystemEntryWithTree = OrganizationModelSystemEntry;
|
|
3946
|
+
declare function listClientProfiles(model: OrganizationModel): OrganizationModel['clients'][string][];
|
|
3947
|
+
declare function getClientProfile(model: OrganizationModel, id: string): OrganizationModel['clients'][string] | undefined;
|
|
3948
|
+
declare function getClientProfileBySlug(model: OrganizationModel, slug: string): OrganizationModel['clients'][string] | undefined;
|
|
3932
3949
|
/**
|
|
3933
3950
|
* Flat depth-first enumeration of every system in the model tree.
|
|
3934
3951
|
* Each entry carries the computed full path and the system node.
|
|
@@ -4028,7 +4045,151 @@ declare const LinkSchema: z.ZodObject<{
|
|
|
4028
4045
|
}>;
|
|
4029
4046
|
}, z.core.$strip>;
|
|
4030
4047
|
|
|
4048
|
+
declare const ClientProfileStatusSchema: z.ZodEnum<{
|
|
4049
|
+
active: "active";
|
|
4050
|
+
onboarding: "onboarding";
|
|
4051
|
+
paused: "paused";
|
|
4052
|
+
completed: "completed";
|
|
4053
|
+
churned: "churned";
|
|
4054
|
+
}>;
|
|
4055
|
+
declare const ClientProfileSourceSchema: z.ZodString;
|
|
4056
|
+
declare const ClientProfileIdentitySchema: z.ZodDefault<z.ZodObject<{
|
|
4057
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4058
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4059
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4060
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4061
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
4062
|
+
}, z.core.$loose>>;
|
|
4063
|
+
declare const ClientProfileBrandingSchema: z.ZodDefault<z.ZodObject<{
|
|
4064
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4065
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4066
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4067
|
+
}, z.core.$loose>>;
|
|
4068
|
+
declare const ClientProfileWorkspaceSchema: z.ZodDefault<z.ZodObject<{
|
|
4069
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4070
|
+
"external-project": "external-project";
|
|
4071
|
+
"internal-project": "internal-project";
|
|
4072
|
+
none: "none";
|
|
4073
|
+
}>>;
|
|
4074
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
4075
|
+
platform: "platform";
|
|
4076
|
+
client: "client";
|
|
4077
|
+
developer: "developer";
|
|
4078
|
+
}>>;
|
|
4079
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4080
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
4081
|
+
}, z.core.$loose>>;
|
|
4082
|
+
declare const ClientProfileLinksSchema: z.ZodDefault<z.ZodObject<{
|
|
4083
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4084
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
4085
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
4086
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
4087
|
+
}, z.core.$strip>>;
|
|
4088
|
+
declare const ClientProfilePromptsSchema: z.ZodDefault<z.ZodObject<{
|
|
4089
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
4090
|
+
}, z.core.$loose>>;
|
|
4091
|
+
declare const ClientProfileSchema: z.ZodObject<{
|
|
4092
|
+
id: z.ZodString;
|
|
4093
|
+
slug: z.ZodString;
|
|
4094
|
+
name: z.ZodString;
|
|
4095
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
4096
|
+
active: "active";
|
|
4097
|
+
onboarding: "onboarding";
|
|
4098
|
+
paused: "paused";
|
|
4099
|
+
completed: "completed";
|
|
4100
|
+
churned: "churned";
|
|
4101
|
+
}>>;
|
|
4102
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4103
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
4104
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4105
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4106
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4107
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4108
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
4109
|
+
}, z.core.$loose>>;
|
|
4110
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
4111
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4112
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4113
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4114
|
+
}, z.core.$loose>>;
|
|
4115
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
4116
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4117
|
+
"external-project": "external-project";
|
|
4118
|
+
"internal-project": "internal-project";
|
|
4119
|
+
none: "none";
|
|
4120
|
+
}>>;
|
|
4121
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
4122
|
+
platform: "platform";
|
|
4123
|
+
client: "client";
|
|
4124
|
+
developer: "developer";
|
|
4125
|
+
}>>;
|
|
4126
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4127
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
4128
|
+
}, z.core.$loose>>;
|
|
4129
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
4130
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4131
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
4132
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
4133
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
4134
|
+
}, z.core.$strip>>;
|
|
4135
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
4136
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
4137
|
+
}, z.core.$loose>>;
|
|
4138
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4139
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4140
|
+
}, z.core.$strict>;
|
|
4141
|
+
declare const ClientProfilesDomainSchema: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4142
|
+
id: z.ZodString;
|
|
4143
|
+
slug: z.ZodString;
|
|
4144
|
+
name: z.ZodString;
|
|
4145
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
4146
|
+
active: "active";
|
|
4147
|
+
onboarding: "onboarding";
|
|
4148
|
+
paused: "paused";
|
|
4149
|
+
completed: "completed";
|
|
4150
|
+
churned: "churned";
|
|
4151
|
+
}>>;
|
|
4152
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4153
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
4154
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4155
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4156
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4157
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4158
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
4159
|
+
}, z.core.$loose>>;
|
|
4160
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
4161
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4162
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4163
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4164
|
+
}, z.core.$loose>>;
|
|
4165
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
4166
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4167
|
+
"external-project": "external-project";
|
|
4168
|
+
"internal-project": "internal-project";
|
|
4169
|
+
none: "none";
|
|
4170
|
+
}>>;
|
|
4171
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
4172
|
+
platform: "platform";
|
|
4173
|
+
client: "client";
|
|
4174
|
+
developer: "developer";
|
|
4175
|
+
}>>;
|
|
4176
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4177
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
4178
|
+
}, z.core.$loose>>;
|
|
4179
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
4180
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4181
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
4182
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
4183
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
4184
|
+
}, z.core.$strip>>;
|
|
4185
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
4186
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
4187
|
+
}, z.core.$loose>>;
|
|
4188
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4189
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4190
|
+
}, z.core.$strict>>>;
|
|
4031
4191
|
declare const OrganizationModelDomainKeySchema: z.ZodEnum<{
|
|
4192
|
+
clients: "clients";
|
|
4032
4193
|
knowledge: "knowledge";
|
|
4033
4194
|
resources: "resources";
|
|
4034
4195
|
systems: "systems";
|
|
@@ -4058,6 +4219,10 @@ declare const OrganizationModelDomainMetadataByDomainSchema: z.ZodPipe<z.ZodDefa
|
|
|
4058
4219
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4059
4220
|
lastModified: z.ZodString;
|
|
4060
4221
|
}, z.core.$strip>>;
|
|
4222
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
4223
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4224
|
+
lastModified: z.ZodString;
|
|
4225
|
+
}, z.core.$strip>>;
|
|
4061
4226
|
customers: z.ZodOptional<z.ZodObject<{
|
|
4062
4227
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4063
4228
|
lastModified: z.ZodString;
|
|
@@ -4115,6 +4280,10 @@ declare const OrganizationModelDomainMetadataByDomainSchema: z.ZodPipe<z.ZodDefa
|
|
|
4115
4280
|
version: 1;
|
|
4116
4281
|
lastModified: string;
|
|
4117
4282
|
};
|
|
4283
|
+
clients: {
|
|
4284
|
+
version: 1;
|
|
4285
|
+
lastModified: string;
|
|
4286
|
+
};
|
|
4118
4287
|
customers: {
|
|
4119
4288
|
version: 1;
|
|
4120
4289
|
lastModified: string;
|
|
@@ -4172,6 +4341,10 @@ declare const OrganizationModelDomainMetadataByDomainSchema: z.ZodPipe<z.ZodDefa
|
|
|
4172
4341
|
version: 1;
|
|
4173
4342
|
lastModified: string;
|
|
4174
4343
|
} | undefined;
|
|
4344
|
+
clients?: {
|
|
4345
|
+
version: 1;
|
|
4346
|
+
lastModified: string;
|
|
4347
|
+
} | undefined;
|
|
4175
4348
|
customers?: {
|
|
4176
4349
|
version: 1;
|
|
4177
4350
|
lastModified: string;
|
|
@@ -4223,6 +4396,7 @@ declare const OrganizationModelDomainMetadataByDomainSchema: z.ZodPipe<z.ZodDefa
|
|
|
4223
4396
|
}>>;
|
|
4224
4397
|
declare const OrganizationModelSchema: z.ZodObject<{
|
|
4225
4398
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4399
|
+
snapshotHash: z.ZodOptional<z.ZodString>;
|
|
4226
4400
|
domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
4227
4401
|
branding: z.ZodOptional<z.ZodObject<{
|
|
4228
4402
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
@@ -4232,6 +4406,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4232
4406
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4233
4407
|
lastModified: z.ZodString;
|
|
4234
4408
|
}, z.core.$strip>>;
|
|
4409
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
4410
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4411
|
+
lastModified: z.ZodString;
|
|
4412
|
+
}, z.core.$strip>>;
|
|
4235
4413
|
customers: z.ZodOptional<z.ZodObject<{
|
|
4236
4414
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
4237
4415
|
lastModified: z.ZodString;
|
|
@@ -4289,6 +4467,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4289
4467
|
version: 1;
|
|
4290
4468
|
lastModified: string;
|
|
4291
4469
|
};
|
|
4470
|
+
clients: {
|
|
4471
|
+
version: 1;
|
|
4472
|
+
lastModified: string;
|
|
4473
|
+
};
|
|
4292
4474
|
customers: {
|
|
4293
4475
|
version: 1;
|
|
4294
4476
|
lastModified: string;
|
|
@@ -4346,6 +4528,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4346
4528
|
version: 1;
|
|
4347
4529
|
lastModified: string;
|
|
4348
4530
|
} | undefined;
|
|
4531
|
+
clients?: {
|
|
4532
|
+
version: 1;
|
|
4533
|
+
lastModified: string;
|
|
4534
|
+
} | undefined;
|
|
4349
4535
|
customers?: {
|
|
4350
4536
|
version: 1;
|
|
4351
4537
|
lastModified: string;
|
|
@@ -4538,6 +4724,56 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
4538
4724
|
shortName: z.ZodOptional<z.ZodString>;
|
|
4539
4725
|
description: z.ZodOptional<z.ZodString>;
|
|
4540
4726
|
}, z.core.$loose>>;
|
|
4727
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4728
|
+
id: z.ZodString;
|
|
4729
|
+
slug: z.ZodString;
|
|
4730
|
+
name: z.ZodString;
|
|
4731
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
4732
|
+
active: "active";
|
|
4733
|
+
onboarding: "onboarding";
|
|
4734
|
+
paused: "paused";
|
|
4735
|
+
completed: "completed";
|
|
4736
|
+
churned: "churned";
|
|
4737
|
+
}>>;
|
|
4738
|
+
source: z.ZodOptional<z.ZodString>;
|
|
4739
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
4740
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
4741
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
4742
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
4743
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4744
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
4745
|
+
}, z.core.$loose>>;
|
|
4746
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
4747
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
4748
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
4749
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4750
|
+
}, z.core.$loose>>;
|
|
4751
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
4752
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
4753
|
+
"external-project": "external-project";
|
|
4754
|
+
"internal-project": "internal-project";
|
|
4755
|
+
none: "none";
|
|
4756
|
+
}>>;
|
|
4757
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
4758
|
+
platform: "platform";
|
|
4759
|
+
client: "client";
|
|
4760
|
+
developer: "developer";
|
|
4761
|
+
}>>;
|
|
4762
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4763
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
4764
|
+
}, z.core.$loose>>;
|
|
4765
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
4766
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
4767
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
4768
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
4769
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
4770
|
+
}, z.core.$strip>>;
|
|
4771
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
4772
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
4773
|
+
}, z.core.$loose>>;
|
|
4774
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4775
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
4776
|
+
}, z.core.$strict>>>>;
|
|
4541
4777
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
4542
4778
|
id: z.ZodString;
|
|
4543
4779
|
order: z.ZodNumber;
|
|
@@ -5191,6 +5427,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
5191
5427
|
action: "action";
|
|
5192
5428
|
ontology: "ontology";
|
|
5193
5429
|
role: "role";
|
|
5430
|
+
client: "client";
|
|
5194
5431
|
stage: "stage";
|
|
5195
5432
|
goal: "goal";
|
|
5196
5433
|
"customer-segment": "customer-segment";
|
|
@@ -5202,7 +5439,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
5202
5439
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
5203
5440
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
5204
5441
|
target: {
|
|
5205
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
5442
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
5206
5443
|
id: string;
|
|
5207
5444
|
};
|
|
5208
5445
|
nodeId: string;
|
|
@@ -5210,7 +5447,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
5210
5447
|
nodeId: string;
|
|
5211
5448
|
} | {
|
|
5212
5449
|
target: {
|
|
5213
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
5450
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
5214
5451
|
id: string;
|
|
5215
5452
|
};
|
|
5216
5453
|
}>>>>;
|
|
@@ -5219,5 +5456,5 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
5219
5456
|
}, z.core.$strip>>>>;
|
|
5220
5457
|
}, z.core.$strip>;
|
|
5221
5458
|
|
|
5222
|
-
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, SYSTEM_INTERFACE_PROFILES, SYSTEM_INTERFACE_READINESS_PROFILES, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, TopbarActionNodeSchema, TopbarSectionSchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
5223
|
-
export type { BaseOmScaffoldSpec, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelContractRef, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResourceOntologyBindingContract, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemApiInterface, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemInterfaceKey, OrganizationModelSystemInterfaceLifecycle, OrganizationModelSystemInterfaceReadinessProfile, OrganizationModelSystemInterfaceRef, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopbarActionNode, OrganizationModelTopbarSection, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelTopologySystemInterfaceGrant, OrganizationModelTopologySystemInterfaceGrantMetadata, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|
|
5459
|
+
export { ActionIdSchema, ActionInvocationKindSchema, ActionInvocationSchema, ActionRefSchema, ActionSchema, ActionScopeSchema, ActionsDomainSchema, AgentKindSchema, AgentResourceEntrySchema, AgentRoleHolderSchema, ApiEndpointInvocationSchema, ClientProfileBrandingSchema, ClientProfileIdentitySchema, ClientProfileLinksSchema, ClientProfilePromptsSchema, ClientProfileSchema, ClientProfileSourceSchema, ClientProfileStatusSchema, ClientProfileWorkspaceSchema, ClientProfilesDomainSchema, CodeReferenceRoleSchema, CodeReferenceSchema, ContractRefSchema, CustomerSegmentSchema, CustomersDomainSchema, DEFAULT_ONTOLOGY_SCOPE, DEFAULT_ORGANIZATION_MODEL, DEFAULT_ORGANIZATION_MODEL_ACTIONS, DEFAULT_ORGANIZATION_MODEL_CUSTOMERS, DEFAULT_ORGANIZATION_MODEL_DOMAIN_METADATA, DEFAULT_ORGANIZATION_MODEL_GOALS, DEFAULT_ORGANIZATION_MODEL_NAVIGATION, DEFAULT_ORGANIZATION_MODEL_OFFERINGS, DEFAULT_ORGANIZATION_MODEL_POLICIES, DEFAULT_ORGANIZATION_MODEL_RESOURCES, DEFAULT_ORGANIZATION_MODEL_ROLES, DEFAULT_ORGANIZATION_MODEL_STATUSES, DEFAULT_ORGANIZATION_MODEL_SYSTEMS, DEFAULT_ORGANIZATION_MODEL_TOPOLOGY, EntitiesDomainSchema, EntityIdSchema, EntityLinkKindSchema, EntityLinkSchema, EntitySchema, EventDescriptorSchema, EventEmissionDescriptorSchema, EventIdSchema, FirmographicsSchema, GoalsDomainSchema, HumanRoleHolderSchema, IconNameSchema, IntegrationResourceEntrySchema, KNOWLEDGE_FEATURE_ID, KNOWLEDGE_SYSTEM_ID, KeyResultSchema, KnowledgeDomainSchema, KnowledgeLinkSchema, KnowledgeTargetKindSchema, KnowledgeTargetRefSchema, LinkSchema, MONITORING_FEATURE_ID, MONITORING_SYSTEM_ID, McpToolInvocationSchema, NavigationGroupSchema, NodeIdPathSchema, NodeIdStringSchema, OPERATIONS_COMMAND_VIEW_SURFACE_ID, OPERATIONS_FEATURE_ID, OPERATIONS_SYSTEM_ID, ORGANIZATION_MODEL_ICON_TOKENS, ObjectiveSchema, OfferingsDomainSchema, OmTopologyDomainSchema, OmTopologyMetadataSchema, OmTopologyNodeKindSchema, OmTopologyNodeRefSchema, OmTopologyRelationshipKindSchema, OmTopologyRelationshipSchema, OmTopologySystemInterfaceGrantMetadataSchema, OmTopologySystemInterfaceGrantSchema, OntologyActionTypeSchema, OntologyCatalogTypeSchema, OntologyEventTypeSchema, OntologyGroupSchema, OntologyIdSchema, OntologyInterfaceTypeSchema, OntologyKindSchema, OntologyLinkTypeSchema, OntologyObjectTypeSchema, OntologyScopeSchema, OntologySharedPropertySchema, OntologySurfaceTypeSchema, OntologyValueTypeSchema, OrgKnowledgeKindSchema, OrgKnowledgeNodeSchema, OrganizationModelBuiltinIconTokenSchema, OrganizationModelDomainKeySchema, OrganizationModelDomainMetadataByDomainSchema, OrganizationModelDomainMetadataSchema, OrganizationModelIconTokenSchema, OrganizationModelNavigationSchema, OrganizationModelSchema, PROJECTS_FEATURE_ID, PROJECTS_INDEX_SURFACE_ID, PROJECTS_SYSTEM_ID, PROJECTS_VIEW_ACTION_ID, PROSPECTING_FEATURE_ID, PROSPECTING_LISTS_SURFACE_ID, PROSPECTING_SYSTEM_ID, PoliciesDomainSchema, PolicyApplicabilitySchema, PolicyEffectSchema, PolicyIdSchema, PolicyPredicateSchema, PolicySchema, PolicyTriggerSchema, PricingModelSchema, ProductSchema, ResourceEntrySchema, ResourceGovernanceStatusSchema, ResourceIdSchema, ResourceKindSchema, ResourceOntologyBindingSchema, ResourcesDomainSchema, RoleHolderSchema, RoleHoldersSchema, RoleIdSchema, RoleSchema, RolesDomainSchema, SALES_FEATURE_ID, SALES_PIPELINE_SURFACE_ID, SALES_SYSTEM_ID, SEO_FEATURE_ID, SEO_SYSTEM_ID, SETTINGS_FEATURE_ID, SETTINGS_ROLES_SURFACE_ID, SETTINGS_SYSTEM_ID, SYSTEM_INTERFACE_PROFILES, SYSTEM_INTERFACE_READINESS_PROFILES, ScriptExecutionInvocationSchema, ScriptResourceEntrySchema, ScriptResourceLanguageSchema, ScriptResourceSourceSchema, SidebarNavigationSchema, SidebarNodeSchema, SidebarSectionSchema, SidebarSurfaceTargetsSchema, SlashCommandInvocationSchema, StatusEntrySchema, StatusSemanticClassSchema, StatusesDomainSchema, SurfaceDefinitionSchema, SurfaceTypeSchema, SystemApiInterfaceSchema, SystemEntrySchema, SystemIdSchema, SystemInterfaceKeySchema, SystemInterfaceLifecycleSchema, SystemInterfaceReadinessProfileSchema, SystemInterfaceRefSchema, SystemKindSchema, SystemLifecycleSchema, SystemPathSchema, SystemStatusSchema, SystemUiSchema, SystemsDomainSchema, TeamRoleHolderSchema, TechStackEntrySchema, TopbarActionNodeSchema, TopbarSectionSchema, UiPositionSchema, WorkflowResourceEntrySchema, compileOrganizationOntology, compileTopologyNodeRef, createFoundationOrganizationModel, defineAction, defineActions, defineCustomer, defineCustomers, defineDomainRecord, defineEntities, defineEntity, defineGoal, defineGoals, defineKnowledgeNode, defineKnowledgeNodes, defineOffering, defineOfferings, defineOrganizationModel, definePolicies, definePolicy, defineResource, defineResourceOntology, defineResources, defineRole, defineRoles, defineStatus, defineStatuses, defineSystem, defineSystems, defineTopology, defineTopologyRelationship, findOrganizationActionById, formatOntologyId, getClientProfile, getClientProfileBySlug, getOntologyDiagnostics, getSortedSidebarEntries, isOntologyGraphNodeId, isOntologyTopologyRef, listAllSystems, listClientProfiles, listResolvedOntologyRecords, ontologyGraphNodeId, ontologyIdFromGraphNodeId, parseContractRef, parseOntologyId, parseTopologyNodeRef, projectOrganizationSurfaces, resolveOrganizationModel, resolveOrganizationModelWithResources, scaffoldOrganizationModel, topologyRef, topologyRelationship, validateOrganizationSurfaceProjection };
|
|
5460
|
+
export type { BaseOmScaffoldSpec, ClientProfile, ClientProfileBranding, ClientProfileIdentity, ClientProfileLinks, ClientProfilePrompts, ClientProfileSource, ClientProfileStatus, ClientProfileWorkspace, DeepPartial, Entity, EntityId, EntityLink, EventDescriptor, EventEmissionDescriptor, EventId, FoundationBranding, FoundationNavigationSurface, FoundationOrganizationModel, FoundationSurfaceIcon, FoundationSurfaceType, KnowledgeLink, KnowledgeNodeScaffoldSpec, KnowledgeTargetKind, KnowledgeTargetRef, LeadGenStageCatalogEntry, NodeIdPath, NodeIdString, OmScaffoldEdit, OmScaffoldIntent, OmScaffoldPlan, OmScaffoldSpec, OmScaffoldWrite, OntologyActionType, OntologyCatalogType, OntologyCompilation, OntologyDiagnostic, OntologyEventType, OntologyGroup, OntologyId, OntologyInterfaceType, OntologyKind, OntologyLinkType, OntologyObjectType, OntologyRecordOrigin, OntologyRecordScaffoldSpec, OntologyScope, OntologySharedProperty, OntologySurfaceType, OntologyValueType, OrgKnowledgeKind, OrgKnowledgeNode, OrgKnowledgeNodeInput, OrganizationModel, OrganizationModelAction, OrganizationModelActionId, OrganizationModelActionInvocation, OrganizationModelActionInvocationKind, OrganizationModelActionRef, OrganizationModelActionScope, OrganizationModelActions, OrganizationModelAgentKind, OrganizationModelAgentResourceEntry, OrganizationModelAgentRoleHolder, OrganizationModelBranding, OrganizationModelBuiltinIconToken, OrganizationModelClients, OrganizationModelCodeReference, OrganizationModelCodeReferenceRole, OrganizationModelContractRef, OrganizationModelCustomerFirmographics, OrganizationModelCustomerSegment, OrganizationModelCustomers, OrganizationModelDomainKey, OrganizationModelDomainMetadata, OrganizationModelDomainMetadataByDomain, OrganizationModelEntities, OrganizationModelEntity, OrganizationModelGoals, OrganizationModelHumanRoleHolder, OrganizationModelIconToken, OrganizationModelIntegrationResourceEntry, OrganizationModelKeyResult, OrganizationModelKnowledge, OrganizationModelNavigation, OrganizationModelObjective, OrganizationModelOfferings, OrganizationModelPolicies, OrganizationModelPolicy, OrganizationModelPolicyApplicability, OrganizationModelPolicyEffect, OrganizationModelPolicyId, OrganizationModelPolicyPredicate, OrganizationModelPolicyTrigger, OrganizationModelPricingModel, OrganizationModelProduct, OrganizationModelResourceEntry, OrganizationModelResourceGovernanceStatus, OrganizationModelResourceId, OrganizationModelResourceKind, OrganizationModelResourceOntologyBinding, OrganizationModelResourceOntologyBindingContract, OrganizationModelResources, OrganizationModelRole, OrganizationModelRoleHolder, OrganizationModelRoleId, OrganizationModelRoles, OrganizationModelScriptResourceEntry, OrganizationModelScriptResourceLanguage, OrganizationModelScriptResourceSource, OrganizationModelSidebar, OrganizationModelSidebarGroupNode, OrganizationModelSidebarNode, OrganizationModelSidebarSection, OrganizationModelSidebarSurfaceNode, OrganizationModelSidebarSurfaceTargets, OrganizationModelStatusEntry, OrganizationModelStatusSemanticClass, OrganizationModelStatuses, OrganizationModelSystemApiInterface, OrganizationModelSystemEntry, OrganizationModelSystemId, OrganizationModelSystemInterfaceKey, OrganizationModelSystemInterfaceLifecycle, OrganizationModelSystemInterfaceReadinessProfile, OrganizationModelSystemInterfaceRef, OrganizationModelSystemKind, OrganizationModelSystemLifecycle, OrganizationModelSystemStatus, OrganizationModelSystems, OrganizationModelTeamRoleHolder, OrganizationModelTechStackEntry, OrganizationModelTopbarActionNode, OrganizationModelTopbarSection, OrganizationModelTopology, OrganizationModelTopologyMetadata, OrganizationModelTopologyNodeKind, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelTopologyRelationshipKind, OrganizationModelTopologySystemInterfaceGrant, OrganizationModelTopologySystemInterfaceGrantMetadata, OrganizationModelWorkflowResourceEntry, OrganizationSurfaceProjection, OrganizationSurfaceProjectionIssue, OrganizationSurfaceProjectionIssueCode, ParsedContractRef, ParsedOntologyId, ResolvedOntologyIndex, ResolvedOntologyRecord, ResolvedOntologyRecordEntry, ResolvedOrganizationModel, ResolvedSystemEntry, ResourceScaffoldSpec, SystemEntryWithTree, SystemScaffoldSpec };
|