/**
 * This file was auto-generated by openapi-typescript.
 * Do not make direct changes to the file.
 */

export interface paths {
    "/api/content/views": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /**
         * Get views
         * @description Returns a paginated list of views accessible to the user.
         */
        get: operations["getViews"];
        put?: never;
        /**
         * Create a view
         * @description Creates a new view with the given filters and metadata.
         */
        post: operations["createView"];
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
    "/api/content/view/share": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        get?: never;
        put?: never;
        /**
         * Share a view by email
         * @description Shares a view with a list of email addresses. When `share` is true, the
         *     view's visibility is flipped to public and an invitation email is sent
         *     to each recipient. When `share` is false, visibility is reverted to
         *     private. Only the owner of the view (or a provider admin) may change
         *     its sharing mode.
         */
        post: operations["shareView"];
        delete?: never;
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
    "/api/content/views/{viewId}": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /**
         * Get a view by ID
         * @description Returns a single view by its unique identifier.
         */
        get: operations["getViewById"];
        /**
         * Update a view
         * @description Updates an existing view with new filters, metadata, or visibility.
         */
        put: operations["updateView"];
        post?: never;
        /**
         * Delete a view
         * @description Soft-deletes a view by its unique identifier.
         */
        delete: operations["deleteView"];
        options?: never;
        head?: never;
        patch?: never;
        trace?: never;
    };
}
export type webhooks = Record<string, never>;
export interface components {
    schemas: {
        /**
         * MesheryView
         * @description A saved view with filters and metadata that defines a customized perspective of Meshery resources. Learn more at https://docs.meshery.io/concepts/logical/views
         * @example {
         *       "id": "00000000-0000-0000-0000-000000000000",
         *       "name": "My Kubernetes View",
         *       "visibility": "private",
         *       "filters": {},
         *       "metadata": {},
         *       "userId": "00000000-0000-0000-0000-000000000000",
         *       "createdAt": "0001-01-01T00:00:00Z",
         *       "updatedAt": "0001-01-01T00:00:00Z",
         *       "deletedAt": null
         *     }
         */
        MesheryView: {
            /**
             * Format: uuid
             * @description Unique identifier for the view.
             */
            id: string;
            /** @description Display name of the view. */
            name: string;
            /** @description Visibility level of the view. */
            visibility: string;
            /** @description Filter configuration that defines which resources this view displays. */
            filters?: Record<string, never>;
            /** @description Additional metadata associated with the view. */
            metadata?: Record<string, never>;
            /**
             * Format: uuid
             * @description ID of the user who created the view.
             */
            userId: string;
            /**
             * Format: date-time
             * @description Timestamp when the view was created.
             */
            createdAt: string;
            /**
             * Format: date-time
             * @description Timestamp when the view was last updated.
             */
            updatedAt: string;
            /**
             * Format: date-time
             * @description Timestamp when the view was soft deleted. Null while the view remains active.
             */
            deletedAt?: string | null;
        };
        /** @description A view enriched with the workspace and organization it belongs to. */
        MesheryViewWithLocation: {
            /** Format: uuid */
            id?: string;
            /** @description Display name of the view. */
            name?: string;
            /** @description Visibility level of the view. */
            visibility?: string;
            /** @description Filter configuration for this view. */
            filters?: Record<string, never>;
            /** @description Metadata associated with the view. */
            metadata?: Record<string, never>;
            /**
             * Format: uuid
             * @description ID of the user who created the view.
             */
            userId?: string;
            /** @description Name of the workspace this view belongs to. */
            workspaceName?: string;
            /**
             * Format: uuid
             * @description ID of the workspace this view belongs to.
             */
            workspaceId: string;
            /**
             * Format: uuid
             * @description ID of the organization this view belongs to.
             */
            organizationId: string;
            /** @description Name of the organization this view belongs to. */
            organizationName?: string;
            /**
             * Format: date-time
             * @description Timestamp when the view was created.
             */
            createdAt?: string;
            /**
             * Format: date-time
             * @description Timestamp when the view was last updated.
             */
            updatedAt?: string;
            /**
             * Format: date-time
             * @description Timestamp when the view was soft deleted. Null while the view remains active.
             */
            deletedAt?: string | null;
        };
        /** @description Payload for creating or updating a view. */
        ViewPayload: {
            /** @description Display name of the view. */
            name: string;
            /** @description Filter configuration for this view. */
            filters?: Record<string, never>;
            /** @description Visibility level of the view. */
            visibility?: string;
            /** @description Metadata associated with the view. */
            metadata?: Record<string, never>;
        };
        /**
         * @description Payload for sharing a view with one or more recipients by email. The
         *     wire format matches the canonical design share payload
         *     (`design.ContentSharePayload` in `v1beta2/design`), restricted to the
         *     `view` content type since that is all this endpoint accepts.
         */
        ContentSharePayload: {
            /**
             * Format: uuid
             * @description Identifier of the view being shared.
             */
            contentId: string;
            /**
             * @description The kind of content being shared. Only `view` is accepted on this
             *     endpoint.
             * @enum {string}
             */
            contentType: "view";
            /** @description Email addresses of the recipients to share this view with. */
            emails: string[];
            /**
             * @description When true, flip the view's visibility to public and send invitation
             *     emails to the recipients. When false, revert visibility to private.
             */
            share: boolean;
        };
        /** @description Paginated list of views with location enrichment. */
        MesheryViewPage: {
            /** @description Zero-based page index returned in this response. */
            page?: number;
            /** @description Maximum number of items returned on each page. */
            pageSize?: number;
            /** @description Total number of items across all pages. */
            totalCount?: number;
            /** @description Views in this page, enriched with workspace and organization context. */
            views?: {
                /** Format: uuid */
                id?: string;
                /** @description Display name of the view. */
                name?: string;
                /** @description Visibility level of the view. */
                visibility?: string;
                /** @description Filter configuration for this view. */
                filters?: Record<string, never>;
                /** @description Metadata associated with the view. */
                metadata?: Record<string, never>;
                /**
                 * Format: uuid
                 * @description ID of the user who created the view.
                 */
                userId?: string;
                /** @description Name of the workspace this view belongs to. */
                workspaceName?: string;
                /**
                 * Format: uuid
                 * @description ID of the workspace this view belongs to.
                 */
                workspaceId: string;
                /**
                 * Format: uuid
                 * @description ID of the organization this view belongs to.
                 */
                organizationId: string;
                /** @description Name of the organization this view belongs to. */
                organizationName?: string;
                /**
                 * Format: date-time
                 * @description Timestamp when the view was created.
                 */
                createdAt?: string;
                /**
                 * Format: date-time
                 * @description Timestamp when the view was last updated.
                 */
                updatedAt?: string;
                /**
                 * Format: date-time
                 * @description Timestamp when the view was soft deleted. Null while the view remains active.
                 */
                deletedAt?: string | null;
            }[];
        };
    };
    responses: {
        /** @description ok */
        200: {
            headers: {
                [name: string]: unknown;
            };
            content: {
                "text/plain": string;
            };
        };
        /** @description Invalid request body or request param */
        400: {
            headers: {
                [name: string]: unknown;
            };
            content: {
                "text/plain": string;
            };
        };
        /** @description Expired JWT token used or insufficient privilege */
        401: {
            headers: {
                [name: string]: unknown;
            };
            content: {
                "text/plain": string;
            };
        };
        /** @description Result not found */
        404: {
            headers: {
                [name: string]: unknown;
            };
            content: {
                "text/plain": string;
            };
        };
        /** @description Internal server error */
        500: {
            headers: {
                [name: string]: unknown;
            };
            content: {
                "text/plain": string;
            };
        };
    };
    parameters: {
        /** @description View ID */
        viewId: string;
        /** @description Get responses that match search param value */
        search: string;
        /** @description Get ordered responses */
        order: string;
        /** @description Get responses by page */
        page: number;
        /** @description Number of responses to return per page. Canonical camelCase pagination parameter; prefer this over the deprecated all-lowercase `pagesize`. */
        pageSize: number;
        /**
         * @deprecated
         * @description Get responses by pagesize. Deprecated alias of pageSize.
         */
        pagesize: number;
        /** @description Organization ID to scope the request. */
        orgIdQuery: string;
        /** @description UUID of the user whose views to retrieve. */
        userIdQuery: string;
    };
    requestBodies: {
        /** @description Body for creating or updating a view */
        viewPayload: {
            content: {
                "application/json": {
                    /** @description Display name of the view. */
                    name: string;
                    /** @description Filter configuration for this view. */
                    filters?: Record<string, never>;
                    /** @description Visibility level of the view. */
                    visibility?: string;
                    /** @description Metadata associated with the view. */
                    metadata?: Record<string, never>;
                };
            };
        };
        /** @description Body for sharing a view with recipients by email. */
        contentSharePayload: {
            content: {
                "application/json": {
                    /**
                     * Format: uuid
                     * @description Identifier of the view being shared.
                     */
                    contentId: string;
                    /**
                     * @description The kind of content being shared. Only `view` is accepted on this
                     *     endpoint.
                     * @enum {string}
                     */
                    contentType: "view";
                    /** @description Email addresses of the recipients to share this view with. */
                    emails: string[];
                    /**
                     * @description When true, flip the view's visibility to public and send invitation
                     *     emails to the recipients. When false, revert visibility to private.
                     */
                    share: boolean;
                };
            };
        };
    };
    headers: never;
    pathItems: never;
}
export type $defs = Record<string, never>;
export interface operations {
    getViews: {
        parameters: {
            query?: {
                /** @description Get responses that match search param value */
                search?: string;
                /** @description Get ordered responses */
                order?: string;
                /** @description Get responses by page */
                page?: number;
                /** @description Number of responses to return per page. Canonical camelCase pagination parameter; prefer this over the deprecated all-lowercase `pagesize`. */
                pageSize?: number;
                /**
                 * @deprecated
                 * @description Get responses by pagesize. Deprecated alias of pageSize.
                 */
                pagesize?: number;
                /** @description JSON-encoded filter string for assignment and soft-delete filters. */
                filter?: string;
                /** @description When true, include views shared with the user. */
                shared?: boolean;
                /** @description Filter by visibility level (public, private). */
                visibility?: string;
                /** @description Organization ID to scope the request. */
                orgId?: string;
                /** @description UUID of the user whose views to retrieve. */
                userId?: string;
            };
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description Views page */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        /** @description Zero-based page index returned in this response. */
                        page?: number;
                        /** @description Maximum number of items returned on each page. */
                        pageSize?: number;
                        /** @description Total number of items across all pages. */
                        totalCount?: number;
                        /** @description Views in this page, enriched with workspace and organization context. */
                        views?: {
                            /** Format: uuid */
                            id?: string;
                            /** @description Display name of the view. */
                            name?: string;
                            /** @description Visibility level of the view. */
                            visibility?: string;
                            /** @description Filter configuration for this view. */
                            filters?: Record<string, never>;
                            /** @description Metadata associated with the view. */
                            metadata?: Record<string, never>;
                            /**
                             * Format: uuid
                             * @description ID of the user who created the view.
                             */
                            userId?: string;
                            /** @description Name of the workspace this view belongs to. */
                            workspaceName?: string;
                            /**
                             * Format: uuid
                             * @description ID of the workspace this view belongs to.
                             */
                            workspaceId: string;
                            /**
                             * Format: uuid
                             * @description ID of the organization this view belongs to.
                             */
                            organizationId: string;
                            /** @description Name of the organization this view belongs to. */
                            organizationName?: string;
                            /**
                             * Format: date-time
                             * @description Timestamp when the view was created.
                             */
                            createdAt?: string;
                            /**
                             * Format: date-time
                             * @description Timestamp when the view was last updated.
                             */
                            updatedAt?: string;
                            /**
                             * Format: date-time
                             * @description Timestamp when the view was soft deleted. Null while the view remains active.
                             */
                            deletedAt?: string | null;
                        }[];
                    };
                };
            };
            /** @description Expired JWT token used or insufficient privilege */
            401: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Internal server error */
            500: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
        };
    };
    createView: {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /** @description Body for creating or updating a view */
        requestBody: {
            content: {
                "application/json": {
                    /** @description Display name of the view. */
                    name: string;
                    /** @description Filter configuration for this view. */
                    filters?: Record<string, never>;
                    /** @description Visibility level of the view. */
                    visibility?: string;
                    /** @description Metadata associated with the view. */
                    metadata?: Record<string, never>;
                };
            };
        };
        responses: {
            /** @description Created view */
            201: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        /**
                         * Format: uuid
                         * @description Unique identifier for the view.
                         */
                        id: string;
                        /** @description Display name of the view. */
                        name: string;
                        /** @description Visibility level of the view. */
                        visibility: string;
                        /** @description Filter configuration that defines which resources this view displays. */
                        filters?: Record<string, never>;
                        /** @description Additional metadata associated with the view. */
                        metadata?: Record<string, never>;
                        /**
                         * Format: uuid
                         * @description ID of the user who created the view.
                         */
                        userId: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was created.
                         */
                        createdAt: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was last updated.
                         */
                        updatedAt: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was soft deleted. Null while the view remains active.
                         */
                        deletedAt?: string | null;
                    };
                };
            };
            /** @description Invalid request body or request param */
            400: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Expired JWT token used or insufficient privilege */
            401: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Internal server error */
            500: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
        };
    };
    shareView: {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        /** @description Body for sharing a view with recipients by email. */
        requestBody: {
            content: {
                "application/json": {
                    /**
                     * Format: uuid
                     * @description Identifier of the view being shared.
                     */
                    contentId: string;
                    /**
                     * @description The kind of content being shared. Only `view` is accepted on this
                     *     endpoint.
                     * @enum {string}
                     */
                    contentType: "view";
                    /** @description Email addresses of the recipients to share this view with. */
                    emails: string[];
                    /**
                     * @description When true, flip the view's visibility to public and send invitation
                     *     emails to the recipients. When false, revert visibility to private.
                     */
                    share: boolean;
                };
            };
        };
        responses: {
            /** @description View shared. */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content?: never;
            };
            /** @description Invalid request body or request param */
            400: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Expired JWT token used or insufficient privilege */
            401: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Caller is not the owner of the view. */
            403: {
                headers: {
                    [name: string]: unknown;
                };
                content?: never;
            };
            /** @description Result not found */
            404: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Internal server error */
            500: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
        };
    };
    getViewById: {
        parameters: {
            query?: never;
            header?: never;
            path: {
                /** @description View ID */
                viewId: string;
            };
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description View */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        /**
                         * Format: uuid
                         * @description Unique identifier for the view.
                         */
                        id: string;
                        /** @description Display name of the view. */
                        name: string;
                        /** @description Visibility level of the view. */
                        visibility: string;
                        /** @description Filter configuration that defines which resources this view displays. */
                        filters?: Record<string, never>;
                        /** @description Additional metadata associated with the view. */
                        metadata?: Record<string, never>;
                        /**
                         * Format: uuid
                         * @description ID of the user who created the view.
                         */
                        userId: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was created.
                         */
                        createdAt: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was last updated.
                         */
                        updatedAt: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was soft deleted. Null while the view remains active.
                         */
                        deletedAt?: string | null;
                    };
                };
            };
            /** @description Invalid request body or request param */
            400: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Expired JWT token used or insufficient privilege */
            401: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Result not found */
            404: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Internal server error */
            500: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
        };
    };
    updateView: {
        parameters: {
            query?: never;
            header?: never;
            path: {
                /** @description View ID */
                viewId: string;
            };
            cookie?: never;
        };
        /** @description Body for creating or updating a view */
        requestBody: {
            content: {
                "application/json": {
                    /** @description Display name of the view. */
                    name: string;
                    /** @description Filter configuration for this view. */
                    filters?: Record<string, never>;
                    /** @description Visibility level of the view. */
                    visibility?: string;
                    /** @description Metadata associated with the view. */
                    metadata?: Record<string, never>;
                };
            };
        };
        responses: {
            /** @description Updated view */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        /**
                         * Format: uuid
                         * @description Unique identifier for the view.
                         */
                        id: string;
                        /** @description Display name of the view. */
                        name: string;
                        /** @description Visibility level of the view. */
                        visibility: string;
                        /** @description Filter configuration that defines which resources this view displays. */
                        filters?: Record<string, never>;
                        /** @description Additional metadata associated with the view. */
                        metadata?: Record<string, never>;
                        /**
                         * Format: uuid
                         * @description ID of the user who created the view.
                         */
                        userId: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was created.
                         */
                        createdAt: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was last updated.
                         */
                        updatedAt: string;
                        /**
                         * Format: date-time
                         * @description Timestamp when the view was soft deleted. Null while the view remains active.
                         */
                        deletedAt?: string | null;
                    };
                };
            };
            /** @description Invalid request body or request param */
            400: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Expired JWT token used or insufficient privilege */
            401: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Result not found */
            404: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Internal server error */
            500: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
        };
    };
    deleteView: {
        parameters: {
            query?: never;
            header?: never;
            path: {
                /** @description View ID */
                viewId: string;
            };
            cookie?: never;
        };
        requestBody?: never;
        responses: {
            /** @description View deleted */
            204: {
                headers: {
                    [name: string]: unknown;
                };
                content?: never;
            };
            /** @description Invalid request body or request param */
            400: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Expired JWT token used or insufficient privilege */
            401: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Result not found */
            404: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
            /** @description Internal server error */
            500: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "text/plain": string;
                };
            };
        };
    };
}
