@sonordev/contracts 2.20.0 → 2.22.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.
@@ -155,7 +155,9 @@ declare const audience: Field<{
155
155
  retentionDays: number;
156
156
  exclusionRuleIds: string[];
157
157
  consentPurpose: "ad_personalization";
158
- } & {}>;
158
+ } & {
159
+ minDaysSinceVisit?: number | undefined;
160
+ }>;
159
161
  declare const experiment: Field<{
160
162
  projectId: string;
161
163
  site: string;
@@ -186,6 +188,36 @@ declare const budget: Field<{
186
188
  maxChangeBasisPoints: number;
187
189
  cooldownSeconds: number;
188
190
  } & {}>;
191
+ declare const reportedOptimizationPolicy: Field<{
192
+ schemaVersion: 1;
193
+ sourceRef: ({
194
+ projectId: string;
195
+ site: string;
196
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
197
+ id: string;
198
+ revision: string;
199
+ digest: string;
200
+ } & {}) | null;
201
+ decisionKind: "observational_allocation";
202
+ eligibleGoal: "qualified_lead";
203
+ minimumMatureExposures: number;
204
+ minimumMatureOutcomes: number;
205
+ minimumCoverageBasisPoints: number;
206
+ maxEvidenceAgeSeconds: number;
207
+ maturityDelaySeconds: number;
208
+ cooldownSeconds: number;
209
+ donorTransferBasisPoints: number;
210
+ maxUncertaintyBasisPoints: number;
211
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
212
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
213
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
214
+ algorithm: "reported_cpql_conserved_transfer_v1";
215
+ costBasis: "provider_reported_snapshot_v1";
216
+ costRevisionRisk: "accepted_provisional";
217
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
218
+ } & {}>;
219
+ export type ResonanceReportedCostPolicy = Value<typeof reportedOptimizationPolicy>;
220
+ export type ResonanceSqlClockReportedCostPolicy = ResonanceReportedCostPolicy;
189
221
  declare const finiteMetaCandidatePolicy: Field<{
190
222
  schemaVersion: 1;
191
223
  algorithm: "finite_meta_candidates_v1";
@@ -267,6 +299,33 @@ declare const optimizationPolicy: Field<({
267
299
  uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
268
300
  attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
269
301
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
302
+ } & {}) | ({
303
+ schemaVersion: 1;
304
+ sourceRef: ({
305
+ projectId: string;
306
+ site: string;
307
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
308
+ id: string;
309
+ revision: string;
310
+ digest: string;
311
+ } & {}) | null;
312
+ decisionKind: "observational_allocation";
313
+ eligibleGoal: "qualified_lead";
314
+ minimumMatureExposures: number;
315
+ minimumMatureOutcomes: number;
316
+ minimumCoverageBasisPoints: number;
317
+ maxEvidenceAgeSeconds: number;
318
+ maturityDelaySeconds: number;
319
+ cooldownSeconds: number;
320
+ donorTransferBasisPoints: number;
321
+ maxUncertaintyBasisPoints: number;
322
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
323
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
324
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
325
+ algorithm: "reported_cpql_conserved_transfer_v1";
326
+ costBasis: "provider_reported_snapshot_v1";
327
+ costRevisionRisk: "accepted_provisional";
328
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
270
329
  } & {}) | ({
271
330
  schemaVersion: 1;
272
331
  algorithm: "finite_meta_candidates_v1";
@@ -399,7 +458,9 @@ declare const channel: Field<({
399
458
  retentionDays: number;
400
459
  exclusionRuleIds: string[];
401
460
  consentPurpose: "ad_personalization";
402
- } & {})[];
461
+ } & {
462
+ minDaysSinceVisit?: number | undefined;
463
+ })[];
403
464
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
404
465
  pageRef: {
405
466
  connectionId: string;
@@ -450,6 +511,19 @@ declare const channel: Field<({
450
511
  } & {}) | ({
451
512
  mode: "provider_managed";
452
513
  } & {}) | undefined;
514
+ channelGroup?: ({
515
+ key: string;
516
+ label: string;
517
+ } & {}) | undefined;
518
+ property?: ({
519
+ key: string;
520
+ label: string;
521
+ } & {}) | undefined;
522
+ tier?: ({
523
+ label: string;
524
+ } & {}) | undefined;
525
+ primaryText?: string | undefined;
526
+ convertersAcknowledged?: true | undefined;
453
527
  }) | ({
454
528
  projectId: string;
455
529
  site: string;
@@ -633,7 +707,9 @@ declare const definition: Field<{
633
707
  retentionDays: number;
634
708
  exclusionRuleIds: string[];
635
709
  consentPurpose: "ad_personalization";
636
- } & {})[];
710
+ } & {
711
+ minDaysSinceVisit?: number | undefined;
712
+ })[];
637
713
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
638
714
  pageRef: {
639
715
  connectionId: string;
@@ -684,6 +760,19 @@ declare const definition: Field<{
684
760
  } & {}) | ({
685
761
  mode: "provider_managed";
686
762
  } & {}) | undefined;
763
+ channelGroup?: ({
764
+ key: string;
765
+ label: string;
766
+ } & {}) | undefined;
767
+ property?: ({
768
+ key: string;
769
+ label: string;
770
+ } & {}) | undefined;
771
+ tier?: ({
772
+ label: string;
773
+ } & {}) | undefined;
774
+ primaryText?: string | undefined;
775
+ convertersAcknowledged?: true | undefined;
687
776
  }) | ({
688
777
  projectId: string;
689
778
  site: string;
@@ -756,6 +845,33 @@ declare const definition: Field<{
756
845
  uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
757
846
  attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
758
847
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
848
+ } & {}) | ({
849
+ schemaVersion: 1;
850
+ sourceRef: ({
851
+ projectId: string;
852
+ site: string;
853
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
854
+ id: string;
855
+ revision: string;
856
+ digest: string;
857
+ } & {}) | null;
858
+ decisionKind: "observational_allocation";
859
+ eligibleGoal: "qualified_lead";
860
+ minimumMatureExposures: number;
861
+ minimumMatureOutcomes: number;
862
+ minimumCoverageBasisPoints: number;
863
+ maxEvidenceAgeSeconds: number;
864
+ maturityDelaySeconds: number;
865
+ cooldownSeconds: number;
866
+ donorTransferBasisPoints: number;
867
+ maxUncertaintyBasisPoints: number;
868
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
869
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
870
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
871
+ algorithm: "reported_cpql_conserved_transfer_v1";
872
+ costBasis: "provider_reported_snapshot_v1";
873
+ costRevisionRisk: "accepted_provisional";
874
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
759
875
  } & {}) | ({
760
876
  schemaVersion: 1;
761
877
  algorithm: "finite_meta_candidates_v1";
@@ -992,7 +1108,9 @@ declare const draft: Field<{
992
1108
  retentionDays: number;
993
1109
  exclusionRuleIds: string[];
994
1110
  consentPurpose: "ad_personalization";
995
- } & {})[];
1111
+ } & {
1112
+ minDaysSinceVisit?: number | undefined;
1113
+ })[];
996
1114
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
997
1115
  pageRef: {
998
1116
  connectionId: string;
@@ -1043,6 +1161,19 @@ declare const draft: Field<{
1043
1161
  } & {}) | ({
1044
1162
  mode: "provider_managed";
1045
1163
  } & {}) | undefined;
1164
+ channelGroup?: ({
1165
+ key: string;
1166
+ label: string;
1167
+ } & {}) | undefined;
1168
+ property?: ({
1169
+ key: string;
1170
+ label: string;
1171
+ } & {}) | undefined;
1172
+ tier?: ({
1173
+ label: string;
1174
+ } & {}) | undefined;
1175
+ primaryText?: string | undefined;
1176
+ convertersAcknowledged?: true | undefined;
1046
1177
  }) | ({
1047
1178
  projectId: string;
1048
1179
  site: string;
@@ -1115,6 +1246,33 @@ declare const draft: Field<{
1115
1246
  uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
1116
1247
  attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
1117
1248
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
1249
+ } & {}) | ({
1250
+ schemaVersion: 1;
1251
+ sourceRef: ({
1252
+ projectId: string;
1253
+ site: string;
1254
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
1255
+ id: string;
1256
+ revision: string;
1257
+ digest: string;
1258
+ } & {}) | null;
1259
+ decisionKind: "observational_allocation";
1260
+ eligibleGoal: "qualified_lead";
1261
+ minimumMatureExposures: number;
1262
+ minimumMatureOutcomes: number;
1263
+ minimumCoverageBasisPoints: number;
1264
+ maxEvidenceAgeSeconds: number;
1265
+ maturityDelaySeconds: number;
1266
+ cooldownSeconds: number;
1267
+ donorTransferBasisPoints: number;
1268
+ maxUncertaintyBasisPoints: number;
1269
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
1270
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
1271
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
1272
+ algorithm: "reported_cpql_conserved_transfer_v1";
1273
+ costBasis: "provider_reported_snapshot_v1";
1274
+ costRevisionRisk: "accepted_provisional";
1275
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
1118
1276
  } & {}) | ({
1119
1277
  schemaVersion: 1;
1120
1278
  algorithm: "finite_meta_candidates_v1";
@@ -1261,6 +1419,24 @@ declare const websiteVisitFeed: Field<{
1261
1419
  } & {}>;
1262
1420
  export type ResonanceWebsiteVisitFeed = Value<typeof websiteVisitFeed>;
1263
1421
  export declare const RESONANCE_WEBSITE_VISIT_FEED_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1422
+ declare const providerReportingSelection: Field<{
1423
+ agentContactId: string;
1424
+ channelIds: string[];
1425
+ } & {}>;
1426
+ declare const providerReportingGrant: Field<{
1427
+ purpose: "provider_reporting_refresh";
1428
+ orgId: string;
1429
+ projectId: string;
1430
+ agentContactId: string;
1431
+ principalContactId: string;
1432
+ channelIds: string[];
1433
+ } & {}>;
1434
+ export type ResonanceProviderReportingSelection = Value<typeof providerReportingSelection>;
1435
+ export type ResonanceProviderReportingGrant = Value<typeof providerReportingGrant>;
1436
+ export declare const parseResonanceProviderReportingSelection: (v: unknown) => ResonanceProviderReportingSelection;
1437
+ export declare const parseResonanceProviderReportingGrant: (v: unknown) => ResonanceProviderReportingGrant;
1438
+ export declare const RESONANCE_PROVIDER_REPORTING_SELECTION_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1439
+ export declare const RESONANCE_PROVIDER_REPORTING_GRANT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1264
1440
  declare const mandateScope: Field<{
1265
1441
  projectId: string;
1266
1442
  campaignId: string;
@@ -1323,7 +1499,9 @@ declare const mandateScope: Field<{
1323
1499
  retentionDays: number;
1324
1500
  exclusionRuleIds: string[];
1325
1501
  consentPurpose: "ad_personalization";
1326
- } & {})[];
1502
+ } & {
1503
+ minDaysSinceVisit?: number | undefined;
1504
+ })[];
1327
1505
  goal: {
1328
1506
  source: {
1329
1507
  projectId: string;
@@ -1386,9 +1564,17 @@ declare const mandateScope: Field<{
1386
1564
  } & {};
1387
1565
  } & {})[];
1388
1566
  } & {}) | undefined;
1567
+ providerReporting?: ({
1568
+ purpose: "provider_reporting_refresh";
1569
+ orgId: string;
1570
+ projectId: string;
1571
+ agentContactId: string;
1572
+ principalContactId: string;
1573
+ channelIds: string[];
1574
+ } & {}) | undefined;
1389
1575
  }>;
