UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

31 lines 1.36 kB
import { type Metadata } from "../../common/Metadata.js"; /** Copyright Super iPaaS Integration LLC, an IBM Company 2024 */ /** The CORS related information is captured in the message CORS */ export interface CORS { kind?: string | undefined; apiVersion?: string | undefined; /** common metadata to identify a specific asset in the files */ metadata?: Metadata | undefined; kindEnums?: CORS_KindEnums | undefined; spec?: CORS_Spec | undefined; } /** Kind id supported for CORS */ export declare enum CORS_KindEnums { CORS = "CORS" } /** The Spec is used to define the list of allowed origins, headers, exposed headers, allows credentials, methods and maximum age */ export interface CORS_Spec { /** Multiple instances of allowed origins can be given */ allowedOrigins?: string[] | undefined; /** Multiple instances of allowed headers can be given */ allowedHeaders?: string[] | undefined; /** Multiple instances of exposed headers can be given */ exposedHeaders?: string[] | undefined; /** Credential can be allowed or not allowed */ allowCredentials?: boolean | undefined; /** Multiple instances allowed methods can be given */ allowedMethods?: string[] | undefined; /** Single instance of maximum age can be given */ maxAge?: number | undefined; } //# sourceMappingURL=CORS.d.ts.map