UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

1,529 lines 59.7 kB
import * as z from "zod/v3";
import { ClosedEnum } from "../types/enums.js";
import { Result as SafeParseResult } from "../types/fp.js";
import { SDKValidationError } from "./sdkvalidationerror.js";
/**
 * The type of item to purchase.
 */
export declare const BuyCreditsType: {
    readonly Credits: "credits";
};
/**
 * The type of item to purchase.
 */
export type BuyCreditsType = ClosedEnum<typeof BuyCreditsType>;
/**
 * The type of credits to purchase.
 */
export declare const CreditType: {
    readonly V0: "v0";
    readonly Gateway: "gateway";
    readonly Agent: "agent";
};
/**
 * The type of credits to purchase.
 */
export type CreditType = ClosedEnum<typeof CreditType>;
export type Item = {
    /**
     * The type of item to purchase.
     */
    type: BuyCreditsType;
    /**
     * The type of credits to purchase.
     */
    creditType: CreditType;
    /**
     * The amount of credits to purchase.
     */
    amount: number;
};
export type BuyCreditsRequestBody = {
    item: Item;
};
export type BuyCreditsRequest = {
    /**
     * The source of the purchase request. Defaults to `api` if not specified.
     */
    source?: string | undefined;
    /**
     * The Team identifier to perform the request on behalf of.
     */
    teamId?: string | undefined;
    /**
     * The Team slug to perform the request on behalf of.
     */
    slug?: string | undefined;
    requestBody: BuyCreditsRequestBody;
};
/**
 * Configuration input options for adjusting plan item quantity.
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntent4Options = {
    /**
     * The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs.
     */
    addedResourceIds: Array<string>;
    /**
     * The alias of the product to adjust quantity for.
     */
    productAlias: string;
    /**
     * The resource IDs to incrementally remove. The quantity of the plan item will be decreased by the number of resource IDs.
     */
    removedResourceIds: Array<string>;
};
/**
 * When the subscription change should take effect.
 */
export declare const BuyCreditsConfigurationBillingEffectiveBehavior: {
    readonly EndOfTerm: "end_of_term";
    readonly Immediate: "immediate";
};
/**
 * When the subscription change should take effect.
 */
export type BuyCreditsConfigurationBillingEffectiveBehavior = ClosedEnum<typeof BuyCreditsConfigurationBillingEffectiveBehavior>;
/**
 * The source used as the authoritative price for this intent.
 */
export declare const BuyCreditsConfigurationBillingPricingSource: {
    readonly Copper: "copper";
    readonly Orb: "orb";
};
/**
 * The source used as the authoritative price for this intent.
 */
export type BuyCreditsConfigurationBillingPricingSource = ClosedEnum<typeof BuyCreditsConfigurationBillingPricingSource>;
/**
 * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
 */
export type BuyCreditsConfigurationBillingChangedResources = {
    /**
     * The alias of the product that was changed.
     */
    productAlias: string;
    /**
     * The ID of the product that was changed.
     */
    productId: string;
    /**
     * The resulting quantity after this change.
     */
    quantity: number;
    /**
     * Resource IDs that were added.
     */
    addedResourceIds?: Array<string> | undefined;
    /**
     * When this resource change should take effect for downstream consumers.
     */
    effectiveAt?: string | undefined;
    /**
     * Resource IDs that were removed.
     */
    removedResourceIds?: Array<string> | undefined;
    /**
     * The full set of resource IDs after the change.
     */
    resourceIds?: Array<string> | undefined;
};
/**
 * Output returned after configuring an OrbSubscriptionIntent.
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Output = {
    /**
     * When the subscription change should take effect.
     */
    effectiveBehavior: BuyCreditsConfigurationBillingEffectiveBehavior;
    /**
     * The Orb price ID for the subscription item being modified.
     */
    orbPriceId: string;
    /**
     * The source used as the authoritative price for this intent.
     */
    pricingSource: BuyCreditsConfigurationBillingPricingSource;
    /**
     * The product ID associated with this intent.
     */
    productId: string;
    /**
     * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
     */
    changedResources?: Array<BuyCreditsConfigurationBillingChangedResources> | undefined;
    /**
     * Optional metadata associated with the intent to update the Orb subscription with.
     */
    metadata?: {
        [k: string]: string;
    } | undefined;
    /**
     * The ID of the pending subscription change if there is one.
     */
    pendingSubscriptionChangeId?: string | undefined;
};
/**
 * Configuration for the Orb subscription intent.
 */
export type Configuration4 = {
    /**
     * Configuration input options for adjusting plan item quantity.
     */
    options: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntent4Options;
    /**
     * Output returned after configuring an OrbSubscriptionIntent.
     */
    output: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Output;
    type: "adjust_plan_item_quantity";
};
/**
 * Configuration input options for decreasing plan item quantity.
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntentOptions = {
    /**
     * The alias of the product to decrease quantity for.
     */
    productAlias: string;
    /**
     * The resource IDs to decrementally remove. The quantity of the plan item will be decreased by the number of resource IDs.
     */
    resourceIds: Array<string>;
};
/**
 * When the subscription change should take effect.
 */
export declare const BuyCreditsConfigurationEffectiveBehavior: {
    readonly EndOfTerm: "end_of_term";
    readonly Immediate: "immediate";
};
/**
 * When the subscription change should take effect.
 */
export type BuyCreditsConfigurationEffectiveBehavior = ClosedEnum<typeof BuyCreditsConfigurationEffectiveBehavior>;
/**
 * The source used as the authoritative price for this intent.
 */
export declare const BuyCreditsConfigurationPricingSource: {
    readonly Copper: "copper";
    readonly Orb: "orb";
};
/**
 * The source used as the authoritative price for this intent.
 */
export type BuyCreditsConfigurationPricingSource = ClosedEnum<typeof BuyCreditsConfigurationPricingSource>;
/**
 * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
 */