1390
1576
  export type ResonanceMandateScope = Value<typeof mandateScope>;
1391
- export declare function parseResonanceMandateScope(v: unknown): ResonanceMandateScope;
1577
+ export declare function parseResonanceMandateScope(v: unknown, preparedPlan?: unknown): ResonanceMandateScope;
1392
1578
  declare const websiteVisitTimes: Field<{
1393
1579
  occurredAt: string;
1394
1580
  receivedAt: string;
@@ -2220,7 +2406,9 @@ declare const prepared: Field<{
2220
2406
  retentionDays: number;
2221
2407
  exclusionRuleIds: string[];
2222
2408
  consentPurpose: "ad_personalization";
2223
- } & {})[];
2409
+ } & {
2410
+ minDaysSinceVisit?: number | undefined;
2411
+ })[];
2224
2412
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
2225
2413
  pageRef: {
2226
2414
  connectionId: string;
@@ -2271,6 +2459,19 @@ declare const prepared: Field<{
2271
2459
  } & {}) | ({
2272
2460
  mode: "provider_managed";
2273
2461
  } & {}) | undefined;
2462
+ channelGroup?: ({
2463
+ key: string;
2464
+ label: string;
2465
+ } & {}) | undefined;
2466
+ property?: ({
2467
+ key: string;
2468
+ label: string;
2469
+ } & {}) | undefined;
2470
+ tier?: ({
2471
+ label: string;
2472
+ } & {}) | undefined;
2473
+ primaryText?: string | undefined;
2474
+ convertersAcknowledged?: true | undefined;
2274
2475
  }) | ({
2275
2476
  projectId: string;
2276
2477
  site: string;
@@ -2343,6 +2544,33 @@ declare const prepared: Field<{
2343
2544
  uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
2344
2545
  attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
2345
2546
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
2547
+ } & {}) | ({
2548
+ schemaVersion: 1;
2549
+ sourceRef: ({
2550
+ projectId: string;
2551
+ site: string;
2552
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
2553
+ id: string;
2554
+ revision: string;
2555
+ digest: string;
2556
+ } & {}) | null;
2557
+ decisionKind: "observational_allocation";
2558
+ eligibleGoal: "qualified_lead";
2559
+ minimumMatureExposures: number;
2560
+ minimumMatureOutcomes: number;
2561
+ minimumCoverageBasisPoints: number;
2562
+ maxEvidenceAgeSeconds: number;
2563
+ maturityDelaySeconds: number;
2564
+ cooldownSeconds: number;
2565
+ donorTransferBasisPoints: number;
2566
+ maxUncertaintyBasisPoints: number;
2567
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
2568
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
2569
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
2570
+ algorithm: "reported_cpql_conserved_transfer_v1";
2571
+ costBasis: "provider_reported_snapshot_v1";
2572
+ costRevisionRisk: "accepted_provisional";
2573
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
2346
2574
  } & {}) | ({
2347
2575
  schemaVersion: 1;
2348
2576
  algorithm: "finite_meta_candidates_v1";
@@ -2435,6 +2663,33 @@ declare const prepared: Field<{
2435
2663
  uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
2436
2664
  attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
2437
2665
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
2666
+ } & {}) | ({
2667
+ schemaVersion: 1;
2668
+ sourceRef: ({
2669
+ projectId: string;
2670
+ site: string;
2671
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
2672
+ id: string;
2673
+ revision: string;
2674
+ digest: string;
2675
+ } & {}) | null;
2676
+ decisionKind: "observational_allocation";
2677
+ eligibleGoal: "qualified_lead";
2678
+ minimumMatureExposures: number;
2679
+ minimumMatureOutcomes: number;
2680
+ minimumCoverageBasisPoints: number;
2681
+ maxEvidenceAgeSeconds: number;
2682
+ maturityDelaySeconds: number;
2683
+ cooldownSeconds: number;
2684
+ donorTransferBasisPoints: number;
2685
+ maxUncertaintyBasisPoints: number;
2686
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
2687
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
2688
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
2689
+ algorithm: "reported_cpql_conserved_transfer_v1";
2690
+ costBasis: "provider_reported_snapshot_v1";
2691
+ costRevisionRisk: "accepted_provisional";
2692
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
2438
2693
  } & {}) | ({
2439
2694
  schemaVersion: 1;
2440
2695
  algorithm: "finite_meta_candidates_v1";
@@ -2591,7 +2846,9 @@ declare const prepared: Field<{
2591
2846
  retentionDays: number;
2592
2847
  exclusionRuleIds: string[];
2593
2848
  consentPurpose: "ad_personalization";
2594
- } & {})[];
2849
+ } & {
2850
+ minDaysSinceVisit?: number | undefined;
2851
+ })[];
2595
2852
  allocation: ({
2596
2853
  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";
2597
2854
  amountMicros: string;
@@ -3019,7 +3276,9 @@ declare const view: Field<{
3019
3276
  retentionDays: number;
3020
3277
  exclusionRuleIds: string[];
3021
3278
  consentPurpose: "ad_personalization";
3022
- } & {})[];
3279
+ } & {
3280
+ minDaysSinceVisit?: number | undefined;
3281
+ })[];
3023
3282
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
3024
3283
  pageRef: {
3025
3284
  connectionId: string;
@@ -3070,6 +3329,19 @@ declare const view: Field<{
3070
3329
  } & {}) | ({
3071
3330
  mode: "provider_managed";
3072
3331
  } & {}) | undefined;
3332
+ channelGroup?: ({
3333
+ key: string;
3334
+ label: string;
3335
+ } & {}) | undefined;
3336
+ property?: ({
3337
+ key: string;
3338
+ label: string;
3339
+ } & {}) | undefined;
3340
+ tier?: ({
3341
+ label: string;
3342
+ } & {}) | undefined;
3343
+ primaryText?: string | undefined;
3344
+ convertersAcknowledged?: true | undefined;
3073
3345
  }) | ({
3074
3346
  projectId: string;
3075
3347
  site: string;
@@ -3142,6 +3414,33 @@ declare const view: Field<{
3142
3414
  uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
3143
3415
  attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
3144
3416
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
3417
+ } & {}) | ({
3418
+ schemaVersion: 1;
3419
+ sourceRef: ({
3420
+ projectId: string;
3421
+ site: string;
3422
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
3423
+ id: string;
3424
+ revision: string;
3425
+ digest: string;
3426
+ } & {}) | null;
3427
+ decisionKind: "observational_allocation";
3428
+ eligibleGoal: "qualified_lead";
3429
+ minimumMatureExposures: number;
3430
+ minimumMatureOutcomes: number;
3431
+ minimumCoverageBasisPoints: number;
3432
+ maxEvidenceAgeSeconds: number;
3433
+ maturityDelaySeconds: number;
3434
+ cooldownSeconds: number;
3435
+ donorTransferBasisPoints: number;
3436
+ maxUncertaintyBasisPoints: number;
3437
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
3438
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
3439
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
3440
+ algorithm: "reported_cpql_conserved_transfer_v1";
3441
+ costBasis: "provider_reported_snapshot_v1";
3442
+ costRevisionRisk: "accepted_provisional";
3443
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
3145
3444
  } & {}) | ({
3146
3445
  schemaVersion: 1;
3147
3446
  algorithm: "finite_meta_candidates_v1";
@@ -3267,11 +3566,11 @@ declare const metric: Field<({
3267
3566
  projectId: string;
3268
3567
  site: string;
3269
3568
  campaignId: string;
3270
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
3569
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
3271
3570
  source: "experiment" | "first_party" | "provider";
3272
3571
  sourceRef: string;
3273
3572
  goalRevision: string | null;
3274
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
3573
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
3275
3574
  windowStart: string;
3276
3575
  windowEnd: string;
3277
3576
  timeZone: string;
@@ -3308,11 +3607,11 @@ declare const metric: Field<({
3308
3607
  projectId: string;
3309
3608
  site: string;
3310
3609
  campaignId: string;
3311
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
3610
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
3312
3611
  source: "experiment" | "first_party" | "provider";
3313
3612
  sourceRef: string;
3314
3613
  goalRevision: string | null;
3315
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
3614
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
3316
3615
  windowStart: string;
3317
3616
  windowEnd: string;
3318
3617
  timeZone: string;
@@ -3500,7 +3799,9 @@ declare const mandateApproval: Field<{
3500
3799
  retentionDays: number;
3501
3800
  exclusionRuleIds: string[];
3502
3801
  consentPurpose: "ad_personalization";
3503
- } & {})[];
3802
+ } & {
3803
+ minDaysSinceVisit?: number | undefined;
3804
+ })[];
3504
3805
  goal: {
3505
3806
  source: {
3506
3807
  projectId: string;
@@ -3563,6 +3864,14 @@ declare const mandateApproval: Field<{
3563
3864
  } & {};
3564
3865
  } & {})[];
3565
3866
  } & {}) | undefined;
3867
+ providerReporting?: ({
3868
+ purpose: "provider_reporting_refresh";
3869
+ orgId: string;
3870
+ projectId: string;
3871
+ agentContactId: string;
3872
+ principalContactId: string;
3873
+ channelIds: string[];
3874
+ } & {}) | undefined;
3566
3875
  };
3567
3876
  } & {}>;
3568
3877
  export type ResonanceMandateApprovalPayload = Value<typeof mandateApproval>;
@@ -3863,7 +4172,9 @@ declare const saveCommand: Field<{
3863
4172
  retentionDays: number;
3864
4173
  exclusionRuleIds: string[];
3865
4174
  consentPurpose: "ad_personalization";
3866
- } & {})[];
4175
+ } & {
4176
+ minDaysSinceVisit?: number | undefined;
4177
+ })[];
3867
4178
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
3868
4179
  pageRef: {
3869
4180
  connectionId: string;
@@ -3914,6 +4225,19 @@ declare const saveCommand: Field<{
3914
4225
  } & {}) | ({
3915
4226
  mode: "provider_managed";
3916
4227
  } & {}) | undefined;
