@signaliz/sdk 1.0.12 → 1.0.14

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.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Signaliz,
4
4
  createCampaignBuilderAgentRequestTemplate,
5
5
  createCampaignBuilderApproval
6
- } from "./chunk-XJQ6KGNQ.mjs";
6
+ } from "./chunk-EVFQETTN.mjs";
7
7
 
8
8
  // src/cli.ts
9
9
  import { readFileSync, writeFileSync } from "fs";
@@ -383,13 +383,14 @@ async function handleCampaignAgentCommand(signaliz, argv) {
383
383
  await handleCampaignAgentReviewCommand(signaliz, subcommand, argv.slice(1));
384
384
  return;
385
385
  }
386
- if (!["plan", "proof", "smoke", "commit-plan", "dry-run", "build-approved", "launch-approved"].includes(subcommand)) {
386
+ if (!["plan", "doctor", "readiness", "preflight", "proof", "smoke", "commit-plan", "dry-run", "build-approved", "launch-approved"].includes(subcommand)) {
387
387
  printCampaignAgentHelp();
388
388
  return;
389
389
  }
390
390
  const flags = parseFlags(argv.slice(1));
391
+ const isDoctor = subcommand === "doctor" || subcommand === "readiness" || subcommand === "preflight";
391
392
  const requestFromFile = campaignAgentRequestFileFromFlags(flags);
392
- const goal = stringFlag(flags, "goal", "brief") ?? stringOrUndefined(requestFromFile?.goal);
393
+ const goal = stringFlag(flags, "goal", "brief") ?? stringOrUndefined(requestFromFile?.goal) ?? (isDoctor ? "Build a strategy-template campaign for the target ICP." : void 0);
393
394
  if (!goal) throw new Error(`campaign-agent ${subcommand} requires --goal or a request file with goal`);
394
395
  const isApprovedBuild = subcommand === "build-approved" || subcommand === "launch-approved";
395
396
  const isCommitPlan = subcommand === "commit-plan";
@@ -408,18 +409,28 @@ async function handleCampaignAgentCommand(signaliz, argv) {
408
409
  requestFromFile,
409
410
  campaignAgentRequestFromFlags(goal, flags, { includeDefaults: !requestFromFile })
410
411
  );
411
- const plan = await signaliz.campaignBuilderAgent.createPlan(request, {
412
+ const planOptions = {
412
413
  discoverCapabilities: !booleanFlag(flags, "skip-discovery"),
413
414
  scopeCampaign: !booleanFlag(flags, "skip-scope"),
414
415
  includeStrategyMemoryStatus: !booleanFlag(flags, "no-strategy-memory"),
415
416
  includeKernelPlan: !booleanFlag(flags, "no-kernel-plan"),
416
417
  includeDeliveryRisk: !booleanFlag(flags, "no-delivery-risk")
417
- });
418
+ };
419
+ if (isDoctor) {
420
+ const readiness = await signaliz.campaignBuilderAgent.readiness(request, planOptions);
421
+ if (booleanFlag(flags, "json")) {
422
+ printJson(readiness);
423
+ } else {
424
+ printCampaignAgentReadiness(readiness);
425
+ }
426
+ if (!readiness.summary.ready) process.exitCode = 1;
427
+ return;
428
+ }
418
429
  if (subcommand === "proof" || subcommand === "smoke") {
419
- const result = await signaliz.campaignBuilderAgent.dryRunPlan(plan, {
430
+ const proof = await signaliz.campaignBuilderAgent.proof(request, {
431
+ ...planOptions,
420
432
  idempotencyKey: stringFlag(flags, "idempotency-key")
421
433
  });
422
- const proof = createCampaignAgentProofReceipt(plan, result);
423
434
  if (booleanFlag(flags, "json")) {
424
435
  printJson(proof);
425
436
  } else {
@@ -428,6 +439,7 @@ async function handleCampaignAgentCommand(signaliz, argv) {
428
439
  if (!proof.success) process.exitCode = 1;
429
440
  return;
430
441
  }
442
+ const plan = await signaliz.campaignBuilderAgent.createPlan(request, planOptions);
431
443
  if (isCommitPlan) {
432
444
  const result = await signaliz.campaignBuilderAgent.commitPlan(plan, {
433
445
  confirm: isConfirmedCommit,
@@ -902,6 +914,39 @@ function printCampaignAgentExecution(payload, flags) {
902
914
  console.log("\nResult:");
903
915
  printJson(payload.result);
904
916
  }
917
+ function printCampaignAgentReadiness(readiness) {
918
+ const summary = asRecord(readiness.summary);
919
+ const plan = readiness.plan;
920
+ console.log(`Readiness: ${summary.ready === true ? "ready" : "blocked"} (${summary.score ?? 0}%)`);
921
+ if (plan?.campaignName) console.log(`Campaign: ${plan.campaignName}`);
922
+ if (summary.targetCount !== void 0) console.log(`Target: ${summary.targetCount}`);
923
+ if (summary.estimatedCredits !== void 0) console.log(`Estimated credits: ${summary.estimatedCredits}`);
924
+ console.log(`Built-ins: ${summary.builtInLanesReady ?? 0}/${summary.builtInLanesTotal ?? 0}`);
925
+ console.log(`BYO routes: ${summary.customRoutesReady ?? 0}/${summary.customRoutesTotal ?? 0}`);
926
+ console.log(`Approval gates: ${summary.approvalGateCount ?? 0}`);
927
+ if (Array.isArray(readiness.gates) && readiness.gates.length > 0) {
928
+ console.log("\nGates:");
929
+ for (const gate of readiness.gates) {
930
+ console.log(`- ${gate.passed ? "PASS" : "BLOCKED"} ${gate.label}: ${gate.detail}`);
931
+ }
932
+ }
933
+ if (Array.isArray(readiness.lanes) && readiness.lanes.length > 0) {
934
+ console.log("\nLanes:");
935
+ for (const lane of readiness.lanes) {
936
+ console.log(`- ${lane.ready ? "READY" : "BLOCKED"} ${lane.label}: ${lane.toolName || lane.provider}`);
937
+ }
938
+ }
939
+ const blockers = Array.isArray(summary.blockers) ? summary.blockers : [];
940
+ if (blockers.length > 0) {
941
+ console.log("\nBlockers:");
942
+ for (const blocker of blockers.slice(0, 8)) console.log(`- ${blocker}`);
943
+ }
944
+ const nextActions = Array.isArray(readiness.nextActions) ? readiness.nextActions : [];
945
+ if (nextActions.length > 0) {
946
+ console.log("\nNext:");
947
+ for (const action of nextActions) console.log(`- ${action}`);
948
+ }
949
+ }
905
950
  function printCampaignAgentBuildStatus(status) {
906
951
  console.log(`Campaign: ${status.name || status.campaignBuildId}`);
907
952
  if (status.campaignId) console.log(`Campaign ID: ${status.campaignId}`);
@@ -986,138 +1031,6 @@ function printCampaignAgentRows(result) {
986
1031
  function asRecord(value) {
987
1032
  return value && typeof value === "object" && !Array.isArray(value) ? value : {};
988
1033
  }
989
- function createCampaignAgentProofReceipt(plan, result) {
990
- const strategyMemory = asRecord(plan.strategyMemoryStatus);
991
- const dryRunResult = asRecord(result);
992
- const memoryReady = plan.strategyMemoryStatus ? strategyMemory.ready !== false : false;
993
- const dryRunCompleted = dryRunResult.dryRun === true || dryRunResult.dry_run === true || dryRunResult.status === "dry_run";
994
- const noLaunch = dryRunCompleted && !dryRunResult.campaignBuildId && !dryRunResult.campaign_build_id;
995
- const gates = [
996
- {
997
- id: "strategy_memory_ready",
998
- passed: memoryReady,
999
- ready: strategyMemory.ready ?? null,
1000
- blocker_count: Array.isArray(strategyMemory.blockers) ? strategyMemory.blockers.length : 0
1001
- },
1002
- {
1003
- id: "campaign_plan_ready",
1004
- passed: Boolean(plan.planId && plan.mcpFlow.length > 0),
1005
- plan_id: plan.planId,
1006
- flow_steps: plan.mcpFlow.length
1007
- },
1008
- {
1009
- id: "approval_gates_present",
1010
- passed: plan.approvals.length > 0,
1011
- approval_types: plan.approvals.map((approval) => approval.type)
1012
- },
1013
- {
1014
- id: "dry_run_completed",
1015
- passed: dryRunCompleted,
1016
- status: dryRunResult.status ?? null,
1017
- current_phase: dryRunResult.currentPhase ?? dryRunResult.current_phase ?? null
1018
- },
1019
- {
1020
- id: "no_spendful_launch",
1021
- passed: noLaunch,
1022
- campaign_build_id: dryRunResult.campaignBuildId ?? dryRunResult.campaign_build_id ?? null
1023
- }
1024
- ];
1025
- return {
1026
- receipt_version: "campaign-agent-proof.v1",
1027
- source: "signaliz campaign-agent proof",
1028
- success: gates.every((gate) => gate.passed),
1029
- safety: {
1030
- spendful_tools_called: false,
1031
- external_writes_called: false,
1032
- sender_loads_called: false,
1033
- email_sends_called: false,
1034
- dry_run_only: true
1035
- },
1036
- campaign: {
1037
- plan_id: plan.planId,
1038
- campaign_name: plan.campaignName,
1039
- strategy_template: campaignAgentStrategyTemplate(plan),
1040
- target_count: plan.targetCount,
1041
- estimated_credits: plan.estimatedCredits,
1042
- operating_playbooks: plan.operatingPlaybooks.map((playbook) => playbook.slug)
1043
- },
1044
- gates,
1045
- strategy_memory_status: summarizeCampaignAgentStrategyMemory(strategyMemory),
1046
- dry_run_result: summarizeCampaignAgentDryRun(dryRunResult),
1047
- recommended_next_actions: [
1048
- "Review the plan, approvals, and dry-run result.",
1049
- "Use campaign-agent commit-plan --confirm-write only after review.",
1050
- "Use campaign-agent build-approved only with --confirm-launch, approval identity, approval types, and spend limit.",
1051
- "When an approved build reaches pending_approval, review rows and approve delivery through the Campaigns SDK."
1052
- ]
1053
- };
1054
- }
1055
- function campaignAgentString(...values) {
1056
- for (const value of values) {
1057
- if (typeof value === "string" && value.trim()) return value;
1058
- }
1059
- return null;
1060
- }
1061
- function campaignAgentStrategyTemplate(plan) {
1062
- const buildRequest = asRecord(plan.buildRequest);
1063
- const strategyMemory = asRecord(plan.strategyMemoryStatus);
1064
- const statusTemplate = strategyMemory.strategy_template ?? strategyMemory.strategyTemplate;
1065
- const statusTemplateRecord = asRecord(statusTemplate);
1066
- const flowTemplate = plan.mcpFlow.map((step) => asRecord(step.arguments).strategy_template ?? asRecord(step.arguments).strategyTemplate).find((value) => typeof value === "string" && value.trim());
1067
- return campaignAgentString(
1068
- buildRequest.strategyTemplate,
1069
- buildRequest.strategy_template,
1070
- statusTemplate,
1071
- statusTemplateRecord.slug,
1072
- statusTemplateRecord.id,
1073
- flowTemplate
1074
- );
1075
- }
1076
- function summarizeCampaignAgentStrategyMemory(strategyMemory) {
1077
- if (Object.keys(strategyMemory).length === 0) return { ready: false };
1078
- const template = strategyMemory.strategy_template ?? strategyMemory.strategyTemplate;
1079
- const templateRecord = asRecord(template);
1080
- const coverage = asRecord(strategyMemory.coverage);
1081
- const rawSourceGroups = Array.isArray(strategyMemory.source_groups) ? strategyMemory.source_groups : Array.isArray(strategyMemory.sourceGroups) ? strategyMemory.sourceGroups : [];
1082
- const sourceGroups = rawSourceGroups.map((group) => {
1083
- const sourceGroup = asRecord(group);
1084
- return {
1085
- id: sourceGroup.id ?? null,
1086
- required: sourceGroup.required ?? null,
1087
- ready: sourceGroup.ready ?? null,
1088
- counts: asRecord(sourceGroup.counts)
1089
- };
1090
- });
1091
- return {
1092
- ready: strategyMemory.ready ?? null,
1093
- read_only: strategyMemory.read_only ?? strategyMemory.readOnly ?? null,
1094
- source_tool: campaignAgentString(strategyMemory.source_tool, strategyMemory.sourceTool),
1095
- strategy_template: {
1096
- slug: campaignAgentString(template, templateRecord.slug, templateRecord.id),
1097
- label: campaignAgentString(templateRecord.label)
1098
- },
1099
- coverage: {
1100
- required_groups_ready: coverage.required_groups_ready ?? coverage.requiredGroupsReady ?? null,
1101
- required_groups_total: coverage.required_groups_total ?? coverage.requiredGroupsTotal ?? null,
1102
- source_groups_ready: coverage.source_groups_ready ?? coverage.sourceGroupsReady ?? null,
1103
- source_groups_total: coverage.source_groups_total ?? coverage.sourceGroupsTotal ?? null,
1104
- knowledge_docs: coverage.knowledge_docs ?? coverage.knowledgeDocs ?? null,
1105
- memories: coverage.memories ?? null
1106
- },
1107
- source_groups: sourceGroups,
1108
- blocker_count: Array.isArray(strategyMemory.blockers) ? strategyMemory.blockers.length : 0,
1109
- warning_count: Array.isArray(strategyMemory.warnings) ? strategyMemory.warnings.length : 0
1110
- };
1111
- }
1112
- function summarizeCampaignAgentDryRun(dryRunResult) {
1113
- return {
1114
- dryRun: dryRunResult.dryRun ?? dryRunResult.dry_run ?? null,
1115
- status: dryRunResult.status ?? null,
1116
- currentPhase: dryRunResult.currentPhase ?? dryRunResult.current_phase ?? null,
1117
- campaignBuildId: dryRunResult.campaignBuildId ?? dryRunResult.campaign_build_id ?? null,
1118
- plannedTargetCount: dryRunResult.plannedTargetCount ?? dryRunResult.planned_target_count ?? null
1119
- };
1120
- }
1121
1034
  function printCampaignAgentProof(proof) {
1122
1035
  console.log(`Campaign-agent proof: ${proof.success ? "passed" : "failed"}`);
1123
1036
  const campaign = asRecord(proof.campaign);
@@ -1152,6 +1065,7 @@ Usage:
1152
1065
  signaliz gtm memory search --query "proof-first vertical gate" --json
1153
1066
  signaliz gtm plan --brief "Build 500 verified leads for..." --strategy-template non-medical-home-care --lead-count 500 --json
1154
1067
  signaliz campaign-agent init --strategy-template non-medical-home-care --target-count 250 --use-local-leads --json > campaign-request.json
1068
+ signaliz campaign-agent doctor --request-file campaign-request.json --json
1155
1069
  signaliz campaign-agent plan --goal "Build a strategy-template campaign..." --strategy-template industrial-ot-resilience --target-count 500 --builtins lead_generation,email_finding,email_verification,signals
1156
1070
  signaliz campaign-agent proof --goal "Build a strategy-template campaign..." --strategy-template non-medical-home-care --target-count 100 --json
1157
1071
  signaliz campaign-agent plan --request-file examples/campaign-builder-agent-request.json --target-count 250 --json
@@ -1188,6 +1102,7 @@ function printCampaignAgentHelp() {
1188
1102
  Signaliz campaign-agent commands:
1189
1103
 
1190
1104
  signaliz campaign-agent init [--goal TEXT] [--strategy-template ID] [--target-count N] [--use-local-leads] [--with-byo-placeholder] [--output-file FILE] [--json]
1105
+ signaliz campaign-agent doctor [--goal TEXT | --request-file FILE] [--strategy-template ID] [--target-count N] [--builtins lead_generation,email_finding,email_verification,signals,local_leads] [--custom-tool provider:layer:tool[:mcp]] [--json]
1191
1106
  signaliz campaign-agent plan (--goal TEXT | --request-file FILE) [--campaign-name NAME] [--workspace-label NAME] [--strategy-template industrial-ot-resilience|non-medical-home-care|agency-founder-led|cloud-infrastructure-displacement] [--operating-playbooks proof-first-vertical-gate,signal-led-copy-approval] [--target-count N] [--icp JSON] [--builtins lead_generation,email_finding,email_verification,signals,local_leads] [--use-local-leads] [--custom-tool provider:layer:tool[:mcp]] [--preferred-providers signaliz_native,octave] [--partners clay,instantly,nango] [--no-strategy-memory] [--no-kernel-plan] [--no-delivery-risk] [--json]
1192
1107
  signaliz campaign-agent proof (--goal TEXT | --request-file FILE) [--strategy-template ID] [--target-count N] [--use-local-leads] [--custom-tool provider:layer:tool[:mcp]] [--idempotency-key KEY] [--json]
1193
1108
  signaliz campaign-agent commit-plan (--goal TEXT | --request-file FILE) [--confirm-write --approved-by EMAIL] [--idempotency-key KEY] [--json]
@@ -1199,7 +1114,7 @@ Signaliz campaign-agent commands:
1199
1114
  signaliz campaign-agent artifacts <campaign_build_id> [--json]
1200
1115
  signaliz campaign-agent approve <campaign_build_id> --destination-type json|csv|webhook [--destination-config JSON] [--json]
1201
1116
 
1202
- The init command emits a reusable JSON CampaignBuilderAgentRequest. The plan command composes an approval-gated strategy-template MCP flow. Proof runs the same plan path plus build_campaign dry_run=true and returns a no-spend receipt. Use --request-file to load a reusable request, then override fields such as --target-count or --strategy-template from the command line. Use --strategy-template to merge a private-safe strategy pattern into the plan without exposing private account labels, and --operating-playbooks to add reusable build-loop gates such as proof-first vertical qualification, net-new suppression, cache-first inventory, and signal-led copy approval. Built-ins map to Signaliz-native tools: lead_generation -> generate_leads, local_leads -> generate_local_leads, email_finding -> find_and_verify_emails, email_verification -> verify_emails, signals -> enrich_company_signals. Add BYO tools with --custom-tool provider:layer:tool[:mcp] or key=value pairs such as provider=apollo,layer=source,tool=apollo_search,mcp=apollo. Use --no-strategy-patterns or --no-workflow-patterns to disable default private strategy memory hints. Commit-plan dry-runs by default and writes only with --confirm-write plus approval identity. Dry-run executes build_campaign with dry_run=true. Approved build requires explicit launch confirmation and approval metadata; add --commit-before-launch to persist the reviewed plan as a GTM campaign before launch, --wait to poll until completion or pending approval, and --approve-delivery to approve reviewed webhook delivery after pending_approval. Use review to inspect status, sampled rows, artifacts, and delivery-readiness gates before approving delivery or routing rows to external tools.
1117
+ The init command emits a reusable JSON CampaignBuilderAgentRequest. Doctor returns a readiness packet for built-in lanes, BYO routes, Memory, Brain, Kernel planning, and approval gates. The plan command composes an approval-gated strategy-template MCP flow. Proof runs the same plan path plus build_campaign dry_run=true and returns a no-spend receipt. Use --request-file to load a reusable request, then override fields such as --target-count or --strategy-template from the command line. Use --strategy-template to merge a private-safe strategy pattern into the plan without exposing private account labels, and --operating-playbooks to add reusable build-loop gates such as proof-first vertical qualification, net-new suppression, cache-first inventory, and signal-led copy approval. Built-ins map to Signaliz-native tools: lead_generation -> generate_leads, local_leads -> generate_local_leads, email_finding -> find_and_verify_emails, email_verification -> verify_emails, signals -> enrich_company_signals. Add BYO tools with --custom-tool provider:layer:tool[:mcp] or key=value pairs such as provider=apollo,layer=source,tool=apollo_search,mcp=apollo. Use --no-strategy-patterns or --no-workflow-patterns to disable default private strategy memory hints. Commit-plan dry-runs by default and writes only with --confirm-write plus approval identity. Dry-run executes build_campaign with dry_run=true. Approved build requires explicit launch confirmation and approval metadata; add --commit-before-launch to persist the reviewed plan as a GTM campaign before launch, --wait to poll until completion or pending approval, and --approve-delivery to approve reviewed webhook delivery after pending_approval. Use review to inspect status, sampled rows, artifacts, and delivery-readiness gates before approving delivery or routing rows to external tools.
1203
1118
  `);
1204
1119
  }
1205
1120
  main().catch((e) => {
package/dist/index.d.mts CHANGED
@@ -1094,6 +1094,34 @@ interface CampaignBuilderApprovedRunResult {
1094
1094
  finalStatus?: CampaignBuildStatus;
1095
1095
  deliveryApproval?: ApproveDeliveryResult;
1096
1096
  }
1097
+ type CampaignBuilderProofOptions = CampaignBuilderPlanOptions & BuildOptions;
1098
+ interface CampaignBuilderProofReceipt {
1099
+ receipt_version: 'campaign-agent-proof.v1';
1100
+ source: string;
1101
+ success: boolean;
1102
+ safety: {
1103
+ spendful_tools_called: boolean;
1104
+ external_writes_called: boolean;
1105
+ sender_loads_called: boolean;
1106
+ email_sends_called: boolean;
1107
+ dry_run_only: boolean;
1108
+ };
1109
+ campaign: {
1110
+ plan_id: string;
1111
+ campaign_name: string;
1112
+ strategy_template: string | null;
1113
+ target_count: number;
1114
+ estimated_credits: number;
1115
+ operating_playbooks: string[];
1116
+ };
1117
+ gates: Array<UnknownRecord$1 & {
1118
+ id: string;
1119
+ passed: boolean;
1120
+ }>;
1121
+ strategy_memory_status: UnknownRecord$1;
1122
+ dry_run_result: UnknownRecord$1;
1123
+ recommended_next_actions: string[];
1124
+ }
1097
1125
  interface CampaignBuilderBuildReviewOptions extends CampaignRowsOptions {
1098
1126
  /** Number of rows to sample for review. Defaults to 100. */
1099
1127
  limit?: number;
@@ -1126,6 +1154,48 @@ interface CampaignBuilderBuildReview {
1126
1154
  summary: CampaignBuilderBuildReviewSummary;
1127
1155
  nextActions: string[];
1128
1156
  }
1157
+ interface CampaignBuilderReadinessLane {
1158
+ id: string;
1159
+ label: string;
1160
+ layer: CampaignBuilderLayer;
1161
+ gtmLayers: string[];
1162
+ provider: CampaignBuilderProvider;
1163
+ toolName?: string;
1164
+ mode: CampaignBuilderRouteMode;
1165
+ builtIn?: CampaignBuilderBuiltInTool;
1166
+ approvalRequired: boolean;
1167
+ customRoute: boolean;
1168
+ readOnlySetup: boolean;
1169
+ ready: boolean;
1170
+ blockers: string[];
1171
+ nextAction?: string;
1172
+ }
1173
+ interface CampaignBuilderReadinessGate {
1174
+ id: string;
1175
+ label: string;
1176
+ passed: boolean;
1177
+ detail: string;
1178
+ }
1179
+ interface CampaignBuilderReadinessSummary {
1180
+ ready: boolean;
1181
+ score: number;
1182
+ targetCount: number;
1183
+ estimatedCredits: number;
1184
+ builtInLanesReady: number;
1185
+ builtInLanesTotal: number;
1186
+ customRoutesReady: number;
1187
+ customRoutesTotal: number;
1188
+ approvalGateCount: number;
1189
+ blockers: string[];
1190
+ warnings: string[];
1191
+ }
1192
+ interface CampaignBuilderReadinessPacket {
1193
+ plan: CampaignBuilderAgentPlan;
1194
+ lanes: CampaignBuilderReadinessLane[];
1195
+ gates: CampaignBuilderReadinessGate[];
1196
+ summary: CampaignBuilderReadinessSummary;
1197
+ nextActions: string[];
1198
+ }
1129
1199
  declare const DEFAULT_SIGNALIZ_CAMPAIGN_BUILDER_DEFAULTS: Required<Pick<SignalizCampaignBuilderDefaults, 'requireVerifiedEmail' | 'dedupKeys' | 'allowDownscale'>> & SignalizCampaignBuilderDefaults;
1130
1200
  declare const DEFAULT_CAMPAIGN_BUILDER_BUILT_INS: CampaignBuilderBuiltInTool[];
1131
1201
  declare const DEFAULT_CAMPAIGN_BUILDER_APPROVAL_TYPES: CampaignBuilderApprovalType[];
@@ -1135,6 +1205,8 @@ declare class CampaignBuilderAgent {
1135
1205
  private client;
1136
1206
  constructor(client: HttpClient);
1137
1207
  createPlan(request: CampaignBuilderAgentRequest, options?: CampaignBuilderPlanOptions): Promise<CampaignBuilderAgentPlan>;
1208
+ readiness(request: CampaignBuilderAgentRequest, options?: CampaignBuilderPlanOptions): Promise<CampaignBuilderReadinessPacket>;
1209
+ proof(request: CampaignBuilderAgentRequest, options?: CampaignBuilderProofOptions): Promise<CampaignBuilderProofReceipt>;
1138
1210
  commitPlan(plan: CampaignBuilderAgentPlan, options?: CampaignBuilderPlanCommitOptions): Promise<CampaignBuilderPlanCommitResult>;
1139
1211
  dryRunPlan(plan: CampaignBuilderAgentPlan, options?: BuildOptions): Promise<CampaignBuildResult>;
1140
1212
  buildApprovedPlan(plan: CampaignBuilderAgentPlan, approval: CampaignBuilderApproval, options?: CampaignBuilderBuildOptions): Promise<CampaignBuildResult>;
@@ -1164,6 +1236,8 @@ declare function createCampaignBuilderAgentPlan(request: CampaignBuilderAgentReq
1164
1236
  scopeBrainPreflight?: UnknownRecord$1;
1165
1237
  warnings?: string[];
1166
1238
  }): CampaignBuilderAgentPlan;
1239
+ declare function createCampaignBuilderReadiness(plan: CampaignBuilderAgentPlan): CampaignBuilderReadinessPacket;
1240
+ declare function createCampaignBuilderProofReceipt(plan: CampaignBuilderAgentPlan, result: unknown): CampaignBuilderProofReceipt;
1167
1241
  declare function getMissingCampaignBuilderApprovals(plan: CampaignBuilderAgentPlan, approval: CampaignBuilderApproval): CampaignBuilderRequiredApproval[];
1168
1242
  declare function createCampaignBuilderApproval(plan: CampaignBuilderAgentPlan, input: Omit<CampaignBuilderApproval, 'planId' | 'approvedAt'>): CampaignBuilderApproval;
1169
1243
  declare function getCampaignBuilderStrategyTemplate(value: unknown): CampaignBuilderStrategyTemplate | undefined;
@@ -3424,4 +3498,4 @@ declare class Signaliz {
3424
3498
  discover(query: string, category?: string): Promise<MCPToolInfo[]>;
3425
3499
  }
3426
3500
 
3427
- export { Ai, type ApproveDeliveryResult, type BuildOptions, CAMPAIGN_BUILDER_OPERATING_PLAYBOOKS, CAMPAIGN_BUILDER_STRATEGY_TEMPLATES, type CampaignArtifact, type CampaignBuildRequest$1 as CampaignBuildRequest, type CampaignBuildResult$1 as CampaignBuildResult, type CampaignBuildRow, type CampaignBuildStatus, CampaignBuilderAgent, type CampaignBuilderAgentPlan, type CampaignBuilderAgentProvider, type CampaignBuilderAgentRequest, type CampaignBuilderAgentRequestTemplateOptions, type CampaignBuilderApproval, type CampaignBuilderApprovalPolicy, type CampaignBuilderApprovalType, type CampaignBuilderApprovedRunOptions, type CampaignBuilderApprovedRunResult, type CampaignBuilderBuildOptions, type CampaignBuilderBuiltInTool, type CampaignBuilderCustomerTool, type CampaignBuilderGtmLayer, type CampaignBuilderIntegrationRoute, type CampaignBuilderLayer, type CampaignBuilderMcpStep, type CampaignBuilderMemoryPlan, type CampaignBuilderMemoryQuery, type CampaignBuilderMemoryScope, type CampaignBuilderOperatingPlaybook, type CampaignBuilderOperatingPlaybookSlug, type CampaignBuilderPlanCommitOptions, type CampaignBuilderPlanCommitResult, type CampaignBuilderPlanOptions, type CampaignBuilderProvider, type CampaignBuilderRequiredApproval, type CampaignBuilderRouteMode, type CampaignBuilderStrategyTemplate, type CampaignBuilderStrategyTemplateSlug, type CampaignBuilderWorkspaceContext, type CampaignDeliveryMode, type CampaignProviderRouteReadback, type CampaignRowsOptions, type CampaignRowsResult, Campaigns, type CancelBuildResult, type CompanyIntelligenceParams, type CompanyIntelligenceResult, type CreateOutputSinkRequest, type CreateRoutineRequest, type CreateSystemParams, type CustomAiAttachment, type CustomAiFusionConfig, type CustomAiMultiModelParams, type CustomAiMultiModelResult, type CustomAiOutputField, DEFAULT_CAMPAIGN_BUILDER_APPROVAL_TYPES, DEFAULT_CAMPAIGN_BUILDER_BUILT_INS, DEFAULT_SIGNALIZ_CAMPAIGN_BUILDER_DEFAULTS, type EmailBatchJobResult, type EnrichSignalsParams, type EnrichSignalsResult, type ErrorType, type ExecutionReference, type ExecutionReferenceInput, type ExecutionReferenceKind, type FindAndVerifyEmailContact, type FindEmailParams, type FindEmailResult, type GenerateLeadsParams, type GenerateLocalLeadsParams, type GtmActorType, type GtmAuthStrategy, type GtmBrainAggregateCalibrationsInput, type GtmBrainAggregatePatternsInput, type GtmBrainCalibrateDeliverabilityInput, type GtmBrainDeliveryRiskInput, type GtmBrainDistillRunInput, type GtmBrainExtractPatternsInput, type GtmBrainFailurePatternsOptions, type GtmBrainLearningAction, type GtmBrainLearningCyclePhase, type GtmBrainLearningCyclePlanInput, type GtmBrainLearningCyclePlanResult, type GtmBrainLearningCycleRunInput, type GtmBrainLearningEvidenceCounts, type GtmBrainLearningLane, type GtmBrainLearningLaneId, type GtmBrainLearningLaneState, type GtmBrainLearningLaneSummary, type GtmBrainLearningPhaseReadiness, type GtmBrainLearningPhaseStatus, type GtmBrainLearningRecommendedToolCall, type GtmBrainPatternsOptions, type GtmBrainSeedDefaultsInput, type GtmCalibrationDimensionType, type GtmCampaignAgentPlanInput, type GtmCampaignAgentRequestTemplateInput, type GtmCampaignBuildPlanInput, type GtmCampaignCreateInput, type GtmCampaignGetOptions, type GtmCampaignHistoryCampaignInput, type GtmCampaignHistoryImportBatchInput, type GtmCampaignHistoryImportInput, type GtmCampaignHistoryImportRunInput, type GtmCampaignHistoryMemoryInput, type GtmCampaignLearningStatusResult, type GtmCampaignListOptions, type GtmCampaignLogInput, type GtmCampaignSource, type GtmCampaignStartContextInput, type GtmCampaignStatus, type GtmCampaignStrategyMemoryStatusInput, type GtmCampaignStrategyTemplateSlug, type GtmCampaignStrategyTemplatesOptions, type GtmCampaignUpdateInput, type GtmConnectionRegisterInput, type GtmConnectionsListOptions, type GtmExistingCampaignAuditBoundary, type GtmExistingCampaignAuditBySearchOptions, type GtmExistingCampaignAuditOptions, type GtmExistingCampaignAuditRecommendation, type GtmExistingCampaignAuditResult, type GtmExistingCampaignCompletenessStep, type GtmExistingCampaignDiscoverOptions, type GtmExistingCampaignDiscoveryResult, type GtmExistingCampaignMcpRequest, type GtmExistingCampaignOption, type GtmFeedbackIngestInput, type GtmIntegrationRecipeCreateInput, type GtmInvocationType, GtmKernel, type GtmKernelImportPreviewInput, type GtmKernelImportRunInput, type GtmLayer, type GtmLayerRouteSetInput, type GtmLayerRoutesGetOptions, type GtmMemorySearchOptions, type GtmMemoryType, type GtmPatternType, type GtmProviderLinkInput, type GtmProviderRecipePrepareInput, type GtmProviderRouteActivateInput, type GtmWebhookDeliverInput, type GtmWorkspaceBootstrapStatusOptions, type GtmWorkspaceContextOptions, type HttpRequestParams, type HttpRequestResult, type IcpDetail, type IcpSummary, Icps, type ImportOctaveResult, type LeadGenJobResult, type ListOutputSinksOptions, type MCPToolInfo, type NativeGtmCapabilityInfo, Ops, type OpsApproveRequest, type OpsApproveResult, type OpsBlueprint, type OpsCadence, type OpsCreateRequest, type OpsCreateResult, type OpsDashboardOptions, type OpsDashboardResult, type OpsDebugDiagnosticError, type OpsDebugOptions, type OpsDebugResult, type OpsPlanRequest, type OpsPlanResult, type OpsPrimitive, type OpsPrimitiveConcurrencyPolicy, type OpsPrimitiveDeadLetterPolicy, type OpsPrimitiveObservabilityPolicy, type OpsPrimitivePermissionLevel, type OpsPrimitiveRetryPolicy, type OpsPrimitiveWorkspaceScope, type OpsQueueStatus, type OpsQueueStatusOptions, type OpsQuickstartStep, type OpsQuickstartWorkflow, type OpsReadinessCheck, type OpsReadinessOptions, type OpsReadinessResult, type OpsReplayResult, type OpsResultsOptions, type OpsResultsResult, type OpsRoutine, type OpsRoutineDeleteResult, type OpsRoutineRunResult, type OpsRoutineSinkResult, type OpsRoutineStatus, type OpsRoutineTick, type OpsRoutineTickItem, type OpsRoutineTickItemsResult, type OpsRoutineTicksResult, type OpsRoutinesResult, type OpsRunOptions, type OpsRunResult, type OpsSink, type OpsSinkType, type OpsStatusOptions, type OpsStatusResult, type OpsTriggerBatchRunStatus, type OpsTriggerRunStatus, type OpsTriggerRunStatusOptions, type PlatformHealth, type RunNativeGtmCapabilityParams, type RunProgressEvent, type RunResult, type RunRoutineRequest, type RunSystemParams, type Signal, Signaliz, type SignalizCampaignBuilderDefaults, type SignalizConfig, SignalizError, type SignalizErrorData, type SimpleOpStatus, type SystemResult, type UpdateRoutineRequest, type VerifyEmailResult, type WaitOptions, type WorkspaceInfo, applyCampaignBuilderStrategyTemplate, collectExecutionReferences, createCampaignBuilderAgentPlan, createCampaignBuilderAgentRequestTemplate, createCampaignBuilderApproval, createCampaignBuilderToolRoute, getCampaignBuilderOperatingPlaybook, getCampaignBuilderOperatingPlaybooksForRequest, getCampaignBuilderStrategyTemplate, getMissingCampaignBuilderApprovals, normalizeExecutionReference };
3501
+ export { Ai, type ApproveDeliveryResult, type BuildOptions, CAMPAIGN_BUILDER_OPERATING_PLAYBOOKS, CAMPAIGN_BUILDER_STRATEGY_TEMPLATES, type CampaignArtifact, type CampaignBuildRequest$1 as CampaignBuildRequest, type CampaignBuildResult$1 as CampaignBuildResult, type CampaignBuildRow, type CampaignBuildStatus, CampaignBuilderAgent, type CampaignBuilderAgentPlan, type CampaignBuilderAgentProvider, type CampaignBuilderAgentRequest, type CampaignBuilderAgentRequestTemplateOptions, type CampaignBuilderApproval, type CampaignBuilderApprovalPolicy, type CampaignBuilderApprovalType, type CampaignBuilderApprovedRunOptions, type CampaignBuilderApprovedRunResult, type CampaignBuilderBuildOptions, type CampaignBuilderBuiltInTool, type CampaignBuilderCustomerTool, type CampaignBuilderGtmLayer, type CampaignBuilderIntegrationRoute, type CampaignBuilderLayer, type CampaignBuilderMcpStep, type CampaignBuilderMemoryPlan, type CampaignBuilderMemoryQuery, type CampaignBuilderMemoryScope, type CampaignBuilderOperatingPlaybook, type CampaignBuilderOperatingPlaybookSlug, type CampaignBuilderPlanCommitOptions, type CampaignBuilderPlanCommitResult, type CampaignBuilderPlanOptions, type CampaignBuilderProofOptions, type CampaignBuilderProofReceipt, type CampaignBuilderProvider, type CampaignBuilderReadinessGate, type CampaignBuilderReadinessLane, type CampaignBuilderReadinessPacket, type CampaignBuilderReadinessSummary, type CampaignBuilderRequiredApproval, type CampaignBuilderRouteMode, type CampaignBuilderStrategyTemplate, type CampaignBuilderStrategyTemplateSlug, type CampaignBuilderWorkspaceContext, type CampaignDeliveryMode, type CampaignProviderRouteReadback, type CampaignRowsOptions, type CampaignRowsResult, Campaigns, type CancelBuildResult, type CompanyIntelligenceParams, type CompanyIntelligenceResult, type CreateOutputSinkRequest, type CreateRoutineRequest, type CreateSystemParams, type CustomAiAttachment, type CustomAiFusionConfig, type CustomAiMultiModelParams, type CustomAiMultiModelResult, type CustomAiOutputField, DEFAULT_CAMPAIGN_BUILDER_APPROVAL_TYPES, DEFAULT_CAMPAIGN_BUILDER_BUILT_INS, DEFAULT_SIGNALIZ_CAMPAIGN_BUILDER_DEFAULTS, type EmailBatchJobResult, type EnrichSignalsParams, type EnrichSignalsResult, type ErrorType, type ExecutionReference, type ExecutionReferenceInput, type ExecutionReferenceKind, type FindAndVerifyEmailContact, type FindEmailParams, type FindEmailResult, type GenerateLeadsParams, type GenerateLocalLeadsParams, type GtmActorType, type GtmAuthStrategy, type GtmBrainAggregateCalibrationsInput, type GtmBrainAggregatePatternsInput, type GtmBrainCalibrateDeliverabilityInput, type GtmBrainDeliveryRiskInput, type GtmBrainDistillRunInput, type GtmBrainExtractPatternsInput, type GtmBrainFailurePatternsOptions, type GtmBrainLearningAction, type GtmBrainLearningCyclePhase, type GtmBrainLearningCyclePlanInput, type GtmBrainLearningCyclePlanResult, type GtmBrainLearningCycleRunInput, type GtmBrainLearningEvidenceCounts, type GtmBrainLearningLane, type GtmBrainLearningLaneId, type GtmBrainLearningLaneState, type GtmBrainLearningLaneSummary, type GtmBrainLearningPhaseReadiness, type GtmBrainLearningPhaseStatus, type GtmBrainLearningRecommendedToolCall, type GtmBrainPatternsOptions, type GtmBrainSeedDefaultsInput, type GtmCalibrationDimensionType, type GtmCampaignAgentPlanInput, type GtmCampaignAgentRequestTemplateInput, type GtmCampaignBuildPlanInput, type GtmCampaignCreateInput, type GtmCampaignGetOptions, type GtmCampaignHistoryCampaignInput, type GtmCampaignHistoryImportBatchInput, type GtmCampaignHistoryImportInput, type GtmCampaignHistoryImportRunInput, type GtmCampaignHistoryMemoryInput, type GtmCampaignLearningStatusResult, type GtmCampaignListOptions, type GtmCampaignLogInput, type GtmCampaignSource, type GtmCampaignStartContextInput, type GtmCampaignStatus, type GtmCampaignStrategyMemoryStatusInput, type GtmCampaignStrategyTemplateSlug, type GtmCampaignStrategyTemplatesOptions, type GtmCampaignUpdateInput, type GtmConnectionRegisterInput, type GtmConnectionsListOptions, type GtmExistingCampaignAuditBoundary, type GtmExistingCampaignAuditBySearchOptions, type GtmExistingCampaignAuditOptions, type GtmExistingCampaignAuditRecommendation, type GtmExistingCampaignAuditResult, type GtmExistingCampaignCompletenessStep, type GtmExistingCampaignDiscoverOptions, type GtmExistingCampaignDiscoveryResult, type GtmExistingCampaignMcpRequest, type GtmExistingCampaignOption, type GtmFeedbackIngestInput, type GtmIntegrationRecipeCreateInput, type GtmInvocationType, GtmKernel, type GtmKernelImportPreviewInput, type GtmKernelImportRunInput, type GtmLayer, type GtmLayerRouteSetInput, type GtmLayerRoutesGetOptions, type GtmMemorySearchOptions, type GtmMemoryType, type GtmPatternType, type GtmProviderLinkInput, type GtmProviderRecipePrepareInput, type GtmProviderRouteActivateInput, type GtmWebhookDeliverInput, type GtmWorkspaceBootstrapStatusOptions, type GtmWorkspaceContextOptions, type HttpRequestParams, type HttpRequestResult, type IcpDetail, type IcpSummary, Icps, type ImportOctaveResult, type LeadGenJobResult, type ListOutputSinksOptions, type MCPToolInfo, type NativeGtmCapabilityInfo, Ops, type OpsApproveRequest, type OpsApproveResult, type OpsBlueprint, type OpsCadence, type OpsCreateRequest, type OpsCreateResult, type OpsDashboardOptions, type OpsDashboardResult, type OpsDebugDiagnosticError, type OpsDebugOptions, type OpsDebugResult, type OpsPlanRequest, type OpsPlanResult, type OpsPrimitive, type OpsPrimitiveConcurrencyPolicy, type OpsPrimitiveDeadLetterPolicy, type OpsPrimitiveObservabilityPolicy, type OpsPrimitivePermissionLevel, type OpsPrimitiveRetryPolicy, type OpsPrimitiveWorkspaceScope, type OpsQueueStatus, type OpsQueueStatusOptions, type OpsQuickstartStep, type OpsQuickstartWorkflow, type OpsReadinessCheck, type OpsReadinessOptions, type OpsReadinessResult, type OpsReplayResult, type OpsResultsOptions, type OpsResultsResult, type OpsRoutine, type OpsRoutineDeleteResult, type OpsRoutineRunResult, type OpsRoutineSinkResult, type OpsRoutineStatus, type OpsRoutineTick, type OpsRoutineTickItem, type OpsRoutineTickItemsResult, type OpsRoutineTicksResult, type OpsRoutinesResult, type OpsRunOptions, type OpsRunResult, type OpsSink, type OpsSinkType, type OpsStatusOptions, type OpsStatusResult, type OpsTriggerBatchRunStatus, type OpsTriggerRunStatus, type OpsTriggerRunStatusOptions, type PlatformHealth, type RunNativeGtmCapabilityParams, type RunProgressEvent, type RunResult, type RunRoutineRequest, type RunSystemParams, type Signal, Signaliz, type SignalizCampaignBuilderDefaults, type SignalizConfig, SignalizError, type SignalizErrorData, type SimpleOpStatus, type SystemResult, type UpdateRoutineRequest, type VerifyEmailResult, type WaitOptions, type WorkspaceInfo, applyCampaignBuilderStrategyTemplate, collectExecutionReferences, createCampaignBuilderAgentPlan, createCampaignBuilderAgentRequestTemplate, createCampaignBuilderApproval, createCampaignBuilderProofReceipt, createCampaignBuilderReadiness, createCampaignBuilderToolRoute, getCampaignBuilderOperatingPlaybook, getCampaignBuilderOperatingPlaybooksForRequest, getCampaignBuilderStrategyTemplate, getMissingCampaignBuilderApprovals, normalizeExecutionReference };
package/dist/index.d.ts CHANGED
@@ -1094,6 +1094,34 @@ interface CampaignBuilderApprovedRunResult {
1094
1094
  finalStatus?: CampaignBuildStatus;
1095
1095
  deliveryApproval?: ApproveDeliveryResult;
1096
1096
  }
1097
+ type CampaignBuilderProofOptions = CampaignBuilderPlanOptions & BuildOptions;
1098
+ interface CampaignBuilderProofReceipt {
1099
+ receipt_version: 'campaign-agent-proof.v1';
1100
+ source: string;
1101
+ success: boolean;
1102
+ safety: {
1103
+ spendful_tools_called: boolean;
1104
+ external_writes_called: boolean;
1105
+ sender_loads_called: boolean;
1106
+ email_sends_called: boolean;
1107
+ dry_run_only: boolean;
1108
+ };
1109
+ campaign: {
1110
+ plan_id: string;
1111
+ campaign_name: string;
1112
+ strategy_template: string | null;
1113
+ target_count: number;
1114
+ estimated_credits: number;
1115
+ operating_playbooks: string[];
1116
+ };
1117
+ gates: Array<UnknownRecord$1 & {
1118
+ id: string;
1119
+ passed: boolean;
1120
+ }>;
1121
+ strategy_memory_status: UnknownRecord$1;
1122
+ dry_run_result: UnknownRecord$1;
1123
+ recommended_next_actions: string[];
1124
+ }
1097
1125
  interface CampaignBuilderBuildReviewOptions extends CampaignRowsOptions {
1098
1126
  /** Number of rows to sample for review. Defaults to 100. */
1099
1127
  limit?: number;
@@ -1126,6 +1154,48 @@ interface CampaignBuilderBuildReview {
1126
1154
  summary: CampaignBuilderBuildReviewSummary;
1127
1155
  nextActions: string[];
1128
1156
  }
1157
+ interface CampaignBuilderReadinessLane {
1158
+ id: string;
1159
+ label: string;
1160
+ layer: CampaignBuilderLayer;
1161
+ gtmLayers: string[];
1162
+ provider: CampaignBuilderProvider;
1163
+ toolName?: string;
1164
+ mode: CampaignBuilderRouteMode;
1165
+ builtIn?: CampaignBuilderBuiltInTool;
1166
+ approvalRequired: boolean;
1167
+ customRoute: boolean;
1168
+ readOnlySetup: boolean;
1169
+ ready: boolean;
1170
+ blockers: string[];
1171
+ nextAction?: string;
1172
+ }
1173
+ interface CampaignBuilderReadinessGate {
1174
+ id: string;
1175
+ label: string;
1176
+ passed: boolean;
1177
+ detail: string;
1178
+ }
1179
+ interface CampaignBuilderReadinessSummary {
1180
+ ready: boolean;
1181
+ score: number;
1182
+ targetCount: number;
1183
+ estimatedCredits: number;
1184
+ builtInLanesReady: number;
1185
+ builtInLanesTotal: number;
1186
+ customRoutesReady: number;
1187
+ customRoutesTotal: number;
1188
+ approvalGateCount: number;
1189
+ blockers: string[];
1190
+ warnings: string[];
1191
+ }
1192
+ interface CampaignBuilderReadinessPacket {
1193
+ plan: CampaignBuilderAgentPlan;
1194
+ lanes: CampaignBuilderReadinessLane[];
1195
+ gates: CampaignBuilderReadinessGate[];
1196
+ summary: CampaignBuilderReadinessSummary;
1197
+ nextActions: string[];
1198
+ }
1129
1199
  declare const DEFAULT_SIGNALIZ_CAMPAIGN_BUILDER_DEFAULTS: Required<Pick<SignalizCampaignBuilderDefaults, 'requireVerifiedEmail' | 'dedupKeys' | 'allowDownscale'>> & SignalizCampaignBuilderDefaults;
1130
1200
  declare const DEFAULT_CAMPAIGN_BUILDER_BUILT_INS: CampaignBuilderBuiltInTool[];
1131
1201
  declare const DEFAULT_CAMPAIGN_BUILDER_APPROVAL_TYPES: CampaignBuilderApprovalType[];
@@ -1135,6 +1205,8 @@ declare class CampaignBuilderAgent {
1135
1205
  private client;
1136
1206
  constructor(client: HttpClient);
1137
1207
  createPlan(request: CampaignBuilderAgentRequest, options?: CampaignBuilderPlanOptions): Promise<CampaignBuilderAgentPlan>;
1208
+ readiness(request: CampaignBuilderAgentRequest, options?: CampaignBuilderPlanOptions): Promise<CampaignBuilderReadinessPacket>;
1209
+ proof(request: CampaignBuilderAgentRequest, options?: CampaignBuilderProofOptions): Promise<CampaignBuilderProofReceipt>;
1138
1210
  commitPlan(plan: CampaignBuilderAgentPlan, options?: CampaignBuilderPlanCommitOptions): Promise<CampaignBuilderPlanCommitResult>;
1139
1211
  dryRunPlan(plan: CampaignBuilderAgentPlan, options?: BuildOptions): Promise<CampaignBuildResult>;
1140
1212
  buildApprovedPlan(plan: CampaignBuilderAgentPlan, approval: CampaignBuilderApproval, options?: CampaignBuilderBuildOptions): Promise<CampaignBuildResult>;
@@ -1164,6 +1236,8 @@ declare function createCampaignBuilderAgentPlan(request: CampaignBuilderAgentReq
1164
1236
  scopeBrainPreflight?: UnknownRecord$1;
1165
1237
  warnings?: string[];
1166
1238
  }): CampaignBuilderAgentPlan;
1239
+ declare function createCampaignBuilderReadiness(plan: CampaignBuilderAgentPlan): CampaignBuilderReadinessPacket;
1240
+ declare function createCampaignBuilderProofReceipt(plan: CampaignBuilderAgentPlan, result: unknown): CampaignBuilderProofReceipt;
1167
1241
  declare function getMissingCampaignBuilderApprovals(plan: CampaignBuilderAgentPlan, approval: CampaignBuilderApproval): CampaignBuilderRequiredApproval[];
1168
1242
  declare function createCampaignBuilderApproval(plan: CampaignBuilderAgentPlan, input: Omit<CampaignBuilderApproval, 'planId' | 'approvedAt'>): CampaignBuilderApproval;
1169
1243
  declare function getCampaignBuilderStrategyTemplate(value: unknown): CampaignBuilderStrategyTemplate | undefined;
@@ -3424,4 +3498,4 @@ declare class Signaliz {
3424
3498
  discover(query: string, category?: string): Promise<MCPToolInfo[]>;
3425
3499
  }
3426
3500
 
3427
- export { Ai, type ApproveDeliveryResult, type BuildOptions, CAMPAIGN_BUILDER_OPERATING_PLAYBOOKS, CAMPAIGN_BUILDER_STRATEGY_TEMPLATES, type CampaignArtifact, type CampaignBuildRequest$1 as CampaignBuildRequest, type CampaignBuildResult$1 as CampaignBuildResult, type CampaignBuildRow, type CampaignBuildStatus, CampaignBuilderAgent, type CampaignBuilderAgentPlan, type CampaignBuilderAgentProvider, type CampaignBuilderAgentRequest, type CampaignBuilderAgentRequestTemplateOptions, type CampaignBuilderApproval, type CampaignBuilderApprovalPolicy, type CampaignBuilderApprovalType, type CampaignBuilderApprovedRunOptions, type CampaignBuilderApprovedRunResult, type CampaignBuilderBuildOptions, type CampaignBuilderBuiltInTool, type CampaignBuilderCustomerTool, type CampaignBuilderGtmLayer, type CampaignBuilderIntegrationRoute, type CampaignBuilderLayer, type CampaignBuilderMcpStep, type CampaignBuilderMemoryPlan, type CampaignBuilderMemoryQuery, type CampaignBuilderMemoryScope, type CampaignBuilderOperatingPlaybook, type CampaignBuilderOperatingPlaybookSlug, type CampaignBuilderPlanCommitOptions, type CampaignBuilderPlanCommitResult, type CampaignBuilderPlanOptions, type CampaignBuilderProvider, type CampaignBuilderRequiredApproval, type CampaignBuilderRouteMode, type CampaignBuilderStrategyTemplate, type CampaignBuilderStrategyTemplateSlug, type CampaignBuilderWorkspaceContext, type CampaignDeliveryMode, type CampaignProviderRouteReadback, type CampaignRowsOptions, type CampaignRowsResult, Campaigns, type CancelBuildResult, type CompanyIntelligenceParams, type CompanyIntelligenceResult, type CreateOutputSinkRequest, type CreateRoutineRequest, type CreateSystemParams, type CustomAiAttachment, type CustomAiFusionConfig, type CustomAiMultiModelParams, type CustomAiMultiModelResult, type CustomAiOutputField, DEFAULT_CAMPAIGN_BUILDER_APPROVAL_TYPES, DEFAULT_CAMPAIGN_BUILDER_BUILT_INS, DEFAULT_SIGNALIZ_CAMPAIGN_BUILDER_DEFAULTS, type EmailBatchJobResult, type EnrichSignalsParams, type EnrichSignalsResult, type ErrorType, type ExecutionReference, type ExecutionReferenceInput, type ExecutionReferenceKind, type FindAndVerifyEmailContact, type FindEmailParams, type FindEmailResult, type GenerateLeadsParams, type GenerateLocalLeadsParams, type GtmActorType, type GtmAuthStrategy, type GtmBrainAggregateCalibrationsInput, type GtmBrainAggregatePatternsInput, type GtmBrainCalibrateDeliverabilityInput, type GtmBrainDeliveryRiskInput, type GtmBrainDistillRunInput, type GtmBrainExtractPatternsInput, type GtmBrainFailurePatternsOptions, type GtmBrainLearningAction, type GtmBrainLearningCyclePhase, type GtmBrainLearningCyclePlanInput, type GtmBrainLearningCyclePlanResult, type GtmBrainLearningCycleRunInput, type GtmBrainLearningEvidenceCounts, type GtmBrainLearningLane, type GtmBrainLearningLaneId, type GtmBrainLearningLaneState, type GtmBrainLearningLaneSummary, type GtmBrainLearningPhaseReadiness, type GtmBrainLearningPhaseStatus, type GtmBrainLearningRecommendedToolCall, type GtmBrainPatternsOptions, type GtmBrainSeedDefaultsInput, type GtmCalibrationDimensionType, type GtmCampaignAgentPlanInput, type GtmCampaignAgentRequestTemplateInput, type GtmCampaignBuildPlanInput, type GtmCampaignCreateInput, type GtmCampaignGetOptions, type GtmCampaignHistoryCampaignInput, type GtmCampaignHistoryImportBatchInput, type GtmCampaignHistoryImportInput, type GtmCampaignHistoryImportRunInput, type GtmCampaignHistoryMemoryInput, type GtmCampaignLearningStatusResult, type GtmCampaignListOptions, type GtmCampaignLogInput, type GtmCampaignSource, type GtmCampaignStartContextInput, type GtmCampaignStatus, type GtmCampaignStrategyMemoryStatusInput, type GtmCampaignStrategyTemplateSlug, type GtmCampaignStrategyTemplatesOptions, type GtmCampaignUpdateInput, type GtmConnectionRegisterInput, type GtmConnectionsListOptions, type GtmExistingCampaignAuditBoundary, type GtmExistingCampaignAuditBySearchOptions, type GtmExistingCampaignAuditOptions, type GtmExistingCampaignAuditRecommendation, type GtmExistingCampaignAuditResult, type GtmExistingCampaignCompletenessStep, type GtmExistingCampaignDiscoverOptions, type GtmExistingCampaignDiscoveryResult, type GtmExistingCampaignMcpRequest, type GtmExistingCampaignOption, type GtmFeedbackIngestInput, type GtmIntegrationRecipeCreateInput, type GtmInvocationType, GtmKernel, type GtmKernelImportPreviewInput, type GtmKernelImportRunInput, type GtmLayer, type GtmLayerRouteSetInput, type GtmLayerRoutesGetOptions, type GtmMemorySearchOptions, type GtmMemoryType, type GtmPatternType, type GtmProviderLinkInput, type GtmProviderRecipePrepareInput, type GtmProviderRouteActivateInput, type GtmWebhookDeliverInput, type GtmWorkspaceBootstrapStatusOptions, type GtmWorkspaceContextOptions, type HttpRequestParams, type HttpRequestResult, type IcpDetail, type IcpSummary, Icps, type ImportOctaveResult, type LeadGenJobResult, type ListOutputSinksOptions, type MCPToolInfo, type NativeGtmCapabilityInfo, Ops, type OpsApproveRequest, type OpsApproveResult, type OpsBlueprint, type OpsCadence, type OpsCreateRequest, type OpsCreateResult, type OpsDashboardOptions, type OpsDashboardResult, type OpsDebugDiagnosticError, type OpsDebugOptions, type OpsDebugResult, type OpsPlanRequest, type OpsPlanResult, type OpsPrimitive, type OpsPrimitiveConcurrencyPolicy, type OpsPrimitiveDeadLetterPolicy, type OpsPrimitiveObservabilityPolicy, type OpsPrimitivePermissionLevel, type OpsPrimitiveRetryPolicy, type OpsPrimitiveWorkspaceScope, type OpsQueueStatus, type OpsQueueStatusOptions, type OpsQuickstartStep, type OpsQuickstartWorkflow, type OpsReadinessCheck, type OpsReadinessOptions, type OpsReadinessResult, type OpsReplayResult, type OpsResultsOptions, type OpsResultsResult, type OpsRoutine, type OpsRoutineDeleteResult, type OpsRoutineRunResult, type OpsRoutineSinkResult, type OpsRoutineStatus, type OpsRoutineTick, type OpsRoutineTickItem, type OpsRoutineTickItemsResult, type OpsRoutineTicksResult, type OpsRoutinesResult, type OpsRunOptions, type OpsRunResult, type OpsSink, type OpsSinkType, type OpsStatusOptions, type OpsStatusResult, type OpsTriggerBatchRunStatus, type OpsTriggerRunStatus, type OpsTriggerRunStatusOptions, type PlatformHealth, type RunNativeGtmCapabilityParams, type RunProgressEvent, type RunResult, type RunRoutineRequest, type RunSystemParams, type Signal, Signaliz, type SignalizCampaignBuilderDefaults, type SignalizConfig, SignalizError, type SignalizErrorData, type SimpleOpStatus, type SystemResult, type UpdateRoutineRequest, type VerifyEmailResult, type WaitOptions, type WorkspaceInfo, applyCampaignBuilderStrategyTemplate, collectExecutionReferences, createCampaignBuilderAgentPlan, createCampaignBuilderAgentRequestTemplate, createCampaignBuilderApproval, createCampaignBuilderToolRoute, getCampaignBuilderOperatingPlaybook, getCampaignBuilderOperatingPlaybooksForRequest, getCampaignBuilderStrategyTemplate, getMissingCampaignBuilderApprovals, normalizeExecutionReference };
3501
+ export { Ai, type ApproveDeliveryResult, type BuildOptions, CAMPAIGN_BUILDER_OPERATING_PLAYBOOKS, CAMPAIGN_BUILDER_STRATEGY_TEMPLATES, type CampaignArtifact, type CampaignBuildRequest$1 as CampaignBuildRequest, type CampaignBuildResult$1 as CampaignBuildResult, type CampaignBuildRow, type CampaignBuildStatus, CampaignBuilderAgent, type CampaignBuilderAgentPlan, type CampaignBuilderAgentProvider, type CampaignBuilderAgentRequest, type CampaignBuilderAgentRequestTemplateOptions, type CampaignBuilderApproval, type CampaignBuilderApprovalPolicy, type CampaignBuilderApprovalType, type CampaignBuilderApprovedRunOptions, type CampaignBuilderApprovedRunResult, type CampaignBuilderBuildOptions, type CampaignBuilderBuiltInTool, type CampaignBuilderCustomerTool, type CampaignBuilderGtmLayer, type CampaignBuilderIntegrationRoute, type CampaignBuilderLayer, type CampaignBuilderMcpStep, type CampaignBuilderMemoryPlan, type CampaignBuilderMemoryQuery, type CampaignBuilderMemoryScope, type CampaignBuilderOperatingPlaybook, type CampaignBuilderOperatingPlaybookSlug, type CampaignBuilderPlanCommitOptions, type CampaignBuilderPlanCommitResult, type CampaignBuilderPlanOptions, type CampaignBuilderProofOptions, type CampaignBuilderProofReceipt, type CampaignBuilderProvider, type CampaignBuilderReadinessGate, type CampaignBuilderReadinessLane, type CampaignBuilderReadinessPacket, type CampaignBuilderReadinessSummary, type CampaignBuilderRequiredApproval, type CampaignBuilderRouteMode, type CampaignBuilderStrategyTemplate, type CampaignBuilderStrategyTemplateSlug, type CampaignBuilderWorkspaceContext, type CampaignDeliveryMode, type CampaignProviderRouteReadback, type CampaignRowsOptions, type CampaignRowsResult, Campaigns, type CancelBuildResult, type CompanyIntelligenceParams, type CompanyIntelligenceResult, type CreateOutputSinkRequest, type CreateRoutineRequest, type CreateSystemParams, type CustomAiAttachment, type CustomAiFusionConfig, type CustomAiMultiModelParams, type CustomAiMultiModelResult, type CustomAiOutputField, DEFAULT_CAMPAIGN_BUILDER_APPROVAL_TYPES, DEFAULT_CAMPAIGN_BUILDER_BUILT_INS, DEFAULT_SIGNALIZ_CAMPAIGN_BUILDER_DEFAULTS, type EmailBatchJobResult, type EnrichSignalsParams, type EnrichSignalsResult, type ErrorType, type ExecutionReference, type ExecutionReferenceInput, type ExecutionReferenceKind, type FindAndVerifyEmailContact, type FindEmailParams, type FindEmailResult, type GenerateLeadsParams, type GenerateLocalLeadsParams, type GtmActorType, type GtmAuthStrategy, type GtmBrainAggregateCalibrationsInput, type GtmBrainAggregatePatternsInput, type GtmBrainCalibrateDeliverabilityInput, type GtmBrainDeliveryRiskInput, type GtmBrainDistillRunInput, type GtmBrainExtractPatternsInput, type GtmBrainFailurePatternsOptions, type GtmBrainLearningAction, type GtmBrainLearningCyclePhase, type GtmBrainLearningCyclePlanInput, type GtmBrainLearningCyclePlanResult, type GtmBrainLearningCycleRunInput, type GtmBrainLearningEvidenceCounts, type GtmBrainLearningLane, type GtmBrainLearningLaneId, type GtmBrainLearningLaneState, type GtmBrainLearningLaneSummary, type GtmBrainLearningPhaseReadiness, type GtmBrainLearningPhaseStatus, type GtmBrainLearningRecommendedToolCall, type GtmBrainPatternsOptions, type GtmBrainSeedDefaultsInput, type GtmCalibrationDimensionType, type GtmCampaignAgentPlanInput, type GtmCampaignAgentRequestTemplateInput, type GtmCampaignBuildPlanInput, type GtmCampaignCreateInput, type GtmCampaignGetOptions, type GtmCampaignHistoryCampaignInput, type GtmCampaignHistoryImportBatchInput, type GtmCampaignHistoryImportInput, type GtmCampaignHistoryImportRunInput, type GtmCampaignHistoryMemoryInput, type GtmCampaignLearningStatusResult, type GtmCampaignListOptions, type GtmCampaignLogInput, type GtmCampaignSource, type GtmCampaignStartContextInput, type GtmCampaignStatus, type GtmCampaignStrategyMemoryStatusInput, type GtmCampaignStrategyTemplateSlug, type GtmCampaignStrategyTemplatesOptions, type GtmCampaignUpdateInput, type GtmConnectionRegisterInput, type GtmConnectionsListOptions, type GtmExistingCampaignAuditBoundary, type GtmExistingCampaignAuditBySearchOptions, type GtmExistingCampaignAuditOptions, type GtmExistingCampaignAuditRecommendation, type GtmExistingCampaignAuditResult, type GtmExistingCampaignCompletenessStep, type GtmExistingCampaignDiscoverOptions, type GtmExistingCampaignDiscoveryResult, type GtmExistingCampaignMcpRequest, type GtmExistingCampaignOption, type GtmFeedbackIngestInput, type GtmIntegrationRecipeCreateInput, type GtmInvocationType, GtmKernel, type GtmKernelImportPreviewInput, type GtmKernelImportRunInput, type GtmLayer, type GtmLayerRouteSetInput, type GtmLayerRoutesGetOptions, type GtmMemorySearchOptions, type GtmMemoryType, type GtmPatternType, type GtmProviderLinkInput, type GtmProviderRecipePrepareInput, type GtmProviderRouteActivateInput, type GtmWebhookDeliverInput, type GtmWorkspaceBootstrapStatusOptions, type GtmWorkspaceContextOptions, type HttpRequestParams, type HttpRequestResult, type IcpDetail, type IcpSummary, Icps, type ImportOctaveResult, type LeadGenJobResult, type ListOutputSinksOptions, type MCPToolInfo, type NativeGtmCapabilityInfo, Ops, type OpsApproveRequest, type OpsApproveResult, type OpsBlueprint, type OpsCadence, type OpsCreateRequest, type OpsCreateResult, type OpsDashboardOptions, type OpsDashboardResult, type OpsDebugDiagnosticError, type OpsDebugOptions, type OpsDebugResult, type OpsPlanRequest, type OpsPlanResult, type OpsPrimitive, type OpsPrimitiveConcurrencyPolicy, type OpsPrimitiveDeadLetterPolicy, type OpsPrimitiveObservabilityPolicy, type OpsPrimitivePermissionLevel, type OpsPrimitiveRetryPolicy, type OpsPrimitiveWorkspaceScope, type OpsQueueStatus, type OpsQueueStatusOptions, type OpsQuickstartStep, type OpsQuickstartWorkflow, type OpsReadinessCheck, type OpsReadinessOptions, type OpsReadinessResult, type OpsReplayResult, type OpsResultsOptions, type OpsResultsResult, type OpsRoutine, type OpsRoutineDeleteResult, type OpsRoutineRunResult, type OpsRoutineSinkResult, type OpsRoutineStatus, type OpsRoutineTick, type OpsRoutineTickItem, type OpsRoutineTickItemsResult, type OpsRoutineTicksResult, type OpsRoutinesResult, type OpsRunOptions, type OpsRunResult, type OpsSink, type OpsSinkType, type OpsStatusOptions, type OpsStatusResult, type OpsTriggerBatchRunStatus, type OpsTriggerRunStatus, type OpsTriggerRunStatusOptions, type PlatformHealth, type RunNativeGtmCapabilityParams, type RunProgressEvent, type RunResult, type RunRoutineRequest, type RunSystemParams, type Signal, Signaliz, type SignalizCampaignBuilderDefaults, type SignalizConfig, SignalizError, type SignalizErrorData, type SimpleOpStatus, type SystemResult, type UpdateRoutineRequest, type VerifyEmailResult, type WaitOptions, type WorkspaceInfo, applyCampaignBuilderStrategyTemplate, collectExecutionReferences, createCampaignBuilderAgentPlan, createCampaignBuilderAgentRequestTemplate, createCampaignBuilderApproval, createCampaignBuilderProofReceipt, createCampaignBuilderReadiness, createCampaignBuilderToolRoute, getCampaignBuilderOperatingPlaybook, getCampaignBuilderOperatingPlaybooksForRequest, getCampaignBuilderStrategyTemplate, getMissingCampaignBuilderApprovals, normalizeExecutionReference };