forked from asyncapi/parser-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
asyncapi.ts
34 lines (31 loc) · 1.33 KB
/
asyncapi.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import type { BaseModel } from './base';
import type { InfoInterface } from './info';
import type { ChannelsInterface } from './channels';
import type { ComponentsInterface } from './components';
import type { MessagesInterface } from './messages';
import type { ExtensionsMixinInterface } from './mixins';
import type { OperationsInterface } from './operations';
import type { SchemasInterface } from './schemas';
import type { SecuritySchemesInterface } from './security-schemes';
import type { ServersInterface } from './servers';
import type { v2, v3 } from '../spec-types';
// https://github.com/asyncapi/parser-api/releases/tag/v3.0.0
export const ParserAPIVersion = 3;
export interface AsyncAPIDocumentInterface extends BaseModel<v2.AsyncAPIObject | v3.AsyncAPIObject>, ExtensionsMixinInterface {
version(): string;
defaultContentType(): string | undefined;
hasDefaultContentType(): boolean;
info(): InfoInterface;
servers(): ServersInterface;
channels(): ChannelsInterface;
operations(): OperationsInterface;
messages(): MessagesInterface;
schemas(): SchemasInterface;
securitySchemes(): SecuritySchemesInterface;
components(): ComponentsInterface;
allServers(): ServersInterface;
allChannels(): ChannelsInterface;
allOperations(): OperationsInterface;
allMessages(): MessagesInterface;
allSchemas(): SchemasInterface;
}