4228
+ channelGroup?: ({
4229
+ key: string;
4230
+ label: string;
4231
+ } & {}) | undefined;
4232
+ property?: ({
4233
+ key: string;
4234
+ label: string;
4235
+ } & {}) | undefined;
4236
+ tier?: ({
4237
+ label: string;
4238
+ } & {}) | undefined;
4239
+ primaryText?: string | undefined;
4240
+ convertersAcknowledged?: true | undefined;
3917
4241
  }) | ({
3918
4242
  projectId: string;
3919
4243
  site: string;
@@ -3988,9 +4312,6 @@ declare const saveCommand: Field<{
3988
4312
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
3989
4313
  } & {}) | ({
3990
4314
  schemaVersion: 1;
3991
- algorithm: "finite_meta_candidates_v1";
3992
- decisionKind: "preapproved_candidate_operation";
3993
- eligibleGoal: "qualified_lead";
3994
4315
  sourceRef: ({
3995
4316
  projectId: string;
3996
4317
  site: string;
@@ -3999,21 +4320,51 @@ declare const saveCommand: Field<{
3999
4320
  revision: string;
4000
4321
  digest: string;
4001
4322
  } & {}) | null;
4002
- candidateChannelIds: string[];
4003
- selection: {
4004
- kind: "fixed_reviewed_order";
4005
- candidateOrder: string[];
4006
- eligibilitySchedule: ({
4007
- channelId: string;
4008
- notBefore: string;
4009
- notAfter: string;
4010
- } & {})[];
4011
- } & {};
4012
- allowedActions: ("activate_held" | "materialize_and_activate" | "pause_candidate")[];
4013
- maxConcurrentCandidates: number;
4014
- maxActivationsPerCandidate: 1;
4015
- totalExplorationCap: {
4016
- 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";
4323
+ decisionKind: "observational_allocation";
4324
+ eligibleGoal: "qualified_lead";
4325
+ minimumMatureExposures: number;
4326
+ minimumMatureOutcomes: number;
4327
+ minimumCoverageBasisPoints: number;
4328
+ maxEvidenceAgeSeconds: number;
4329
+ maturityDelaySeconds: number;
4330
+ cooldownSeconds: number;
4331
+ donorTransferBasisPoints: number;
4332
+ maxUncertaintyBasisPoints: number;
4333
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
4334
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
4335
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
4336
+ algorithm: "reported_cpql_conserved_transfer_v1";
4337
+ costBasis: "provider_reported_snapshot_v1";
4338
+ costRevisionRisk: "accepted_provisional";
4339
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
4340
+ } & {}) | ({
4341
+ schemaVersion: 1;
4342
+ algorithm: "finite_meta_candidates_v1";
4343
+ decisionKind: "preapproved_candidate_operation";
4344
+ eligibleGoal: "qualified_lead";
4345
+ sourceRef: ({
4346
+ projectId: string;
4347
+ site: string;
4348
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4349
+ id: string;
4350
+ revision: string;
4351
+ digest: string;
4352
+ } & {}) | null;
4353
+ candidateChannelIds: string[];
4354
+ selection: {
4355
+ kind: "fixed_reviewed_order";
4356
+ candidateOrder: string[];
4357
+ eligibilitySchedule: ({
4358
+ channelId: string;
4359
+ notBefore: string;
4360
+ notAfter: string;
4361
+ } & {})[];
4362
+ } & {};
4363
+ allowedActions: ("activate_held" | "materialize_and_activate" | "pause_candidate")[];
4364
+ maxConcurrentCandidates: number;
4365
+ maxActivationsPerCandidate: 1;
4366
+ totalExplorationCap: {
4367
+ 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";
4017
4368
  amountMicros: string;
4018
4369
  } & {};
4019
4370
  measurementGuard: {
@@ -4097,7 +4448,294 @@ export declare function cpqlMissingOutcomeBound(input: {
4097
4448
  qualifiedContacts: string;
4098
4449
  verifiedSpend: Money;
4099
4450
  }): number | null;
4100
- export type ResonanceAllocationHorizon = Value<typeof allocationHorizon>;
4451
+ export type ResonanceAllocationHorizon = Value<typeof allocationHorizon>;
4452
+ declare const reportedOutcomeSource: Field<{
4453
+ method: "observational_cpql_missing_outcome_bound_v1";
4454
+ eligibleContacts: string;
4455
+ fullyResolvedContacts: string;
4456
+ qualifiedContacts: string;
4457
+ sourceRevision: string;
4458
+ qualificationRuleRef: {
4459
+ projectId: string;
4460
+ site: string;
4461
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4462
+ id: string;
4463
+ revision: string;
4464
+ digest: string;
4465
+ } & {};
4466
+ universeComplete: true;
4467
+ } & {}>;
4468
+ export type ResonanceReportedOutcomeSource = Value<typeof reportedOutcomeSource>;
4469
+ declare const providerReadClock: Field<{
4470
+ kind: "sql_before_provider_read_lower_bound_v1";
4471
+ notBeforeAt: string;
4472
+ } & {}>;
4473
+ export type ResonanceProviderReadClock = Value<typeof providerReadClock>;
4474
+ declare const channelReportedCost: Field<{
4475
+ basis: "provider_reported_snapshot_v1";
4476
+ observationId: string;
4477
+ sourceEvidenceDigest: string;
4478
+ reportedSpend: {
4479
+ 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";
4480
+ amountMicros: string;
4481
+ } & {};
4482
+ queriedFrom: string;
4483
+ queriedThrough: string;
4484
+ firstReceivedAt: string;
4485
+ receivedAt: string;
4486
+ recordedAt: string;
4487
+ providerFinality: "unknown";
4488
+ correctionsPossible: true;
4489
+ readClock: {
4490
+ kind: "sql_before_provider_read_lower_bound_v1";
4491
+ notBeforeAt: string;
4492
+ } & {};
4493
+ } & {}>;
4494
+ export type ResonanceChannelReportedCost = Value<typeof channelReportedCost>;
4495
+ export type ResonanceSqlClockChannelReportedCost = ResonanceChannelReportedCost;
4496
+ declare const reportedOptimizationEvidence: Field<{
4497
+ id: string;
4498
+ revision: string;
4499
+ evidenceDigest: string;
4500
+ projectId: string;
4501
+ campaignId: string;
4502
+ preparedPlanId: string;
4503
+ reviewDigest: string;
4504
+ observedAt: string;
4505
+ windowStart: string;
4506
+ windowEnd: string;
4507
+ dataThrough: string | null;
4508
+ lastAdjustmentAt: string | null;
4509
+ currentKillRevision: number;
4510
+ goalRevision: string;
4511
+ objective: {
4512
+ source: {
4513
+ projectId: string;
4514
+ site: string;
4515
+ kind: "accepted_form" | "approved_application" | "completed_booking" | "net_paid_order" | "qualified_lead";
4516
+ id: string;
4517
+ revision: string;
4518
+ } & {};
4519
+ measurementRevision: string;
4520
+ countingUnit: "net_order" | "unique_qualified_contact" | "unique_source";
4521
+ attributionWindowDays: number;
4522
+ maturityDelaySeconds: number;
4523
+ qualificationRuleRef: ({
4524
+ projectId: string;
4525
+ site: string;
4526
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4527
+ id: string;
4528
+ revision: string;
4529
+ digest: string;
4530
+ } & {}) | null;
4531
+ } & {
4532
+ qualificationRule?: ({
4533
+ schemaVersion: 1;
4534
+ semantics: "current_at_observation";
4535
+ positiveStageKeys: string[];
4536
+ finalNegativeStageKeys: string[];
4537
+ pendingStageKeys: string[];
4538
+ existingContactPolicy: "include_source_cohort";
4539
+ attributionModel: "first_party_last_touch_marker_v1";
4540
+ } & {}) | undefined;
4541
+ };
4542
+ policyDigest: string;
4543
+ trackingState: "blocked" | "healthy" | "unknown";
4544
+ coverageBasisPoints: number | null;
4545
+ assignmentCheck: "failed" | "not_applicable" | "pass" | "unknown";
4546
+ powerCheck: "failed" | "not_applicable" | "pass" | "unknown";
4547
+ evidenceKind: "reported_cpql_sql_clock_v1";
4548
+ resolvedPolicy: {
4549
+ schemaVersion: 1;
4550
+ sourceRef: ({
4551
+ projectId: string;
4552
+ site: string;
4553
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4554
+ id: string;
4555
+ revision: string;
4556
+ digest: string;
4557
+ } & {}) | null;
4558
+ decisionKind: "observational_allocation";
4559
+ eligibleGoal: "qualified_lead";
4560
+ minimumMatureExposures: number;
4561
+ minimumMatureOutcomes: number;
4562
+ minimumCoverageBasisPoints: number;
4563
+ maxEvidenceAgeSeconds: number;
4564
+ maturityDelaySeconds: number;
4565
+ cooldownSeconds: number;
4566
+ donorTransferBasisPoints: number;
4567
+ maxUncertaintyBasisPoints: number;
4568
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
4569
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
4570
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
4571
+ algorithm: "reported_cpql_conserved_transfer_v1";
4572
+ costBasis: "provider_reported_snapshot_v1";
4573
+ costRevisionRisk: "accepted_provisional";
4574
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
4575
+ } & {};
4576
+ channels: ({
4577
+ channelId: string;
4578
+ site: string;
4579
+ accountBindingId: string;
4580
+ trackingState: "blocked" | "healthy" | "unknown";
4581
+ coverageBasisPoints: number | null;
4582
+ coverageFamily: "crm_attribution" | "experiment_exposure" | "provider_import";
4583
+ coverageDefinitionRef: {
4584
+ projectId: string;
4585
+ site: string;
4586
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4587
+ id: string;
4588
+ revision: string;
4589
+ digest: string;
4590
+ } & {};
4591
+ coveredNumerator: string | null;
4592
+ eligibleDenominator: string | null;
4593
+ uncertaintyBasisPoints: number | null;
4594
+ dedupeCheck: "failed" | "not_applicable" | "pass" | "unknown";
4595
+ qualificationCheck: "failed" | "not_applicable" | "pass" | "unknown";
4596
+ reasonCodes: string[];
4597
+ capabilityRevision: string;
4598
+ budgetMode: "average_daily" | "campaign_total" | "daily" | "lifetime";
4599
+ allocationHorizon: ({
4600
+ kind: "finite_period";
4601
+ startAt: string;
4602
+ endAt: string;
4603
+ timeZone: string;
4604
+ sourceRef: string;
4605
+ } & {}) | ({
4606
+ kind: "daily_average";
4607
+ timeZone: string;
4608
+ sourceRef: string;
4609
+ } & {}) | null;
4610
+ matureThrough: string | null;
4611
+ dataThrough: string | null;
4612
+ goalRevision: string;
4613
+ countingUnit: "net_order" | "unique_qualified_contact" | "unique_source";
4614
+ attributionModel: string;
4615
+ attributionWindowDays: number;
4616
+ policyRevision: string;
4617
+ currentAllocation: {
4618
+ 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";
4619
+ amountMicros: string;
4620
+ } & {};
4621
+ remoteSnapshotDigest: string;
4622
+ observations: (({
4623
+ projectId: string;
4624
+ site: string;
4625
+ campaignId: string;
4626
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4627
+ source: "experiment" | "first_party" | "provider";
4628
+ sourceRef: string;
4629
+ goalRevision: string | null;
4630
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4631
+ windowStart: string;
4632
+ windowEnd: string;
4633
+ timeZone: string;
4634
+ attributionModel: string | null;
4635
+ asOf: string;
4636
+ dataThrough: string | null;
4637
+ maturityDelaySeconds: number;
4638
+ coverageBasisPoints: number | null;
4639
+ eligibleExposures: string | null;
4640
+ matureOutcomes: string | null;
4641
+ native: ({
4642
+ unit: string;
4643
+ amount: string;
4644
+ 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" | null;
4645
+ unitExponent: number;
4646
+ providerVersion: string;
4647
+ } & {}) | null;
4648
+ state: "observed";
4649
+ value: ({
4650
+ kind: "count";
4651
+ count: string;
4652
+ } & {}) | ({
4653
+ kind: "money";
4654
+ money: {
4655
+ 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";
4656
+ amountMicros: string;
4657
+ } & {};
4658
+ } & {}) | ({
4659
+ kind: "ratio";
4660
+ numerator: string;
4661
+ denominator: string;
4662
+ } & {});
4663
+ } & {}) | ({
4664
+ projectId: string;
4665
+ site: string;
4666
+ campaignId: string;
4667
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4668
+ source: "experiment" | "first_party" | "provider";
4669
+ sourceRef: string;
4670
+ goalRevision: string | null;
4671
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4672
+ windowStart: string;
4673
+ windowEnd: string;
4674
+ timeZone: string;
4675
+ attributionModel: string | null;
4676
+ asOf: string;
4677
+ dataThrough: string | null;
4678
+ maturityDelaySeconds: number;
4679
+ coverageBasisPoints: number | null;
4680
+ eligibleExposures: string | null;
4681
+ matureOutcomes: string | null;
4682
+ native: ({
4683
+ unit: string;
4684
+ amount: string;
4685
+ 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" | null;
4686
+ unitExponent: number;
4687
+ providerVersion: string;
4688
+ } & {}) | null;
4689
+ state: "delayed" | "insufficient" | "unavailable" | "unknown";
4690
+ value: null;
4691
+ reasonCode: string;
4692
+ } & {}))[];
4693
+ providerUnitExponent: number;
4694
+ providerMaxUnits: string;
4695
+ channelReportedCost: {
4696
+ basis: "provider_reported_snapshot_v1";
4697
+ observationId: string;
4698
+ sourceEvidenceDigest: string;
4699
+ reportedSpend: {
4700
+ 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";
4701
+ amountMicros: string;
4702
+ } & {};
4703
+ queriedFrom: string;
4704
+ queriedThrough: string;
4705
+ firstReceivedAt: string;
4706
+ receivedAt: string;
4707
+ recordedAt: string;
4708
+ providerFinality: "unknown";
4709
+ correctionsPossible: true;
4710
+ readClock: {
4711
+ kind: "sql_before_provider_read_lower_bound_v1";
4712
+ notBeforeAt: string;
4713
+ } & {};
4714
+ } & {};
4715
+ outcomeSource: {
4716
+ method: "observational_cpql_missing_outcome_bound_v1";
4717
+ eligibleContacts: string;
4718
+ fullyResolvedContacts: string;
4719
+ qualifiedContacts: string;
4720
+ sourceRevision: string;
4721
+ qualificationRuleRef: {
4722
+ projectId: string;
4723
+ site: string;
4724
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
4725
+ id: string;
4726
+ revision: string;
4727
+ digest: string;
4728
+ } & {};
4729
+ universeComplete: true;
4730
+ } & {};
4731
+ } & {})[];
4732
+ } & {}>;
4733
+ export type ResonanceReportedCostEvidence = Value<typeof reportedOptimizationEvidence>;
4734
+ export type ResonanceSqlClockReportedCostEvidence = ResonanceReportedCostEvidence;
4735
+ /** Conditional outcome sensitivity only. This does not bound later provider-cost corrections. */
4736
+ export declare function reportedCpqlMissingOutcomeBound(input: ResonanceReportedOutcomeSource & {
4737
+ reportedSpend: Money;
4738
+ }): number | null;
4101
4739
  declare const finiteOptimizationEvidence: Field<{
4102
4740
  id: string;
4103
4741
  revision: string;
@@ -4255,11 +4893,11 @@ declare const finiteOptimizationEvidence: Field<{
4255
4893
  projectId: string;
4256
4894
  site: string;
4257
4895
  campaignId: string;
4258
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
4896
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4259
4897
  source: "experiment" | "first_party" | "provider";
4260
4898
  sourceRef: string;
4261
4899
  goalRevision: string | null;
4262
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
4900
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4263
4901
  windowStart: string;
4264
4902
  windowEnd: string;
4265
4903
  timeZone: string;
@@ -4296,11 +4934,11 @@ declare const finiteOptimizationEvidence: Field<{
4296
4934
  projectId: string;
4297
4935
  site: string;
4298
4936
  campaignId: string;
4299
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
4937
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4300
4938
  source: "experiment" | "first_party" | "provider";
4301
4939
  sourceRef: string;
4302
4940
  goalRevision: string | null;
4303
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
4941
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4304
4942
  windowStart: string;
4305
4943
  windowEnd: string;
4306
4944
  timeZone: string;
@@ -4329,11 +4967,11 @@ declare const finiteOptimizationEvidence: Field<{
4329
4967
  projectId: string;
4330
4968
  site: string;
4331
4969
  campaignId: string;
4332
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
4970
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4333
4971
  source: "experiment" | "first_party" | "provider";
4334
4972
  sourceRef: string;
4335
4973
  goalRevision: string | null;
4336
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
4974
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4337
4975
  windowStart: string;
4338
4976
  windowEnd: string;
4339
4977
  timeZone: string;
@@ -4370,11 +5008,11 @@ declare const finiteOptimizationEvidence: Field<{
4370
5008
  projectId: string;
4371
5009
  site: string;
4372
5010
  campaignId: string;
4373
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
5011
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4374
5012
  source: "experiment" | "first_party" | "provider";
4375
5013
  sourceRef: string;
4376
5014
  goalRevision: string | null;
4377
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
5015
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4378
5016
  windowStart: string;
4379
5017
  windowEnd: string;
4380
5018
  timeZone: string;
@@ -4448,6 +5086,10 @@ declare const optimizationEvidence: Field<({
4448
5086
  } & {}) | undefined;
4449
5087
  };
4450
5088
  policyDigest: string;
5089
+ trackingState: "blocked" | "healthy" | "unknown";
5090
+ coverageBasisPoints: number | null;
5091
+ assignmentCheck: "failed" | "not_applicable" | "pass" | "unknown";
5092
+ powerCheck: "failed" | "not_applicable" | "pass" | "unknown";
4451
5093
  resolvedPolicy: {
4452
5094
  schemaVersion: 1;
4453
5095
  sourceRef: ({
@@ -4473,10 +5115,6 @@ declare const optimizationEvidence: Field<({
4473
5115
  attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
4474
5116
  requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
4475
5117
  } & {};
4476
- trackingState: "blocked" | "healthy" | "unknown";
4477
- coverageBasisPoints: number | null;
4478
- assignmentCheck: "failed" | "not_applicable" | "pass" | "unknown";
4479
- powerCheck: "failed" | "not_applicable" | "pass" | "unknown";
4480
5118
  channels: ({
4481
5119
  channelId: string;
4482
5120
  site: string;
@@ -4495,6 +5133,107 @@ declare const optimizationEvidence: Field<({
4495
5133
  coveredNumerator: string | null;
4496
5134
  eligibleDenominator: string | null;
4497
5135
  uncertaintyBasisPoints: number | null;
5136
+ dedupeCheck: "failed" | "not_applicable" | "pass" | "unknown";
5137
+ qualificationCheck: "failed" | "not_applicable" | "pass" | "unknown";
5138
+ reasonCodes: string[];
5139
+ capabilityRevision: string;
5140
+ budgetMode: "average_daily" | "campaign_total" | "daily" | "lifetime";
5141
+ allocationHorizon: ({
5142
+ kind: "finite_period";
5143
+ startAt: string;
5144
+ endAt: string;
5145
+ timeZone: string;
5146
+ sourceRef: string;
5147
+ } & {}) | ({
5148
+ kind: "daily_average";
5149
+ timeZone: string;
5150
+ sourceRef: string;
5151
+ } & {}) | null;
5152
+ matureThrough: string | null;
5153
+ dataThrough: string | null;
5154
+ goalRevision: string;
5155
+ countingUnit: "net_order" | "unique_qualified_contact" | "unique_source";
5156
+ attributionModel: string;
5157
+ attributionWindowDays: number;
5158
+ policyRevision: string;
5159
+ currentAllocation: {
5160
+ 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";
5161
+ amountMicros: string;
5162
+ } & {};
5163
+ remoteSnapshotDigest: string;
5164
+ observations: (({
5165
+ projectId: string;
5166
+ site: string;
5167
+ campaignId: string;
5168
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
5169
+ source: "experiment" | "first_party" | "provider";
5170
+ sourceRef: string;
5171
+ goalRevision: string | null;
5172
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
5173
+ windowStart: string;
5174
+ windowEnd: string;
5175
+ timeZone: string;
5176
+ attributionModel: string | null;
5177
+ asOf: string;
5178
+ dataThrough: string | null;
5179
+ maturityDelaySeconds: number;
5180
+ coverageBasisPoints: number | null;
5181
+ eligibleExposures: string | null;
5182
+ matureOutcomes: string | null;
5183
+ native: ({
5184
+ unit: string;
5185
+ amount: string;
5186
+ 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" | null;
5187
+ unitExponent: number;
5188
+ providerVersion: string;
5189
+ } & {}) | null;
5190
+ state: "observed";
5191
+ value: ({
5192
+ kind: "count";
5193
+ count: string;
5194
+ } & {}) | ({
5195
+ kind: "money";
5196
+ money: {
5197
+ 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";
5198
+ amountMicros: string;
5199
+ } & {};
5200
+ } & {}) | ({
5201
+ kind: "ratio";
5202
+ numerator: string;
5203
+ denominator: string;
5204
+ } & {});
5205
+ } & {}) | ({
5206
+ projectId: string;
5207
+ site: string;
5208
+ campaignId: string;
5209
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
5210
+ source: "experiment" | "first_party" | "provider";
5211
+ sourceRef: string;
5212
+ goalRevision: string | null;
5213
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
5214
+ windowStart: string;
5215
+ windowEnd: string;
5216
+ timeZone: string;
5217
+ attributionModel: string | null;
5218
+ asOf: string;
5219
+ dataThrough: string | null;
5220
+ maturityDelaySeconds: number;
5221
+ coverageBasisPoints: number | null;
5222
+ eligibleExposures: string | null;
5223
+ matureOutcomes: string | null;
5224
+ native: ({
5225
+ unit: string;
5226
+ amount: string;
5227
+ 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" | null;
5228
+ unitExponent: number;
5229
+ providerVersion: string;
5230
+ } & {}) | null;
5231
+ state: "delayed" | "insufficient" | "unavailable" | "unknown";
5232
+ value: null;
5233
+ reasonCode: string;
5234
+ } & {}))[];
5235
+ providerUnitExponent: number;
5236
+ providerMaxUnits: string;
4498
5237
  uncertaintySource: ({
4499
5238
  method: "observational_cpql_missing_outcome_bound_v1";
4500
5239
  eligibleContacts: string;
@@ -4516,6 +5255,105 @@ declare const optimizationEvidence: Field<({
4516
5255
  universeComplete: true;
4517
5256
  spendPeriodComplete: true;
4518
5257
  } & {}) | null;
5258
+ } & {})[];
5259
+ } & {}) | ({
5260
+ id: string;
5261
+ revision: string;
5262
+ evidenceDigest: string;
5263
+ projectId: string;
5264
+ campaignId: string;
5265
+ preparedPlanId: string;
5266
+ reviewDigest: string;
5267
+ observedAt: string;
5268
+ windowStart: string;
5269
+ windowEnd: string;
5270
+ dataThrough: string | null;
5271
+ lastAdjustmentAt: string | null;
5272
+ currentKillRevision: number;
5273
+ goalRevision: string;
5274
+ objective: {
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
+ maturityDelaySeconds: number;
5286
+ qualificationRuleRef: ({
5287
+ projectId: string;
5288
+ site: string;
5289
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5290
+ id: string;
5291
+ revision: string;
5292
+ digest: string;
5293
+ } & {}) | null;
5294
+ } & {
5295
+ qualificationRule?: ({
5296
+ schemaVersion: 1;
5297
+ semantics: "current_at_observation";
5298
+ positiveStageKeys: string[];
5299
+ finalNegativeStageKeys: string[];
5300
+ pendingStageKeys: string[];
5301
+ existingContactPolicy: "include_source_cohort";
5302
+ attributionModel: "first_party_last_touch_marker_v1";
5303
+ } & {}) | undefined;
5304
+ };
5305
+ policyDigest: string;
5306
+ trackingState: "blocked" | "healthy" | "unknown";
5307
+ coverageBasisPoints: number | null;
5308
+ assignmentCheck: "failed" | "not_applicable" | "pass" | "unknown";
5309
+ powerCheck: "failed" | "not_applicable" | "pass" | "unknown";
5310
+ evidenceKind: "reported_cpql_sql_clock_v1";
5311
+ resolvedPolicy: {
5312
+ schemaVersion: 1;
5313
+ sourceRef: ({
5314
+ projectId: string;
5315
+ site: string;
5316
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5317
+ id: string;
5318
+ revision: string;
5319
+ digest: string;
5320
+ } & {}) | null;
5321
+ decisionKind: "observational_allocation";
5322
+ eligibleGoal: "qualified_lead";
5323
+ minimumMatureExposures: number;
5324
+ minimumMatureOutcomes: number;
5325
+ minimumCoverageBasisPoints: number;
5326
+ maxEvidenceAgeSeconds: number;
5327
+ maturityDelaySeconds: number;
5328
+ cooldownSeconds: number;
5329
+ donorTransferBasisPoints: number;
5330
+ maxUncertaintyBasisPoints: number;
5331
+ uncertaintyMethod: "observational_cpql_missing_outcome_bound_v1";
5332
+ attributionModel: "first_party_last_touch_marker_v1" | "first_party_source" | "first_touch" | "last_touch" | "provider_reported";
5333
+ requiredChecks: ("assignment" | "dedupe" | "power" | "qualification" | "tracking" | "uncertainty")[];
5334
+ algorithm: "reported_cpql_conserved_transfer_v1";
5335
+ costBasis: "provider_reported_snapshot_v1";
5336
+ costRevisionRisk: "accepted_provisional";
5337
+ readClockKind: "sql_before_provider_read_lower_bound_v1";
5338
+ } & {};
5339
+ channels: ({
5340
+ channelId: string;
5341
+ site: string;
5342
+ accountBindingId: string;
5343
+ trackingState: "blocked" | "healthy" | "unknown";
5344
+ coverageBasisPoints: number | null;
5345
+ coverageFamily: "crm_attribution" | "experiment_exposure" | "provider_import";
5346
+ coverageDefinitionRef: {
5347
+ projectId: string;
5348
+ site: string;
5349
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5350
+ id: string;
5351
+ revision: string;
5352
+ digest: string;
5353
+ } & {};
5354
+ coveredNumerator: string | null;
5355
+ eligibleDenominator: string | null;
5356
+ uncertaintyBasisPoints: number | null;
4519
5357
  dedupeCheck: "failed" | "not_applicable" | "pass" | "unknown";
4520
5358
  qualificationCheck: "failed" | "not_applicable" | "pass" | "unknown";
4521
5359
  reasonCodes: string[];
@@ -4548,11 +5386,11 @@ declare const optimizationEvidence: Field<({
4548
5386
  projectId: string;
4549
5387
  site: string;
4550
5388
  campaignId: string;
4551
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
5389
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4552
5390
  source: "experiment" | "first_party" | "provider";
4553
5391
  sourceRef: string;
4554
5392
  goalRevision: string | null;
4555
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
5393
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4556
5394
  windowStart: string;
4557
5395
  windowEnd: string;
4558
5396
  timeZone: string;
@@ -4589,11 +5427,11 @@ declare const optimizationEvidence: Field<({
4589
5427
  projectId: string;
4590
5428
  site: string;
4591
5429
  campaignId: string;
4592
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
5430
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4593
5431
  source: "experiment" | "first_party" | "provider";
4594
5432
  sourceRef: string;
4595
5433
  goalRevision: string | null;
4596
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
5434
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4597
5435
  windowStart: string;
4598
5436
  windowEnd: string;
4599
5437
  timeZone: string;
@@ -4617,6 +5455,42 @@ declare const optimizationEvidence: Field<({
4617
5455
  } & {}))[];
4618
5456
  providerUnitExponent: number;
4619
5457
  providerMaxUnits: string;
5458
+ channelReportedCost: {
5459
+ basis: "provider_reported_snapshot_v1";
5460
+ observationId: string;
5461
+ sourceEvidenceDigest: string;
5462
+ reportedSpend: {
5463
+ 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";
5464
+ amountMicros: string;
5465
+ } & {};
5466
+ queriedFrom: string;
5467
+ queriedThrough: string;
5468
+ firstReceivedAt: string;
5469
+ receivedAt: string;
5470
+ recordedAt: string;
5471
+ providerFinality: "unknown";
5472
+ correctionsPossible: true;
5473
+ readClock: {
5474
+ kind: "sql_before_provider_read_lower_bound_v1";
5475
+ notBeforeAt: string;
5476
+ } & {};
5477
+ } & {};
5478
+ outcomeSource: {
5479
+ method: "observational_cpql_missing_outcome_bound_v1";
5480
+ eligibleContacts: string;
5481
+ fullyResolvedContacts: string;
5482
+ qualifiedContacts: string;
5483
+ sourceRevision: string;
5484
+ qualificationRuleRef: {
5485
+ projectId: string;
5486
+ site: string;
5487
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
5488
+ id: string;
5489
+ revision: string;
5490
+ digest: string;
5491
+ } & {};
5492
+ universeComplete: true;
5493
+ } & {};
4620
5494
  } & {})[];
4621
5495
  } & {}) | ({
4622
5496
  id: string;
@@ -4775,11 +5649,11 @@ declare const optimizationEvidence: Field<({
4775
5649
  projectId: string;
4776
5650
  site: string;
4777
5651
  campaignId: string;
4778
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
5652
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4779
5653
  source: "experiment" | "first_party" | "provider";
4780
5654
  sourceRef: string;
4781
5655
  goalRevision: string | null;
4782
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
5656
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4783
5657
  windowStart: string;
4784
5658
  windowEnd: string;
4785
5659
  timeZone: string;
@@ -4816,11 +5690,11 @@ declare const optimizationEvidence: Field<({
4816
5690
  projectId: string;
4817
5691
  site: string;
4818
5692
  campaignId: string;
4819
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
5693
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4820
5694
  source: "experiment" | "first_party" | "provider";
4821
5695
  sourceRef: string;
4822
5696
  goalRevision: string | null;
4823
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
5697
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4824
5698
  windowStart: string;
4825
5699
  windowEnd: string;
4826
5700
  timeZone: string;
@@ -4849,11 +5723,11 @@ declare const optimizationEvidence: Field<({
4849
5723
  projectId: string;
4850
5724
  site: string;
4851
5725
  campaignId: string;
4852
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
5726
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4853
5727
  source: "experiment" | "first_party" | "provider";
4854
5728
  sourceRef: string;
4855
5729
  goalRevision: string | null;
4856
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
5730
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4857
5731
  windowStart: string;
4858
5732
  windowEnd: string;
4859
5733
  timeZone: string;
@@ -4890,11 +5764,11 @@ declare const optimizationEvidence: Field<({
4890
5764
  projectId: string;
4891
5765
  site: string;
4892
5766
  campaignId: string;
4893
- name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "revenue" | "spend";
5767
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
4894
5768
  source: "experiment" | "first_party" | "provider";
4895
5769
  sourceRef: string;
4896
5770
  goalRevision: string | null;
4897
- countingUnit: "net_order" | "provider_aggregate" | "unique_qualified_contact" | "unique_source";
5771
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
4898
5772
  windowStart: string;
4899
5773
  windowEnd: string;
4900
5774
  timeZone: string;
@@ -5169,6 +6043,17 @@ export type ResonanceOptimizationDecision = Value<typeof optimizationDecision>;
5169
6043
  export declare function parseResonanceOptimizationDecision(v: unknown, evidence?: unknown, preparedPlan?: unknown): ResonanceOptimizationDecision;
5170
6044
  export declare const RESONANCE_OPTIMIZATION_EVIDENCE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
5171
6045
  export declare const RESONANCE_OPTIMIZATION_DECISION_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6046
+ /**
6047
+ * Capability witness for the browser Meta loader. The API issues it only after its dataset assertions pass; the
6048
+ * browser reads it, never decides it. It names the loader controls revision and the policy revision it was issued under.
6049
+ */
6050
+ declare const metaBrowserWitness: Field<{
6051
+ controlsRevision: string;
6052
+ policyRevision: string;
6053
+ witnessId: string;
6054
+ assertedAt: string;
6055
+ } & {}>;
6056
+ export type ResonanceMetaBrowserWitness = Value<typeof metaBrowserWitness>;
5172
6057
  declare const measurementConfig: Field<{
5173
6058
  projectId: string;
5174
6059
  site: string;
@@ -5189,7 +6074,15 @@ declare const measurementConfig: Field<{
5189
6074
  provider: "meta_ads";
5190
6075
  id: string;
5191
6076
  pixelId: string;
5192
- } & {}))[];
6077
+ } & {
6078
+ browserWitness?: ({
6079
+ controlsRevision: string;
6080
+ policyRevision: string;
6081
+ witnessId: string;
6082
+ assertedAt: string;
6083
+ } & {}) | undefined;
6084
+ tagManagerAttested?: boolean | undefined;
6085
+ }))[];
5193
6086
  resourceRules: ({
5194
6087
  id: string;
5195
6088
  revision: string;
@@ -5203,7 +6096,9 @@ declare const measurementConfig: Field<{
5203
6096
  } & {};
5204
6097
  path: string;
5205
6098
  interestKey: string;
5206
- } & {})[];
6099
+ } & {
6100
+ metaEligible?: boolean | undefined;
6101
+ })[];
5207
6102
  } & {}>;
5208
6103
  export type ResonanceMeasurementConfig = Value<typeof measurementConfig>;
5209
6104
  export declare function parseResonanceMeasurementConfig(v: unknown): ResonanceMeasurementConfig;
@@ -5353,7 +6248,9 @@ declare const audienceDraft: Field<{
5353
6248
  retentionDays: number;
5354
6249
  policyRevision: string;
5355
6250
  currentConsentPolicyRevision: string;
5356
- } & {};
6251
+ } & {
6252
+ minDaysSinceVisit?: number | undefined;
6253
+ };
5357
6254
  } & {
5358
6255
  expectedRevision?: number | undefined;
5359
6256
  }>;
@@ -5486,7 +6383,15 @@ declare const measurementCurrent: Field<({
5486
6383
  provider: "meta_ads";
5487
6384
  id: string;
5488
6385
  pixelId: string;
5489
- } & {}))[];
6386
+ } & {
6387
+ browserWitness?: ({
6388
+ controlsRevision: string;
6389
+ policyRevision: string;
6390
+ witnessId: string;
6391
+ assertedAt: string;
6392
+ } & {}) | undefined;
6393
+ tagManagerAttested?: boolean | undefined;
6394
+ }))[];
5490
6395
  resourceRules: ({
5491
6396
  id: string;
5492
6397
  revision: string;
@@ -5500,7 +6405,9 @@ declare const measurementCurrent: Field<({
5500
6405
  } & {};
5501
6406
  path: string;
5502
6407
  interestKey: string;
5503
- } & {})[];
6408
+ } & {
6409
+ metaEligible?: boolean | undefined;
6410
+ })[];
5504
6411
  } & {};
5505
6412
  saveOperationId: string;
5506
6413
  pages: ({
@@ -5544,7 +6451,15 @@ declare const measurementSnapshot: Field<{
5544
6451
  provider: "meta_ads";
5545
6452
  id: string;
5546
6453
  pixelId: string;
5547
- } & {}))[];
6454
+ } & {
6455
+ browserWitness?: ({
6456
+ controlsRevision: string;
6457
+ policyRevision: string;
6458
+ witnessId: string;
6459
+ assertedAt: string;
6460
+ } & {}) | undefined;
6461
+ tagManagerAttested?: boolean | undefined;
6462
+ }))[];
5548
6463
  resourceRules: ({
5549
6464
  id: string;
5550
6465
  revision: string;
@@ -5558,7 +6473,9 @@ declare const measurementSnapshot: Field<{
5558
6473
  } & {};
5559
6474
  path: string;
5560
6475
  interestKey: string;
5561
- } & {})[];
6476
+ } & {
6477
+ metaEligible?: boolean | undefined;
6478
+ })[];
5562
6479
  } & {};
5563
6480
  pages: ({
5564
6481
  pageId: string;
@@ -5598,7 +6515,15 @@ declare const measurementSaveResponse: Field<{
5598
6515
  provider: "meta_ads";
5599
6516
  id: string;
5600
6517
  pixelId: string;
5601
- } & {}))[];
6518
+ } & {
6519
+ browserWitness?: ({
6520
+ controlsRevision: string;
6521
+ policyRevision: string;
6522
+ witnessId: string;
6523
+ assertedAt: string;
6524
+ } & {}) | undefined;
6525
+ tagManagerAttested?: boolean | undefined;
6526
+ }))[];
5602
6527
  resourceRules: ({
5603
6528
  id: string;
5604
6529
  revision: string;
@@ -5612,7 +6537,9 @@ declare const measurementSaveResponse: Field<{
5612
6537
  } & {};
5613
6538
  path: string;
5614
6539
  interestKey: string;
5615
- } & {})[];
6540
+ } & {
6541
+ metaEligible?: boolean | undefined;
6542
+ })[];
5616
6543
  } & {};
5617
6544
  pages: ({
5618
6545
  pageId: string;
@@ -5664,7 +6591,15 @@ declare const measurementProjectionContext: Field<{
5664
6591
  provider: "meta_ads";
5665
6592
  id: string;
5666
6593
  pixelId: string;
5667
- } & {}))[];
6594
+ } & {
6595
+ browserWitness?: ({
6596
+ controlsRevision: string;
6597
+ policyRevision: string;
6598
+ witnessId: string;
6599
+ assertedAt: string;
6600
+ } & {}) | undefined;
6601
+ tagManagerAttested?: boolean | undefined;
6602
+ }))[];
5668
6603
  resourceRules: ({
5669
6604
  id: string;
5670
6605
  revision: string;
@@ -5678,7 +6613,9 @@ declare const measurementProjectionContext: Field<{
5678
6613
  } & {};
5679
6614
  path: string;
5680
6615
  interestKey: string;
5681
- } & {})[];
6616
+ } & {
6617
+ metaEligible?: boolean | undefined;
6618
+ })[];
5682
6619
  } & {};
