@sellable/mcp 0.1.793 → 0.1.794

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.
Files changed (54) hide show
  1. package/dist/agent-tool-names.d.ts +2 -2
  2. package/dist/agent-tool-names.js +14 -0
  3. package/dist/scheduler-envelope.d.ts +190 -0
  4. package/dist/scheduler-envelope.js +412 -0
  5. package/dist/server.js +28 -2
  6. package/dist/tools/campaign-message-preparation.d.ts +25 -0
  7. package/dist/tools/campaign-message-preparation.js +37 -0
  8. package/dist/tools/campaign-processing.d.ts +74 -1
  9. package/dist/tools/campaign-processing.js +57 -1
  10. package/dist/tools/prompts.d.ts +15 -3
  11. package/dist/tools/prompts.js +25 -0
  12. package/dist/tools/refill-executors.d.ts +43 -70
  13. package/dist/tools/refill-executors.js +201 -273
  14. package/dist/tools/refill-sends.d.ts +3 -3
  15. package/dist/tools/refill-sends.js +1 -1
  16. package/dist/tools/refill-target-plan.js +1 -1
  17. package/dist/tools/refill-v3-advance-contract.d.ts +618 -0
  18. package/dist/tools/refill-v3-advance-contract.js +920 -0
  19. package/dist/tools/refill-v3-advance.d.ts +397 -0
  20. package/dist/tools/refill-v3-advance.js +75 -0
  21. package/dist/tools/refill-v3-attention-packet-contract.d.ts +608 -0
  22. package/dist/tools/refill-v3-attention-packet-contract.js +911 -0
  23. package/dist/tools/refill-v3-campaign-work.d.ts +324 -0
  24. package/dist/tools/refill-v3-campaign-work.js +1015 -0
  25. package/dist/tools/refill-v3-continue-contract.d.ts +433 -0
  26. package/dist/tools/refill-v3-continue-contract.js +112 -0
  27. package/dist/tools/refill-v3-continue.d.ts +501 -0
  28. package/dist/tools/refill-v3-continue.js +654 -0
  29. package/dist/tools/refill-v3-edit-selected-campaign-contract.d.ts +208 -0
  30. package/dist/tools/refill-v3-edit-selected-campaign-contract.js +351 -0
  31. package/dist/tools/refill-v3-edit-selected-campaign.d.ts +232 -0
  32. package/dist/tools/refill-v3-edit-selected-campaign.js +147 -0
  33. package/dist/tools/refill-v3-fill-ready-contract.d.ts +198 -0
  34. package/dist/tools/refill-v3-fill-ready-contract.js +324 -0
  35. package/dist/tools/refill-v3-fill-ready.d.ts +199 -0
  36. package/dist/tools/refill-v3-fill-ready.js +136 -0
  37. package/dist/tools/refill-v3-source-family-dispatch.d.ts +249 -0
  38. package/dist/tools/refill-v3-source-family-dispatch.js +514 -0
  39. package/dist/tools/refill-v3-waterfall-contract.d.ts +156 -0
  40. package/dist/tools/refill-v3-waterfall-contract.js +181 -0
  41. package/dist/tools/refill-v3-waterfall.d.ts +136 -0
  42. package/dist/tools/refill-v3-waterfall.js +161 -0
  43. package/dist/tools/refill-v3-world-state-contract.d.ts +666 -0
  44. package/dist/tools/refill-v3-world-state-contract.js +790 -0
  45. package/dist/tools/refill-v3-world-state.d.ts +592 -0
  46. package/dist/tools/refill-v3-world-state.js +137 -0
  47. package/dist/tools/registry.d.ts +1710 -3
  48. package/dist/tools/registry.js +19 -0
  49. package/package.json +1 -1
  50. package/skills/refill-sends/SKILL.md +89 -4
  51. package/skills/refill-sends-waterfall-order/SKILL.md +174 -0
  52. package/skills/refill-sends-work-campaign/SKILL.md +253 -0
  53. package/skills/refill-sends-workflow/SKILL.md +112 -5
  54. package/skills/refill-sends-workflow/core/flow.v3.json +209 -0
