@adcp/sdk API Reference - v17.0.0-rc.0
    Preparing search index...

    Interface VerifiedRevision

    What the SDK verified, handed to your commit hook.

    interface VerifiedRevision {
        accountId: string;
        obligation: ManagedReportingObligation;
        revision: {
            reporting_revision_id: string;
            revision_content_sha256: string;
            report_definition_id: string;
            report_definition_uri: string;
            report_definition_sha256: string;
            reporting_profile: string;
            schema_version: string;
            schema_uri: string;
            schema_sha256: string;
            schema_dialect: "https://json-schema.org/draft/2020-12/schema";
            schema_ref_policy: "local_fragment_only";
            account_id: string;
            media_buy_ids: string[];
            coverage: ReportingCoverage;
            period: { start: string; end: string; source_timezone: string };
            finality: ReportingFinality;
            finality_basis?: "source_final" | "contractual_cutoff" | "stabilized";
            finality_policy_id?: string;
            finalized_at?: string;
            observed_at: string;
            data_through: string | null;
            data_through_precision: "exact" | "unknown" | "lower_bound";
            supersedes_reporting_revision_id?: string;
            row_count: number;
            control_totals: ReportingControlTotal[];
            canonical_content_digest?: ReportingCanonicalContentDigest;
            created_at: string;
        };
        materialization: {
            reporting_materialization_id: string;
            reporting_revision_id: string;
            reporting_obligation_id: string;
            delivery_config_id: string;
            delivery_config_version: number;
            destination_ref: string;
            feed_purpose: ReportingFeedPurpose;
            method: "file_transfer"
            | "dataset_share"
            | "warehouse_materialization";
            transport?: string;
            attempt: number;
            status: "available" | "failed" | "pending" | "delivered";
            ready_at?: string;
            failed_at?: string;
            failure_code?: string;
            resource?: {
                resource_ref: string;
                kind: "dataset" | "manifest" | "warehouse_relation";
                location: string;
                native_version_ref?: string;
                manifest_version?: "1.0";
                manifest_sha256?: string;
                immutability: "immutable_location" | "native_version";
                expires_at: string;
                reader_compatibility?: string[];
            };
            verification?: {
                verified_at: string;
                verification_path: "destination"
                | "producer"
                | "representative_consumer";
                verification_profile: ReportingVerificationProfile;
                row_count: number;
                control_totals: ReportingControlTotal[];
                canonical_content_digest?: ReportingCanonicalContentDigest;
                physical_checksums?: [
                    SHA256PhysicalChecksum
                    | SHA512PhysicalChecksum,
                    ...(SHA256PhysicalChecksum | SHA512PhysicalChecksum)[],
                ];
                native_commit_evidence?: {
                    native_version_ref: string;
                    observed_through: "destination" | "representative_consumer";
                };
            };
            created_at: string;
        };
        observation: ReportingObservation;
        resource: | {
            resource_ref: string;
            kind: "dataset"
            | "manifest"
            | "warehouse_relation";
            location: string;
            native_version_ref?: string;
            manifest_version?: "1.0";
            manifest_sha256?: string;
            immutability: "immutable_location" | "native_version";
            expires_at: string;
            reader_compatibility?: string[];
        }
        | undefined;
    }
    Index
    accountId: string
    obligation: ManagedReportingObligation
    revision: {
        reporting_revision_id: string;
        revision_content_sha256: string;
        report_definition_id: string;
        report_definition_uri: string;
        report_definition_sha256: string;
        reporting_profile: string;
        schema_version: string;
        schema_uri: string;
        schema_sha256: string;
        schema_dialect: "https://json-schema.org/draft/2020-12/schema";
        schema_ref_policy: "local_fragment_only";
        account_id: string;
        media_buy_ids: string[];
        coverage: ReportingCoverage;
        period: { start: string; end: string; source_timezone: string };
        finality: ReportingFinality;
        finality_basis?: "source_final" | "contractual_cutoff" | "stabilized";
        finality_policy_id?: string;
        finalized_at?: string;
        observed_at: string;
        data_through: string | null;
        data_through_precision: "exact" | "unknown" | "lower_bound";
        supersedes_reporting_revision_id?: string;
        row_count: number;
        control_totals: ReportingControlTotal[];
        canonical_content_digest?: ReportingCanonicalContentDigest;
        created_at: string;
    }

    Type Declaration

    • reporting_revision_id: string

      Portable AdCP identity for this immutable report publication. Distinct from package delivery_revision_id and provider-native versions.

    • revision_content_sha256: string

      SHA-256 of the immutable RFC 8785 JCS binding object containing reporting_revision_id, row_count, control_totals, and reporting_rows. Reliable Reporting 1.0 Core revisions include it and exact reads return the identical value.

    • report_definition_id: string

      Identity or canonical fingerprint of immutable metric, grain, attribution, breakdown, action-definition, profile, and calendar/timezone semantics.

    • report_definition_uri: string
    • report_definition_sha256: string
    • reporting_profile: string
    • schema_version: string
    • schema_uri: string

      Machine-readable schema on the authenticated seller/provider or AdCP-registry origin.

    • schema_sha256: string

      Digest of the exact schema bytes used to validate this immutable revision.

    • schema_dialect: "https://json-schema.org/draft/2020-12/schema"

      Closed SDK-bundled dialect; the metaschema is never network-fetched.

    • schema_ref_policy: "local_fragment_only"

      The fetched schema is self-contained and every $ref is a local # fragment.

    • account_id: string
    • media_buy_ids: string[]

      Exact frozen media-buy denominator inherited from the obligation, including buys with zero rows. An empty array proves a zero-buy period rather than an unknown denominator.

    • coverage: ReportingCoverage
    • period: { start: string; end: string; source_timezone: string }

      Half-open reporting interval with its source calendar boundary.

    • finality: ReportingFinality
    • Optionalfinality_basis?: "source_final" | "contractual_cutoff" | "stabilized"

      Why an official revision is considered final: an authoritative source signal, a versioned contractual cutoff, or a versioned stabilization rule.

    • Optionalfinality_policy_id?: string

      Immutable policy/version reference that defines the selected finality basis. It MUST be bound by report_definition_id.

    • Optionalfinalized_at?: string

      When the producer applied the declared finality basis to this official revision.

    • observed_at: string

      When the seller obtained or committed this source observation.

    • data_through: string | null

      Latest event time conservatively included, or null when precision is unknown.

    • data_through_precision: "exact" | "unknown" | "lower_bound"
    • Optionalsupersedes_reporting_revision_id?: string

      Immediately superseded snapshot revision of the same logical slice. An official revision is terminal and MUST NOT be named here; later corrections use reporting-adjustment records.

    • row_count: number

      Logical row count, including zero for a successfully evaluated empty report.

    • control_totals: ReportingControlTotal[]

      Profile-defined totals computed from the canonical logical revision. Names MUST be unique.

    • Optionalcanonical_content_digest?: ReportingCanonicalContentDigest
    • created_at: string
    materialization: {
        reporting_materialization_id: string;
        reporting_revision_id: string;
        reporting_obligation_id: string;
        delivery_config_id: string;
        delivery_config_version: number;
        destination_ref: string;
        feed_purpose: ReportingFeedPurpose;
        method: "file_transfer" | "dataset_share" | "warehouse_materialization";
        transport?: string;
        attempt: number;
        status: "available" | "failed" | "pending" | "delivered";
        ready_at?: string;
        failed_at?: string;
        failure_code?: string;
        resource?: {
            resource_ref: string;
            kind: "dataset" | "manifest" | "warehouse_relation";
            location: string;
            native_version_ref?: string;
            manifest_version?: "1.0";
            manifest_sha256?: string;
            immutability: "immutable_location" | "native_version";
            expires_at: string;
            reader_compatibility?: string[];
        };
        verification?: {
            verified_at: string;
            verification_path: "destination"
            | "producer"
            | "representative_consumer";
            verification_profile: ReportingVerificationProfile;
            row_count: number;
            control_totals: ReportingControlTotal[];
            canonical_content_digest?: ReportingCanonicalContentDigest;
            physical_checksums?: [
                SHA256PhysicalChecksum
                | SHA512PhysicalChecksum,
                ...(SHA256PhysicalChecksum | SHA512PhysicalChecksum)[],
            ];
            native_commit_evidence?: {
                native_version_ref: string;
                observed_through: "destination" | "representative_consumer";
            };
        };
        created_at: string;
    }

    Type Declaration

    • reporting_materialization_id: string
    • reporting_revision_id: string
    • reporting_obligation_id: string

      Destination-specific obligation this materialization attempts to satisfy.

    • delivery_config_id: string

      Durable configuration that requested this materialization.

    • delivery_config_version: number
    • destination_ref: string

      Immutable caller-owned destination generation selected by the account-authorized obligation. It may be reused by the same caller across other independently authorized accounts.

    • feed_purpose: ReportingFeedPurpose
    • method: "file_transfer" | "dataset_share" | "warehouse_materialization"
    • Optionaltransport?: string
    • attempt: number
    • status: "available" | "failed" | "pending" | "delivered"

      Lifecycle of this attempt. pending may transition once to available, delivered, or failed; terminal evidence is immutable. Staleness is evaluated in get_reporting_status health, not stored as a materialization state.

    • Optionalready_at?: string

      When consumer-path or destination verification completed.

    • Optionalfailed_at?: string
    • Optionalfailure_code?: string

      Stable safe failure classification. MUST NOT include credentials or provider response bodies.

    • Optionalresource?: {
          resource_ref: string;
          kind: "dataset" | "manifest" | "warehouse_relation";
          location: string;
          native_version_ref?: string;
          manifest_version?: "1.0";
          manifest_sha256?: string;
          immutability: "immutable_location" | "native_version";
          expires_at: string;
          reader_compatibility?: string[];
      }
      • resource_ref: string

        Seller-issued opaque reference to this exact authenticated resource descriptor.

      • kind: "dataset" | "manifest" | "warehouse_relation"

        Shape through which the durable revision is consumed.

      • location: string

        Non-secret provider-native object, relation, or share identifier. MUST NOT contain an activation URL, signed URL, bearer token, password, private key, or embedded credential.

      • Optionalnative_version_ref?: string
      • Optionalmanifest_version?: "1.0"

        Version of reporting-file-manifest.json used by a manifest resource.

      • Optionalmanifest_sha256?: string

        SHA-256 over the exact manifest bytes. Consumers verify this before parsing the manifest.

      • immutability: "immutable_location" | "native_version"

        How this descriptor selects the exact immutable materialization.

      • expires_at: string

        Mandatory finite lower-bound endpoint through which this exact resource remains resolvable; it cannot be earlier than the advertised retention contract.

      • Optionalreader_compatibility?: string[]

        Reader features or format constraints required to consume this resource. Readiness verification MUST use a representative supported reader.

    • Optionalverification?: {
          verified_at: string;
          verification_path: "destination" | "producer" | "representative_consumer";
          verification_profile: ReportingVerificationProfile;
          row_count: number;
          control_totals: ReportingControlTotal[];
          canonical_content_digest?: ReportingCanonicalContentDigest;
          physical_checksums?: [
              SHA256PhysicalChecksum
              | SHA512PhysicalChecksum,
              ...(SHA256PhysicalChecksum | SHA512PhysicalChecksum)[],
          ];
          native_commit_evidence?: {
              native_version_ref: string;
              observed_through: "destination" | "representative_consumer";
          };
      }
      • verified_at: string

        When the producer completed verification through the claimed consumer/destination path.

      • verification_path: "destination" | "producer" | "representative_consumer"

        Path on which verification succeeded. dataset_share readiness requires representative_consumer; delivered warehouse state requires destination.

      • verification_profile: ReportingVerificationProfile
      • row_count: number

        Verified row count. Zero explicitly distinguishes an empty committed revision from a missing revision.

      • control_totals: ReportingControlTotal[]

        Profile-defined totals recomputed through verification_path. Names MUST be unique.

      • Optionalcanonical_content_digest?: ReportingCanonicalContentDigest
      • Optionalphysical_checksums?: [
            SHA256PhysicalChecksum
            | SHA512PhysicalChecksum,
            ...(SHA256PhysicalChecksum | SHA512PhysicalChecksum)[],
        ]

        Method-specific byte/object checksums. Different encodings of the same logical revision normally have different values.

        1

      • Optionalnative_commit_evidence?: {
            native_version_ref: string;
            observed_through: "destination" | "representative_consumer";
        }

        Provider-native immutable version evidence observed through the named consumer or destination path.

    • created_at: string
    resource:
        | {
            resource_ref: string;
            kind: "dataset"
            | "manifest"
            | "warehouse_relation";
            location: string;
            native_version_ref?: string;
            manifest_version?: "1.0";
            manifest_sha256?: string;
            immutability: "immutable_location" | "native_version";
            expires_at: string;
            reader_compatibility?: string[];
        }
        | undefined

    The materialized resource (materialization.resource).

    Type Declaration

    • {
          resource_ref: string;
          kind: "dataset" | "manifest" | "warehouse_relation";
          location: string;
          native_version_ref?: string;
          manifest_version?: "1.0";
          manifest_sha256?: string;
          immutability: "immutable_location" | "native_version";
          expires_at: string;
          reader_compatibility?: string[];
      }
      • resource_ref: string

        Seller-issued opaque reference to this exact authenticated resource descriptor.

      • kind: "dataset" | "manifest" | "warehouse_relation"

        Shape through which the durable revision is consumed.

      • location: string

        Non-secret provider-native object, relation, or share identifier. MUST NOT contain an activation URL, signed URL, bearer token, password, private key, or embedded credential.

      • Optionalnative_version_ref?: string
      • Optionalmanifest_version?: "1.0"

        Version of reporting-file-manifest.json used by a manifest resource.

      • Optionalmanifest_sha256?: string

        SHA-256 over the exact manifest bytes. Consumers verify this before parsing the manifest.

      • immutability: "immutable_location" | "native_version"

        How this descriptor selects the exact immutable materialization.

      • expires_at: string

        Mandatory finite lower-bound endpoint through which this exact resource remains resolvable; it cannot be earlier than the advertised retention contract.

      • Optionalreader_compatibility?: string[]

        Reader features or format constraints required to consume this resource. Readiness verification MUST use a representative supported reader.

    • undefined