5683
6620
  saveOperationId: string;
5684
6621
  pages: ({
@@ -5726,7 +6663,15 @@ export declare function projectResonanceMeasurementConfiguration(value: Resonanc
5726
6663
  provider: "meta_ads";
5727
6664
  id: string;
5728
6665
  pixelId: string;
5729
- } & {}))[];
6666
+ } & {
6667
+ browserWitness?: ({
6668
+ controlsRevision: string;
6669
+ policyRevision: string;
6670
+ witnessId: string;
6671
+ assertedAt: string;
6672
+ } & {}) | undefined;
6673
+ tagManagerAttested?: boolean | undefined;
6674
+ }))[];
5730
6675
  resourceRules: ({
5731
6676
  id: string;
5732
6677
  revision: string;
@@ -5740,7 +6685,9 @@ export declare function projectResonanceMeasurementConfiguration(value: Resonanc
5740
6685
  } & {};
5741
6686
  path: string;
5742
6687
  interestKey: string;
5743
- } & {})[];
6688
+ } & {
6689
+ metaEligible?: boolean | undefined;
6690
+ })[];
5744
6691
  } & {};
5745
6692
  pages: {
5746
6693
  pageId: string;
@@ -5812,7 +6759,9 @@ declare const metaSnapshot: Field<{
5812
6759
  retentionDays: number;
5813
6760
  exclusionRuleIds: string[];
5814
6761
  consentPurpose: "ad_personalization";
5815
- } & {})[];
6762
+ } & {
6763
+ minDaysSinceVisit?: number | undefined;
6764
+ })[];
5816
6765
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
5817
6766
  pageRef: {
5818
6767
  connectionId: string;
@@ -5863,6 +6812,19 @@ declare const metaSnapshot: Field<{
5863
6812
  } & {}) | ({
5864
6813
  mode: "provider_managed";
5865
6814
  } & {}) | undefined;
