@sonordev/contracts 2.22.0 → 2.25.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.
@@ -1419,10 +1419,26 @@ declare const websiteVisitFeed: Field<{
1419
1419
  } & {}>;
1420
1420
  export type ResonanceWebsiteVisitFeed = Value<typeof websiteVisitFeed>;
1421
1421
  export declare const RESONANCE_WEBSITE_VISIT_FEED_JSON_SCHEMA: import("./wire-schema").JsonSchema;
1422
+ /** Explicit report-query choices, not configured attribution or Ads Manager equivalence. */
1423
+ export declare const RESONANCE_META_QUERY_ATTRIBUTION_WINDOWS: readonly ['1d_click', '7d_click', '1d_view'];
1424
+ export type ResonanceMetaQueryAttributionWindow = typeof RESONANCE_META_QUERY_ATTRIBUTION_WINDOWS[number];
1425
+ declare const metaReportingQuery: Field<{
1426
+ channelId: string;
1427
+ attributionWindow: "1d_click" | "1d_view" | "7d_click";
1428
+ actionReportTime: "conversion";
1429
+ basis: "explicit_query";
1430
+ } & {}>;
1422
1431
  declare const providerReportingSelection: Field<{
1423
1432
  agentContactId: string;
1424
1433
  channelIds: string[];
1425
- } & {}>;
1434
+ } & {
1435
+ metaQueries?: ({
1436
+ channelId: string;
1437
+ attributionWindow: "1d_click" | "1d_view" | "7d_click";
1438
+ actionReportTime: "conversion";
1439
+ basis: "explicit_query";
1440
+ } & {})[] | undefined;
1441
+ }>;
1426
1442
  declare const providerReportingGrant: Field<{
1427
1443
  purpose: "provider_reporting_refresh";
1428
1444
  orgId: string;
@@ -1430,7 +1446,15 @@ declare const providerReportingGrant: Field<{
1430
1446
  agentContactId: string;
1431
1447
  principalContactId: string;
1432
1448
  channelIds: string[];
1433
- } & {}>;
1449
+ } & {
1450
+ metaQueries?: ({
1451
+ channelId: string;
1452
+ attributionWindow: "1d_click" | "1d_view" | "7d_click";
1453
+ actionReportTime: "conversion";
1454
+ basis: "explicit_query";
1455
+ } & {})[] | undefined;
1456
+ }>;
1457
+ export type ResonanceMetaReportingQuery = Value<typeof metaReportingQuery>;
1434
1458
  export type ResonanceProviderReportingSelection = Value<typeof providerReportingSelection>;
1435
1459
  export type ResonanceProviderReportingGrant = Value<typeof providerReportingGrant>;
1436
1460
  export declare const parseResonanceProviderReportingSelection: (v: unknown) => ResonanceProviderReportingSelection;
@@ -1571,7 +1595,14 @@ declare const mandateScope: Field<{
1571
1595
  agentContactId: string;
1572
1596
  principalContactId: string;
1573
1597
  channelIds: string[];
1574
- } & {}) | undefined;
1598
+ } & {
1599
+ metaQueries?: ({
1600
+ channelId: string;
1601
+ attributionWindow: "1d_click" | "1d_view" | "7d_click";
1602
+ actionReportTime: "conversion";
1603
+ basis: "explicit_query";
1604
+ } & {})[] | undefined;
1605
+ }) | undefined;
1575
1606
  }>;
1576
1607
  export type ResonanceMandateScope = Value<typeof mandateScope>;
1577
1608
  export declare function parseResonanceMandateScope(v: unknown, preparedPlan?: unknown): ResonanceMandateScope;
@@ -3871,7 +3902,14 @@ declare const mandateApproval: Field<{
3871
3902
  agentContactId: string;
3872
3903
  principalContactId: string;
3873
3904
  channelIds: string[];
3874
- } & {}) | undefined;
3905
+ } & {
3906
+ metaQueries?: ({
3907
+ channelId: string;
3908
+ attributionWindow: "1d_click" | "1d_view" | "7d_click";
3909
+ actionReportTime: "conversion";
3910
+ basis: "explicit_query";
3911
+ } & {})[] | undefined;
3912
+ }) | undefined;
3875
3913
  };
3876
3914
  } & {}>;
3877
3915
  export type ResonanceMandateApprovalPayload = Value<typeof mandateApproval>;
@@ -6704,53 +6742,287 @@ export declare const RESONANCE_MEASUREMENT_CONFIGURATION_SAVE_COMMAND_JSON_SCHEM
6704
6742
  export declare const RESONANCE_MEASUREMENT_CONFIGURATION_CURRENT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6705
6743
  export declare const RESONANCE_MEASUREMENT_CONFIGURATION_SNAPSHOT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6706
6744
  export declare const RESONANCE_MEASUREMENT_CONFIGURATION_SAVE_RESPONSE_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6707
