/** * Base HTTP request configuration. * Defines the HTTP method and optional body for platform data requests. * * @typeParam T - The type of the request body */ export interface PlatformRequest { method: 'POST' | 'PUT' | 'DELETE' | 'GET'; body?: T; isFormData?: boolean; } /** * Route-based request configuration. * Extends base request with a specific API route path. * * @typeParam T - The type of the request body * * @see requestPlatformData - Used for direct route-based API calls */ export interface PlatformRouteRequest extends PlatformRequest { route: string; } /** * Data-type based request configuration. * Extends base request with data type and ID for RESTful resource access. * * @typeParam T - The type of the request body * * @see requestPlatformData - Used for data-type based API calls */ export interface PlatformDataRequest extends PlatformRequest { dataType: string; dataId?: string; params?: Record; } /** * Union type for platform request body configurations. * Supports both route-based and data-type based request patterns. * * @typeParam T - The type of the request body * * @see requestPlatformData - SDK capability that accepts this type */ export type PlatformRequestBody = PlatformDataRequest | PlatformRouteRequest; /** * URL mapping entry for a single request category. * Maps request keys to URL strings or promises that resolve to URLs. */ export interface RequestURLMapEntry { [key: string]: string | Promise; } /** * Complete URL mapping configuration. * Organizes request URLs by category for platform request resolution. */ export interface RequestURLMap { [category: string]: RequestURLMapEntry; } //# sourceMappingURL=request.d.ts.map