6815
+ channelGroup?: ({
6816
+ key: string;
6817
+ label: string;
6818
+ } & {}) | undefined;
6819
+ property?: ({
6820
+ key: string;
6821
+ label: string;
6822
+ } & {}) | undefined;
6823
+ tier?: ({
6824
+ label: string;
6825
+ } & {}) | undefined;
6826
+ primaryText?: string | undefined;
6827
+ convertersAcknowledged?: true | undefined;
5866
6828
  };
5867
6829
  account: {
5868
6830
  id: string;
@@ -5905,7 +6867,9 @@ declare const metaSnapshot: Field<{
5905
6867
  retentionDays: number;
5906
6868
  exclusionRuleIds: string[];
5907
6869
  consentPurpose: "ad_personalization";
5908
- } & {};
6870
+ } & {
6871
+ minDaysSinceVisit?: number | undefined;
6872
+ };
5909
6873
  name: string;
5910
6874
  resourceRuleRef: {
5911
6875
  id: string;
@@ -5995,7 +6959,9 @@ declare const metaView: Field<({
5995
6959
  retentionDays: number;
5996
6960
  exclusionRuleIds: string[];
5997
6961
  consentPurpose: "ad_personalization";
5998
- } & {})[];
6962
+ } & {
6963
+ minDaysSinceVisit?: number | undefined;
6964
+ })[];
5999
6965
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
6000
6966
  pageRef: {
6001
6967
  connectionId: string;
@@ -6046,6 +7012,19 @@ declare const metaView: Field<({
6046
7012
  } & {}) | ({
6047
7013
  mode: "provider_managed";
6048
7014
  } & {}) | undefined;
7015
+ channelGroup?: ({
7016
+ key: string;
7017
+ label: string;
7018
+ } & {}) | undefined;
7019
+ property?: ({
7020
+ key: string;
7021
+ label: string;
7022
+ } & {}) | undefined;
7023
+ tier?: ({
7024
+ label: string;
7025
+ } & {}) | undefined;
7026
+ primaryText?: string | undefined;
7027
+ convertersAcknowledged?: true | undefined;
6049
7028
  };
