import type { OauthTypes } from "@cargo-ai/types"; import { z } from "zod"; import type { ApiType } from "../types.js"; export declare namespace Oauth { type Grant = ApiType; namespace Api { type ListGrantsPayload = { resource: string; }; type ListGrantsResult = { grants: Grant[]; }; const zodListGrantsErrorReason: z.ZodEnum<{ resourceNotFound: "resourceNotFound"; }>; type RevokeGrantPayload = { grantUuid: string; resource: string; }; const zodRevokeGrantErrorReason: z.ZodEnum<{ resourceNotFound: "resourceNotFound"; grantNotFound: "grantNotFound"; }>; } const grantKeys: { list: (workspaceUuid: string, resource: string) => readonly ["oauthGrants", string, string]; }; } //# sourceMappingURL=oauth.d.ts.map