/** * Canonical universal-item distribution vocabulary. * * An item definition says what the item is. A distribution is one creator- * authorized primary acquisition route. Keeping this builder network-free * lets `--dry-run` exercise exactly the payload the real command sends. */ export declare const ITEM_EDITION_MODES: readonly ["standard", "collectible"]; export type ItemEditionMode = (typeof ITEM_EDITION_MODES)[number]; export declare const ITEM_DISTRIBUTION_CHANNELS: readonly ["marketplace", "world"]; export type ItemDistributionChannel = (typeof ITEM_DISTRIBUTION_CHANNELS)[number]; export declare const DISTRIBUTION_KEY_PATTERN: RegExp; /** * Derive the durable caller intent for one distribution request. * * The route API requires an `intentId` and treats it as an idempotency key: * an exact retry returns the same distribution, while reusing one with * different input conflicts. Deriving it from the request itself gives that * property for free — re-running the same command cannot mint a second * identical route, which is the whole hazard of a duplicated listing — while a * genuinely different route hashes to a different id. * * The value is shaped as a v4 UUID because that is what the API validates. It * is derived, not random, so `--intent-id` remains available for a caller that * wants to retry across a changed request or force a distinct route. */ export declare function distributionIntentId(fields: ItemDistributionFields): string; export type ItemDistributionInput = { itemId?: string; /** Override the derived idempotency key; omit for the deterministic default. */ intentId?: string; channel: ItemDistributionChannel; priceLix: number; worldId?: string; worldSlug?: string; key?: string; maxPerPlayer?: number | null; maxClaims?: number | null; startsAt?: string | null; endsAt?: string | null; }; export type ItemDistributionFields = { intentId?: string; itemId?: string; channel: ItemDistributionChannel; priceLix: number; worldId?: string; /** Offline plan only; the CLI resolves it to worldId before a network write. */ worldSlug?: string; key?: string; maxPerPlayer?: number | null; maxClaims?: number | null; startsAt?: string | null; endsAt?: string | null; }; export type ItemDistributionUpdateInput = { priceLix?: number; maxPerPlayer?: number | null; maxClaims?: number | null; startsAt?: string | null; endsAt?: string | null; }; export type ItemDistributionPatch = ItemDistributionUpdateInput; export declare function buildItemDistribution(input: ItemDistributionInput): ItemDistributionFields; export declare function buildItemDistributionUpdate(input: ItemDistributionUpdateInput): ItemDistributionPatch; export declare function editionFields(collectibleSupply?: number): { editionMode: ItemEditionMode; collectibleSupply?: number; };