6050
7029
  account: {
6051
7030
  id: string;
@@ -6088,7 +7067,9 @@ declare const metaView: Field<({
6088
7067
  retentionDays: number;
6089
7068
  exclusionRuleIds: string[];
6090
7069
  consentPurpose: "ad_personalization";
6091
- } & {};
7070
+ } & {
7071
+ minDaysSinceVisit?: number | undefined;
7072
+ };
6092
7073
  name: string;
6093
7074
  resourceRuleRef: {
6094
7075
  id: string;
@@ -6163,7 +7144,9 @@ declare const metaSaveResponse: Field<{
6163
7144
  retentionDays: number;
6164
7145
  exclusionRuleIds: string[];
6165
7146
  consentPurpose: "ad_personalization";
6166
- } & {})[];
7147
+ } & {
7148
+ minDaysSinceVisit?: number | undefined;
7149
+ })[];
6167
7150
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
6168
7151
  pageRef: {
6169
7152
  connectionId: string;
@@ -6214,6 +7197,19 @@ declare const metaSaveResponse: Field<{
6214
7197
  } & {}) | ({
6215
7198
  mode: "provider_managed";
6216
7199
  } & {}) | undefined;
7200
+ channelGroup?: ({
7201
+ key: string;
7202
+ label: string;
7203
+ } & {}) | undefined;
7204
+ property?: ({
7205
+ key: string;
7206
+ label: string;
7207
+ } & {}) | undefined;
7208
+ tier?: ({
7209
+ label: string;
7210
+ } & {}) | undefined;
7211
+ primaryText?: string | undefined;
7212
+ convertersAcknowledged?: true | undefined;
6217
7213
  };
6218
7214
  account: {
6219
7215
  id: string;
@@ -6256,7 +7252,9 @@ declare const metaSaveResponse: Field<{
6256
7252
  retentionDays: number;
6257
7253
  exclusionRuleIds: string[];
6258
7254
  consentPurpose: "ad_personalization";
6259
- } & {};
7255
+ } & {
7256
+ minDaysSinceVisit?: number | undefined;
7257
+ };
6260
7258
  name: string;
6261
7259
  resourceRuleRef: {
6262
7260
  id: string;
@@ -6339,7 +7337,9 @@ export declare function projectResonanceMetaConfiguration(v: unknown, currentMet
6339
7337
  retentionDays: number;
6340
7338
  exclusionRuleIds: string[];
6341
7339
  consentPurpose: "ad_personalization";
6342
- } & {})[];
7340
+ } & {
7341
+ minDaysSinceVisit?: number | undefined;
7342
+ })[];
6343
7343
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
6344
7344
  pageRef: {
6345
7345
  connectionId: string;
@@ -6390,6 +7390,19 @@ export declare function projectResonanceMetaConfiguration(v: unknown, currentMet
6390
7390
  } & {}) | ({
6391
7391
  mode: "provider_managed";
6392
7392
  } & {}) | undefined;
7393
+ channelGroup?: ({
7394
+ key: string;
7395
+ label: string;
7396
+ } & {}) | undefined;
7397
+ property?: ({
7398
+ key: string;
7399
+ label: string;
7400
+ } & {}) | undefined;
7401
+ tier?: ({
7402
+ label: string;
7403
+ } & {}) | undefined;
7404
+ primaryText?: string | undefined;
7405
+ convertersAcknowledged?: true | undefined;
6393
7406
  };
6394
7407
  account: {
6395
7408
  id: string;
@@ -6432,7 +7445,9 @@ export declare function projectResonanceMetaConfiguration(v: unknown, currentMet
6432
7445
  retentionDays: number;
6433
7446
  exclusionRuleIds: string[];
6434
7447
  consentPurpose: "ad_personalization";
6435
- } & {};
7448
+ } & {
7449
+ minDaysSinceVisit?: number | undefined;
7450
+ };
6436
7451
  name: string;
6437
7452
  resourceRuleRef: {
6438
7453
  id: string;
@@ -6503,7 +7518,9 @@ export declare function projectResonanceMetaConfiguration(v: unknown, currentMet
6503
7518
  retentionDays: number;
6504
7519
  exclusionRuleIds: string[];
6505
7520
  consentPurpose: "ad_personalization";
6506
- } & {})[];
7521
+ } & {
7522
+ minDaysSinceVisit?: number | undefined;
7523
+ })[];
6507
7524
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
6508
7525
  pageRef: {
6509
7526
  connectionId: string;
@@ -6554,6 +7571,19 @@ export declare function projectResonanceMetaConfiguration(v: unknown, currentMet
6554
7571
  } & {}) | ({
6555
7572
  mode: "provider_managed";
6556
7573
  } & {}) | undefined;
7574
+ channelGroup?: ({
7575
+ key: string;
7576
+ label: string;
7577
+ } & {}) | undefined;
7578
+ property?: ({
7579
+ key: string;
7580
+ label: string;
7581
+ } & {}) | undefined;
7582
+ tier?: ({
7583
+ label: string;
7584
+ } & {}) | undefined;
7585
+ primaryText?: string | undefined;
7586
+ convertersAcknowledged?: true | undefined;
6557
7587
  };
6558
7588
  account: {
6559
7589
  id: string;
@@ -6596,7 +7626,9 @@ export declare function projectResonanceMetaConfiguration(v: unknown, currentMet
6596
7626
  retentionDays: number;
6597
7627
  exclusionRuleIds: string[];
6598
7628
  consentPurpose: "ad_personalization";
6599
- } & {};
7629
+ } & {
7630
+ minDaysSinceVisit?: number | undefined;
7631
+ };
6600
7632
  name: string;
