@sonordev/contracts 2.27.0 → 2.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,5 @@
1
1
  export { RESONANCE_ATTRIBUTION_MODEL, RESONANCE_SOURCE_MARKER_PARAMETER, RESONANCE_SUBJECT_HEADER } from './resonance-constants';
2
+ export { parseNativeCasTimestamp, NATIVE_CAS_TIMESTAMP_JSON_SCHEMA, NativeCasTimestampValidationError } from './wire-native-cas';
2
3
  import { type Value, type Field } from './wire-schema';
3
4
  export declare const RESONANCE_SCHEMA_VERSION: 1;
4
5
  export declare const MONEY_EXPONENT: 6;
@@ -1458,6 +1459,7 @@ declare const providerReportingGrant: Field<{
1458
1459
  actionReportTime: "conversion";
1459
1460
  basis: "explicit_query";
1460
1461
  } & {})[] | undefined;
1462
+ reportingUntil?: string | undefined;
1461
1463
  }>;
1462
1464
  export type ResonanceMetaReportingQuery = Value<typeof metaReportingQuery>;
1463
1465
  export type ResonanceProviderReportingSelection = Value<typeof providerReportingSelection>;
@@ -1466,6 +1468,123 @@ export declare const parseResonanceProviderReportingSelection: (v: unknown) => R
1466
1468
  export declare const parseResonanceProviderReportingGrant: (v: unknown) => ResonanceProviderReportingGrant;
1467
1469
  export declare const RESONANCE_PROVIDER_REPORTING_SELECTION_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1468
1470
  export declare const RESONANCE_PROVIDER_REPORTING_GRANT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1471
+ export declare const RESONANCE_PROVIDER_REPORTING_MAX_TAIL_DAYS = 92;
1472
+ export declare const normalizeResonanceGoogleCriterionText: (value: string) => string;
1473
+ declare const operatingPolicySelection: Field<{
1474
+ schemaVersion: 1;
1475
+ agentContactId: string;
1476
+ googleSearchContent: ({
1477
+ channelId: string;
1478
+ adGroupLocalKey: string;
1479
+ adLocalKey: string;
1480
+ negativeRemovals: string[];
1481
+ exactAdditions: string[];
1482
+ rsa: ({
1483
+ creativeRef: {
1484
+ projectId: string;
1485
+ site: string;
1486
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
1487
+ id: string;
1488
+ revision: string;
1489
+ digest: string;
1490
+ } & {};
1491
+ headlines: string[];
1492
+ descriptions: string[];
1493
+ } & {}) | null;
1494
+ } & {})[];
1495
+ cooldownSeconds: number;
1496
+ } & {}>;
1497
+ declare const operatingPolicy: Field<{
1498
+ schemaVersion: 1;
1499
+ agentContactId: string;
1500
+ googleSearchContent: ({
1501
+ channelId: string;
1502
+ adGroupLocalKey: string;
1503
+ adLocalKey: string;
1504
+ negativeRemovals: string[];
1505
+ exactAdditions: string[];
1506
+ rsa: ({
1507
+ creativeRef: {
1508
+ projectId: string;
1509
+ site: string;
1510
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
1511
+ id: string;
1512
+ revision: string;
1513
+ digest: string;
1514
+ } & {};
1515
+ headlines: string[];
1516
+ descriptions: string[];
1517
+ } & {}) | null;
1518
+ } & {})[];
1519
+ cooldownSeconds: number;
1520
+ principalContactId: string;
1521
+ } & {}>;
1522
+ declare const operatingPolicyRef: Field<{
1523
+ ledgerActionId: string;
1524
+ receiptId: string;
1525
+ digest: string;
1526
+ } & {}>;
1527
+ declare const operatingPolicyBase: Field<{
1528
+ ledgerActionId: string;
1529
+ acceptanceReceiptId: string;
1530
+ expectedKillRevision: number;
1531
+ previousOperatingPolicyRef: ({
1532
+ ledgerActionId: string;
1533
+ receiptId: string;
1534
+ digest: string;
1535
+ } & {}) | null;
1536
+ } & {}>;
1537
+ declare const googleContentUpdateSelection: Field<{
1538
+ channelId: string;
1539
+ adGroupLocalKey: string;
1540
+ adLocalKey: string;
1541
+ } & {}>;
1542
+ declare const googleContentUpdate: Field<{
1543
+ channelId: string;
1544
+ adGroupLocalKey: string;
1545
+ adLocalKey: string;
1546
+ negativeRemovals: string[];
1547
+ exactAdditions: string[];
1548
+ rsa: ({
1549
+ creativeRef: {
1550
+ projectId: string;
1551
+ site: string;
1552
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
1553
+ id: string;
1554
+ revision: string;
1555
+ digest: string;
1556
+ } & {};
1557
+ headlines: string[];
1558
+ descriptions: string[];
1559
+ } & {}) | null;
1560
+ policyRef: {
1561
+ ledgerActionId: string;
1562
+ receiptId: string;
1563
+ digest: string;
1564
+ } & {};
1565
+ beforeDigest: string;
1566
+ } & {}>;
1567
+ export type ResonanceOperatingPolicy = Value<typeof operatingPolicy>;
1568
+ export type ResonanceOperatingPolicySelection = Value<typeof operatingPolicySelection>;
1569
+ export type ResonanceOperatingPolicyBase = Value<typeof operatingPolicyBase>;
1570
+ export type ResonanceOperatingPolicyRef = Value<typeof operatingPolicyRef>;
1571
+ export type ResonanceGoogleContentUpdateSelection = Value<typeof googleContentUpdateSelection>;
1572
+ export type ResonanceGoogleContentUpdate = Value<typeof googleContentUpdate>;
1573
+ export declare const parseResonanceOperatingPolicy: (v: unknown) => ResonanceOperatingPolicy;
1574
+ export declare const parseResonanceOperatingPolicySelection: (v: unknown) => ResonanceOperatingPolicySelection;
1575
+ export declare const parseResonanceOperatingPolicyBase: (v: unknown) => ResonanceOperatingPolicyBase;
1576
+ export declare const parseResonanceOperatingPolicyRef: (v: unknown) => ResonanceOperatingPolicyRef;
1577
+ export declare const parseResonanceGoogleContentUpdateSelection: (v: unknown) => ResonanceGoogleContentUpdateSelection;
1578
+ export declare const parseResonanceGoogleContentUpdate: (v: unknown) => ResonanceGoogleContentUpdate;
1579
+ export declare const resonanceOperatingPolicyDigestInput: (v: unknown) => string;
1580
+ /** SHA-256 this UTF-8 input for operating-policy action filing and recovery. */
1581
+ export declare function resonanceOperatingPolicyActionDigestInput(v: unknown): string;
1582
+ export declare const RESONANCE_OPERATING_POLICY_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1583
+ export declare const RESONANCE_OPERATING_POLICY_SELECTION_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1584
+ export declare const RESONANCE_OPERATING_POLICY_BASE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1585
+ export declare const RESONANCE_OPERATING_POLICY_REF_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1586
+ export declare const RESONANCE_GOOGLE_CONTENT_UPDATE_SELECTION_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1587
+ export declare const RESONANCE_GOOGLE_CONTENT_UPDATE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1469
1588
  declare const mandateScope: Field<{
1470
1589
  projectId: string;
1471
1590
  campaignId: string;
@@ -1608,7 +1727,33 @@ declare const mandateScope: Field<{
1608
1727
  actionReportTime: "conversion";
1609
1728
  basis: "explicit_query";
1610
1729
  } & {})[] | undefined;
1730
+ reportingUntil?: string | undefined;
1611
1731
  }) | undefined;
1732
+ operatingPolicy?: ({
1733
+ schemaVersion: 1;
1734
+ agentContactId: string;
1735
+ googleSearchContent: ({
1736
+ channelId: string;
1737
+ adGroupLocalKey: string;
1738
+ adLocalKey: string;
1739
+ negativeRemovals: string[];
1740
+ exactAdditions: string[];
1741
+ rsa: ({
1742
+ creativeRef: {
1743
+ projectId: string;
1744
+ site: string;
1745
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
1746
+ id: string;
1747
+ revision: string;
1748
+ digest: string;
1749
+ } & {};
1750
+ headlines: string[];
1751
+ descriptions: string[];
1752
+ } & {}) | null;
1753
+ } & {})[];
1754
+ cooldownSeconds: number;
1755
+ principalContactId: string;
1756
+ } & {}) | undefined;
1612
1757
  }>;
1613
1758
  export type ResonanceMandateScope = Value<typeof mandateScope>;
1614
1759
  export declare function parseResonanceMandateScope(v: unknown, preparedPlan?: unknown): ResonanceMandateScope;
@@ -3022,6 +3167,52 @@ declare const command: Field<({
3022
3167
  channelId: string;
3023
3168
  digest: string;
3024
3169
  } & {})[];
