• Parameters

    • baseUrl: string
    • Optionaloptions: ZodiosOptions

    Returns ZodiosInstance<
        [
            {
                alias: "list-collections";
                description: "List collections.";
                method: "get";
                path: "/collections/";
                requestFormat: "json";
                response: ZodObject<
                    {
                        data: ZodObject<
                            {
                                columns: ZodArray<
                                    ZodObject<
                                        {
                                            col: ZodString;
                                            data_type: ZodEnum<(...)>;
                                            nullable: ZodBoolean;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            { col: ...; data_type: ...; nullable: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            { col: ...; data_type: ...; nullable: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >,
                                >;
                                result: ZodObject<
                                    {
                                        code: ZodOptional<ZodNumber>;
                                        databases: ZodOptional<ZodArray<(...)>>;
                                        end_ms: ZodOptional<ZodNumber>;
                                        latency: ZodOptional<ZodString>;
                                        limit: ZodOptional<ZodNumber>;
                                        message: ZodOptional<ZodString>;
                                        row_affect: ZodOptional<ZodNumber>;
                                        row_count: ZodOptional<ZodNumber>;
                                        start_ms: ZodOptional<ZodNumber>;
                                    },
                                    "passthrough",
                                    objectOutputType<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        ZodTypeAny,
                                        "passthrough",
                                    >,
                                    objectInputType<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        ZodTypeAny,
                                        "passthrough",
                                    >,
                                >;
                                rows: ZodArray<
                                    ZodObject<
                                        { repo_id: ZodOptional<(...)>; repo_name: ZodOptional<(...)> },
                                        "passthrough",
                                        objectOutputType<
                                            { repo_id: ...; repo_name: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            { repo_id: ...; repo_name: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >,
                                >;
                            },
                            "passthrough",
                            objectOutputType<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            { repo_id: ...; repo_name: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            { repo_id: ...; repo_name: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >;
                        type: ZodLiteral<"sql_endpoint">;
                    },
                    "passthrough",
                    objectOutputType<
                        {
                            data: ZodObject<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            { repo_id: ...; repo_name: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                objectOutputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >;
                            type: ZodLiteral<"sql_endpoint">;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >,
                    objectInputType<
                        {
                            data: ZodObject<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            { repo_id: ...; repo_name: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                objectOutputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >;
                            type: ZodLiteral<"sql_endpoint">;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >,
                >;
            },
            {
                alias: "collection-repo-ranking-by-issues";
                description: "Rank the GitHub repositories in the specified collection according to the number of issues.";
                method: "get";
                parameters: [
                    {
                        name: "period";
                        schema: ZodDefault<
                            ZodOptional<ZodEnum<["past_28_days", "past_month"]>>,
                        >;
                        type: "Query";
                    },
                    { name: "collection_id"; schema: ZodNumber; type: "Path" },
                ];
                path: "/collections/:collection_id/ranking_by_issues/";
                requestFormat: "json";
                response: ZodObject<
                    {
                        data: ZodObject<
                            {
                                columns: ZodArray<
                                    ZodObject<
                                        {
                                            col: ZodString;
                                            data_type: ZodEnum<(...)>;
                                            nullable: ZodBoolean;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            { col: ...; data_type: ...; nullable: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            { col: ...; data_type: ...; nullable: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >,
                                >;
                                result: ZodObject<
                                    {
                                        code: ZodOptional<ZodNumber>;
                                        databases: ZodOptional<ZodArray<(...)>>;
                                        end_ms: ZodOptional<ZodNumber>;
                                        latency: ZodOptional<ZodString>;
                                        limit: ZodOptional<ZodNumber>;
                                        message: ZodOptional<ZodString>;
                                        row_affect: ZodOptional<ZodNumber>;
                                        row_count: ZodOptional<ZodNumber>;
                                        start_ms: ZodOptional<ZodNumber>;
                                    },
                                    "passthrough",
                                    objectOutputType<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        ZodTypeAny,
                                        "passthrough",
                                    >,
                                    objectInputType<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        ZodTypeAny,
                                        "passthrough",
                                    >,
                                >;
                                rows: ZodArray<
                                    ZodObject<
                                        {
                                            current_period_growth: ZodOptional<(...)>;
                                            growth_pop: ZodOptional<(...)>;
                                            past_period_growth: ZodOptional<(...)>;
                                            rank_pop: ZodOptional<(...)>;
                                            repo_id: ZodOptional<(...)>;
                                            repo_name: ZodOptional<(...)>;
                                            total: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >,
                                >;
                            },
                            "passthrough",
                            objectOutputType<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >;
                        type: ZodLiteral<"sql_endpoint">;
                    },
                    "passthrough",
                    objectOutputType<
                        {
                            data: ZodObject<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                objectOutputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >;
                            type: ZodLiteral<"sql_endpoint">;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >,
                    objectInputType<
                        {
                            data: ZodObject<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                objectOutputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >;
                            type: ZodLiteral<"sql_endpoint">;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >,
                >;
            },
            {
                alias: "collection-repo-ranking-by-prs";
                description: "Rank the GitHub repositories in the specified collection according to the number of pull requests.";
                method: "get";
                parameters: [
                    {
                        name: "period";
                        schema: ZodDefault<
                            ZodOptional<ZodEnum<["past_28_days", "past_month"]>>,
                        >;
                        type: "Query";
                    },
                    { name: "collection_id"; schema: ZodNumber; type: "Path" },
                ];
                path: "/collections/:collection_id/ranking_by_prs/";
                requestFormat: "json";
                response: ZodObject<
                    {
                        data: ZodObject<
                            {
                                columns: ZodArray<
                                    ZodObject<
                                        {
                                            col: ZodString;
                                            data_type: ZodEnum<(...)>;
                                            nullable: ZodBoolean;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            { col: ...; data_type: ...; nullable: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            { col: ...; data_type: ...; nullable: ... },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >,
                                >;
                                result: ZodObject<
                                    {
                                        code: ZodOptional<ZodNumber>;
                                        databases: ZodOptional<ZodArray<(...)>>;
                                        end_ms: ZodOptional<ZodNumber>;
                                        latency: ZodOptional<ZodString>;
                                        limit: ZodOptional<ZodNumber>;
                                        message: ZodOptional<ZodString>;
                                        row_affect: ZodOptional<ZodNumber>;
                                        row_count: ZodOptional<ZodNumber>;
                                        start_ms: ZodOptional<ZodNumber>;
                                    },
                                    "passthrough",
                                    objectOutputType<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        ZodTypeAny,
                                        "passthrough",
                                    >,
                                    objectInputType<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        ZodTypeAny,
                                        "passthrough",
                                    >,
                                >;
                                rows: ZodArray<
                                    ZodObject<
                                        {
                                            current_period_growth: ZodOptional<(...)>;
                                            growth_pop: ZodOptional<(...)>;
                                            past_period_growth: ZodOptional<(...)>;
                                            rank_pop: ZodOptional<(...)>;
                                            repo_id: ZodOptional<(...)>;
                                            repo_name: ZodOptional<(...)>;
                                            total: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >,
                                >;
                            },
                            "passthrough",
                            objectOutputType<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                            objectInputType<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                ZodTypeAny,
                                "passthrough",
                            >,
                        >;
                        type: ZodLiteral<"sql_endpoint">;
                    },
                    "passthrough",
                    objectOutputType<
                        {
                            data: ZodObject<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                objectOutputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >;
                            type: ZodLiteral<"sql_endpoint">;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >,
                    objectInputType<
                        {
                            data: ZodObject<
                                {
                                    columns: ZodArray<
                                        ZodObject<
                                            { col: ...; data_type: ...; nullable: ... },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                    result: ZodObject<
                                        {
                                            code: ZodOptional<(...)>;
                                            databases: ZodOptional<(...)>;
                                            end_ms: ZodOptional<(...)>;
                                            latency: ZodOptional<(...)>;
                                            limit: ZodOptional<(...)>;
                                            message: ZodOptional<(...)>;
                                            row_affect: ZodOptional<(...)>;
                                            row_count: ZodOptional<(...)>;
                                            start_ms: ZodOptional<(...)>;
                                        },
                                        "passthrough",
                                        objectOutputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                        objectInputType<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            ZodTypeAny,
                                            "passthrough",
                                        >,
                                    >;
                                    rows: ZodArray<
                                        ZodObject<
                                            {
                                                current_period_growth: ...;
                                                growth_pop: ...;
                                                past_period_growth: ...;
                                                rank_pop: ...;
                                                repo_id: ...;
                                                repo_name: ...;
                                                total: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >,
                                    >;
                                },
                                "passthrough",
                                objectOutputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                                objectInputType<
                                    {
                                        columns: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                        result: ZodObject<
                                            {
                                                code: ...;
                                                databases: ...;
                                                end_ms: ...;
                                                latency: ...;
                                                limit: ...;
                                                message: ...;
                                                row_affect: ...;
                                                row_count: ...;
                                                start_ms: ...;
                                            },
                                            "passthrough",
                                            objectOutputType<(...), (...), (...)>,
                                            objectInputType<(...), (...), (...)>,
                                        >;
                                        rows: ZodArray<ZodObject<(...), (...), (...), (...)>>;
                                    },
                                    ZodTypeAny,
                                    "passthrough",
                                >,
                            >;
                            type: ZodLiteral<"sql_endpoint">;
                        },
                        ZodTypeAny,
                        "passthrough",
                    >,
                >;
            },
        ],
    >