6601
7633
  resourceRuleRef: {
6602
7634
  id: string;
@@ -6644,6 +7676,10 @@ declare const mandateDraftRequest: Field<{
6644
7676
  } & {})[];
6645
7677
  } & {})[];
6646
7678
  } & {}) | undefined;
7679
+ providerReporting?: ({
7680
+ agentContactId: string;
7681
+ channelIds: string[];
7682
+ } & {}) | undefined;
6647
7683
  }>;
6648
7684
  export type ResonanceMandateDraftRequest = Value<typeof mandateDraftRequest>;
6649
7685
  export declare const parseResonanceMandateDraftRequest: (v: unknown) => ResonanceMandateDraftRequest;
@@ -6718,7 +7754,9 @@ declare const feedReview: Field<{
6718
7754
  retentionDays: number;
6719
7755
  exclusionRuleIds: string[];
6720
7756
  consentPurpose: "ad_personalization";
6721
- } & {})[];
7757
+ } & {
7758
+ minDaysSinceVisit?: number | undefined;
7759
+ })[];
6722
7760
  goal: {
6723
7761
  source: {
6724
7762
  projectId: string;
@@ -6781,6 +7819,14 @@ declare const feedReview: Field<{
6781
7819
  } & {};
6782
7820
  } & {})[];
6783
7821
  } & {}) | undefined;
7822
+ providerReporting?: ({
7823
+ purpose: "provider_reporting_refresh";
7824
+ orgId: string;
7825
+ projectId: string;
7826
+ agentContactId: string;
7827
+ principalContactId: string;
7828
+ channelIds: string[];
7829
+ } & {}) | undefined;
6784
7830
  };
6785
7831
  } & {};
6786
7832
  mandateRef: {
@@ -6826,7 +7872,9 @@ declare const feedReview: Field<{
6826
7872
  retentionDays: number;
6827
7873
  exclusionRuleIds: string[];
6828
7874
  consentPurpose: "ad_personalization";
6829
- } & {})[];
7875
+ } & {
7876
+ minDaysSinceVisit?: number | undefined;
7877
+ })[];
6830
7878
  objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
6831
7879
  pageRef: {
6832
7880
  connectionId: string;
@@ -6877,6 +7925,19 @@ declare const feedReview: Field<{
6877
7925
  } & {}) | ({
6878
7926
  mode: "provider_managed";
6879
7927
  } & {}) | undefined;
7928
+ channelGroup?: ({
7929
+ key: string;
7930
+ label: string;
7931
+ } & {}) | undefined;
7932
+ property?: ({
7933
+ key: string;
7934
+ label: string;
7935
+ } & {}) | undefined;
7936
+ tier?: ({
7937
+ label: string;
7938
+ } & {}) | undefined;
7939
+ primaryText?: string | undefined;
7940
+ convertersAcknowledged?: true | undefined;
6880
7941
  };
6881
7942
  account: {
6882
7943
  id: string;
@@ -6919,7 +7980,9 @@ declare const feedReview: Field<{
6919
7980
  retentionDays: number;
6920
7981
  exclusionRuleIds: string[];
6921
7982
  consentPurpose: "ad_personalization";
6922
- } & {};
7983
+ } & {
7984
+ minDaysSinceVisit?: number | undefined;
7985
+ };
6923
7986
  name: string;
6924
7987
  resourceRuleRef: {
6925
7988
  id: string;
@@ -6960,3 +8023,439 @@ export declare function parseResonanceWebsiteVisitFeedReview(v: unknown, context
6960
8023
  preparedPlan: ResonancePreparedPlan;
6961
8024
  }): ResonanceWebsiteVisitFeedReview;
6962
8025
  export declare const RESONANCE_WEBSITE_VISIT_FEED_REVIEW_JSON_SCHEMA: import("./wire-schema").JsonSchema;
