import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { CreditGrantCadence } from "./credit-grant-cadence.js"; import { CreditGrantExpiryDurationUnit } from "./credit-grant-expiry-duration-unit.js"; import { CreditGrantExpiryType } from "./credit-grant-expiry-type.js"; import { CreditGrantPeriod } from "./credit-grant-period.js"; import { CreditGrantScope } from "./credit-grant-scope.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { Status } from "./status.js"; export type CreditGrantResponse = { addonId?: string | undefined; cadence?: CreditGrantCadence | undefined; /** * amount in the currency = number of credits * conversion_rate * * @remarks * ex if conversion_rate is 1, then 1 USD = 1 credit * ex if conversion_rate is 2, then 1 USD = 0.5 credits * ex if conversion_rate is 0.5, then 1 USD = 2 credits */ conversionRate?: string | undefined; createdAt?: Date | undefined; createdBy?: string | undefined; creditGrantAnchor?: Date | undefined; credits?: string | undefined; endDate?: Date | undefined; environmentId?: string | undefined; expirationDuration?: number | undefined; expirationDurationUnit?: CreditGrantExpiryDurationUnit | undefined; expirationType?: CreditGrantExpiryType | undefined; id?: string | undefined; metadata?: { [k: string]: string; } | undefined; name?: string | undefined; period?: CreditGrantPeriod | undefined; periodCount?: number | undefined; planId?: string | undefined; priority?: number | undefined; scope?: CreditGrantScope | undefined; startDate?: Date | undefined; status?: Status | undefined; subscriptionId?: string | undefined; tenantId?: string | undefined; /** * topup_conversion_rate is the conversion rate for the topup to the currency * * @remarks * ex if topup_conversion_rate is 1, then 1 USD = 1 credit * ex if topup_conversion_rate is 2, then 1 USD = 0.5 credits * ex if topup_conversion_rate is 0.5, then 1 USD = 2 credits */ topupConversionRate?: string | undefined; updatedAt?: Date | undefined; updatedBy?: string | undefined; }; /** @internal */ export declare const CreditGrantResponse$inboundSchema: z.ZodMiniType; export declare function creditGrantResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=credit-grant-response.d.ts.map