export type BuyCreditsConfigurationChangedResources = {
    /**
     * The alias of the product that was changed.
     */
    productAlias: string;
    /**
     * The ID of the product that was changed.
     */
    productId: string;
    /**
     * The resulting quantity after this change.
     */
    quantity: number;
    /**
     * Resource IDs that were added.
     */
    addedResourceIds?: Array<string> | undefined;
    /**
     * When this resource change should take effect for downstream consumers.
     */
    effectiveAt?: string | undefined;
    /**
     * Resource IDs that were removed.
     */
    removedResourceIds?: Array<string> | undefined;
    /**
     * The full set of resource IDs after the change.
     */
    resourceIds?: Array<string> | undefined;
};
/**
 * Output returned after configuring an OrbSubscriptionIntent.
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOutput = {
    /**
     * When the subscription change should take effect.
     */
    effectiveBehavior: BuyCreditsConfigurationEffectiveBehavior;
    /**
     * The Orb price ID for the subscription item being modified.
     */
    orbPriceId: string;
    /**
     * The source used as the authoritative price for this intent.
     */
    pricingSource: BuyCreditsConfigurationPricingSource;
    /**
     * The product ID associated with this intent.
     */
    productId: string;
    /**
     * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
     */
    changedResources?: Array<BuyCreditsConfigurationChangedResources> | undefined;
    /**
     * Optional metadata associated with the intent to update the Orb subscription with.
     */
    metadata?: {
        [k: string]: string;
    } | undefined;
    /**
     * The ID of the pending subscription change if there is one.
     */
    pendingSubscriptionChangeId?: string | undefined;
};
/**
 * Configuration for the Orb subscription intent.
 */
export type Configuration3 = {
    /**
     * Configuration input options for decreasing plan item quantity.
     */
    options: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntentOptions;
    /**
     * Output returned after configuring an OrbSubscriptionIntent.
     */
    output: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOutput;
    type: "decrease_plan_item_quantity";
};
/**
 * Configuration input options for increasing plan item quantity.
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Options = {
    /**
     * The alias of the product to increase quantity for.
     */
    productAlias: string;
    /**
     * The resource IDs to incrementally add. The quantity of the plan item will be increased by the number of resource IDs.
     */
    resourceIds: Array<string>;
};
/**
 * When the subscription change should take effect.
 */
export declare const ConfigurationEffectiveBehavior: {
    readonly EndOfTerm: "end_of_term";
    readonly Immediate: "immediate";
};
/**
 * When the subscription change should take effect.
 */
export type ConfigurationEffectiveBehavior = ClosedEnum<typeof ConfigurationEffectiveBehavior>;
/**
 * The source used as the authoritative price for this intent.
 */
export declare const ConfigurationPricingSource: {
    readonly Copper: "copper";
    readonly Orb: "orb";
};
/**
 * The source used as the authoritative price for this intent.
 */
export type ConfigurationPricingSource = ClosedEnum<typeof ConfigurationPricingSource>;
/**
 * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
 */
export type ConfigurationChangedResources = {
    /**
     * The alias of the product that was changed.
     */
    productAlias: string;
    /**
     * The ID of the product that was changed.
     */
    productId: string;
    /**
     * The resulting quantity after this change.
     */
    quantity: number;
    /**
     * Resource IDs that were added.
     */
    addedResourceIds?: Array<string> | undefined;
    /**
     * When this resource change should take effect for downstream consumers.
     */
    effectiveAt?: string | undefined;
    /**
     * Resource IDs that were removed.
     */
    removedResourceIds?: Array<string> | undefined;
    /**
     * The full set of resource IDs after the change.
     */
    resourceIds?: Array<string> | undefined;
};
/**
 * Output returned after configuring an OrbSubscriptionIntent.
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONOutput = {
    /**
     * When the subscription change should take effect.
     */
    effectiveBehavior: ConfigurationEffectiveBehavior;
    /**
     * The Orb price ID for the subscription item being modified.
     */
    orbPriceId: string;
    /**
     * The source used as the authoritative price for this intent.
     */
    pricingSource: ConfigurationPricingSource;
    /**
     * The product ID associated with this intent.
     */
    productId: string;
    /**
     * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
     */
    changedResources?: Array<ConfigurationChangedResources> | undefined;
    /**
     * Optional metadata associated with the intent to update the Orb subscription with.
     */
    metadata?: {
        [k: string]: string;
    } | undefined;
    /**
     * The ID of the pending subscription change if there is one.
     */
    pendingSubscriptionChangeId?: string | undefined;
};
/**
 * Configuration for the Orb subscription intent.
 */
export type BuyCreditsConfiguration2 = {
    /**
     * Configuration input options for increasing plan item quantity.
     */
    options: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Options;
    /**
     * Output returned after configuring an OrbSubscriptionIntent.
     */
    output: BuyCreditsConfigurationBillingResponse200ApplicationJSONOutput;
    type: "increase_plan_item_quantity";
};
/**
 * Configuration input options for setting plan item quantity.
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOptions = {
    /**
     * The alias of the product to set quantity for.
     */
    productAlias: string;
    /**
     * The quantity to set for the plan item.
     */
    quantity: number;
    /**
     * The resource IDs for the plan item. Only set if SKU requires resource entitlements.
     */
    resourceIds?: Array<string> | undefined;
};
/**
 * When the subscription change should take effect.
 */
export declare const EffectiveBehavior: {
    readonly EndOfTerm: "end_of_term";
    readonly Immediate: "immediate";
};
/**
 * When the subscription change should take effect.
 */
export type EffectiveBehavior = ClosedEnum<typeof EffectiveBehavior>;
/**
 * The source used as the authoritative price for this intent.
 */
export declare const PricingSource: {
    readonly Copper: "copper";
    readonly Orb: "orb";
};
/**
 * The source used as the authoritative price for this intent.
 */
export type PricingSource = ClosedEnum<typeof PricingSource>;
/**
 * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
 */
export type ChangedResources = {
    /**
     * The alias of the product that was changed.
     */
    productAlias: string;
    /**
     * The ID of the product that was changed.
     */
    productId: string;
    /**
     * The resulting quantity after this change.
     */
    quantity: number;
    /**
     * Resource IDs that were added.
     */
    addedResourceIds?: Array<string> | undefined;
    /**
     * When this resource change should take effect for downstream consumers.
     */
    effectiveAt?: string | undefined;
    /**
     * Resource IDs that were removed.
     */
    removedResourceIds?: Array<string> | undefined;
    /**
     * The full set of resource IDs after the change.
     */
    resourceIds?: Array<string> | undefined;
};
/**
 * Output returned after configuring an OrbSubscriptionIntent.
 */
