Skip to content
Sarj Workspace Sync

execution/sentry-workspace-authority-pins

@sarj-ai/workspace-sync/execution/sentry-workspace-authority-pins ยท Source

import type { z } from "zod";
import { type SentryWorkspaceAuthorityBootstrap } from "../workspace-directory/sentry-workspace-client.ts";
export declare const SentryWorkspaceAuthorityPinsSchema: z.ZodObject<{
actor: z.ZodObject<{
id: z.ZodString;
orgRole: z.ZodEnum<{
admin: "admin";
billing: "billing";
manager: "manager";
member: "member";
owner: "owner";
}>;
role: z.ZodEnum<{
admin: "admin";
billing: "billing";
manager: "manager";
member: "member";
owner: "owner";
}>;
scopes: z.ZodArray<z.ZodString>;
teamRole: z.ZodNullable<z.ZodEnum<{
admin: "admin";
contributor: "contributor";
}>>;
}, z.core.$strict>;
organization: z.ZodObject<{
id: z.ZodString;
slug: z.ZodString;
}, z.core.$strict>;
project: z.ZodObject<{
id: z.ZodString;
slug: z.ZodString;
}, z.core.$strict>;
team: z.ZodObject<{
id: z.ZodString;
slug: z.ZodString;
}, z.core.$strict>;
}, z.core.$strict>;
export type SentryWorkspaceAuthorityPins = z.output<typeof SentryWorkspaceAuthorityPinsSchema>;
export type SentryWorkspaceAuthorityPinState = {
readonly kind: "blocked";
readonly reason: "sentry_authority_pins_invalid";
} | {
readonly kind: "off";
readonly reason: "sentry_authority_pins_absent";
} | {
readonly kind: "ready";
readonly pins: SentryWorkspaceAuthorityPins;
};
export declare function sentryWorkspaceAuthorityPinState(rawPins: string): SentryWorkspaceAuthorityPinState;
export declare function assertSentryWorkspaceAuthorityPins(pins: SentryWorkspaceAuthorityPins, evidence: SentryWorkspaceAuthorityBootstrap): void;