@elevasis/sdk 1.30.2 → 1.32.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 +202 -10
- package/dist/index.d.ts +125 -10
- package/dist/index.js +40 -3
- package/dist/node/index.d.ts +66 -2
- package/dist/test-utils/index.d.ts +72 -5
- package/dist/test-utils/index.js +14 -2
- package/package.json +2 -2
- package/reference/claude-config/skills/om/SKILL.md +42 -25
- package/reference/claude-config/skills/om/operations/scaffold.md +1 -1
- package/reference/claude-config/sync-notes/2026-05-28-om-snapshot-sdk-workflow-config.md +33 -0
- package/reference/claude-config/sync-notes/2026-05-30-client-source-and-om-profiles.md +39 -0
- package/reference/index.mdx +7 -3
- package/reference/scaffold/reference/contracts.md +54 -0
- package/reference/sdk/concepts.mdx +1 -1
- package/reference/sdk/framework/agent.mdx +156 -156
- package/reference/sdk/framework/index.mdx +4 -4
- package/reference/sdk/framework/project-structure.mdx +280 -280
- package/reference/sdk/framework/resource-documentation.mdx +2 -2
- package/reference/sdk/getting-started.mdx +7 -7
- package/reference/sdk/index.mdx +2 -1
- package/reference/sdk/platform-tools/index.mdx +7 -7
- package/reference/sdk/resources/index.mdx +3 -3
- package/reference/sdk/templates/data-enrichment.mdx +162 -162
- package/reference/sdk/templates/lead-scorer.mdx +175 -175
- package/reference/sdk/templates/text-classifier.mdx +147 -147
package/dist/index.d.ts
CHANGED
|
@@ -2675,6 +2675,7 @@ type Database = {
|
|
|
2675
2675
|
organization_id: string;
|
|
2676
2676
|
primary_company_id: string | null;
|
|
2677
2677
|
primary_contact_id: string | null;
|
|
2678
|
+
source: string;
|
|
2678
2679
|
source_deal_id: string | null;
|
|
2679
2680
|
status: string;
|
|
2680
2681
|
updated_at: string;
|
|
@@ -2688,6 +2689,7 @@ type Database = {
|
|
|
2688
2689
|
organization_id: string;
|
|
2689
2690
|
primary_company_id?: string | null;
|
|
2690
2691
|
primary_contact_id?: string | null;
|
|
2692
|
+
source?: string;
|
|
2691
2693
|
source_deal_id?: string | null;
|
|
2692
2694
|
status?: string;
|
|
2693
2695
|
updated_at?: string;
|
|
@@ -2701,6 +2703,7 @@ type Database = {
|
|
|
2701
2703
|
organization_id?: string;
|
|
2702
2704
|
primary_company_id?: string | null;
|
|
2703
2705
|
primary_contact_id?: string | null;
|
|
2706
|
+
source?: string;
|
|
2704
2707
|
source_deal_id?: string | null;
|
|
2705
2708
|
status?: string;
|
|
2706
2709
|
updated_at?: string;
|
|
@@ -6441,7 +6444,7 @@ declare const ActivityEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6441
6444
|
}, z.core.$strip>], "type">;
|
|
6442
6445
|
type ActivityEvent = z.infer<typeof ActivityEventSchema>;
|
|
6443
6446
|
|
|
6444
|
-
interface Action {
|
|
6447
|
+
interface Action$1 {
|
|
6445
6448
|
key: string;
|
|
6446
6449
|
label: string;
|
|
6447
6450
|
payloadSchema?: z.ZodTypeAny;
|
|
@@ -6457,7 +6460,7 @@ type DealActionInput = AcqDealRow & {
|
|
|
6457
6460
|
ownership?: 'us' | 'them' | null;
|
|
6458
6461
|
nextAction?: string | null;
|
|
6459
6462
|
};
|
|
6460
|
-
declare function deriveActions(deal: DealActionInput, actions?: ActionDef[]): Action[];
|
|
6463
|
+
declare function deriveActions(deal: DealActionInput, actions?: ActionDef[]): Action$1[];
|
|
6461
6464
|
|
|
6462
6465
|
declare const OntologyIdSchema: z.ZodString;
|
|
6463
6466
|
type OntologyId = z.infer<typeof OntologyIdSchema>;
|
|
@@ -6798,6 +6801,7 @@ type Link = z.infer<typeof LinkSchema>;
|
|
|
6798
6801
|
|
|
6799
6802
|
declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
6800
6803
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6804
|
+
snapshotHash: z.ZodOptional<z.ZodString>;
|
|
6801
6805
|
domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
6802
6806
|
branding: z.ZodOptional<z.ZodObject<{
|
|
6803
6807
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
@@ -6807,6 +6811,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
6807
6811
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6808
6812
|
lastModified: z.ZodString;
|
|
6809
6813
|
}, z.core.$strip>>;
|
|
6814
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
6815
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6816
|
+
lastModified: z.ZodString;
|
|
6817
|
+
}, z.core.$strip>>;
|
|
6810
6818
|
customers: z.ZodOptional<z.ZodObject<{
|
|
6811
6819
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6812
6820
|
lastModified: z.ZodString;
|
|
@@ -6864,6 +6872,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
6864
6872
|
version: 1;
|
|
6865
6873
|
lastModified: string;
|
|
6866
6874
|
};
|
|
6875
|
+
clients: {
|
|
6876
|
+
version: 1;
|
|
6877
|
+
lastModified: string;
|
|
6878
|
+
};
|
|
6867
6879
|
customers: {
|
|
6868
6880
|
version: 1;
|
|
6869
6881
|
lastModified: string;
|
|
@@ -6921,6 +6933,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
6921
6933
|
version: 1;
|
|
6922
6934
|
lastModified: string;
|
|
6923
6935
|
} | undefined;
|
|
6936
|
+
clients?: {
|
|
6937
|
+
version: 1;
|
|
6938
|
+
lastModified: string;
|
|
6939
|
+
} | undefined;
|
|
6924
6940
|
customers?: {
|
|
6925
6941
|
version: 1;
|
|
6926
6942
|
lastModified: string;
|
|
@@ -7113,6 +7129,56 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7113
7129
|
shortName: z.ZodOptional<z.ZodString>;
|
|
7114
7130
|
description: z.ZodOptional<z.ZodString>;
|
|
7115
7131
|
}, z.core.$loose>>;
|
|
7132
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7133
|
+
id: z.ZodString;
|
|
7134
|
+
slug: z.ZodString;
|
|
7135
|
+
name: z.ZodString;
|
|
7136
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
7137
|
+
active: "active";
|
|
7138
|
+
onboarding: "onboarding";
|
|
7139
|
+
paused: "paused";
|
|
7140
|
+
completed: "completed";
|
|
7141
|
+
churned: "churned";
|
|
7142
|
+
}>>;
|
|
7143
|
+
source: z.ZodOptional<z.ZodString>;
|
|
7144
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
7145
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
7146
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
7147
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
7148
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7149
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
7150
|
+
}, z.core.$loose>>;
|
|
7151
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
7152
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
7153
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
7154
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7155
|
+
}, z.core.$loose>>;
|
|
7156
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
7157
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
7158
|
+
"external-project": "external-project";
|
|
7159
|
+
"internal-project": "internal-project";
|
|
7160
|
+
none: "none";
|
|
7161
|
+
}>>;
|
|
7162
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
7163
|
+
platform: "platform";
|
|
7164
|
+
client: "client";
|
|
7165
|
+
developer: "developer";
|
|
7166
|
+
}>>;
|
|
7167
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
7168
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
7169
|
+
}, z.core.$loose>>;
|
|
7170
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
7171
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
7172
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
7173
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
7174
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
7175
|
+
}, z.core.$strip>>;
|
|
7176
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
7177
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
7178
|
+
}, z.core.$loose>>;
|
|
7179
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
7180
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
7181
|
+
}, z.core.$strict>>>>;
|
|
7116
7182
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
7117
7183
|
id: z.ZodString;
|
|
7118
7184
|
order: z.ZodNumber;
|
|
@@ -7766,6 +7832,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7766
7832
|
action: "action";
|
|
7767
7833
|
ontology: "ontology";
|
|
7768
7834
|
role: "role";
|
|
7835
|
+
client: "client";
|
|
7769
7836
|
stage: "stage";
|
|
7770
7837
|
goal: "goal";
|
|
7771
7838
|
"customer-segment": "customer-segment";
|
|
@@ -7777,7 +7844,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7777
7844
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
7778
7845
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
7779
7846
|
target: {
|
|
7780
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7847
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7781
7848
|
id: string;
|
|
7782
7849
|
};
|
|
7783
7850
|
nodeId: string;
|
|
@@ -7785,7 +7852,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
7785
7852
|
nodeId: string;
|
|
7786
7853
|
} | {
|
|
7787
7854
|
target: {
|
|
7788
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7855
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7789
7856
|
id: string;
|
|
7790
7857
|
};
|
|
7791
7858
|
}>>>>;
|
|
@@ -7807,7 +7874,12 @@ type CrmApiOntologyValidationIndex = BusinessOntologyValidationIndexBase & {
|
|
|
7807
7874
|
crmPipelineCatalog: OntologyCatalogType;
|
|
7808
7875
|
};
|
|
7809
7876
|
type BusinessOntologyValidationIndex = LeadGenApiOntologyValidationIndex & CrmApiOntologyValidationIndex;
|
|
7810
|
-
type SystemInterfaceReadinessIssueFamily = 'SYSTEM_INTERFACE_MISSING' | 'SYSTEM_INTERFACE_DISABLED' | 'SYSTEM_INTERFACE_INVALID' | 'SYSTEM_INTERFACE_NOT_READY' | 'SYSTEM_BRIDGE_NOT_READY'
|
|
7877
|
+
type SystemInterfaceReadinessIssueFamily = 'SYSTEM_INTERFACE_MISSING' | 'SYSTEM_INTERFACE_DISABLED' | 'SYSTEM_INTERFACE_INVALID' | 'SYSTEM_INTERFACE_NOT_READY' | 'SYSTEM_BRIDGE_NOT_READY'
|
|
7878
|
+
/**
|
|
7879
|
+
* The deployed OM snapshot hash does not match the canonical source hash.
|
|
7880
|
+
* Redeploy with `pnpm operations:deploy` to refresh the snapshot.
|
|
7881
|
+
*/
|
|
7882
|
+
| 'STALE_OM_SNAPSHOT';
|
|
7811
7883
|
/**
|
|
7812
7884
|
* Legacy mixed acquisition index.
|
|
7813
7885
|
*
|
|
@@ -9595,8 +9667,8 @@ declare const ProjectSchemas: {
|
|
|
9595
9667
|
}>;
|
|
9596
9668
|
status: z.ZodOptional<z.ZodEnum<{
|
|
9597
9669
|
active: "active";
|
|
9598
|
-
completed: "completed";
|
|
9599
9670
|
paused: "paused";
|
|
9671
|
+
completed: "completed";
|
|
9600
9672
|
on_track: "on_track";
|
|
9601
9673
|
at_risk: "at_risk";
|
|
9602
9674
|
blocked: "blocked";
|
|
@@ -9620,8 +9692,8 @@ declare const ProjectSchemas: {
|
|
|
9620
9692
|
}>>;
|
|
9621
9693
|
status: z.ZodOptional<z.ZodEnum<{
|
|
9622
9694
|
active: "active";
|
|
9623
|
-
completed: "completed";
|
|
9624
9695
|
paused: "paused";
|
|
9696
|
+
completed: "completed";
|
|
9625
9697
|
on_track: "on_track";
|
|
9626
9698
|
at_risk: "at_risk";
|
|
9627
9699
|
blocked: "blocked";
|
|
@@ -9645,8 +9717,8 @@ declare const ProjectSchemas: {
|
|
|
9645
9717
|
}>>;
|
|
9646
9718
|
status: z.ZodOptional<z.ZodEnum<{
|
|
9647
9719
|
active: "active";
|
|
9648
|
-
completed: "completed";
|
|
9649
9720
|
paused: "paused";
|
|
9721
|
+
completed: "completed";
|
|
9650
9722
|
on_track: "on_track";
|
|
9651
9723
|
at_risk: "at_risk";
|
|
9652
9724
|
blocked: "blocked";
|
|
@@ -12383,6 +12455,27 @@ type OrganizationModelTopology = z.infer<typeof OmTopologyDomainSchema>
|
|
|
12383
12455
|
type OrganizationModelTopologyNodeRef = z.infer<typeof OmTopologyNodeRefSchema>
|
|
12384
12456
|
type OrganizationModelTopologyRelationship = z.infer<typeof OmTopologyRelationshipSchema>
|
|
12385
12457
|
|
|
12458
|
+
declare const ActionSchema = z.object({
|
|
12459
|
+
id: ActionIdSchema,
|
|
12460
|
+
/** Domain-map iteration order. Convention: multiples of 10 (10, 20, 30, ...) to allow easy insertion. */
|
|
12461
|
+
order: z.number(),
|
|
12462
|
+
label: LabelSchema,
|
|
12463
|
+
description: DescriptionSchema.optional(),
|
|
12464
|
+
scope: ActionScopeSchema.default('global'),
|
|
12465
|
+
resourceId: ActionResourceIdSchema.optional(),
|
|
12466
|
+
affects: z.array(EntityIdSchema.meta({ ref: 'entity' })).optional(),
|
|
12467
|
+
invocations: z.array(ActionInvocationSchema).default([]),
|
|
12468
|
+
knowledge: z
|
|
12469
|
+
.array(ModelIdSchema.meta({ ref: 'knowledge' }))
|
|
12470
|
+
.default([])
|
|
12471
|
+
.optional(),
|
|
12472
|
+
lifecycle: z
|
|
12473
|
+
.enum(['draft', 'beta', 'active', 'deprecated', 'archived'])
|
|
12474
|
+
.meta({ label: 'Lifecycle', color: 'teal' })
|
|
12475
|
+
.default('active')
|
|
12476
|
+
})
|
|
12477
|
+
type Action = z.infer<typeof ActionSchema>
|
|
12478
|
+
|
|
12386
12479
|
// CRM stage/state catalogs are model-owned (authored in @repo/elevasis-core
|
|
12387
12480
|
// canonicalOrganizationModel). The published core schema validates only the
|
|
12388
12481
|
// transport shape; closed-catalog membership is enforced by the caller/API
|
|
@@ -12421,6 +12514,28 @@ declare function withPlatformIntegrationResourceDescriptors(integrations: Integr
|
|
|
12421
12514
|
declare function projectTopologyRelationships(model: Pick<OrganizationModel, 'resources' | 'topology'>): ResourceRelationships;
|
|
12422
12515
|
declare function projectDeploymentSpec(options: ProjectDeploymentSpecOptions): DeploymentSpec;
|
|
12423
12516
|
|
|
12517
|
+
/**
|
|
12518
|
+
* Browser-safe generic workflow config helper.
|
|
12519
|
+
*
|
|
12520
|
+
* Promoted from @repo/elevasis-core so any workflow family (lead-gen, CRM, etc.)
|
|
12521
|
+
* can derive resourceId, actions, primaryAction, name, and description from
|
|
12522
|
+
* the canonical OM Resource descriptor without duplicating validation logic.
|
|
12523
|
+
*
|
|
12524
|
+
* This file intentionally imports NOTHING from @elevasis/sdk/worker or any
|
|
12525
|
+
* Node.js-only module. It is safe to import from browser bundlers (Vite, etc.).
|
|
12526
|
+
*/
|
|
12527
|
+
|
|
12528
|
+
type WorkflowResourceDescriptorMap = Record<string, OrganizationModelResourceEntry>;
|
|
12529
|
+
type WorkflowConfigActionRegistry = readonly Pick<Action, 'id' | 'resourceId'>[];
|
|
12530
|
+
declare function defineWorkflowConfig<const TResourceId extends string>(resourceId: TResourceId, descriptors: WorkflowResourceDescriptorMap, actionRegistry?: WorkflowConfigActionRegistry): {
|
|
12531
|
+
readonly name: string;
|
|
12532
|
+
readonly description: string;
|
|
12533
|
+
readonly buildActionKey?: string | undefined;
|
|
12534
|
+
readonly resourceId: TResourceId;
|
|
12535
|
+
readonly actions: string[];
|
|
12536
|
+
readonly primaryAction: string;
|
|
12537
|
+
};
|
|
12538
|
+
|
|
12424
12539
|
/**
|
|
12425
12540
|
* @elevasis/sdk - Types and utilities for building Elevasis organization resources
|
|
12426
12541
|
*
|
|
@@ -12431,5 +12546,5 @@ declare function projectDeploymentSpec(options: ProjectDeploymentSpecOptions): D
|
|
|
12431
12546
|
declare const ListBuilderStageKeySchema: z.ZodString;
|
|
12432
12547
|
type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
|
|
12433
12548
|
|
|
12434
|
-
export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
|
|
12435
|
-
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, 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, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, 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, IntegrationResourceDescriptorResolver, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, 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, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, 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, WorkflowLogger, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };
|
|
12549
|
+
export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
|
|
12550
|
+
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action$1 as Action, ActionDef, ActivityEvent, 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, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, Contract, ContractRefResolutionErrorCode, ContractRegistry, CreateAttributeParams, CreateAttributeResult, CreateAutoPaymentLinkParams, CreateAutoPaymentLinkResult, CreateCheckoutSessionParams, CreateCheckoutSessionResult, CreateCompanyParams, CreateContactParams, CreateEnvelopeParams, CreateEnvelopeResult, CreateFolderParams, CreateFolderResult, CreateListParams, CreateNoteParams, CreateNoteResult, CreatePaymentLinkParams, CreatePaymentLinkResult, CreateRecordParams, CreateRecordResult, CreateScheduleInput, CrmStageKey, CrmStateKey, CrmToolMap, DeleteDealParams, DeleteNoteParams, DeleteNoteResult, DeleteRecordParams, DeleteRecordResult, DeleteRowByValueParams, DeleteRowByValueResult, DeploymentSpec, DiagnosticOutput, 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, IntegrationResourceDescriptorResolver, LLMAdapterFactory, LLMGenerateRequest, LLMGenerateResponse, LLMMessage, LLMModel, LeadGenStageValidators, LeadToolMap, LinearNext, ListAttributesParams, ListAttributesResult, ListBuilderStageKey, ListBuilderStep, ListLeadsParams, ListLeadsResult, ListNotesParams, ListNotesResult, ListObjectsResult, ListPaymentLinksParams, ListPaymentLinksResult, ListToolMap, MarkProposalReviewedParams, MarkProposalSentParams, MethodEntry, MillionVerifierToolMap, ModelConfig, NextConfig, NotificationSDKInput, NotificationToolMap, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, Recipient, RecurringScheduleConfig, RelationshipDeclaration, RelativeScheduleConfig, RemoveFromSubsequenceParams, RemoveFromSubsequenceResult, ResendGetEmailParams, ResendGetEmailResult, ResendSendEmailParams, ResendSendEmailResult, ResendToolMap, ResolvedContractRef, ResourceCategory, ResourceDefinition, ResourceLink, ResourceMetricsConfig, ResourceOntologyBindingResolver, 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, TaskSchedule, TaskScheduleConfig, TombaToolMap, Tool, ToolExecutionOptions, ToolMethodMap, ToolingErrorType, TransitionItemParams, 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, WorkflowConfigActionRegistry, WorkflowDefinition, WorkflowLogger, WorkflowResourceDescriptorMap, WorkflowResourceDescriptorResolver, WorkflowStep, WriteSheetParams, WriteSheetResult };
|
package/dist/index.js
CHANGED
|
@@ -1964,7 +1964,13 @@ function computeInterfaceReadiness(model, request) {
|
|
|
1964
1964
|
`System "${request.systemPath}" is missing.`,
|
|
1965
1965
|
{ ref: request.systemPath }
|
|
1966
1966
|
);
|
|
1967
|
-
return {
|
|
1967
|
+
return {
|
|
1968
|
+
ready: false,
|
|
1969
|
+
systemPath: request.systemPath,
|
|
1970
|
+
interfaceKey: request.interfaceKey,
|
|
1971
|
+
scopedResourceIds,
|
|
1972
|
+
issues
|
|
1973
|
+
};
|
|
1968
1974
|
}
|
|
1969
1975
|
if (systemInterface === void 0) {
|
|
1970
1976
|
addReadinessIssue(
|
|
@@ -1974,7 +1980,13 @@ function computeInterfaceReadiness(model, request) {
|
|
|
1974
1980
|
`System "${request.systemPath}" does not declare interface "${request.interfaceKey}".`,
|
|
1975
1981
|
{ path: readinessMarkerPath(request) }
|
|
1976
1982
|
);
|
|
1977
|
-
return {
|
|
1983
|
+
return {
|
|
1984
|
+
ready: false,
|
|
1985
|
+
systemPath: request.systemPath,
|
|
1986
|
+
interfaceKey: request.interfaceKey,
|
|
1987
|
+
scopedResourceIds,
|
|
1988
|
+
issues
|
|
1989
|
+
};
|
|
1978
1990
|
}
|
|
1979
1991
|
if (systemInterface.lifecycle !== "active") {
|
|
1980
1992
|
addReadinessIssue(
|
|
@@ -6923,6 +6935,31 @@ function projectDeploymentSpec(options) {
|
|
|
6923
6935
|
...options.externalResources ? { externalResources: options.externalResources } : {}
|
|
6924
6936
|
};
|
|
6925
6937
|
}
|
|
6938
|
+
|
|
6939
|
+
// src/workflow-config.ts
|
|
6940
|
+
function defineWorkflowConfig(resourceId, descriptors, actionRegistry = []) {
|
|
6941
|
+
const descriptor = descriptors[resourceId];
|
|
6942
|
+
if (descriptor === void 0) {
|
|
6943
|
+
throw new Error(`Missing platform OM Resource descriptor for workflow "${resourceId}"`);
|
|
6944
|
+
}
|
|
6945
|
+
if (descriptor.kind !== "workflow") {
|
|
6946
|
+
throw new Error(`Platform OM Resource descriptor "${resourceId}" is not a workflow`);
|
|
6947
|
+
}
|
|
6948
|
+
const workflowDescriptor = descriptor;
|
|
6949
|
+
const ontology = workflowDescriptor.ontology;
|
|
6950
|
+
if (ontology?.primaryAction === void 0) {
|
|
6951
|
+
throw new Error(`Platform OM workflow Resource descriptor "${resourceId}" is missing ontology.primaryAction`);
|
|
6952
|
+
}
|
|
6953
|
+
const buildAction = actionRegistry.find((entry) => entry.resourceId === workflowDescriptor.id);
|
|
6954
|
+
return {
|
|
6955
|
+
resourceId: workflowDescriptor.id,
|
|
6956
|
+
actions: ontology.actions ?? [],
|
|
6957
|
+
primaryAction: ontology.primaryAction,
|
|
6958
|
+
...buildAction ? { buildActionKey: buildAction.id } : {},
|
|
6959
|
+
name: workflowDescriptor.title ?? workflowDescriptor.id,
|
|
6960
|
+
description: workflowDescriptor.description ?? ""
|
|
6961
|
+
};
|
|
6962
|
+
}
|
|
6926
6963
|
var ListBuilderStageKeySchema = z.string().min(1);
|
|
6927
6964
|
|
|
6928
|
-
export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
|
|
6965
|
+
export { ActivityEventSchema, BuildPlanSnapshotStepSchema, ProspectingBuildTemplateSchema as BuildTemplateSchema, ContractRefResolutionError, CrmStageKeySchema, CrmStateKeySchema, EmailSchema, ExecutionError, ListBuilderStageKeySchema, ProcessingStageStatusSchema, RegistryValidationError, ResourceRegistry, StepType, ToolingError, bindResourceDescriptor, compileBusinessOntologyValidationIndex, concurrentPool, createLeadGenStageValidators, defineContract, defineResource, defineResourceOntology, defineResources, defineStep, defineTopology, defineTopologyRelationship, defineWorkflow, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isZodType, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
|
package/dist/node/index.d.ts
CHANGED
|
@@ -1509,6 +1509,7 @@ type Link = z.infer<typeof LinkSchema>;
|
|
|
1509
1509
|
|
|
1510
1510
|
declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
1511
1511
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1512
|
+
snapshotHash: z.ZodOptional<z.ZodString>;
|
|
1512
1513
|
domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
1513
1514
|
branding: z.ZodOptional<z.ZodObject<{
|
|
1514
1515
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
@@ -1518,6 +1519,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1518
1519
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1519
1520
|
lastModified: z.ZodString;
|
|
1520
1521
|
}, z.core.$strip>>;
|
|
1522
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
1523
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1524
|
+
lastModified: z.ZodString;
|
|
1525
|
+
}, z.core.$strip>>;
|
|
1521
1526
|
customers: z.ZodOptional<z.ZodObject<{
|
|
1522
1527
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
1523
1528
|
lastModified: z.ZodString;
|
|
@@ -1575,6 +1580,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1575
1580
|
version: 1;
|
|
1576
1581
|
lastModified: string;
|
|
1577
1582
|
};
|
|
1583
|
+
clients: {
|
|
1584
|
+
version: 1;
|
|
1585
|
+
lastModified: string;
|
|
1586
|
+
};
|
|
1578
1587
|
customers: {
|
|
1579
1588
|
version: 1;
|
|
1580
1589
|
lastModified: string;
|
|
@@ -1632,6 +1641,10 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1632
1641
|
version: 1;
|
|
1633
1642
|
lastModified: string;
|
|
1634
1643
|
} | undefined;
|
|
1644
|
+
clients?: {
|
|
1645
|
+
version: 1;
|
|
1646
|
+
lastModified: string;
|
|
1647
|
+
} | undefined;
|
|
1635
1648
|
customers?: {
|
|
1636
1649
|
version: 1;
|
|
1637
1650
|
lastModified: string;
|
|
@@ -1824,6 +1837,56 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
1824
1837
|
shortName: z.ZodOptional<z.ZodString>;
|
|
1825
1838
|
description: z.ZodOptional<z.ZodString>;
|
|
1826
1839
|
}, z.core.$loose>>;
|
|
1840
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1841
|
+
id: z.ZodString;
|
|
1842
|
+
slug: z.ZodString;
|
|
1843
|
+
name: z.ZodString;
|
|
1844
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
1845
|
+
active: "active";
|
|
1846
|
+
onboarding: "onboarding";
|
|
1847
|
+
paused: "paused";
|
|
1848
|
+
completed: "completed";
|
|
1849
|
+
churned: "churned";
|
|
1850
|
+
}>>;
|
|
1851
|
+
source: z.ZodOptional<z.ZodString>;
|
|
1852
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
1853
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
1854
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
1855
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
1856
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1857
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
1858
|
+
}, z.core.$loose>>;
|
|
1859
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
1860
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
1861
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
1862
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1863
|
+
}, z.core.$loose>>;
|
|
1864
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
1865
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
1866
|
+
"external-project": "external-project";
|
|
1867
|
+
"internal-project": "internal-project";
|
|
1868
|
+
none: "none";
|
|
1869
|
+
}>>;
|
|
1870
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
1871
|
+
platform: "platform";
|
|
1872
|
+
client: "client";
|
|
1873
|
+
developer: "developer";
|
|
1874
|
+
}>>;
|
|
1875
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
1876
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
1877
|
+
}, z.core.$loose>>;
|
|
1878
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
1879
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1880
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
1881
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
1882
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
1883
|
+
}, z.core.$strip>>;
|
|
1884
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
1885
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
1886
|
+
}, z.core.$loose>>;
|
|
1887
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1888
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
1889
|
+
}, z.core.$strict>>>>;
|
|
1827
1890
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
1828
1891
|
id: z.ZodString;
|
|
1829
1892
|
order: z.ZodNumber;
|
|
@@ -2477,6 +2540,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
2477
2540
|
action: "action";
|
|
2478
2541
|
ontology: "ontology";
|
|
2479
2542
|
role: "role";
|
|
2543
|
+
client: "client";
|
|
2480
2544
|
stage: "stage";
|
|
2481
2545
|
goal: "goal";
|
|
2482
2546
|
"customer-segment": "customer-segment";
|
|
@@ -2488,7 +2552,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
2488
2552
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
2489
2553
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
2490
2554
|
target: {
|
|
2491
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2555
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2492
2556
|
id: string;
|
|
2493
2557
|
};
|
|
2494
2558
|
nodeId: string;
|
|
@@ -2496,7 +2560,7 @@ declare const OrganizationModelSchema$1: z.ZodObject<{
|
|
|
2496
2560
|
nodeId: string;
|
|
2497
2561
|
} | {
|
|
2498
2562
|
target: {
|
|
2499
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2563
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
2500
2564
|
id: string;
|
|
2501
2565
|
};
|
|
2502
2566
|
}>>>>;
|
|
@@ -2508,6 +2508,7 @@ type Database = {
|
|
|
2508
2508
|
organization_id: string;
|
|
2509
2509
|
primary_company_id: string | null;
|
|
2510
2510
|
primary_contact_id: string | null;
|
|
2511
|
+
source: string;
|
|
2511
2512
|
source_deal_id: string | null;
|
|
2512
2513
|
status: string;
|
|
2513
2514
|
updated_at: string;
|
|
@@ -2521,6 +2522,7 @@ type Database = {
|
|
|
2521
2522
|
organization_id: string;
|
|
2522
2523
|
primary_company_id?: string | null;
|
|
2523
2524
|
primary_contact_id?: string | null;
|
|
2525
|
+
source?: string;
|
|
2524
2526
|
source_deal_id?: string | null;
|
|
2525
2527
|
status?: string;
|
|
2526
2528
|
updated_at?: string;
|
|
@@ -2534,6 +2536,7 @@ type Database = {
|
|
|
2534
2536
|
organization_id?: string;
|
|
2535
2537
|
primary_company_id?: string | null;
|
|
2536
2538
|
primary_contact_id?: string | null;
|
|
2539
|
+
source?: string;
|
|
2537
2540
|
source_deal_id?: string | null;
|
|
2538
2541
|
status?: string;
|
|
2539
2542
|
updated_at?: string;
|
|
@@ -5993,6 +5996,7 @@ type Link = z.infer<typeof LinkSchema>;
|
|
|
5993
5996
|
|
|
5994
5997
|
declare const OrganizationModelSchema: z.ZodObject<{
|
|
5995
5998
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
5999
|
+
snapshotHash: z.ZodOptional<z.ZodString>;
|
|
5996
6000
|
domainMetadata: z.ZodPipe<z.ZodDefault<z.ZodObject<{
|
|
5997
6001
|
branding: z.ZodOptional<z.ZodObject<{
|
|
5998
6002
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
@@ -6002,6 +6006,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6002
6006
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6003
6007
|
lastModified: z.ZodString;
|
|
6004
6008
|
}, z.core.$strip>>;
|
|
6009
|
+
clients: z.ZodOptional<z.ZodObject<{
|
|
6010
|
+
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6011
|
+
lastModified: z.ZodString;
|
|
6012
|
+
}, z.core.$strip>>;
|
|
6005
6013
|
customers: z.ZodOptional<z.ZodObject<{
|
|
6006
6014
|
version: z.ZodDefault<z.ZodLiteral<1>>;
|
|
6007
6015
|
lastModified: z.ZodString;
|
|
@@ -6059,6 +6067,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6059
6067
|
version: 1;
|
|
6060
6068
|
lastModified: string;
|
|
6061
6069
|
};
|
|
6070
|
+
clients: {
|
|
6071
|
+
version: 1;
|
|
6072
|
+
lastModified: string;
|
|
6073
|
+
};
|
|
6062
6074
|
customers: {
|
|
6063
6075
|
version: 1;
|
|
6064
6076
|
lastModified: string;
|
|
@@ -6116,6 +6128,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6116
6128
|
version: 1;
|
|
6117
6129
|
lastModified: string;
|
|
6118
6130
|
} | undefined;
|
|
6131
|
+
clients?: {
|
|
6132
|
+
version: 1;
|
|
6133
|
+
lastModified: string;
|
|
6134
|
+
} | undefined;
|
|
6119
6135
|
customers?: {
|
|
6120
6136
|
version: 1;
|
|
6121
6137
|
lastModified: string;
|
|
@@ -6308,6 +6324,56 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6308
6324
|
shortName: z.ZodOptional<z.ZodString>;
|
|
6309
6325
|
description: z.ZodOptional<z.ZodString>;
|
|
6310
6326
|
}, z.core.$loose>>;
|
|
6327
|
+
clients: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6328
|
+
id: z.ZodString;
|
|
6329
|
+
slug: z.ZodString;
|
|
6330
|
+
name: z.ZodString;
|
|
6331
|
+
status: z.ZodDefault<z.ZodEnum<{
|
|
6332
|
+
active: "active";
|
|
6333
|
+
onboarding: "onboarding";
|
|
6334
|
+
paused: "paused";
|
|
6335
|
+
completed: "completed";
|
|
6336
|
+
churned: "churned";
|
|
6337
|
+
}>>;
|
|
6338
|
+
source: z.ZodOptional<z.ZodString>;
|
|
6339
|
+
identity: z.ZodDefault<z.ZodObject<{
|
|
6340
|
+
organizationName: z.ZodOptional<z.ZodString>;
|
|
6341
|
+
shortName: z.ZodOptional<z.ZodString>;
|
|
6342
|
+
clientBrief: z.ZodDefault<z.ZodString>;
|
|
6343
|
+
geographicFocus: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6344
|
+
timeZone: z.ZodDefault<z.ZodString>;
|
|
6345
|
+
}, z.core.$loose>>;
|
|
6346
|
+
branding: z.ZodDefault<z.ZodObject<{
|
|
6347
|
+
voice: z.ZodOptional<z.ZodString>;
|
|
6348
|
+
tagline: z.ZodOptional<z.ZodString>;
|
|
6349
|
+
values: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6350
|
+
}, z.core.$loose>>;
|
|
6351
|
+
workspace: z.ZodDefault<z.ZodObject<{
|
|
6352
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
6353
|
+
"external-project": "external-project";
|
|
6354
|
+
"internal-project": "internal-project";
|
|
6355
|
+
none: "none";
|
|
6356
|
+
}>>;
|
|
6357
|
+
owner: z.ZodOptional<z.ZodEnum<{
|
|
6358
|
+
platform: "platform";
|
|
6359
|
+
client: "client";
|
|
6360
|
+
developer: "developer";
|
|
6361
|
+
}>>;
|
|
6362
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
6363
|
+
workspacePath: z.ZodOptional<z.ZodString>;
|
|
6364
|
+
}, z.core.$loose>>;
|
|
6365
|
+
links: z.ZodDefault<z.ZodObject<{
|
|
6366
|
+
projectIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6367
|
+
primaryCompanyId: z.ZodOptional<z.ZodString>;
|
|
6368
|
+
primaryContactId: z.ZodOptional<z.ZodString>;
|
|
6369
|
+
sourceDealId: z.ZodOptional<z.ZodString>;
|
|
6370
|
+
}, z.core.$strip>>;
|
|
6371
|
+
prompts: z.ZodDefault<z.ZodObject<{
|
|
6372
|
+
defaultContext: z.ZodDefault<z.ZodString>;
|
|
6373
|
+
}, z.core.$loose>>;
|
|
6374
|
+
config: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
6375
|
+
customValues: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, unknown, z.core.$ZodTypeInternals<JsonValue, unknown>>>>;
|
|
6376
|
+
}, z.core.$strict>>>>;
|
|
6311
6377
|
customers: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
6312
6378
|
id: z.ZodString;
|
|
6313
6379
|
order: z.ZodNumber;
|
|
@@ -6961,6 +7027,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6961
7027
|
action: "action";
|
|
6962
7028
|
ontology: "ontology";
|
|
6963
7029
|
role: "role";
|
|
7030
|
+
client: "client";
|
|
6964
7031
|
stage: "stage";
|
|
6965
7032
|
goal: "goal";
|
|
6966
7033
|
"customer-segment": "customer-segment";
|
|
@@ -6972,7 +7039,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6972
7039
|
nodeId: z.ZodUnion<readonly [z.ZodString, z.ZodTemplateLiteral<`ontology:${string}`>]>;
|
|
6973
7040
|
}, z.core.$strip>]>, z.ZodTransform<{
|
|
6974
7041
|
target: {
|
|
6975
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7042
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
6976
7043
|
id: string;
|
|
6977
7044
|
};
|
|
6978
7045
|
nodeId: string;
|
|
@@ -6980,7 +7047,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
|
|
|
6980
7047
|
nodeId: string;
|
|
6981
7048
|
} | {
|
|
6982
7049
|
target: {
|
|
6983
|
-
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "stage" | "goal" | "customer-segment" | "offering";
|
|
7050
|
+
kind: "knowledge" | "system" | "resource" | "action" | "ontology" | "role" | "client" | "stage" | "goal" | "customer-segment" | "offering";
|
|
6984
7051
|
id: string;
|
|
6985
7052
|
};
|
|
6986
7053
|
}>>>>;
|
|
@@ -8703,8 +8770,8 @@ declare const ProjectSchemas: {
|
|
|
8703
8770
|
}>;
|
|
8704
8771
|
status: z.ZodOptional<z.ZodEnum<{
|
|
8705
8772
|
active: "active";
|
|
8706
|
-
completed: "completed";
|
|
8707
8773
|
paused: "paused";
|
|
8774
|
+
completed: "completed";
|
|
8708
8775
|
on_track: "on_track";
|
|
8709
8776
|
at_risk: "at_risk";
|
|
8710
8777
|
blocked: "blocked";
|
|
@@ -8728,8 +8795,8 @@ declare const ProjectSchemas: {
|
|
|
8728
8795
|
}>>;
|
|
8729
8796
|
status: z.ZodOptional<z.ZodEnum<{
|
|
8730
8797
|
active: "active";
|
|
8731
|
-
completed: "completed";
|
|
8732
8798
|
paused: "paused";
|
|
8799
|
+
completed: "completed";
|
|
8733
8800
|
on_track: "on_track";
|
|
8734
8801
|
at_risk: "at_risk";
|
|
8735
8802
|
blocked: "blocked";
|
|
@@ -8753,8 +8820,8 @@ declare const ProjectSchemas: {
|
|
|
8753
8820
|
}>>;
|
|
8754
8821
|
status: z.ZodOptional<z.ZodEnum<{
|
|
8755
8822
|
active: "active";
|
|
8756
|
-
completed: "completed";
|
|
8757
8823
|
paused: "paused";
|
|
8824
|
+
completed: "completed";
|
|
8758
8825
|
on_track: "on_track";
|
|
8759
8826
|
at_risk: "at_risk";
|
|
8760
8827
|
blocked: "blocked";
|