import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { EnvironmentMode } from "./environmentmode.js"; import { LicenseStatus } from "./licensestatus.js"; /** * The status of the license instance. */ export declare const LicenseEntityStatus: { readonly Active: "active"; readonly Deactivated: "deactivated"; }; /** * The status of the license instance. */ export type LicenseEntityStatus = ClosedEnum; /** * Associated license instances. */ export type Instance = { /** * Unique identifier for the object. */ id: string; /** * String representing the environment. */ mode: EnvironmentMode; /** * A string representing the object’s type. Objects of the same type share the same value. */ object: string; /** * The name of the license instance. */ name: string; /** * The status of the license instance. */ status: LicenseEntityStatus; /** * The creation date of the license instance. */ createdAt: Date; }; export type LicenseEntity = { /** * Unique identifier for the object. */ id: string; /** * String representing the environment. */ mode: EnvironmentMode; /** * A string representing the object’s type. Objects of the same type share the same value. */ object: string; /** * The ID of the product this license belongs to. */ productId: string; /** * The current status of the license key. */ status: LicenseStatus; /** * The license key. */ key: string; /** * The number of instances that this license key was activated. */ activation: number; /** * The activation limit. Null if activations are unlimited. */ activationLimit?: number | null | undefined; /** * The date the license key expires. Null if it does not have an expiration date. */ expiresAt?: Date | null | undefined; /** * The creation date of the license key. */ createdAt: Date; /** * Associated license instances. */ instance?: Instance | null | undefined; }; /** @internal */ export declare const LicenseEntityStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const LicenseEntityStatus$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Instance$inboundSchema: z.ZodType; /** @internal */ export type Instance$Outbound = { id: string; mode: string; object: string; name: string; status: string; created_at: string; }; /** @internal */ export declare const Instance$outboundSchema: z.ZodType; export declare function instanceToJSON(instance: Instance): string; export declare function instanceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const LicenseEntity$inboundSchema: z.ZodType; /** @internal */ export type LicenseEntity$Outbound = { id: string; mode: string; object: string; product_id: string; status: string; key: string; activation: number; activation_limit?: number | null | undefined; expires_at?: string | null | undefined; created_at: string; instance?: Instance$Outbound | null | undefined; }; /** @internal */ export declare const LicenseEntity$outboundSchema: z.ZodType; export declare function licenseEntityToJSON(licenseEntity: LicenseEntity): string; export declare function licenseEntityFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=licenseentity.d.ts.map