import * as z from "zod/v4"; import { OpenEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; export declare const CustomOriginState: { readonly Usable: "usable"; readonly NoCredential: "no_credential"; readonly Failing: "failing"; }; export type CustomOriginState = OpenEnum; /** * The vault injection decision for this destination, at `read_at`. */ export type CustomOriginStatus = { /** * The credential failure code when `state` is `failing`; null otherwise. */ failure: string | null; state: CustomOriginState; }; export type CustomOrigin = { host: string; pathPrefix: string | null; /** * The vault injection decision for this destination, at `read_at`. */ status: CustomOriginStatus; }; export declare const AccountType: { readonly Organization: "organization"; readonly User: "user"; }; export type AccountType = OpenEnum; export declare const Selection: { readonly All: "all"; readonly Selected: "selected"; }; export type Selection = OpenEnum; /** * What GitHub says the installation covers; null until read. */ export type Coverage = { /** * When GitHub answered, through the installation token the vault holds. */ checkedAt: Date; /** * Repositories the installation covers; null when GitHub did not count them. */ repositoryCount: number | null; selection: Selection; }; /** * What egress uses instead of this installation for a request to its account: an earlier installation on the same account, or a token pinned to the account. Null when this installation answers. */ export declare const ShadowedBy: { readonly Installation: "installation"; readonly Token: "token"; }; /** * What egress uses instead of this installation for a request to its account: an earlier installation on the same account, or a token pinned to the account. Null when this installation answers. */ export type ShadowedBy = OpenEnum; export type Installation = { /** * The account the App is installed on, as GitHub spells it. */ account: string; accountType: AccountType | null; /** * What GitHub says the installation covers; null until read. */ coverage: Coverage | null; credentialId: string; /** * Whether the vault holds a current installation token to inject. */ holdsToken: boolean; isEnabled: boolean; /** * The workspace turned this shared installation off or hid it for this intern. */ isOffForIntern: boolean; /** * What egress uses instead of this installation for a request to its account: an earlier installation on the same account, or a token pinned to the account. Null when this installation answers. */ shadowedBy: ShadowedBy | null; }; /** * How the vault picks this link for the App, by the same selection egress uses. */ export declare const Via: { readonly AppLink: "app_link"; readonly Token: "token"; readonly AnyLink: "any_link"; }; /** * How the vault picks this link for the App, by the same selection egress uses. */ export type Via = OpenEnum; export type AppMemberLink = { holdsToken: boolean; login: string; /** * How the vault picks this link for the App, by the same selection egress uses. */ via: Via; }; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ export declare const AppScope: { readonly Workspace: "workspace"; readonly Intern: "intern"; }; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ export type AppScope = OpenEnum; export type App = { appId: string | null; appSlug: string | null; installations: Array; /** * Members whose own account the vault would act as on this App's accounts; GitHub still limits a member's token to what that member can reach. */ memberLinks: Array; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ scope: AppScope; }; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ export declare const TokenScope: { readonly Workspace: "workspace"; readonly Intern: "intern"; }; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ export type TokenScope = OpenEnum; export type Token = { holdsToken: boolean; login: string; owner: string | null; repositoryCount: number | null; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ scope: TokenScope; }; export type Github = { apps: Array; tokens: Array; }; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ export declare const AccountScope: { readonly Workspace: "workspace"; readonly Intern: "intern"; }; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ export type AccountScope = OpenEnum; export type Account = { delegatedCapabilities: Array; email: string; holdsGrant: boolean; isDelegatedToIntern: boolean; /** * `workspace` applies to every intern of the workspace; `intern` to this intern alone. */ scope: AccountScope; }; export type Google = { accounts: Array; }; export type HostRule = { holdsSecret: boolean; host: string; secretName: string; }; export type Route = { host: string; pathPrefix: string | null; }; export declare const McpOriginState: { readonly Usable: "usable"; readonly NoCredential: "no_credential"; readonly Failing: "failing"; }; export type McpOriginState = OpenEnum; /** * The vault's decision for a request to this server; null for members' own accounts, decided per acting member. */ export type McpOriginStatus = { /** * The credential failure code when `state` is `failing`; null otherwise. */ failure: string | null; state: McpOriginState; }; export type McpOrigin = { accountKey: string | null; host: string; /** * Members' own accounts, matched to the acting member per turn. */ isPersonal: boolean; routes: Array; /** * The vault's decision for a request to this server; null for members' own accounts, decided per acting member. */ status: McpOriginStatus | null; }; export declare const SecretScope: { readonly Intern: "intern"; readonly Attached: "attached"; readonly Workspace: "workspace"; }; export type SecretScope = OpenEnum; export type Secret = { createdAt: string; hosts: Array | null; name: string; scope: SecretScope; }; export type SlackMemberLink = { holdsToken: boolean; slackUserId: string; }; export type Slack = { /** * Members whose own Slack account the vault can act as; whether the intern's own Slack app runs is a runtime fact the `connections` tool reports. */ memberLinks: Array; }; /** * The intern's routing table, for the intern's own key only; null for any other caller or when the vault could not build it in time. The keys still list. */ export type VaultRoutingTable = { agentId: string; customOrigins: Array; github: Github; google: Google; /** * Built-in hosts the vault injects a named secret for, and whether that secret is stored. */ hostRules: Array; mcpOrigins: Array; readAt: Date; secrets: Array; slack: Slack; }; /** @internal */ export declare const CustomOriginState$inboundSchema: z.ZodType; /** @internal */ export declare const CustomOriginStatus$inboundSchema: z.ZodType; export declare function customOriginStatusFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CustomOrigin$inboundSchema: z.ZodType; export declare function customOriginFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountType$inboundSchema: z.ZodType; /** @internal */ export declare const Selection$inboundSchema: z.ZodType; /** @internal */ export declare const Coverage$inboundSchema: z.ZodType; export declare function coverageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ShadowedBy$inboundSchema: z.ZodType; /** @internal */ export declare const Installation$inboundSchema: z.ZodType; export declare function installationFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Via$inboundSchema: z.ZodType; /** @internal */ export declare const AppMemberLink$inboundSchema: z.ZodType; export declare function appMemberLinkFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AppScope$inboundSchema: z.ZodType; /** @internal */ export declare const App$inboundSchema: z.ZodType; export declare function appFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const TokenScope$inboundSchema: z.ZodType; /** @internal */ export declare const Token$inboundSchema: z.ZodType; export declare function tokenFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Github$inboundSchema: z.ZodType; export declare function githubFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const AccountScope$inboundSchema: z.ZodType; /** @internal */ export declare const Account$inboundSchema: z.ZodType; export declare function accountFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Google$inboundSchema: z.ZodType; export declare function googleFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const HostRule$inboundSchema: z.ZodType; export declare function hostRuleFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Route$inboundSchema: z.ZodType; export declare function routeFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpOriginState$inboundSchema: z.ZodType; /** @internal */ export declare const McpOriginStatus$inboundSchema: z.ZodType; export declare function mcpOriginStatusFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const McpOrigin$inboundSchema: z.ZodType; export declare function mcpOriginFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SecretScope$inboundSchema: z.ZodType; /** @internal */ export declare const Secret$inboundSchema: z.ZodType; export declare function secretFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SlackMemberLink$inboundSchema: z.ZodType; export declare function slackMemberLinkFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Slack$inboundSchema: z.ZodType; export declare function slackFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const VaultRoutingTable$inboundSchema: z.ZodType; export declare function vaultRoutingTableFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=vaultroutingtable.d.ts.map