export type BuyCreditsConfigurationBillingResponse200Output = {
    /**
     * When the subscription change should take effect.
     */
    effectiveBehavior: EffectiveBehavior;
    /**
     * The Orb price ID for the subscription item being modified.
     */
    orbPriceId: string;
    /**
     * The source used as the authoritative price for this intent.
     */
    pricingSource: PricingSource;
    /**
     * The product ID associated with this intent.
     */
    productId: string;
    /**
     * Resources that were changed as part of this intent. Tracks all logical changes including the primary change and any side effects.
     */
    changedResources?: Array<ChangedResources> | undefined;
    /**
     * Optional metadata associated with the intent to update the Orb subscription with.
     */
    metadata?: {
        [k: string]: string;
    } | undefined;
    /**
     * The ID of the pending subscription change if there is one.
     */
    pendingSubscriptionChangeId?: string | undefined;
};
/**
 * Configuration for the Orb subscription intent.
 */
export type BuyCreditsConfiguration1 = {
    /**
     * Configuration input options for setting plan item quantity.
     */
    options: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOptions;
    /**
     * Output returned after configuring an OrbSubscriptionIntent.
     */
    output: BuyCreditsConfigurationBillingResponse200Output;
    type: "set_plan_item_quantity";
};
export type ResponseBodyConfiguration = BuyCreditsConfiguration1 | BuyCreditsConfiguration2 | Configuration3 | Configuration4;
export declare const BuyCreditsOrbUpdateMode: {
    readonly Async: "async";
};
export type BuyCreditsOrbUpdateMode = ClosedEnum<typeof BuyCreditsOrbUpdateMode>;
export declare const BuyCreditsOrbUpdateStatus: {
    readonly Succeeded: "succeeded";
};
export type BuyCreditsOrbUpdateStatus = ClosedEnum<typeof BuyCreditsOrbUpdateStatus>;
/**
 * How the subscription change is applied to Orb.
 */
export type OrbUpdate3 = {
    /**
     * The ISO 8601 date-time that the subscription change was applied to Orb.
     */
    appliedAt: string;
    mode: BuyCreditsOrbUpdateMode;
    status: BuyCreditsOrbUpdateStatus;
};
export declare const OrbUpdateMode: {
    readonly Async: "async";
};
export type OrbUpdateMode = ClosedEnum<typeof OrbUpdateMode>;
export declare const OrbUpdateStatus: {
    readonly Canceled: "canceled";
    readonly Failed: "failed";
    readonly Pending: "pending";
    readonly Running: "running";
};
export type OrbUpdateStatus = ClosedEnum<typeof OrbUpdateStatus>;
/**
 * How the subscription change is applied to Orb.
 */
export type OrbUpdate2 = {
    mode: OrbUpdateMode;
    status: OrbUpdateStatus;
};
export declare const BuyCreditsOrbUpdateBillingMode: {
    readonly Sync: "sync";
};
export type BuyCreditsOrbUpdateBillingMode = ClosedEnum<typeof BuyCreditsOrbUpdateBillingMode>;
/**
 * How the subscription change is applied to Orb.
 */
export type OrbUpdate1 = {
    mode: BuyCreditsOrbUpdateBillingMode;
};
export type OrbUpdate = OrbUpdate3 | OrbUpdate2 | OrbUpdate1;
/**
 * The status of the Orb subscription intent.
 */
export declare const BuyCreditsResponseBodyStatus: {
    readonly Failed: "failed";
    readonly Pending: "pending";
    readonly Succeeded: "succeeded";
};
/**
 * The status of the Orb subscription intent.
 */
export type BuyCreditsResponseBodyStatus = ClosedEnum<typeof BuyCreditsResponseBodyStatus>;
export type OrbSubscriptionIntent = {
    /**
     * The ID of the Orb subscription intent with the format `orbsubint_`.
     */
    id: string;
    configuration: BuyCreditsConfiguration1 | BuyCreditsConfiguration2 | Configuration3 | Configuration4;
    /**
     * The ISO 8601 date-time that the intent was created.
     */
    createdAt: string;
    /**
     * The Orb subscription ID this intent is associated with.
     */
    orbSubscriptionId: string;
    orbUpdate: OrbUpdate3 | OrbUpdate2 | OrbUpdate1;
    /**
     * The owner ID for this intent (e.g., team or user ID).
     */
    ownerId: string;
    /**
     * The status of the Orb subscription intent.
     */
    status: BuyCreditsResponseBodyStatus;
    /**
     * The ISO 8601 date-time that the intent was last updated.
     */
    updatedAt: string;
    /**
     * Optional purchase intent ID if this is associated with a purchase.
     */
    purchaseIntentId?: string | undefined;
};
export type BuyCreditsResponseBody3 = {
    orbSubscriptionIntent: OrbSubscriptionIntent;
};
/**
 * The current plan item quantities
 */
export type ConfigurationPlanItemQuantities = {
    /**
     * The ID of the current plan item to set the quantity for
     */
    planItemId: string;
    /**
     * The nonnegative integer quantity for the current plan item
     */
    quantity: number;
    /**
     * The resource IDs associated with the current plan item quantity
     */
    resourceIds?: Array<string> | undefined;
};
/**
 * The current plan being replaced by this purchase
 */
export type ConfigurationFromPlan = {
    /**
     * The end of the current plan billing cycle
     */
    currentCycleEndDate: string;
    /**
     * The Orb subscription ID currently active for the owner on the source plan
     */
    orbSubscriptionId: string;
    /**
     * The ID of the plan currently assigned
     */
    planId: string;
    /**
     * The current plan item quantities
     */
    planItemQuantities?: Array<ConfigurationPlanItemQuantities> | undefined;
    /**
     * The rate variant currently assigned
     */
    rateVariantKey?: string | undefined;
};
/**
 * The plan item quantities to set for the subscription
 */
export type PlanItemQuantities = {
    /**
     * The ID of the plan item to set the quantity for
     */
    planItemId: string;
    /**
     * The nonnegative integer quantity for the plan item
     */
    quantity: number;
    /**
     * The resource IDs to associate with the plan item quantity
     */
    resourceIds?: Array<string> | undefined;
};
/**
 * Purchase configuration specific options
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONOptions = {
    /**
     * The ID of the plan to subscribe to
     */
    planId: string;
    /**
     * The current plan being replaced by this purchase
     */
    fromPlan?: ConfigurationFromPlan | undefined;
    /**
     * The plan item quantities to set for the subscription
     */
    planItemQuantities?: Array<PlanItemQuantities> | undefined;
    /**
     * The rate variant key to apply to the subscription
     */
    rateVariantKey?: string | undefined;
};
export type BuyCreditsConfigurationBillingResponseOutput = {
    /**
     * The committed Plan revision used to calculate the purchase price
     */
    planChangeId?: string | undefined;
};
/**
 * The configuration for a credit purchase
 */
