import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Benefit } from "./benefit.js"; import { BenefitGrantCustomProperties } from "./benefitgrantcustomproperties.js"; import { BenefitGrantDiscordProperties } from "./benefitgrantdiscordproperties.js"; import { BenefitGrantDownloadablesProperties } from "./benefitgrantdownloadablesproperties.js"; import { BenefitGrantError } from "./benefitgranterror.js"; import { BenefitGrantFeatureFlagProperties } from "./benefitgrantfeatureflagproperties.js"; import { BenefitGrantGitHubRepositoryProperties } from "./benefitgrantgithubrepositoryproperties.js"; import { BenefitGrantLicenseKeysProperties } from "./benefitgrantlicensekeysproperties.js"; import { Customer } from "./customer.js"; import { Member } from "./member.js"; export type Properties = BenefitGrantDiscordProperties | BenefitGrantGitHubRepositoryProperties | BenefitGrantDownloadablesProperties | BenefitGrantLicenseKeysProperties | BenefitGrantCustomProperties | BenefitGrantFeatureFlagProperties; export type BenefitGrant = { /** * Creation timestamp of the object. */ createdAt: Date; /** * Last modification timestamp of the object. */ modifiedAt: Date | null; /** * The ID of the grant. */ id: string; /** * The timestamp when the benefit was granted. If `None`, the benefit is not granted. */ grantedAt?: Date | null | undefined; /** * Whether the benefit is granted. */ isGranted: boolean; /** * The timestamp when the benefit was revoked. If `None`, the benefit is not revoked. */ revokedAt?: Date | null | undefined; /** * Whether the benefit is revoked. */ isRevoked: boolean; /** * The ID of the subscription that granted this benefit. */ subscriptionId: string | null; /** * The ID of the order that granted this benefit. */ orderId: string | null; /** * The ID of the customer concerned by this grant. */ customerId: string; /** * The ID of the member concerned by this grant. */ memberId?: string | null | undefined; /** * The ID of the benefit concerned by this grant. */ benefitId: string; /** * The error information if the benefit grant failed with an unrecoverable error. */ error?: BenefitGrantError | null | undefined; customer: Customer; member?: Member | null | undefined; benefit: Benefit; properties: BenefitGrantDiscordProperties | BenefitGrantGitHubRepositoryProperties | BenefitGrantDownloadablesProperties | BenefitGrantLicenseKeysProperties | BenefitGrantCustomProperties | BenefitGrantFeatureFlagProperties; }; /** @internal */ export declare const Properties$inboundSchema: z.ZodMiniType; export declare function propertiesFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const BenefitGrant$inboundSchema: z.ZodMiniType; export declare function benefitGrantFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=benefitgrant.d.ts.map