@elevasis/sdk 1.53.0 → 1.55.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/{chunk-FUOIYRIZ.js → chunk-72ZGICTR.js} +304 -71
- package/dist/{chunk-HB7DC5LT.js → chunk-QF2RNYYX.js} +1 -8
- package/dist/{chunk-B2KAVPNB.js → chunk-R3J6BEPO.js} +116 -2069
- package/dist/cli.cjs +477 -362
- package/dist/index.d.ts +142 -49
- package/dist/index.js +2 -2
- package/dist/node/index.js +1 -1
- package/dist/test-utils/index.js +5 -3
- package/dist/worker/index.d.ts +11 -2
- package/dist/worker/index.js +3 -3
- package/package.json +14 -6
- package/reference/_navigation.md +1 -1
- package/reference/packages/core/src/knowledge/README.md +1 -1
- package/reference/scaffold/core/organization-model.mdx +1 -1
- package/reference/scaffold/recipes/extend-lead-gen.md +2 -1
- package/reference/scaffold/reference/contracts.md +239 -226
- package/reference/sdk/cli-management.mdx +2 -0
- package/reference/sdk/define-builders.mdx +28 -15
- package/reference/sdk/exports.mdx +1 -1
- package/reference/sdk/index.mdx +1 -1
- package/reference/sdk/platform-tools/adapters-platform.mdx +1 -1
- package/reference/sdk/project-deployment-spec.mdx +17 -1
package/dist/index.d.ts
CHANGED
|
@@ -1528,16 +1528,17 @@ interface FormSchema {
|
|
|
1528
1528
|
|
|
1529
1529
|
/**
|
|
1530
1530
|
* Execution interface configuration
|
|
1531
|
-
* Defines how a resource is executed via the UI (
|
|
1531
|
+
* Defines how a resource is executed via the UI (the run form)
|
|
1532
1532
|
* Applies to both agents and workflows
|
|
1533
|
+
*
|
|
1534
|
+
* It carried two more optional fields, `schedule?: ScheduleConfig` and `webhook?: WebhookConfig`.
|
|
1535
|
+
* Nothing ever set or read either one, in this repo or in any tenant project, and the two config
|
|
1536
|
+
* interfaces behind them had no other reference. Real scheduling is the `task_schedules` system
|
|
1537
|
+
* (`execution/scheduler/`), which is not driven off a resource's run form.
|
|
1533
1538
|
*/
|
|
1534
1539
|
interface ExecutionInterface {
|
|
1535
1540
|
/** Form configuration for execution inputs */
|
|
1536
1541
|
form: ExecutionFormSchema;
|
|
1537
|
-
/** Optional: Schedule configuration */
|
|
1538
|
-
schedule?: ScheduleConfig;
|
|
1539
|
-
/** Optional: Webhook trigger configuration */
|
|
1540
|
-
webhook?: WebhookConfig;
|
|
1541
1542
|
}
|
|
1542
1543
|
/**
|
|
1543
1544
|
* Execution form schema
|
|
@@ -1560,26 +1561,6 @@ interface ExecutionFormSchema extends FormSchema {
|
|
|
1560
1561
|
confirmMessage?: string;
|
|
1561
1562
|
};
|
|
1562
1563
|
}
|
|
1563
|
-
/**
|
|
1564
|
-
* Schedule configuration for automated execution
|
|
1565
|
-
*/
|
|
1566
|
-
interface ScheduleConfig {
|
|
1567
|
-
/** Whether scheduling is enabled for this resource */
|
|
1568
|
-
enabled: boolean;
|
|
1569
|
-
/** Default schedule (cron expression) */
|
|
1570
|
-
defaultSchedule?: string;
|
|
1571
|
-
/** Allowed schedule patterns (if restricted) */
|
|
1572
|
-
allowedPatterns?: string[];
|
|
1573
|
-
}
|
|
1574
|
-
/**
|
|
1575
|
-
* Webhook configuration for external triggers
|
|
1576
|
-
*/
|
|
1577
|
-
interface WebhookConfig {
|
|
1578
|
-
/** Whether webhook trigger is enabled */
|
|
1579
|
-
enabled: boolean;
|
|
1580
|
-
/** Expected payload schema (for documentation) */
|
|
1581
|
-
payloadSchema?: unknown;
|
|
1582
|
-
}
|
|
1583
1564
|
|
|
1584
1565
|
interface WorkflowConfig extends ResourceDefinition {
|
|
1585
1566
|
type: 'workflow';
|
|
@@ -1610,6 +1591,16 @@ interface WorkflowStep extends WorkflowStepDefinition {
|
|
|
1610
1591
|
inputSchema: z.ZodSchema;
|
|
1611
1592
|
outputSchema: z.ZodSchema;
|
|
1612
1593
|
next: NextConfig;
|
|
1594
|
+
/**
|
|
1595
|
+
* How long this one step may run, in milliseconds. Omitted, the step is bounded only by the
|
|
1596
|
+
* execution ceiling (`DEFAULT_EXECUTION_TIMEOUT`, 2 hours), which is what every step used to get.
|
|
1597
|
+
*
|
|
1598
|
+
* `WorkflowConfig` deliberately still has no `constraints` field: a per-workflow override would
|
|
1599
|
+
* only restate the execution ceiling the caller already sets when it arms the deadline, whereas
|
|
1600
|
+
* "this HTTP step should never take more than 5 seconds" is a property of the step and has no
|
|
1601
|
+
* other place to live.
|
|
1602
|
+
*/
|
|
1603
|
+
timeout?: number;
|
|
1613
1604
|
}
|
|
1614
1605
|
interface WorkflowDefinition {
|
|
1615
1606
|
config: WorkflowConfig;
|
|
@@ -4406,13 +4397,6 @@ type Database = {
|
|
|
4406
4397
|
referencedRelation: "users";
|
|
4407
4398
|
referencedColumns: ["id"];
|
|
4408
4399
|
},
|
|
4409
|
-
{
|
|
4410
|
-
foreignKeyName: "prj_notes_milestone_id_fkey";
|
|
4411
|
-
columns: ["milestone_id"];
|
|
4412
|
-
isOneToOne: false;
|
|
4413
|
-
referencedRelation: "prj_milestones";
|
|
4414
|
-
referencedColumns: ["id"];
|
|
4415
|
-
},
|
|
4416
4400
|
{
|
|
4417
4401
|
foreignKeyName: "prj_notes_organization_id_fkey";
|
|
4418
4402
|
columns: ["organization_id"];
|
|
@@ -4426,13 +4410,6 @@ type Database = {
|
|
|
4426
4410
|
isOneToOne: false;
|
|
4427
4411
|
referencedRelation: "prj_projects";
|
|
4428
4412
|
referencedColumns: ["id"];
|
|
4429
|
-
},
|
|
4430
|
-
{
|
|
4431
|
-
foreignKeyName: "prj_notes_task_id_fkey";
|
|
4432
|
-
columns: ["task_id"];
|
|
4433
|
-
isOneToOne: false;
|
|
4434
|
-
referencedRelation: "prj_tasks";
|
|
4435
|
-
referencedColumns: ["id"];
|
|
4436
4413
|
}
|
|
4437
4414
|
];
|
|
4438
4415
|
};
|
|
@@ -6356,8 +6333,20 @@ interface ProcessingStateEntry {
|
|
|
6356
6333
|
type ProcessingState = Partial<Record<LeadGenStageKey, ProcessingStateEntry>>;
|
|
6357
6334
|
type CompanyProcessingState = ProcessingState;
|
|
6358
6335
|
type ContactProcessingState = ProcessingState;
|
|
6359
|
-
/**
|
|
6360
|
-
|
|
6336
|
+
/**
|
|
6337
|
+
* @deprecated Use `processingState`. Retained only as a compile-time/read-shape bridge for
|
|
6338
|
+
* external tenants.
|
|
6339
|
+
*
|
|
6340
|
+
* `null`, not `unknown`. The DB column is gone and every response returns null, so `unknown` was
|
|
6341
|
+
* describing a value that cannot occur -- it forced a narrow on a field that is always null while
|
|
6342
|
+
* still type-checking a comparison against a stage name that can never match. Narrowing it turns
|
|
6343
|
+
* that dead comparison into a compile error pointing at `processingState`, which is the migration.
|
|
6344
|
+
*
|
|
6345
|
+
* The WRITE path stays permissive on purpose: the update request schemas keep
|
|
6346
|
+
* `pipelineStatus: z.unknown().optional()` so a tenant still sending the old field gets a no-op
|
|
6347
|
+
* rather than a rejected request.
|
|
6348
|
+
*/
|
|
6349
|
+
type LegacyPipelineStatus = null;
|
|
6361
6350
|
/**
|
|
6362
6351
|
* Enrichment data collected for a company from various sources.
|
|
6363
6352
|
*/
|
|
@@ -7016,6 +7005,46 @@ interface UpdateContactStageParams {
|
|
|
7016
7005
|
data?: unknown;
|
|
7017
7006
|
executionId?: string;
|
|
7018
7007
|
}
|
|
7008
|
+
/** One company's stage update within a `bulkUpdateCompanyStage` batch. */
|
|
7009
|
+
interface BulkCompanyStageUpdate {
|
|
7010
|
+
companyId: string;
|
|
7011
|
+
stage: string;
|
|
7012
|
+
status?: ProcessingStageStatus;
|
|
7013
|
+
data?: unknown;
|
|
7014
|
+
}
|
|
7015
|
+
interface BulkUpdateCompanyStageParams {
|
|
7016
|
+
organizationId: string;
|
|
7017
|
+
listId: string;
|
|
7018
|
+
updates: BulkCompanyStageUpdate[];
|
|
7019
|
+
executionId?: string;
|
|
7020
|
+
}
|
|
7021
|
+
interface BulkUpdateCompanyStageResult {
|
|
7022
|
+
updated: number;
|
|
7023
|
+
errors: Array<{
|
|
7024
|
+
companyId: string;
|
|
7025
|
+
error: string;
|
|
7026
|
+
}>;
|
|
7027
|
+
}
|
|
7028
|
+
/** One contact's stage update within a `bulkUpdateContactStage` batch. */
|
|
7029
|
+
interface BulkContactStageUpdate {
|
|
7030
|
+
contactId: string;
|
|
7031
|
+
stage: string;
|
|
7032
|
+
status?: ProcessingStageStatus;
|
|
7033
|
+
data?: unknown;
|
|
7034
|
+
}
|
|
7035
|
+
interface BulkUpdateContactStageParams {
|
|
7036
|
+
organizationId: string;
|
|
7037
|
+
listId: string;
|
|
7038
|
+
updates: BulkContactStageUpdate[];
|
|
7039
|
+
executionId?: string;
|
|
7040
|
+
}
|
|
7041
|
+
interface BulkUpdateContactStageResult {
|
|
7042
|
+
updated: number;
|
|
7043
|
+
errors: Array<{
|
|
7044
|
+
contactId: string;
|
|
7045
|
+
error: string;
|
|
7046
|
+
}>;
|
|
7047
|
+
}
|
|
7019
7048
|
interface ClearCompanyStagesParams {
|
|
7020
7049
|
organizationId: string;
|
|
7021
7050
|
listId: string;
|
|
@@ -11591,9 +11620,9 @@ declare const ProjectSchemas: {
|
|
|
11591
11620
|
bug: "bug";
|
|
11592
11621
|
}>>;
|
|
11593
11622
|
status: z.ZodOptional<z.ZodEnum<{
|
|
11623
|
+
rejected: "rejected";
|
|
11594
11624
|
completed: "completed";
|
|
11595
11625
|
cancelled: "cancelled";
|
|
11596
|
-
rejected: "rejected";
|
|
11597
11626
|
blocked: "blocked";
|
|
11598
11627
|
in_progress: "in_progress";
|
|
11599
11628
|
planned: "planned";
|
|
@@ -11627,9 +11656,9 @@ declare const ProjectSchemas: {
|
|
|
11627
11656
|
bug: "bug";
|
|
11628
11657
|
}>>;
|
|
11629
11658
|
status: z.ZodOptional<z.ZodEnum<{
|
|
11659
|
+
rejected: "rejected";
|
|
11630
11660
|
completed: "completed";
|
|
11631
11661
|
cancelled: "cancelled";
|
|
11632
|
-
rejected: "rejected";
|
|
11633
11662
|
blocked: "blocked";
|
|
11634
11663
|
in_progress: "in_progress";
|
|
11635
11664
|
planned: "planned";
|
|
@@ -11654,9 +11683,9 @@ declare const ProjectSchemas: {
|
|
|
11654
11683
|
MergeResumeContextRequest: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
11655
11684
|
GetTasksQuery: z.ZodObject<{
|
|
11656
11685
|
status: z.ZodOptional<z.ZodEnum<{
|
|
11686
|
+
rejected: "rejected";
|
|
11657
11687
|
completed: "completed";
|
|
11658
11688
|
cancelled: "cancelled";
|
|
11659
|
-
rejected: "rejected";
|
|
11660
11689
|
blocked: "blocked";
|
|
11661
11690
|
in_progress: "in_progress";
|
|
11662
11691
|
planned: "planned";
|
|
@@ -13386,6 +13415,14 @@ type ListToolMap = {
|
|
|
13386
13415
|
params: Omit<UpdateContactStageParams, 'organizationId'>;
|
|
13387
13416
|
result: void;
|
|
13388
13417
|
};
|
|
13418
|
+
bulkUpdateCompanyStage: {
|
|
13419
|
+
params: Omit<BulkUpdateCompanyStageParams, 'organizationId'>;
|
|
13420
|
+
result: BulkUpdateCompanyStageResult;
|
|
13421
|
+
};
|
|
13422
|
+
bulkUpdateContactStage: {
|
|
13423
|
+
params: Omit<BulkUpdateContactStageParams, 'organizationId'>;
|
|
13424
|
+
result: BulkUpdateContactStageResult;
|
|
13425
|
+
};
|
|
13389
13426
|
clearCompanyStages: {
|
|
13390
13427
|
params: Omit<ClearCompanyStagesParams, 'organizationId'>;
|
|
13391
13428
|
result: void;
|
|
@@ -14237,6 +14274,28 @@ interface AgentConstraints {
|
|
|
14237
14274
|
timeout?: number;
|
|
14238
14275
|
maxSessionMemoryKeys?: number;
|
|
14239
14276
|
maxMemoryTokens?: number;
|
|
14277
|
+
/**
|
|
14278
|
+
* Spend ceilings for the whole turn, checked between iterations against
|
|
14279
|
+
* `ExecutionContext.aiUsageCollector`. Both are unset by default -- `maxIterations` and `timeout`
|
|
14280
|
+
* bound how MANY calls and how LONG, but nothing bounded how much those calls cost, so an agent
|
|
14281
|
+
* that picked an expensive model or a huge context could spend without limit inside a budget it
|
|
14282
|
+
* was technically respecting.
|
|
14283
|
+
*
|
|
14284
|
+
* Enforced only where a collector is injected (every coordinator-run execution). An agent run
|
|
14285
|
+
* without one is unbounded, the same as one that declares no ceiling.
|
|
14286
|
+
*
|
|
14287
|
+
* Note that **sync nested executions share the parent's collector**, so these ceilings cover the
|
|
14288
|
+
* agent and everything it invokes synchronously. That is the behaviour a spend ceiling should
|
|
14289
|
+
* have, but it does mean a parent's ceiling can be reached by a child's spend.
|
|
14290
|
+
*/
|
|
14291
|
+
maxCostUsd?: number;
|
|
14292
|
+
maxTotalTokens?: number;
|
|
14293
|
+
/**
|
|
14294
|
+
* How many times the agent may emit a byte-identical plan in a row before the turn is stopped
|
|
14295
|
+
* (default 3, in `processActions`). Raise it for an agent whose job legitimately involves
|
|
14296
|
+
* repeating itself -- polling one endpoint until it reports ready is the case this exists for.
|
|
14297
|
+
*/
|
|
14298
|
+
maxIdenticalIterations?: number;
|
|
14240
14299
|
}
|
|
14241
14300
|
interface AgentDefinition {
|
|
14242
14301
|
config: AgentConfig;
|
|
@@ -15459,9 +15518,43 @@ interface ElevasConfig {
|
|
|
15459
15518
|
|
|
15460
15519
|
declare function defineContract<TContract extends Contract>(contract: TContract): TContract;
|
|
15461
15520
|
|
|
15462
|
-
|
|
15463
|
-
|
|
15464
|
-
|
|
15521
|
+
/**
|
|
15522
|
+
* The single step of a `defineSingleStepWorkflow` workflow. `handler` receives the
|
|
15523
|
+
* already-validated input (per `inputSchema`) rather than `unknown` -- the ceremony of
|
|
15524
|
+
* casting `rawInput as z.infer<typeof input>` inside every handler body is absorbed once
|
|
15525
|
+
* by the factory instead of being repeated at every call site.
|
|
15526
|
+
*/
|
|
15527
|
+
interface SingleStepWorkflowStep<TInput, TOutput> {
|
|
15528
|
+
id: string;
|
|
15529
|
+
name: string;
|
|
15530
|
+
description: string;
|
|
15531
|
+
handler: (input: TInput, context: ExecutionContext) => Promise<TOutput>;
|
|
15532
|
+
}
|
|
15533
|
+
interface DefineSingleStepWorkflowOptions<TInput, TOutput> {
|
|
15534
|
+
/** Workflow-level identity and metadata -- same shape as a hand-written `WorkflowDefinition['config']`. */
|
|
15535
|
+
config: WorkflowConfig;
|
|
15536
|
+
/** Shared schema for the workflow contract AND the single step -- a single-step workflow validates the same input/output twice today, and this keeps that byte-identical. */
|
|
15537
|
+
inputSchema: z.ZodType<TInput>;
|
|
15538
|
+
outputSchema: z.ZodType<TOutput>;
|
|
15539
|
+
step: SingleStepWorkflowStep<TInput, TOutput>;
|
|
15540
|
+
/** Optional metrics configuration for ROI calculations. */
|
|
15541
|
+
metricsConfig?: ResourceMetricsConfig;
|
|
15542
|
+
/** Optional execution interface configuration (surfaces the workflow in the Execution Runner UI). */
|
|
15543
|
+
interface?: ExecutionInterface;
|
|
15544
|
+
/** Optional lead-gen processing stage this workflow implements. */
|
|
15545
|
+
stageImplemented?: string;
|
|
15546
|
+
}
|
|
15547
|
+
/**
|
|
15548
|
+
* Builds a `WorkflowDefinition` for a workflow with exactly one step -- the step's
|
|
15549
|
+
* `inputSchema`/`outputSchema` are the workflow contract's schemas, `entryPoint` is the
|
|
15550
|
+
* step's `id`, and `next` is always `null` (there is nowhere else for a single step to go).
|
|
15551
|
+
*
|
|
15552
|
+
* Produces a `WorkflowDefinition` structurally identical to the hand-written
|
|
15553
|
+
* `steps`-plus-`entryPoint` form -- same `resourceId`, `config`, `contract`, `steps` map,
|
|
15554
|
+
* and `entryPoint` -- for the ~18 lines of ceremony that shape pays on every single-step
|
|
15555
|
+
* workflow today.
|
|
15556
|
+
*/
|
|
15557
|
+
declare function defineSingleStepWorkflow<TInput, TOutput>(options: DefineSingleStepWorkflowOptions<TInput, TOutput>): WorkflowDefinition;
|
|
15465
15558
|
|
|
15466
15559
|
type ContractRegistry = Record<string, Record<string, unknown>>;
|
|
15467
15560
|
type ContractRefResolutionErrorCode = 'contract-ref-unknown-module' | 'contract-ref-unknown-export' | 'contract-ref-not-zod-type';
|
|
@@ -15630,5 +15723,5 @@ declare function defineWorkflowConfig<const TResourceId extends string>(resource
|
|
|
15630
15723
|
declare const ListBuilderStageKeySchema: z.ZodString;
|
|
15631
15724
|
type ListBuilderStageKey = z.infer<typeof ListBuilderStageKeySchema>;
|
|
15632
15725
|
|
|
15633
|
-
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,
|
|
15634
|
-
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, AgentResourceDescriptorResolver, 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, ArtifactsToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, ContentToolMap, 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, InstagramToolMap, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, JsonSchema, LLMAdapterFactory, LLMContentPart, 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, OrganizationModel, OrganizationModelAgentResourceEntry, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, ReadinessProfileEntry, ReadinessProfileKind, 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, SystemApiInterfaceReadinessContract, 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 };
|
|
15726
|
+
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, defineSingleStepWorkflow, defineTopology, defineTopologyRelationship, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isBuiltInReadinessProfile, isZodType, lookupReadinessProfile, parseTopologyNodeRef, projectDeploymentSpec, projectTopologyRelationships, registerReadinessProfile, resolveContractRef, runDiagnostic, splitName, toSdkResourceDescriptor, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors };
|
|
15727
|
+
export type { AbsoluteScheduleConfig, AcqCompany, AcqContact, AcqDeal, AcqDealRow, AcqList, Action, ActionDef, ActivityEvent, AddToCampaignLead, AddToCampaignParams, AddToCampaignResult, AgentConfig, AgentConstraints, AgentDefinition, AgentMemory, AgentResourceDescriptorResolver, 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, ArtifactsToolMap, AttioToolMap, BatchUpdateParams, BatchUpdateResult, BuildPlanSnapshotStep, BulkDeleteLeadsParams, BulkDeleteLeadsResult, BulkImportParams, BulkImportResult, BusinessOntologyValidationIndex, CancelHitlByDealIdParams, CancelSchedulesAndHitlByEmailParams, ClearDealFieldsParams, ClearRangeParams, ClearRangeResult, ClickUpToolMap, CompanyFilters, ConcurrentPoolOptions, ConcurrentPoolResult, ConditionalNext, ContactFilters, ContentToolMap, 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, DefineSingleStepWorkflowOptions, 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, InstagramToolMap, InstantlyToolMap, IntegrationDefinition, IntegrationResourceDescriptorResolver, JsonSchema, LLMAdapterFactory, LLMContentPart, 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, OrganizationModel, OrganizationModelAgentResourceEntry, OrganizationModelIntegrationResourceEntry, OrganizationModelResourceEntry, OrganizationModelResourceOntologyBinding, OrganizationModelTopology, OrganizationModelTopologyNodeRef, OrganizationModelTopologyRelationship, OrganizationModelWorkflowResourceEntry, PaginatedResult, PaginationParams, PdfToolMap, ProcessingStageStatus, ProjectDeploymentSpecOptions, ProjectsToolMap, QueryRecordsParams, QueryRecordsResult, ReadSheetParams, ReadSheetResult, ReadinessProfileEntry, ReadinessProfileKind, 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, SingleStepWorkflowStep, SortCriteria, StartActorParams, StartActorResult, StepHandler, StorageDeleteInput, StorageDeleteOutput, StorageDownloadInput, StorageDownloadOutput, StorageListInput, StorageListOutput, StorageSignedUrlInput, StorageSignedUrlOutput, StorageToolMap, StorageUploadInput, StorageUploadOutput, StripeToolMap, SystemApiInterfaceReadinessContract, 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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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,
|
|
2
|
-
export { projectDeploymentSpec, projectTopologyRelationships, toSdkResourceDescriptor, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors } from './chunk-
|
|
1
|
+
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, defineSingleStepWorkflow, defineTopology, defineTopologyRelationship, defineWorkflowConfig, deriveActions, diagnosticOutput, integrationInput, isBuiltInReadinessProfile, isZodType, lookupReadinessProfile, parseTopologyNodeRef, registerReadinessProfile, resolveContractRef, runDiagnostic, splitName, topologyRef, topologyRelationship, validateDeclaredSystemInterfaceReadiness, validateResourceGovernance } from './chunk-R3J6BEPO.js';
|
|
2
|
+
export { projectDeploymentSpec, projectTopologyRelationships, toSdkResourceDescriptor, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors } from './chunk-QF2RNYYX.js';
|
package/dist/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { projectDeploymentSpec, projectTopologyRelationships, toSdkResourceDescriptor, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors } from '../chunk-
|
|
1
|
+
export { projectDeploymentSpec, projectTopologyRelationships, toSdkResourceDescriptor, withPlatformAgentResourceDescriptor, withPlatformAgentResourceDescriptors, withPlatformIntegrationResourceDescriptor, withPlatformIntegrationResourceDescriptors, withPlatformResourceDescriptor, withPlatformResourceDescriptors } from '../chunk-QF2RNYYX.js';
|
|
2
2
|
import { readFileSync, mkdirSync, writeFileSync, readdirSync } from 'fs';
|
|
3
3
|
import { relative, dirname, resolve, join, extname } from 'path';
|
|
4
4
|
import { compile } from '@mdx-js/mdx';
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { executeWorkflow } from '../chunk-
|
|
2
|
-
import { validateDeploymentSpec, validateRelationships } from '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
import { executeWorkflow } from '../chunk-72ZGICTR.js';
|
|
2
|
+
import { validateDeploymentSpec, validateRelationships } from '../chunk-R3J6BEPO.js';
|
|
3
|
+
import '../chunk-QF2RNYYX.js';
|
|
4
4
|
import { vi } from 'vitest';
|
|
5
5
|
|
|
6
6
|
// src/test-utils/workflow.ts
|
|
@@ -252,6 +252,8 @@ var mockList = (overrides) => createMockAdapter(
|
|
|
252
252
|
"recordExecution",
|
|
253
253
|
"updateCompanyStage",
|
|
254
254
|
"updateContactStage",
|
|
255
|
+
"bulkUpdateCompanyStage",
|
|
256
|
+
"bulkUpdateContactStage",
|
|
255
257
|
"clearCompanyStages",
|
|
256
258
|
"clearContactStages",
|
|
257
259
|
"listPendingCompanyIds",
|
package/dist/worker/index.d.ts
CHANGED
|
@@ -14,6 +14,15 @@ interface TokenUsage {
|
|
|
14
14
|
outputTokens: number;
|
|
15
15
|
cost?: number;
|
|
16
16
|
model?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Anthropic excludes cache reads and writes from the wire `input_tokens`, and `AIUsageCollector`
|
|
19
|
+
* adds them back when it records a call. They are forwarded here so the worker-side collector the
|
|
20
|
+
* spend ceiling reads folds them in exactly as the parent's does — without them the worker's token
|
|
21
|
+
* total silently runs below the figure `execution_metrics` persists, and a `maxTotalTokens` ceiling
|
|
22
|
+
* would be enforced against the smaller number.
|
|
23
|
+
*/
|
|
24
|
+
cacheReadInputTokens?: number;
|
|
25
|
+
cacheCreationInputTokens?: number;
|
|
17
26
|
}
|
|
18
27
|
/** Resolved credential returned by platform.getCredential() */
|
|
19
28
|
interface PlatformCredential {
|
|
@@ -154,7 +163,7 @@ declare function createAttioAdapter(credential: string): TypedAdapter<AttioToolM
|
|
|
154
163
|
* Create a typed Apify adapter bound to a specific credential.
|
|
155
164
|
*
|
|
156
165
|
* @param credential - Credential name as configured in the command center
|
|
157
|
-
* @returns Object with
|
|
166
|
+
* @returns Object with 3 typed methods for Apify actor operations
|
|
158
167
|
*/
|
|
159
168
|
declare function createApifyAdapter(credential: string): TypedAdapter<ApifyToolMap>;
|
|
160
169
|
|
|
@@ -208,7 +217,7 @@ declare function createInstagramAdapter(credential: string): TypedAdapter<Instag
|
|
|
208
217
|
* Create a typed Instantly adapter bound to a specific credential.
|
|
209
218
|
*
|
|
210
219
|
* @param credential - Credential name as configured in the command center
|
|
211
|
-
* @returns Object with
|
|
220
|
+
* @returns Object with 21 typed methods for Instantly email outreach operations
|
|
212
221
|
*/
|
|
213
222
|
declare function createInstantlyAdapter(credential: string): TypedAdapter<InstantlyToolMap>;
|
|
214
223
|
|
package/dist/worker/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ListBuilderResultSchema, ListBuilderResultsSchema, PlatformToolError, acqDb, approval, artifacts, classifyPlatformToolError, content, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createCaptionGenerationWorkflow, createCaptureInstagramMetricsWorkflow, createClickUpAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createImageAnalysisWorkflow, createInstagramAdapter, createInstantlyAdapter, createMillionVerifierAdapter, createPublishInstagramWorkflow, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, crm, email, executeWorkflow, execution, generateHmacToken, list, listBuilderWorkflow, llm, notifications, pdf, platform, projects, scheduler, startWorker, storage, toContentMetrics } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { ListBuilderResultSchema, ListBuilderResultsSchema, PlatformToolError, acqDb, approval, artifacts, classifyPlatformToolError, content, createAdapter, createAnymailfinderAdapter, createApifyAdapter, createAttioAdapter, createCaptionGenerationWorkflow, createCaptureInstagramMetricsWorkflow, createClickUpAdapter, createDropboxAdapter, createGmailAdapter, createGoogleSheetsAdapter, createImageAnalysisWorkflow, createInstagramAdapter, createInstantlyAdapter, createMillionVerifierAdapter, createPublishInstagramWorkflow, createResendAdapter, createSignatureApiAdapter, createStripeAdapter, createTombaAdapter, crm, email, executeWorkflow, execution, generateHmacToken, list, listBuilderWorkflow, llm, notifications, pdf, platform, projects, scheduler, startWorker, storage, toContentMetrics } from '../chunk-72ZGICTR.js';
|
|
2
|
+
import '../chunk-R3J6BEPO.js';
|
|
3
|
+
import '../chunk-QF2RNYYX.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elevasis/sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.55.0",
|
|
4
4
|
"description": "SDK for building Elevasis organization resources",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"reference/"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
+
"@alcyone-labs/zod-to-json-schema": "^4.0.10",
|
|
40
41
|
"@mdx-js/mdx": "^3.1.1",
|
|
41
42
|
"esbuild": "^0.25.0",
|
|
42
43
|
"remark-gfm": "^4.0.1"
|
|
@@ -54,8 +55,7 @@
|
|
|
54
55
|
"@types/node": "^22.0.0",
|
|
55
56
|
"chalk": "^5.3.0",
|
|
56
57
|
"commander": "^11.0.0",
|
|
57
|
-
"dotenv": "^
|
|
58
|
-
"gray-matter": "^4.0.3",
|
|
58
|
+
"dotenv": "^17.2.3",
|
|
59
59
|
"ora": "^7.0.1",
|
|
60
60
|
"rollup": "^4.59.0",
|
|
61
61
|
"rollup-plugin-dts": "^6.3.0",
|
|
@@ -63,15 +63,23 @@
|
|
|
63
63
|
"typescript": "5.9.2",
|
|
64
64
|
"vitest": "^3.2.4",
|
|
65
65
|
"zod": "^4.1.0",
|
|
66
|
-
"@repo/core": "0.
|
|
66
|
+
"@repo/core": "0.71.0",
|
|
67
67
|
"@repo/eslint-config": "0.0.0",
|
|
68
68
|
"@repo/typescript-config": "0.0.0"
|
|
69
69
|
},
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"engines": {
|
|
72
|
+
"node": ">=22"
|
|
73
|
+
},
|
|
74
|
+
"repository": {
|
|
75
|
+
"type": "git",
|
|
76
|
+
"url": "git+https://github.com/Elevasis/elevasis-monorepo.git",
|
|
77
|
+
"directory": "packages/sdk"
|
|
78
|
+
},
|
|
70
79
|
"scripts": {
|
|
71
80
|
"lint": "eslint src --max-warnings 0",
|
|
72
81
|
"build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p tsconfig.core-dts.json && tsc -p tsconfig.build.json && tsup && rollup -c rollup.dts.config.mjs && esbuild src/cli/index.ts --bundle --platform=node --outfile=dist/cli.cjs --format=cjs --external:esbuild --banner:js=\"#!/usr/bin/env node\" && node scripts/verify-skill-coverage.mjs && node scripts/copy-reference-docs.mjs && node ../../scripts/monorepo/generate-reference-artifacts.js",
|
|
73
|
-
"
|
|
74
|
-
"check-types": "pnpm type-check",
|
|
82
|
+
"check-types": "tsc --noEmit",
|
|
75
83
|
"test": "pnpm test:bundle",
|
|
76
84
|
"test:source": "vitest run --config vitest.config.ts",
|
|
77
85
|
"test:dist": "pnpm build && node ../../scripts/monorepo/validate-reference-artifacts.js && vitest run --config vitest.bundle.config.ts",
|
package/reference/_navigation.md
CHANGED
|
@@ -283,7 +283,7 @@ Docs-site pages indexed: 38.
|
|
|
283
283
|
| CLI Management Commands | `sdk/cli-management.mdx` | elevasis-sdk management commands -- project, note, acquisition, client, agent, session, queue, schedule, om, ui, skill, content, and grant subcommand families |
|
|
284
284
|
| CLI Reference | `sdk/cli.mdx` | Core elevasis-sdk CLI commands -- validate, deploy, execute, inspect resources, manage credentials, rename, and enumerate the command catalog |
|
|
285
285
|
| Concepts Reference | `sdk/concepts.mdx` | Plain-English explanations of Elevasis SDK concepts -- glossary, workflow analogies, Zod schemas, execution model, platform tools, and design decisions |
|
|
286
|
-
| When to Reach for the define* Builders | `sdk/define-builders.mdx` |
|
|
286
|
+
| When to Reach for the define* Builders | `sdk/define-builders.mdx` | defineSingleStepWorkflow, defineContract, defineResource, and defineTopology exist for three different reasons -- this page teaches which reason applies before you pick a builder over a plain object literal. |
|
|
287
287
|
| Command Center | `sdk/deployment/command-center.mdx` | Post-deployment UI reference -- what each page does, the resource graph model, relationships, validation, and how SDK concepts map to Command Center actions |
|
|
288
288
|
| Execution Reference | `sdk/deployment/execution-reference.mdx` | REST endpoints for executing resources, querying execution history, and managing deployments; plus React UI components and hooks for triggering executions from custom pages via @elevasis/ui |
|
|
289
289
|
| Deploying Resources | `sdk/deployment/index.mdx` | How to deploy your Elevasis SDK resources to the platform using elevasis-sdk deploy, including configuration, validation, and environment setup |
|
|
@@ -27,7 +27,7 @@ Pure query layer over the organization graph. Browser-safe (no Node APIs); share
|
|
|
27
27
|
|
|
28
28
|
## JSON envelope
|
|
29
29
|
|
|
30
|
-
`formatJson` returns `{ path, mount, args, results }`
|
|
30
|
+
`formatJson` returns `{ path, mount, args, results }` — the same wrapped envelope used by `pnpm exec elevasis knowledge:ls --json` and `pnpm exec elevasis-sdk knowledge:ls --json`.
|
|
31
31
|
|
|
32
32
|
`governs` and `governedBy` accept either bare or graph-namespaced ids (`knowledge.foo` or `knowledge:knowledge.foo`).
|
|
33
33
|
|
|
@@ -51,7 +51,7 @@ Resource identity is authored inside `OrganizationModel.resources`. Runtime work
|
|
|
51
51
|
|
|
52
52
|
## System Shape
|
|
53
53
|
|
|
54
|
-
`OrganizationModel.systems` is the canonical semantic domain map. Hierarchy is authored with recursive `systems`; dotted paths such as `sales.crm` are derived from position in that tree. `subsystems` is a deprecated compatibility alias — it is still accepted
|
|
54
|
+
`OrganizationModel.systems` is the canonical semantic domain map. Hierarchy is authored with recursive `systems`; dotted paths such as `sales.crm` are derived from position in that tree. `subsystems` is a deprecated compatibility alias — it is still accepted on input, but new authoring should use `systems`. Parsing does **not** copy `systems` into it: children come back under whichever key the author wrote, so read `system.systems ?? system.subsystems` rather than assuming either key is populated. `parentSystemId` and `id` remain accepted compatibility fields during the migration.
|
|
55
55
|
|
|
56
56
|
{/* doc-snippet:skip: illustrative excerpt, not a standalone compilable file */}
|
|
57
57
|
|
|
@@ -51,6 +51,7 @@ Lead gen is a layered platform surface, not one component. Shared packages own s
|
|
|
51
51
|
| `useLeadGenConfig`, `LeadGenBuildConfig`, build-state helpers | `@elevasis/ui/features/lead-gen` | Provider-backed derivation of stage catalog, build templates, default build steps, default template id, and export workflow id |
|
|
52
52
|
| `ListActionsProvider`, `useListActions`, `ListBuilderWorkflow`, `ListBuilderRegistry`, `LeadGenActionKey` | `@elevasis/ui/features/lead-gen` | List Builder workflow registry, slot-based field contracts, and project-owned action wiring |
|
|
53
53
|
| `LeadGenRouteShell` | `@elevasis/ui/features/lead-gen` | Route shell helper (contact/company detail surfaces are now `ContactDetailPage` / `CompanyDetailPage` from `@elevasis/ui/features/crm`) |
|
|
54
|
+
| `EMPLOYEE_RANGES`, `EmployeeRange` | `@elevasis/ui/features/lead-gen` | Apollo's own employee-count brackets for an Apollo import form. Wire values are Apollo's; relabel by mapping, never by redeclaring |
|
|
54
55
|
| `useLists`, `useList`, `useListsTelemetry`, `useListProgress`, `useListExecutions`, `useCreateList`, `useUpdateList`, `useUpdateListConfig`, `useDeleteList` | `@elevasis/ui/hooks` | Headless list and telemetry data access |
|
|
55
56
|
| `useWorkflowExecution`, `useExecutionSSE`, `useAddCompaniesToList`, `useRemoveCompaniesFromList`, `useAddContactsToList` | `@elevasis/ui/hooks` | List Builder workflow triggering, live execution tailing, and list membership mutations |
|
|
56
57
|
| `useCompanies`, `useCompany`, `useContacts`, `useContact` | `@elevasis/ui/hooks` | Acquisition company/contact data access |
|
|
@@ -208,7 +209,7 @@ function RootLayoutComponent() {
|
|
|
208
209
|
|
|
209
210
|
Data sourcing mode is list-wide. Read `list.pipelineConfig.dataMode` or the workflow-side `list.getConfig()` result when a workflow must choose mock versus live sourcing. Do not add per-action `mock` / `live` controls for Apollo, crawl, enrichment, or scoring steps. Export mode is separate: `preview` versus `export` controls whether a destination write happens.
|
|
210
211
|
|
|
211
|
-
Each registry entry declares a Zod `schema` and a `layout` of declarative field hints (`StepConfigLayout<Input>`). The shared `StepConfigForm` renders the layout, validates against the schema, and wires `value`/`onChange` for you
|
|
212
|
+
Each registry entry declares a Zod `schema` and a `layout` of declarative field hints (`StepConfigLayout<Input>`). The shared `StepConfigForm` renders the layout, validates against the schema, and wires `value`/`onChange` for you — no per-action React components. The List Builder right column renders the form as `Configuration | Advanced | Runs` tabs with a sticky action footer. Omit the `advanced:` section when a step has none.
|
|
212
213
|
|
|
213
214
|
Available field component variants: `textinput`, `textarea`, `numberinput`, `switch`, `segmented`, `select`, `multiselect`, `tags`, `json`. Field hints support `label`, `description`, `placeholder`, `min`/`max`/`step` (numbers), `options` (selects), and `when: (values) => boolean` for conditional visibility.
|
|
214
215
|
|