3170
+ } & {}) | ({
3171
+ schemaVersion: 1;
3172
+ campaignId: string;
3173
+ expectedRevision: number;
3174
+ idempotencyKey: string;
3175
+ operation: "update";
3176
+ preparedPlanId: string;
3177
+ reviewDigest: string;
3178
+ mandateRef: {
3179
+ ledgerActionId: string;
3180
+ campaignId: string;
3181
+ preparedPlanId: string;
3182
+ reviewDigest: string;
3183
+ mandateDigest: string;
3184
+ expectedKillRevision: number;
3185
+ } & {};
3186
+ channelIds: string[];
3187
+ expectedRemoteSnapshots: ({
3188
+ channelId: string;
3189
+ digest: string;
3190
+ } & {})[];
3191
+ googleContentUpdate: {
3192
+ channelId: string;
3193
+ adGroupLocalKey: string;
3194
+ adLocalKey: string;
3195
+ negativeRemovals: string[];
3196
+ exactAdditions: string[];
3197
+ rsa: ({
3198
+ creativeRef: {
3199
+ projectId: string;
3200
+ site: string;
3201
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
3202
+ id: string;
3203
+ revision: string;
3204
+ digest: string;
3205
+ } & {};
3206
+ headlines: string[];
3207
+ descriptions: string[];
3208
+ } & {}) | null;
3209
+ policyRef: {
3210
+ ledgerActionId: string;
3211
+ receiptId: string;
3212
+ digest: string;
3213
+ } & {};
3214
+ beforeDigest: string;
3215
+ } & {};
3025
3216
  } & {}) | ({
3026
3217
  schemaVersion: 1;
3027
3218
  campaignId: string;
@@ -3920,9 +4111,46 @@ declare const mandateApproval: Field<{
3920
4111
  actionReportTime: "conversion";
3921
4112
  basis: "explicit_query";
3922
4113
  } & {})[] | undefined;
4114
+ reportingUntil?: string | undefined;
3923
4115
  }) | undefined;
4116
+ operatingPolicy?: ({
4117
+ schemaVersion: 1;
4118
+ agentContactId: string;
4119
+ googleSearchContent: ({
4120
+ channelId: string;
4121
+ adGroupLocalKey: string;
4122
+ adLocalKey: string;
4123
+ negativeRemovals: string[];
4124
+ exactAdditions: string[];
4125
+ rsa: ({
4126
+ creativeRef: {
4127
+ projectId: string;
4128
+ site: string;
4129
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4130
+ id: string;
4131
+ revision: string;
4132
+ digest: string;
4133
+ } & {};
4134
+ headlines: string[];
4135
+ descriptions: string[];
4136
+ } & {}) | null;
4137
+ } & {})[];
4138
+ cooldownSeconds: number;
4139
+ principalContactId: string;
4140
+ } & {}) | undefined;
3924
4141
  };
3925
- } & {}>;
4142
+ } & {
4143
+ operatingPolicyBase?: ({
4144
+ ledgerActionId: string;
4145
+ acceptanceReceiptId: string;
4146
+ expectedKillRevision: number;
4147
+ previousOperatingPolicyRef: ({
4148
+ ledgerActionId: string;
4149
+ receiptId: string;
4150
+ digest: string;
4151
+ } & {}) | null;
4152
+ } & {}) | undefined;
4153
+ }>;
3926
4154
  export type ResonanceMandateApprovalPayload = Value<typeof mandateApproval>;
3927
4155
  export type ResonanceMandateTarget = Value<typeof mandateTarget>;
3928
4156
  export declare const RESONANCE_MANDATE_APPROVAL_JSON_SCHEMA: import("./wire-schema").JsonSchema;
@@ -4138,156 +4366,1200 @@ declare const positioningPreview: Field<{
4138
4366
  claimIndexes: number[];
4139
4367
  } & {}) | null;
4140
4368
  } & {};