export type Configuration7 = {
    /**
     * Purchase configuration specific options
     */
    options: BuyCreditsConfigurationBillingResponse200ApplicationJSONOptions;
    output: BuyCreditsConfigurationBillingResponseOutput;
    type: "subscription";
};
/**
 * The line items that make up the Purchase Intent.
 */
export type ConfigurationLineItems = {
    /**
     * The ID of the line item
     */
    id: string;
    /**
     * The description of the line item
     */
    description: string;
    /**
     * The name of the line item
     */
    name: string;
    /**
     * The ID of the product being purchased
     */
    productId: string;
    /**
     * The quantity of the line item
     */
    quantity: string;
    /**
     * The unit amount of the line item
     */
    unitAmount: string;
    /**
     * Optional metadata for the line item
     */
    metadata?: {
        [k: string]: string;
    } | undefined;
    /**
     * The alias of the product being purchased
     */
    productAlias?: string | undefined;
    /**
     * The amount of the line item that has been refunded
     */
    refund?: string | undefined;
};
export type BuyCreditsConfigurationBillingResponse200Options = {
    /**
     * The ID of the Orb customer to create
     */
    orbCustomerId: string;
    /**
     * The external ID of the Orb customer to create
     */
    orbExternalCustomerId: string;
    /**
     * The external ID of the Orb plan to create
     */
    orbExternalPlanId: string;
    /**
     * The ID of the Orb plan to create
     */
    orbPlanId: string;
    /**
     * The ID of the Orb subscription to create
     */
    orbSubscriptionId: string;
    /**
     * The line items that make up the Purchase Intent.
     */
    lineItems?: Array<ConfigurationLineItems> | undefined;
    /**
     * The ID of the pending subscription change
     */
    orbPendingSubscriptionChangeId?: string | undefined;
};
export type BuyCreditsConfigurationBillingOutput = {
    /**
     * The ID of the pending subscription change
     */
    pendingSubscriptionChangeId?: string | undefined;
};
/**
 * The configuration for a credit purchase
 */
export type Configuration6 = {
    options: BuyCreditsConfigurationBillingResponse200Options;
    output: BuyCreditsConfigurationBillingOutput;
    type: "orb_subscription_intent";
};
/**
 * The prices to add to the subscription
 */
export type AddPrices2 = {};
/**
 * The prices to add to the subscription
 */
export type AddPrices1 = {
    /**
     * The ID of the price to add
     */
    priceId: string;
};
export type AddPrices = AddPrices1 | AddPrices2;
/**
 * The prices to remove in the subscription
 */
export type RemovePrices = {
    /**
     * The ID of the price to remove
     */
    priceId: string;
};
/**
 * The prices to replace in the subscription
 */
export type ConfigurationReplacePrices = {
    /**
     * The quantity for the fixed price
     */
    fixedPriceQuantity: number;
    /**
     * The ID of the price to replace
     */
    replacesPriceId: string;
};
export type BuyCreditsConfigurationBillingResponseOptions = {
    /**
     * The external plan ID of the Orb plan to subscribe to
     */
    externalPlanId: string;
    /**
     * The prices to add to the subscription
     */
    addPrices?: Array<AddPrices1 | AddPrices2> | undefined;
    /**
     * Whether to align the subscription start date with the billing subscription start date
     */
    alignBillingWithSubscriptionStartDate?: boolean | undefined;
    /**
     * The coupon redemption code to apply to the subscription
     */
    couponRedemptionCode?: string | undefined;
    /**
     * The initial phase order to use for the subscription
     */
    initialPhaseOrder?: number | undefined;
    /**
     * Optional metadata to associate with the subscription
     */
    metadata?: {
        [k: string]: string | null;
    } | undefined;
    /**
     * The prices to remove in the subscription
     */
    removePrices?: Array<RemovePrices> | undefined;
    /**
     * The prices to replace in the subscription
     */
    replacePrices?: Array<ConfigurationReplacePrices> | undefined;
    /**
     * The start date of the subscription
     */
    startDate?: string | undefined;
};
export type BuyCreditsConfigurationOutput = {
    /**
     * The ID of the pending subscription change
     */
    pendingSubscriptionChangeId: string;
};
/**
 * The configuration for a credit purchase
 */
export type Configuration5 = {
    options: BuyCreditsConfigurationBillingResponseOptions;
    output: BuyCreditsConfigurationOutput;
    type: "orb_subscription";
};
export type BuyCreditsConfigurationBillingOptions = {};
export type ConfigurationOutput = {
    /**
     * The ID of the pending subscription change
     */
    pendingSubscriptionChangeId: string;
};
/**
 * The configuration for a credit purchase
 */
export type BuyCreditsConfiguration4 = {
    options: BuyCreditsConfigurationBillingOptions;
    output: ConfigurationOutput;
    type: "orb_price_interval";
};
export declare const EffectiveDate2: {
    readonly EndOfSubscriptionTerm: "end_of_subscription_term";
    readonly Immediate: "immediate";
};
export type EffectiveDate2 = ClosedEnum<typeof EffectiveDate2>;
/**
 * The effective date of the plan change
 */
export type EffectiveDate1 = {};
export type EffectiveDate = EffectiveDate1 | EffectiveDate2;
/**
 * The prices to replace in the subscription
 */
export type ReplacePrices = {
    /**
     * The quantity for the fixed price
     */
    fixedPriceQuantity: number;
    /**
     * The ID of the price to replace
     */
    replacesPriceId: string;
};
export type BuyCreditsConfigurationOptions = {
    effectiveDate: EffectiveDate1 | EffectiveDate2;
    /**
     * The ID of the Orb subscription to change
     */
    orbSubscriptionId: string;
    /**
     * Whether or not to reset the billing cycle
     */
    alignBillingWithPlanChangeDate?: boolean | undefined;
    /**
     * The coupon redemption code to apply to the plan change
     */
    couponRedemptionCode?: string | undefined;
    /**
     * The ID of the external plan to change to
     */
    externalPlanId?: string | undefined;
    /**
     * The prices to replace in the subscription
     */
    replacePrices?: Array<ReplacePrices> | undefined;
};
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Output = {
    /**
     * The ID of the pending subscription change
     */
    pendingSubscriptionChangeId: string;
};
/**
 * The configuration for a credit purchase
 */
