Skip to content
Sarj Workspace Sync

execution/reviewed-sentry-workspace

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

import { z } from "zod";
export declare const ReviewedSentryWorkspaceSchema: z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
memberId: z.ZodString;
type: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>, z.ZodObject<{
email: z.ZodEmail;
memberId: z.ZodString;
type: z.ZodLiteral<"add-team-member">;
}, z.core.$strict>, z.ZodObject<{
email: z.ZodEmail;
type: z.ZodLiteral<"invite">;
}, z.core.$strict>, z.ZodObject<{
email: z.ZodEmail;
memberId: z.ZodString;
type: z.ZodLiteral<"repair-pending-invite">;
}, z.core.$strict>, z.ZodObject<{
email: z.ZodEmail;
memberId: z.ZodString;
type: z.ZodLiteral<"reinvite-expired">;
}, z.core.$strict>], "type">;
authorityPins: 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>;
expectedPlanHash: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
sourceAuthorityFingerprint: z.ZodString;
}, z.core.$strict>;
export type ReviewedSentryWorkspace = z.output<typeof ReviewedSentryWorkspaceSchema>;
export declare function sentryWorkspaceSourceIdentity(raw: ReviewedSentryWorkspace): {
googleUserId: string & z.$brand<"GoogleUserId">;
kind: "identity";
providerAccountId: string;
systemId: "sentry";
};
export declare function sentryWorkspaceManagedSlice(raw: ReviewedSentryWorkspace, state: "converged" | "pending"): z.JSONType;
export declare function sentryWorkspaceResourceId(raw: ReviewedSentryWorkspace): string;