| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567 |
- // OpenApi version 3.1.0
- // https://spec.openapis.org/oas/v3.1.0
- /**
- * Document object.
- * https://spec.openapis.org/oas/v3.1.0#openapi-object
- */
- export type OADocumentObject = {
- openapi: string;
- info: OAInfoObject;
- jsonSchemaDialect?: string;
- servers?: OAServerObject[];
- paths?: OAPathsObject;
- webhooks?: OAWebhooksObject;
- components?: OAComponentsObject;
- security?: OASecurityRequirementObject[];
- tags?: OATagObject[];
- externalDocs?: OAExternalDocumentationObject;
- };
- /**
- * Info Object.
- * https://spec.openapis.org/oas/v3.1.0#info-object
- */
- export type OAInfoObject = {
- title: string;
- summary?: string;
- description?: string;
- termsOfService?: string;
- contact?: OAContactObject;
- license?: OALicenseObject;
- version: string;
- };
- /**
- * Contact Object.
- * https://spec.openapis.org/oas/v3.1.0#contact-object
- */
- export type OAContactObject = {
- name?: string;
- url?: string;
- email?: string;
- };
- /**
- * License Object.
- * https://spec.openapis.org/oas/v3.1.0#license-object
- */
- export type OALicenseObject = {
- name: string;
- identifier?: string;
- url?: string;
- };
- /**
- * Server Object.
- * https://spec.openapis.org/oas/v3.1.0#server-object
- */
- export type OAServerObject = {
- url: string;
- description?: string;
- variables?: OAServerVariablesObject;
- };
- /**
- * Server variable object.
- * https://spec.openapis.org/oas/v3.1.0#server-variable-object
- */
- export type OAServerVariableObject = {
- enum?: string[];
- default: string;
- description?: string;
- };
- /**
- * Paths Object.
- * https://spec.openapis.org/oas/v3.1.0#paths-object
- */
- export type OAPathsObject = {
- [path: string]: OAPathItemObject | undefined;
- };
- /**
- * Path Item Object
- * https://spec.openapis.org/oas/v3.1.0#path-item-object
- */
- export type OAPathItemObject = {
- $ref?: string;
- summary?: string;
- description?: string;
- get?: OAOperationObject;
- put?: OAOperationObject;
- post?: OAOperationObject;
- delete?: OAOperationObject;
- options?: OAOperationObject;
- head?: OAOperationObject;
- patch?: OAOperationObject;
- trace?: OAOperationObject;
- servers?: OAServerObject[];
- parameters?: (OAParameterObject | OAReferenceObject)[];
- };
- /**
- * Operation Method.
- * https://spec.openapis.org/oas/v3.1.0#path-item-object
- */
- export declare const OAOperationMethod: {
- GET: 'get';
- PUT: 'put';
- POST: 'post';
- DELETE: 'delete';
- OPTIONS: 'options';
- HEAD: 'head';
- PATCH: 'patch';
- TRACE: 'trace';
- };
- export type OAOperationMethod =
- (typeof OAOperationMethod)[keyof typeof OAOperationMethod];
- /**
- * Parameter Object.
- * https://spec.openapis.org/oas/v3.1.0#parameter-object
- */
- export type OAParameterObject = {
- name: string;
- in: OAParameterLocation;
- description?: string;
- required?: boolean;
- deprecated?: boolean;
- allowEmptyValue?: boolean;
- style?: OAParameterStyle;
- explode?: boolean;
- allowReserved?: boolean;
- schema?: OASchemaObject;
- content?: OAContentObject;
- };
- /**
- * Parameter Location.
- * https://spec.openapis.org/oas/v3.1.0#parameter-locations
- */
- export declare const OAParameterLocation: {
- QUERY: 'query';
- HEADER: 'header';
- PATH: 'path';
- COOKIE: 'cookie';
- };
- export type OAParameterLocation =
- (typeof OAParameterLocation)[keyof typeof OAParameterLocation];
- /**
- * Parameter Style.
- * https://spec.openapis.org/oas/v3.1.0#style-values
- */
- export declare const OAParameterStyle: {
- MATRIX: 'matrix';
- LABEL: 'label';
- FORM: 'form';
- SIMPLE: 'simple';
- SPACE_DELIMITED: 'spaceDelimited';
- PIPE_DELIMITED: 'pipeDelimited';
- DEEP_OBJECT: 'deepObject';
- };
- export type OAParameterStyle =
- (typeof OAParameterStyle)[keyof typeof OAParameterStyle];
- /**
- * Reference Object.
- * https://spec.openapis.org/oas/v3.1.0#reference-object
- */
- export type OAReferenceObject = {
- $ref: string;
- summary?: string;
- description?: string;
- };
- /**
- * Schema Object.
- * https://spec.openapis.org/oas/v3.1.0#schema-object
- */
- export type OASchemaObject = {
- type?: OADataType | OADataType[];
- format?: OADataFormat | string;
- items?: OASchemaObject | OAReferenceObject;
- required?: string[];
- minimum?: number;
- maximum?: number;
- default?: unknown;
- properties?: OASchemaPropertiesObject;
- discriminator?: OADiscriminatorObject;
- xml?: OAXmlObject;
- externalDocs?: OAExternalDocumentationObject;
- };
- /**
- * Data type.
- * https://datatracker.ietf.org/doc/html/draft-bhutton-json-schema-00#section-4.2.1
- */
- export declare const OADataType: {
- STRING: 'string';
- NUMBER: 'number';
- INTEGER: 'integer';
- BOOLEAN: 'boolean';
- OBJECT: 'object';
- ARRAY: 'array';
- NULL: 'null';
- };
- export type OADataType = (typeof OADataType)[keyof typeof OADataType];
- /**
- * Data format.
- * https://spec.openapis.org/oas/v3.1.0#dataTypeFormat
- */
- export declare const OADataFormat: {
- INT32: 'int32';
- INT64: 'int64';
- FLOAT: 'float';
- DOUBLE: 'double';
- PASSWORD: 'password';
- BINARY: 'binary';
- };
- export type OADataFormat = (typeof OADataFormat)[keyof typeof OADataFormat];
- /**
- * Discriminator Object.
- * https://spec.openapis.org/oas/v3.1.0#discriminator-object
- */
- export type OADiscriminatorObject = {
- propertyName: string;
- mapping?: {[name: string]: string | undefined};
- };
- /**
- * Xml Object.
- * https://spec.openapis.org/oas/v3.1.0#xml-object
- */
- export type OAXmlObject = {
- name?: string;
- namespace?: string;
- prefix?: string;
- attribute?: boolean;
- wrapped?: boolean;
- };
- /**
- * External Documentation Object.
- * https://spec.openapis.org/oas/v3.1.0#external-documentation-object
- */
- export type OAExternalDocumentationObject = {
- description?: string;
- url: string;
- };
- /**
- * Operation Object.
- * https://spec.openapis.org/oas/v3.1.0#operation-object
- */
- export type OAOperationObject = {
- tags?: string[];
- summary?: string;
- description?: string;
- externalDocs?: OAExternalDocumentationObject;
- operationId?: string;
- parameters?: (OAParameterObject | OAReferenceObject)[];
- requestBody?: OARequestBodyObject | OAReferenceObject;
- responses?: OAResponsesObject;
- callbacks?: OACallbacksObject;
- };
- /**
- * Callback Object.
- * https://spec.openapis.org/oas/v3.1.0#callback-object
- */
- export type OACallbackObject = {
- [expression: string]: OAPathItemObject | OAReferenceObject | undefined;
- };
- /**
- * Request Body Object.
- * https://spec.openapis.org/oas/v3.1.0#request-body-object
- */
- export type OARequestBodyObject = {
- description?: string;
- content: OAContentObject;
- required?: boolean;
- };
- /**
- * Media type.
- * https://spec.openapis.org/oas/v3.1.0#media-types
- */
- export declare const OAMediaType: {
- TEXT_PLAIN: 'text/plain';
- TEXT_HTML: 'text/html';
- APPLICATION_XML: 'application/xml';
- APPLICATION_JSON: 'application/json';
- MULTIPART_FORM_DATA: 'multipart/form-data';
- };
- export type OAMediaType = (typeof OAMediaType)[keyof typeof OAMediaType];
- /**
- * Responses Object.
- * https://spec.openapis.org/oas/v3.1.0#responses-object
- */
- export type OAResponsesObject = {
- [httpStatusCode: string]: OAResponseObject | OAReferenceObject | undefined;
- };
- /**
- * Response Object.
- * https://spec.openapis.org/oas/v3.1.0#response-object
- */
- export type OAResponseObject = {
- description: string;
- headers?: OAHeadersObject;
- content?: OAContentObject;
- links?: OALinksObject;
- };
- /**
- * Media Type Object.
- * https://spec.openapis.org/oas/v3.1.0#media-type-object
- */
- export type OAMediaTypeObject = {
- schema?: OASchemaObject;
- example?: unknown;
- examples?: OAExamplesObject;
- encoding?: OAPropertiesEncodingObject;
- };
- /**
- * Example Object.
- * https://spec.openapis.org/oas/v3.1.0#example-object
- */
- export type OAExampleObject = {
- summary?: string;
- description?: string;
- value?: unknown;
- externalValue?: string;
- };
- /**
- * Encoding Object.
- * https://spec.openapis.org/oas/v3.1.0#encoding-object
- */
- export type OAEncodingObject = {
- contentType?: string;
- headers?: OAHeadersObject;
- style?: OAParameterStyle;
- explode?: boolean;
- allowReserved?: boolean;
- };
- /**
- * Header Object.
- * https://spec.openapis.org/oas/v3.1.0#header-object
- */
- export type OAHeaderObject = Omit<OAParameterObject, 'name' | 'in'>;
- /**
- * Link Object.
- * https://spec.openapis.org/oas/v3.1.0#link-object
- */
- export type OALinkObject = {
- operationRef?: string;
- operationId?: string;
- parameters?: {[name: string]: unknown | undefined};
- requestBody?: unknown;
- description?: string;
- server?: OAServerObject;
- };
- /**
- * Components Object.
- * https://spec.openapis.org/oas/v3.1.0#components-object
- */
- export type OAComponentsObject = {
- schemas?: {[name: string]: OASchemaObject | undefined};
- responses?: {
- [name: string]: OAResponseObject | OAReferenceObject | undefined;
- };
- parameters?: {
- [name: string]: OAParameterObject | OAReferenceObject | undefined;
- };
- examples?: {
- [name: string]: OAExampleObject | OAReferenceObject | undefined;
- };
- requestBodies?: {
- [name: string]: OARequestBodyObject | OAReferenceObject | undefined;
- };
- headers?: {
- [name: string]: OAHeaderObject | OAReferenceObject | undefined;
- };
- securitySchemes?: {
- [name: string]: OASecuritySchemeObject | OAReferenceObject | undefined;
- };
- links?: {
- [name: string]: OALinkObject | OAReferenceObject | undefined;
- };
- callbacks?: {
- [name: string]: OACallbackObject | OAReferenceObject | undefined;
- };
- pathItems?: {
- [name: string]: OAPathItemObject | OAReferenceObject | undefined;
- };
- };
- /**
- * Security Scheme Object.
- * https://spec.openapis.org/oas/v3.1.0#security-scheme-object
- */
- export type OASecuritySchemeObject = {
- type: OASecuritySchemeType;
- description?: string;
- name?: string;
- in?: OAApiKeyLocation;
- scheme?: string;
- bearerFormat?: string;
- flows?: OAOAuthFlowsObject;
- openIdConnectUrl?: string;
- };
- /**
- * Security Scheme Type.
- * https://spec.openapis.org/oas/v3.1.0#security-scheme-object
- */
- export declare const OASecuritySchemeType: {
- API_KEY: 'apiKey';
- HTTP: 'http';
- MUTUAL_TLS: 'mutualTLS';
- OAUTH_2: 'oauth2';
- OPEN_ID_CONNECT: 'openIdConnect';
- };
- export type OASecuritySchemeType =
- (typeof OASecuritySchemeType)[keyof typeof OASecuritySchemeType];
- /**
- * Api Key Location.
- * https://spec.openapis.org/oas/v3.1.0#security-scheme-object
- */
- export declare const OAApiKeyLocation: {
- QUERY: 'query';
- HEADER: 'header';
- COOKIE: 'cookie';
- };
- export type OAApiKeyLocation =
- (typeof OAApiKeyLocation)[keyof typeof OAApiKeyLocation];
- /**
- * OAuth Flows Object.
- * https://spec.openapis.org/oas/v3.1.0#oauth-flows-object
- */
- export type OAOAuthFlowsObject = {
- implicit?: OAOAuthFlowObject;
- password?: OAOAuthFlowObject;
- clientCredentials?: OAOAuthFlowObject;
- authorizationCode?: OAOAuthFlowObject;
- };
- /**
- * OAuth Flow Object.
- * https://spec.openapis.org/oas/v3.1.0#oauth-flow-object
- */
- export type OAOAuthFlowObject = {
- authorizationUrl: string;
- tokenUrl: string;
- refreshUrl?: string;
- scopes: {[name: string]: string | undefined};
- };
- /**
- * Security Requirement Object.
- * https://spec.openapis.org/oas/v3.1.0#security-requirement-object
- */
- export type OASecurityRequirementObject = {
- [name: string]: string[] | undefined;
- };
- /**
- * Tag object.
- * https://spec.openapis.org/oas/v3.1.0#tag-object
- */
- export type OATagObject = {
- name: string;
- description?: string;
- externalDocs?: OAExternalDocumentationObject;
- };
- /**
- * Server Variables Object.
- * (non-spec type)
- */
- export type OAServerVariablesObject = {
- [name: string]: OAServerVariableObject | undefined;
- };
- /**
- * Schema Properties Object.
- * (non-spec type)
- */
- export type OASchemaPropertiesObject = {
- [name: string]: OASchemaObject | OAReferenceObject | undefined;
- };
- /**
- * Webhooks Object.
- * (non-spec type)
- */
- export type OAWebhooksObject = {
- [name: string]: OAPathItemObject | OAReferenceObject | undefined;
- };
- /**
- * Callbacks Object.
- * (non-spec type)
- */
- export type OACallbacksObject = {
- [key: string]: OACallbackObject | OAReferenceObject | undefined;
- };
- /**
- * Content Object.
- * (non-spec type)
- */
- export type OAContentObject = {
- [mediaType: string]: OAMediaTypeObject | undefined;
- };
- /**
- * Headers Object.
- * (non-spec type)
- */
- export type OAHeadersObject = {
- [name: string]: OAHeaderObject | OAReferenceObject | undefined;
- };
- /**
- * Links Object.
- * (non-spec type)
- */
- export type OALinksObject = {
- [name: string]: OALinkObject | OAReferenceObject | undefined;
- };
- /**
- * Examples Object.
- * (non-spec type)
- */
- export type OAExamplesObject = {
- [name: string]: OAExampleObject | OAReferenceObject | undefined;
- };
- /**
- * Properties Encoding Object.
- * (non-spec type)
- */
- export type OAPropertiesEncodingObject = {
- [propertyName: string]: OAEncodingObject | undefined;
- };
|