UNPKG

@vercel/sdk

Version:

<p align="center"> <a href="https://vercel.com"> <img src="https://assets.vercel.com/image/upload/v1588805858/repositories/vercel/logo.png" height="96"> <h3 align="center">Vercel</h3> </a> <p align="center">Develop. Preview. Ship.</p> </p>

138 lines 6.78 kB
import * as z from "zod/v3"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; export type NamespaceId = string | number; export declare const SearchRepoQueryParamProvider: { readonly Github: "github"; readonly GithubLimited: "github-limited"; readonly GithubCustomHost: "github-custom-host"; readonly Gitlab: "gitlab"; readonly Bitbucket: "bitbucket"; }; export type SearchRepoQueryParamProvider = ClosedEnum<typeof SearchRepoQueryParamProvider>; export type SearchRepoRequest = { query?: string | undefined; namespaceId?: string | number | null | undefined; provider?: SearchRepoQueryParamProvider | undefined; installationId?: string | undefined; /** * The custom Git host if using a custom Git provider, like GitHub Enterprise Server */ host?: string | undefined; /** * The Team identifier to perform the request on behalf of. */ teamId?: string | undefined; /** * The Team slug to perform the request on behalf of. */ slug?: string | undefined; }; export declare const SearchRepoResponseBodyProvider: { readonly Bitbucket: "bitbucket"; readonly Github: "github"; readonly GithubCustomHost: "github-custom-host"; readonly GithubLimited: "github-limited"; readonly Gitlab: "gitlab"; readonly Vercel: "vercel"; }; export type SearchRepoResponseBodyProvider = ClosedEnum<typeof SearchRepoResponseBodyProvider>; export type ResponseBodyNamespaceId = string | number; export type GitAccount = { provider: SearchRepoResponseBodyProvider; namespaceId: string | number | null; }; export type ResponseBodyId = string | number; export declare const SearchRepoResponseBodyIntegrationsProvider: { readonly Bitbucket: "bitbucket"; readonly Github: "github"; readonly GithubCustomHost: "github-custom-host"; readonly GithubLimited: "github-limited"; readonly Gitlab: "gitlab"; readonly Vercel: "vercel"; }; export type SearchRepoResponseBodyIntegrationsProvider = ClosedEnum<typeof SearchRepoResponseBodyIntegrationsProvider>; export type SearchRepoResponseBodyId = string | number; export type ResponseBodyOwner = { id: string | number; name: string; }; export declare const ResponseBodyOwnerType: { readonly Team: "team"; readonly User: "user"; }; export type ResponseBodyOwnerType = ClosedEnum<typeof ResponseBodyOwnerType>; export type Repos = { id: string | number; provider: SearchRepoResponseBodyIntegrationsProvider; url: string; name: string; slug: string; namespace: string; owner: ResponseBodyOwner; ownerType: ResponseBodyOwnerType; private: boolean; defaultBranch: string; updatedAt: number; }; export type SearchRepoResponseBody2 = { gitAccount: GitAccount; repos: Array<Repos>; }; export type SearchRepoResponseBody1 = {}; export type SearchRepoResponseBody = SearchRepoResponseBody2 | SearchRepoResponseBody1; /** @internal */ export type NamespaceId$Outbound = string | number; /** @internal */ export declare const NamespaceId$outboundSchema: z.ZodType<NamespaceId$Outbound, z.ZodTypeDef, NamespaceId>; export declare function namespaceIdToJSON(namespaceId: NamespaceId): string; /** @internal */ export declare const SearchRepoQueryParamProvider$outboundSchema: z.ZodNativeEnum<typeof SearchRepoQueryParamProvider>; /** @internal */ export type SearchRepoRequest$Outbound = { query?: string | undefined; namespaceId?: string | number | null | undefined; provider?: string | undefined; installationId?: string | undefined; host?: string | undefined; teamId?: string | undefined; slug?: string | undefined; }; /** @internal */ export declare const SearchRepoRequest$outboundSchema: z.ZodType<SearchRepoRequest$Outbound, z.ZodTypeDef, SearchRepoRequest>; export declare function searchRepoRequestToJSON(searchRepoRequest: SearchRepoRequest): string; /** @internal */ export declare const SearchRepoResponseBodyProvider$inboundSchema: z.ZodNativeEnum<typeof SearchRepoResponseBodyProvider>; /** @internal */ export declare const ResponseBodyNamespaceId$inboundSchema: z.ZodType<ResponseBodyNamespaceId, z.ZodTypeDef, unknown>; export declare function responseBodyNamespaceIdFromJSON(jsonString: string): SafeParseResult<ResponseBodyNamespaceId, SDKValidationError>; /** @internal */ export declare const GitAccount$inboundSchema: z.ZodType<GitAccount, z.ZodTypeDef, unknown>; export declare function gitAccountFromJSON(jsonString: string): SafeParseResult<GitAccount, SDKValidationError>; /** @internal */ export declare const ResponseBodyId$inboundSchema: z.ZodType<ResponseBodyId, z.ZodTypeDef, unknown>; export declare function responseBodyIdFromJSON(jsonString: string): SafeParseResult<ResponseBodyId, SDKValidationError>; /** @internal */ export declare const SearchRepoResponseBodyIntegrationsProvider$inboundSchema: z.ZodNativeEnum<typeof SearchRepoResponseBodyIntegrationsProvider>; /** @internal */ export declare const SearchRepoResponseBodyId$inboundSchema: z.ZodType<SearchRepoResponseBodyId, z.ZodTypeDef, unknown>; export declare function searchRepoResponseBodyIdFromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBodyId, SDKValidationError>; /** @internal */ export declare const ResponseBodyOwner$inboundSchema: z.ZodType<ResponseBodyOwner, z.ZodTypeDef, unknown>; export declare function responseBodyOwnerFromJSON(jsonString: string): SafeParseResult<ResponseBodyOwner, SDKValidationError>; /** @internal */ export declare const ResponseBodyOwnerType$inboundSchema: z.ZodNativeEnum<typeof ResponseBodyOwnerType>; /** @internal */ export declare const Repos$inboundSchema: z.ZodType<Repos, z.ZodTypeDef, unknown>; export declare function reposFromJSON(jsonString: string): SafeParseResult<Repos, SDKValidationError>; /** @internal */ export declare const SearchRepoResponseBody2$inboundSchema: z.ZodType<SearchRepoResponseBody2, z.ZodTypeDef, unknown>; export declare function searchRepoResponseBody2FromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBody2, SDKValidationError>; /** @internal */ export declare const SearchRepoResponseBody1$inboundSchema: z.ZodType<SearchRepoResponseBody1, z.ZodTypeDef, unknown>; export declare function searchRepoResponseBody1FromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBody1, SDKValidationError>; /** @internal */ export declare const SearchRepoResponseBody$inboundSchema: z.ZodType<SearchRepoResponseBody, z.ZodTypeDef, unknown>; export declare function searchRepoResponseBodyFromJSON(jsonString: string): SafeParseResult<SearchRepoResponseBody, SDKValidationError>; //# sourceMappingURL=searchrepoop.d.ts.map