@@ -236,7 +236,7 @@ export declare const allTools: ({
236
236
  properties: {
237
237
  subskillName: {
238
238
  type: string;
239
- enum: readonly ["avoid-ai-writing", "building-gtm-tables", "content", "create-ab-test", "create-campaign", "create-campaign-brief", "create-campaign-v2", "create-campaign-v2-tail", "create-campaign-v2-validation", "create-evergreen-campaigns", "create-post", "create-rubric", "engage", "enrich-prospects", "fill-send-horizon", "find-leads", "find-leads-v2", "foundation", "generate-messages", "interview", "load-voice", "refresh-sender-engagement", "refill-sends", "refill-sends-workflow", "research", "research-prospect", "research-sender", "weekly-campaign-summary", "workflow-sequences"];
239
+ enum: readonly ["avoid-ai-writing", "building-gtm-tables", "content", "create-ab-test", "create-campaign", "create-campaign-brief", "create-campaign-v2", "create-campaign-v2-tail", "create-campaign-v2-validation", "create-evergreen-campaigns", "create-post", "create-rubric", "engage", "enrich-prospects", "fill-send-horizon", "find-leads", "find-leads-v2", "foundation", "generate-messages", "interview", "load-voice", "refresh-sender-engagement", "refill-sends", "refill-sends-waterfall-order", "refill-sends-work-campaign", "refill-sends-workflow", "research", "research-prospect", "research-sender", "weekly-campaign-summary", "workflow-sequences"];
240
240
  description: string;
241
241
  };
242
242
  offset: {
@@ -271,7 +271,7 @@ export declare const allTools: ({
271
271
  properties: {
272
272
  subskillName: {
273
273
  type: string;
274
- enum: readonly ["avoid-ai-writing", "building-gtm-tables", "content", "create-ab-test", "create-campaign", "create-campaign-brief", "create-campaign-v2", "create-campaign-v2-tail", "create-campaign-v2-validation", "create-evergreen-campaigns", "create-post", "create-rubric", "engage", "enrich-prospects", "fill-send-horizon", "find-leads", "find-leads-v2", "foundation", "generate-messages", "interview", "load-voice", "refresh-sender-engagement", "refill-sends", "refill-sends-workflow", "research", "research-prospect", "research-sender", "weekly-campaign-summary", "workflow-sequences"];
274
+ enum: readonly ["avoid-ai-writing", "building-gtm-tables", "content", "create-ab-test", "create-campaign", "create-campaign-brief", "create-campaign-v2", "create-campaign-v2-tail", "create-campaign-v2-validation", "create-evergreen-campaigns", "create-post", "create-rubric", "engage", "enrich-prospects", "fill-send-horizon", "find-leads", "find-leads-v2", "foundation", "generate-messages", "interview", "load-voice", "refresh-sender-engagement", "refill-sends", "refill-sends-waterfall-order", "refill-sends-work-campaign", "refill-sends-workflow", "research", "research-prospect", "research-sender", "weekly-campaign-summary", "workflow-sequences"];
275
275
  description: string;
276
276
  };
277
277
  assetPath: {
@@ -646,6 +646,7 @@ export declare const allTools: ({
646
646
  rowSelector?: undefined;
647
647
  limit?: undefined;
648
648
  includeGeneratedMessageReview?: undefined;
649
+ diagnostic?: undefined;
649
650
  forceRerun?: undefined;
650
651
  reason?: undefined;
651
652
  minPassedCount?: undefined;
@@ -711,6 +712,18 @@ export declare const allTools: ({
711
712
  type: string;
712
713
  description: string;
713
714
  };
715
+ diagnostic: {
716
+ readonly type: "object";
717
+ readonly properties: {
718
+ readonly limit: {
719
+ readonly type: "integer";
720
+ readonly minimum: 1;
721
+ readonly maximum: 10;
722
+ };
723
+ };
724
+ readonly required: readonly ["limit"];
725
+ readonly additionalProperties: false;
726
+ };
714
727
  forceRerun?: undefined;
715
728
  reason?: undefined;
716
729
  minPassedCount?: undefined;
@@ -779,6 +792,7 @@ export declare const allTools: ({
779
792
  type: string;
780
793
  };
781
794
  includeGeneratedMessageReview?: undefined;
795
+ diagnostic?: undefined;
782
796
  minPassedCount?: undefined;
783
797
  minGeneratedMessages?: undefined;
784
798
  templateRevision?: undefined;
@@ -828,6 +842,7 @@ export declare const allTools: ({
828
842
  rowSelector?: undefined;
829
843
  limit?: undefined;
830
844
  includeGeneratedMessageReview?: undefined;
845
+ diagnostic?: undefined;
831
846
  forceRerun?: undefined;
832
847
  reason?: undefined;
833
848
  rowIds?: undefined;
@@ -868,6 +883,7 @@ export declare const allTools: ({
868
883
  rowSelector?: undefined;
869
884
  limit?: undefined;
870
885
  includeGeneratedMessageReview?: undefined;
886
+ diagnostic?: undefined;
871
887
  forceRerun?: undefined;
872
888
  reason?: undefined;
873
889
  minPassedCount?: undefined;
@@ -1088,6 +1104,7 @@ export declare const allTools: ({
1088
1104
  rowSelector?: undefined;
1089
1105
  limit?: undefined;
1090
1106
  includeGeneratedMessageReview?: undefined;
1107
+ diagnostic?: undefined;
1091
1108
  forceRerun?: undefined;
1092
1109
  reason?: undefined;
1093
1110
  minPassedCount?: undefined;
@@ -6554,6 +6571,14 @@ export declare const allTools: ({
6554
6571
  runCondition: {
6555
6572
  type: string[];
6556
6573
  };
6574
+ intrinsicRequirements: {
6575
+ type: string;
6576
+ description: string;
6577
+ };
6578
+ approvalPolicy: {
6579
+ type: string;
6580
+ description: string;
6581
+ };
6557
6582
  requestId: {
6558
6583
  type: string;
6559
6584
  };
@@ -6748,6 +6773,17 @@ export declare const allTools: ({
6748
6773
  jobId?: undefined;
6749
6774
  };
6750
6775
  required: string[];
6776
+ oneOf: ({
6777
+ not: {
6778
+ anyOf: {
6779
+ required: ("effectId" | "runCondition" | "requestId" | "profileSchemaVersion" | "compilerVersion" | "sequenceVersion" | "campaignDigest" | "actionColumnId" | "pathDigest" | "targetNodeId" | "entryNodeId" | "pathNodeIds" | "dependsOnColumnIds" | "intrinsicRequirements" | "approvalPolicy" | "targetColumnType" | "targetAction")[];
6780
+ }[];
6781
+ };
6782
+ required?: undefined;
6783
+ } | {
6784
+ required: ("effectId" | "runCondition" | "requestId" | "profileSchemaVersion" | "compilerVersion" | "sequenceVersion" | "campaignDigest" | "actionColumnId" | "pathDigest" | "targetNodeId" | "entryNodeId" | "pathNodeIds" | "dependsOnColumnIds" | "intrinsicRequirements" | "approvalPolicy" | "targetColumnType" | "targetAction")[];
6785
+ not?: undefined;
6786
+ })[];
6751
6787
  additionalProperties: boolean;
6752
6788
  };
6753
6789
  } | {
@@ -6970,12 +7006,15 @@ export declare const allTools: ({
6970
7006
  pathNodeIds?: undefined;
6971
7007
  dependsOnColumnIds?: undefined;
6972
7008
  runCondition?: undefined;
7009
+ intrinsicRequirements?: undefined;
7010
+ approvalPolicy?: undefined;
6973
7011
  requestId?: undefined;
6974
7012
  effectId?: undefined;
6975
7013
  disableLowPassRateStop?: undefined;
6976
7014
  };
6977
7015
  additionalProperties: boolean;
6978
7016
  required?: undefined;
7017
+ oneOf?: undefined;
6979
7018
  };
6980
7019
  } | {
6981
7020
  name: string;
@@ -7020,6 +7059,8 @@ export declare const allTools: ({
7020
7059
  pathNodeIds?: undefined;
7021
7060
  dependsOnColumnIds?: undefined;
7022
7061
  runCondition?: undefined;
7062
+ intrinsicRequirements?: undefined;
7063
+ approvalPolicy?: undefined;
7023
7064
  requestId?: undefined;
7024
7065
  effectId?: undefined;
7025
7066
  disableLowPassRateStop?: undefined;
@@ -7028,6 +7069,7 @@ export declare const allTools: ({
7028
7069
  };
7029
7070
  additionalProperties: boolean;
7030
7071
  required?: undefined;
7072
+ oneOf?: undefined;
7031
7073
  };
7032
7074
  } | {
7033
7075
  name: string;
@@ -9152,6 +9194,1671 @@ export declare const allTools: ({
9152
9194
  };
9153
9195
  required: string[];
9154
9196
  };
9197
+ } | {
9198
+ name: "refill_v3_advance";
9199
+ description: string;
9200
+ inputSchema: Readonly<{
9201
+ readonly type: "object";
9202
+ readonly additionalProperties: false;
9203
+ readonly required: readonly ["workspaceId", "scope"];
9204
+ readonly properties: {
9205
+ readonly workspaceId: {
9206
+ readonly type: "string";
9207
+ readonly minLength: 1;
9208
+ readonly description: "Explicit request-scoped workspace id. Pass this instead of switching the shared active workspace.";
9209
+ };
9210
+ readonly scope: {
9211
+ readonly description: "Either a 1-3 day sender-local horizon or an exact sender/date set. There is no lane input, no row input, and no mode input.";
9212
+ readonly oneOf: readonly [{
9213
+ readonly type: "object";
9214
+ readonly additionalProperties: false;
9215
+ readonly required: readonly ["kind", "days"];
9216
+ readonly properties: {
9217
+ readonly kind: {
9218
+ readonly type: "string";
9219
+ readonly const: "sender_local_horizon";
9220
+ };
9221
+ readonly days: {
9222
+ readonly type: "integer";
9223
+ readonly minimum: 1;
9224
+ readonly maximum: 3;
9225
+ };
9226
+ readonly senderIds: {
9227
+ readonly type: "array";
9228
+ readonly items: {
9229
+ readonly type: "string";
9230
+ readonly minLength: 1;
9231
+ };
9232
+ readonly minItems: 1;
9233
+ };
9234
+ };
9235
+ }, {
9236
+ readonly type: "object";
9237
+ readonly additionalProperties: false;
9238
+ readonly required: readonly ["kind", "senderDates"];
9239
+ readonly properties: {
9240
+ readonly kind: {
9241
+ readonly type: "string";
9242
+ readonly const: "exact_sender_dates";
9243
+ };
9244
+ readonly senderDates: {
9245
+ readonly type: "array";
9246
+ readonly minItems: 1;
9247
+ readonly items: {
9248
+ readonly type: "object";
9249
+ readonly additionalProperties: false;
9250
+ readonly required: readonly ["senderId", "dates"];
9251
+ readonly properties: {
9252
+ readonly senderId: {
9253
+ readonly type: "string";
9254
+ readonly minLength: 1;
9255
+ };
9256
+ readonly dates: {
9257
+ readonly type: "array";
9258
+ readonly minItems: 1;
9259
+ readonly items: {
9260
+ readonly type: "string";
9261
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9262
+ };
9263
+ };
9264
+ };
9265
+ };
9266
+ };
9267
+ };
9268
+ }];
9269
+ };
9270
+ readonly yolo: {
9271
+ readonly type: "boolean";
9272
+ readonly description: "The operator's AUTONOMY GRANT, true only when the operator actually asked for --yolo. It is not a mode and selects nothing: WHICH campaign may start is derived from the workspace's own campaigns. It authorizes exactly one thing this call could not otherwise do — starting one already-eligible PAUSED derived-evergreen campaign once every active campaign for a row is exhausted. Omit it, or pass false, for a conservative run that reports that exhaustion instead of acting on it.";
9273
+ };
9274
+ };
9275
+ }>;
9276
+ outputSchema: Readonly<{
9277
+ readonly type: "object";
9278
+ readonly required: readonly ["kind", "scope"];
9279
+ readonly properties: {
9280
+ readonly schemaVersion: {
9281
+ readonly type: "string";
9282
+ };
9283
+ readonly kind: {
9284
+ readonly type: "string";
9285
+ readonly enum: readonly ["advanced", "campaign_attention_required", "awaiting_external_change", "complete", "blocked"];
9286
+ };
9287
+ readonly scope: {
9288
+ readonly type: "object";
9289
+ readonly additionalProperties: false;
9290
+ readonly required: readonly ["workspaceId", "scopeKind", "scopeFingerprint"];
9291
+ readonly properties: {
9292
+ readonly workspaceId: {
9293
+ readonly type: "string";
9294
+ readonly minLength: 1;
9295
+ };
9296
+ readonly scopeKind: {
9297
+ readonly type: "string";
9298
+ readonly enum: readonly ["sender_local_horizon", "exact_sender_dates"];
9299
+ };
9300
+ readonly scopeFingerprint: {
9301
+ readonly type: "string";
9302
+ readonly minLength: 1;
9303
+ };
9304
+ };
9305
+ };
9306
+ readonly action: {
9307
+ readonly type: "object";
9308
+ readonly additionalProperties: false;
9309
+ readonly required: readonly ["kind", "actionKey", "authority", "senderId", "date", "lane", "campaignId", "evidenceFingerprint"];
9310
+ readonly properties: {
9311
+ readonly evidenceFingerprint: {
9312
+ readonly type: "string";
9313
+ readonly minLength: 1;
9314
+ };
9315
+ readonly senderId: {
9316
+ readonly type: "string";
9317
+ readonly minLength: 1;
9318
+ };
9319
+ readonly date: {
9320
+ readonly type: "string";
9321
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9322
+ };
9323
+ readonly lane: {
9324
+ readonly type: "string";
9325
+ readonly enum: readonly ["connection_invite", "paid_inmail"];
9326
+ };
9327
+ readonly campaignId: {
9328
+ readonly type: readonly ["string", "null"];
9329
+ };
9330
+ readonly kind: {
9331
+ readonly type: "string";
9332
+ readonly enum: readonly ["refresh_paid_credit_fact", "recheck_sender_connection", "fill_ready", "start_evergreen_campaign"];
9333
+ };
9334
+ readonly actionKey: {
9335
+ readonly type: "string";
9336
+ readonly minLength: 1;
9337
+ };
9338
+ readonly authority: {
9339
+ readonly type: "string";
9340
+ readonly enum: ("getOrRefreshPaidInmailCreditFact" | "recheckRefillV3SenderConnection" | "fillRefillV3Ready" | "startRefillV3EvergreenCampaign")[];
9341
+ };
9342
+ };
9343
+ };
9344
+ readonly receipt: {
9345
+ readonly type: "object";
9346
+ readonly additionalProperties: false;
9347
+ readonly required: readonly ["actionKey", "status", "effectFingerprint", "productStateDelta", "reasonCode"];
9348
+ readonly properties: {
9349
+ readonly actionKey: {
9350
+ readonly type: "string";
9351
+ readonly minLength: 1;
9352
+ };
9353
+ readonly status: {
9354
+ readonly type: "string";
9355
+ readonly enum: readonly ["executed", "attached", "failed", "indeterminate"];
9356
+ };
9357
+ readonly effectFingerprint: {
9358
+ readonly type: "string";
9359
+ readonly minLength: 1;
9360
+ };
9361
+ readonly productStateDelta: {
9362
+ readonly type: "boolean";
9363
+ };
9364
+ readonly reasonCode: {
9365
+ readonly type: readonly ["string", "null"];
9366
+ readonly enum: readonly ["global_cooldown", "connection_cooldown", "paid_inmail_cooldown", "endpoint_temporarily_unavailable", "date_in_past", "no_sending_hours", "sender_disconnected", "sender_limit_reached", "daily_target_met", "no_eligible_campaign", "no_ready_supply", "sales_nav_disconnected", "insufficient_paid_credits", "paid_inmail_connection_health_recheck_required", "paid_inmail_credit_refresh_failed", "invalid_paid_configuration", "campaign_table_missing", "campaign_sequence_invalid", "source_family_unresolved", "campaign_work_in_flight", "zero_requested_count", "idempotency_scope_mismatch", "uncertain_outcome", "placed_under_other_sender", "placed_off_target_date", "paid_inmail_credit_receipt_invalid", "awaiting_external_change", "approval_authority_invalid", "approval_authority_in_flight", "approval_dispatch_incomplete", "ready_cells_unavailable", "sender_affinity_conflict", "scheduler_target_omitted", "scheduler_failed", "receipt_readback_mismatch", "account_identity_missing", "no_progress_refused", "retryable_paid_attempts_exhausted", "unknown_transport_vocabulary", "forged_authority_receipt_facts", "authority_failure_uncertain", "sender_scope_unresolved", "campaign_supply_unclaimed", "lane_campaigns_exhausted", "missing_balance", "blocked", "workspace_membership_revoked", null];
9367
+ };
9368
+ };
9369
+ };
9370
+ readonly packet: {
9371
+ readonly properties: {
9372
+ readonly schemaVersion: {
9373
+ readonly type: "string";
9374
+ };
9375
+ };
9376
+ readonly type: "object";
9377
+ readonly additionalProperties: false;
9378
+ readonly required: readonly ["scope", "evidence"];
9379
+ };
9380
+ readonly deferral: {
9381
+ readonly type: "object";
9382
+ readonly additionalProperties: false;
9383
+ readonly required: readonly ["senderId", "date", "lane", "campaignId", "code", "message", "resumeAt", "receiptRef"];
9384
+ readonly properties: {
9385
+ readonly code: {
9386
+ readonly type: "string";
9387
+ readonly enum: readonly ["global_cooldown", "connection_cooldown", "paid_inmail_cooldown", "endpoint_temporarily_unavailable", "date_in_past", "no_sending_hours", "sender_disconnected", "sender_limit_reached", "daily_target_met", "no_eligible_campaign", "no_ready_supply", "sales_nav_disconnected", "insufficient_paid_credits", "paid_inmail_connection_health_recheck_required", "paid_inmail_credit_refresh_failed", "invalid_paid_configuration", "campaign_table_missing", "campaign_sequence_invalid", "source_family_unresolved", "campaign_work_in_flight", "zero_requested_count", "idempotency_scope_mismatch", "uncertain_outcome", "placed_under_other_sender", "placed_off_target_date", "paid_inmail_credit_receipt_invalid", "awaiting_external_change", "approval_authority_invalid", "approval_authority_in_flight", "approval_dispatch_incomplete", "ready_cells_unavailable", "sender_affinity_conflict", "scheduler_target_omitted", "scheduler_failed", "receipt_readback_mismatch", "account_identity_missing", "no_progress_refused", "retryable_paid_attempts_exhausted", "unknown_transport_vocabulary", "forged_authority_receipt_facts", "authority_failure_uncertain", "sender_scope_unresolved", "campaign_supply_unclaimed", "lane_campaigns_exhausted", "missing_balance", "blocked", "workspace_membership_revoked"];
9388
+ };
9389
+ readonly message: {
9390
+ readonly type: "string";
9391
+ };
9392
+ readonly resumeAt: {
9393
+ readonly type: readonly ["string", "null"];
9394
+ };
9395
+ readonly receiptRef: {
9396
+ readonly type: readonly ["string", "null"];
9397
+ };
9398
+ readonly senderId: {
9399
+ readonly type: "string";
9400
+ readonly minLength: 1;
9401
+ };
9402
+ readonly date: {
9403
+ readonly type: "string";
9404
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9405
+ };
9406
+ readonly lane: {
9407
+ readonly type: "string";
9408
+ readonly enum: readonly ["connection_invite", "paid_inmail"];
9409
+ };
9410
+ readonly campaignId: {
9411
+ readonly type: readonly ["string", "null"];
9412
+ };
9413
+ };
9414
+ };
9415
+ readonly blocker: {
9416
+ readonly type: "object";
9417
+ readonly additionalProperties: false;
9418
+ readonly required: readonly ["senderId", "date", "lane", "campaignId", "code", "message", "permanent", "field"];
9419
+ readonly properties: {
9420
+ readonly code: {
9421
+ readonly type: "string";
9422
+ readonly enum: readonly ["global_cooldown", "connection_cooldown", "paid_inmail_cooldown", "endpoint_temporarily_unavailable", "date_in_past", "no_sending_hours", "sender_disconnected", "sender_limit_reached", "daily_target_met", "no_eligible_campaign", "no_ready_supply", "sales_nav_disconnected", "insufficient_paid_credits", "paid_inmail_connection_health_recheck_required", "paid_inmail_credit_refresh_failed", "invalid_paid_configuration", "campaign_table_missing", "campaign_sequence_invalid", "source_family_unresolved", "campaign_work_in_flight", "zero_requested_count", "idempotency_scope_mismatch", "uncertain_outcome", "placed_under_other_sender", "placed_off_target_date", "paid_inmail_credit_receipt_invalid", "awaiting_external_change", "approval_authority_invalid", "approval_authority_in_flight", "approval_dispatch_incomplete", "ready_cells_unavailable", "sender_affinity_conflict", "scheduler_target_omitted", "scheduler_failed", "receipt_readback_mismatch", "account_identity_missing", "no_progress_refused", "retryable_paid_attempts_exhausted", "unknown_transport_vocabulary", "forged_authority_receipt_facts", "authority_failure_uncertain", "sender_scope_unresolved", "campaign_supply_unclaimed", "lane_campaigns_exhausted", "missing_balance", "blocked", "workspace_membership_revoked"];
9423
+ };
9424
+ readonly message: {
9425
+ readonly type: "string";
9426
+ };
9427
+ readonly permanent: {
9428
+ readonly type: "boolean";
9429
+ };
9430
+ readonly field: {
9431
+ readonly type: readonly ["string", "null"];
9432
+ };
9433
+ readonly senderId: {
9434
+ readonly type: "string";
9435
+ readonly minLength: 1;
9436
+ };
9437
+ readonly date: {
9438
+ readonly type: "string";
9439
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9440
+ };
9441
+ readonly lane: {
9442
+ readonly type: "string";
9443
+ readonly enum: readonly ["connection_invite", "paid_inmail"];
9444
+ };
9445
+ readonly campaignId: {
9446
+ readonly type: readonly ["string", "null"];
9447
+ };
9448
+ };
9449
+ };
9450
+ readonly terminal: {
9451
+ readonly type: "string";
9452
+ readonly enum: readonly ["active_campaigns_exhausted", "no_eligible_campaigns", "campaign_supply_unclaimed_defect", "daily_targets_met", "scope_unresolved"];
9453
+ };
9454
+ readonly observation: {
9455
+ readonly type: "object";
9456
+ readonly additionalProperties: false;
9457
+ readonly required: readonly ["observationFingerprint", "senderCount", "rowCount", "dates", "availableSlots", "supply"];
9458
+ readonly properties: {
9459
+ readonly observationFingerprint: {
9460
+ readonly type: "string";
9461
+ readonly minLength: 1;
9462
+ };
9463
+ readonly senderCount: {
9464
+ readonly type: "integer";
9465
+ readonly minimum: 0;
9466
+ };
9467
+ readonly rowCount: {
9468
+ readonly type: "integer";
9469
+ readonly minimum: 0;
9470
+ };
9471
+ readonly dates: {
9472
+ readonly type: "array";
9473
+ readonly items: {
9474
+ readonly type: "string";
9475
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9476
+ };
9477
+ };
9478
+ readonly availableSlots: {
9479
+ readonly type: "integer";
9480
+ readonly minimum: 0;
9481
+ };
9482
+ readonly supply: {
9483
+ readonly type: "object";
9484
+ readonly additionalProperties: false;
9485
+ readonly required: readonly ["readyToSchedule", "readyForApproval", "readyForMessageGeneration", "needsEnrichment"];
9486
+ readonly properties: {
9487
+ [k: string]: {
9488
+ type: string;
9489
+ minimum: number;
9490
+ };
9491
+ };
9492
+ };
9493
+ };
9494
+ };
9495
+ readonly replacementObservation: {
9496
+ readonly type: "object";
9497
+ readonly additionalProperties: false;
9498
+ readonly required: readonly ["observationFingerprint", "senderCount", "rowCount", "dates", "availableSlots", "supply"];
9499
+ readonly properties: {
9500
+ readonly observationFingerprint: {
9501
+ readonly type: "string";
9502
+ readonly minLength: 1;
9503
+ };
9504
+ readonly senderCount: {
9505
+ readonly type: "integer";
9506
+ readonly minimum: 0;
9507
+ };
9508
+ readonly rowCount: {
9509
+ readonly type: "integer";
9510
+ readonly minimum: 0;
9511
+ };
9512
+ readonly dates: {
9513
+ readonly type: "array";
9514
+ readonly items: {
9515
+ readonly type: "string";
9516
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9517
+ };
9518
+ };
9519
+ readonly availableSlots: {
9520
+ readonly type: "integer";
9521
+ readonly minimum: 0;
9522
+ };
9523
+ readonly supply: {
9524
+ readonly type: "object";
9525
+ readonly additionalProperties: false;
9526
+ readonly required: readonly ["readyToSchedule", "readyForApproval", "readyForMessageGeneration", "needsEnrichment"];
9527
+ readonly properties: {
9528
+ [k: string]: {
9529
+ type: string;
9530
+ minimum: number;
9531
+ };
9532
+ };
9533
+ };
9534
+ };
9535
+ };
9536
+ };
9537
+ }>;
9538
+ annotations: {
9539
+ title: string;
9540
+ readOnlyHint: boolean;
9541
+ destructiveHint: boolean;
9542
+ idempotentHint: boolean;
9543
+ openWorldHint: boolean;
9544
+ };
9545
+ } | {
9546
+ name: "refill_v3_world_state";
9547
+ description: string;
9548
+ inputSchema: {
9549
+ readonly type: "object";
9550
+ readonly additionalProperties: false;
9551
+ readonly required: readonly ["workspaceId", "scope"];
9552
+ readonly properties: {
9553
+ readonly workspaceId: {
9554
+ readonly type: "string";
9555
+ readonly minLength: 1;
9556
+ };
9557
+ readonly scope: {
9558
+ readonly oneOf: readonly [{
9559
+ readonly type: "object";
9560
+ readonly additionalProperties: false;
9561
+ readonly required: readonly ["kind", "days"];
9562
+ readonly properties: {
9563
+ readonly kind: {
9564
+ readonly type: "string";
9565
+ readonly enum: readonly ["sender_local_horizon"];
9566
+ };
9567
+ readonly days: {
9568
+ readonly type: "integer";
9569
+ readonly minimum: 1;
9570
+ readonly maximum: 3;
9571
+ readonly description: "sender-local intent; 3 means each sender's local today plus the next two local days";
9572
+ };
9573
+ readonly senderIds: {
9574
+ readonly type: "array";
9575
+ readonly minItems: 1;
9576
+ readonly items: {
9577
+ readonly type: "string";
9578
+ readonly minLength: 1;
9579
+ };
9580
+ readonly description: "omit for every active workspace sender";
9581
+ };
9582
+ };
9583
+ }, {
9584
+ readonly type: "object";
9585
+ readonly additionalProperties: false;
9586
+ readonly required: readonly ["kind", "senderDates"];
9587
+ readonly properties: {
9588
+ readonly kind: {
9589
+ readonly type: "string";
9590
+ readonly enum: readonly ["exact_sender_dates"];
9591
+ };
9592
+ readonly senderDates: {
9593
+ readonly type: "array";
9594
+ readonly minItems: 1;
9595
+ readonly items: {
9596
+ readonly type: "object";
9597
+ readonly additionalProperties: false;
9598
+ readonly required: readonly ["senderId", "dates"];
9599
+ readonly properties: {
9600
+ readonly senderId: {
9601
+ readonly type: "string";
9602
+ readonly minLength: 1;
9603
+ };
9604
+ readonly dates: {
9605
+ readonly type: "array";
9606
+ readonly minItems: 1;
9607
+ readonly items: {
9608
+ readonly type: "string";
9609
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9610
+ };
9611
+ };
9612
+ };
9613
+ };
9614
+ };
9615
+ };
9616
+ }];
9617
+ };
9618
+ };
9619
+ };
9620
+ outputSchema: Readonly<{
9621
+ readonly type: "object";
9622
+ readonly additionalProperties: false;
9623
+ readonly required: readonly ["rows", "durationMs", "observationSideEffects"];
9624
+ readonly properties: {
9625
+ readonly rows: {
9626
+ readonly type: "array";
9627
+ readonly items: {
9628
+ readonly type: "object";
9629
+ readonly additionalProperties: false;
9630
+ readonly required: readonly ["date", "sender", "lane", "targetSlots", "takenSlots", "availableSlots", "reason", "activeCampaigns", "inactiveCampaigns"];
9631
+ readonly properties: {
9632
+ readonly date: {
9633
+ readonly type: "string";
9634
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
9635
+ };
9636
+ readonly sender: {
9637
+ readonly type: "object";
9638
+ readonly additionalProperties: false;
9639
+ readonly required: readonly ["id", "name", "timezone"];
9640
+ readonly properties: {
9641
+ readonly id: {
9642
+ readonly type: "string";
9643
+ readonly minLength: 1;
9644
+ };
9645
+ readonly name: {
9646
+ readonly type: "string";
9647
+ };
9648
+ readonly timezone: {
9649
+ readonly type: "string";
9650
+ readonly minLength: 1;
9651
+ };
9652
+ };
9653
+ };
9654
+ readonly lane: {
9655
+ readonly type: "string";
9656
+ readonly enum: readonly ["connection_invite", "paid_inmail"];
9657
+ };
9658
+ readonly targetSlots: {
9659
+ readonly type: "integer";
9660
+ readonly minimum: 0;
9661
+ };
9662
+ readonly takenSlots: {
9663
+ readonly type: "integer";
9664
+ readonly minimum: 0;
9665
+ };
9666
+ readonly availableSlots: {
9667
+ readonly type: "integer";
9668
+ readonly minimum: 0;
9669
+ };
9670
+ readonly reason: {
9671
+ readonly type: readonly ["object", "null"];
9672
+ readonly additionalProperties: false;
9673
+ readonly required: readonly ["kind", "codes", "message"];
9674
+ readonly properties: {
9675
+ readonly kind: {
9676
+ readonly type: "string";
9677
+ readonly enum: readonly ["unavailable", "retry_required", "invalid_campaign_configuration"];
9678
+ };
9679
+ readonly codes: {
9680
+ readonly type: "array";
9681
+ readonly items: {
9682
+ readonly type: "string";
9683
+ readonly enum: readonly ["global_cooldown", "connection_cooldown", "paid_inmail_cooldown", "endpoint_temporarily_unavailable", "date_in_past", "no_sending_hours", "sender_disconnected", "sender_limit_reached", "daily_target_met", "no_eligible_campaign", "no_ready_supply", "sales_nav_disconnected", "insufficient_paid_credits", "paid_inmail_connection_health_recheck_required", "paid_inmail_credit_refresh_failed", "invalid_paid_configuration", "campaign_table_missing", "campaign_sequence_invalid", "source_family_unresolved", "campaign_work_in_flight"];
9684
+ };
9685
+ };
9686
+ readonly message: {
9687
+ readonly type: "string";
9688
+ };
9689
+ readonly resumeAt: {
9690
+ readonly type: "string";
9691
+ };
9692
+ };
9693
+ };
9694
+ readonly activeCampaigns: {
9695
+ readonly type: "array";
9696
+ readonly items: {
9697
+ readonly type: "object";
9698
+ readonly additionalProperties: false;
9699
+ readonly required: readonly ["id", "name", "status", "lanes", "eligible", "reason", "startEligible", "activeJob", "supply", "leadSourceFamily", "evidence"];
9700
+ readonly properties: {
9701
+ readonly id: {
9702
+ readonly type: "string";
9703
+ readonly minLength: 1;
9704
+ };
9705
+ readonly name: {
9706
+ readonly type: "string";
9707
+ };
9708
+ readonly status: {
9709
+ readonly type: "string";
9710
+ readonly enum: readonly ["ACTIVE", "PAUSED"];
9711
+ };
9712
+ readonly lanes: {
9713
+ readonly type: "array";
9714
+ readonly minItems: 1;
9715
+ readonly items: {
9716
+ readonly type: "string";
9717
+ readonly enum: readonly ["connection_invite", "paid_inmail"];
9718
+ };
9719
+ };
9720
+ readonly eligible: {
9721
+ readonly type: "boolean";
9722
+ };
9723
+ readonly reason: {
9724
+ readonly type: readonly ["object", "null"];
9725
+ readonly additionalProperties: false;
9726
+ readonly required: readonly ["kind", "codes", "message"];
9727
+ readonly properties: {
9728
+ readonly kind: {
9729
+ readonly type: "string";
9730
+ readonly enum: readonly ["unavailable", "retry_required", "invalid_campaign_configuration"];
9731
+ };
9732
+ readonly codes: {
9733
+ readonly type: "array";
9734
+ readonly items: {
9735
+ readonly type: "string";
9736
+ readonly enum: readonly ["global_cooldown", "connection_cooldown", "paid_inmail_cooldown", "endpoint_temporarily_unavailable", "date_in_past", "no_sending_hours", "sender_disconnected", "sender_limit_reached", "daily_target_met", "no_eligible_campaign", "no_ready_supply", "sales_nav_disconnected", "insufficient_paid_credits", "paid_inmail_connection_health_recheck_required", "paid_inmail_credit_refresh_failed", "invalid_paid_configuration", "campaign_table_missing", "campaign_sequence_invalid", "source_family_unresolved", "campaign_work_in_flight"];
9737
+ };
9738
+ };
9739
+ readonly message: {
9740
+ readonly type: "string";
9741
+ };
9742
+ readonly resumeAt: {
9743
+ readonly type: "string";
9744
+ };
9745
+ };
9746
+ };
9747
+ readonly startEligible: {
9748
+ readonly type: "boolean";
9749
+ };
9750
+ readonly activeJob: {
9751
+ readonly type: readonly ["object", "null"];
9752
+ readonly additionalProperties: false;
9753
+ readonly required: readonly ["id", "kind", "status"];
9754
+ readonly properties: {
9755
+ readonly id: {
9756
+ readonly type: "string";
9757
+ readonly minLength: 1;
9758
+ };
9759
+ readonly kind: {
9760
+ readonly type: "string";
9761
+ readonly enum: readonly ["enrichment", "message_generation", "source_expansion", "scheduling"];
9762
+ };
9763
+ readonly status: {
9764
+ readonly type: "string";
9765
+ readonly enum: readonly ["queued", "running"];
9766
+ };
9767
+ };
9768
+ };
9769
+ readonly supply: {
9770
+ readonly type: "object";
9771
+ readonly additionalProperties: false;
9772
+ readonly required: readonly ["readyToSchedule", "readyForApproval", "readyForMessageGeneration", "needsEnrichment"];
9773
+ readonly properties: {
9774
+ readonly readyToSchedule: {
9775
+ readonly type: "integer";
9776
+ readonly minimum: 0;
9777
+ };
9778
+ readonly readyForApproval: {
9779
+ readonly type: "integer";
9780
+ readonly minimum: 0;
9781
+ };
9782
+ readonly readyForMessageGeneration: {
9783
+ readonly type: "integer";
9784
+ readonly minimum: 0;
9785
+ };
9786
+ readonly needsEnrichment: {
9787
+ readonly type: "integer";
9788
+ readonly minimum: 0;
9789
+ };
9790
+ };
9791
+ };
9792
+ readonly leadSourceFamily: {
9793
+ readonly type: "string";
9794
+ readonly enum: readonly ["post_engager", "signal_discovery", "cold"];
9795
+ };
9796
+ readonly evidence: {
9797
+ readonly type: "object";
9798
+ readonly additionalProperties: false;
9799
+ readonly required: readonly ["evergreen", "lastActualUseAt", "lastScheduledUseAt", "effectiveness", "supplyHealth"];
9800
+ readonly properties: {
9801
+ readonly evergreen: {
9802
+ readonly type: "boolean";
9803
+ };
9804
+ readonly lastActualUseAt: {
9805
+ readonly type: readonly ["string", "null"];
9806
+ };
9807
+ readonly lastScheduledUseAt: {
9808
+ readonly type: readonly ["string", "null"];
9809
+ };
9810
+ readonly effectiveness: {
9811
+ readonly type: "string";
9812
+ readonly enum: readonly ["unknown", "low", "medium", "high"];
9813
+ };
9814
+ readonly supplyHealth: {
9815
+ readonly type: "string";
9816
+ readonly enum: readonly ["unknown", "healthy", "thin", "dry"];
9817
+ };
9818
+ readonly engagement: {
9819
+ readonly type: "object";
9820
+ readonly additionalProperties: false;
9821
+ readonly required: readonly ["sends", "accepted", "replied", "acceptRate", "replyRate"];
9822
+ readonly properties: {
9823
+ readonly sends: {
9824
+ readonly type: "number";
9825
+ readonly minimum: 0;
9826
+ };
9827
+ readonly accepted: {
9828
+ readonly type: "number";
9829
+ readonly minimum: 0;
9830
+ };
9831
+ readonly replied: {
9832
+ readonly type: "number";
9833
+ readonly minimum: 0;
9834
+ };
9835
+ readonly acceptRate: {
9836
+ readonly type: "number";
9837
+ readonly minimum: 0;
9838
+ readonly maximum: 100;
9839
+ };
9840
+ readonly replyRate: {
9841
+ readonly type: "number";
9842
+ readonly minimum: 0;
9843
+ readonly maximum: 100;
9844
+ };
9845
+ };
9846
+ };
9847
+ };
9848
+ };
9849
+ };
9850
+ };
9851
+ };
9852
+ readonly inactiveCampaigns: {
9853
+ readonly type: "array";
9854
+ readonly items: {
9855
+ readonly type: "object";
9856
+ readonly additionalProperties: false;
9857
+ readonly required: readonly ["id", "name", "status", "lanes", "eligible", "reason", "startEligible", "activeJob", "supply", "leadSourceFamily", "evidence"];
9858
+ readonly properties: {
9859
+ readonly id: {
9860
+ readonly type: "string";
9861
+ readonly minLength: 1;
9862
+ };
9863
+ readonly name: {
9864
+ readonly type: "string";
9865
+ };
9866
+ readonly status: {
9867
+ readonly type: "string";
9868
+ readonly enum: readonly ["ACTIVE", "PAUSED"];
9869
+ };
9870
+ readonly lanes: {
9871
+ readonly type: "array";
9872
+ readonly minItems: 1;
9873
+ readonly items: {
9874
+ readonly type: "string";
9875
+ readonly enum: readonly ["connection_invite", "paid_inmail"];
9876
+ };
9877
+ };
9878
+ readonly eligible: {
9879
+ readonly type: "boolean";
9880
+ };
9881
+ readonly reason: {
9882
+ readonly type: readonly ["object", "null"];
9883
+ readonly additionalProperties: false;
9884
+ readonly required: readonly ["kind", "codes", "message"];
9885
+ readonly properties: {
9886
+ readonly kind: {
9887
+ readonly type: "string";
9888
+ readonly enum: readonly ["unavailable", "retry_required", "invalid_campaign_configuration"];
9889
+ };
9890
+ readonly codes: {
9891
+ readonly type: "array";
9892
+ readonly items: {
9893
+ readonly type: "string";
9894
+ readonly enum: readonly ["global_cooldown", "connection_cooldown", "paid_inmail_cooldown", "endpoint_temporarily_unavailable", "date_in_past", "no_sending_hours", "sender_disconnected", "sender_limit_reached", "daily_target_met", "no_eligible_campaign", "no_ready_supply", "sales_nav_disconnected", "insufficient_paid_credits", "paid_inmail_connection_health_recheck_required", "paid_inmail_credit_refresh_failed", "invalid_paid_configuration", "campaign_table_missing", "campaign_sequence_invalid", "source_family_unresolved", "campaign_work_in_flight"];
9895
+ };
9896
+ };
9897
+ readonly message: {
9898
+ readonly type: "string";
9899
+ };
9900
+ readonly resumeAt: {
9901
+ readonly type: "string";
9902
+ };
9903
+ };
9904
+ };
9905
+ readonly startEligible: {
9906
+ readonly type: "boolean";
9907
+ };
9908
+ readonly activeJob: {
9909
+ readonly type: readonly ["object", "null"];
9910
+ readonly additionalProperties: false;
9911
+ readonly required: readonly ["id", "kind", "status"];
9912
+ readonly properties: {
9913
+ readonly id: {
9914
+ readonly type: "string";
9915
+ readonly minLength: 1;
9916
+ };
9917
+ readonly kind: {
9918
+ readonly type: "string";
9919
+ readonly enum: readonly ["enrichment", "message_generation", "source_expansion", "scheduling"];
9920
+ };
9921
+ readonly status: {
9922
+ readonly type: "string";
9923
+ readonly enum: readonly ["queued", "running"];
9924
+ };
9925
+ };
9926
+ };
9927
+ readonly supply: {
9928
+ readonly type: "object";
9929
+ readonly additionalProperties: false;
9930
+ readonly required: readonly ["readyToSchedule", "readyForApproval", "readyForMessageGeneration", "needsEnrichment"];
9931
+ readonly properties: {
9932
+ readonly readyToSchedule: {
9933
+ readonly type: "integer";
9934
+ readonly minimum: 0;
9935
+ };
9936
+ readonly readyForApproval: {
9937
+ readonly type: "integer";
9938
+ readonly minimum: 0;
9939
+ };
9940
+ readonly readyForMessageGeneration: {
9941
+ readonly type: "integer";
9942
+ readonly minimum: 0;
9943
+ };
9944
+ readonly needsEnrichment: {
9945
+ readonly type: "integer";
9946
+ readonly minimum: 0;
9947
+ };
9948
+ };
9949
+ };
9950
+ readonly leadSourceFamily: {
9951
+ readonly type: "string";
9952
+ readonly enum: readonly ["post_engager", "signal_discovery", "cold"];
9953
+ };
9954
+ readonly evidence: {
9955
+ readonly type: "object";
9956
+ readonly additionalProperties: false;
9957
+ readonly required: readonly ["evergreen", "lastActualUseAt", "lastScheduledUseAt", "effectiveness", "supplyHealth"];
9958
+ readonly properties: {
9959
+ readonly evergreen: {
9960
+ readonly type: "boolean";
9961
+ };
9962
+ readonly lastActualUseAt: {
9963
+ readonly type: readonly ["string", "null"];
9964
+ };
9965
+ readonly lastScheduledUseAt: {
9966
+ readonly type: readonly ["string", "null"];
9967
+ };
9968
+ readonly effectiveness: {
9969
+ readonly type: "string";
9970
+ readonly enum: readonly ["unknown", "low", "medium", "high"];
9971
+ };
9972
+ readonly supplyHealth: {
9973
+ readonly type: "string";
9974
+ readonly enum: readonly ["unknown", "healthy", "thin", "dry"];
9975
+ };
9976
+ readonly engagement: {
9977
+ readonly type: "object";
9978
+ readonly additionalProperties: false;
9979
+ readonly required: readonly ["sends", "accepted", "replied", "acceptRate", "replyRate"];
9980
+ readonly properties: {
9981
+ readonly sends: {
9982
+ readonly type: "number";
9983
+ readonly minimum: 0;
9984
+ };
9985
+ readonly accepted: {
9986
+ readonly type: "number";
9987
+ readonly minimum: 0;
9988
+ };
9989
+ readonly replied: {
9990
+ readonly type: "number";
9991
+ readonly minimum: 0;
9992
+ };
9993
+ readonly acceptRate: {
9994
+ readonly type: "number";
9995
+ readonly minimum: 0;
9996
+ readonly maximum: 100;
9997
+ };
9998
+ readonly replyRate: {
9999
+ readonly type: "number";
10000
+ readonly minimum: 0;
10001
+ readonly maximum: 100;
10002
+ };
10003
+ };
10004
+ };
10005
+ };
10006
+ };
10007
+ };
10008
+ };
10009
+ };
10010
+ readonly paidCreditEvidence: {
10011
+ readonly type: readonly ["object", "null"];
10012
+ readonly additionalProperties: false;
10013
+ readonly required: readonly ["availableCredits", "minimumRequired", "checkedAt", "fresh"];
10014
+ readonly properties: {
10015
+ readonly availableCredits: {
10016
+ readonly type: readonly ["integer", "null"];
10017
+ readonly minimum: 0;
10018
+ };
10019
+ readonly minimumRequired: {
10020
+ readonly type: readonly ["integer", "null"];
10021
+ readonly minimum: 0;
10022
+ };
10023
+ readonly checkedAt: {
10024
+ readonly type: readonly ["string", "null"];
10025
+ };
10026
+ readonly fresh: {
10027
+ readonly type: "boolean";
10028
+ };
10029
+ };
10030
+ };
10031
+ };
10032
+ };
10033
+ };
10034
+ readonly durationMs: {
10035
+ readonly type: "number";
10036
+ readonly minimum: 0;
10037
+ };
10038
+ readonly observationSideEffects: {
10039
+ readonly type: "object";
10040
+ readonly additionalProperties: false;
10041
+ readonly required: readonly ["scheduled", "placed", "sent", "campaignMutated", "approved", "enriched", "generated", "salesNavigatorActioned", "paidCreditCache"];
10042
+ readonly properties: {
10043
+ readonly scheduled: {
10044
+ readonly type: "boolean";
10045
+ readonly enum: readonly [false];
10046
+ };
10047
+ readonly placed: {
10048
+ readonly type: "boolean";
10049
+ readonly enum: readonly [false];
10050
+ };
10051
+ readonly sent: {
10052
+ readonly type: "boolean";
10053
+ readonly enum: readonly [false];
10054
+ };
10055
+ readonly campaignMutated: {
10056
+ readonly type: "boolean";
10057
+ readonly enum: readonly [false];
10058
+ };
10059
+ readonly approved: {
10060
+ readonly type: "boolean";
10061
+ readonly enum: readonly [false];
10062
+ };
10063
+ readonly enriched: {
10064
+ readonly type: "boolean";
10065
+ readonly enum: readonly [false];
10066
+ };
10067
+ readonly generated: {
10068
+ readonly type: "boolean";
10069
+ readonly enum: readonly [false];
10070
+ };
10071
+ readonly salesNavigatorActioned: {
10072
+ readonly type: "boolean";
10073
+ readonly enum: readonly [false];
10074
+ };
10075
+ readonly paidCreditCache: {
10076
+ readonly type: "string";
10077
+ readonly enum: readonly ["not_checked", "not_eligible", "fresh_cache_used", "refresh_started", "refreshed", "refresh_in_progress", "refresh_failed", "uncertain"];
10078
+ };
10079
+ };
10080
+ };
10081
+ };
10082
+ }>;
10083
+ annotations: {
10084
+ title: string;
10085
+ readOnlyHint: boolean;
10086
+ destructiveHint: boolean;
10087
+ idempotentHint: boolean;
10088
+ openWorldHint: boolean;
10089
+ };
10090
+ } | {
10091
+ name: "refill_v3_continue";
10092
+ description: string;
10093
+ inputSchema: Readonly<{
10094
+ readonly type: "object";
10095
+ readonly additionalProperties: false;
10096
+ readonly required: readonly ["workspaceId", "scope", "packet", "decision"];
10097
+ readonly properties: {
10098
+ readonly workspaceId: {
10099
+ readonly type: "string";
10100
+ readonly minLength: 1;
10101
+ readonly description: "Explicit request-scoped workspace id. Pass this instead of switching the shared active workspace.";
10102
+ };
10103
+ readonly scope: {
10104
+ readonly description: "Either a 1-3 day sender-local horizon or an exact sender/date set. There is no lane input, no row input, and no mode input.";
10105
+ readonly oneOf: readonly [{
10106
+ readonly type: "object";
10107
+ readonly additionalProperties: false;
10108
+ readonly required: readonly ["kind", "days"];
10109
+ readonly properties: {
10110
+ readonly kind: {
10111
+ readonly type: "string";
10112
+ readonly const: "sender_local_horizon";
10113
+ };
10114
+ readonly days: {
10115
+ readonly type: "integer";
10116
+ readonly minimum: 1;
10117
+ readonly maximum: 3;
10118
+ };
10119
+ readonly senderIds: {
10120
+ readonly type: "array";
10121
+ readonly items: {
10122
+ readonly type: "string";
10123
+ readonly minLength: 1;
10124
+ };
10125
+ readonly minItems: 1;
10126
+ };
10127
+ };
10128
+ }, {
10129
+ readonly type: "object";
10130
+ readonly additionalProperties: false;
10131
+ readonly required: readonly ["kind", "senderDates"];
10132
+ readonly properties: {
10133
+ readonly kind: {
10134
+ readonly type: "string";
10135
+ readonly const: "exact_sender_dates";
10136
+ };
10137
+ readonly senderDates: {
10138
+ readonly type: "array";
10139
+ readonly minItems: 1;
10140
+ readonly items: {
10141
+ readonly type: "object";
10142
+ readonly additionalProperties: false;
10143
+ readonly required: readonly ["senderId", "dates"];
10144
+ readonly properties: {
10145
+ readonly senderId: {
10146
+ readonly type: "string";
10147
+ readonly minLength: 1;
10148
+ };
10149
+ readonly dates: {
10150
+ readonly type: "array";
10151
+ readonly minItems: 1;
10152
+ readonly items: {
10153
+ readonly type: "string";
10154
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
10155
+ };
10156
+ };
10157
+ };
10158
+ };
10159
+ };
10160
+ };
10161
+ }];
10162
+ };
10163
+ readonly yolo: {
10164
+ readonly type: "boolean";
10165
+ readonly description: "The operator's AUTONOMY GRANT, true only when the operator actually asked for --yolo. It is not a mode and selects nothing: WHICH campaign may start is derived from the workspace's own campaigns. It authorizes exactly one thing this call could not otherwise do — starting one already-eligible PAUSED derived-evergreen campaign once every active campaign for a row is exhausted. Omit it, or pass false, for a conservative run that reports that exhaustion instead of acting on it.";
10166
+ };
10167
+ readonly packet: Readonly<{
10168
+ readonly type: "object";
10169
+ readonly additionalProperties: false;
10170
+ readonly required: readonly ["scope", "evidence"];
10171
+ readonly properties: {
10172
+ readonly scope: {
10173
+ readonly type: "object";
10174
+ readonly additionalProperties: false;
10175
+ readonly required: readonly ["workspaceId", "campaignId", "tableId", "campaignVersion", "evidenceFingerprint", "senderId", "date", "lane", "actionType"];
10176
+ readonly properties: {
10177
+ readonly workspaceId: {
10178
+ readonly type: "string";
10179
+ readonly minLength: 1;
10180
+ };
10181
+ readonly campaignId: {
10182
+ readonly type: "string";
10183
+ readonly minLength: 1;
10184
+ };
10185
+ readonly tableId: {
10186
+ readonly type: "string";
10187
+ readonly minLength: 1;
10188
+ };
10189
+ readonly campaignVersion: {
10190
+ readonly type: "integer";
10191
+ readonly minimum: 0;
10192
+ };
10193
+ readonly evidenceFingerprint: {
10194
+ readonly type: "string";
10195
+ readonly minLength: 1;
10196
+ };
10197
+ readonly senderId: {
10198
+ readonly type: "string";
10199
+ readonly minLength: 1;
10200
+ };
10201
+ readonly date: {
10202
+ readonly type: "string";
10203
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
10204
+ };
10205
+ readonly lane: {
10206
+ readonly type: "string";
10207
+ readonly enum: string[];
10208
+ };
10209
+ readonly actionType: {
10210
+ readonly type: "string";
10211
+ readonly enum: ("send_invite" | "send_inmail_closed")[];
10212
+ };
10213
+ };
10214
+ };
10215
+ readonly evidence: {
10216
+ readonly type: "object";
10217
+ readonly additionalProperties: false;
10218
+ readonly required: readonly ["campaignType", "campaignObjective", "protectedFitDigest", "leadSourceFamily", "provider", "sourceLineage", "priorYieldReceipt", "searchedNegativeSetFingerprints", "remainingGap", "supply", "activeJob", "failedJobRef", "diagnosticRowRef"];
10219
+ readonly properties: {
10220
+ readonly campaignType: {
10221
+ readonly type: "string";
10222
+ };
10223
+ readonly campaignObjective: {
10224
+ readonly type: "string";
10225
+ };
10226
+ readonly protectedFitDigest: {
10227
+ readonly type: "string";
10228
+ };
10229
+ readonly leadSourceFamily: {
10230
+ readonly type: "string";
10231
+ readonly enum: readonly ["post_engager", "signal_discovery", "cold"];
10232
+ };
10233
+ readonly provider: {
10234
+ readonly type: readonly ["string", "null"];
10235
+ };
10236
+ readonly selectedLeadListId: {
10237
+ readonly type: readonly ["string", "null"];
10238
+ };
10239
+ readonly providerSearchReference: {
10240
+ readonly type: readonly ["object", "null"];
10241
+ readonly additionalProperties: false;
10242
+ readonly required: readonly ["workspaceId", "provider", "sourceTableId", "searchId", "resolutionOrigin", "owner", "basisFingerprint"];
10243
+ readonly properties: {
10244
+ readonly workspaceId: {
10245
+ readonly type: "string";
10246
+ };
10247
+ readonly provider: {
10248
+ readonly type: "string";
10249
+ readonly enum: readonly ["sales-nav", "prospeo"];
10250
+ };
10251
+ readonly sourceTableId: {
10252
+ readonly type: "string";
10253
+ };
10254
+ readonly searchId: {
10255
+ readonly type: "string";
10256
+ };
10257
+ readonly resolutionOrigin: {
10258
+ readonly type: "string";
10259
+ readonly enum: readonly ["config_import_job", "exact_table_job", "find_leads_run"];
10260
+ };
10261
+ readonly owner: {
10262
+ readonly type: "object";
10263
+ readonly additionalProperties: false;
10264
+ readonly required: readonly ["kind", "id"];
10265
+ readonly properties: {
10266
+ readonly kind: {
10267
+ readonly type: "string";
10268
+ readonly enum: readonly ["campaign", "find_leads_run"];
10269
+ };
10270
+ readonly id: {
10271
+ readonly type: "string";
10272
+ };
10273
+ };
10274
+ };
10275
+ readonly basisFingerprint: {
10276
+ readonly type: "string";
10277
+ };
10278
+ };
10279
+ };
10280
+ readonly sourceLineage: {
10281
+ readonly type: "array";
10282
+ readonly items: {
10283
+ readonly type: "string";
10284
+ };
10285
+ };
10286
+ readonly priorYieldReceipt: {
10287
+ readonly type: readonly ["object", "null"];
10288
+ readonly additionalProperties: false;
10289
+ readonly required: readonly ["family", "evaluated", "passes"];
10290
+ readonly properties: {
10291
+ readonly family: {
10292
+ readonly type: "string";
10293
+ readonly enum: readonly ["post_engager", "signal_discovery", "cold"];
10294
+ };
10295
+ readonly evaluated: {
10296
+ readonly type: "integer";
10297
+ readonly minimum: 0;
10298
+ };
10299
+ readonly passes: {
10300
+ readonly type: "integer";
10301
+ readonly minimum: 0;
10302
+ };
10303
+ };
10304
+ };
10305
+ readonly searchedNegativeSetFingerprints: {
10306
+ readonly type: "array";
10307
+ readonly items: {
10308
+ readonly type: "string";
10309
+ };
10310
+ };
10311
+ readonly remainingGap: {
10312
+ readonly type: "integer";
10313
+ readonly minimum: 0;
10314
+ };
10315
+ readonly supply: {
10316
+ readonly type: "object";
10317
+ readonly additionalProperties: false;
10318
+ readonly required: readonly ["readyToSchedule", "readyForApproval", "readyForMessageGeneration", "needsEnrichment"];
10319
+ readonly properties: {
10320
+ readonly readyToSchedule: {
10321
+ readonly type: "integer";
10322
+ readonly minimum: 0;
10323
+ };
10324
+ readonly readyForApproval: {
10325
+ readonly type: "integer";
10326
+ readonly minimum: 0;
10327
+ };
10328
+ readonly readyForMessageGeneration: {
10329
+ readonly type: "integer";
10330
+ readonly minimum: 0;
10331
+ };
10332
+ readonly needsEnrichment: {
10333
+ readonly type: "integer";
10334
+ readonly minimum: 0;
10335
+ };
10336
+ };
10337
+ };
10338
+ readonly activeJob: {
10339
+ readonly type: readonly ["object", "null"];
10340
+ readonly additionalProperties: false;
10341
+ readonly required: readonly ["id", "kind", "status"];
10342
+ readonly properties: {
10343
+ readonly id: {
10344
+ readonly type: "string";
10345
+ readonly minLength: 1;
10346
+ };
10347
+ readonly kind: {
10348
+ readonly type: "string";
10349
+ readonly enum: readonly ["enrichment", "message_generation", "source_expansion", "scheduling"];
10350
+ };
10351
+ readonly status: {
10352
+ readonly type: "string";
10353
+ readonly enum: readonly ["queued", "running"];
10354
+ };
10355
+ };
10356
+ };
10357
+ readonly failedJobRef: {
10358
+ readonly type: readonly ["string", "null"];
10359
+ };
10360
+ readonly diagnosticRowRef: {
10361
+ readonly type: readonly ["object", "null"];
10362
+ readonly additionalProperties: false;
10363
+ readonly required: readonly ["count", "selectorRef"];
10364
+ readonly properties: {
10365
+ readonly count: {
10366
+ readonly type: "integer";
10367
+ readonly minimum: 0;
10368
+ readonly maximum: 10;
10369
+ };
10370
+ readonly selectorRef: {
10371
+ readonly type: "string";
10372
+ readonly minLength: 1;
10373
+ };
10374
+ };
10375
+ };
10376
+ readonly repairableExistingRows: {
10377
+ readonly type: "integer";
10378
+ readonly minimum: 0;
10379
+ };
10380
+ readonly retryExhaustedRows: {
10381
+ readonly type: "integer";
10382
+ readonly minimum: 0;
10383
+ };
10384
+ readonly laneSchedulable: {
10385
+ readonly type: readonly ["integer", "null"];
10386
+ readonly minimum: 0;
10387
+ };
10388
+ };
10389
+ };
10390
+ };
10391
+ }>;
10392
+ readonly decision: {
10393
+ readonly type: "object";
10394
+ readonly additionalProperties: false;
10395
+ readonly required: readonly ["scopeEcho", "actions", "consumedDiagnosticRowIds"];
10396
+ readonly properties: {
10397
+ readonly scopeEcho: {
10398
+ readonly type: "object";
10399
+ readonly additionalProperties: false;
10400
+ readonly required: readonly ["campaignId", "tableId", "campaignVersion", "evidenceFingerprint"];
10401
+ readonly properties: {
10402
+ readonly campaignId: {
10403
+ readonly type: "string";
10404
+ readonly minLength: 1;
10405
+ };
10406
+ readonly tableId: {
10407
+ readonly type: "string";
10408
+ readonly minLength: 1;
10409
+ };
10410
+ readonly campaignVersion: {
10411
+ readonly type: "integer";
10412
+ };
10413
+ readonly evidenceFingerprint: {
10414
+ readonly type: "string";
10415
+ readonly minLength: 1;
10416
+ };
10417
+ };
10418
+ };
10419
+ readonly actions: {
10420
+ readonly type: "array";
10421
+ readonly minItems: 1;
10422
+ readonly maxItems: 1;
10423
+ readonly items: Readonly<{
10424
+ readonly type: "object";
10425
+ readonly additionalProperties: false;
10426
+ readonly required: readonly ["action", "rationale"];
10427
+ readonly properties: {
10428
+ readonly action: {
10429
+ readonly type: "string";
10430
+ readonly enum: readonly ["rerun_errored_cells", "repair_campaign_config", "enrich_bounded_sample", "regenerate_stale_messages", "patch_filter_criteria", "patch_source_criteria", "broaden_source_family", "request_rubric_trial", "await_active_job", "record_source_frontier_exhausted"];
10431
+ };
10432
+ readonly rationale: {
10433
+ readonly type: "string";
10434
+ readonly minLength: 1;
10435
+ };
10436
+ readonly rowIds: {
10437
+ readonly type: readonly ["array", "null"];
10438
+ readonly items: {
10439
+ readonly type: "string";
10440
+ readonly minLength: 1;
10441
+ };
10442
+ };
10443
+ readonly sourceCommand: {
10444
+ readonly type: readonly ["object", "null"];
10445
+ };
10446
+ readonly candidateVerdicts: {
10447
+ readonly type: readonly ["array", "null"];
10448
+ readonly items: {
10449
+ readonly type: "object";
10450
+ readonly additionalProperties: false;
10451
+ readonly required: readonly ["candidateId", "verdict", "rubricBasis"];
10452
+ readonly properties: {
10453
+ readonly candidateId: {
10454
+ readonly type: "string";
10455
+ readonly minLength: 1;
10456
+ };
10457
+ readonly verdict: {
10458
+ readonly type: "string";
10459
+ readonly enum: readonly ["pass", "fail"];
10460
+ };
10461
+ readonly rubricBasis: {
10462
+ readonly type: "string";
10463
+ readonly minLength: 1;
10464
+ };
10465
+ };
10466
+ };
10467
+ };
10468
+ readonly templateFingerprint: {
10469
+ readonly type: readonly ["string", "null"];
10470
+ };
10471
+ readonly templateMeaningChanged: {
10472
+ readonly type: "boolean";
10473
+ };
10474
+ readonly exhaustionEvidence: {
10475
+ readonly type: readonly ["object", "null"];
10476
+ };
10477
+ readonly providerPromptRef: {
10478
+ readonly type: readonly ["object", "null"];
10479
+ readonly additionalProperties: false;
10480
+ readonly required: readonly ["provider", "campaignOfferId"];
10481
+ readonly properties: {
10482
+ readonly provider: {
10483
+ readonly type: "string";
10484
+ readonly minLength: 1;
10485
+ };
10486
+ readonly campaignOfferId: {
10487
+ readonly type: "string";
10488
+ readonly minLength: 1;
10489
+ };
10490
+ };
10491
+ };
10492
+ };
10493
+ }>;
10494
+ };
10495
+ readonly consumedDiagnosticRowIds: {
10496
+ readonly type: readonly ["array", "null"];
10497
+ readonly items: {
10498
+ readonly type: "string";
10499
+ readonly minLength: 1;
10500
+ };
10501
+ };
10502
+ };
10503
+ };
10504
+ };
10505
+ }>;
10506
+ outputSchema: Readonly<{
10507
+ readonly type: "object";
10508
+ readonly required: readonly ["kind"];
10509
+ readonly properties: {
10510
+ readonly kind: {
10511
+ readonly type: "string";
10512
+ readonly enum: readonly ["world_advanced", "attention_refresh_required", "campaign_work_completed"];
10513
+ };
10514
+ readonly advanceResult: {
10515
+ readonly type: "object";
10516
+ };
10517
+ readonly outcome: {
10518
+ readonly type: "object";
10519
+ };
10520
+ };
10521
+ readonly additionalProperties: false;
10522
+ }>;
10523
+ annotations: {
10524
+ title: string;
10525
+ readOnlyHint: boolean;
10526
+ destructiveHint: boolean;
10527
+ idempotentHint: boolean;
10528
+ openWorldHint: boolean;
10529
+ };
10530
+ } | {
10531
+ name: "refill_v3_edit_selected_campaign";
10532
+ description: string;
10533
+ inputSchema: {
10534
+ readonly type: "object";
10535
+ readonly additionalProperties: false;
10536
+ readonly required: readonly ["workspaceId", "campaignId", "tableId", "campaignVersion", "evidenceFingerprint", "priorActionFingerprint", "action", "field", "value", "reobservationScope", "idempotencyKey"];
10537
+ readonly properties: {
10538
+ readonly workspaceId: {
10539
+ readonly type: "string";
10540
+ readonly minLength: 1;
10541
+ readonly description: "Explicit request-scoped workspace id. Pass this instead of switching the shared active workspace.";
10542
+ };
10543
+ readonly campaignId: {
10544
+ readonly type: "string";
10545
+ readonly minLength: 1;
10546
+ readonly description: "Exact id of the ONE selected campaign this request may touch.";
10547
+ };
10548
+ readonly tableId: {
10549
+ readonly type: "string";
10550
+ readonly minLength: 1;
10551
+ readonly description: "Exact workflow table id owned by that campaign.";
10552
+ };
10553
+ readonly campaignVersion: {
10554
+ readonly type: "integer";
10555
+ readonly minimum: 0;
10556
+ readonly description: "Optimistic concurrency token from the selected packet. A stale value refuses before any delegated call.";
10557
+ };
10558
+ readonly evidenceFingerprint: {
10559
+ readonly type: "string";
10560
+ readonly minLength: 1;
10561
+ readonly description: "Fingerprint of the bounded evidence the edit was chosen from. Stale evidence cannot authorize a mutation.";
10562
+ };
10563
+ readonly priorActionFingerprint: {
10564
+ readonly type: "string";
10565
+ readonly minLength: 1;
10566
+ readonly description: "Action-specific prior fingerprint proving the delta was derived from the current field value.";
10567
+ };
10568
+ readonly action: {
10569
+ readonly type: "string";
10570
+ readonly enum: readonly import("./refill-v3-edit-selected-campaign-contract.js").RefillV3CampaignEditAction[];
10571
+ readonly description: "The one closed edit action. Rerun, same-meaning regeneration, and the guarded rubric trial are NOT edit variants and are refused here.";
10572
+ };
10573
+ readonly field: {
10574
+ readonly type: "string";
10575
+ readonly minLength: 1;
10576
+ readonly description: "The single allowlisted field for that action. A protected field or an action/field mismatch refuses before any delegated call.";
10577
+ };
10578
+ readonly value: {
10579
+ readonly type: readonly ["string", "boolean"];
10580
+ readonly description: "The one normalized field-level value. Objects, arrays, and whole-object replacement are refused.";
10581
+ };
10582
+ readonly reobservationScope: {
10583
+ readonly type: "object";
10584
+ readonly additionalProperties: false;
10585
+ readonly required: readonly ["senderId", "date"];
10586
+ readonly properties: {
10587
+ readonly senderId: {
10588
+ readonly type: "string";
10589
+ readonly minLength: 1;
10590
+ };
10591
+ readonly date: {
10592
+ readonly type: "string";
10593
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
10594
+ };
10595
+ };
10596
+ readonly description: "The exact sender and sender-local date whose two lanes must be re-observed immediately after the edit.";
10597
+ };
10598
+ readonly idempotencyKey: {
10599
+ readonly type: "string";
10600
+ readonly minLength: 1;
10601
+ readonly description: "Caller replay identity. Reuse the SAME key to retry one request; the same key with changed input is refused, never converged.";
10602
+ };
10603
+ };
10604
+ };
10605
+ outputSchema: Readonly<{
10606
+ readonly type: "object";
10607
+ readonly additionalProperties: false;
10608
+ readonly required: readonly ["schemaVersion", "outcome", "action", "reason", "receipt", "reobservation", "detail"];
10609
+ readonly properties: {
10610
+ readonly schemaVersion: {
10611
+ readonly type: "string";
10612
+ readonly const: "refill_v3_campaign_edit.v1.0";
10613
+ };
10614
+ readonly outcome: {
10615
+ readonly type: "string";
10616
+ readonly enum: readonly ["applied", "replayed", "rolled_back", "blocked"];
10617
+ };
10618
+ readonly action: {
10619
+ readonly type: "string";
10620
+ readonly enum: readonly import("./refill-v3-edit-selected-campaign-contract.js").RefillV3CampaignEditAction[];
10621
+ };
10622
+ readonly reason: {
10623
+ readonly type: readonly ["string", "null"];
10624
+ readonly enum: readonly ["cross_workspace_scope", "foreign_campaign_scope", "foreign_table_scope", "stale_campaign_version", "stale_evidence_fingerprint", "stale_prior_fingerprint", "disallowed_action", "protected_field", "value_shape_mismatch", "protected_invariant_weakened", "health_evidence_not_editable", "reobservation_scope_missing", "idempotency_input_changed", "no_edit_available", "uncertain_delegated_effect", null];
10625
+ };
10626
+ readonly receipt: {
10627
+ readonly type: readonly ["object", "null"];
10628
+ readonly additionalProperties: false;
10629
+ readonly required: readonly ["scopeEcho", "idempotencyKey", "effectKey", "beforeFingerprint", "afterFingerprint", "changedFields", "replayState", "rollback"];
10630
+ readonly properties: {
10631
+ readonly scopeEcho: {
10632
+ readonly type: "string";
10633
+ readonly minLength: 1;
10634
+ };
10635
+ readonly idempotencyKey: {
10636
+ readonly type: "string";
10637
+ readonly minLength: 1;
10638
+ };
10639
+ readonly effectKey: {
10640
+ readonly type: "string";
10641
+ readonly minLength: 1;
10642
+ };
10643
+ readonly beforeFingerprint: {
10644
+ readonly type: "string";
10645
+ readonly minLength: 1;
10646
+ };
10647
+ readonly afterFingerprint: {
10648
+ readonly type: "string";
10649
+ readonly minLength: 1;
10650
+ };
10651
+ readonly changedFields: {
10652
+ readonly type: "array";
10653
+ readonly items: {
10654
+ readonly type: "string";
10655
+ readonly minLength: 1;
10656
+ };
10657
+ };
10658
+ readonly replayState: {
10659
+ readonly type: "string";
10660
+ readonly enum: readonly ["first", "exact_replay", "not_applicable"];
10661
+ };
10662
+ readonly rollback: {
10663
+ readonly type: "object";
10664
+ readonly additionalProperties: false;
10665
+ readonly required: readonly ["available", "input", "result"];
10666
+ readonly properties: {
10667
+ readonly available: {
10668
+ readonly type: "boolean";
10669
+ };
10670
+ readonly input: {
10671
+ readonly type: readonly ["object", "null"];
10672
+ };
10673
+ readonly result: {
10674
+ readonly type: readonly ["string", "null"];
10675
+ };
10676
+ };
10677
+ };
10678
+ };
10679
+ };
10680
+ readonly reobservation: {
10681
+ readonly type: readonly ["object", "null"];
10682
+ readonly additionalProperties: false;
10683
+ readonly required: readonly ["senderId", "date", "required", "lanes"];
10684
+ readonly properties: {
10685
+ readonly senderId: {
10686
+ readonly type: "string";
10687
+ readonly minLength: 1;
10688
+ };
10689
+ readonly date: {
10690
+ readonly type: "string";
10691
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
10692
+ };
10693
+ readonly required: {
10694
+ readonly type: "boolean";
10695
+ readonly const: true;
10696
+ };
10697
+ readonly lanes: {
10698
+ readonly type: "array";
10699
+ readonly items: {
10700
+ readonly type: "string";
10701
+ readonly minLength: 1;
10702
+ };
10703
+ };
10704
+ };
10705
+ };
10706
+ readonly detail: {
10707
+ readonly type: "string";
10708
+ };
10709
+ };
10710
+ }>;
10711
+ annotations: {
10712
+ title: string;
10713
+ readOnlyHint: boolean;
10714
+ destructiveHint: boolean;
10715
+ idempotentHint: boolean;
10716
+ openWorldHint: boolean;
10717
+ };
10718
+ } | {
10719
+ name: "refill_v3_fill_ready";
10720
+ description: string;
10721
+ inputSchema: {
10722
+ readonly type: "object";
10723
+ readonly additionalProperties: false;
10724
+ readonly required: readonly ["workspaceId", "senderId", "targetDate", "lane", "campaignId", "requestedCount", "idempotencyKey"];
10725
+ readonly properties: {
10726
+ readonly workspaceId: {
10727
+ readonly type: "string";
10728
+ readonly minLength: 1;
10729
+ readonly description: "Explicit request-scoped workspace id. Pass this instead of switching the shared active workspace.";
10730
+ };
10731
+ readonly senderId: {
10732
+ readonly type: "string";
10733
+ readonly minLength: 1;
10734
+ readonly description: "Exact Sender.id. Never pass a sender name.";
10735
+ };
10736
+ readonly targetDate: {
10737
+ readonly type: "string";
10738
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
10739
+ readonly description: "The sender-local calendar date to fill, YYYY-MM-DD.";
10740
+ };
10741
+ readonly lane: {
10742
+ readonly type: "string";
10743
+ readonly enum: readonly ["connection_invite", "paid_inmail"];
10744
+ readonly description: "The exact lane to fill. The two lanes are independent.";
10745
+ };
10746
+ readonly campaignId: {
10747
+ readonly type: "string";
10748
+ readonly minLength: 1;
10749
+ readonly description: "Exact id of the ONE campaign this request may touch, chosen from the world-state options.";
10750
+ };
10751
+ readonly requestedCount: {
10752
+ readonly type: "integer";
10753
+ readonly minimum: 0;
10754
+ readonly description: "How many actions to place. The backend clamps it to real capacity, supply, and clean candidates and names the binding limit; 0 is a valid bounded no-op.";
10755
+ };
10756
+ readonly idempotencyKey: {
10757
+ readonly type: "string";
10758
+ readonly minLength: 1;
10759
+ readonly description: "Caller replay identity. Reuse the SAME key to retry one request; a new key means a new placement scope.";
10760
+ };
10761
+ };
10762
+ };
10763
+ outputSchema: Readonly<{
10764
+ readonly type: "object";
10765
+ readonly additionalProperties: false;
10766
+ readonly required: readonly ["outcome", "requestedCount", "appliedCount", "approvedCount", "scheduledCount", "reason", "clamp", "receipt", "pollKey"];
10767
+ readonly properties: {
10768
+ readonly outcome: {
10769
+ readonly type: "string";
10770
+ readonly enum: readonly ["scheduled", "partially_scheduled", "awaiting_scheduler", "campaign_exhausted", "blocked"];
10771
+ };
10772
+ readonly requestedCount: {
10773
+ readonly type: "integer";
10774
+ readonly minimum: 0;
10775
+ };
10776
+ readonly appliedCount: {
10777
+ readonly type: "integer";
10778
+ readonly minimum: 0;
10779
+ };
10780
+ readonly approvedCount: {
10781
+ readonly type: "integer";
10782
+ readonly minimum: 0;
10783
+ };
10784
+ readonly scheduledCount: {
10785
+ readonly type: "integer";
10786
+ readonly minimum: 0;
10787
+ };
10788
+ readonly reason: {
10789
+ readonly type: readonly ["object", "null"];
10790
+ readonly additionalProperties: false;
10791
+ readonly required: readonly ["code", "message", "retryable"];
10792
+ readonly properties: {
10793
+ readonly code: {
10794
+ readonly type: "string";
10795
+ readonly enum: readonly ["global_cooldown", "connection_cooldown", "paid_inmail_cooldown", "endpoint_temporarily_unavailable", "date_in_past", "no_sending_hours", "sender_disconnected", "sender_limit_reached", "daily_target_met", "no_eligible_campaign", "no_ready_supply", "sales_nav_disconnected", "insufficient_paid_credits", "paid_inmail_connection_health_recheck_required", "paid_inmail_credit_refresh_failed", "invalid_paid_configuration", "campaign_table_missing", "campaign_sequence_invalid", "source_family_unresolved", "campaign_work_in_flight", "zero_requested_count", "idempotency_scope_mismatch", "uncertain_outcome", "placed_under_other_sender", "placed_off_target_date", "paid_inmail_credit_receipt_invalid", "awaiting_external_change", "approval_authority_invalid", "approval_authority_in_flight", "approval_dispatch_incomplete", "ready_cells_unavailable", "sender_affinity_conflict", "scheduler_target_omitted", "scheduler_failed", "receipt_readback_mismatch"];
10796
+ };
10797
+ readonly message: {
10798
+ readonly type: "string";
10799
+ };
10800
+ readonly retryable: {
10801
+ readonly type: "boolean";
10802
+ };
10803
+ readonly resumeAt: {
10804
+ readonly type: "string";
10805
+ };
10806
+ };
10807
+ };
10808
+ readonly clamp: {
10809
+ readonly type: readonly ["object", "null"];
10810
+ readonly additionalProperties: false;
10811
+ readonly required: readonly ["basis", "requested", "limit"];
10812
+ readonly properties: {
10813
+ readonly basis: {
10814
+ readonly type: "string";
10815
+ readonly enum: readonly ["capacity", "supply", "candidates"];
10816
+ };
10817
+ readonly requested: {
10818
+ readonly type: "integer";
10819
+ readonly minimum: 0;
10820
+ };
10821
+ readonly limit: {
10822
+ readonly type: "integer";
10823
+ readonly minimum: 0;
10824
+ };
10825
+ };
10826
+ };
10827
+ readonly receipt: {
10828
+ readonly type: "object";
10829
+ readonly additionalProperties: false;
10830
+ readonly required: readonly ["idempotencyKey", "campaignId", "senderId", "targetDate"];
10831
+ readonly properties: {
10832
+ readonly idempotencyKey: {
10833
+ readonly type: "string";
10834
+ readonly minLength: 1;
10835
+ };
10836
+ readonly campaignId: {
10837
+ readonly type: "string";
10838
+ readonly minLength: 1;
10839
+ };
10840
+ readonly senderId: {
10841
+ readonly type: "string";
10842
+ readonly minLength: 1;
10843
+ };
10844
+ readonly targetDate: {
10845
+ readonly type: "string";
10846
+ readonly pattern: "^\\d{4}-\\d{2}-\\d{2}$";
10847
+ };
10848
+ };
10849
+ };
10850
+ readonly pollKey: {
10851
+ readonly type: readonly ["string", "null"];
10852
+ };
10853
+ };
10854
+ }>;
10855
+ annotations: {
10856
+ title: string;
10857
+ readOnlyHint: boolean;
10858
+ destructiveHint: boolean;
10859
+ idempotentHint: boolean;
10860
+ openWorldHint: boolean;
10861
+ };
9155
10862
  } | {
9156
10863
  name: string;
9157
10864
  description: string;
@@ -9856,4 +11563,4 @@ export declare const allTools: ({
9856
11563
  };
9857
11564
  })[];
9858
11565
  /** Closed public surface used by the paired MCP/installer asset inventory. */
9859
- export declare const refillProjectionToolNames: readonly ["refill_sends", "get_refill_target_plan", "get_campaign_refill_state", "start_campaign_message_preparation", "get_campaign_message_preparation_status", "revise_message_template_and_rerun"];
11566
+ export declare const refillProjectionToolNames: readonly ["refill_sends", "refill_v3_world_state", "refill_v3_fill_ready", "refill_v3_edit_selected_campaign", "refill_v3_advance", "refill_v3_continue", "get_refill_target_plan", "get_campaign_refill_state", "start_campaign_message_preparation", "get_campaign_message_preparation_status", "revise_message_template_and_rerun"];