export type BuyCreditsConfiguration3 = {
    options: BuyCreditsConfigurationOptions;
    output: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Output;
    type: "orb_plan_change";
};
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Type: {
    readonly Purchase: "purchase";
    readonly Renewal: "renewal";
    readonly Transfer: "transfer";
};
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Type = ClosedEnum<typeof BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Type>;
export type ConfigurationItems = {
    name: string;
    /**
     * The subtotal of the domain name purchase
     */
    subtotal: string;
    type: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Type;
    /**
     * The number of years to purchase
     */
    years: number;
};
export type ConfigurationOptions = {
    items: Array<ConfigurationItems>;
    /**
     * The order ID of the domain name purchase
     */
    orderId: string;
};
/**
 * The configuration for a credit purchase
 */
export type Configuration2 = {
    options: ConfigurationOptions;
    output?: any | null | undefined;
    type: "domain_name";
};
/**
 * The currency being purchased
 */
export declare const ConfigurationCurrency: {
    readonly AiCredits: "ai_credits";
    readonly AiGatewayCredits: "ai_gateway_credits";
    readonly CopperTestUnits: "copper_test_units";
    readonly V0UserCredits: "v0_user_credits";
    readonly VercelAgentCredits: "vercel_agent_credits";
};
/**
 * The currency being purchased
 */
export type ConfigurationCurrency = ClosedEnum<typeof ConfigurationCurrency>;
/**
 * Purchase configuration specific options
 */
export type BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Options = {
    /**
     * The amount of currency to buy
     */
    amount: string;
    /**
     * The currency being purchased
     */
    currency: ConfigurationCurrency;
    /**
     * The expiration date of the credits being purchased
     */
    expirationDate?: string | undefined;
};
/**
 * The configuration for a credit purchase
 */
export type Configuration1 = {
    /**
     * Purchase configuration specific options
     */
    options: BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Options;
    output?: any | null | undefined;
    type: "credit_topup";
};
export type BuyCreditsResponseBodyConfiguration = Configuration1 | Configuration2 | BuyCreditsConfiguration3 | BuyCreditsConfiguration4 | Configuration5 | Configuration6 | Configuration7;
/**
 * The currency for the purchase intent
 */
export declare const Currency: {
    readonly Miu: "miu";
    readonly Usd: "usd";
};
/**
 * The currency for the purchase intent
 */
export type Currency = ClosedEnum<typeof Currency>;
/**
 * The type of the purchase provider
 */
export declare const BuyCreditsResponseBodyType: {
    readonly AppleInAppPurchase: "apple_in_app_purchase";
    readonly OrbLedger: "orb_ledger";
    readonly StripeElements: "stripe_elements";
    readonly StripeHosted: "stripe_hosted";
    readonly StripeInvoiceDeferred: "stripe_invoice_deferred";
    readonly StripeInvoiceElements: "stripe_invoice_elements";
    readonly StripeInvoiceImmediate: "stripe_invoice_immediate";
    readonly TackleAwsMarketplace: "tackle_aws_marketplace";
};
/**
 * The type of the purchase provider
 */
export type BuyCreditsResponseBodyType = ClosedEnum<typeof BuyCreditsResponseBodyType>;
export type ResponseBodyProvider = {
    /**
     * Provider resource id
     */
    resourceId: string;
    /**
     * The type of the purchase provider
     */
    type: BuyCreditsResponseBodyType;
    /**
     * The currency conversion rate used by the provider
     */
    currencyConversionRate?: string | undefined;
    /**
     * Whether a Stripe Shared Payment Token was used for this purchase. Only applicable when type is stripe_invoice_immediate.
     */
    stripeSharedPaymentTokenUsed?: boolean | undefined;
};
/**
 * The status of the Purchase Intent.
 */
export declare const BuyCreditsResponseBodyBillingStatus: {
    readonly Failed: "failed";
    readonly Pending: "pending";
    readonly Succeeded: "succeeded";
};
/**
 * The status of the Purchase Intent.
 */
export type BuyCreditsResponseBodyBillingStatus = ClosedEnum<typeof BuyCreditsResponseBodyBillingStatus>;
/**
 * The dispute details, if any.
 */
export type Dispute = {
    /**
     * The unique ID of the dispute entity.
     */
    id: string;
    /**
     * The disputed amount.
     */
    amount: string;
    /**
     * When the dispute was first recorded.
     */
    createdAt: string;
    /**
     * The dispute currency.
     */
    currency: string;
    /**
     * The external provider dispute ID (e.g. Stripe dispute ID).
     */
    providerId: string;
    /**
     * The dispute reason.
     */
    reason: string | null;
    /**
     * The dispute status.
     */
    status: string;
    /**
     * When the dispute was last updated.
     */
    updatedAt: string;
};
/**
 * The line items that make up the Purchase Intent.
 */
export type LineItems = {
    /**
     * The ID of the line item
     */
    id: string;
    /**
     * The description of the line item
     */
    description: string;
    /**
     * The name of the line item
     */
    name: string;
    /**
     * The ID of the product being purchased
     */
    productId: string;
    /**
     * The quantity of the line item
     */
    quantity: string;
    /**
     * The unit amount of the line item
     */
    unitAmount: string;
    /**
     * Optional metadata for the line item
     */
    metadata?: {
        [k: string]: string;
    } | undefined;
    /**
     * The alias of the product being purchased
     */
    productAlias?: string | undefined;
    /**
     * The amount of the line item that has been refunded
     */
    refund?: string | undefined;
};
/**
 * The created purchase intent
 */
