@sonordev/contracts 2.20.0 → 2.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +103 -0
- package/dist/funnels.d.ts +37 -0
- package/dist/funnels.js +35 -6
- package/dist/funnels.mjs +34 -7
- package/dist/outreach.js +45 -1
- package/dist/outreach.mjs +45 -1
- package/dist/resonance.d.ts +1191 -99
- package/dist/resonance.js +224 -19
- package/dist/resonance.mjs +214 -20
- package/package.json +1 -1
package/dist/resonance.js
CHANGED
|
@@ -396,7 +396,7 @@ var budget = refine2(object2({ total: money, dailyAllocationCeiling: nullable2(m
|
|
|
396
396
|
for (const m of [v.reserveMargin, v.maxChange, ...v.dailyAllocationCeiling ? [v.dailyAllocationCeiling] : []]) if (m.currency !== v.total.currency) fail2(p, "currency mismatch");
|
|
397
397
|
if (BigInt(v.reserveMargin.amountMicros) > BigInt(v.total.amountMicros)) fail2(p, "reserve exceeds total");
|
|
398
398
|
});
|
|
399
|
-
var
|
|
399
|
+
var allocationPolicyFields = {
|
|
400
400
|
schemaVersion: literal2(1),
|
|
401
401
|
sourceRef: nullable2(resource),
|
|
402
402
|
decisionKind: literal2("observational_allocation"),
|
|
@@ -413,7 +413,10 @@ var matureOptimizationPolicy = object2({
|
|
|
413
413
|
uncertaintyMethod: literal2("observational_cpql_missing_outcome_bound_v1"),
|
|
414
414
|
attributionModel: choice2("first_party_source", "first_touch", "last_touch", "provider_reported", RESONANCE_ATTRIBUTION_MODEL),
|
|
415
415
|
requiredChecks: list2(choice2("tracking", "dedupe", "qualification", "uncertainty", "assignment", "power"), 6, 1)
|
|
416
|
-
}
|
|
416
|
+
};
|
|
417
|
+
var matureOptimizationPolicy = object2(allocationPolicyFields);
|
|
418
|
+
var reportedPolicyFields = { ...allocationPolicyFields, algorithm: literal2("reported_cpql_conserved_transfer_v1"), costBasis: literal2("provider_reported_snapshot_v1"), costRevisionRisk: literal2("accepted_provisional") };
|
|
419
|
+
var reportedOptimizationPolicy = object2({ ...reportedPolicyFields, readClockKind: literal2("sql_before_provider_read_lower_bound_v1") });
|
|
417
420
|
function uniqueList(item, max, min = 0) {
|
|
418
421
|
const base = list2(item, max, min);
|
|
419
422
|
return field2({ ...base.schema, uniqueItems: true }, (v, p) => {
|
|
@@ -448,10 +451,10 @@ var finiteMetaCandidatePolicy = object2({
|
|
|
448
451
|
stopRules: uniqueList(finiteStopRule, 8, 8),
|
|
449
452
|
expiresAt: instant
|
|
450
453
|
});
|
|
451
|
-
var optimizationPolicy = union2(matureOptimizationPolicy, finiteMetaCandidatePolicy);
|
|
454
|
+
var optimizationPolicy = union2(matureOptimizationPolicy, finiteMetaCandidatePolicy, reportedOptimizationPolicy);
|
|
452
455
|
function parseResonanceOptimizationPolicy(v) {
|
|
453
456
|
const r = optimizationPolicy.read(v, "optimizationPolicy");
|
|
454
|
-
if (r.algorithm
|
|
457
|
+
if (r.algorithm !== "finite_meta_candidates_v1") {
|
|
455
458
|
unique(r.requiredChecks, "optimizationPolicy.requiredChecks");
|
|
456
459
|
return r;
|
|
457
460
|
}
|
|
@@ -575,14 +578,37 @@ var websiteVisitFeed = object2({ profile: literal2(RESONANCE_WEBSITE_VISIT_PROFI
|
|
|
575
578
|
matchingProfileRef
|
|
576
579
|
}), 100, 1) });
|
|
577
580
|
var RESONANCE_WEBSITE_VISIT_FEED_JSON_SCHEMA = websiteVisitFeed.schema;
|
|
578
|
-
var
|
|
579
|
-
|
|
581
|
+
var providerReportingChannelIds = refine2(uniqueList(uuid, 100, 1), (ids, p) => unique(ids.map((id) => id.toLowerCase()), p));
|
|
582
|
+
var providerReportingSelection = object2({ agentContactId: uuid, channelIds: providerReportingChannelIds });
|
|
583
|
+
var providerReportingGrant = refine2(object2({ purpose: literal2("provider_reporting_refresh"), orgId: uuid, projectId: uuid, agentContactId: uuid, principalContactId: uuid, channelIds: providerReportingChannelIds }), (v, p) => {
|
|
584
|
+
if (v.agentContactId.toLowerCase() === v.principalContactId.toLowerCase()) fail2(p + ".principalContactId", "agent and human principal must remain distinct");
|
|
585
|
+
});
|
|
586
|
+
var parseResonanceProviderReportingSelection = (v) => providerReportingSelection.read(v, "providerReportingSelection");
|
|
587
|
+
var parseResonanceProviderReportingGrant = (v) => providerReportingGrant.read(v, "providerReportingGrant");
|
|
588
|
+
var RESONANCE_PROVIDER_REPORTING_SELECTION_JSON_SCHEMA = providerReportingSelection.schema;
|
|
589
|
+
var RESONANCE_PROVIDER_REPORTING_GRANT_JSON_SCHEMA = providerReportingGrant.schema;
|
|
590
|
+
var mandateScope = object2({ projectId: uuid, campaignId: uuid, preparedPlanId: uuid, reviewDigest: digest, accountBindingIds: list2(uuid, 100), sites: list2(site, 50, 1), budget, creativeRefs: list2(creative, 100, 1), audienceRuleRefs: list2(audience, 100), goal: objective, allowedOperations: mandateAllowedOperations, allowedTransformationRef: nullable2(resource), expiresAt: instant, websiteVisitFeed: optional2(websiteVisitFeed), providerReporting: optional2(providerReportingGrant) });
|
|
591
|
+
function parseResonanceMandateScope(v, preparedPlan) {
|
|
580
592
|
const r = mandateScope.read(v, "mandateScope");
|
|
581
593
|
scoped(r, r.projectId, r.sites, "mandateScope");
|
|
582
594
|
if (r.websiteVisitFeed) {
|
|
583
595
|
unique(r.websiteVisitFeed.channels.map((c) => c.channelId), "mandateScope.websiteVisitFeed.channels");
|
|
584
596
|
for (const c of r.websiteVisitFeed.channels) unique(c.resourceRuleRefs.map((rule) => rule.id), "mandateScope.websiteVisitFeed.resourceRuleRefs");
|
|
585
597
|
}
|
|
598
|
+
if (r.providerReporting) {
|
|
599
|
+
const grant = r.providerReporting, p = "mandateScope.providerReporting";
|
|
600
|
+
if (grant.projectId !== r.projectId) fail2(p + ".projectId", "must match the original mandate project");
|
|
601
|
+
if (Date.parse(r.expiresAt) <= Date.parse(r.budget.startAt) || Date.parse(r.expiresAt) > Date.parse(r.budget.endAt)) fail2(p, "reporting remains inside the original mandate flight and expiry");
|
|
602
|
+
if (preparedPlan !== void 0) {
|
|
603
|
+
const plan = parseResonancePreparedPlan(preparedPlan);
|
|
604
|
+
if (r.projectId !== plan.projectId || r.campaignId !== plan.campaignId || r.preparedPlanId !== plan.id || r.reviewDigest !== plan.reviewDigest || canonical(r.goal) !== canonical(plan.definition.objective) || canonical(r.budget) !== canonical(plan.definition.budget)) fail2(p, "requires the exact original plan, review, goal and flight");
|
|
605
|
+
if (r.sites.some((site2) => !plan.definition.sites.includes(site2)) || r.accountBindingIds.some((id) => !plan.accounts.some((account) => account.id === id))) fail2(p, "mandate sites and accounts must stay inside the original plan");
|
|
606
|
+
for (const id of grant.channelIds) {
|
|
607
|
+
const channel2 = plan.definition.channels.find((c) => c.id === id);
|
|
608
|
+
if (!channel2 || !("provider" in channel2) || !r.sites.includes(channel2.site) || !r.accountBindingIds.includes(channel2.accountBindingId)) fail2(p + ".channelIds", "requires an explicit original paid channel inside mandate sites and accounts");
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
}
|
|
586
612
|
return r;
|
|
587
613
|
}
|
|
588
614
|
var websiteVisitTimes = object2({ occurredAt: instant, receivedAt: instant });
|
|
@@ -990,15 +1016,18 @@ var allocationHorizon = union2(
|
|
|
990
1016
|
);
|
|
991
1017
|
var uncertaintySource = object2({ method: literal2(RESONANCE_CPQL_UNCERTAINTY_METHOD), eligibleContacts: decimal, fullyResolvedContacts: decimal, qualifiedContacts: decimal, verifiedSpend: money, sourceRevision: revision, qualificationRuleRef: resource, universeComplete: literal2(true), spendPeriodComplete: literal2(true) });
|
|
992
1018
|
function cpqlMissingOutcomeBound(input) {
|
|
1019
|
+
return conditionalCpqlOutcomeBound(input, input.verifiedSpend);
|
|
1020
|
+
}
|
|
1021
|
+
function conditionalCpqlOutcomeBound(input, spend) {
|
|
993
1022
|
const n = BigInt(decimal.read(input.eligibleContacts, "bound.eligibleContacts"));
|
|
994
1023
|
const c = BigInt(decimal.read(input.fullyResolvedContacts, "bound.fullyResolvedContacts"));
|
|
995
1024
|
const k = BigInt(decimal.read(input.qualifiedContacts, "bound.qualifiedContacts"));
|
|
996
1025
|
if (c > n || k > c) fail2("bound", "inconsistent unique-contact source universe");
|
|
997
|
-
if (n === 0n || k === 0n || parseMoney(
|
|
1026
|
+
if (n === 0n || k === 0n || parseMoney(spend).amountMicros === "0") return null;
|
|
998
1027
|
const u = n - c, denominator = 2n * k + u;
|
|
999
1028
|
return Number((10000n * u + denominator - 1n) / denominator);
|
|
1000
1029
|
}
|
|
1001
|
-
var
|
|
1030
|
+
var allocationEvidenceFields = {
|
|
1002
1031
|
id: uuid,
|
|
1003
1032
|
revision,
|
|
1004
1033
|
evidenceDigest: digest,
|
|
@@ -1019,13 +1048,42 @@ var matureOptimizationEvidence = object2({
|
|
|
1019
1048
|
trackingState: choice2("healthy", "blocked", "unknown"),
|
|
1020
1049
|
coverageBasisPoints: nullable2(integer2(0, 1e4)),
|
|
1021
1050
|
assignmentCheck: choice2("pass", "failed", "unknown", "not_applicable"),
|
|
1022
|
-
powerCheck: choice2("pass", "failed", "unknown", "not_applicable")
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1051
|
+
powerCheck: choice2("pass", "failed", "unknown", "not_applicable")
|
|
1052
|
+
};
|
|
1053
|
+
var allocationChannelFields = { channelId: uuid, site, accountBindingId: uuid, trackingState: choice2("healthy", "blocked", "unknown"), coverageBasisPoints: nullable2(integer2(0, 1e4)), coverageFamily: choice2("crm_attribution", "provider_import", "experiment_exposure"), coverageDefinitionRef: resource, coveredNumerator: nullable2(decimal), eligibleDenominator: nullable2(decimal), uncertaintyBasisPoints: nullable2(integer2(0, 1e4)), uncertaintySource: nullable2(uncertaintySource), dedupeCheck: choice2("pass", "failed", "unknown", "not_applicable"), qualificationCheck: choice2("pass", "failed", "unknown", "not_applicable"), reasonCodes: list2(text2(80), 50), capabilityRevision: revision, budgetMode: choice2("campaign_total", "average_daily", "lifetime", "daily"), allocationHorizon: nullable2(allocationHorizon), matureThrough: nullable2(instant), dataThrough: nullable2(instant), goalRevision: revision, countingUnit: choice2("unique_source", "unique_qualified_contact", "net_order"), attributionModel: text2(100), attributionWindowDays: integer2(1, 365), policyRevision: revision, currentAllocation: money, remoteSnapshotDigest: digest, observations: list2(metric, 100), providerUnitExponent: refine2(integer2(0, 6), (v, p) => {
|
|
1054
|
+
if (![0, 2, 3, 6].includes(v)) fail2(p, "unsupported provider exponent");
|
|
1055
|
+
}), providerMaxUnits: decimal };
|
|
1056
|
+
var { uncertaintySource: _legacyUncertaintyField, ...reportedChannelFields } = allocationChannelFields;
|
|
1057
|
+
var matureOptimizationEvidence = object2({ ...allocationEvidenceFields, resolvedPolicy: matureOptimizationPolicy, channels: list2(object2({ ...allocationChannelFields, uncertaintySource: nullable2(uncertaintySource) }), 100, 1) });
|
|
1058
|
+
var reportedCostFields = { basis: literal2("provider_reported_snapshot_v1"), observationId: uuid, sourceEvidenceDigest: digest, reportedSpend: money, queriedFrom: instant, queriedThrough: instant, firstReceivedAt: instant, receivedAt: instant, recordedAt: instant, providerFinality: literal2("unknown"), correctionsPossible: literal2(true) };
|
|
1059
|
+
var reportedOutcomeSource = object2({ method: literal2(RESONANCE_CPQL_UNCERTAINTY_METHOD), eligibleContacts: decimal, fullyResolvedContacts: decimal, qualifiedContacts: decimal, sourceRevision: revision, qualificationRuleRef: resource, universeComplete: literal2(true) });
|
|
1060
|
+
var nativeSqlReadInstant = refine2(text2(32, /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?:\.(\d{1,6}))?(?:Z|\+00:00)$/), (v, p) => {
|
|
1061
|
+
const match = /^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2})(?:\.(\d{1,6}))?(?:Z|\+00:00)$/.exec(v);
|
|
1062
|
+
const projected = match[1] + "." + (match[2] ?? "").padEnd(3, "0").slice(0, 3) + "Z";
|
|
1063
|
+
if (!Number.isFinite(Date.parse(projected)) || new Date(projected).toISOString() !== projected) fail2(p, "invalid native SQL UTC instant");
|
|
1064
|
+
});
|
|
1065
|
+
var providerReadClock = object2({ kind: literal2("sql_before_provider_read_lower_bound_v1"), notBeforeAt: nativeSqlReadInstant });
|
|
1066
|
+
var channelReportedCost = object2({ ...reportedCostFields, readClock: providerReadClock });
|
|
1067
|
+
var reportedOptimizationEvidence = object2({
|
|
1068
|
+
...allocationEvidenceFields,
|
|
1069
|
+
evidenceKind: literal2("reported_cpql_sql_clock_v1"),
|
|
1070
|
+
resolvedPolicy: reportedOptimizationPolicy,
|
|
1071
|
+
channels: list2(object2({ ...reportedChannelFields, channelReportedCost, outcomeSource: reportedOutcomeSource }), 100, 1)
|
|
1026
1072
|
});
|
|
1073
|
+
function reportedCpqlMissingOutcomeBound(input) {
|
|
1074
|
+
return conditionalCpqlOutcomeBound(input, input.reportedSpend);
|
|
1075
|
+
}
|
|
1027
1076
|
function parseMatureOptimizationEvidence(v) {
|
|
1028
1077
|
const r = matureOptimizationEvidence.read(v, "optimizationEvidence");
|
|
1078
|
+
for (const c of r.channels) {
|
|
1079
|
+
if (c.uncertaintySource === null) {
|
|
1080
|
+
if (c.uncertaintyBasisPoints !== null) fail2("optimizationEvidence.channels.uncertainty", "no bound without source witness");
|
|
1081
|
+
} else if (c.uncertaintySource.verifiedSpend.currency !== c.currentAllocation.currency || c.uncertaintyBasisPoints !== cpqlMissingOutcomeBound(c.uncertaintySource)) fail2("optimizationEvidence.channels.uncertainty", "source bound mismatch");
|
|
1082
|
+
}
|
|
1083
|
+
checkAllocationEvidence(r);
|
|
1084
|
+
return r;
|
|
1085
|
+
}
|
|
1086
|
+
function checkAllocationEvidence(r) {
|
|
1029
1087
|
if (r.objective.measurementRevision !== r.goalRevision) fail2("optimizationEvidence.goalRevision", "goal snapshot mismatch");
|
|
1030
1088
|
if (Date.parse(r.windowEnd) <= Date.parse(r.windowStart) || r.dataThrough !== null && Date.parse(r.dataThrough) > Date.parse(r.observedAt)) fail2("optimizationEvidence.window", "invalid observed window");
|
|
1031
1089
|
const sites = r.channels.map((c) => c.site);
|
|
@@ -1033,9 +1091,6 @@ function parseMatureOptimizationEvidence(v) {
|
|
|
1033
1091
|
unique(r.channels.map((c) => c.channelId), "optimizationEvidence.channels");
|
|
1034
1092
|
const currency2 = r.channels[0].currentAllocation.currency;
|
|
1035
1093
|
for (const c of r.channels) {
|
|
1036
|
-
if (c.uncertaintySource === null) {
|
|
1037
|
-
if (c.uncertaintyBasisPoints !== null) fail2("optimizationEvidence.channels.uncertainty", "no bound without source witness");
|
|
1038
|
-
} else if (c.uncertaintySource.verifiedSpend.currency !== c.currentAllocation.currency || c.uncertaintyBasisPoints !== cpqlMissingOutcomeBound(c.uncertaintySource)) fail2("optimizationEvidence.channels.uncertainty", "source bound mismatch");
|
|
1039
1094
|
if (c.allocationHorizon !== null && (["campaign_total", "lifetime"].includes(c.budgetMode) ? c.allocationHorizon.kind !== "finite_period" : c.allocationHorizon.kind !== "daily_average")) fail2("optimizationEvidence.channels.allocationHorizon", "unapproved budget period normalization");
|
|
1040
1095
|
if (c.coveredNumerator === null || c.eligibleDenominator === null || c.eligibleDenominator === "0") {
|
|
1041
1096
|
if (c.coverageBasisPoints !== null) fail2("optimizationEvidence.channels.coverage", "unknown denominator means unknown coverage");
|
|
@@ -1052,8 +1107,50 @@ function parseMatureOptimizationEvidence(v) {
|
|
|
1052
1107
|
if (observation.campaignId !== r.campaignId || observation.site !== c.site) fail2("optimizationEvidence.channels.observations", "scope mismatch");
|
|
1053
1108
|
}
|
|
1054
1109
|
}
|
|
1110
|
+
}
|
|
1111
|
+
function parseReportedOptimizationEvidence(v) {
|
|
1112
|
+
const r = reportedOptimizationEvidence.read(v, "optimizationEvidence");
|
|
1113
|
+
checkReportedAllocationEvidence(r);
|
|
1055
1114
|
return r;
|
|
1056
1115
|
}
|
|
1116
|
+
function checkReportedAllocationEvidence(r) {
|
|
1117
|
+
const p = "optimizationEvidence";
|
|
1118
|
+
parseResonanceOptimizationPolicy(r.resolvedPolicy);
|
|
1119
|
+
if (r.objective.source.kind !== "qualified_lead" || r.objective.countingUnit !== "unique_qualified_contact" || !r.objective.qualificationRuleRef || r.objective.qualificationRuleRef.module !== "crm") fail2(p + ".objective", "requires the original independent qualified-contact source");
|
|
1120
|
+
if (r.dataThrough !== null) fail2(p + ".dataThrough", "query coverage cannot become mature provider dataThrough");
|
|
1121
|
+
unique(r.channels.map((c) => c.channelReportedCost.observationId), p + ".channels.channelReportedCost.observationId");
|
|
1122
|
+
const observedAt = Date.parse(r.observedAt), windowStart = Date.parse(r.windowStart), windowEnd = Date.parse(r.windowEnd);
|
|
1123
|
+
if (windowEnd <= windowStart || windowEnd > observedAt) fail2(p + ".window", "requires a completed observed interval");
|
|
1124
|
+
let commonZone;
|
|
1125
|
+
for (const c of r.channels) {
|
|
1126
|
+
const cost = c.channelReportedCost, outcome = c.outcomeSource;
|
|
1127
|
+
if (c.dataThrough !== null) fail2(p + ".channels.dataThrough", "query coverage cannot become mature provider dataThrough");
|
|
1128
|
+
if (Date.parse(cost.queriedFrom) !== windowStart || Date.parse(cost.queriedThrough) !== windowEnd) fail2(p + ".channels.channelReportedCost", "requires the exact common query interval");
|
|
1129
|
+
const firstReceived = Date.parse(cost.firstReceivedAt), received = Date.parse(cost.receivedAt), recorded = Date.parse(cost.recordedAt);
|
|
1130
|
+
const anchor = Date.parse(cost.readClock.notBeforeAt);
|
|
1131
|
+
if (received < firstReceived) fail2(p + ".channels.channelReportedCost", "HTTP receipts must retain internal ordering");
|
|
1132
|
+
if (anchor < windowEnd || anchor > recorded || recorded > observedAt || observedAt - anchor > r.resolvedPolicy.maxEvidenceAgeSeconds * 1e3) fail2(p + ".channels.channelReportedCost.readClock", "requires the original fresh SQL-before-HTTP lower bound and SQL receipt order");
|
|
1133
|
+
if (cost.reportedSpend.currency !== c.currentAllocation.currency || canonical(outcome.qualificationRuleRef) !== canonical(r.objective.qualificationRuleRef)) fail2(p + ".channels.outcomeSource", "requires original qualification reference and currency");
|
|
1134
|
+
if (c.uncertaintyBasisPoints !== reportedCpqlMissingOutcomeBound({ ...outcome, reportedSpend: cost.reportedSpend })) fail2(p + ".channels.uncertainty", "conditional source bound mismatch");
|
|
1135
|
+
const spends = c.observations.filter((o) => o.name === "spend");
|
|
1136
|
+
if (spends.length !== 1) fail2(p + ".channels.observations", "requires one exact provider spend snapshot, never overlapping sums");
|
|
1137
|
+
const spend = spends[0];
|
|
1138
|
+
if (spend.state !== "observed" || spend.source !== "provider" || spend.countingUnit !== "provider_aggregate" || spend.attributionModel !== "provider_reported" || spend.value.kind !== "money" || canonical(spend.value.money) !== canonical(cost.reportedSpend) || Date.parse(spend.windowStart) !== windowStart || Date.parse(spend.windowEnd) !== windowEnd || spend.dataThrough !== null || Date.parse(spend.asOf) !== recorded) fail2(p + ".channels.observations", "reported spend must match the exact nonfinal provider snapshot");
|
|
1139
|
+
const outcomes = c.observations.filter((o) => o.name === "qualified_goals");
|
|
1140
|
+
if (outcomes.length !== 1) fail2(p + ".channels.observations", "requires one independent qualified-contact source");
|
|
1141
|
+
const qualified = outcomes[0];
|
|
1142
|
+
if (qualified.state !== "observed" || qualified.source !== "first_party" || qualified.sourceRef !== outcome.sourceRevision || qualified.goalRevision !== r.goalRevision || qualified.countingUnit !== "unique_qualified_contact" || qualified.attributionModel !== r.resolvedPolicy.attributionModel || qualified.value.kind !== "count" || qualified.value.count !== outcome.qualifiedContacts || qualified.eligibleExposures !== outcome.eligibleContacts || qualified.matureOutcomes !== outcome.qualifiedContacts || qualified.dataThrough === null || Date.parse(qualified.dataThrough) < windowEnd || Date.parse(qualified.dataThrough) > observedAt || c.matureThrough === null || Date.parse(c.matureThrough) < windowEnd || Date.parse(c.matureThrough) > observedAt) fail2(p + ".channels.outcomeSource", "requires independent mature qualified-contact evidence");
|
|
1143
|
+
const formatter = new Intl.DateTimeFormat("en-GB", { timeZone: spend.timeZone, hour: "2-digit", minute: "2-digit", second: "2-digit", hourCycle: "h23" });
|
|
1144
|
+
if ([r.windowStart, r.windowEnd].some((t) => new Date(t).getUTCMilliseconds() !== 0 || formatter.format(new Date(t)) !== "00:00:00") || commonZone !== void 0 && commonZone !== spend.timeZone) fail2(p + ".channels.observations", "requires common advertiser-local completed days without rounding");
|
|
1145
|
+
commonZone = spend.timeZone;
|
|
1146
|
+
for (const o of c.observations) {
|
|
1147
|
+
parseResonanceMetricObservation(o);
|
|
1148
|
+
if (o.projectId !== r.projectId || o.campaignId !== r.campaignId || o.site !== c.site || Date.parse(o.windowStart) !== windowStart || Date.parse(o.windowEnd) !== windowEnd || o.timeZone !== spend.timeZone || Date.parse(o.asOf) > observedAt) fail2(p + ".channels.observations", "foreign or mismatched observation interval");
|
|
1149
|
+
if (o.source === "provider" && o.dataThrough !== null) fail2(p + ".channels.observations", "reported provider observation remains nonfinal");
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
checkAllocationEvidence(r);
|
|
1153
|
+
}
|
|
1057
1154
|
var optimizationEvidenceRefFields = { id: uuid, revision, evidenceDigest: digest };
|
|
1058
1155
|
var optimizationEvidenceRef = object2(optimizationEvidenceRefFields);
|
|
1059
1156
|
var finiteOwnMeasurement = union2(
|
|
@@ -1106,11 +1203,12 @@ var finiteOptimizationEvidence = object2({
|
|
|
1106
1203
|
inventoryState: choice2("complete", "incomplete", "unknown"),
|
|
1107
1204
|
candidates: list2(finiteCandidateObservation, 100, 1)
|
|
1108
1205
|
});
|
|
1109
|
-
var optimizationEvidence = union2(matureOptimizationEvidence, finiteOptimizationEvidence);
|
|
1206
|
+
var optimizationEvidence = union2(matureOptimizationEvidence, finiteOptimizationEvidence, reportedOptimizationEvidence);
|
|
1110
1207
|
function parseResonanceOptimizationEvidence(v, preparedPlan) {
|
|
1111
1208
|
const r = optimizationEvidence.read(v, "optimizationEvidence");
|
|
1112
1209
|
if (preparedPlan !== void 0) checkOptimizationEvidencePlan(r, parseResonancePreparedPlan(preparedPlan));
|
|
1113
1210
|
if (!("evidenceKind" in r)) return parseMatureOptimizationEvidence(r);
|
|
1211
|
+
if (r.evidenceKind === "reported_cpql_sql_clock_v1") return parseReportedOptimizationEvidence(r);
|
|
1114
1212
|
const p = "optimizationEvidence", policy = parseResonanceOptimizationPolicy(r.resolvedPolicy);
|
|
1115
1213
|
if (r.objective.measurementRevision !== r.goalRevision || r.objective.countingUnit !== "unique_qualified_contact" || canonical(policy.measurementGuard.sourceRef) !== canonical(r.objective.source) || canonical(policy.measurementGuard.qualificationRuleRef) !== canonical(r.objective.qualificationRuleRef) || policy.measurementGuard.maturityDelaySeconds !== r.objective.maturityDelaySeconds) fail2(p + ".objective", "finite policy must retain the original qualified objective");
|
|
1116
1214
|
if (Date.parse(r.windowEnd) <= Date.parse(r.windowStart) || r.dataThrough !== null && Date.parse(r.dataThrough) > Date.parse(r.observedAt)) fail2(p + ".window", "invalid observed window");
|
|
@@ -1141,6 +1239,15 @@ function checkOptimizationEvidencePlan(e, plan) {
|
|
|
1141
1239
|
const p = "optimizationEvidence";
|
|
1142
1240
|
if (e.projectId !== plan.projectId || e.campaignId !== plan.campaignId || e.preparedPlanId !== plan.id || e.reviewDigest !== plan.reviewDigest || canonical(e.objective) !== canonical(plan.definition.objective) || canonical(e.resolvedPolicy) !== canonical(plan.resolvedEvidencePolicy)) fail2(p + ".preparedPlanId", "requires the exact original prepared scope and policy");
|
|
1143
1241
|
if (!("evidenceKind" in e)) return;
|
|
1242
|
+
if (e.evidenceKind === "reported_cpql_sql_clock_v1") {
|
|
1243
|
+
const cohort = plan.resolvedQualificationRule?.cohort;
|
|
1244
|
+
if (!cohort || Date.parse(e.windowStart) < Date.parse(cohort.startAt) || Date.parse(e.windowEnd) > Date.parse(cohort.endAt)) fail2(p + ".window", "outside the original frozen qualification cohort");
|
|
1245
|
+
for (const c of e.channels) {
|
|
1246
|
+
const original = plan.definition.channels.find((x) => x.id === c.channelId), account = plan.accounts.find((x) => x.id === c.accountBindingId);
|
|
1247
|
+
if (!original || !("provider" in original) || original.site !== c.site || original.accountBindingId !== c.accountBindingId || !account || c.observations.some((o) => o.timeZone !== account.timeZone)) fail2(p + ".channels", "reported evidence must retain original channel/account/site/timezone");
|
|
1248
|
+
}
|
|
1249
|
+
return;
|
|
1250
|
+
}
|
|
1144
1251
|
for (const observed of e.candidates) {
|
|
1145
1252
|
const original = plan.definition.channels.find((c) => c.id === observed.channelId), preview2 = plan.channelPreviews.find((c) => c.channelId === observed.channelId);
|
|
1146
1253
|
if (!original || original.kind !== "meta_retargeting" || !preview2 || observed.site !== original.site || observed.accountBindingId !== original.accountBindingId || canonical(observed.cap) !== canonical(original.allocation) || canonical(observed.manifestRef) !== canonical(preview2.manifestRef)) fail2(p + ".candidates", "candidate projection differs from original channel and manifest");
|
|
@@ -1220,11 +1327,18 @@ function checkOptimizationDecisionEvidence(d, e) {
|
|
|
1220
1327
|
if (d.projectId !== e.projectId || d.campaignId !== e.campaignId || d.preparedPlanId !== e.preparedPlanId || d.reviewDigest !== e.reviewDigest || d.policyDigest !== e.policyDigest || canonical(d.evidenceRef) !== canonical({ id: e.id, revision: e.revision, evidenceDigest: e.evidenceDigest })) fail2(p + ".evidenceRef", "must bind the exact original evidence and review");
|
|
1221
1328
|
if (Date.parse(d.createdAt) < Date.parse(e.observedAt)) fail2(p + ".createdAt", "precedes actual evidence");
|
|
1222
1329
|
if (d.decisionKind !== "preapproved_candidate_operation") {
|
|
1223
|
-
if ("evidenceKind" in e) fail2(p + ".decisionKind", "mature decisions cannot borrow finite lifecycle evidence");
|
|
1330
|
+
if ("evidenceKind" in e && e.evidenceKind !== "reported_cpql_sql_clock_v1") fail2(p + ".decisionKind", "mature decisions cannot borrow finite lifecycle evidence");
|
|
1331
|
+
if ("evidenceKind" in e && e.evidenceKind === "reported_cpql_sql_clock_v1" ? d.algorithmRevision !== e.resolvedPolicy.algorithm || d.decisionKind !== "observational_allocation" : d.algorithmRevision === "reported_cpql_conserved_transfer_v1") fail2(p + ".algorithmRevision", "reported-cost decisions require the exact reported evidence policy");
|
|
1332
|
+
if ("evidenceKind" in e && e.evidenceKind === "reported_cpql_sql_clock_v1") {
|
|
1333
|
+
const deadline = Math.min(Date.parse(e.observedAt), ...e.channels.flatMap((c) => [Date.parse(c.channelReportedCost.readClock.notBeforeAt), Date.parse(c.channelReportedCost.recordedAt)])) + e.resolvedPolicy.maxEvidenceAgeSeconds * 1e3;
|
|
1334
|
+
if (Date.parse(d.createdAt) > deadline || Date.parse(d.expiresAt) > deadline) fail2(p + ".expiresAt", "outside original HTTP/database evidence freshness");
|
|
1335
|
+
const refs = e.channels.flatMap((c) => [c.channelReportedCost.observationId, c.outcomeSource.sourceRevision]);
|
|
1336
|
+
if (refs.some((ref) => !d.sourceRefs.includes(ref))) fail2(p + ".sourceRefs", "requires immutable reported-cost and independent outcome sources");
|
|
1337
|
+
}
|
|
1224
1338
|
if (d.algorithmRevision === "finite_meta_candidates_v1") fail2(p + ".algorithmRevision", "mature decisions cannot use the finite algorithm");
|
|
1225
1339
|
return;
|
|
1226
1340
|
}
|
|
1227
|
-
if (!("evidenceKind" in e)) fail2(p + ".decisionKind", "finite actions require finite lifecycle evidence");
|
|
1341
|
+
if (!("evidenceKind" in e) || e.evidenceKind !== "finite_candidate_lifecycle_v1") fail2(p + ".decisionKind", "finite actions require finite lifecycle evidence");
|
|
1228
1342
|
const finite = e, policy = finite.resolvedPolicy;
|
|
1229
1343
|
if (Date.parse(d.createdAt) - Date.parse(finite.observedAt) > policy.measurementGuard.maxEvidenceAgeSeconds * 1e3 || Date.parse(d.expiresAt) > Date.parse(policy.expiresAt)) fail2(p + ".expiresAt", "outside current policy/evidence freshness");
|
|
1230
1344
|
for (const a of d.candidateActions) {
|
|
@@ -1616,7 +1730,7 @@ var feedSelection = refine2(object2({ channels: list2(object2({ channelId: uuid,
|
|
|
1616
1730
|
unique(v.channels.map((c) => c.channelId), p + ".channels");
|
|
1617
1731
|
for (const c of v.channels) unique(c.resourceRuleRefs.map((ref) => ref.id), p + ".resourceRuleRefs");
|
|
1618
1732
|
});
|
|
1619
|
-
var mandateDraftRequest = object2({ expectedRevision: integer2(1), allowedOperations: mandateAllowedOperations, expiresAt: instant, websiteVisitFeedSelection: optional2(feedSelection) });
|
|
1733
|
+
var mandateDraftRequest = object2({ expectedRevision: integer2(1), allowedOperations: mandateAllowedOperations, expiresAt: instant, websiteVisitFeedSelection: optional2(feedSelection), providerReporting: optional2(providerReportingSelection) });
|
|
1620
1734
|
var parseResonanceMandateDraftRequest = (v) => mandateDraftRequest.read(v, "mandateDraftRequest");
|
|
1621
1735
|
var RESONANCE_MANDATE_DRAFT_REQUEST_JSON_SCHEMA = mandateDraftRequest.schema;
|
|
1622
1736
|
var feedReview = object2({ schemaVersion: literal2(1), approval: mandateApproval, mandateRef, configurations: list2(metaSnapshot, 100), current: object2({ state: choice2("not_enabled", "eligible", "invalidated", "unavailable"), checkedAt: instant, expiresAt: nullable2(instant), reasonCodes: uniqueList(text2(200), 100) }) });
|
|
@@ -1648,6 +1762,86 @@ function parseResonanceWebsiteVisitFeedReview(v, context) {
|
|
|
1648
1762
|
return r;
|
|
1649
1763
|
}
|
|
1650
1764
|
var RESONANCE_WEBSITE_VISIT_FEED_REVIEW_JSON_SCHEMA = feedReview.schema;
|
|
1765
|
+
var observationIdentity = { observationId: uuid, channelId: uuid, versionId: uuid, accountBindingId: uuid };
|
|
1766
|
+
var publicObservationMetric = union2(
|
|
1767
|
+
object2({ ...metricBase, ...observationIdentity, source: choice2("provider", "first_party"), state: literal2("observed"), value: metricValue }),
|
|
1768
|
+
object2({ ...metricBase, ...observationIdentity, source: choice2("provider", "first_party"), state: choice2("unknown", "insufficient", "delayed", "unavailable"), value: literal2(null), reasonCode: text2(80) })
|
|
1769
|
+
);
|
|
1770
|
+
function parseResonancePublicObservationMetric(v) {
|
|
1771
|
+
const r = publicObservationMetric.read(v, "observationItem");
|
|
1772
|
+
const { observationId: _observation, channelId: _channel, versionId: _version, accountBindingId: _account, ...body } = r;
|
|
1773
|
+
parseResonanceMetricObservation(body);
|
|
1774
|
+
return r;
|
|
1775
|
+
}
|
|
1776
|
+
var observationDenominators = object2({ eligibleContacts: nullable2(decimal), fullyResolvedContacts: nullable2(decimal), qualifiedContacts: nullable2(decimal) });
|
|
1777
|
+
var observationSupportFields = { ...observationIdentity, currency, fetchedAt: instant, dataThrough: nullable2(instant), coverage: choice2("unknown", "partial", "complete"), reasonCode: nullable2(text2(80)), denominators: observationDenominators };
|
|
1778
|
+
var firstPartyObservationSupport = object2({ ...observationSupportFields, source: literal2("first_party") });
|
|
1779
|
+
var providerObservationSupport = object2({
|
|
1780
|
+
...observationSupportFields,
|
|
1781
|
+
source: literal2("provider"),
|
|
1782
|
+
firstReceivedAt: nullable2(instant),
|
|
1783
|
+
receivedAt: nullable2(instant),
|
|
1784
|
+
recordedAt: nullable2(instant),
|
|
1785
|
+
readClock: nullable2(providerReadClock),
|
|
1786
|
+
providerFinality: literal2("unknown"),
|
|
1787
|
+
correctionsPossible: literal2(true),
|
|
1788
|
+
coverageBasis: choice2("closed_query_snapshot", "not_established")
|
|
1789
|
+
});
|
|
1790
|
+
var observationSupport = union2(firstPartyObservationSupport, providerObservationSupport);
|
|
1791
|
+
function parseResonanceObservationSupport(v) {
|
|
1792
|
+
const r = observationSupport.read(v, "observationSupport"), p = "observationSupport", d = r.denominators;
|
|
1793
|
+
if (d.fullyResolvedContacts !== null && (d.eligibleContacts === null || BigInt(d.fullyResolvedContacts) > BigInt(d.eligibleContacts)) || d.qualifiedContacts !== null && (d.fullyResolvedContacts === null || BigInt(d.qualifiedContacts) > BigInt(d.fullyResolvedContacts))) fail2(p + ".denominators", "inconsistent independent contact universe");
|
|
1794
|
+
if (r.source === "provider") {
|
|
1795
|
+
if (Object.values(d).some((v2) => v2 !== null)) fail2(p + ".denominators", "provider reporting cannot supply qualified-contact denominators");
|
|
1796
|
+
if (r.firstReceivedAt !== null && (r.receivedAt === null || Date.parse(r.firstReceivedAt) > Date.parse(r.receivedAt))) fail2(p + ".firstReceivedAt", "preserve actual internal HTTP receipt order");
|
|
1797
|
+
if (r.recordedAt !== null && Date.parse(r.recordedAt) !== Date.parse(r.fetchedAt)) fail2(p + ".recordedAt", "must retain the native immutable SQL write time");
|
|
1798
|
+
if (r.readClock !== null && (r.firstReceivedAt === null || r.receivedAt === null || r.recordedAt === null || Date.parse(r.readClock.notBeforeAt) > Date.parse(r.recordedAt))) fail2(p + ".readClock", "requires actual earliest/final HTTP metadata and SQL lower-bound chronology");
|
|
1799
|
+
if (r.coverageBasis === "closed_query_snapshot" ? r.coverage !== "complete" || r.reasonCode !== null || r.receivedAt === null || r.recordedAt === null || r.dataThrough !== null : r.coverage === "complete") fail2(p + ".coverage", "distinguish revisable query coverage from unestablished legacy reporting");
|
|
1800
|
+
}
|
|
1801
|
+
return r;
|
|
1802
|
+
}
|
|
1803
|
+
var observationsPage = object2({ items: list2(publicObservationMetric, 300), nextCursor: nullable2(uuid), observedAt: instant, support: list2(observationSupport, 300) });
|
|
1804
|
+
function parseResonanceObservationsPage(v) {
|
|
1805
|
+
const r = observationsPage.read(v, "observationsPage"), p = "observationsPage";
|
|
1806
|
+
if (r.items.length !== r.support.length) fail2(p + ".support", "requires one support entry for each metric item");
|
|
1807
|
+
const pairs = /* @__PURE__ */ new Set(), rows = /* @__PURE__ */ new Map(), observedAt = Date.parse(r.observedAt);
|
|
1808
|
+
let previous;
|
|
1809
|
+
const first = r.items[0];
|
|
1810
|
+
for (let i = 0; i < r.items.length; i++) {
|
|
1811
|
+
const item = parseResonancePublicObservationMetric(r.items[i]), s = parseResonanceObservationSupport(r.support[i]), rowId = item.observationId.toLowerCase();
|
|
1812
|
+
if (Object.keys(observationIdentity).some((k) => item[k] !== s[k])) fail2(p + ".support", "item/support observation, channel, version and account must align in order");
|
|
1813
|
+
if (item.source !== s.source || item.projectId !== first.projectId || item.campaignId !== first.campaignId || item.site !== first.site) fail2(p + ".items", "requires one scoped provider or first-party page");
|
|
1814
|
+
if (Date.parse(item.asOf) !== Date.parse(s.fetchedAt) || Date.parse(s.fetchedAt) > observedAt || item.dataThrough === null !== (s.dataThrough === null) || item.dataThrough !== null && s.dataThrough !== null && Date.parse(item.dataThrough) !== Date.parse(s.dataThrough)) fail2(p + ".support", "preserve native SQL observation chronology and data-through meaning");
|
|
1815
|
+
if (item.state === "observed" && item.value.kind === "money" && item.value.money.currency !== s.currency) fail2(p + ".support.currency", "observed money must retain account currency");
|
|
1816
|
+
if (previous !== void 0 && rowId < previous) fail2(p + ".items", "native-row UUID order cannot be replaced by metric/time sorting");
|
|
1817
|
+
previous = rowId;
|
|
1818
|
+
const key = rowId + ":" + item.name;
|
|
1819
|
+
if (pairs.has(key)) fail2(p + ".items", "duplicate observation/metric pair");
|
|
1820
|
+
pairs.add(key);
|
|
1821
|
+
const supportIdentity = { ...s, fetchedAt: Date.parse(s.fetchedAt), dataThrough: s.dataThrough === null ? null : Date.parse(s.dataThrough), ...s.source === "provider" ? { firstReceivedAt: s.firstReceivedAt === null ? null : Date.parse(s.firstReceivedAt), receivedAt: s.receivedAt === null ? null : Date.parse(s.receivedAt), recordedAt: s.recordedAt === null ? null : Date.parse(s.recordedAt) } : {} };
|
|
1822
|
+
const row = canonical({ projectId: item.projectId, campaignId: item.campaignId, site: item.site, channelId: item.channelId, versionId: item.versionId, accountBindingId: item.accountBindingId, source: item.source, windowStart: Date.parse(item.windowStart), windowEnd: Date.parse(item.windowEnd), timeZone: item.timeZone, fetchedAt: Date.parse(s.fetchedAt), support: supportIdentity });
|
|
1823
|
+
if (rows.has(rowId) && rows.get(rowId) !== row) fail2(p + ".support", "one immutable native observation cannot change identity or support across metrics");
|
|
1824
|
+
rows.set(rowId, row);
|
|
1825
|
+
if (s.source === "provider") {
|
|
1826
|
+
if (item.state === "observed" && (s.coverage !== "complete" || s.coverageBasis !== "closed_query_snapshot" || s.reasonCode !== null)) fail2(p + ".support", "observed provider values require complete genuine closed-query support");
|
|
1827
|
+
if (!["spend", "impressions", "clicks"].includes(item.name) || item.sourceRef !== item.observationId || item.countingUnit !== "provider_aggregate" || item.attributionModel !== "provider_reported") fail2(p + ".items", "provider metrics retain exact native observation and aggregate semantics");
|
|
1828
|
+
if (s.readClock !== null && Date.parse(s.readClock.notBeforeAt) < Date.parse(item.windowEnd)) fail2(p + ".support.readClock", "SQL pre-read lower bound must follow the completed query window");
|
|
1829
|
+
} else {
|
|
1830
|
+
const d = s.denominators;
|
|
1831
|
+
if (item.name !== "qualified_goals" || item.countingUnit !== "unique_qualified_contact" || item.goalRevision === null || item.attributionModel !== RESONANCE_ATTRIBUTION_MODEL || item.eligibleExposures !== null || item.matureOutcomes !== null) fail2(p + ".items", "preserve genuine first-party qualification without fabricated exposure counts");
|
|
1832
|
+
const coverage = d.eligibleContacts === null || d.eligibleContacts === "0" || d.fullyResolvedContacts === null ? null : Number(BigInt(d.fullyResolvedContacts) * 10000n / BigInt(d.eligibleContacts));
|
|
1833
|
+
if (item.coverageBasisPoints !== coverage) fail2(p + ".support.denominators", "contact resolution coverage must match the independent universe");
|
|
1834
|
+
if (item.state !== "observed" && (s.coverage === "complete" || s.reasonCode !== item.reasonCode)) fail2(p + ".support", "unresolved qualified sources keep incomplete coverage and their native reason");
|
|
1835
|
+
if (item.state === "observed" && (s.coverage !== "complete" || s.reasonCode !== null || d.eligibleContacts === null || d.fullyResolvedContacts !== d.eligibleContacts || d.qualifiedContacts === null || item.value.kind !== "count" || item.value.count !== d.qualifiedContacts)) fail2(p + ".support", "observed qualified count requires its complete independent native universe");
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
if (rows.size > 100) fail2(p + ".items", "at most 100 native rows per page");
|
|
1839
|
+
if (r.nextCursor !== null && (!r.items.length || r.nextCursor.toLowerCase() !== previous)) fail2(p + ".nextCursor", "cursor must retain the final native row, not a metric offset");
|
|
1840
|
+
return r;
|
|
1841
|
+
}
|
|
1842
|
+
var RESONANCE_PUBLIC_OBSERVATION_METRIC_JSON_SCHEMA = publicObservationMetric.schema;
|
|
1843
|
+
var RESONANCE_OBSERVATION_SUPPORT_JSON_SCHEMA = observationSupport.schema;
|
|
1844
|
+
var RESONANCE_OBSERVATIONS_PAGE_JSON_SCHEMA = observationsPage.schema;
|
|
1651
1845
|
|
|
1652
1846
|
exports.MAX_MONEY_MICROS = MAX_MONEY_MICROS;
|
|
1653
1847
|
exports.MONEY_EXPONENT = MONEY_EXPONENT;
|
|
@@ -1702,11 +1896,16 @@ exports.RESONANCE_META_CONFIGURATION_SAVE_RESPONSE_JSON_SCHEMA = RESONANCE_META_
|
|
|
1702
1896
|
exports.RESONANCE_META_CONFIGURATION_SNAPSHOT_JSON_SCHEMA = RESONANCE_META_CONFIGURATION_SNAPSHOT_JSON_SCHEMA;
|
|
1703
1897
|
exports.RESONANCE_META_CONFIGURATION_VIEW_JSON_SCHEMA = RESONANCE_META_CONFIGURATION_VIEW_JSON_SCHEMA;
|
|
1704
1898
|
exports.RESONANCE_METRIC_JSON_SCHEMA = RESONANCE_METRIC_JSON_SCHEMA;
|
|
1899
|
+
exports.RESONANCE_OBSERVATIONS_PAGE_JSON_SCHEMA = RESONANCE_OBSERVATIONS_PAGE_JSON_SCHEMA;
|
|
1900
|
+
exports.RESONANCE_OBSERVATION_SUPPORT_JSON_SCHEMA = RESONANCE_OBSERVATION_SUPPORT_JSON_SCHEMA;
|
|
1705
1901
|
exports.RESONANCE_OCCURRENCE_RESPONSE_JSON_SCHEMA = RESONANCE_OCCURRENCE_RESPONSE_JSON_SCHEMA;
|
|
1706
1902
|
exports.RESONANCE_OPTIMIZATION_DECISION_JSON_SCHEMA = RESONANCE_OPTIMIZATION_DECISION_JSON_SCHEMA;
|
|
1707
1903
|
exports.RESONANCE_OPTIMIZATION_EVIDENCE_JSON_SCHEMA = RESONANCE_OPTIMIZATION_EVIDENCE_JSON_SCHEMA;
|
|
1708
1904
|
exports.RESONANCE_OPTIMIZATION_POLICY_JSON_SCHEMA = RESONANCE_OPTIMIZATION_POLICY_JSON_SCHEMA;
|
|
1709
1905
|
exports.RESONANCE_PREPARED_PLAN_JSON_SCHEMA = RESONANCE_PREPARED_PLAN_JSON_SCHEMA;
|
|
1906
|
+
exports.RESONANCE_PROVIDER_REPORTING_GRANT_JSON_SCHEMA = RESONANCE_PROVIDER_REPORTING_GRANT_JSON_SCHEMA;
|
|
1907
|
+
exports.RESONANCE_PROVIDER_REPORTING_SELECTION_JSON_SCHEMA = RESONANCE_PROVIDER_REPORTING_SELECTION_JSON_SCHEMA;
|
|
1908
|
+
exports.RESONANCE_PUBLIC_OBSERVATION_METRIC_JSON_SCHEMA = RESONANCE_PUBLIC_OBSERVATION_METRIC_JSON_SCHEMA;
|
|
1710
1909
|
exports.RESONANCE_QUALIFICATION_RULE_JSON_SCHEMA = RESONANCE_QUALIFICATION_RULE_JSON_SCHEMA;
|
|
1711
1910
|
exports.RESONANCE_RECEIPT_JSON_SCHEMA = RESONANCE_RECEIPT_JSON_SCHEMA;
|
|
1712
1911
|
exports.RESONANCE_RESOLVED_QUALIFICATION_RULE_JSON_SCHEMA = RESONANCE_RESOLVED_QUALIFICATION_RULE_JSON_SCHEMA;
|
|
@@ -1776,12 +1975,17 @@ exports.parseResonanceMetaConfigurationSaveResponse = parseResonanceMetaConfigur
|
|
|
1776
1975
|
exports.parseResonanceMetaConfigurationSnapshot = parseResonanceMetaConfigurationSnapshot;
|
|
1777
1976
|
exports.parseResonanceMetaConfigurationView = parseResonanceMetaConfigurationView;
|
|
1778
1977
|
exports.parseResonanceMetricObservation = parseResonanceMetricObservation;
|
|
1978
|
+
exports.parseResonanceObservationSupport = parseResonanceObservationSupport;
|
|
1979
|
+
exports.parseResonanceObservationsPage = parseResonanceObservationsPage;
|
|
1779
1980
|
exports.parseResonanceOccurrenceResponse = parseResonanceOccurrenceResponse;
|
|
1780
1981
|
exports.parseResonanceOptimizationDecision = parseResonanceOptimizationDecision;
|
|
1781
1982
|
exports.parseResonanceOptimizationEvidence = parseResonanceOptimizationEvidence;
|
|
1782
1983
|
exports.parseResonanceOptimizationPolicy = parseResonanceOptimizationPolicy;
|
|
1783
1984
|
exports.parseResonancePrepareCommand = parseResonancePrepareCommand;
|
|
1784
1985
|
exports.parseResonancePreparedPlan = parseResonancePreparedPlan;
|
|
1986
|
+
exports.parseResonanceProviderReportingGrant = parseResonanceProviderReportingGrant;
|
|
1987
|
+
exports.parseResonanceProviderReportingSelection = parseResonanceProviderReportingSelection;
|
|
1988
|
+
exports.parseResonancePublicObservationMetric = parseResonancePublicObservationMetric;
|
|
1785
1989
|
exports.parseResonanceQualificationRule = parseResonanceQualificationRule;
|
|
1786
1990
|
exports.parseResonanceReceipt = parseResonanceReceipt;
|
|
1787
1991
|
exports.parseResonanceResolvedQualificationRule = parseResonanceResolvedQualificationRule;
|
|
@@ -1792,6 +1996,7 @@ exports.parseResonanceWebsiteVisitFeedReview = parseResonanceWebsiteVisitFeedRev
|
|
|
1792
1996
|
exports.projectResonanceGoogleConfiguration = projectResonanceGoogleConfiguration;
|
|
1793
1997
|
exports.projectResonanceMeasurementConfiguration = projectResonanceMeasurementConfiguration;
|
|
1794
1998
|
exports.projectResonanceMetaConfiguration = projectResonanceMetaConfiguration;
|
|
1999
|
+
exports.reportedCpqlMissingOutcomeBound = reportedCpqlMissingOutcomeBound;
|
|
1795
2000
|
exports.resonanceCommandDigestInput = resonanceCommandDigestInput;
|
|
1796
2001
|
exports.resonanceGoogleConfigurationDigestInput = resonanceGoogleConfigurationDigestInput;
|
|
1797
2002
|
exports.resonanceGoogleSetupDigestInput = resonanceGoogleSetupDigestInput;
|