4141
- applicationToken: string | null;
4369
+ applicationToken: string | null;
4370
+ } & {}>;
4371
+ declare const positioningApplyRequest: Field<{
4372
+ applicationToken: string;
4373
+ } & {}>;
4374
+ export type ResonancePositioningPreviewRequest = Value<typeof positioningRequest>;
4375
+ export type ResonancePositioningContext = Value<typeof positioningContext>;
4376
+ export type ResonancePositioningResult = Value<typeof positioningResult>;
4377
+ export type ResonancePositioningPreview = Value<typeof positioningPreview>;
4378
+ export type ResonancePositioningApplyRequest = Value<typeof positioningApplyRequest>;
4379
+ export declare const parseResonancePositioningPreviewRequest: (value: unknown) => ResonancePositioningPreviewRequest;
4380
+ export declare const parseResonancePositioningContext: (value: unknown) => ResonancePositioningContext;
4381
+ export declare function parseResonancePositioningResult(value: unknown, context?: ResonancePositioningContext): ResonancePositioningResult;
4382
+ export declare const parseResonancePositioningPreview: (value: unknown) => ResonancePositioningPreview;
4383
+ export declare const parseResonancePositioningApplyRequest: (value: unknown) => ResonancePositioningApplyRequest;
4384
+ export declare const resonancePositioningContextDigestInput: (value: unknown) => string;
4385
+ /**
4386
+ * Compare exact owner evidence across reads without letting the read time change its identity.
4387
+ * The application owner separately enforces original and current observation windows.
4388
+ */
4389
+ export declare function resonancePositioningEvidenceDigestInput(value: unknown): string;
4390
+ export declare const resonancePositioningResultDigestInput: (value: unknown) => string;
4391
+ export declare const RESONANCE_POSITIONING_PREVIEW_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4392
+ export declare const RESONANCE_POSITIONING_CONTEXT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4393
+ export declare const RESONANCE_POSITIONING_RESULT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4394
+ export declare const RESONANCE_POSITIONING_PREVIEW_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4395
+ export declare const RESONANCE_POSITIONING_APPLY_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4396
+ /** Exact source rows the consistency assessor is allowed to read. */
4397
+ export declare function projectResonancePositioningConsistencyEvidence(value: unknown): ResonancePositioningContext['evidence'];
4398
+ export declare const resonancePositioningConsistencyEvidenceDigestInput: (value: unknown) => string;
4399
+ declare const positioningConsistencyAssessment: Field<{
4400
+ state: "compatible" | "conflicting" | "unknown";
4401
+ evidenceDigest: string;
4402
+ coveredSourceIds: string[];
4403
+ } & {}>;
4404
+ export type ResonancePositioningConsistencyAssessment = Value<typeof positioningConsistencyAssessment>;
4405
+ /** The owner computes the expected SHA-256 over its exact permitted projection before calling this parser. */
4406
+ export declare function parseResonancePositioningConsistencyAssessment(value: unknown, expected: {
4407
+ context: unknown;
4408
+ evidenceDigest: string;
4409
+ }): ResonancePositioningConsistencyAssessment;
4410
+ export declare const RESONANCE_POSITIONING_CONSISTENCY_ASSESSMENT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4411
+ declare const prepareCommand: Field<{
4412
+ expectedRevision: number;
4413
+ idempotencyKey: string;
4414
+ } & {
4415
+ googleContentUpdate?: ({
4416
+ channelId: string;
4417
+ adGroupLocalKey: string;
4418
+ adLocalKey: string;
4419
+ } & {}) | undefined;
4420
+ }>;
4421
+ export type ResonanceCommandPrepareRequest = Value<typeof prepareCommand>;
4422
+ export declare const parseResonancePrepareCommand: (v: unknown) => ResonanceCommandPrepareRequest;
4423
+ /** Same strict revision/key request for API-owned launch/update/resume command preparation. */
4424
+ export declare const parseResonanceCommandPrepareRequest: typeof parseResonancePrepareCommand;
4425
+ declare const commandPreparation: Field<{
4426
+ command: ({
4427
+ schemaVersion: 1;
4428
+ campaignId: string;
4429
+ expectedRevision: number;
4430
+ idempotencyKey: string;
4431
+ channelIds: string[];
4432
+ operation: "launch" | "resume" | "update";
4433
+ preparedPlanId: string;
4434
+ reviewDigest: string;
4435
+ mandateRef: {
4436
+ ledgerActionId: string;
4437
+ campaignId: string;
4438
+ preparedPlanId: string;
4439
+ reviewDigest: string;
4440
+ mandateDigest: string;
4441
+ expectedKillRevision: number;
4442
+ } & {};
4443
+ expectedRemoteSnapshots: ({
4444
+ channelId: string;
4445
+ digest: string;
4446
+ } & {})[];
4447
+ } & {}) | ({
4448
+ schemaVersion: 1;
4449
+ campaignId: string;
4450
+ expectedRevision: number;
4451
+ idempotencyKey: string;
4452
+ operation: "update";
4453
+ preparedPlanId: string;
4454
+ reviewDigest: string;
4455
+ mandateRef: {
4456
+ ledgerActionId: string;
4457
+ campaignId: string;
4458
+ preparedPlanId: string;
4459
+ reviewDigest: string;
4460
+ mandateDigest: string;
4461
+ expectedKillRevision: number;
4462
+ } & {};
4463
+ channelIds: string[];
4464
+ expectedRemoteSnapshots: ({
4465
+ channelId: string;
4466
+ digest: string;
4467
+ } & {})[];
4468
+ googleContentUpdate: {
4469
+ channelId: string;
4470
+ adGroupLocalKey: string;
4471
+ adLocalKey: string;
4472
+ negativeRemovals: string[];
4473
+ exactAdditions: string[];
4474
+ rsa: ({
4475
+ creativeRef: {
4476
+ projectId: string;
4477
+ site: string;
4478
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4479
+ id: string;
4480
+ revision: string;
4481
+ digest: string;
4482
+ } & {};
4483
+ headlines: string[];
4484
+ descriptions: string[];
4485
+ } & {}) | null;
4486
+ policyRef: {
4487
+ ledgerActionId: string;
4488
+ receiptId: string;
4489
+ digest: string;
4490
+ } & {};
4491
+ beforeDigest: string;
4492
+ } & {};
4493
+ } & {}) | ({
4494
+ schemaVersion: 1;
4495
+ campaignId: string;
4496
+ expectedRevision: number;
4497
+ idempotencyKey: string;
4498
+ channelIds: string[];
4499
+ operation: "optimize";
4500
+ preparedPlanId: string;
4501
+ reviewDigest: string;
4502
+ mandateRef: {
4503
+ ledgerActionId: string;
4504
+ campaignId: string;
4505
+ preparedPlanId: string;
4506
+ reviewDigest: string;
4507
+ mandateDigest: string;
4508
+ expectedKillRevision: number;
4509
+ } & {};
4510
+ decisionRef: {
4511
+ id: string;
4512
+ revision: string;
4513
+ evidenceDigest: string;
4514
+ } & {};
4515
+ expectedRemoteSnapshots: ({
4516
+ channelId: string;
4517
+ digest: string;
4518
+ } & {})[];
4519
+ } & {}) | ({
4520
+ schemaVersion: 1;
4521
+ campaignId: string;
4522
+ expectedRevision: number;
4523
+ idempotencyKey: string;
4524
+ channelIds: string[];
4525
+ operation: "finish" | "pause" | "reconcile";
4526
+ } & {}) | ({
4527
+ schemaVersion: 1;
4528
+ campaignId: string;
4529
+ expectedRevision: number;
4530
+ idempotencyKey: string;
4531
+ operation: "deliver_conversion";
4532
+ channelIds: string[];
4533
+ preparedPlanId: string;
4534
+ reviewDigest: string;
4535
+ mandateRef: {
4536
+ ledgerActionId: string;
4537
+ campaignId: string;
4538
+ preparedPlanId: string;
4539
+ reviewDigest: string;
4540
+ mandateDigest: string;
4541
+ expectedKillRevision: number;
4542
+ } & {};
4543
+ conversionId: string;
4544
+ } & {}) | ({
4545
+ schemaVersion: 1;
4546
+ campaignId: string;
4547
+ expectedRevision: number;
4548
+ idempotencyKey: string;
4549
+ operation: "deliver_website_visit";
4550
+ channelIds: string[];
4551
+ preparedPlanId: string;
4552
+ reviewDigest: string;
4553
+ mandateRef: {
4554
+ ledgerActionId: string;
4555
+ campaignId: string;
4556
+ preparedPlanId: string;
4557
+ reviewDigest: string;
4558
+ mandateDigest: string;
4559
+ expectedKillRevision: number;
4560
+ } & {};
4561
+ occurrenceId: string;
4562
+ } & {}) | null;
4563
+ covered: boolean;
4564
+ approvalRequirement: "current_owner" | "existing_mandate" | null;
4565
+ reasonCodes: string[];
4566
+ } & {}>;
4567
+ export type ResonanceCommandPrepareResponse = Value<typeof commandPreparation>;
4568
+ /** Preparation describes an immutable command; it does not approve, claim or execute it. */
4569
+ export declare function parseResonanceCommandPrepareResponse(v: unknown): ResonanceCommandPrepareResponse;
4570
+ export declare const RESONANCE_COMMAND_PREPARE_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4571
+ declare const preparationLookupRequest: Field<{
4572
+ expectedRevision: number;
4573
+ idempotencyKey: string;
4574
+ } & {}>;
4575
+ declare const preparationLookupResponse: Field<{
4576
+ schemaVersion: 1;
4577
+ projectId: string;
4578
+ campaignId: string;
4579
+ request: {
4580
+ expectedRevision: number;
4581
+ idempotencyKey: string;
4582
+ } & {};
4583
+ state: "cancelled" | "not_found" | "recovery_required" | "rejected" | "succeeded" | "working";
4584
+ currentRevision: number;
4585
+ operation: ({
4586
+ operationId: string;
4587
+ preparedPlanId: string;
4588
+ executionState: "cancelled" | "claimed" | "dispatched" | "rejected" | "reserved" | "succeeded" | "uncertain";
4589
+ createdAt: string;
4590
+ hasAdDispatch: boolean;
4591
+ artifactCount: number;
4592
+ completedArtifactCount: number;
4593
+ originalActorMatches: boolean;
4594
+ originalPrincipalMatches: boolean;
4595
+ } & {}) | null;
4596
+ preparedPlan: ({
4597
+ schemaVersion: 1;
4598
+ id: string;
4599
+ campaignId: string;
4600
+ projectId: string;
4601
+ expectedRevision: number;
4602
+ definitionDigest: string;
4603
+ reviewDigest: string;
4604
+ definition: {
4605
+ schemaVersion: 1;
4606
+ projectId: string;
4607
+ name: string;
4608
+ slug: string;
4609
+ sites: string[];
4610
+ objective: {
4611
+ source: {
4612
+ projectId: string;
4613
+ site: string;
4614
+ kind: "accepted_form" | "approved_application" | "completed_booking" | "net_paid_order" | "qualified_lead";
4615
+ id: string;
4616
+ revision: string;
4617
+ } & {};
4618
+ measurementRevision: string;
4619
+ countingUnit: "net_order" | "unique_qualified_contact" | "unique_source";
4620
+ attributionWindowDays: number;
4621
+ maturityDelaySeconds: number;
4622
+ qualificationRuleRef: ({
4623
+ projectId: string;
4624
+ site: string;
4625
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4626
+ id: string;
4627
+ revision: string;
4628
+ digest: string;
4629
+ } & {}) | null;
4630
+ } & {
4631
+ qualificationRule?: ({
4632
+ schemaVersion: 1;
4633
+ semantics: "current_at_observation";
4634
+ positiveStageKeys: string[];
4635
+ finalNegativeStageKeys: string[];
4636
+ pendingStageKeys: string[];
4637
+ existingContactPolicy: "include_source_cohort";
4638
+ attributionModel: "first_party_last_touch_marker_v1";
4639
+ } & {}) | undefined;
4640
+ eligibleBookingTypeIds?: string[] | undefined;
4641
+ };
4642
+ brandRef: {
4643
+ projectId: string;
4644
+ site: string;
4645
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4646
+ id: string;
4647
+ revision: string;
4648
+ digest: string;
4649
+ } & {};
4650
+ creativeRefs: ({
4651
+ id: string;
4652
+ assetRef: {
4653
+ projectId: string;
4654
+ site: string;
4655
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4656
+ id: string;
4657
+ revision: string;
4658
+ digest: string;
4659
+ } & {};
4660
+ preparedArtifactRef: ({
4661
+ projectId: string;
4662
+ site: string;
4663
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4664
+ id: string;
4665
+ revision: string;
4666
+ digest: string;
4667
+ } & {}) | null;
4668
+ headline: string;
4669
+ body: string;
4670
+ callToAction: string;
4671
+ cropDigest: string;
4672
+ } & {})[];
4673
+ destinations: (({
4674
+ projectId: string;
4675
+ site: string;
4676
+ kind: "funnel";
4677
+ id: string;
4678
+ path: string;
4679
+ funnelRef: {
4680
+ projectId: string;
4681
+ site: string;
4682
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4683
+ id: string;
4684
+ revision: string;
4685
+ digest: string;
4686
+ } & {};
4687
+ formSlug: string;
4688
+ installationRevision: string;
4689
+ } & {}) | ({
4690
+ projectId: string;
4691
+ site: string;
4692
+ kind: "existing_page";
4693
+ id: string;
4694
+ path: string;
4695
+ pageRevision: string;
4696
+ evidenceDigest: string;
4697
+ } & {}))[];
4698
+ channels: (({
4699
+ projectId: string;
4700
+ site: string;
4701
+ id: string;
4702
+ destinationId: string;
4703
+ creativeIds: string[];
4704
+ localCampaignKey: string;
4705
+ kind: "google_search";
4706
+ provider: "google_ads";
4707
+ accountBindingId: string;
4708
+ capabilityRevision: string;
4709
+ allocation: {
4710
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4711
+ amountMicros: string;
4712
+ } & {};
4713
+ budgetMode: "average_daily" | "campaign_total";
4714
+ keywords: ({
4715
+ text: string;
4716
+ match: "broad" | "exact" | "phrase";
4717
+ } & {})[];
4718
+ negativeKeywords: string[];
4719
+ bidding: ({
4720
+ strategy: "maximize_conversions";
4721
+ } & {}) | ({
4722
+ strategy: "target_cpa";
4723
+ target: {
4724
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4725
+ amountMicros: string;
4726
+ } & {};
4727
+ } & {});
4728
+ locationIds: string[];
4729
+ network: {
4730
+ googleSearch: true;
4731
+ searchPartners: boolean;
4732
+ displayExpansion: false;
4733
+ } & {};
4734
+ geoPresence: "presence" | "presence_or_interest";
4735
+ excludedLocationIds: string[];
4736
+ adGroups: ({
4737
+ localKey: string;
4738
+ ads: ({
4739
+ localKey: string;
4740
+ creativeId: string;
4741
+ headlines: string[];
4742
+ descriptions: string[];
4743
+ } & {})[];
4744
+ } & {})[];
4745
+ assetAutomation: "disabled";
4746
+ } & {}) | ({
4747
+ projectId: string;
4748
+ site: string;
4749
+ id: string;
4750
+ destinationId: string;
4751
+ creativeIds: string[];
4752
+ localCampaignKey: string;
4753
+ kind: "meta_retargeting";
4754
+ provider: "meta_ads";
4755
+ accountBindingId: string;
4756
+ capabilityRevision: string;
4757
+ allocation: {
4758
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4759
+ amountMicros: string;
4760
+ } & {};
4761
+ budgetMode: "daily" | "lifetime";
4762
+ audienceRuleRefs: ({
4763
+ projectId: string;
4764
+ site: string;
4765
+ id: string;
4766
+ revision: string;
4767
+ policyRevision: string;
4768
+ retentionDays: number;
4769
+ exclusionRuleIds: string[];
4770
+ consentPurpose: "ad_personalization";
4771
+ } & {
4772
+ minDaysSinceVisit?: number | undefined;
4773
+ })[];
4774
+ objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
4775
+ pageRef: {
4776
+ connectionId: string;
4777
+ externalId: string;
4778
+ revision: string;
4779
+ } & {};
4780
+ instagramRef: ({
4781
+ connectionId: string;
4782
+ externalId: string;
4783
+ revision: string;
4784
+ } & {}) | null;
4785
+ datasetRef: {
4786
+ id: string;
4787
+ revision: string;
4788
+ } & {};
4789
+ conversionGoalRef: {
4790
+ projectId: string;
4791
+ site: string;
4792
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4793
+ id: string;
4794
+ revision: string;
4795
+ digest: string;
4796
+ } & {};
4797
+ optimization: "landing_page_views" | "lead" | "purchase";
4798
+ billing: "impressions";
4799
+ bid: ({
4800
+ strategy: "lowest_cost";
4801
+ } & {}) | ({
4802
+ strategy: "cost_cap";
4803
+ cap: {
4804
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4805
+ amountMicros: string;
4806
+ } & {};
4807
+ } & {});
4808
+ localAdSetKey: string;
4809
+ localAdKey: string;
4810
+ budgetOwner: "adset" | "campaign";
4811
+ specialCategories: ("employment" | "financial_products_services" | "housing")[];
4812
+ countryCodes: string[];
4813
+ placement: "automatic";
4814
+ } & {
4815
+ ageConstraint?: ({
4816
+ mode: "bounded";
4817
+ min: number;
4818
+ max: number;
4819
+ } & {}) | ({
4820
+ mode: "omitted";
4821
+ } & {}) | ({
4822
+ mode: "provider_managed";
4823
+ } & {}) | undefined;
4824
+ channelGroup?: ({
4825
+ key: string;
4826
+ label: string;
4827
+ } & {}) | undefined;
4828
+ property?: ({
4829
+ key: string;
4830
+ label: string;
4831
+ } & {}) | undefined;
4832
+ tier?: ({
4833
+ label: string;
4834
+ } & {}) | undefined;
4835
+ primaryText?: string | undefined;
4836
+ convertersAcknowledged?: true | undefined;
4837
+ }) | ({
4838
+ projectId: string;
4839
+ site: string;
4840
+ id: string;
4841
+ destinationId: string;
4842
+ creativeIds: string[];
4843
+ kind: "broadcast" | "funnel" | "outreach";
4844
+ resourceRef: {
4845
+ projectId: string;
4846
+ site: string;
4847
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4848
+ id: string;
4849
+ revision: string;
4850
+ digest: string;
4851
+ } & {};
4852
+ } & {}))[];
4853
+ experimentRefs: ({
4854
+ projectId: string;
4855
+ site: string;
4856
+ id: string;
4857
+ revision: number;
4858
+ digest: string;
4859
+ } & {})[];
4860
+ budget: {
4861
+ total: {
4862
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4863
+ amountMicros: string;
4864
+ } & {};
4865
+ dailyAllocationCeiling: ({
4866
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4867
+ amountMicros: string;
4868
+ } & {}) | null;
4869
+ reserveMargin: {
4870
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4871
+ amountMicros: string;
4872
+ } & {};
4873
+ startAt: string;
4874
+ endAt: string;
4875
+ timeZone: string;
4876
+ maxChange: {
4877
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4878
+ amountMicros: string;
4879
+ } & {};
4880
+ maxChangeBasisPoints: number;
4881
+ cooldownSeconds: number;
4882
+ } & {};
4883
+ optimization: {
4884
+ enabled: boolean;
4885
+ policy: ({
4886
+ schemaVersion: 1;
4887
+ sourceRef: ({
4888
+ projectId: string;
4889
+ site: string;
4890
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4891
+ id: string;
4892
+ revision: string;
4893
+ digest: string;
4894
+ } & {}) | null;
4895
+ decisionKind: "observational_allocation";
4896
+ eligibleGoal: "qualified_lead";
4897
+ algorithm: "mature_cpql_conserved_transfer_v1";
4898
+ minimumMatureExposures: number;
4899
+ minimumMatureOutcomes: number;
4900
+ minimumCoverageBasisPoints: number;
4901
+ maxEvidenceAgeSeconds: number;
4902
+ maturityDelaySeconds: number;
4903
+ cooldownSeconds: number;
4904
+ donorTransferBasisPoints: number;
4905
+ maxUncertaintyBasisPoints: number;
4906
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
4907
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
4908
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
4909
+ } & {}) | ({
4910
+ schemaVersion: 1;
4911
+ sourceRef: ({
4912
+ projectId: string;
4913
+ site: string;
4914
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4915
+ id: string;
4916
+ revision: string;
4917
+ digest: string;
4918
+ } & {}) | null;
4919
+ decisionKind: "observational_allocation";
4920
+ eligibleGoal: "qualified_lead";
4921
+ minimumMatureExposures: number;
4922
+ minimumMatureOutcomes: number;
4923
+ minimumCoverageBasisPoints: number;
4924
+ maxEvidenceAgeSeconds: number;
4925
+ maturityDelaySeconds: number;
4926
+ cooldownSeconds: number;
4927
+ donorTransferBasisPoints: number;
4928
+ maxUncertaintyBasisPoints: number;
4929
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
4930
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
4931
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
4932
+ algorithm: "reported_cpql_conserved_transfer_v1";
4933
+ costBasis: "provider_reported_snapshot_v1";
4934
+ costRevisionRisk: "accepted_provisional";
4935
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
4936
+ } & {}) | ({
4937
+ schemaVersion: 1;
4938
+ algorithm: "finite_meta_candidates_v1";
4939
+ decisionKind: "preapproved_candidate_operation";
4940
+ eligibleGoal: "qualified_lead";
4941
+ sourceRef: ({
4942
+ projectId: string;
4943
+ site: string;
4944
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4945
+ id: string;
4946
+ revision: string;
4947
+ digest: string;
4948
+ } & {}) | null;
4949
+ candidateChannelIds: string[];
4950
+ selection: {
4951
+ kind: "fixed_reviewed_order";
4952
+ candidateOrder: string[];
4953
+ eligibilitySchedule: ({
4954
+ channelId: string;
4955
+ notBefore: string;
4956
+ notAfter: string;
4957
+ } & {})[];
4958
+ } & {};
4959
+ allowedActions: ("activate_held" | "materialize_and_activate" | "pause_candidate")[];
4960
+ maxConcurrentCandidates: number;
4961
+ maxActivationsPerCandidate: 1;
4962
+ totalExplorationCap: {
4963
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4964
+ amountMicros: string;
4965
+ } & {};
4966
+ measurementGuard: {
4967
+ sourceRef: {
4968
+ projectId: string;
4969
+ site: string;
4970
+ kind: "accepted_form" | "approved_application" | "completed_booking" | "net_paid_order" | "qualified_lead";
4971
+ id: string;
4972
+ revision: string;
4973
+ } & {};
4974
+ qualificationRuleRef: {
4975
+ projectId: string;
4976
+ site: string;
4977
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4978
+ id: string;
4979
+ revision: string;
4980
+ digest: string;
4981
+ } & {};
4982
+ attributionModel: "first_party_last_touch_marker_v1";
4983
+ maturityDelaySeconds: number;
4984
+ minimumCoverageBasisPoints: number;
4985
+ maxEvidenceAgeSeconds: number;
4986
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
4987
+ } & {};
4988
+ performanceDecisionPolicy: null;
4989
+ stopRules: ("candidate_identity_or_settings_drift" | "exploration_cap" | "flight_end" | "kill" | "policy_or_mandate_expiry" | "required_tracking_unavailable_or_stale" | "source_or_consent_invalid" | "unknown_effect")[];
4990
+ expiresAt: string;
4991
+ } & {});
4992
+ stopLoss: {
4993
+ confirmedSpend: {
4994
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4995
+ amountMicros: string;
4996
+ } & {};
4997
+ unreconciledExposure: {
4998
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
4999
+ amountMicros: string;
5000
+ } & {};
5001
+ } & {};
5002
+ } & {};
5003
+ } & {};
5004
+ resolvedEvidencePolicy: ({
5005
+ schemaVersion: 1;
5006
+ sourceRef: ({
5007
+ projectId: string;
5008
+ site: string;
5009
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5010
+ id: string;
5011
+ revision: string;
5012
+ digest: string;
5013
+ } & {}) | null;
5014
+ decisionKind: "observational_allocation";
5015
+ eligibleGoal: "qualified_lead";
5016
+ algorithm: "mature_cpql_conserved_transfer_v1";
5017
+ minimumMatureExposures: number;
5018
+ minimumMatureOutcomes: number;
5019
+ minimumCoverageBasisPoints: number;
5020
+ maxEvidenceAgeSeconds: number;
5021
+ maturityDelaySeconds: number;
5022
+ cooldownSeconds: number;
5023
+ donorTransferBasisPoints: number;
5024
+ maxUncertaintyBasisPoints: number;
5025
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
5026
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
5027
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
5028
+ } & {}) | ({
5029
+ schemaVersion: 1;
5030
+ sourceRef: ({
5031
+ projectId: string;
5032
+ site: string;
5033
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5034
+ id: string;
5035
+ revision: string;
5036
+ digest: string;
5037
+ } & {}) | null;
5038
+ decisionKind: "observational_allocation";
5039
+ eligibleGoal: "qualified_lead";
5040
+ minimumMatureExposures: number;
5041
+ minimumMatureOutcomes: number;
5042
+ minimumCoverageBasisPoints: number;
5043
+ maxEvidenceAgeSeconds: number;
5044
+ maturityDelaySeconds: number;
5045
+ cooldownSeconds: number;
5046
+ donorTransferBasisPoints: number;
5047
+ maxUncertaintyBasisPoints: number;
5048
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
5049
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
5050
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
5051
+ algorithm: "reported_cpql_conserved_transfer_v1";
5052
+ costBasis: "provider_reported_snapshot_v1";
5053
+ costRevisionRisk: "accepted_provisional";
5054
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
5055
+ } & {}) | ({
5056
+ schemaVersion: 1;
5057
+ algorithm: "finite_meta_candidates_v1";
5058
+ decisionKind: "preapproved_candidate_operation";
5059
+ eligibleGoal: "qualified_lead";
5060
+ sourceRef: ({
5061
+ projectId: string;
5062
+ site: string;
5063
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5064
+ id: string;
5065
+ revision: string;
5066
+ digest: string;
5067
+ } & {}) | null;
5068
+ candidateChannelIds: string[];
5069
+ selection: {
5070
+ kind: "fixed_reviewed_order";
5071
+ candidateOrder: string[];
5072
+ eligibilitySchedule: ({
5073
+ channelId: string;
5074
+ notBefore: string;
5075
+ notAfter: string;
5076
+ } & {})[];
5077
+ } & {};
5078
+ allowedActions: ("activate_held" | "materialize_and_activate" | "pause_candidate")[];
5079
+ maxConcurrentCandidates: number;
5080
+ maxActivationsPerCandidate: 1;
5081
+ totalExplorationCap: {
5082
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
5083
+ amountMicros: string;
5084
+ } & {};
5085
+ measurementGuard: {
5086
+ sourceRef: {
5087
+ projectId: string;
5088
+ site: string;
5089
+ kind: "accepted_form" | "approved_application" | "completed_booking" | "net_paid_order" | "qualified_lead";
5090
+ id: string;
5091
+ revision: string;
5092
+ } & {};
5093
+ qualificationRuleRef: {
5094
+ projectId: string;
5095
+ site: string;
5096
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5097
+ id: string;
5098
+ revision: string;
5099
+ digest: string;
5100
+ } & {};
5101
+ attributionModel: "first_party_last_touch_marker_v1";
5102
+ maturityDelaySeconds: number;
5103
+ minimumCoverageBasisPoints: number;
5104
+ maxEvidenceAgeSeconds: number;
5105
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
5106
+ } & {};
5107
+ performanceDecisionPolicy: null;
5108
+ stopRules: ("candidate_identity_or_settings_drift" | "exploration_cap" | "flight_end" | "kill" | "policy_or_mandate_expiry" | "required_tracking_unavailable_or_stale" | "source_or_consent_invalid" | "unknown_effect")[];
5109
+ expiresAt: string;
5110
+ } & {});
5111
+ resolvedQualificationRule: ({
5112
+ schemaVersion: 1;
5113
+ semantics: "current_at_observation";
5114
+ positiveStageKeys: string[];
5115
+ finalNegativeStageKeys: string[];
5116
+ pendingStageKeys: string[];
5117
+ existingContactPolicy: "include_source_cohort";
5118
+ ref: {
5119
+ projectId: string;
5120
+ site: string;
5121
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5122
+ id: string;
5123
+ revision: string;
5124
+ digest: string;
5125
+ } & {};
5126
+ crmVariant: string;
5127
+ ladderSnapshot: ({
5128
+ id: string | null;
5129
+ stage_key: string;
5130
+ semantic_key: string | null;
5131
+ is_won: boolean;
5132
+ is_lost: boolean;
5133
+ } & {})[];
5134
+ eligibleFormIds: string[];
5135
+ attribution: {
5136
+ model: "first_party_last_touch_marker_v1";
5137
+ resolverRevision: 1;
5138
+ } & {};
5139
+ cohort: {
5140
+ startAt: string;
5141
+ endAt: string;
5142
+ maturityDelaySeconds: number;
5143
+ } & {};
5144
+ } & {
5145
+ eligibleBookingTypeIds?: string[] | undefined;
5146
+ }) | null;
5147
+ accounts: ({
5148
+ id: string;
5149
+ projectId: string;
5150
+ connectionId: string;
5151
+ provider: "google_ads" | "meta_ads";
5152
+ externalAccountId: string;
5153
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
5154
+ timeZone: string;
5155
+ connectionRevision: string;
5156
+ capabilityRevision: string;
5157
+ observedAt: string;
5158
+ expiresAt: string;
5159
+ advertiserState: "blocked" | "eligible" | "unknown";
5160
+ operations: ({
5161
+ operation: "audience" | "conversion" | "discover" | "experiment" | "finish" | "launch" | "measure" | "pause" | "prepare" | "reconcile" | "resume" | "update";
5162
+ state: "blocked" | "supported" | "unknown";
5163
+ reasonCodes: string[];
5164
+ prerequisites: string[];
5165
+ } & {})[];
5166
+ profiles: ({
5167
+ profile: "google_search" | "meta_retargeting";
5168
+ state: "blocked" | "supported" | "unknown";
5169
+ reasonCodes: string[];
5170
+ budgetModes: ("average_daily" | "campaign_total" | "daily" | "lifetime")[];
5171
+ providerApiVersion: string;
5172
+ } & {})[];
5173
+ } & {})[];
5174
+ channelPreviews: ({
5175
+ channelId: string;
5176
+ site: string;
5177
+ accountBindingId: string | null;
5178
+ accountName: string;
5179
+ accountTimeZone: string;
5180
+ destinationUrl: string;
5181
+ orderedCreatives: ({
5182
+ id: string;
5183
+ assetRef: {
5184
+ projectId: string;
5185
+ site: string;
5186
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5187
+ id: string;
5188
+ revision: string;
5189
+ digest: string;
5190
+ } & {};
5191
+ preparedArtifactRef: ({
5192
+ projectId: string;
5193
+ site: string;
5194
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5195
+ id: string;
5196
+ revision: string;
5197
+ digest: string;
5198
+ } & {}) | null;
5199
+ headline: string;
5200
+ body: string;
5201
+ callToAction: string;
5202
+ cropDigest: string;
5203
+ } & {})[];
5204
+ audienceRuleRefs: ({
5205
+ projectId: string;
5206
+ site: string;
5207
+ id: string;
5208
+ revision: string;
5209
+ policyRevision: string;
5210
+ retentionDays: number;
5211
+ exclusionRuleIds: string[];
5212
+ consentPurpose: "ad_personalization";
5213
+ } & {
5214
+ minDaysSinceVisit?: number | undefined;
5215
+ })[];
5216
+ allocation: ({
5217
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
5218
+ amountMicros: string;
5219
+ } & {}) | null;
5220
+ capabilityRevision: string;
5221
+ snapshotDigest: string;
5222
+ manifestRef: {
5223
+ id: string;
5224
+ digest: string;
5225
+ providerVersion: string;
5226
+ revision: string;
5227
+ } & {};
5228
+ conversionRevision: string;
5229
+ policyRevision: string;
5230
+ googleConfiguration: ({
5231
+ projectId: string;
5232
+ campaignId: string;
5233
+ channelId: string;
5234
+ site: string;
5235
+ accountBindingId: string;
5236
+ configurationRevision: number;
5237
+ configurationDigest: string;
5238
+ signalSemantics: "qualified_at_observation_v1";
5239
+ source: {
5240
+ projectId: string;
5241
+ site: string;
5242
+ kind: "accepted_form" | "approved_application" | "completed_booking" | "net_paid_order" | "qualified_lead";
5243
+ id: string;
5244
+ revision: string;
5245
+ } & {};
5246
+ measurementRevision: string;
5247
+ countingUnit: "net_order" | "unique_qualified_contact" | "unique_source";
5248
+ attributionWindowDays: number;
5249
+ declaration: {
5250
+ statement: "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING";
5251
+ category: "employment" | "financial_products_services" | "general" | "housing";
5252
+ creativeDigest: string;
5253
+ locationIds: string[];
5254
+ excludedLocationIds: string[];
5255
+ declaredByActorId: string;
5256
+ declaredAt: string;
5257
+ declaredForCampaignRevision: number;
5258
+ } & {};
5259
+ mode: "existing";
5260
+ nativeGoal: {
5261
+ externalId: string;
5262
+ actionIds: string[];
5263
+ name: string;
5264
+ revision: string;
5265
+ } & {};
5266
+ } & {}) | ({
5267
+ projectId: string;
5268
+ campaignId: string;
5269
+ channelId: string;
5270
+ site: string;
5271
+ accountBindingId: string;
5272
+ configurationRevision: number;
5273
+ configurationDigest: string;
5274
+ signalSemantics: "qualified_at_observation_v1";
5275
+ source: {
5276
+ projectId: string;
5277
+ site: string;
5278
+ kind: "accepted_form" | "approved_application" | "completed_booking" | "net_paid_order" | "qualified_lead";
5279
+ id: string;
5280
+ revision: string;
5281
+ } & {};
5282
+ measurementRevision: string;
5283
+ countingUnit: "net_order" | "unique_qualified_contact" | "unique_source";
5284
+ attributionWindowDays: number;
5285
+ declaration: {
5286
+ statement: "DOES_NOT_CONTAIN_EU_POLITICAL_ADVERTISING";
5287
+ category: "employment" | "financial_products_services" | "general" | "housing";
5288
+ creativeDigest: string;
5289
+ locationIds: string[];
5290
+ excludedLocationIds: string[];
5291
+ declaredByActorId: string;
5292
+ declaredAt: string;
5293
+ declaredForCampaignRevision: number;
5294
+ } & {};
5295
+ mode: "admitted_setup";
5296
+ setupSpec: {
5297
+ schemaVersion: 1;
5298
+ kind: "google_upload_clicks_custom_goal_v1";
5299
+ signalSemantics: "qualified_at_observation_v1";
5300
+ goalLocalKey: "setup:custom-goal";
5301
+ requestedGoalName: string;
5302
+ action: {
5303
+ localKey: "setup:conversion-action";
5304
+ requestedActionName: string;
5305
+ type: "UPLOAD_CLICKS";
5306
+ category: "QUALIFIED_LEAD";
5307
+ countingType: "ONE_PER_CLICK";
5308
+ clickThroughLookbackWindowDays: number;
5309
+ primaryForGoal: false;
5310
+ } & {};
5311
+ goalActionKey: "setup:conversion-action";
5312
+ goalStrategy: "exclusive_custom_goal_v1";
5313
+ } & {};
5314
+ setupDigest: string;
5315
+ } & {}) | null;
5316
+ } & {
5317
+ attributionMarker?: ({
5318
+ parameter: "sonor_source";
5319
+ value: string;
5320
+ } & {}) | undefined;
5321
+ })[];
5322
+ preparedAt: string;
5323
+ expiresAt: string;
5324
+ blockingReasons: string[];
5325
+ } & {}) | null;
5326
+ readiness: {
5327
+ reasonCodes: ("OWNER_SOURCE_CHANGED" | "OWNER_STEP_FAILED" | "PREPARATION_ACCEPTED_REVIEW_AVAILABLE" | "PREPARATION_CANCELLED" | "PREPARATION_FINANCIAL_EXPOSURE" | "PREPARATION_HAS_AD_DISPATCH" | "PREPARATION_INVENTORY_UNAVAILABLE" | "PREPARATION_NOT_FOUND" | "PREPARATION_OWNER_MISMATCH" | "PREPARATION_RECOVERY_REQUIRED" | "PREPARATION_REJECTED" | "PREPARATION_REVISION_CHANGED" | "PREPARATION_TERMINAL_PROVIDER_REJECTION" | "PREPARATION_WORKING" | "SIGNER_CHANGED")[];
5328
+ canResume: boolean;
5329
+ } & {};
4142
5330
  } & {}>;