8026
+ declare const publicObservationMetric: Field<({
8027
+ projectId: string;
8028
+ site: string;
8029
+ campaignId: string;
8030
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
8031
+ sourceRef: string;
8032
+ goalRevision: string | null;
8033
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
8034
+ windowStart: string;
8035
+ windowEnd: string;
8036
+ timeZone: string;
8037
+ attributionModel: string | null;
8038
+ asOf: string;
8039
+ dataThrough: string | null;
8040
+ maturityDelaySeconds: number;
8041
+ coverageBasisPoints: number | null;
8042
+ eligibleExposures: string | null;
8043
+ matureOutcomes: string | null;
8044
+ native: ({
8045
+ unit: string;
8046
+ amount: string;
8047
+ 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" | null;
8048
+ unitExponent: number;
8049
+ providerVersion: string;
8050
+ } & {}) | null;
8051
+ observationId: string;
8052
+ channelId: string;
8053
+ versionId: string;
8054
+ accountBindingId: string;
8055
+ source: "first_party" | "provider";
8056
+ state: "observed";
8057
+ value: ({
8058
+ kind: "count";
8059
+ count: string;
8060
+ } & {}) | ({
8061
+ kind: "money";
8062
+ money: {
8063
+ 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";
8064
+ amountMicros: string;
8065
+ } & {};
8066
+ } & {}) | ({
8067
+ kind: "ratio";
8068
+ numerator: string;
8069
+ denominator: string;
8070
+ } & {});
8071
+ } & {}) | ({
8072
+ projectId: string;
8073
+ site: string;
8074
+ campaignId: string;
8075
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
8076
+ sourceRef: string;
8077
+ goalRevision: string | null;
8078
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
8079
+ windowStart: string;
8080
+ windowEnd: string;
8081
+ timeZone: string;
8082
+ attributionModel: string | null;
8083
+ asOf: string;
8084
+ dataThrough: string | null;
8085
+ maturityDelaySeconds: number;
8086
+ coverageBasisPoints: number | null;
8087
+ eligibleExposures: string | null;
8088
+ matureOutcomes: string | null;
8089
+ native: ({
8090
+ unit: string;
8091
+ amount: string;
8092
+ 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" | null;
8093
+ unitExponent: number;
8094
+ providerVersion: string;
8095
+ } & {}) | null;
8096
+ observationId: string;
8097
+ channelId: string;
8098
+ versionId: string;
8099
+ accountBindingId: string;
8100
+ source: "first_party" | "provider";
8101
+ state: "delayed" | "insufficient" | "unavailable" | "unknown";
8102
+ value: null;
8103
+ reasonCode: string;
8104
+ } & {})>;
8105
+ export type ResonancePublicObservationMetric = Value<typeof publicObservationMetric>;
8106
+ export declare function parseResonancePublicObservationMetric(v: unknown): ResonancePublicObservationMetric;
8107
+ declare const firstPartyObservationSupport: Field<{
8108
+ observationId: string;
8109
+ channelId: string;
8110
+ versionId: string;
8111
+ accountBindingId: string;
8112
+ 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";
8113
+ fetchedAt: string;
8114
+ dataThrough: string | null;
8115
+ coverage: "complete" | "partial" | "unknown";
8116
+ reasonCode: string | null;
8117
+ denominators: {
8118
+ eligibleContacts: string | null;
8119
+ fullyResolvedContacts: string | null;
8120
+ qualifiedContacts: string | null;
8121
+ } & {};
8122
+ source: "first_party";
8123
+ } & {}>;
8124
+ declare const providerObservationSupport: Field<{
8125
+ observationId: string;
8126
+ channelId: string;
8127
+ versionId: string;
8128
+ accountBindingId: string;
8129
+ 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";
8130
+ fetchedAt: string;
8131
+ dataThrough: string | null;
8132
+ coverage: "complete" | "partial" | "unknown";
8133
+ reasonCode: string | null;
8134
+ denominators: {
8135
+ eligibleContacts: string | null;
8136
+ fullyResolvedContacts: string | null;
8137
+ qualifiedContacts: string | null;
8138
+ } & {};
8139
+ source: "provider";
8140
+ firstReceivedAt: string | null;
8141
+ receivedAt: string | null;
8142
+ recordedAt: string | null;
8143
+ readClock: ({
8144
+ kind: "sql_before_provider_read_lower_bound_v1";
8145
+ notBeforeAt: string;
8146
+ } & {}) | null;
8147
+ providerFinality: "unknown";
8148
+ correctionsPossible: true;
8149
+ coverageBasis: "closed_query_snapshot" | "not_established";
8150
+ } & {}>;
8151
+ declare const observationSupport: Field<({
8152
+ observationId: string;
8153
+ channelId: string;
8154
+ versionId: string;
8155
+ accountBindingId: string;
8156
+ 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";
8157
+ fetchedAt: string;
8158
+ dataThrough: string | null;
8159
+ coverage: "complete" | "partial" | "unknown";
8160
+ reasonCode: string | null;
8161
+ denominators: {
8162
+ eligibleContacts: string | null;
8163
+ fullyResolvedContacts: string | null;
8164
+ qualifiedContacts: string | null;
8165
+ } & {};
8166
+ source: "first_party";
8167
+ } & {}) | ({
8168
+ observationId: string;
8169
+ channelId: string;
8170
+ versionId: string;
8171
+ accountBindingId: string;
8172
+ 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";
8173
+ fetchedAt: string;
8174
+ dataThrough: string | null;
8175
+ coverage: "complete" | "partial" | "unknown";
8176
+ reasonCode: string | null;
8177
+ denominators: {
8178
+ eligibleContacts: string | null;
8179
+ fullyResolvedContacts: string | null;
8180
+ qualifiedContacts: string | null;
8181
+ } & {};
8182
+ source: "provider";
8183
+ firstReceivedAt: string | null;
8184
+ receivedAt: string | null;
8185
+ recordedAt: string | null;
8186
+ readClock: ({
8187
+ kind: "sql_before_provider_read_lower_bound_v1";
8188
+ notBeforeAt: string;
8189
+ } & {}) | null;
8190
+ providerFinality: "unknown";
8191
+ correctionsPossible: true;
8192
+ coverageBasis: "closed_query_snapshot" | "not_established";
8193
+ } & {})>;
8194
+ export type ResonanceObservationSupport = Value<typeof observationSupport>;
8195
+ export type ResonanceProviderObservationSupport = Value<typeof providerObservationSupport>;
8196
+ export type ResonanceFirstPartyObservationSupport = Value<typeof firstPartyObservationSupport>;
8197
+ export declare function parseResonanceObservationSupport(v: unknown): ResonanceObservationSupport;
8198
+ declare const observationsPage: Field<{
8199
+ items: (({
8200
+ projectId: string;
8201
+ site: string;
8202
+ campaignId: string;
8203
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
8204
+ sourceRef: string;
8205
+ goalRevision: string | null;
8206
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
8207
+ windowStart: string;
8208
+ windowEnd: string;
8209
+ timeZone: string;
8210
+ attributionModel: string | null;
8211
+ asOf: string;
8212
+ dataThrough: string | null;
8213
+ maturityDelaySeconds: number;
8214
+ coverageBasisPoints: number | null;
8215
+ eligibleExposures: string | null;
8216
+ matureOutcomes: string | null;
8217
+ native: ({
8218
+ unit: string;
8219
+ amount: string;
8220
+ 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" | null;
8221
+ unitExponent: number;
8222
+ providerVersion: string;
8223
+ } & {}) | null;
8224
+ observationId: string;
8225
+ channelId: string;
8226
+ versionId: string;
8227
+ accountBindingId: string;
8228
+ source: "first_party" | "provider";
8229
+ state: "observed";
8230
+ value: ({
8231
+ kind: "count";
8232
+ count: string;
8233
+ } & {}) | ({
8234
+ kind: "money";
8235
+ money: {
8236
+ 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";
8237
+ amountMicros: string;
8238
+ } & {};
8239
+ } & {}) | ({
8240
+ kind: "ratio";
8241
+ numerator: string;
8242
+ denominator: string;
8243
+ } & {});
8244
+ } & {}) | ({
8245
+ projectId: string;
8246
+ site: string;
8247
+ campaignId: string;
8248
+ name: "accepted_goals" | "clicks" | "conversion_rate" | "impressions" | "qualified_goals" | "reach" | "results" | "revenue" | "spend";
8249
+ sourceRef: string;
8250
+ goalRevision: string | null;
8251
+ countingUnit: "net_order" | "provider_aggregate" | "provider_unique_reach" | "unique_qualified_contact" | "unique_source";
8252
+ windowStart: string;
8253
+ windowEnd: string;
8254
+ timeZone: string;
8255
+ attributionModel: string | null;
8256
+ asOf: string;
8257
+ dataThrough: string | null;
8258
+ maturityDelaySeconds: number;
8259
+ coverageBasisPoints: number | null;
8260
+ eligibleExposures: string | null;
8261
+ matureOutcomes: string | null;
8262
+ native: ({
8263
+ unit: string;
8264
+ amount: string;
8265
+ 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" | null;
8266
+ unitExponent: number;
8267
+ providerVersion: string;
8268
+ } & {}) | null;
8269
+ observationId: string;
8270
+ channelId: string;
8271
+ versionId: string;
8272
+ accountBindingId: string;
8273
+ source: "first_party" | "provider";
8274
+ state: "delayed" | "insufficient" | "unavailable" | "unknown";
8275
+ value: null;
8276
+ reasonCode: string;
8277
+ } & {}))[];
8278
+ nextCursor: string | null;
8279
+ observedAt: string;
8280
+ support: (({
8281
+ observationId: string;
8282
+ channelId: string;
8283
+ versionId: string;
8284
+ accountBindingId: string;
8285
+ 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";
8286
+ fetchedAt: string;
8287
+ dataThrough: string | null;
8288
+ coverage: "complete" | "partial" | "unknown";
8289
+ reasonCode: string | null;
8290
+ denominators: {
8291
+ eligibleContacts: string | null;
8292
+ fullyResolvedContacts: string | null;
8293
+ qualifiedContacts: string | null;
8294
+ } & {};
8295
+ source: "first_party";
8296
+ } & {}) | ({
8297
+ observationId: string;
8298
+ channelId: string;
8299
+ versionId: string;
8300
+ accountBindingId: string;
8301
+ 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";
8302
+ fetchedAt: string;
8303
+ dataThrough: string | null;
8304
+ coverage: "complete" | "partial" | "unknown";
8305
+ reasonCode: string | null;
8306
+ denominators: {
8307
+ eligibleContacts: string | null;
8308
+ fullyResolvedContacts: string | null;
8309
+ qualifiedContacts: string | null;
8310
+ } & {};
8311
+ source: "provider";
8312
+ firstReceivedAt: string | null;
8313
+ receivedAt: string | null;
8314
+ recordedAt: string | null;
8315
+ readClock: ({
8316
+ kind: "sql_before_provider_read_lower_bound_v1";
8317
+ notBeforeAt: string;
8318
+ } & {}) | null;
8319
+ providerFinality: "unknown";
8320
+ correctionsPossible: true;
8321
+ coverageBasis: "closed_query_snapshot" | "not_established";
8322
+ } & {}))[];
8323
+ } & {}>;
8324
+ export type ResonanceObservationsPage = Value<typeof observationsPage>;
8325
+ /** Native-row UUID pagination; support aligns by all four identities at each index. No summing or freshness upgrade. */
8326
+ export declare function parseResonanceObservationsPage(v: unknown): ResonanceObservationsPage;
8327
+ export declare const RESONANCE_PUBLIC_OBSERVATION_METRIC_JSON_SCHEMA: import("./wire-schema").JsonSchema;
8328
+ export declare const RESONANCE_OBSERVATION_SUPPORT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
8329
+ export declare const RESONANCE_OBSERVATIONS_PAGE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
8330
+ /** Meta documents 180 days for a website audience's create parameter. Single source: the API and the editor import this, never a local copy. */
8331
+ export declare const META_WEBSITE_AUDIENCE_MAX_RETENTION_DAYS = 180;
8332
+ /** Meta allows at most ten rules per audience (inclusion, each exclusion, and a recency band). */
8333
+ export declare const META_AUDIENCE_RULE_LIMIT = 10;
8334
+ /** Targeting-level exclusion under a special category stays refused until a real call proves it (probes G-4 and P-X1); only a reviewed release flips this. */
8335
+ export declare const META_SAC_CUSTOM_AUDIENCE_EXCLUSION_VERIFIED: boolean;
8336
+ /** The call-to-action enums the Meta compiler accepts; the editor, the compiler and imports validate against this one list. */
8337
+ export declare const META_CALL_TO_ACTIONS: readonly ['LEARN_MORE', 'SIGN_UP', 'SHOP_NOW', 'APPLY_NOW', 'BOOK_TRAVEL', 'CONTACT_US', 'GET_QUOTE'];
8338
+ export type MetaCallToAction = typeof META_CALL_TO_ACTIONS[number];
8339
+ /** A property group holds one channel per property (and per tier). Twenty leaves room to add properties after launch. */
8340
+ export declare const RESONANCE_MAX_CHANNELS_PER_GROUP = 20;
8341
+ /** Provider metrics a report may carry. Reach is unique people, so it has its own counting unit and is never summed across channels. */
8342
+ export declare const RESONANCE_PROVIDER_METRIC_NAMES: readonly ['spend', 'impressions', 'clicks', 'reach', 'results'];
8343
+ type MetaChannelPlan = Extract<ResonanceChannelPlan, {
8344
+ kind: 'meta_retargeting';
8345
+ }>;
8346
+ /**
8347
+ * One audience's recency band and rule budget. `minDaysSinceVisit` keeps only people whose latest visit is at least that many days old,
8348
+ * so it must be shorter than the retention window. Meta caps the window and the rules; Google has no recency band.
8349
+ */
8350
+ export declare function checkAudienceBand(ref: Pick<ResonanceAudienceRuleRef, 'retentionDays' | 'exclusionRuleIds' | 'minDaysSinceVisit'>, provider?: 'meta_ads' | 'google_ads', at?: string): void;
8351
+ /**
8352
+ * Channels that share a `channelGroup.key` share one dataset, account, Page and targeting profile; each property has its own destination;
8353
+ * tiers of one property do not overlap. Channels outside any group are not touched.
8354
+ */
8355
+ export declare function checkChannelGroups(channels: readonly ResonanceChannelPlan[]): void;
8356
+ /**
8357
+ * Splits a total across weights in whole provider quanta (largest remainder, ties to the lower index), so the shares add up to the total exactly.
8358
+ * It is a helper, not an authority: a person edits the result and the reviewed definition is what counts.
8359
+ */
8360
+ export declare function splitBudget(total: Money, weights: readonly number[], quantumMicros: string): Money[];
8361
+ /**
8362
+ * Suggested shares, in basis points that add up to 10 000, proportional to each property's unique visitors with a floor and a ceiling.
8363
+ * A SUGGESTION only: equal weights are the default and a person approves any other split.
8364
+ */
8365
+ export declare function suggestPropertyWeights(visitors: readonly number[], bounds?: {
8366
+ floorBasisPoints?: number;
8367
+ ceilingBasisPoints?: number;
8368
+ }): number[];
8369
+ export interface ResonancePropertyAddition {
8370
+ key: string;
8371
+ label: string;
8372
+ /** The destination for the property's page, created natively before expansion. */
8373
+ destinationId: string;
8374
+ /** The property's audience version, created natively before expansion. */
8375
+ audienceRuleRefs: ResonanceAudienceRuleRef[];
8376
+ /** Optional split weight; default is equal. */
8377
+ weight?: number;
8378
+ }
8379
+ /** A new channel is complete in every field except the creative, which a person supplies. */
8380
+ export type ResonancePropertyChannelProposal = Omit<MetaChannelPlan, 'creativeIds'> & {
8381
+ creativeIds: [];
8382
+ };
8383
+ export interface ResonancePropertyExpansion {
8384
+ channels: ResonancePropertyChannelProposal[];
8385
+ /** The whole group's allocations after the split: existing channels first, then the new ones. */
8386
+ allocations: {
8387
+ channelId: string;
8388
+ allocation: Money;
8389
+ }[];
8390
+ blockingReasons: string[];
8391
+ }
8392
+ /**
8393
+ * Adds property channels to a group. Pure: it builds each new channel from the group's first channel (the template), names it
8394
+ * `property_creative_required:<key>` until a person supplies a creative, and re-splits the group's existing total. It never sets a
8395
+ * creative, a converter acknowledgement or an approval, and a property already in the group is skipped, so expanding twice is a no-op.
8396
+ * The measurement rule, audience version and destination are native objects the API creates first and passes in.
8397
+ */
8398
+ export declare function expandPropertyChannels(definition: ResonanceCampaignDefinition, groupKey: string, additions: readonly ResonancePropertyAddition[], options: {
8399
+ quantumMicros: string;
8400
+ weights?: Readonly<Record<string, number>>;
8401
+ }): ResonancePropertyExpansion;
8402
+ /**
8403
+ * Whether a targeting-level custom-audience exclusion, or an in-rule exclusion or band, may be used on a Meta channel.
8404
+ * Fail closed: under a special category the targeting-level form stays refused until META_SAC_CUSTOM_AUDIENCE_EXCLUSION_VERIFIED is true,
8405
+ * and the in-rule form is allowed only when Meta's own eligibility readback for that audience says so.
8406
+ */
8407
+ export declare function metaExclusionPolicy(channel: Pick<MetaChannelPlan, 'specialCategories'>, use: {
8408
+ targetingLevel: boolean;
8409
+ inRule: boolean;
8410
+ }): {
8411
+ allowed: boolean;
8412
+ reason: 'meta_exclusion_targeting_blocked_special_category' | null;
8413
+ requiresEligibilityReadback: boolean;
8414
+ };
8415
+ type RatioInput = {
8416
+ name: string;
8417
+ source: string;
8418
+ state: string;
8419
+ windowStart: string;
8420
+ windowEnd: string;
8421
+ observationId?: string;
8422
+ channelId?: string;
8423
+ value: {
8424
+ kind: 'count';
8425
+ count: string;
8426
+ } | {
8427
+ kind: 'money';
8428
+ money: Money;
8429
+ } | {
8430
+ kind: 'ratio';
8431
+ numerator: string;
8432
+ denominator: string;
8433
+ } | null;
8434
+ };
8435
+ export type ProviderRatio = {
8436
+ state: 'observed';
8437
+ value: {
8438
+ kind: 'ratio';
8439
+ numerator: string;
8440
+ denominator: string;
8441
+ };
8442
+ } | {
8443
+ state: 'unknown';
8444
+ reasonCode: string;
8445
+ };
8446
+ export type ProviderCostPerResult = {
8447
+ state: 'observed';
8448
+ money: Money;
8449
+ } | {
8450
+ state: 'unknown';
8451
+ reasonCode: string;
8452
+ };
8453
+ /**
8454
+ * The only place provider ratios are computed. Frequency is impressions over reach; cost per result is spend over results, rounded half to even at one micro.
8455
+ * Inputs must be provider-sourced, observed, and share one observation, channel and window; anything else is unknown, never zero and never a guess.
8456
+ */
8457
+ export declare function deriveProviderRatios(items: readonly RatioInput[]): {
8458
+ frequency: ProviderRatio;
8459
+ costPerResult: ProviderCostPerResult;
8460
+ reasonCodes: string[];
8461
+ };