export type PurchaseIntent = {
    /**
     * The unique ID of a Purchase Intent. Uses the format `pur_*`
     */
    id: string;
    configuration: Configuration1 | Configuration2 | BuyCreditsConfiguration3 | BuyCreditsConfiguration4 | Configuration5 | Configuration6 | Configuration7;
    /**
     * The datetime when the Purchase Intent was created.
     */
    createdAt: string;
    /**
     * The currency for the purchase intent
     */
    currency: Currency;
    /**
     * The ID of the owner of the Purchase Intent.
     */
    ownerId: string;
    provider: ResponseBodyProvider;
    /**
     * The status of the Purchase Intent.
     */
    status: BuyCreditsResponseBodyBillingStatus;
    /**
     * The subtotal of the Purchase Intent.
     */
    subtotal: string;
    /**
     * The tax due on the Purchase Intent.
     */
    tax: string;
    /**
     * The total balance due on the Purchase Intent.
     */
    total: string;
    /**
     * The datetime when the Purchase Intent was last updated.
     */
    updatedAt: string;
    /**
     * The dispute details, if any.
     */
    dispute?: Dispute | undefined;
    /**
     * The line items that make up the Purchase Intent.
     */
    lineItems?: Array<LineItems> | undefined;
    /**
     * Optional metadata associated with the purchase intent
     */
    metadata?: {
        [k: string]: string;
    } | undefined;
    /**
     * The amount of the purchase intent that has been refunded
     */
    refund?: string | undefined;
    /**
     * The URL to redirect to after the purchase is complete
     */
    returnUrl?: string | undefined;
};
export type BuyCreditsResponseBody2 = {
    /**
     * The created purchase intent
     */
    purchaseIntent: PurchaseIntent;
};
export type BuyCreditsResponseBody1 = {
    checkoutSessionId: string;
    checkoutSessionUrl: string;
};
export type BuyCreditsResponseBody = BuyCreditsResponseBody1 | BuyCreditsResponseBody2 | BuyCreditsResponseBody3;
/** @internal */
export declare const BuyCreditsType$outboundSchema: z.ZodNativeEnum<typeof BuyCreditsType>;
/** @internal */
export declare const CreditType$outboundSchema: z.ZodNativeEnum<typeof CreditType>;
/** @internal */
export type Item$Outbound = {
    type: string;
    creditType: string;
    amount: number;
};
/** @internal */
export declare const Item$outboundSchema: z.ZodType<Item$Outbound, z.ZodTypeDef, Item>;
export declare function itemToJSON(item: Item): string;
/** @internal */
export type BuyCreditsRequestBody$Outbound = {
    item: Item$Outbound;
};
/** @internal */
export declare const BuyCreditsRequestBody$outboundSchema: z.ZodType<BuyCreditsRequestBody$Outbound, z.ZodTypeDef, BuyCreditsRequestBody>;
export declare function buyCreditsRequestBodyToJSON(buyCreditsRequestBody: BuyCreditsRequestBody): string;
/** @internal */
export type BuyCreditsRequest$Outbound = {
    source?: string | undefined;
    teamId?: string | undefined;
    slug?: string | undefined;
    RequestBody: BuyCreditsRequestBody$Outbound;
};
/** @internal */
export declare const BuyCreditsRequest$outboundSchema: z.ZodType<BuyCreditsRequest$Outbound, z.ZodTypeDef, BuyCreditsRequest>;
export declare function buyCreditsRequestToJSON(buyCreditsRequest: BuyCreditsRequest): string;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntent4Options$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntent4Options, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntent4OptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntent4Options, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingEffectiveBehavior$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsConfigurationBillingEffectiveBehavior>;
/** @internal */
export declare const BuyCreditsConfigurationBillingPricingSource$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsConfigurationBillingPricingSource>;
/** @internal */
export declare const BuyCreditsConfigurationBillingChangedResources$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingChangedResources, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingChangedResourcesFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingChangedResources, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Output$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Output, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Output, SDKValidationError>;
/** @internal */
export declare const Configuration4$inboundSchema: z.ZodType<Configuration4, z.ZodTypeDef, unknown>;
export declare function configuration4FromJSON(jsonString: string): SafeParseResult<Configuration4, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntentOptions$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntentOptions, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntentOptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OrbSubscriptionIntentOptions, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationEffectiveBehavior$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsConfigurationEffectiveBehavior>;
/** @internal */
export declare const BuyCreditsConfigurationPricingSource$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsConfigurationPricingSource>;
/** @internal */
export declare const BuyCreditsConfigurationChangedResources$inboundSchema: z.ZodType<BuyCreditsConfigurationChangedResources, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationChangedResourcesFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationChangedResources, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOutput$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOutput, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOutput, SDKValidationError>;
/** @internal */
export declare const Configuration3$inboundSchema: z.ZodType<Configuration3, z.ZodTypeDef, unknown>;
export declare function configuration3FromJSON(jsonString: string): SafeParseResult<Configuration3, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Options$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Options, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3OptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody3Options, SDKValidationError>;
/** @internal */
export declare const ConfigurationEffectiveBehavior$inboundSchema: z.ZodNativeEnum<typeof ConfigurationEffectiveBehavior>;
/** @internal */
export declare const ConfigurationPricingSource$inboundSchema: z.ZodNativeEnum<typeof ConfigurationPricingSource>;
/** @internal */
export declare const ConfigurationChangedResources$inboundSchema: z.ZodType<ConfigurationChangedResources, z.ZodTypeDef, unknown>;
export declare function configurationChangedResourcesFromJSON(jsonString: string): SafeParseResult<ConfigurationChangedResources, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONOutput$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONOutput, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONOutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONOutput, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfiguration2$inboundSchema: z.ZodType<BuyCreditsConfiguration2, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfiguration2FromJSON(jsonString: string): SafeParseResult<BuyCreditsConfiguration2, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOptions$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOptions, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBodyOptions, SDKValidationError>;
/** @internal */
export declare const EffectiveBehavior$inboundSchema: z.ZodNativeEnum<typeof EffectiveBehavior>;
/** @internal */
export declare const PricingSource$inboundSchema: z.ZodNativeEnum<typeof PricingSource>;
/** @internal */
export declare const ChangedResources$inboundSchema: z.ZodType<ChangedResources, z.ZodTypeDef, unknown>;
export declare function changedResourcesFromJSON(jsonString: string): SafeParseResult<ChangedResources, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200Output$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200Output, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200OutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200Output, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfiguration1$inboundSchema: z.ZodType<BuyCreditsConfiguration1, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfiguration1FromJSON(jsonString: string): SafeParseResult<BuyCreditsConfiguration1, SDKValidationError>;
/** @internal */
export declare const ResponseBodyConfiguration$inboundSchema: z.ZodType<ResponseBodyConfiguration, z.ZodTypeDef, unknown>;
export declare function responseBodyConfigurationFromJSON(jsonString: string): SafeParseResult<ResponseBodyConfiguration, SDKValidationError>;
/** @internal */
export declare const BuyCreditsOrbUpdateMode$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsOrbUpdateMode>;
/** @internal */
export declare const BuyCreditsOrbUpdateStatus$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsOrbUpdateStatus>;
/** @internal */
export declare const OrbUpdate3$inboundSchema: z.ZodType<OrbUpdate3, z.ZodTypeDef, unknown>;
export declare function orbUpdate3FromJSON(jsonString: string): SafeParseResult<OrbUpdate3, SDKValidationError>;
/** @internal */
export declare const OrbUpdateMode$inboundSchema: z.ZodNativeEnum<typeof OrbUpdateMode>;
/** @internal */
export declare const OrbUpdateStatus$inboundSchema: z.ZodNativeEnum<typeof OrbUpdateStatus>;
/** @internal */
export declare const OrbUpdate2$inboundSchema: z.ZodType<OrbUpdate2, z.ZodTypeDef, unknown>;
export declare function orbUpdate2FromJSON(jsonString: string): SafeParseResult<OrbUpdate2, SDKValidationError>;
/** @internal */
export declare const BuyCreditsOrbUpdateBillingMode$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsOrbUpdateBillingMode>;
/** @internal */
export declare const OrbUpdate1$inboundSchema: z.ZodType<OrbUpdate1, z.ZodTypeDef, unknown>;
export declare function orbUpdate1FromJSON(jsonString: string): SafeParseResult<OrbUpdate1, SDKValidationError>;
/** @internal */
export declare const OrbUpdate$inboundSchema: z.ZodType<OrbUpdate, z.ZodTypeDef, unknown>;
export declare function orbUpdateFromJSON(jsonString: string): SafeParseResult<OrbUpdate, SDKValidationError>;
/** @internal */
export declare const BuyCreditsResponseBodyStatus$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsResponseBodyStatus>;
/** @internal */
export declare const OrbSubscriptionIntent$inboundSchema: z.ZodType<OrbSubscriptionIntent, z.ZodTypeDef, unknown>;
export declare function orbSubscriptionIntentFromJSON(jsonString: string): SafeParseResult<OrbSubscriptionIntent, SDKValidationError>;
/** @internal */
export declare const BuyCreditsResponseBody3$inboundSchema: z.ZodType<BuyCreditsResponseBody3, z.ZodTypeDef, unknown>;
export declare function buyCreditsResponseBody3FromJSON(jsonString: string): SafeParseResult<BuyCreditsResponseBody3, SDKValidationError>;
/** @internal */
export declare const ConfigurationPlanItemQuantities$inboundSchema: z.ZodType<ConfigurationPlanItemQuantities, z.ZodTypeDef, unknown>;
export declare function configurationPlanItemQuantitiesFromJSON(jsonString: string): SafeParseResult<ConfigurationPlanItemQuantities, SDKValidationError>;
/** @internal */
export declare const ConfigurationFromPlan$inboundSchema: z.ZodType<ConfigurationFromPlan, z.ZodTypeDef, unknown>;
export declare function configurationFromPlanFromJSON(jsonString: string): SafeParseResult<ConfigurationFromPlan, SDKValidationError>;
/** @internal */
export declare const PlanItemQuantities$inboundSchema: z.ZodType<PlanItemQuantities, z.ZodTypeDef, unknown>;
export declare function planItemQuantitiesFromJSON(jsonString: string): SafeParseResult<PlanItemQuantities, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONOptions$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONOptions, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONOptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONOptions, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponseOutput$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponseOutput, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponseOutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponseOutput, SDKValidationError>;
/** @internal */
export declare const Configuration7$inboundSchema: z.ZodType<Configuration7, z.ZodTypeDef, unknown>;
export declare function configuration7FromJSON(jsonString: string): SafeParseResult<Configuration7, SDKValidationError>;
/** @internal */
export declare const ConfigurationLineItems$inboundSchema: z.ZodType<ConfigurationLineItems, z.ZodTypeDef, unknown>;
export declare function configurationLineItemsFromJSON(jsonString: string): SafeParseResult<ConfigurationLineItems, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200Options$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200Options, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200OptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200Options, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingOutput$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingOutput, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingOutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingOutput, SDKValidationError>;
/** @internal */
export declare const Configuration6$inboundSchema: z.ZodType<Configuration6, z.ZodTypeDef, unknown>;
export declare function configuration6FromJSON(jsonString: string): SafeParseResult<Configuration6, SDKValidationError>;
/** @internal */
export declare const AddPrices2$inboundSchema: z.ZodType<AddPrices2, z.ZodTypeDef, unknown>;
export declare function addPrices2FromJSON(jsonString: string): SafeParseResult<AddPrices2, SDKValidationError>;
/** @internal */
export declare const AddPrices1$inboundSchema: z.ZodType<AddPrices1, z.ZodTypeDef, unknown>;
export declare function addPrices1FromJSON(jsonString: string): SafeParseResult<AddPrices1, SDKValidationError>;
/** @internal */
export declare const AddPrices$inboundSchema: z.ZodType<AddPrices, z.ZodTypeDef, unknown>;
export declare function addPricesFromJSON(jsonString: string): SafeParseResult<AddPrices, SDKValidationError>;
/** @internal */
export declare const RemovePrices$inboundSchema: z.ZodType<RemovePrices, z.ZodTypeDef, unknown>;
export declare function removePricesFromJSON(jsonString: string): SafeParseResult<RemovePrices, SDKValidationError>;
/** @internal */
export declare const ConfigurationReplacePrices$inboundSchema: z.ZodType<ConfigurationReplacePrices, z.ZodTypeDef, unknown>;
export declare function configurationReplacePricesFromJSON(jsonString: string): SafeParseResult<ConfigurationReplacePrices, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponseOptions$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponseOptions, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponseOptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponseOptions, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationOutput$inboundSchema: z.ZodType<BuyCreditsConfigurationOutput, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationOutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationOutput, SDKValidationError>;
/** @internal */
export declare const Configuration5$inboundSchema: z.ZodType<Configuration5, z.ZodTypeDef, unknown>;
export declare function configuration5FromJSON(jsonString: string): SafeParseResult<Configuration5, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingOptions$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingOptions, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingOptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingOptions, SDKValidationError>;
/** @internal */
export declare const ConfigurationOutput$inboundSchema: z.ZodType<ConfigurationOutput, z.ZodTypeDef, unknown>;
export declare function configurationOutputFromJSON(jsonString: string): SafeParseResult<ConfigurationOutput, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfiguration4$inboundSchema: z.ZodType<BuyCreditsConfiguration4, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfiguration4FromJSON(jsonString: string): SafeParseResult<BuyCreditsConfiguration4, SDKValidationError>;
/** @internal */
export declare const EffectiveDate2$inboundSchema: z.ZodNativeEnum<typeof EffectiveDate2>;
/** @internal */
export declare const EffectiveDate1$inboundSchema: z.ZodType<EffectiveDate1, z.ZodTypeDef, unknown>;
export declare function effectiveDate1FromJSON(jsonString: string): SafeParseResult<EffectiveDate1, SDKValidationError>;
/** @internal */
export declare const EffectiveDate$inboundSchema: z.ZodType<EffectiveDate, z.ZodTypeDef, unknown>;
export declare function effectiveDateFromJSON(jsonString: string): SafeParseResult<EffectiveDate, SDKValidationError>;
/** @internal */
export declare const ReplacePrices$inboundSchema: z.ZodType<ReplacePrices, z.ZodTypeDef, unknown>;
export declare function replacePricesFromJSON(jsonString: string): SafeParseResult<ReplacePrices, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationOptions$inboundSchema: z.ZodType<BuyCreditsConfigurationOptions, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationOptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationOptions, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Output$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Output, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2OutputFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Output, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfiguration3$inboundSchema: z.ZodType<BuyCreditsConfiguration3, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfiguration3FromJSON(jsonString: string): SafeParseResult<BuyCreditsConfiguration3, SDKValidationError>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Type$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Type>;
/** @internal */
export declare const ConfigurationItems$inboundSchema: z.ZodType<ConfigurationItems, z.ZodTypeDef, unknown>;
export declare function configurationItemsFromJSON(jsonString: string): SafeParseResult<ConfigurationItems, SDKValidationError>;
/** @internal */
export declare const ConfigurationOptions$inboundSchema: z.ZodType<ConfigurationOptions, z.ZodTypeDef, unknown>;
export declare function configurationOptionsFromJSON(jsonString: string): SafeParseResult<ConfigurationOptions, SDKValidationError>;
/** @internal */
export declare const Configuration2$inboundSchema: z.ZodType<Configuration2, z.ZodTypeDef, unknown>;
export declare function configuration2FromJSON(jsonString: string): SafeParseResult<Configuration2, SDKValidationError>;
/** @internal */
export declare const ConfigurationCurrency$inboundSchema: z.ZodNativeEnum<typeof ConfigurationCurrency>;
/** @internal */
export declare const BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Options$inboundSchema: z.ZodType<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Options, z.ZodTypeDef, unknown>;
export declare function buyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2OptionsFromJSON(jsonString: string): SafeParseResult<BuyCreditsConfigurationBillingResponse200ApplicationJSONResponseBody2Options, SDKValidationError>;
/** @internal */
export declare const Configuration1$inboundSchema: z.ZodType<Configuration1, z.ZodTypeDef, unknown>;
export declare function configuration1FromJSON(jsonString: string): SafeParseResult<Configuration1, SDKValidationError>;
/** @internal */
export declare const BuyCreditsResponseBodyConfiguration$inboundSchema: z.ZodType<BuyCreditsResponseBodyConfiguration, z.ZodTypeDef, unknown>;
export declare function buyCreditsResponseBodyConfigurationFromJSON(jsonString: string): SafeParseResult<BuyCreditsResponseBodyConfiguration, SDKValidationError>;
/** @internal */
export declare const Currency$inboundSchema: z.ZodNativeEnum<typeof Currency>;
/** @internal */
export declare const BuyCreditsResponseBodyType$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsResponseBodyType>;
/** @internal */
export declare const ResponseBodyProvider$inboundSchema: z.ZodType<ResponseBodyProvider, z.ZodTypeDef, unknown>;
export declare function responseBodyProviderFromJSON(jsonString: string): SafeParseResult<ResponseBodyProvider, SDKValidationError>;
/** @internal */
export declare const BuyCreditsResponseBodyBillingStatus$inboundSchema: z.ZodNativeEnum<typeof BuyCreditsResponseBodyBillingStatus>;
/** @internal */
export declare const Dispute$inboundSchema: z.ZodType<Dispute, z.ZodTypeDef, unknown>;
export declare function disputeFromJSON(jsonString: string): SafeParseResult<Dispute, SDKValidationError>;
/** @internal */
export declare const LineItems$inboundSchema: z.ZodType<LineItems, z.ZodTypeDef, unknown>;
export declare function lineItemsFromJSON(jsonString: string): SafeParseResult<LineItems, SDKValidationError>;
/** @internal */
export declare const PurchaseIntent$inboundSchema: z.ZodType<PurchaseIntent, z.ZodTypeDef, unknown>;
export declare function purchaseIntentFromJSON(jsonString: string): SafeParseResult<PurchaseIntent, SDKValidationError>;
/** @internal */
export declare const BuyCreditsResponseBody2$inboundSchema: z.ZodType<BuyCreditsResponseBody2, z.ZodTypeDef, unknown>;
export declare function buyCreditsResponseBody2FromJSON(jsonString: string): SafeParseResult<BuyCreditsResponseBody2, SDKValidationError>;
/** @internal */
export declare const BuyCreditsResponseBody1$inboundSchema: z.ZodType<BuyCreditsResponseBody1, z.ZodTypeDef, unknown>;
export declare function buyCreditsResponseBody1FromJSON(jsonString: string): SafeParseResult<BuyCreditsResponseBody1, SDKValidationError>;
/** @internal */
export declare const BuyCreditsResponseBody$inboundSchema: z.ZodType<BuyCreditsResponseBody, z.ZodTypeDef, unknown>;
export declare function buyCreditsResponseBodyFromJSON(jsonString: string): SafeParseResult<BuyCreditsResponseBody, SDKValidationError>;
//# sourceMappingURL=buycreditsop.d.ts.map