4143
- declare const positioningApplyRequest: Field<{
4144
- applicationToken: string;
5331
+ export type ResonancePreparationLookupRequest = Value<typeof preparationLookupRequest>;
5332
+ export type ResonancePreparationLookupResponse = Value<typeof preparationLookupResponse>;
5333
+ export declare const parseResonancePreparationLookupRequest: (v: unknown) => ResonancePreparationLookupRequest;
5334
+ /** Original outcome only. A saved plan's original expiry does not attest current freshness. */
5335
+ export declare function parseResonancePreparationLookupResponse(v: unknown): ResonancePreparationLookupResponse;
5336
+ export declare const RESONANCE_PREPARATION_LOOKUP_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5337
+ export declare const RESONANCE_PREPARATION_LOOKUP_RESPONSE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5338
+ declare const preparationRetireRequest: Field<{
5339
+ expectedRevision: number;
5340
+ reason: "retain_unpublished_artifacts";
4145
5341
  } & {}>;
4146
- export type ResonancePositioningPreviewRequest = Value<typeof positioningRequest>;
4147
- export type ResonancePositioningContext = Value<typeof positioningContext>;
4148
- export type ResonancePositioningResult = Value<typeof positioningResult>;
4149
- export type ResonancePositioningPreview = Value<typeof positioningPreview>;
4150
- export type ResonancePositioningApplyRequest = Value<typeof positioningApplyRequest>;
4151
- export declare const parseResonancePositioningPreviewRequest: (value: unknown) => ResonancePositioningPreviewRequest;
4152
- export declare const parseResonancePositioningContext: (value: unknown) => ResonancePositioningContext;
4153
- export declare function parseResonancePositioningResult(value: unknown, context?: ResonancePositioningContext): ResonancePositioningResult;
4154
- export declare const parseResonancePositioningPreview: (value: unknown) => ResonancePositioningPreview;
4155
- export declare const parseResonancePositioningApplyRequest: (value: unknown) => ResonancePositioningApplyRequest;
4156
- export declare const resonancePositioningContextDigestInput: (value: unknown) => string;
4157
- /**
4158
- * Compare exact owner evidence across reads without letting the read time change its identity.
4159
- * The application owner separately enforces original and current observation windows.
4160
- */
4161
- export declare function resonancePositioningEvidenceDigestInput(value: unknown): string;
4162
- export declare const resonancePositioningResultDigestInput: (value: unknown) => string;
4163
- export declare const RESONANCE_POSITIONING_PREVIEW_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4164
- export declare const RESONANCE_POSITIONING_CONTEXT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4165
- export declare const RESONANCE_POSITIONING_RESULT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4166
- export declare const RESONANCE_POSITIONING_PREVIEW_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4167
- export declare const RESONANCE_POSITIONING_APPLY_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4168
- /** Exact source rows the consistency assessor is allowed to read. */
4169
- export declare function projectResonancePositioningConsistencyEvidence(value: unknown): ResonancePositioningContext['evidence'];
4170
- export declare const resonancePositioningConsistencyEvidenceDigestInput: (value: unknown) => string;
4171
- declare const positioningConsistencyAssessment: Field<{
4172
- state: "compatible" | "conflicting" | "unknown";
4173
- evidenceDigest: string;
4174
- coveredSourceIds: string[];
5342
+ declare const preparationRetireResponse: Field<{
5343
+ schemaVersion: 1;
5344
+ projectId: string;
5345
+ campaignId: string;
5346
+ preparationOperationId: string;
5347
+ state: "cancelled";
5348
+ replayed: boolean;
5349
+ retainedArtifactCount: number;
5350
+ unrecordedSlotCount: number;
5351
+ retiredAt: string;
5352
+ reasonCodes: string[];
4175
5353
  } & {}>;
4176
- export type ResonancePositioningConsistencyAssessment = Value<typeof positioningConsistencyAssessment>;
4177
- /** The owner computes the expected SHA-256 over its exact permitted projection before calling this parser. */
4178
- export declare function parseResonancePositioningConsistencyAssessment(value: unknown, expected: {
4179
- context: unknown;
4180
- evidenceDigest: string;
4181
- }): ResonancePositioningConsistencyAssessment;
4182
- export declare const RESONANCE_POSITIONING_CONSISTENCY_ASSESSMENT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4183
- declare const prepareCommand: Field<{
5354
+ export type ResonancePreparationRetireRequest = Value<typeof preparationRetireRequest>;
5355
+ export type ResonancePreparationRetireResponse = Value<typeof preparationRetireResponse>;
5356
+ /** Explicit retirement shape. Native compare-and-set verifies unpublished artifacts and absence of financial/provider effects. */
5357
+ export declare const parseResonancePreparationRetireRequest: (v: unknown) => ResonancePreparationRetireRequest;
5358
+ export declare const parseResonancePreparationRetireResponse: (v: unknown) => ResonancePreparationRetireResponse;
5359
+ export declare const RESONANCE_PREPARATION_RETIRE_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5360
+ export declare const RESONANCE_PREPARATION_RETIRE_RESPONSE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5361
+ export declare const RESONANCE_GOOGLE_DIAGNOSTICS_SECTIONS: readonly ['campaign', 'totals', 'daily', 'keywords', 'searchTerms', 'goals', 'uploadDiagnostics'];
5362
+ export type ResonanceGoogleDiagnosticsSection = typeof RESONANCE_GOOGLE_DIAGNOSTICS_SECTIONS[number];
5363
+ declare const googleDiagnosticsRequest: Field<{
5364
+ channelId: string;
5365
+ startDate: string;
5366
+ endDate: string;
5367
+ sections: ("campaign" | "daily" | "goals" | "keywords" | "searchTerms" | "totals" | "uploadDiagnostics")[];
5368
+ directive: string;
5369
+ } & {}>;
5370
+ export type ResonanceGoogleCampaignDiagnosticsRequest = Value<typeof googleDiagnosticsRequest>;
5371
+ /** Request shape only. Native admission resolves scope, completed account-local days and deadline. */
5372
+ export declare const parseResonanceGoogleCampaignDiagnosticsRequest: (v: unknown) => ResonanceGoogleCampaignDiagnosticsRequest;
5373
+ export declare const RESONANCE_GOOGLE_CAMPAIGN_DIAGNOSTICS_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5374
+ declare const googleDiagnosticsPayload: Field<{
5375
+ channelId: string;
5376
+ startDate: string;
5377
+ endDate: string;
5378
+ sections: ("campaign" | "daily" | "goals" | "keywords" | "searchTerms" | "totals" | "uploadDiagnostics")[];
5379
+ directive: string;
5380
+ schemaVersion: 1;
5381
+ campaignId: string;
4184
5382
  expectedRevision: number;
5383
+ accountBindingId: string;
5384
+ site: string;
4185
5385
  idempotencyKey: string;
4186
5386
  } & {}>;
4187
- export type ResonanceCommandPrepareRequest = Value<typeof prepareCommand>;
4188
- export declare const parseResonancePrepareCommand: (v: unknown) => ResonanceCommandPrepareRequest;
4189
- /** Same strict revision/key request for API-owned launch/update/resume command preparation. */
4190
- export declare const parseResonanceCommandPrepareRequest: typeof parseResonancePrepareCommand;
4191
- declare const commandPreparation: Field<{
4192
- command: ({
4193
- schemaVersion: 1;
4194
- campaignId: string;
4195
- expectedRevision: number;
4196
- idempotencyKey: string;
4197
- channelIds: string[];
4198
- operation: "launch" | "resume" | "update";
4199
- preparedPlanId: string;
4200
- reviewDigest: string;
4201
- mandateRef: {
4202
- ledgerActionId: string;
4203
- campaignId: string;
4204
- preparedPlanId: string;
4205
- reviewDigest: string;
4206
- mandateDigest: string;
4207
- expectedKillRevision: number;
5387
+ export type ResonanceGoogleCampaignDiagnosticsPayload = Value<typeof googleDiagnosticsPayload>;
5388
+ /** Stored business payload only. Native admission verifies every ID, revision and binding against the original Ledger row. */
5389
+ export declare const parseResonanceGoogleCampaignDiagnosticsPayload: (v: unknown) => ResonanceGoogleCampaignDiagnosticsPayload;
5390
+ export declare const RESONANCE_GOOGLE_CAMPAIGN_DIAGNOSTICS_PAYLOAD_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5391
+ declare const googleDiagnosticsReport: Field<{
5392
+ schemaVersion: 1;
5393
+ provider: "google_ads";
5394
+ projectId: string;
5395
+ campaignId: string;
5396
+ channelId: string;
5397
+ site: string;
5398
+ accountBindingId: string;
5399
+ externalCampaignId: string;
5400
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHF" | "CLP" | "CNY" | "COP" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLE" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "UYU" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XCD" | "XCG" | "XDR" | "XOF" | "XPF" | "XSU" | "YER" | "ZAR" | "ZMW" | "ZWG" | "ZWL";
5401
+ accountTimeZone: string;
5402
+ window: {
5403
+ startDate: string;
5404
+ endDate: string;
5405
+ completeness: "completed_days";
5406
+ } & {};
5407
+ observedAt: string;
5408
+ sections: {
5409
+ campaign: {
5410
+ state: "available" | "capped" | "unavailable";
5411
+ reasonCodes: string[];
5412
+ rows: ({
5413
+ status: string;
5414
+ primaryStatus: string | null;
5415
+ primaryStatusReasons: string[];
5416
+ servingStatus: string | null;
5417
+ biddingStrategyType: string | null;
5418
+ startDate: string | null;
5419
+ endDate: string | null;
5420
+ budgetAmountMicros: string | null;
5421
+ budgetPeriod: string | null;
5422
+ searchNetwork: boolean | null;
5423
+ searchPartners: boolean | null;
5424
+ displayNetwork: boolean | null;
5425
+ positiveGeoTargetType: string | null;
5426
+ negativeGeoTargetType: string | null;
5427
+ locationCriterionIds: string[];
5428
+ } & {})[];
5429
+ pagesRead: number;
4208
5430
  } & {};
4209
- expectedRemoteSnapshots: ({
4210
- channelId: string;
4211
- digest: string;
4212
- } & {})[];
4213
- } & {}) | ({
4214
- schemaVersion: 1;
4215
- campaignId: string;
4216
- expectedRevision: number;
4217
- idempotencyKey: string;
4218
- channelIds: string[];
4219
- operation: "optimize";
4220
- preparedPlanId: string;
4221
- reviewDigest: string;
4222
- mandateRef: {
4223
- ledgerActionId: string;
4224
- campaignId: string;
4225
- preparedPlanId: string;
4226
- reviewDigest: string;
4227
- mandateDigest: string;
4228
- expectedKillRevision: number;
5431
+ totals: {
5432
+ state: "available" | "capped" | "unavailable";
5433
+ reasonCodes: string[];
5434
+ rows: ({
5435
+ spendMicros: string | null;
5436
+ impressions: string | null;
5437
+ clicks: string | null;
5438
+ conversions: string | null;
5439
+ allConversions: string | null;
5440
+ } & {})[];
5441
+ pagesRead: number;
4229
5442
  } & {};
4230
- decisionRef: {
4231
- id: string;
4232
- revision: string;
4233
- evidenceDigest: string;
5443
+ daily: {
5444
+ state: "available" | "capped" | "unavailable";
5445
+ reasonCodes: string[];
5446
+ rows: ({
5447
+ spendMicros: string | null;
5448
+ impressions: string | null;
5449
+ clicks: string | null;
5450
+ conversions: string | null;
5451
+ allConversions: string | null;
5452
+ localDate: string;
5453
+ } & {})[];
5454
+ pagesRead: number;
4234
5455
  } & {};
4235
- expectedRemoteSnapshots: ({
4236
- channelId: string;
4237
- digest: string;
4238
- } & {})[];
4239
- } & {}) | ({
4240
- schemaVersion: 1;
4241
- campaignId: string;
4242
- expectedRevision: number;
4243
- idempotencyKey: string;
4244
- channelIds: string[];
4245
- operation: "finish" | "pause" | "reconcile";
4246
- } & {}) | ({
4247
- schemaVersion: 1;
4248
- campaignId: string;
4249
- expectedRevision: number;
4250
- idempotencyKey: string;
4251
- operation: "deliver_conversion";
4252
- channelIds: string[];
4253
- preparedPlanId: string;
4254
- reviewDigest: string;
4255
- mandateRef: {
4256
- ledgerActionId: string;
4257
- campaignId: string;
4258
- preparedPlanId: string;
4259
- reviewDigest: string;
4260
- mandateDigest: string;
4261
- expectedKillRevision: number;
5456
+ keywords: {
5457
+ state: "available" | "capped" | "unavailable";
5458
+ reasonCodes: string[];
5459
+ rows: ({
5460
+ spendMicros: string | null;
5461
+ impressions: string | null;
5462
+ clicks: string | null;
5463
+ conversions: string | null;
5464
+ allConversions: string | null;
5465
+ criterionId: string;
5466
+ adGroupId: string;
5467
+ matchType: string | null;
5468
+ status: string | null;
5469
+ negative: boolean;
5470
+ } & {})[];
5471
+ pagesRead: number;
4262
5472
  } & {};
4263
- conversionId: string;
4264
- } & {}) | ({
4265
- schemaVersion: 1;
4266
- campaignId: string;
4267
- expectedRevision: number;
4268
- idempotencyKey: string;
4269
- operation: "deliver_website_visit";
4270
- channelIds: string[];
4271
- preparedPlanId: string;
4272
- reviewDigest: string;
4273
- mandateRef: {
4274
- ledgerActionId: string;
4275
- campaignId: string;
4276
- preparedPlanId: string;
4277
- reviewDigest: string;
4278
- mandateDigest: string;
4279
- expectedKillRevision: number;
5473
+ searchTerms: {
5474
+ state: "available" | "capped" | "unavailable";
5475
+ reasonCodes: string[];
5476
+ rows: ({
5477
+ spendMicros: string | null;
5478
+ impressions: string | null;
5479
+ clicks: string | null;
5480
+ conversions: string | null;
5481
+ allConversions: string | null;
5482
+ rowId: string;
5483
+ adGroupId: string;
5484
+ status: string | null;
5485
+ keywordCriterionId: string | null;
5486
+ matchType: string | null;
5487
+ } & {})[];
5488
+ pagesRead: number;
4280
5489
  } & {};
4281
- occurrenceId: string;
4282
- } & {}) | null;
4283
- covered: boolean;
4284
- approvalRequirement: "current_owner" | "existing_mandate" | null;
4285
- reasonCodes: string[];
5490
+ goals: {
5491
+ state: "available" | "capped" | "unavailable";
5492
+ reasonCodes: string[];
5493
+ rows: ({
5494
+ goalConfigLevel: string | null;
5495
+ customGoalResourceName: string | null;
5496
+ customGoalStatus: string | null;
5497
+ actionResourceName: string;
5498
+ actionStatus: string | null;
5499
+ type: string | null;
5500
+ category: string | null;
5501
+ primaryForGoal: boolean | null;
5502
+ countingType: string | null;
5503
+ clickThroughLookbackWindowDays: number | null;
5504
+ } & {})[];
5505
+ pagesRead: number;
5506
+ } & {};
5507
+ uploadDiagnostics: {
5508
+ state: "available" | "capped" | "unavailable";
5509
+ reasonCodes: string[];
5510
+ rows: ({
5511
+ actionResourceName: string;
5512
+ client: string | null;
5513
+ status: string | null;
5514
+ lastUploadDateTime: string | null;
5515
+ totalEventCount: string | null;
5516
+ successfulEventCount: string | null;
5517
+ pendingEventCount: string | null;
5518
+ alertCodes: string[];
5519
+ } & {})[];
5520
+ pagesRead: number;
5521
+ } & {};
5522
+ } & {};
5523
+ searchTermCoverage: {
5524
+ state: "available" | "unavailable";
5525
+ reasonCodes: string[];
5526
+ disclosed: ({
5527
+ spendMicros: string | null;
5528
+ impressions: string | null;
5529
+ clicks: string | null;
5530
+ conversions: string | null;
5531
+ allConversions: string | null;
5532
+ } & {}) | null;
5533
+ remainder: ({
5534
+ spendMicros: string | null;
5535
+ impressions: string | null;
5536
+ clicks: string | null;
5537
+ conversions: string | null;
5538
+ allConversions: string | null;
5539
+ } & {}) | null;
5540
+ } & {};
5541
+ providerAuthored: {
5542
+ campaignName: string | null;
5543
+ keywords: ({
5544
+ adGroupId: string;
5545
+ criterionId: string;
5546
+ text: string;
5547
+ } & {})[];
5548
+ searchTerms: ({
5549
+ rowId: string;
5550
+ text: string;
5551
+ } & {})[];
5552
+ locations: ({
5553
+ criterionId: string;
5554
+ name: string;
5555
+ } & {})[];
5556
+ } & {};
4286
5557
  } & {}>;
4287
- export type ResonanceCommandPrepareResponse = Value<typeof commandPreparation>;
4288
- /** Preparation describes an immutable command; it does not approve, claim or execute it. */
4289
- export declare function parseResonanceCommandPrepareResponse(v: unknown): ResonanceCommandPrepareResponse;
4290
- export declare const RESONANCE_COMMAND_PREPARE_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5558
+ export type ResonanceGoogleCampaignDiagnosticsReport = Value<typeof googleDiagnosticsReport>;
5559
+ export type GoogleCampaignDiagnosticsReport = ResonanceGoogleCampaignDiagnosticsReport;
5560
+ /** Bounded read data only. The native caller verifies current diagnostics authority and provider provenance. */
5561
+ export declare function parseResonanceGoogleCampaignDiagnosticsReport(v: unknown): ResonanceGoogleCampaignDiagnosticsReport;
5562
+ export declare const RESONANCE_GOOGLE_CAMPAIGN_DIAGNOSTICS_REPORT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4291
5563
  export declare const RESONANCE_COMMAND_PREPARE_RESPONSE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
4292
5564
  export interface ResonancePlanIssue {
4293
5565
  path: string;
@@ -9039,6 +10311,31 @@ declare const mandateDraftRequest: Field<{
9039
10311
  basis: "explicit_query";
9040
10312
  } & {})[] | undefined;
9041
10313
  }) | undefined;
10314
+ operatingPolicySelection?: ({
10315
+ schemaVersion: 1;
10316
+ agentContactId: string;
10317
+ googleSearchContent: ({
10318
+ channelId: string;
10319
+ adGroupLocalKey: string;
10320
+ adLocalKey: string;
10321
+ negativeRemovals: string[];
10322
+ exactAdditions: string[];
10323
+ rsa: ({
10324
+ creativeRef: {
10325
+ projectId: string;
10326
+ site: string;
10327
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
10328
+ id: string;
10329
+ revision: string;
10330
+ digest: string;
10331
+ } & {};
10332
+ headlines: string[];
10333
+ descriptions: string[];
10334
+ } & {}) | null;
10335
+ } & {})[];
10336
+ cooldownSeconds: number;
10337
+ } & {}) | undefined;
10338
+ activation?: "operating_policy" | undefined;
9042
10339
  }>;
9043
10340
  export type ResonanceMandateDraftRequest = Value<typeof mandateDraftRequest>;
9044
10341
  export declare const parseResonanceMandateDraftRequest: (v: unknown) => ResonanceMandateDraftRequest;
@@ -9193,9 +10490,46 @@ declare const feedReview: Field<{
9193
10490
  actionReportTime: "conversion";
9194
10491
  basis: "explicit_query";
9195
10492
  } & {})[] | undefined;
10493
+ reportingUntil?: string | undefined;
9196
10494
  }) | undefined;
10495
+ operatingPolicy?: ({
10496
+ schemaVersion: 1;
10497
+ agentContactId: string;
10498
+ googleSearchContent: ({
10499
+ channelId: string;
10500
+ adGroupLocalKey: string;
10501
+ adLocalKey: string;
10502
+ negativeRemovals: string[];
10503
+ exactAdditions: string[];
10504
+ rsa: ({
10505
+ creativeRef: {
10506
+ projectId: string;
10507
+ site: string;
10508
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
10509
+ id: string;
10510
+ revision: string;
10511
+ digest: string;
10512
+ } & {};
10513
+ headlines: string[];
10514
+ descriptions: string[];
10515
+ } & {}) | null;
10516
+ } & {})[];
10517
+ cooldownSeconds: number;
10518
+ principalContactId: string;
10519
+ } & {}) | undefined;
9197
10520
  };
9198
- } & {};
10521
+ } & {
10522
+ operatingPolicyBase?: ({
10523
+ ledgerActionId: string;
10524
+ acceptanceReceiptId: string;
10525
+ expectedKillRevision: number;
10526
+ previousOperatingPolicyRef: ({
10527
+ ledgerActionId: string;
10528
+ receiptId: string;
10529
+ digest: string;
10530
+ } & {}) | null;
10531
+ } & {}) | undefined;
10532
+ };
9199
10533
  mandateRef: {
9200
10534
  ledgerActionId: string;
9201
10535
  campaignId: string;