Commit f36b8be0 authored by Grant's avatar Grant
Browse files

remove openapi.d.ts from git

parent e4b5effb
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -32,3 +32,6 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json

# Finder (MacOS) folder config
.DS_Store

# dynamicly generated files
src/types/openapi.d.ts
 No newline at end of file

src/types/openapi.d.ts

deleted100644 → 0
+0 −208
Original line number Diff line number Diff line
/**
 * This file was auto-generated by openapi-typescript.
 * Do not make direct changes to the file.
 */

export interface paths {
    "/auth": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /**
         * Get authentication details
         * @description Get the details for automatic authentication on third-party clients
         *
         *     1. Fetch this endpoint (res)
         *     2. Send a direct message to `res.account` containing the content of `res.message_template` (replacing the placeholder(s))
         *     3. Wait for a direct message originating from `res.account` and open the link that gets sent (the message won't contain just the link, the message may contain other text)
         *
         */
        get: operations["get-auth"];
        put?: never;
        post?: never;
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
    "/events": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /** Get all events */
        get: operations["get-all-events"];
        put?: never;
        post?: never;
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
    "/events/{id}": {
        parameters: {
            query?: never;
            header?: never;
            path: {
                /** @description Event ID */
                id: string;
            };
            cookie?: never;
        };
        /** Get event by ID */
        get: operations["get-event-by-id"];
        put?: never;
        post?: never;
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
}
export type webhooks = Record<string, never>;
export interface components {
    schemas: {
        URLWithMime: {
            /** @description Mime type */
            type: string;
            /** Format: url */
            url: string;
        };
        EventEndpoints: {
            /**
             * Format: url
             * @description URL to open the event
             */
            open?: string | null;
            /**
             * Format: url
             * @description URL for more information
             */
            more_info?: string | null;
        };
        Event: {
            id: string;
            name: string;
            /** Format: date-time */
            start: string;
            /** Format: date-time */
            end?: string | null;
            /** @description Logos sorted by priority */
            logos: components["schemas"]["URLWithMime"][];
            endpoints: components["schemas"]["EventEndpoints"];
        };
    };
    responses: never;
    parameters: never;
    requestBodies: never;
    headers: never;
    pathItems: never;
}
export type $defs = Record<string, never>;
export interface operations {
    "get-auth": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description Successful */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        /** @enum {string} */
                        method: "dm";
                        /**
                         * @description The account handle the message will be sent to
                         * @example grant@toast.ooo
                         */
                        account: string;
                        /**
                         * @description The message that should be sent to the account
                         *     * `{software}` should be replaced with your software's name
                         *
                         * @example I am requesting a login code
                         *     EXAMPLE-CODE
                         *     Sent by {software}
                         *
                         */
                        message_template: string;
                    };
                };
            };
            /** @description Automated authentication is not supported */
            404: {
                headers: {
                    [name: string]: unknown;
                };
                content?: never;
            };
        };
    };
    "get-all-events": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description Successful */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        events: components["schemas"]["Event"][];
                    };
                };
            };
        };
    };
    "get-event-by-id": {
        parameters: {
            query?: never;
            header?: never;
            path: {
                /** @description Event ID */
                id: string;
            };
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description Successful */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": components["schemas"]["Event"];
                };
            };
            /** @description Event not found */
            404: {
                headers: {
                    [name: string]: unknown;
                };
                content?: never;
            };
        };
    };
}