Interface ReserveCompoundCreditInput

What reserveCompoundCredit reserves: a call's most, quoted inside the ledger from its rates and limits.

interface ReserveCompoundCreditInput {
    scopeId: string;
    operationId: string;
    kind: string;
    requestHash: string;
    rates: {
        primary: RateSnapshot;
        fallbacks?: readonly RateSnapshot[];
    };
    mediaComponent: string;
    durationSeconds: number;
    attempts: AttemptLimits;
    supplierDailyCapMicro: number;
    at: number;
    expiresAt: number;
    policy?: AllocationPolicy;
}

Properties

scopeId: string
operationId: string

The host's id for the call or run; a hold is made once for it.

kind: string

What is held for, such as call or meeting_run.

requestHash: string

A digest of the request the hold is for; the same operation with another digest is a conflict.

rates: {
    primary: RateSnapshot;
    fallbacks?: readonly RateSnapshot[];
}

Type declaration

mediaComponent: string

The component that prices connected time.

durationSeconds: number

The call's full requested duration, whole seconds.

attempts: AttemptLimits
supplierDailyCapMicro: number

The platform's cap on supplier cost for the UTC day of at, across every scope.

at: number
expiresAt: number

When the hold's time is up and a reconcile asks about it.