- declare const metaSave: Field<{
6745
+ export declare const RESONANCE_META_DATASET_NAME_MAX_LENGTH = 160;
6746
+ export declare const parseResonanceMetaDatasetName: (value: unknown) => string;
6747
+ declare const metaDatasetSetupPrepare: Field<{
6708
6748
  schemaVersion: 1;
6709
- expectedCampaignRevision: number;
6710
- expectedConfigurationRevision: number;
6749
+ site: string;
6750
+ accountBindingId: string;
6751
+ expectedDraftRevision: number;
6711
6752
  idempotencyKey: string;
6712
- audiences: (({
6713
- audienceRuleId: string;
6714
- mode: "existing";
6715
- nativeAudienceRef: {
6716
- externalId: string;
6717
- revision: string;
6718
- } & {};
6753
+ selection: ({
6754
+ kind: "existing";
6755
+ externalId: string;
6719
6756
  } & {}) | ({
6720
- audienceRuleId: string;
6721
- mode: "admitted_setup";
6722
- } & {}))[];
6757
+ kind: "create_if_none";
6758
+ name: string;
6759
+ } & {});
6723
6760
  } & {}>;
6724
- export type ResonanceMetaConfigurationSaveCommand = Value<typeof metaSave>;
6725
- export declare const parseResonanceMetaConfigurationSaveCommand: (v: unknown) => ResonanceMetaConfigurationSaveCommand;
6726
- export declare const resonanceMetaConfigurationSaveDigestInput: (v: unknown) => string;
6727
- declare const metaSnapshot: Field<{
6761
+ export type ResonanceMetaDatasetSetupPrepareRequest = Value<typeof metaDatasetSetupPrepare>;
6762
+ export declare const parseResonanceMetaDatasetSetupPrepareRequest: (value: unknown) => ResonanceMetaDatasetSetupPrepareRequest;
6763
+ export declare const RESONANCE_META_DATASET_SETUP_PREPARE_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6764
+ declare const metaDatasetSelectionRequest: Field<{
6765
+ schemaVersion: 1;
6766
+ site: string;
6767
+ accountBindingId: string;
6768
+ expectedDraftRevision: number;
6769
+ idempotencyKey: string;
6770
+ selection: {
6771
+ kind: "existing";
6772
+ externalId: string;
6773
+ } & {};
6774
+ } & {}>;
6775
+ declare const metaDatasetSelectionWitness: Field<{
6776
+ externalId: string;
6777
+ resourceRevision: string;
6778
+ observedAt: string;
6779
+ } & {}>;
6780
+ export type ResonanceMetaDatasetSelectionRequest = Value<typeof metaDatasetSelectionRequest>;
6781
+ export type ResonanceMetaDatasetSelectionWitness = Value<typeof metaDatasetSelectionWitness>;
6782
+ export declare const parseResonanceMetaDatasetSelectionRequest: (value: unknown) => ResonanceMetaDatasetSelectionRequest;
6783
+ export declare const parseResonanceMetaDatasetSelectionWitness: (value: unknown) => ResonanceMetaDatasetSelectionWitness;
6784
+ export declare const RESONANCE_META_DATASET_SELECTION_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6785
+ export declare const RESONANCE_META_DATASET_SELECTION_WITNESS_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6786
+ declare const metaDatasetSetupIntent: Field<{
6728
6787
  schemaVersion: 1;
6788
+ site: string;
6789
+ accountBindingId: string;
6790
+ expectedDraftRevision: number;
6791
+ idempotencyKey: string;
6792
+ selection: ({
6793
+ kind: "existing";
6794
+ externalId: string;
6795
+ } & {}) | ({
6796
+ kind: "create_if_none";
6797
+ name: string;
6798
+ } & {});
6799
+ orgId: string;
6800
+ projectId: string;
6801
+ campaignId: string;
6802
+ connectionId: string;
6803
+ accountBindingRevision: number;
6804
+ connectionRevision: string;
6805
+ capabilityRevision: string;
6806
+ expectedKillRevision: number;
6807
+ externalAccountId: string;
6808
+ businessId: string;
6809
+ } & {}>;
6810
+ declare const metaDatasetSetupReview: Field<{
6811
+ intent: {
6812
+ schemaVersion: 1;
6813
+ site: string;
6814
+ accountBindingId: string;
6815
+ expectedDraftRevision: number;
6816
+ idempotencyKey: string;
6817
+ selection: ({
6818
+ kind: "existing";
6819
+ externalId: string;
6820
+ } & {}) | ({
6821
+ kind: "create_if_none";
6822
+ name: string;
6823
+ } & {});
6824
+ orgId: string;
6825
+ projectId: string;
6826
+ campaignId: string;
6827
+ connectionId: string;
6828
+ accountBindingRevision: number;
6829
+ connectionRevision: string;
6830
+ capabilityRevision: string;
6831
+ expectedKillRevision: number;
6832
+ externalAccountId: string;
6833
+ businessId: string;
6834
+ } & {};
6835
+ requestDigest: string;
6836
+ } & {}>;
6837
+ export type ResonanceMetaDatasetSetupIntent = Value<typeof metaDatasetSetupIntent>;
6838
+ export type ResonanceMetaDatasetSetupReview = Value<typeof metaDatasetSetupReview>;
6839
+ export declare const parseResonanceMetaDatasetSetupIntent: (value: unknown) => ResonanceMetaDatasetSetupIntent;
6840
+ export declare const parseResonanceMetaDatasetSetupReview: (value: unknown) => ResonanceMetaDatasetSetupReview;
6841
+ export declare const resonanceMetaDatasetSetupDigestInput: (value: unknown) => string;
6842
+ export declare const RESONANCE_META_DATASET_SETUP_REVIEW_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6843
+ declare const metaDatasetSetupFirstOutcome: Field<{
6844
+ admission: "accepted" | "rejected" | "unknown";
6845
+ externalId: string | null;
6846
+ providerRequestId: string | null;
6847
+ providerRequestDigest: string;
6848
+ } & {}>;
6849
+ declare const metaDatasetSetupVerification: Field<{
6850
+ externalId: string;
6851
+ externalAccountId: string;
6852
+ businessId: string;
6853
+ resourceRevision: string;
6854
+ observedAt: string;
6855
+ } & {}>;
6856
+ declare const metaDatasetSetupReceipt: Field<{
6857
+ schemaVersion: 1;
6858
+ operationId: string;
6729
6859
  projectId: string;
6730
6860
  campaignId: string;
6731
- channelId: string;
6732
6861
  site: string;
6733
- campaignRevision: number;
6734
- reviewedDefinitionDigest: string;
6735
- configurationRevision: number;
6736
- saveOperationId: string;
6737
- channel: {
6862
+ accountBindingId: string;
6863
+ requestDigest: string;
6864
+ status: "cancelled" | "created_unverified" | "pending" | "rejected" | "selected" | "uncertain" | "verified";
6865
+ firstOutcome: ({
6866
+ admission: "accepted" | "rejected" | "unknown";
6867
+ externalId: string | null;
6868
+ providerRequestId: string | null;
6869
+ providerRequestDigest: string;
6870
+ } & {}) | null;
6871
+ reasonCodes: string[];
6872
+ currentVerification: ({
6873
+ externalId: string;
6874
+ externalAccountId: string;
6875
+ businessId: string;
6876
+ resourceRevision: string;
6877
+ observedAt: string;
6878
+ } & {}) | null;
6879
+ } & {}>;
6880
+ export type ResonanceMetaDatasetSetupFirstOutcome = Value<typeof metaDatasetSetupFirstOutcome>;
6881
+ export type ResonanceMetaDatasetSetupVerification = Value<typeof metaDatasetSetupVerification>;
6882
+ export type ResonanceMetaDatasetSetupReceipt = Value<typeof metaDatasetSetupReceipt>;
6883
+ export declare const parseResonanceMetaDatasetSetupReceipt: (value: unknown) => ResonanceMetaDatasetSetupReceipt;
6884
+ export declare const RESONANCE_META_DATASET_SETUP_RECEIPT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6885
+ declare const metaAudienceSetupPrepare: Field<{
6886
+ schemaVersion: 1;
6887
+ site: string;
6888
+ accountBindingId: string;
6889
+ expectedDraftRevision: number;
6890
+ idempotencyKey: string;
6891
+ dataset: {
6892
+ externalId: string;
6893
+ resourceRevision: string;
6894
+ } & {};
6895
+ audienceRule: {
6896
+ id: string;
6897
+ revision: string;
6898
+ } & {};
6899
+ selection: ({
6900
+ kind: "existing";
6901
+ externalId: string;
6902
+ resourceRevision: string;
6903
+ } & {}) | ({
6904
+ kind: "create_if_none";
6905
+ } & {});
6906
+ feed: ({
6907
+ kind: "off";
6908
+ } & {}) | ({
6909
+ kind: "enable";
6910
+ expiresAt: string;
6911
+ } & {});
6912
+ } & {}>;
6913
+ export type ResonanceMetaAudienceSetupPrepareRequest = Value<typeof metaAudienceSetupPrepare>;
6914
+ export declare const parseResonanceMetaAudienceSetupPrepareRequest: (value: unknown) => ResonanceMetaAudienceSetupPrepareRequest;
6915
+ export declare const RESONANCE_META_AUDIENCE_SETUP_PREPARE_REQUEST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
6916
+ declare const metaAudienceSetupIntent: Field<{
6917
+ orgId: string;
6918
+ projectId: string;
6919
+ campaignId: string;
6920
+ connectionId: string;
6921
+ accountBindingRevision: number;
6922
+ connectionRevision: string;
6923
+ capabilityRevision: string;
6924
+ expectedKillRevision: number;
6925
+ externalAccountId: string;
6926
+ businessId: string;
6927
+ schemaVersion: 1;
6928
+ site: string;
6929
+ accountBindingId: string;
6930
+ expectedDraftRevision: number;
6931
+ idempotencyKey: string;
6932
+ dataset: {
6933
+ externalId: string;
6934
+ resourceRevision: string;
6935
+ } & {};
6936
+ audienceRule: {
6937
+ id: string;
6938
+ revision: string;
6939
+ } & {};
6940
+ selection: ({
6941
+ kind: "existing";
6942
+ externalId: string;
6943
+ resourceRevision: string;
6944
+ } & {}) | ({
6945
+ kind: "create_if_none";
6946
+ } & {});
6947
+ feed: ({
6948
+ kind: "off";
6949
+ } & {}) | ({
6950
+ kind: "enable";
6951
+ expiresAt: string;
6952
+ } & {});
6953
+ audienceRuleRef: {
6738
6954
  projectId: string;
6739
6955
  site: string;
6740
6956
  id: string;
6741
- destinationId: string;
6742
- creativeIds: string[];
6743
- localCampaignKey: string;
6744
- kind: "meta_retargeting";
6745
- provider: "meta_ads";
6746
- accountBindingId: string;
6957
+ revision: string;
6958
+ policyRevision: string;
6959
+ retentionDays: number;
6960
+ exclusionRuleIds: string[];
6961
+ consentPurpose: "ad_personalization";
6962
+ } & {
6963
+ minDaysSinceVisit?: number | undefined;
6964
+ };
6965
+ resourceRuleRef: {
6966
+ id: string;
6967
+ revision: string;
6968
+ } & {};
6969
+ excludedResourceRuleRefs: ({
6970
+ id: string;
6971
+ revision: string;
6972
+ } & {})[];
6973
+ measurementConfigRef: {
6974
+ configRevision: string;
6975
+ policyRevision: string;
6976
+ digest: string;
6977
+ } & {};
6978
+ matchingProfileRef: {
6979
+ id: string;
6980
+ revision: number;
6981
+ digest: string;
6982
+ } & {};
6983
+ audienceSpecDigest: string;
6984
+ name: string;
6985
+ expiresAt: string;
6986
+ } & {}>;
6987
+ declare const metaAudienceSetupReview: Field<{
6988
+ intent: {
6989
+ orgId: string;
6990
+ projectId: string;
6991
+ campaignId: string;
6992
+ connectionId: string;
6993
+ accountBindingRevision: number;
6994
+ connectionRevision: string;
6747
6995
  capabilityRevision: string;
6748
- allocation: {
6749
- 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";
6750
- amountMicros: string;
6996
+ expectedKillRevision: number;
6997
+ externalAccountId: string;
6998
+ businessId: string;
6999
+ schemaVersion: 1;
7000
+ site: string;
7001
+ accountBindingId: string;
7002
+ expectedDraftRevision: number;
7003
+ idempotencyKey: string;
7004
+ dataset: {
7005
+ externalId: string;
7006
+ resourceRevision: string;
6751
7007
  } & {};
6752
- budgetMode: "daily" | "lifetime";
6753
- audienceRuleRefs: ({
7008
+ audienceRule: {
7009
+ id: string;
7010
+ revision: string;
7011
+ } & {};
7012
+ selection: ({
7013
+ kind: "existing";
7014
+ externalId: string;
7015
+ resourceRevision: string;
7016
+ } & {}) | ({
7017
+ kind: "create_if_none";
7018
+ } & {});
7019
+ feed: ({
7020
+ kind: "off";
7021
+ } & {}) | ({
7022
+ kind: "enable";
7023
+ expiresAt: string;
7024
+ } & {});
7025
+ audienceRuleRef: {
6754
7026
  projectId: string;
6755
7027
  site: string;
6756
7028
  id: string;
@@ -6761,102 +7033,1115 @@ declare const metaSnapshot: Field<{
6761
7033
  consentPurpose: "ad_personalization";
6762
7034
  } & {
6763
7035
  minDaysSinceVisit?: number | undefined;
6764
- })[];
6765
- objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
6766
- pageRef: {
6767
- connectionId: string;
6768
- externalId: string;
7036
+ };
7037
+ resourceRuleRef: {
7038
+ id: string;
6769
7039
  revision: string;
6770
7040
  } & {};
6771
- instagramRef: ({
6772
- connectionId: string;
6773
- externalId: string;
6774
- revision: string;
6775
- } & {}) | null;
6776
- datasetRef: {
7041
+ excludedResourceRuleRefs: ({
6777
7042
  id: string;
6778
7043
  revision: string;
7044
+ } & {})[];
7045
+ measurementConfigRef: {
7046
+ configRevision: string;
7047
+ policyRevision: string;
7048
+ digest: string;
6779
7049
  } & {};
6780
- conversionGoalRef: {
6781
- projectId: string;
6782
- site: string;
6783
- module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
7050
+ matchingProfileRef: {
6784
7051
  id: string;
6785
- revision: string;
7052
+ revision: number;
6786
7053
  digest: string;
6787
7054
  } & {};
6788
- optimization: "landing_page_views" | "lead" | "purchase";
6789
- billing: "impressions";
6790
- bid: ({
6791
- strategy: "lowest_cost";
6792
- } & {}) | ({
6793
- strategy: "cost_cap";
6794
- cap: {
6795
- 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";
6796
- amountMicros: string;
6797
- } & {};
6798
- } & {});
6799
- localAdSetKey: string;
6800
- localAdKey: string;
6801
- budgetOwner: "adset" | "campaign";
6802
- specialCategories: ("employment" | "financial_products_services" | "housing")[];
6803
- countryCodes: string[];
6804
- placement: "automatic";
6805
- } & {
6806
- ageConstraint?: ({
6807
- mode: "bounded";
6808
- min: number;
6809
- max: number;
6810
- } & {}) | ({
6811
- mode: "omitted";
6812
- } & {}) | ({
6813
- mode: "provider_managed";
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;
6828
- };
6829
- account: {
6830
- id: string;
7055
+ audienceSpecDigest: string;
7056
+ name: string;
7057
+ expiresAt: string;
7058
+ } & {};
7059
+ requestDigest: string;
7060
+ } & {}>;
7061
+ export type ResonanceMetaAudienceSetupIntent = Value<typeof metaAudienceSetupIntent>;
7062
+ export type ResonanceMetaAudienceSetupReview = Value<typeof metaAudienceSetupReview>;
7063
+ export declare const parseResonanceMetaAudienceSetupIntent: (value: unknown) => ResonanceMetaAudienceSetupIntent;
7064
+ export declare const parseResonanceMetaAudienceSetupReview: (value: unknown) => ResonanceMetaAudienceSetupReview;
7065
+ export declare const resonanceMetaAudienceSetupDigestInput: (value: unknown) => string;
7066
+ export declare const RESONANCE_META_AUDIENCE_SETUP_REVIEW_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7067
+ /** Meta documents 180 days for a website audience's create parameter. Single source: the API and the editor import this, never a local copy. */
7068
+ export declare const META_WEBSITE_AUDIENCE_MAX_RETENTION_DAYS = 180;
7069
+ declare const metaAudienceSetupVerification: Field<{
7070
+ externalId: string;
7071
+ externalAccountId: string;
7072
+ businessId: string;
7073
+ resourceRevision: string;
7074
+ observedAt: string;
7075
+ datasetExternalId: string;
7076
+ datasetResourceRevision: string;
7077
+ audienceSpecDigest: string;
7078
+ retentionDays: number;
7079
+ } & {}>;
7080
+ declare const metaAudienceSetupReceipt: Field<{
7081
+ schemaVersion: 1;
7082
+ operationId: string;
7083
+ projectId: string;
7084
+ campaignId: string;
7085
+ site: string;
7086
+ accountBindingId: string;
7087
+ requestDigest: string;
7088
+ status: "cancelled" | "created_unverified" | "pending" | "rejected" | "selected" | "uncertain" | "verified";
7089
+ firstOutcome: ({
7090
+ admission: "accepted" | "rejected" | "unknown";
7091
+ externalId: string | null;
7092
+ providerRequestId: string | null;
7093
+ providerRequestDigest: string;
7094
+ } & {}) | null;
7095
+ reasonCodes: string[];
7096
+ currentVerification: ({
6831
7097
  externalId: string;
6832
- name: string | null;
7098
+ externalAccountId: string;
7099
+ businessId: string;
7100
+ resourceRevision: string;
7101
+ observedAt: string;
7102
+ datasetExternalId: string;
7103
+ datasetResourceRevision: string;
7104
+ audienceSpecDigest: string;
7105
+ retentionDays: number;
7106
+ } & {}) | null;
7107
+ } & {}>;
7108
+ export type ResonanceMetaAudienceSetupVerification = Value<typeof metaAudienceSetupVerification>;
7109
+ export type ResonanceMetaAudienceSetupReceipt = Value<typeof metaAudienceSetupReceipt>;
7110
+ export declare const parseResonanceMetaAudienceSetupReceipt: (value: unknown) => ResonanceMetaAudienceSetupReceipt;
7111
+ export declare const resonanceMetaAudienceSetupReceiptDigestInput: (value: unknown) => string;
7112
+ export declare const RESONANCE_META_AUDIENCE_SETUP_RECEIPT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7113
+ declare const websiteVisitSetupGrantProof: Field<{
7114
+ schemaVersion: 1;
7115
+ grantOperationId: string;
7116
+ audienceOperationId: string;
7117
+ approvalActionId: string;
7118
+ requestDigest: string;
7119
+ audienceReceiptDigest: string;
7120
+ generation: number;
7121
+ activatedAt: string;
7122
+ expiresAt: string;
7123
+ projectId: string;
7124
+ campaignId: string;
7125
+ site: string;
7126
+ accountBindingId: string;
7127
+ audience: {
7128
+ externalId: string;
7129
+ externalAccountId: string;
7130
+ businessId: string;
7131
+ resourceRevision: string;
7132
+ observedAt: string;
7133
+ datasetExternalId: string;
7134
+ datasetResourceRevision: string;
7135
+ audienceSpecDigest: string;
7136
+ retentionDays: number;
6833
7137
  } & {};
6834
- datasetName: string | null;
6835
- pageName: string | null;
6836
- instagramName: string | null;
6837
- measurementConfigRef: {
6838
- configRevision: string;
6839
- policyRevision: string;
6840
- digest: string;
7138
+ } & {}>;
7139
+ declare const websiteVisitSetupGrantStatus: Field<{
7140
+ proof: {
7141
+ schemaVersion: 1;
7142
+ grantOperationId: string;
7143
+ audienceOperationId: string;
7144
+ approvalActionId: string;
7145
+ requestDigest: string;
7146
+ audienceReceiptDigest: string;
7147
+ generation: number;
7148
+ activatedAt: string;
7149
+ expiresAt: string;
7150
+ projectId: string;
7151
+ campaignId: string;
7152
+ site: string;
7153
+ accountBindingId: string;
7154
+ audience: {
7155
+ externalId: string;
7156
+ externalAccountId: string;
7157
+ businessId: string;
7158
+ resourceRevision: string;
7159
+ observedAt: string;
7160
+ datasetExternalId: string;
7161
+ datasetResourceRevision: string;
7162
+ audienceSpecDigest: string;
7163
+ retentionDays: number;
7164
+ } & {};
6841
7165
  } & {};
6842
- matchingProfileRef: {
6843
- id: string;
6844
- revision: number;
6845
- digest: string;
7166
+ status: "active" | "expired" | "invalidated" | "revoked";
7167
+ checkedAt: string;
7168
+ revokedAt: string | null;
7169
+ reasonCodes: string[];
7170
+ } & {}>;
7171
+ export type ResonanceWebsiteVisitSetupGrantProof = Value<typeof websiteVisitSetupGrantProof>;
7172
+ export type ResonanceWebsiteVisitSetupGrantStatus = Value<typeof websiteVisitSetupGrantStatus>;
7173
+ export declare const parseResonanceWebsiteVisitSetupGrantProof: (value: unknown) => ResonanceWebsiteVisitSetupGrantProof;
7174
+ export declare const parseResonanceWebsiteVisitSetupGrantStatus: (value: unknown) => ResonanceWebsiteVisitSetupGrantStatus;
7175
+ export declare const RESONANCE_WEBSITE_VISIT_SETUP_GRANT_PROOF_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7176
+ export declare const RESONANCE_WEBSITE_VISIT_SETUP_GRANT_STATUS_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7177
+ declare const metaAudienceSetupStatus: Field<{
7178
+ receipt: {
7179
+ schemaVersion: 1;
7180
+ operationId: string;
7181
+ projectId: string;
7182
+ campaignId: string;
7183
+ site: string;
7184
+ accountBindingId: string;
7185
+ requestDigest: string;
7186
+ status: "cancelled" | "created_unverified" | "pending" | "rejected" | "selected" | "uncertain" | "verified";
7187
+ firstOutcome: ({
7188
+ admission: "accepted" | "rejected" | "unknown";
7189
+ externalId: string | null;
7190
+ providerRequestId: string | null;
7191
+ providerRequestDigest: string;
7192
+ } & {}) | null;
7193
+ reasonCodes: string[];
7194
+ currentVerification: ({
7195
+ externalId: string;
7196
+ externalAccountId: string;
7197
+ businessId: string;
7198
+ resourceRevision: string;
7199
+ observedAt: string;
7200
+ datasetExternalId: string;
7201
+ datasetResourceRevision: string;
7202
+ audienceSpecDigest: string;
7203
+ retentionDays: number;
7204
+ } & {}) | null;
6846
7205
  } & {};
6847
- rules: ({
6848
- id: string;
6849
- revision: string;
6850
- resource: {
7206
+ grant: ({
7207
+ proof: {
7208
+ schemaVersion: 1;
7209
+ grantOperationId: string;
7210
+ audienceOperationId: string;
7211
+ approvalActionId: string;
7212
+ requestDigest: string;
7213
+ audienceReceiptDigest: string;
7214
+ generation: number;
7215
+ activatedAt: string;
7216
+ expiresAt: string;
6851
7217
  projectId: string;
7218
+ campaignId: string;
6852
7219
  site: string;
6853
- type: "article" | "listing" | "page" | "product";
7220
+ accountBindingId: string;
7221
+ audience: {
7222
+ externalId: string;
7223
+ externalAccountId: string;
7224
+ businessId: string;
7225
+ resourceRevision: string;
7226
+ observedAt: string;
7227
+ datasetExternalId: string;
7228
+ datasetResourceRevision: string;
7229
+ audienceSpecDigest: string;
7230
+ retentionDays: number;
7231
+ } & {};
7232
+ } & {};
7233
+ status: "active" | "expired" | "invalidated" | "revoked";
7234
+ checkedAt: string;
7235
+ revokedAt: string | null;
7236
+ reasonCodes: string[];
7237
+ } & {}) | null;
7238
+ } & {}>;
7239
+ export type ResonanceMetaAudienceSetupStatus = Value<typeof metaAudienceSetupStatus>;
7240
+ export declare const parseResonanceMetaAudienceSetupStatus: (value: unknown) => ResonanceMetaAudienceSetupStatus;
7241
+ export declare const RESONANCE_META_AUDIENCE_SETUP_STATUS_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7242
+ declare const metaAudienceSetupList: Field<{
7243
+ items: ({
7244
+ receipt: {
7245
+ schemaVersion: 1;
7246
+ operationId: string;
7247
+ projectId: string;
7248
+ campaignId: string;
7249
+ site: string;
7250
+ accountBindingId: string;
7251
+ requestDigest: string;
7252
+ status: "cancelled" | "created_unverified" | "pending" | "rejected" | "selected" | "uncertain" | "verified";
7253
+ firstOutcome: ({
7254
+ admission: "accepted" | "rejected" | "unknown";
7255
+ externalId: string | null;
7256
+ providerRequestId: string | null;
7257
+ providerRequestDigest: string;
7258
+ } & {}) | null;
7259
+ reasonCodes: string[];
7260
+ currentVerification: ({
7261
+ externalId: string;
7262
+ externalAccountId: string;
7263
+ businessId: string;
7264
+ resourceRevision: string;
7265
+ observedAt: string;
7266
+ datasetExternalId: string;
7267
+ datasetResourceRevision: string;
7268
+ audienceSpecDigest: string;
7269
+ retentionDays: number;
7270
+ } & {}) | null;
7271
+ } & {};
7272
+ grant: ({
7273
+ proof: {
7274
+ schemaVersion: 1;
7275
+ grantOperationId: string;
7276
+ audienceOperationId: string;
7277
+ approvalActionId: string;
7278
+ requestDigest: string;
7279
+ audienceReceiptDigest: string;
7280
+ generation: number;
7281
+ activatedAt: string;
7282
+ expiresAt: string;
7283
+ projectId: string;
7284
+ campaignId: string;
7285
+ site: string;
7286
+ accountBindingId: string;
7287
+ audience: {
7288
+ externalId: string;
7289
+ externalAccountId: string;
7290
+ businessId: string;
7291
+ resourceRevision: string;
7292
+ observedAt: string;
7293
+ datasetExternalId: string;
7294
+ datasetResourceRevision: string;
7295
+ audienceSpecDigest: string;
7296
+ retentionDays: number;
7297
+ } & {};
7298
+ } & {};
7299
+ status: "active" | "expired" | "invalidated" | "revoked";
7300
+ checkedAt: string;
7301
+ revokedAt: string | null;
7302
+ reasonCodes: string[];
7303
+ } & {}) | null;
7304
+ ledgerActionId: string;
7305
+ } & {})[];
7306
+ nextCursor: string | null;
7307
+ } & {}>;
7308
+ export type ResonanceMetaAudienceSetupList = Value<typeof metaAudienceSetupList>;
7309
+ export declare const parseResonanceMetaAudienceSetupList: (value: unknown) => ResonanceMetaAudienceSetupList;
7310
+ export declare const RESONANCE_META_AUDIENCE_SETUP_LIST_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7311
+ declare const websiteVisitSetupGrant: Field<{
7312
+ proof: {
7313
+ schemaVersion: 1;
7314
+ grantOperationId: string;
7315
+ audienceOperationId: string;
7316
+ approvalActionId: string;
7317
+ requestDigest: string;
7318
+ audienceReceiptDigest: string;
7319
+ generation: number;
7320
+ activatedAt: string;
7321
+ expiresAt: string;
7322
+ projectId: string;
7323
+ campaignId: string;
7324
+ site: string;
7325
+ accountBindingId: string;
7326
+ audience: {
7327
+ externalId: string;
7328
+ externalAccountId: string;
7329
+ businessId: string;
7330
+ resourceRevision: string;
7331
+ observedAt: string;
7332
+ datasetExternalId: string;
7333
+ datasetResourceRevision: string;
7334
+ audienceSpecDigest: string;
7335
+ retentionDays: number;
7336
+ } & {};
7337
+ } & {};
7338
+ intent: {
7339
+ orgId: string;
7340
+ projectId: string;
7341
+ campaignId: string;
7342
+ connectionId: string;
7343
+ accountBindingRevision: number;
7344
+ connectionRevision: string;
7345
+ capabilityRevision: string;
7346
+ expectedKillRevision: number;
7347
+ externalAccountId: string;
7348
+ businessId: string;
7349
+ schemaVersion: 1;
7350
+ site: string;
7351
+ accountBindingId: string;
7352
+ expectedDraftRevision: number;
7353
+ idempotencyKey: string;
7354
+ dataset: {
7355
+ externalId: string;
7356
+ resourceRevision: string;
7357
+ } & {};
7358
+ audienceRule: {
6854
7359
  id: string;
6855
7360
  revision: string;
6856
7361
  } & {};
6857
- path: string;
6858
- label: string;
6859
- } & {})[];
7362
+ selection: ({
7363
+ kind: "existing";
7364
+ externalId: string;
7365
+ resourceRevision: string;
7366
+ } & {}) | ({
7367
+ kind: "create_if_none";
7368
+ } & {});
7369
+ feed: ({
7370
+ kind: "off";
7371
+ } & {}) | ({
7372
+ kind: "enable";
7373
+ expiresAt: string;
7374
+ } & {});
7375
+ audienceRuleRef: {
7376
+ projectId: string;
7377
+ site: string;
7378
+ id: string;
7379
+ revision: string;
7380
+ policyRevision: string;
7381
+ retentionDays: number;
7382
+ exclusionRuleIds: string[];
7383
+ consentPurpose: "ad_personalization";
7384
+ } & {
7385
+ minDaysSinceVisit?: number | undefined;
7386
+ };
7387
+ resourceRuleRef: {
7388
+ id: string;
7389
+ revision: string;
7390
+ } & {};
7391
+ excludedResourceRuleRefs: ({
7392
+ id: string;
7393
+ revision: string;
7394
+ } & {})[];
7395
+ measurementConfigRef: {
7396
+ configRevision: string;
7397
+ policyRevision: string;
7398
+ digest: string;
7399
+ } & {};
7400
+ matchingProfileRef: {
7401
+ id: string;
7402
+ revision: number;
7403
+ digest: string;
7404
+ } & {};
7405
+ audienceSpecDigest: string;
7406
+ name: string;
7407
+ expiresAt: string;
7408
+ } & {};
7409
+ } & {}>;
7410
+ export type ResonanceWebsiteVisitSetupGrant = Value<typeof websiteVisitSetupGrant>;
7411
+ /** Structural checks only. Native callers authenticate original approval, receipt and digest. */
7412
+ export declare const parseResonanceWebsiteVisitSetupGrant: (value: unknown) => ResonanceWebsiteVisitSetupGrant;
7413
+ declare const websiteVisitSetupOrigin: Field<{
7414
+ kind: "setup";
7415
+ grantOperationId: string;
7416
+ generation: number;
7417
+ } & {}>;
7418
+ declare const websiteVisitSetupGrantAcceptedVisits: Field<{
7419
+ acceptedVisits: number;
7420
+ checkedAt: string;
7421
+ grantOperationId: string;
7422
+ } & {}>;
7423
+ export type ResonanceWebsiteVisitSetupGrantAcceptedVisits = Value<typeof websiteVisitSetupGrantAcceptedVisits>;
7424
+ export declare const parseResonanceWebsiteVisitSetupGrantAcceptedVisits: (value: unknown) => ResonanceWebsiteVisitSetupGrantAcceptedVisits;
7425
+ export declare const RESONANCE_WEBSITE_VISIT_SETUP_GRANT_ACCEPTED_VISITS_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7426
+ declare const websiteVisitSetupDeliveryCommand: Field<{
7427
+ schemaVersion: 1;
7428
+ operation: "deliver_website_visit";
7429
+ campaignId: string;
7430
+ occurrenceId: string;
7431
+ idempotencyKey: string;
7432
+ setupOrigin: {
7433
+ kind: "setup";
7434
+ grantOperationId: string;
7435
+ generation: number;
7436
+ } & {};
7437
+ } & {}>;
7438
+ export type ResonanceWebsiteVisitSetupOrigin = Value<typeof websiteVisitSetupOrigin>;
7439
+ export type ResonanceWebsiteVisitSetupDeliveryCommand = Value<typeof websiteVisitSetupDeliveryCommand>;
7440
+ export declare const parseResonanceWebsiteVisitSetupOrigin: (value: unknown) => ResonanceWebsiteVisitSetupOrigin;
7441
+ export declare const parseResonanceWebsiteVisitSetupDeliveryCommand: (value: unknown) => ResonanceWebsiteVisitSetupDeliveryCommand;
7442
+ export declare const resonanceWebsiteVisitSetupDeliveryDigestInput: (value: unknown) => string;
7443
+ export declare const RESONANCE_WEBSITE_VISIT_SETUP_DELIVERY_COMMAND_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7444
+ declare const websiteVisitSetupTimeContext: Field<{
7445
+ activatedAt: string;
7446
+ expiresAt: string;
7447
+ now: string;
7448
+ } & {}>;
7449
+ /** Timing only. Native admission must still authenticate the active grant and current consent. */
7450
+ export declare function resonanceWebsiteVisitSetupEventTime(value: unknown, context: Value<typeof websiteVisitSetupTimeContext>): number;
7451
+ declare const metaSave: Field<{
7452
+ schemaVersion: 1;
7453
+ expectedCampaignRevision: number;
7454
+ expectedConfigurationRevision: number;
7455
+ idempotencyKey: string;
7456
+ audiences: (({
7457
+ audienceRuleId: string;
7458
+ mode: "existing";
7459
+ nativeAudienceRef: {
7460
+ externalId: string;
7461
+ revision: string;
7462
+ } & {};
7463
+ } & {}) | ({
7464
+ audienceRuleId: string;
7465
+ mode: "admitted_setup";
7466
+ } & {}))[];
7467
+ } & {}>;
7468
+ export type ResonanceMetaConfigurationSaveCommand = Value<typeof metaSave>;
7469
+ export declare const parseResonanceMetaConfigurationSaveCommand: (v: unknown) => ResonanceMetaConfigurationSaveCommand;
7470
+ export declare const resonanceMetaConfigurationSaveDigestInput: (v: unknown) => string;
7471
+ declare const metaSnapshot: Field<{
7472
+ schemaVersion: 1;
7473
+ projectId: string;
7474
+ campaignId: string;
7475
+ channelId: string;
7476
+ site: string;
7477
+ campaignRevision: number;
7478
+ reviewedDefinitionDigest: string;
7479
+ configurationRevision: number;
7480
+ saveOperationId: string;
7481
+ channel: {
7482
+ projectId: string;
7483
+ site: string;
7484
+ id: string;
7485
+ destinationId: string;
7486
+ creativeIds: string[];
7487
+ localCampaignKey: string;
7488
+ kind: "meta_retargeting";
7489
+ provider: "meta_ads";
7490
+ accountBindingId: string;
7491
+ capabilityRevision: string;
7492
+ allocation: {
7493
+ 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";
7494
+ amountMicros: string;
7495
+ } & {};
7496
+ budgetMode: "daily" | "lifetime";
7497
+ audienceRuleRefs: ({
7498
+ projectId: string;
7499
+ site: string;
7500
+ id: string;
7501
+ revision: string;
7502
+ policyRevision: string;
7503
+ retentionDays: number;
7504
+ exclusionRuleIds: string[];
7505
+ consentPurpose: "ad_personalization";
7506
+ } & {
7507
+ minDaysSinceVisit?: number | undefined;
7508
+ })[];
7509
+ objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
7510
+ pageRef: {
7511
+ connectionId: string;
7512
+ externalId: string;
7513
+ revision: string;
7514
+ } & {};
7515
+ instagramRef: ({
7516
+ connectionId: string;
7517
+ externalId: string;
7518
+ revision: string;
7519
+ } & {}) | null;
7520
+ datasetRef: {
7521
+ id: string;
7522
+ revision: string;
7523
+ } & {};
7524
+ conversionGoalRef: {
7525
+ projectId: string;
7526
+ site: string;
7527
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
7528
+ id: string;
7529
+ revision: string;
7530
+ digest: string;
7531
+ } & {};
7532
+ optimization: "landing_page_views" | "lead" | "purchase";
7533
+ billing: "impressions";
7534
+ bid: ({
7535
+ strategy: "lowest_cost";
7536
+ } & {}) | ({
7537
+ strategy: "cost_cap";
7538
+ cap: {
7539
+ 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";
7540
+ amountMicros: string;
7541
+ } & {};
7542
+ } & {});
7543
+ localAdSetKey: string;
7544
+ localAdKey: string;
7545
+ budgetOwner: "adset" | "campaign";
7546
+ specialCategories: ("employment" | "financial_products_services" | "housing")[];
7547
+ countryCodes: string[];
7548
+ placement: "automatic";
7549
+ } & {
7550
+ ageConstraint?: ({
7551
+ mode: "bounded";
7552
+ min: number;
7553
+ max: number;
7554
+ } & {}) | ({
7555
+ mode: "omitted";
7556
+ } & {}) | ({
7557
+ mode: "provider_managed";
7558
+ } & {}) | undefined;
7559
+ channelGroup?: ({
7560
+ key: string;
7561
+ label: string;
7562
+ } & {}) | undefined;
7563
+ property?: ({
7564
+ key: string;
7565
+ label: string;
7566
+ } & {}) | undefined;
7567
+ tier?: ({
7568
+ label: string;
7569
+ } & {}) | undefined;
7570
+ primaryText?: string | undefined;
7571
+ convertersAcknowledged?: true | undefined;
7572
+ };
7573
+ account: {
7574
+ id: string;
7575
+ externalId: string;
7576
+ name: string | null;
7577
+ } & {};
7578
+ datasetName: string | null;
7579
+ pageName: string | null;
7580
+ instagramName: string | null;
7581
+ measurementConfigRef: {
7582
+ configRevision: string;
7583
+ policyRevision: string;
7584
+ digest: string;
7585
+ } & {};
7586
+ matchingProfileRef: {
7587
+ id: string;
7588
+ revision: number;
7589
+ digest: string;
7590
+ } & {};
7591
+ rules: ({
7592
+ id: string;
7593
+ revision: string;
7594
+ resource: {
7595
+ projectId: string;
7596
+ site: string;
7597
+ type: "article" | "listing" | "page" | "product";
7598
+ id: string;
7599
+ revision: string;
7600
+ } & {};
7601
+ path: string;
7602
+ label: string;
7603
+ } & {})[];
7604
+ audiences: ({
7605
+ audienceRuleRef: {
7606
+ projectId: string;
7607
+ site: string;
7608
+ id: string;
7609
+ revision: string;
7610
+ policyRevision: string;
7611
+ retentionDays: number;
7612
+ exclusionRuleIds: string[];
7613
+ consentPurpose: "ad_personalization";
7614
+ } & {
7615
+ minDaysSinceVisit?: number | undefined;
7616
+ };
7617
+ name: string;
7618
+ resourceRuleRef: {
7619
+ id: string;
7620
+ revision: string;
7621
+ } & {};
7622
+ excludedResourceRuleRefs: ({
7623
+ id: string;
7624
+ revision: string;
7625
+ } & {})[];
7626
+ selection: ({
7627
+ mode: "existing";
7628
+ nativeAudienceRef: {
7629
+ externalId: string;
7630
+ revision: string;
7631
+ } & {};
7632
+ nativeAudienceName: string | null;
7633
+ } & {}) | ({
7634
+ mode: "admitted_setup";
7635
+ setup: {
7636
+ kind: "meta_website_audience_v1";
7637
+ localOutputKey: string;
7638
+ specDigest: string;
7639
+ } & {};
7640
+ } & {});
7641
+ } & {})[];
7642
+ configurationDigest: string;
7643
+ } & {}>;
7644
+ export type ResonanceMetaConfigurationSnapshot = Value<typeof metaSnapshot>;
7645
+ export declare const parseResonanceMetaConfigurationSnapshot: (v: unknown) => ResonanceMetaConfigurationSnapshot;
7646
+ /** Omits only the self digest; saved friendly/source/channel material remains original. */
7647
+ export declare function resonanceMetaConfigurationDigestInput(v: unknown): string;
7648
+ declare const metaCurrentMetadata: Field<{
7649
+ currentCampaignRevision: number;
7650
+ currentDefinitionDigest: string;
7651
+ observedAt: string;
7652
+ expiresAt: string | null;
7653
+ reasonCodes: string[];
7654
+ pendingRequirements: string[];
7655
+ } & {}>;
7656
+ export type ResonanceMetaConfigurationCurrentMetadata = Value<typeof metaCurrentMetadata>;
7657
+ declare const metaView: Field<({
7658
+ schemaVersion: 1;
7659
+ kind: "unconfigured";
7660
+ projectId: string;
7661
+ campaignId: string;
7662
+ channelId: string;
7663
+ configurationRevision: 0;
7664
+ } & {}) | ({
7665
+ schemaVersion: 1;
7666
+ kind: "configured";
7667
+ projectId: string;
7668
+ campaignId: string;
7669
+ channelId: string;
7670
+ configurationRevision: number;
7671
+ snapshot: {
7672
+ schemaVersion: 1;
7673
+ projectId: string;
7674
+ campaignId: string;
7675
+ channelId: string;
7676
+ site: string;
7677
+ campaignRevision: number;
7678
+ reviewedDefinitionDigest: string;
7679
+ configurationRevision: number;
7680
+ saveOperationId: string;
7681
+ channel: {
7682
+ projectId: string;
7683
+ site: string;
7684
+ id: string;
7685
+ destinationId: string;
7686
+ creativeIds: string[];
7687
+ localCampaignKey: string;
7688
+ kind: "meta_retargeting";
7689
+ provider: "meta_ads";
7690
+ accountBindingId: string;
7691
+ capabilityRevision: string;
7692
+ allocation: {
7693
+ 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";
7694
+ amountMicros: string;
7695
+ } & {};
7696
+ budgetMode: "daily" | "lifetime";
7697
+ audienceRuleRefs: ({
7698
+ projectId: string;
7699
+ site: string;
7700
+ id: string;
7701
+ revision: string;
7702
+ policyRevision: string;
7703
+ retentionDays: number;
7704
+ exclusionRuleIds: string[];
7705
+ consentPurpose: "ad_personalization";
7706
+ } & {
7707
+ minDaysSinceVisit?: number | undefined;
7708
+ })[];
7709
+ objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
7710
+ pageRef: {
7711
+ connectionId: string;
7712
+ externalId: string;
7713
+ revision: string;
7714
+ } & {};
7715
+ instagramRef: ({
7716
+ connectionId: string;
7717
+ externalId: string;
7718
+ revision: string;
7719
+ } & {}) | null;
7720
+ datasetRef: {
7721
+ id: string;
7722
+ revision: string;
7723
+ } & {};
7724
+ conversionGoalRef: {
7725
+ projectId: string;
7726
+ site: string;
7727
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
7728
+ id: string;
7729
+ revision: string;
7730
+ digest: string;
7731
+ } & {};
7732
+ optimization: "landing_page_views" | "lead" | "purchase";
7733
+ billing: "impressions";
7734
+ bid: ({
7735
+ strategy: "lowest_cost";
7736
+ } & {}) | ({
7737
+ strategy: "cost_cap";
7738
+ cap: {
7739
+ 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";
7740
+ amountMicros: string;
7741
+ } & {};
7742
+ } & {});
7743
+ localAdSetKey: string;
7744
+ localAdKey: string;
7745
+ budgetOwner: "adset" | "campaign";
7746
+ specialCategories: ("employment" | "financial_products_services" | "housing")[];
7747
+ countryCodes: string[];
7748
+ placement: "automatic";
7749
+ } & {
7750
+ ageConstraint?: ({
7751
+ mode: "bounded";
7752
+ min: number;
7753
+ max: number;
7754
+ } & {}) | ({
7755
+ mode: "omitted";
7756
+ } & {}) | ({
7757
+ mode: "provider_managed";
7758
+ } & {}) | undefined;
7759
+ channelGroup?: ({
7760
+ key: string;
7761
+ label: string;
7762
+ } & {}) | undefined;
7763
+ property?: ({
7764
+ key: string;
7765
+ label: string;
7766
+ } & {}) | undefined;
7767
+ tier?: ({
7768
+ label: string;
7769
+ } & {}) | undefined;
7770
+ primaryText?: string | undefined;
7771
+ convertersAcknowledged?: true | undefined;
7772
+ };
7773
+ account: {
7774
+ id: string;
7775
+ externalId: string;
7776
+ name: string | null;
7777
+ } & {};
7778
+ datasetName: string | null;
7779
+ pageName: string | null;
7780
+ instagramName: string | null;
7781
+ measurementConfigRef: {
7782
+ configRevision: string;
7783
+ policyRevision: string;
7784
+ digest: string;
7785
+ } & {};
7786
+ matchingProfileRef: {
7787
+ id: string;
7788
+ revision: number;
7789
+ digest: string;
7790
+ } & {};
7791
+ rules: ({
7792
+ id: string;
7793
+ revision: string;
7794
+ resource: {
7795
+ projectId: string;
7796
+ site: string;
7797
+ type: "article" | "listing" | "page" | "product";
7798
+ id: string;
7799
+ revision: string;
7800
+ } & {};
7801
+ path: string;
7802
+ label: string;
7803
+ } & {})[];
7804
+ audiences: ({
7805
+ audienceRuleRef: {
7806
+ projectId: string;
7807
+ site: string;
7808
+ id: string;
7809
+ revision: string;
7810
+ policyRevision: string;
7811
+ retentionDays: number;
7812
+ exclusionRuleIds: string[];
7813
+ consentPurpose: "ad_personalization";
7814
+ } & {
7815
+ minDaysSinceVisit?: number | undefined;
7816
+ };
7817
+ name: string;
7818
+ resourceRuleRef: {
7819
+ id: string;
7820
+ revision: string;
7821
+ } & {};
7822
+ excludedResourceRuleRefs: ({
7823
+ id: string;
7824
+ revision: string;
7825
+ } & {})[];
7826
+ selection: ({
7827
+ mode: "existing";
7828
+ nativeAudienceRef: {
7829
+ externalId: string;
7830
+ revision: string;
7831
+ } & {};
7832
+ nativeAudienceName: string | null;
7833
+ } & {}) | ({
7834
+ mode: "admitted_setup";
7835
+ setup: {
7836
+ kind: "meta_website_audience_v1";
7837
+ localOutputKey: string;
7838
+ specDigest: string;
7839
+ } & {};
7840
+ } & {});
7841
+ } & {})[];
7842
+ configurationDigest: string;
7843
+ } & {};
7844
+ currentCampaignRevision: number;
7845
+ currentDefinitionDigest: string;
7846
+ observedAt: string;
7847
+ expiresAt: string | null;
7848
+ readyForReview: boolean;
7849
+ reasonCodes: string[];
7850
+ pendingRequirements: string[];
7851
+ } & {})>;
7852
+ export type ResonanceMetaConfigurationView = Value<typeof metaView>;
7853
+ export declare const parseResonanceMetaConfigurationView: (v: unknown) => ResonanceMetaConfigurationView;
7854
+ /** Public vocabulary shared with the API classifier; classification remains provider-owned. */
7855
+ export declare const RESONANCE_META_AUDIENCE_VERDICTS: readonly ['ready', 'too_small', 'blocked', 'unknown'];
7856
+ export type ResonanceMetaAudienceVerdict = typeof RESONANCE_META_AUDIENCE_VERDICTS[number];
7857
+ export declare const RESONANCE_META_AUDIENCE_REASONS: readonly ['meta_audience_status_unreadable', 'meta_audience_status_unrecognized', 'meta_audience_integrity_flagged', 'meta_audience_account_inactive', 'meta_audience_pixel_problem', 'meta_audience_error', 'meta_audience_out_of_date', 'meta_audience_too_small', 'meta_audience_not_usable', 'meta_audience_prefill_failed', 'meta_audience_filling', 'meta_audience_category_unknown', 'meta_url_audience_unverified', 'meta_core_setup_suspected', 'meta_audience_fill_mismatch', 'meta_core_setup_attestation_missing', 'meta_flight_too_short_after_wait', 'meta_terms_nondiscrimination_pending', 'meta_terms_custom_audience_unconfirmed', 'meta_terms_business_tools_pending', 'meta_special_category_age_must_be_provider_managed', 'meta_special_category_genders_not_allowed', 'meta_audience_name_sensitive'];
7858
+ export type ResonanceMetaAudienceReason = typeof RESONANCE_META_AUDIENCE_REASONS[number];
7859
+ declare const metaAudienceSetupReadiness: Field<{
7860
+ status: {
7861
+ receipt: {
7862
+ schemaVersion: 1;
7863
+ operationId: string;
7864
+ projectId: string;
7865
+ campaignId: string;
7866
+ site: string;
7867
+ accountBindingId: string;
7868
+ requestDigest: string;
7869
+ status: "cancelled" | "created_unverified" | "pending" | "rejected" | "selected" | "uncertain" | "verified";
7870
+ firstOutcome: ({
7871
+ admission: "accepted" | "rejected" | "unknown";
7872
+ externalId: string | null;
7873
+ providerRequestId: string | null;
7874
+ providerRequestDigest: string;
7875
+ } & {}) | null;
7876
+ reasonCodes: string[];
7877
+ currentVerification: ({
7878
+ externalId: string;
7879
+ externalAccountId: string;
7880
+ businessId: string;
7881
+ resourceRevision: string;
7882
+ observedAt: string;
7883
+ datasetExternalId: string;
7884
+ datasetResourceRevision: string;
7885
+ audienceSpecDigest: string;
7886
+ retentionDays: number;
7887
+ } & {}) | null;
7888
+ } & {};
7889
+ grant: ({
7890
+ proof: {
7891
+ schemaVersion: 1;
7892
+ grantOperationId: string;
7893
+ audienceOperationId: string;
7894
+ approvalActionId: string;
7895
+ requestDigest: string;
7896
+ audienceReceiptDigest: string;
7897
+ generation: number;
7898
+ activatedAt: string;
7899
+ expiresAt: string;
7900
+ projectId: string;
7901
+ campaignId: string;
7902
+ site: string;
7903
+ accountBindingId: string;
7904
+ audience: {
7905
+ externalId: string;
7906
+ externalAccountId: string;
7907
+ businessId: string;
7908
+ resourceRevision: string;
7909
+ observedAt: string;
7910
+ datasetExternalId: string;
7911
+ datasetResourceRevision: string;
7912
+ audienceSpecDigest: string;
7913
+ retentionDays: number;
7914
+ } & {};
7915
+ } & {};
7916
+ status: "active" | "expired" | "invalidated" | "revoked";
7917
+ checkedAt: string;
7918
+ revokedAt: string | null;
7919
+ reasonCodes: string[];
7920
+ } & {}) | null;
7921
+ } & {};
7922
+ delivery: ({
7923
+ acceptedVisits: number;
7924
+ checkedAt: string;
7925
+ } & {}) | null;
7926
+ providerAudience: ({
7927
+ externalId: string;
7928
+ observedAt: string;
7929
+ readiness: {
7930
+ verdict: "blocked" | "ready" | "too_small" | "unknown";
7931
+ reasonCodes: ("meta_audience_account_inactive" | "meta_audience_category_unknown" | "meta_audience_error" | "meta_audience_fill_mismatch" | "meta_audience_filling" | "meta_audience_integrity_flagged" | "meta_audience_name_sensitive" | "meta_audience_not_usable" | "meta_audience_out_of_date" | "meta_audience_pixel_problem" | "meta_audience_prefill_failed" | "meta_audience_status_unreadable" | "meta_audience_status_unrecognized" | "meta_audience_too_small" | "meta_core_setup_attestation_missing" | "meta_core_setup_suspected" | "meta_flight_too_short_after_wait" | "meta_special_category_age_must_be_provider_managed" | "meta_special_category_genders_not_allowed" | "meta_terms_business_tools_pending" | "meta_terms_custom_audience_unconfirmed" | "meta_terms_nondiscrimination_pending" | "meta_url_audience_unverified")[];
7932
+ size: ({
7933
+ lower: number;
7934
+ upper: number;
7935
+ } & {}) | null;
7936
+ } & {};
7937
+ } & {}) | null;
7938
+ } & {}>;
7939
+ export type ResonanceMetaAudienceSetupReadiness = Value<typeof metaAudienceSetupReadiness>;
7940
+ export declare const parseResonanceMetaAudienceSetupReadiness: (value: unknown) => ResonanceMetaAudienceSetupReadiness;
7941
+ export declare const RESONANCE_META_AUDIENCE_SETUP_READINESS_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7942
+ declare const metaRetargetingReadiness: Field<{
7943
+ schemaVersion: 1;
7944
+ projectId: string;
7945
+ campaignId: string;
7946
+ channelId: string;
7947
+ site: string;
7948
+ campaignRevision: number;
7949
+ accountBindingId: string;
7950
+ configuration: ({
7951
+ schemaVersion: 1;
7952
+ kind: "unconfigured";
7953
+ projectId: string;
7954
+ campaignId: string;
7955
+ channelId: string;
7956
+ configurationRevision: 0;
7957
+ } & {}) | ({
7958
+ schemaVersion: 1;
7959
+ kind: "configured";
7960
+ projectId: string;
7961
+ campaignId: string;
7962
+ channelId: string;
7963
+ configurationRevision: number;
7964
+ snapshot: {
7965
+ schemaVersion: 1;
7966
+ projectId: string;
7967
+ campaignId: string;
7968
+ channelId: string;
7969
+ site: string;
7970
+ campaignRevision: number;
7971
+ reviewedDefinitionDigest: string;
7972
+ configurationRevision: number;
7973
+ saveOperationId: string;
7974
+ channel: {
7975
+ projectId: string;
7976
+ site: string;
7977
+ id: string;
7978
+ destinationId: string;
7979
+ creativeIds: string[];
7980
+ localCampaignKey: string;
7981
+ kind: "meta_retargeting";
7982
+ provider: "meta_ads";
7983
+ accountBindingId: string;
7984
+ capabilityRevision: string;
7985
+ allocation: {
7986
+ 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";
7987
+ amountMicros: string;
7988
+ } & {};
7989
+ budgetMode: "daily" | "lifetime";
7990
+ audienceRuleRefs: ({
7991
+ projectId: string;
7992
+ site: string;
7993
+ id: string;
7994
+ revision: string;
7995
+ policyRevision: string;
7996
+ retentionDays: number;
7997
+ exclusionRuleIds: string[];
7998
+ consentPurpose: "ad_personalization";
7999
+ } & {
8000
+ minDaysSinceVisit?: number | undefined;
8001
+ })[];
8002
+ objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
8003
+ pageRef: {
8004
+ connectionId: string;
8005
+ externalId: string;
8006
+ revision: string;
8007
+ } & {};
8008
+ instagramRef: ({
8009
+ connectionId: string;
8010
+ externalId: string;
8011
+ revision: string;
8012
+ } & {}) | null;
8013
+ datasetRef: {
8014
+ id: string;
8015
+ revision: string;
8016
+ } & {};
8017
+ conversionGoalRef: {
8018
+ projectId: string;
8019
+ site: string;
8020
+ module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
8021
+ id: string;
8022
+ revision: string;
8023
+ digest: string;
8024
+ } & {};
8025
+ optimization: "landing_page_views" | "lead" | "purchase";
8026
+ billing: "impressions";
8027
+ bid: ({
8028
+ strategy: "lowest_cost";
8029
+ } & {}) | ({
8030
+ strategy: "cost_cap";
8031
+ cap: {
8032
+ 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";
8033
+ amountMicros: string;
8034
+ } & {};
8035
+ } & {});
8036
+ localAdSetKey: string;
8037
+ localAdKey: string;
8038
+ budgetOwner: "adset" | "campaign";
8039
+ specialCategories: ("employment" | "financial_products_services" | "housing")[];
8040
+ countryCodes: string[];
8041
+ placement: "automatic";
8042
+ } & {
8043
+ ageConstraint?: ({
8044
+ mode: "bounded";
8045
+ min: number;
8046
+ max: number;
8047
+ } & {}) | ({
8048
+ mode: "omitted";
8049
+ } & {}) | ({
8050
+ mode: "provider_managed";
8051
+ } & {}) | undefined;
8052
+ channelGroup?: ({
8053
+ key: string;
8054
+ label: string;
8055
+ } & {}) | undefined;
8056
+ property?: ({
8057
+ key: string;
8058
+ label: string;
8059
+ } & {}) | undefined;
8060
+ tier?: ({
8061
+ label: string;
8062
+ } & {}) | undefined;
8063
+ primaryText?: string | undefined;
8064
+ convertersAcknowledged?: true | undefined;
8065
+ };
8066
+ account: {
8067
+ id: string;
8068
+ externalId: string;
8069
+ name: string | null;
8070
+ } & {};
8071
+ datasetName: string | null;
8072
+ pageName: string | null;
8073
+ instagramName: string | null;
8074
+ measurementConfigRef: {
8075
+ configRevision: string;
8076
+ policyRevision: string;
8077
+ digest: string;
8078
+ } & {};
8079
+ matchingProfileRef: {
8080
+ id: string;
8081
+ revision: number;
8082
+ digest: string;
8083
+ } & {};
8084
+ rules: ({
8085
+ id: string;
8086
+ revision: string;
8087
+ resource: {
8088
+ projectId: string;
8089
+ site: string;
8090
+ type: "article" | "listing" | "page" | "product";
8091
+ id: string;
8092
+ revision: string;
8093
+ } & {};
8094
+ path: string;
8095
+ label: string;
8096
+ } & {})[];
8097
+ audiences: ({
8098
+ audienceRuleRef: {
8099
+ projectId: string;
8100
+ site: string;
8101
+ id: string;
8102
+ revision: string;
8103
+ policyRevision: string;
8104
+ retentionDays: number;
8105
+ exclusionRuleIds: string[];
8106
+ consentPurpose: "ad_personalization";
8107
+ } & {
8108
+ minDaysSinceVisit?: number | undefined;
8109
+ };
8110
+ name: string;
8111
+ resourceRuleRef: {
8112
+ id: string;
8113
+ revision: string;
8114
+ } & {};
8115
+ excludedResourceRuleRefs: ({
8116
+ id: string;
8117
+ revision: string;
8118
+ } & {})[];
8119
+ selection: ({
8120
+ mode: "existing";
8121
+ nativeAudienceRef: {
8122
+ externalId: string;
8123
+ revision: string;
8124
+ } & {};
8125
+ nativeAudienceName: string | null;
8126
+ } & {}) | ({
8127
+ mode: "admitted_setup";
8128
+ setup: {
8129
+ kind: "meta_website_audience_v1";
8130
+ localOutputKey: string;
8131
+ specDigest: string;
8132
+ } & {};
8133
+ } & {});
8134
+ } & {})[];
8135
+ configurationDigest: string;
8136
+ } & {};
8137
+ currentCampaignRevision: number;
8138
+ currentDefinitionDigest: string;
8139
+ observedAt: string;
8140
+ expiresAt: string | null;
8141
+ readyForReview: boolean;
8142
+ reasonCodes: string[];
8143
+ pendingRequirements: string[];
8144
+ } & {});
6860
8145
  audiences: ({
6861
8146
  audienceRuleRef: {
6862
8147
  projectId: string;
@@ -6871,242 +8156,46 @@ declare const metaSnapshot: Field<{
6871
8156
  minDaysSinceVisit?: number | undefined;
6872
8157
  };
6873
8158
  name: string;
6874
- resourceRuleRef: {
6875
- id: string;
6876
- revision: string;
6877
- } & {};
6878
- excludedResourceRuleRefs: ({
6879
- id: string;
6880
- revision: string;
6881
- } & {})[];
6882
- selection: ({
6883
- mode: "existing";
6884
- nativeAudienceRef: {
6885
- externalId: string;
6886
- revision: string;
6887
- } & {};
6888
- nativeAudienceName: string | null;
6889
- } & {}) | ({
6890
- mode: "admitted_setup";
6891
- setup: {
6892
- kind: "meta_website_audience_v1";
6893
- localOutputKey: string;
6894
- specDigest: string;
6895
- } & {};
6896
- } & {});
6897
- } & {})[];
6898
- configurationDigest: string;
6899
- } & {}>;
6900
- export type ResonanceMetaConfigurationSnapshot = Value<typeof metaSnapshot>;
6901
- export declare const parseResonanceMetaConfigurationSnapshot: (v: unknown) => ResonanceMetaConfigurationSnapshot;
6902
- /** Omits only the self digest; saved friendly/source/channel material remains original. */
6903
- export declare function resonanceMetaConfigurationDigestInput(v: unknown): string;
6904
- declare const metaCurrentMetadata: Field<{
6905
- currentCampaignRevision: number;
6906
- currentDefinitionDigest: string;
6907
- observedAt: string;
6908
- expiresAt: string | null;
6909
- reasonCodes: string[];
6910
- pendingRequirements: string[];
6911
- } & {}>;
6912
- export type ResonanceMetaConfigurationCurrentMetadata = Value<typeof metaCurrentMetadata>;
6913
- declare const metaView: Field<({
6914
- schemaVersion: 1;
6915
- kind: "unconfigured";
6916
- projectId: string;
6917
- campaignId: string;
6918
- channelId: string;
6919
- configurationRevision: 0;
6920
- } & {}) | ({
6921
- schemaVersion: 1;
6922
- kind: "configured";
6923
- projectId: string;
6924
- campaignId: string;
6925
- channelId: string;
6926
- configurationRevision: number;
6927
- snapshot: {
6928
- schemaVersion: 1;
6929
- projectId: string;
6930
- campaignId: string;
6931
- channelId: string;
6932
- site: string;
6933
- campaignRevision: number;
6934
- reviewedDefinitionDigest: string;
6935
- configurationRevision: number;
6936
- saveOperationId: string;
6937
- channel: {
6938
- projectId: string;
6939
- site: string;
6940
- id: string;
6941
- destinationId: string;
6942
- creativeIds: string[];
6943
- localCampaignKey: string;
6944
- kind: "meta_retargeting";
6945
- provider: "meta_ads";
6946
- accountBindingId: string;
6947
- capabilityRevision: string;
6948
- allocation: {
6949
- 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";
6950
- amountMicros: string;
6951
- } & {};
6952
- budgetMode: "daily" | "lifetime";
6953
- audienceRuleRefs: ({
6954
- projectId: string;
6955
- site: string;
6956
- id: string;
6957
- revision: string;
6958
- policyRevision: string;
6959
- retentionDays: number;
6960
- exclusionRuleIds: string[];
6961
- consentPurpose: "ad_personalization";
6962
- } & {
6963
- minDaysSinceVisit?: number | undefined;
6964
- })[];
6965
- objective: "OUTCOME_LEADS" | "OUTCOME_SALES" | "OUTCOME_TRAFFIC";
6966
- pageRef: {
6967
- connectionId: string;
6968
- externalId: string;
6969
- revision: string;
6970
- } & {};
6971
- instagramRef: ({
6972
- connectionId: string;
6973
- externalId: string;
6974
- revision: string;
6975
- } & {}) | null;
6976
- datasetRef: {
6977
- id: string;
6978
- revision: string;
6979
- } & {};
6980
- conversionGoalRef: {
6981
- projectId: string;
6982
- site: string;
6983
- module: "booking" | "broadcast" | "business_brain" | "commerce" | "crm" | "experiment" | "files" | "forms" | "funnel" | "outreach" | "prepared_plan" | "publication";
6984
- id: string;
6985
- revision: string;
6986
- digest: string;
6987
- } & {};
6988
- optimization: "landing_page_views" | "lead" | "purchase";
6989
- billing: "impressions";
6990
- bid: ({
6991
- strategy: "lowest_cost";
6992
- } & {}) | ({
6993
- strategy: "cost_cap";
6994
- cap: {
6995
- 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";
6996
- amountMicros: string;
6997
- } & {};
6998
- } & {});
6999
- localAdSetKey: string;
7000
- localAdKey: string;
7001
- budgetOwner: "adset" | "campaign";
7002
- specialCategories: ("employment" | "financial_products_services" | "housing")[];
7003
- countryCodes: string[];
7004
- placement: "automatic";
7005
- } & {
7006
- ageConstraint?: ({
7007
- mode: "bounded";
7008
- min: number;
7009
- max: number;
7010
- } & {}) | ({
7011
- mode: "omitted";
7012
- } & {}) | ({
7013
- mode: "provider_managed";
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;
7028
- };
7029
- account: {
7030
- id: string;
7031
- externalId: string;
7032
- name: string | null;
7033
- } & {};
7034
- datasetName: string | null;
7035
- pageName: string | null;
7036
- instagramName: string | null;
7037
- measurementConfigRef: {
7038
- configRevision: string;
7039
- policyRevision: string;
7040
- digest: string;
7041
- } & {};
7042
- matchingProfileRef: {
7043
- id: string;
7044
- revision: number;
7045
- digest: string;
7046
- } & {};
7047
- rules: ({
7048
- id: string;
7049
- revision: string;
7050
- resource: {
7051
- projectId: string;
7052
- site: string;
7053
- type: "article" | "listing" | "page" | "product";
8159
+ includedPage: {
8160
+ resourceRuleRef: {
7054
8161
  id: string;
7055
8162
  revision: string;
7056
8163
  } & {};
7057
8164
  path: string;
7058
- label: string;
7059
- } & {})[];
7060
- audiences: ({
7061
- audienceRuleRef: {
7062
- projectId: string;
7063
- site: string;
7064
- id: string;
7065
- revision: string;
7066
- policyRevision: string;
7067
- retentionDays: number;
7068
- exclusionRuleIds: string[];
7069
- consentPurpose: "ad_personalization";
7070
- } & {
7071
- minDaysSinceVisit?: number | undefined;
7072
- };
7073
- name: string;
8165
+ label: string | null;
8166
+ } & {};
8167
+ excludedPages: ({
7074
8168
  resourceRuleRef: {
7075
8169
  id: string;
7076
8170
  revision: string;
7077
8171
  } & {};
7078
- excludedResourceRuleRefs: ({
7079
- id: string;
7080
- revision: string;
7081
- } & {})[];
7082
- selection: ({
7083
- mode: "existing";
7084
- nativeAudienceRef: {
7085
- externalId: string;
7086
- revision: string;
7087
- } & {};
7088
- nativeAudienceName: string | null;
7089
- } & {}) | ({
7090
- mode: "admitted_setup";
7091
- setup: {
7092
- kind: "meta_website_audience_v1";
7093
- localOutputKey: string;
7094
- specDigest: string;
7095
- } & {};
7096
- } & {});
8172
+ path: string;
8173
+ label: string | null;
7097
8174
  } & {})[];
7098
- configurationDigest: string;
7099
- } & {};
7100
- currentCampaignRevision: number;
7101
- currentDefinitionDigest: string;
7102
- observedAt: string;
7103
- expiresAt: string | null;
7104
- readyForReview: boolean;
7105
- reasonCodes: string[];
7106
- pendingRequirements: string[];
7107
- } & {})>;
7108
- export type ResonanceMetaConfigurationView = Value<typeof metaView>;
7109
- export declare const parseResonanceMetaConfigurationView: (v: unknown) => ResonanceMetaConfigurationView;
8175
+ nativeAudienceId: string | null;
8176
+ check: ({
8177
+ state: "not_checked";
8178
+ reasonCode: "configuration_unavailable" | "native_mapping_unavailable";
8179
+ } & {}) | ({
8180
+ verdict: "blocked" | "ready" | "too_small" | "unknown";
8181
+ reasonCodes: ("meta_audience_account_inactive" | "meta_audience_category_unknown" | "meta_audience_error" | "meta_audience_fill_mismatch" | "meta_audience_filling" | "meta_audience_integrity_flagged" | "meta_audience_name_sensitive" | "meta_audience_not_usable" | "meta_audience_out_of_date" | "meta_audience_pixel_problem" | "meta_audience_prefill_failed" | "meta_audience_status_unreadable" | "meta_audience_status_unrecognized" | "meta_audience_too_small" | "meta_core_setup_attestation_missing" | "meta_core_setup_suspected" | "meta_flight_too_short_after_wait" | "meta_special_category_age_must_be_provider_managed" | "meta_special_category_genders_not_allowed" | "meta_terms_business_tools_pending" | "meta_terms_custom_audience_unconfirmed" | "meta_terms_nondiscrimination_pending" | "meta_url_audience_unverified")[];
8182
+ size: ({
8183
+ lower: number;
8184
+ upper: number;
8185
+ } & {}) | null;
8186
+ state: "observed";
8187
+ mappingSource: "current_materialized_audience" | "selected_external_audience";
8188
+ observedAt: string;
8189
+ expiresAt: string | null;
8190
+ sizeObservedAt: null;
8191
+ sizeExpiresAt: null;
8192
+ } & {});
8193
+ } & {})[];
8194
+ } & {}>;
8195
+ export type ResonanceMetaRetargetingReadiness = Value<typeof metaRetargetingReadiness>;
8196
+ /** Public shape/scope only; never provider freshness, native authority, or launch permission. */
8197
+ export declare const parseResonanceMetaRetargetingReadiness: (v: unknown) => ResonanceMetaRetargetingReadiness;
8198
+ export declare const RESONANCE_META_RETARGETING_READINESS_JSON_SCHEMA: import("./wire-schema").JsonSchema;
7110
8199
  declare const metaSaveResponse: Field<{
7111
8200
  schemaVersion: 1;
7112
8201
  snapshot: {
@@ -7679,7 +8768,14 @@ declare const mandateDraftRequest: Field<{
7679
8768
  providerReporting?: ({
7680
8769
  agentContactId: string;
7681
8770
  channelIds: string[];
7682
- } & {}) | undefined;
8771
+ } & {
8772
+ metaQueries?: ({
8773
+ channelId: string;
8774
+ attributionWindow: "1d_click" | "1d_view" | "7d_click";
8775
+ actionReportTime: "conversion";
8776
+ basis: "explicit_query";
8777
+ } & {})[] | undefined;
8778
+ }) | undefined;
7683
8779
  }>;
7684
8780
  export type ResonanceMandateDraftRequest = Value<typeof mandateDraftRequest>;
7685
8781
  export declare const parseResonanceMandateDraftRequest: (v: unknown) => ResonanceMandateDraftRequest;
@@ -7826,7 +8922,14 @@ declare const feedReview: Field<{
7826
8922
  agentContactId: string;
7827
8923
  principalContactId: string;
7828
8924
  channelIds: string[];
7829
- } & {}) | undefined;
8925
+ } & {
8926
+ metaQueries?: ({
8927
+ channelId: string;
8928
+ attributionWindow: "1d_click" | "1d_view" | "7d_click";
8929
+ actionReportTime: "conversion";
8930
+ basis: "explicit_query";
8931
+ } & {})[] | undefined;
8932
+ }) | undefined;
7830
8933
  };
7831
8934
  } & {};
7832
8935
  mandateRef: {
@@ -8327,8 +9430,6 @@ export declare function parseResonanceObservationsPage(v: unknown): ResonanceObs
8327
9430
  export declare const RESONANCE_PUBLIC_OBSERVATION_METRIC_JSON_SCHEMA: import("./wire-schema").JsonSchema;
8328
9431
  export declare const RESONANCE_OBSERVATION_SUPPORT_JSON_SCHEMA: import("./wire-schema").JsonSchema;
8329
9432
  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
9433
  /** Meta allows at most ten rules per audience (inclusion, each exclusion, and a recency band). */
8333
9434
  export declare const META_AUDIENCE_RULE_LIMIT = 10;
8334
9435
  /** 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. */