Skip to content
Sarj Workspace Sync

execution/contracts

@sarj-ai/workspace-sync/execution/contracts ยท Source

import { z } from "zod";
import { AccessGuardPlanSchema } from "../access-guard/model.ts";
import { type WorkspaceDirectoryBranchId as SharedWorkspaceDirectoryBranchId } from "./flow.ts";
export type WorkspaceDirectoryBranchId = SharedWorkspaceDirectoryBranchId;
export declare const WORKSPACE_DIRECTORY_ACTION_IDS: {
readonly driveOrgChart: "workspace-directory.drive-org-chart";
readonly fanout: "workspace-directory.fanout";
readonly githubAccess: "workspace-directory.github-access";
readonly linearSuspensions: "workspace-directory.linear-suspensions";
readonly slackGroupsChannels: "workspace-directory.slack-groups-channels";
readonly slackProfiles: "workspace-directory.slack-profiles";
readonly trycompPeople: "workspace-directory.trycomp-people";
readonly slackNames: "workspace-directory.slack-names";
readonly linearProfiles: "workspace-directory.linear-profiles";
readonly googleGroupCleanup: "workspace-directory.google-group-cleanup";
readonly pagerDutyTeams: "workspace-directory.pagerduty-teams";
readonly sentryMemberships: "workspace-directory.sentry-memberships";
readonly posthogMemberships: "workspace-directory.posthog-memberships";
};
export declare const WorkspaceDirectoryAuthorizedActionIdSchema: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
export type WorkspaceDirectoryAuthorizedActionId = z.output<typeof WorkspaceDirectoryAuthorizedActionIdSchema>;
export declare const SlackProfileChangeReasonSchema: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
export type SlackProfileChangeReason = z.output<typeof SlackProfileChangeReasonSchema>;
export declare const SlackProfilesBranchPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodTuple<[], null>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
}, z.core.$strict>], "execution">;
export declare const DriveOrgChartBranchPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodString;
desiredSha256: z.ZodString;
fileId: z.ZodOptional<z.ZodString>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodNull;
desiredSha256: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
}, z.core.$strict>], "execution">;
export declare const SlackGroupsChannelsBranchPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
selectedChannelRename: z.ZodNullable<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
selectedProvenanceChannelRemovals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
selectedRemovalCount: z.ZodNumber;
selectedUserGroupHandles: z.ZodArray<z.ZodString>;
selectedUserGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">;
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">;
channelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelAdditionIds: z.ZodArray<z.ZodString>;
channelRemovals: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelRemovalIds: z.ZodArray<z.ZodString>;
currentHandle: z.ZodNullable<z.ZodString>;
currentName: z.ZodNullable<z.ZodString>;
desiredName: z.ZodString;
effectiveAccessAdditions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
expectedSlackUserGroupId: z.ZodNullable<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
memberRemovalAuthority: z.ZodEnum<{
contractor_group_authoritative: "contractor_group_authoritative";
explicit_google_lifecycle: "explicit_google_lifecycle";
google_group_authoritative: "google_group_authoritative";
}>;
memberRemovals: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
requiredChannelIds: z.ZodArray<z.ZodString>;
slackUserGroupId: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>>;
reviewedLifecycleRemoval: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserGroupId: z.ZodString;
slackUserId: z.ZodString;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>], "execution">;
export declare const GitHubAccessBranchPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
accountPlans: z.ZodArray<z.ZodObject<{
googleUserId: z.ZodString;
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"executable">;
operations: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">>>;
}, z.core.$strict>, z.ZodObject<{
blockers: z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>>;
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
authorityHash: z.ZodString;
contentHash: z.ZodString;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
organizationId: z.ZodString;
organizationLogin: z.ZodString;
selectedOperation: z.ZodNullable<z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
googleUserId: z.ZodString;
operation: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
teamAccessHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodString;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodArray<z.ZodObject<{
authorityPath: z.ZodArray<z.ZodString>;
blockers: z.ZodArray<z.ZodString>;
current: z.ZodNullable<z.ZodEnum<{
absent: "absent";
present: "present";
}>>;
desired: z.ZodNullable<z.ZodEnum<{
blocked: "blocked";
member: "member";
none: "none";
}>>;
grace: z.ZodEnum<{
age_unknown: "age_unknown";
conflicted: "conflicted";
grace_elapsed: "grace_elapsed";
immediate_authoritative: "immediate_authoritative";
not_applicable: "not_applicable";
pending_grace: "pending_grace";
}>;
id: z.ZodString;
kind: z.ZodEnum<{
org_add: "org_add";
org_remove: "org_remove";
policy_exception: "policy_exception";
team_add: "team_add";
team_remove: "team_remove";
}>;
privilege: z.ZodUnion<readonly [z.ZodEnum<{
admin: "admin";
maintain: "maintain";
none: "none";
pull: "pull";
push: "push";
triage: "triage";
unknown: "unknown";
}>, z.ZodEnum<{
blocked: "blocked";
maintainer: "maintainer";
member: "member";
repository_specific: "repository_specific";
}>]>;
reason: z.ZodString;
safelyActionable: z.ZodBoolean;
subject: z.ZodObject<{
email: z.ZodOptional<z.ZodEmail>;
githubId: z.ZodOptional<z.ZodNumber>;
googleId: z.ZodOptional<z.ZodString>;
login: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
target: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodTuple<[], null>;
}, z.core.$strict>], "execution">;
export declare const AccessGuardBranchPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
plan: z.ZodObject<{
actions: z.ZodArray<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
googleUserId: z.ZodString;
provider: z.ZodLiteral<"linear">;
type: z.ZodLiteral<"suspend">;
}, z.core.$strip>>;
diagnostics: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
code: z.ZodLiteral<"provider_readiness">;
context: z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>;
level: z.ZodLiteral<"error">;
message: z.ZodString;
provider: z.ZodLiteral<"linear">;
}, z.core.$strict>, z.ZodObject<{
code: z.ZodEnum<{
ambiguous_github_identity: "ambiguous_github_identity";
ambiguous_google_email: "ambiguous_google_email";
ambiguous_provider_email: "ambiguous_provider_email";
conflicting_github_identity: "conflicting_github_identity";
invalid_google_github_identity: "invalid_google_github_identity";
invalid_google_org_shape: "invalid_google_org_shape";
pending_provider_invitation: "pending_provider_invitation";
protected_linear_account: "protected_linear_account";
provider_error: "provider_error";
unmatched_provider_account: "unmatched_provider_account";
}>;
context: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
level: z.ZodEnum<{
error: "error";
warning: "warning";
}>;
message: z.ZodString;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
}, z.core.$strip>]>>;
issues: z.ZodArray<z.ZodObject<{
details: z.ZodRecord<z.ZodString, z.ZodString>;
googleUserId: z.ZodOptional<z.ZodString>;
id: z.ZodString;
kind: z.ZodEnum<{
active_downstream_for_inactive_google: "active_downstream_for_inactive_google";
active_downstream_without_google: "active_downstream_without_google";
coverage_failure: "coverage_failure";
missing_google_org_metadata: "missing_google_org_metadata";
}>;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
summary: z.ZodString;
}, z.core.$strip>>;
stats: z.ZodObject<{
activeGooglePeople: z.ZodNumber;
googleUsers: z.ZodNumber;
providerAccounts: z.ZodRecord<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}> & z.core.$partial, z.ZodNumber>;
inactiveGoogleUsers: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
reviewedLinearSuspension: z.ZodOptional<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodEmail;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
organizationId: z.ZodUUID;
organizationUrlKey: z.ZodString;
}, z.core.$strict>>;
scheduledLinearSuspension: z.ZodOptional<z.ZodLiteral<true>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
plan: z.ZodNull;
}, z.core.$strict>], "execution">;
export declare const IdentityProvisioningBranchPlanSchema: z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"identity-provisioning">;
execution: z.ZodLiteral<"managed">;
githubIdentitySeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"disabled">;
reason: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
artifact: z.ZodReadonly<z.ZodObject<{
entries: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
evidence: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
source: z.ZodEnum<{
"github-enterprise-saml": "github-enterprise-saml";
"identity-admin": "identity-admin";
}>;
verifiedAt: z.ZodISODateTime;
}, z.core.$strict>>;
kind: z.ZodLiteral<"exact-match">;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"unresolved">;
reason: z.ZodEnum<{
"github-member-not-found": "github-member-not-found";
"missing-verified-evidence": "missing-verified-evidence";
"unverified-heuristic": "unverified-heuristic";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-heuristic": "ambiguous-heuristic";
"evidence-id-login-mismatch": "evidence-id-login-mismatch";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">>>;
schemaVersion: z.ZodLiteral<"github-identity-seed-plan/v1">;
sourceRevision: z.ZodString;
summary: z.ZodReadonly<z.ZodObject<{
conflicts: z.ZodNumber;
exactMatches: z.ZodNumber;
unresolved: z.ZodNumber;
}, z.core.$strict>>;
contentHash: z.core.$ZodBranded<z.ZodString, "GitHubIdentitySeedContentHash", "out">;
}, z.core.$strict>>;
githubSourceFingerprint: z.ZodString;
kind: z.ZodLiteral<"managed">;
maxChanges: z.ZodNumber;
maxProviderReads: z.ZodNumber;
userPlans: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"blocked">;
reason: z.ZodEnum<{
deleted: "deleted";
inactive: "inactive";
"not-found": "not-found";
}>;
userId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>, z.ZodObject<{
current: z.ZodNullable<z.ZodObject<{
githubLogin: z.ZodOptional<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">>;
githubUserId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">>;
}, z.core.$strict>>;
desired: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"update">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
identity: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>], "kind">>;
}, z.core.$strict>], "kind">;
killSwitchEngaged: z.ZodLiteral<false>;
providerExecution: z.ZodLiteral<"audit-only">;
schemaPlan: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"add-fields">;
schemaId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"create">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
schemaId: z.ZodString;
}, z.core.$strict>], "kind">, z.ZodObject<{
kind: z.ZodLiteral<"not-selected">;
}, z.core.$strict>]>;
subjects: z.ZodArray<z.ZodObject<{
authorityRevision: z.ZodString;
githubLinked: z.ZodBoolean;
googleUserId: z.ZodString;
lifecycle: z.ZodEnum<{
active: "active";
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
}, z.core.$strict>>;
}, z.core.$strict>;
export declare const TrycompPeopleBranchPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodNull;
}, z.core.$strict>], "execution">;
export declare const SlackNamesBranchPlanSchema: z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-names">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeRealName: z.ZodString;
desiredName: z.ZodString;
email: z.ZodEmail;
type: z.ZodLiteral<"repair-default-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>;
branchId: z.ZodLiteral<"slack-names">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>;
export declare const LinearProfilesBranchPlanSchema: z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"linear-profiles">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeFullName: z.ZodString;
desiredFullName: z.ZodString;
email: z.ZodEmail;
linearUserId: z.ZodString;
type: z.ZodLiteral<"repair-default-full-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>;
branchId: z.ZodLiteral<"linear-profiles">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>;
export declare const GoogleGroupCleanupBranchPlanSchema: z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"google-group-cleanup">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodObject<{
authorityEmail: z.ZodOptional<z.ZodEmail>;
googleGroupEmail: z.ZodEmail;
googleGroupId: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
lifecycle: z.ZodEnum<{
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
memberEmail: z.ZodEmail;
memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
role: z.ZodOptional<z.ZodEnum<{
MANAGER: "MANAGER";
OWNER: "OWNER";
}>>;
type: z.ZodLiteral<"remove-inactive-google-group-member">;
}, z.core.$strict>;
expectedPlanHash: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>;
export declare const PagerDutyTeamsBranchPlanSchema: z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"pagerduty-teams">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"add">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
currentPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"set-role">;
}, z.core.$strict>>], "type">;
expectedPlanHash: z.ZodString;
reviewId: z.ZodUUID;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>;
export declare const SentryMembershipsBranchPlanSchema: z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"sentry-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<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>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>;
export declare const PosthogMembershipsBranchPlanSchema: z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"posthog-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"invite">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"cancel-invite">;
inviteId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"remove-member">;
userUuid: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"retire-grant">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"bind-member">;
userUuid: z.ZodString;
}, z.core.$strict>], "type">;
expectedPlanHash: z.ZodString;
sourceAuthorityFingerprint: z.ZodString;
organizationId: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>;
export declare const WorkspaceDirectoryBranchPlanSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"pagerduty-teams">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"add">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
currentPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"set-role">;
}, z.core.$strict>>], "type">;
expectedPlanHash: z.ZodString;
reviewId: z.ZodUUID;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"sentry-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<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>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"posthog-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"invite">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"cancel-invite">;
inviteId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"remove-member">;
userUuid: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"retire-grant">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"bind-member">;
userUuid: z.ZodString;
}, z.core.$strict>], "type">;
expectedPlanHash: z.ZodString;
sourceAuthorityFingerprint: z.ZodString;
organizationId: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodTuple<[], null>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodString;
desiredSha256: z.ZodString;
fileId: z.ZodOptional<z.ZodString>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodNull;
desiredSha256: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
selectedChannelRename: z.ZodNullable<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
selectedProvenanceChannelRemovals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
selectedRemovalCount: z.ZodNumber;
selectedUserGroupHandles: z.ZodArray<z.ZodString>;
selectedUserGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">;
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">;
channelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelAdditionIds: z.ZodArray<z.ZodString>;
channelRemovals: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelRemovalIds: z.ZodArray<z.ZodString>;
currentHandle: z.ZodNullable<z.ZodString>;
currentName: z.ZodNullable<z.ZodString>;
desiredName: z.ZodString;
effectiveAccessAdditions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
expectedSlackUserGroupId: z.ZodNullable<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
memberRemovalAuthority: z.ZodEnum<{
contractor_group_authoritative: "contractor_group_authoritative";
explicit_google_lifecycle: "explicit_google_lifecycle";
google_group_authoritative: "google_group_authoritative";
}>;
memberRemovals: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
requiredChannelIds: z.ZodArray<z.ZodString>;
slackUserGroupId: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>>;
reviewedLifecycleRemoval: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserGroupId: z.ZodString;
slackUserId: z.ZodString;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
accountPlans: z.ZodArray<z.ZodObject<{
googleUserId: z.ZodString;
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"executable">;
operations: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">>>;
}, z.core.$strict>, z.ZodObject<{
blockers: z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>>;
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
authorityHash: z.ZodString;
contentHash: z.ZodString;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
organizationId: z.ZodString;
organizationLogin: z.ZodString;
selectedOperation: z.ZodNullable<z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
googleUserId: z.ZodString;
operation: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
teamAccessHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodString;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodArray<z.ZodObject<{
authorityPath: z.ZodArray<z.ZodString>;
blockers: z.ZodArray<z.ZodString>;
current: z.ZodNullable<z.ZodEnum<{
absent: "absent";
present: "present";
}>>;
desired: z.ZodNullable<z.ZodEnum<{
blocked: "blocked";
member: "member";
none: "none";
}>>;
grace: z.ZodEnum<{
age_unknown: "age_unknown";
conflicted: "conflicted";
grace_elapsed: "grace_elapsed";
immediate_authoritative: "immediate_authoritative";
not_applicable: "not_applicable";
pending_grace: "pending_grace";
}>;
id: z.ZodString;
kind: z.ZodEnum<{
org_add: "org_add";
org_remove: "org_remove";
policy_exception: "policy_exception";
team_add: "team_add";
team_remove: "team_remove";
}>;
privilege: z.ZodUnion<readonly [z.ZodEnum<{
admin: "admin";
maintain: "maintain";
none: "none";
pull: "pull";
push: "push";
triage: "triage";
unknown: "unknown";
}>, z.ZodEnum<{
blocked: "blocked";
maintainer: "maintainer";
member: "member";
repository_specific: "repository_specific";
}>]>;
reason: z.ZodString;
safelyActionable: z.ZodBoolean;
subject: z.ZodObject<{
email: z.ZodOptional<z.ZodEmail>;
githubId: z.ZodOptional<z.ZodNumber>;
googleId: z.ZodOptional<z.ZodString>;
login: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
target: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodTuple<[], null>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
plan: z.ZodObject<{
actions: z.ZodArray<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
googleUserId: z.ZodString;
provider: z.ZodLiteral<"linear">;
type: z.ZodLiteral<"suspend">;
}, z.core.$strip>>;
diagnostics: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
code: z.ZodLiteral<"provider_readiness">;
context: z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>;
level: z.ZodLiteral<"error">;
message: z.ZodString;
provider: z.ZodLiteral<"linear">;
}, z.core.$strict>, z.ZodObject<{
code: z.ZodEnum<{
ambiguous_github_identity: "ambiguous_github_identity";
ambiguous_google_email: "ambiguous_google_email";
ambiguous_provider_email: "ambiguous_provider_email";
conflicting_github_identity: "conflicting_github_identity";
invalid_google_github_identity: "invalid_google_github_identity";
invalid_google_org_shape: "invalid_google_org_shape";
pending_provider_invitation: "pending_provider_invitation";
protected_linear_account: "protected_linear_account";
provider_error: "provider_error";
unmatched_provider_account: "unmatched_provider_account";
}>;
context: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
level: z.ZodEnum<{
error: "error";
warning: "warning";
}>;
message: z.ZodString;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
}, z.core.$strip>]>>;
issues: z.ZodArray<z.ZodObject<{
details: z.ZodRecord<z.ZodString, z.ZodString>;
googleUserId: z.ZodOptional<z.ZodString>;
id: z.ZodString;
kind: z.ZodEnum<{
active_downstream_for_inactive_google: "active_downstream_for_inactive_google";
active_downstream_without_google: "active_downstream_without_google";
coverage_failure: "coverage_failure";
missing_google_org_metadata: "missing_google_org_metadata";
}>;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
summary: z.ZodString;
}, z.core.$strip>>;
stats: z.ZodObject<{
activeGooglePeople: z.ZodNumber;
googleUsers: z.ZodNumber;
providerAccounts: z.ZodRecord<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}> & z.core.$partial, z.ZodNumber>;
inactiveGoogleUsers: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
reviewedLinearSuspension: z.ZodOptional<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodEmail;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
organizationId: z.ZodUUID;
organizationUrlKey: z.ZodString;
}, z.core.$strict>>;
scheduledLinearSuspension: z.ZodOptional<z.ZodLiteral<true>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
plan: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"identity-provisioning">;
execution: z.ZodLiteral<"managed">;
githubIdentitySeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"disabled">;
reason: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
artifact: z.ZodReadonly<z.ZodObject<{
entries: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
evidence: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
source: z.ZodEnum<{
"github-enterprise-saml": "github-enterprise-saml";
"identity-admin": "identity-admin";
}>;
verifiedAt: z.ZodISODateTime;
}, z.core.$strict>>;
kind: z.ZodLiteral<"exact-match">;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"unresolved">;
reason: z.ZodEnum<{
"github-member-not-found": "github-member-not-found";
"missing-verified-evidence": "missing-verified-evidence";
"unverified-heuristic": "unverified-heuristic";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-heuristic": "ambiguous-heuristic";
"evidence-id-login-mismatch": "evidence-id-login-mismatch";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">>>;
schemaVersion: z.ZodLiteral<"github-identity-seed-plan/v1">;
sourceRevision: z.ZodString;
summary: z.ZodReadonly<z.ZodObject<{
conflicts: z.ZodNumber;
exactMatches: z.ZodNumber;
unresolved: z.ZodNumber;
}, z.core.$strict>>;
contentHash: z.core.$ZodBranded<z.ZodString, "GitHubIdentitySeedContentHash", "out">;
}, z.core.$strict>>;
githubSourceFingerprint: z.ZodString;
kind: z.ZodLiteral<"managed">;
maxChanges: z.ZodNumber;
maxProviderReads: z.ZodNumber;
userPlans: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"blocked">;
reason: z.ZodEnum<{
deleted: "deleted";
inactive: "inactive";
"not-found": "not-found";
}>;
userId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>, z.ZodObject<{
current: z.ZodNullable<z.ZodObject<{
githubLogin: z.ZodOptional<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">>;
githubUserId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">>;
}, z.core.$strict>>;
desired: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"update">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
identity: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>], "kind">>;
}, z.core.$strict>], "kind">;
killSwitchEngaged: z.ZodLiteral<false>;
providerExecution: z.ZodLiteral<"audit-only">;
schemaPlan: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"add-fields">;
schemaId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"create">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
schemaId: z.ZodString;
}, z.core.$strict>], "kind">, z.ZodObject<{
kind: z.ZodLiteral<"not-selected">;
}, z.core.$strict>]>;
subjects: z.ZodArray<z.ZodObject<{
authorityRevision: z.ZodString;
githubLinked: z.ZodBoolean;
googleUserId: z.ZodString;
lifecycle: z.ZodEnum<{
active: "active";
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-names">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeRealName: z.ZodString;
desiredName: z.ZodString;
email: z.ZodEmail;
type: z.ZodLiteral<"repair-default-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>;
branchId: z.ZodLiteral<"slack-names">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"linear-profiles">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeFullName: z.ZodString;
desiredFullName: z.ZodString;
email: z.ZodEmail;
linearUserId: z.ZodString;
type: z.ZodLiteral<"repair-default-full-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>;
branchId: z.ZodLiteral<"linear-profiles">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"google-group-cleanup">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodObject<{
authorityEmail: z.ZodOptional<z.ZodEmail>;
googleGroupEmail: z.ZodEmail;
googleGroupId: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
lifecycle: z.ZodEnum<{
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
memberEmail: z.ZodEmail;
memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
role: z.ZodOptional<z.ZodEnum<{
MANAGER: "MANAGER";
OWNER: "OWNER";
}>>;
type: z.ZodLiteral<"remove-inactive-google-group-member">;
}, z.core.$strict>;
expectedPlanHash: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>], "branchId">;
export type WorkspaceDirectoryBranchPlan = z.output<typeof WorkspaceDirectoryBranchPlanSchema>;
export declare const WorkspaceDirectoryPlanSchema: z.ZodObject<{
authorityFingerprint: z.ZodString;
branches: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodTuple<[], null>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodString;
desiredSha256: z.ZodString;
fileId: z.ZodOptional<z.ZodString>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodNull;
desiredSha256: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
selectedChannelRename: z.ZodNullable<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
selectedProvenanceChannelRemovals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
selectedRemovalCount: z.ZodNumber;
selectedUserGroupHandles: z.ZodArray<z.ZodString>;
selectedUserGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">;
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">;
channelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelAdditionIds: z.ZodArray<z.ZodString>;
channelRemovals: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelRemovalIds: z.ZodArray<z.ZodString>;
currentHandle: z.ZodNullable<z.ZodString>;
currentName: z.ZodNullable<z.ZodString>;
desiredName: z.ZodString;
effectiveAccessAdditions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
expectedSlackUserGroupId: z.ZodNullable<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
memberRemovalAuthority: z.ZodEnum<{
contractor_group_authoritative: "contractor_group_authoritative";
explicit_google_lifecycle: "explicit_google_lifecycle";
google_group_authoritative: "google_group_authoritative";
}>;
memberRemovals: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
requiredChannelIds: z.ZodArray<z.ZodString>;
slackUserGroupId: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>>;
reviewedLifecycleRemoval: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserGroupId: z.ZodString;
slackUserId: z.ZodString;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
accountPlans: z.ZodArray<z.ZodObject<{
googleUserId: z.ZodString;
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"executable">;
operations: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">>>;
}, z.core.$strict>, z.ZodObject<{
blockers: z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>>;
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
authorityHash: z.ZodString;
contentHash: z.ZodString;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
organizationId: z.ZodString;
organizationLogin: z.ZodString;
selectedOperation: z.ZodNullable<z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
googleUserId: z.ZodString;
operation: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
teamAccessHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodString;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodArray<z.ZodObject<{
authorityPath: z.ZodArray<z.ZodString>;
blockers: z.ZodArray<z.ZodString>;
current: z.ZodNullable<z.ZodEnum<{
absent: "absent";
present: "present";
}>>;
desired: z.ZodNullable<z.ZodEnum<{
blocked: "blocked";
member: "member";
none: "none";
}>>;
grace: z.ZodEnum<{
age_unknown: "age_unknown";
conflicted: "conflicted";
grace_elapsed: "grace_elapsed";
immediate_authoritative: "immediate_authoritative";
not_applicable: "not_applicable";
pending_grace: "pending_grace";
}>;
id: z.ZodString;
kind: z.ZodEnum<{
org_add: "org_add";
org_remove: "org_remove";
policy_exception: "policy_exception";
team_add: "team_add";
team_remove: "team_remove";
}>;
privilege: z.ZodUnion<readonly [z.ZodEnum<{
admin: "admin";
maintain: "maintain";
none: "none";
pull: "pull";
push: "push";
triage: "triage";
unknown: "unknown";
}>, z.ZodEnum<{
blocked: "blocked";
maintainer: "maintainer";
member: "member";
repository_specific: "repository_specific";
}>]>;
reason: z.ZodString;
safelyActionable: z.ZodBoolean;
subject: z.ZodObject<{
email: z.ZodOptional<z.ZodEmail>;
githubId: z.ZodOptional<z.ZodNumber>;
googleId: z.ZodOptional<z.ZodString>;
login: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
target: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodTuple<[], null>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
plan: z.ZodObject<{
actions: z.ZodArray<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
googleUserId: z.ZodString;
provider: z.ZodLiteral<"linear">;
type: z.ZodLiteral<"suspend">;
}, z.core.$strip>>;
diagnostics: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
code: z.ZodLiteral<"provider_readiness">;
context: z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>;
level: z.ZodLiteral<"error">;
message: z.ZodString;
provider: z.ZodLiteral<"linear">;
}, z.core.$strict>, z.ZodObject<{
code: z.ZodEnum<{
ambiguous_github_identity: "ambiguous_github_identity";
ambiguous_google_email: "ambiguous_google_email";
ambiguous_provider_email: "ambiguous_provider_email";
conflicting_github_identity: "conflicting_github_identity";
invalid_google_github_identity: "invalid_google_github_identity";
invalid_google_org_shape: "invalid_google_org_shape";
pending_provider_invitation: "pending_provider_invitation";
protected_linear_account: "protected_linear_account";
provider_error: "provider_error";
unmatched_provider_account: "unmatched_provider_account";
}>;
context: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
level: z.ZodEnum<{
error: "error";
warning: "warning";
}>;
message: z.ZodString;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
}, z.core.$strip>]>>;
issues: z.ZodArray<z.ZodObject<{
details: z.ZodRecord<z.ZodString, z.ZodString>;
googleUserId: z.ZodOptional<z.ZodString>;
id: z.ZodString;
kind: z.ZodEnum<{
active_downstream_for_inactive_google: "active_downstream_for_inactive_google";
active_downstream_without_google: "active_downstream_without_google";
coverage_failure: "coverage_failure";
missing_google_org_metadata: "missing_google_org_metadata";
}>;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
summary: z.ZodString;
}, z.core.$strip>>;
stats: z.ZodObject<{
activeGooglePeople: z.ZodNumber;
googleUsers: z.ZodNumber;
providerAccounts: z.ZodRecord<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}> & z.core.$partial, z.ZodNumber>;
inactiveGoogleUsers: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
reviewedLinearSuspension: z.ZodOptional<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodEmail;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
organizationId: z.ZodUUID;
organizationUrlKey: z.ZodString;
}, z.core.$strict>>;
scheduledLinearSuspension: z.ZodOptional<z.ZodLiteral<true>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
plan: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"identity-provisioning">;
execution: z.ZodLiteral<"managed">;
githubIdentitySeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"disabled">;
reason: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
artifact: z.ZodReadonly<z.ZodObject<{
entries: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
evidence: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
source: z.ZodEnum<{
"github-enterprise-saml": "github-enterprise-saml";
"identity-admin": "identity-admin";
}>;
verifiedAt: z.ZodISODateTime;
}, z.core.$strict>>;
kind: z.ZodLiteral<"exact-match">;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"unresolved">;
reason: z.ZodEnum<{
"github-member-not-found": "github-member-not-found";
"missing-verified-evidence": "missing-verified-evidence";
"unverified-heuristic": "unverified-heuristic";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-heuristic": "ambiguous-heuristic";
"evidence-id-login-mismatch": "evidence-id-login-mismatch";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">>>;
schemaVersion: z.ZodLiteral<"github-identity-seed-plan/v1">;
sourceRevision: z.ZodString;
summary: z.ZodReadonly<z.ZodObject<{
conflicts: z.ZodNumber;
exactMatches: z.ZodNumber;
unresolved: z.ZodNumber;
}, z.core.$strict>>;
contentHash: z.core.$ZodBranded<z.ZodString, "GitHubIdentitySeedContentHash", "out">;
}, z.core.$strict>>;
githubSourceFingerprint: z.ZodString;
kind: z.ZodLiteral<"managed">;
maxChanges: z.ZodNumber;
maxProviderReads: z.ZodNumber;
userPlans: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"blocked">;
reason: z.ZodEnum<{
deleted: "deleted";
inactive: "inactive";
"not-found": "not-found";
}>;
userId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>, z.ZodObject<{
current: z.ZodNullable<z.ZodObject<{
githubLogin: z.ZodOptional<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">>;
githubUserId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">>;
}, z.core.$strict>>;
desired: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"update">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
identity: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>], "kind">>;
}, z.core.$strict>], "kind">;
killSwitchEngaged: z.ZodLiteral<false>;
providerExecution: z.ZodLiteral<"audit-only">;
schemaPlan: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"add-fields">;
schemaId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"create">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
schemaId: z.ZodString;
}, z.core.$strict>], "kind">, z.ZodObject<{
kind: z.ZodLiteral<"not-selected">;
}, z.core.$strict>]>;
subjects: z.ZodArray<z.ZodObject<{
authorityRevision: z.ZodString;
githubLinked: z.ZodBoolean;
googleUserId: z.ZodString;
lifecycle: z.ZodEnum<{
active: "active";
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
}, z.core.$strict>>;
}, z.core.$strict>], z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-names">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeRealName: z.ZodString;
desiredName: z.ZodString;
email: z.ZodEmail;
type: z.ZodLiteral<"repair-default-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>;
branchId: z.ZodLiteral<"slack-names">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"linear-profiles">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeFullName: z.ZodString;
desiredFullName: z.ZodString;
email: z.ZodEmail;
linearUserId: z.ZodString;
type: z.ZodLiteral<"repair-default-full-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>;
branchId: z.ZodLiteral<"linear-profiles">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"google-group-cleanup">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodObject<{
authorityEmail: z.ZodOptional<z.ZodEmail>;
googleGroupEmail: z.ZodEmail;
googleGroupId: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
lifecycle: z.ZodEnum<{
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
memberEmail: z.ZodEmail;
memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
role: z.ZodOptional<z.ZodEnum<{
MANAGER: "MANAGER";
OWNER: "OWNER";
}>>;
type: z.ZodLiteral<"remove-inactive-google-group-member">;
}, z.core.$strict>;
expectedPlanHash: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"pagerduty-teams">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"add">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
currentPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"set-role">;
}, z.core.$strict>>], "type">;
expectedPlanHash: z.ZodString;
reviewId: z.ZodUUID;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"sentry-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<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>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"posthog-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"invite">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"cancel-invite">;
inviteId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"remove-member">;
userUuid: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"retire-grant">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"bind-member">;
userUuid: z.ZodString;
}, z.core.$strict>], "type">;
expectedPlanHash: z.ZodString;
sourceAuthorityFingerprint: z.ZodString;
organizationId: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>]>>;
googleUsers: z.ZodNumber;
policyVersion: z.ZodEnum<{
"workspace-directory-v10": "workspace-directory-v10";
"workspace-directory-v11": "workspace-directory-v11";
"workspace-directory-v12": "workspace-directory-v12";
}>;
}, z.core.$strict>;
export type WorkspaceDirectoryPlan = z.output<typeof WorkspaceDirectoryPlanSchema>;
type PlannedChangeKind = "pagerduty-teams" | "sentry-memberships" | "posthog-memberships" | "google-group-cleanup" | "slack-names" | "linear-profiles" | "trycomp-people" | "fanout" | "drive-org-chart" | "github-access" | "slack-groups-channels" | "slack-profiles";
export type WorkspaceDirectoryChangeDetails = {
[Kind in PlannedChangeKind]: {
kind: Kind;
plan: WorkspaceDirectoryPlan;
};
}[PlannedChangeKind] | {
kind: "linear-suspensions";
actions: z.output<typeof AccessGuardPlanSchema>["actions"];
plan?: WorkspaceDirectoryPlan | undefined;
};
export declare const WorkspaceDirectoryChangeDetailsSchema: z.ZodType<WorkspaceDirectoryChangeDetails>;
export declare const WorkspaceDirectoryOperationInputSchema: z.ZodUnion<readonly [z.ZodDefault<z.ZodObject<{
includedActionIds: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>>>>;
}, z.core.$strict>>, z.ZodObject<{
includedActionIds: z.ZodTuple<[z.ZodLiteral<"workspace-directory.slack-groups-channels">], null>;
reviewedSlackLifecycleRemoval: z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserGroupId: z.ZodString;
slackUserId: z.ZodString;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
includedActionIds: z.ZodTuple<[z.ZodLiteral<"workspace-directory.linear-suspensions">], null>;
reviewedLinearSuspension: z.ZodObject<{
accountId: z.ZodString;
email: z.ZodEmail;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
organizationId: z.ZodUUID;
organizationUrlKey: z.ZodString;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
includedActionIds: z.ZodTuple<[z.ZodLiteral<"workspace-directory.google-group-cleanup">], null>;
reviewedGoogleGroupCleanup: z.ZodPipe<z.ZodObject<{
action: z.ZodObject<{
authorityEmail: z.ZodOptional<z.ZodEmail>;
googleGroupEmail: z.ZodEmail;
googleGroupId: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
lifecycle: z.ZodEnum<{
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
memberEmail: z.ZodEmail;
memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
role: z.ZodOptional<z.ZodEnum<{
MANAGER: "MANAGER";
OWNER: "OWNER";
}>>;
type: z.ZodLiteral<"remove-inactive-google-group-member">;
}, z.core.$strict>;
expectedPlanHash: z.ZodString;
}, z.core.$strict>, z.ZodTransform<{
expectedPlanHash: string;
action: {
googleGroupEmail: string;
googleGroupId: string;
googleUserId: string & z.$brand<"GoogleDirectoryUserId">;
lifecycle: "archived" | "deleted" | "suspended";
memberEmail: string;
memberId: string & z.$brand<"GoogleDirectoryUserId">;
type: "remove-inactive-google-group-member";
authorityEmail: string;
} | {
googleGroupEmail: string;
googleGroupId: string;
googleUserId: string & z.$brand<"GoogleDirectoryUserId">;
lifecycle: "archived" | "deleted" | "suspended";
memberEmail: string;
memberId: string & z.$brand<"GoogleDirectoryUserId">;
type: "remove-inactive-google-group-member";
authorityEmail: string;
role: "MANAGER" | "OWNER";
};
}, {
action: {
authorityEmail?: string | undefined;
googleGroupEmail: string;
googleGroupId: string;
googleUserId: string & z.$brand<"GoogleDirectoryUserId">;
lifecycle: "archived" | "deleted" | "suspended";
memberEmail: string;
memberId: string & z.$brand<"GoogleDirectoryUserId">;
role?: "MANAGER" | "OWNER" | undefined;
type: "remove-inactive-google-group-member";
};
expectedPlanHash: string;
}>>;
}, z.core.$strict>]>;
export declare const WorkspaceDirectoryWorkflowParamsSchema: z.ZodObject<{
reviewedSlackLifecycleIntent: z.ZodOptional<z.ZodObject<{
claimedAtMs: z.ZodNumber;
claimedTickId: z.ZodString;
intentId: z.ZodString;
proof: z.ZodObject<{
actorHash: z.ZodString;
branchHash: z.ZodString;
expiresAtMs: z.ZodNumber;
generatedAtMs: z.ZodNumber;
leafPlanHash: z.ZodString;
originalPlanHash: z.ZodString;
reviewed: z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserGroupId: z.ZodString;
slackUserId: z.ZodString;
}, z.core.$strict>;
sourceHash: z.ZodString;
}, z.core.$strict>;
state: z.ZodLiteral<"claimed">;
}, z.core.$strict>>;
reviewedProviderIntent: z.ZodOptional<z.ZodObject<{
claimedAtMs: z.ZodNumber;
claimedTickId: z.ZodString;
intentId: z.ZodString;
state: z.ZodLiteral<"claimed">;
proof: z.ZodUnion<readonly [z.ZodObject<{
actorHash: z.ZodString;
branchHash: z.ZodString;
expiresAtMs: z.ZodNumber;
generatedAtMs: z.ZodNumber;
leafPlanHash: z.ZodString;
originalPlanHash: z.ZodString;
reviewed: z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserGroupId: z.ZodString;
slackUserId: z.ZodString;
}, z.core.$strict>;
sourceHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
actorHash: z.ZodString;
branchHash: z.ZodString;
expiresAtMs: z.ZodNumber;
generatedAtMs: z.ZodNumber;
leafPlanHash: z.ZodString;
originalPlanHash: z.ZodString;
sourceHash: z.ZodString;
provider: z.ZodLiteral<"linear">;
reviewed: z.ZodObject<{
accountId: z.ZodString;
email: z.ZodEmail;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
organizationId: z.ZodUUID;
organizationUrlKey: z.ZodString;
}, z.core.$strict>;
beforeHash: z.ZodString;
afterHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
actorHash: z.ZodString;
branchHash: z.ZodString;
expiresAtMs: z.ZodNumber;
generatedAtMs: z.ZodNumber;
leafPlanHash: z.ZodString;
originalPlanHash: z.ZodString;
sourceHash: z.ZodString;
provider: z.ZodLiteral<"google-group-cleanup">;
reviewed: z.ZodPipe<z.ZodObject<{
action: z.ZodObject<{
authorityEmail: z.ZodOptional<z.ZodEmail>;
googleGroupEmail: z.ZodEmail;
googleGroupId: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
lifecycle: z.ZodEnum<{
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
memberEmail: z.ZodEmail;
memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
role: z.ZodOptional<z.ZodEnum<{
MANAGER: "MANAGER";
OWNER: "OWNER";
}>>;
type: z.ZodLiteral<"remove-inactive-google-group-member">;
}, z.core.$strict>;
expectedPlanHash: z.ZodString;
}, z.core.$strict>, z.ZodTransform<{
expectedPlanHash: string;
action: {
googleGroupEmail: string;
googleGroupId: string;
googleUserId: string & z.$brand<"GoogleDirectoryUserId">;
lifecycle: "archived" | "deleted" | "suspended";
memberEmail: string;
memberId: string & z.$brand<"GoogleDirectoryUserId">;
type: "remove-inactive-google-group-member";
authorityEmail: string;
} | {
googleGroupEmail: string;
googleGroupId: string;
googleUserId: string & z.$brand<"GoogleDirectoryUserId">;
lifecycle: "archived" | "deleted" | "suspended";
memberEmail: string;
memberId: string & z.$brand<"GoogleDirectoryUserId">;
type: "remove-inactive-google-group-member";
authorityEmail: string;
role: "MANAGER" | "OWNER";
};
}, {
action: {
authorityEmail?: string | undefined;
googleGroupEmail: string;
googleGroupId: string;
googleUserId: string & z.$brand<"GoogleDirectoryUserId">;
lifecycle: "archived" | "deleted" | "suspended";
memberEmail: string;
memberId: string & z.$brand<"GoogleDirectoryUserId">;
role?: "MANAGER" | "OWNER" | undefined;
type: "remove-inactive-google-group-member";
};
expectedPlanHash: string;
}>>;
beforeHash: z.ZodString;
afterHash: z.ZodString;
}, z.core.$strict>]>;
}, z.core.$strict>>;
authorizedActionIds: z.ZodArray<z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>>;
requestedBy: z.ZodString;
scheduledTickId: z.ZodOptional<z.ZodString>;
planGeneratedAt: z.ZodISODateTime;
plan: z.ZodObject<{
authorityFingerprint: z.ZodString;
branches: z.ZodTuple<[z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodArray<z.ZodObject<{
after: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
before: z.ZodObject<{
linkedin: z.ZodString;
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
title: z.ZodString;
}, z.core.$strict>;
changedFields: z.ZodArray<z.ZodEnum<{
linkedin: "linkedin";
manages: "manages";
reportsTo: "reportsTo";
team: "team";
title: "title";
}>>;
googleUserId: z.ZodNullable<z.ZodString>;
identity: z.ZodString;
reason: z.ZodEnum<{
matched: "matched";
not_org_participant: "not_org_participant";
slack_orphan: "slack_orphan";
suspended: "suspended";
}>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-profiles">;
changes: z.ZodTuple<[], null>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodString;
desiredSha256: z.ZodString;
fileId: z.ZodOptional<z.ZodString>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"drive-org-chart">;
bytes: z.ZodNumber;
people: z.ZodNumber;
photos: z.ZodNumber;
currentSha256: z.ZodNull;
desiredSha256: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
selectedChannelRename: z.ZodNullable<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
selectedProvenanceChannelRemovals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
selectedRemovalCount: z.ZodNumber;
selectedUserGroupHandles: z.ZodArray<z.ZodString>;
selectedUserGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">;
authority: z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">;
channelAdditions: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelAdditionIds: z.ZodArray<z.ZodString>;
channelRemovals: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
isArchived: z.ZodBoolean;
isPrivate: z.ZodBoolean;
name: z.ZodString;
}, z.core.$strict>>>;
channelRemovalIds: z.ZodArray<z.ZodString>;
currentHandle: z.ZodNullable<z.ZodString>;
currentName: z.ZodNullable<z.ZodString>;
desiredName: z.ZodString;
effectiveAccessAdditions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
expectedSlackUserGroupId: z.ZodNullable<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
memberRemovalAuthority: z.ZodEnum<{
contractor_group_authoritative: "contractor_group_authoritative";
explicit_google_lifecycle: "explicit_google_lifecycle";
google_group_authoritative: "google_group_authoritative";
}>;
memberRemovals: z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>;
requiredChannelIds: z.ZodArray<z.ZodString>;
slackUserGroupId: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>>;
reviewedLifecycleRemoval: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserGroupId: z.ZodString;
slackUserId: z.ZodString;
}, z.core.$strict>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodString;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
additions: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-groups-channels">;
channelRenames: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
currentName: z.ZodString;
expectedName: z.ZodString;
isPrivate: z.ZodBoolean;
}, z.core.$strict>>;
lifecycle: z.ZodObject<{
googleTeamGroupsOutsideAssignmentAllowlist: z.ZodArray<z.ZodEmail>;
nonstandardPublicChannels: z.ZodArray<z.ZodString>;
privateChannelRenameCandidates: z.ZodArray<z.ZodObject<{
currentName: z.ZodString;
expectedName: z.ZodString;
}, z.core.$strict>>;
slackTeamChannelCollisions: z.ZodArray<z.ZodString>;
slackUsersWithoutTeamAssignment: z.ZodArray<z.ZodObject<{
identity: z.ZodNullable<z.ZodEmail>;
slackUserId: z.ZodString;
}, z.core.$strict>>;
verticalRetirementCandidates: z.ZodArray<z.ZodString>;
}, z.core.$strict>;
removals: z.ZodArray<z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
identity: z.ZodEmail;
isPrivate: z.ZodBoolean;
slackUserId: z.ZodString;
removalAuthority: z.ZodOptional<z.ZodLiteral<"contractor_group_authoritative">>;
}, z.core.$strict>>;
userGroups: z.ZodArray<z.ZodObject<{
automationOwnership: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"legacy_unmanaged">;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"automation_bootstrap">;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>, z.ZodObject<{
allowedChannelIds: z.ZodArray<z.ZodString>;
cutoverRevision: z.ZodString;
evidenceDigest: z.ZodString;
excludedGoogleGroupIds: z.ZodArray<z.ZodString>;
kind: z.ZodEnum<{
automation_created: "automation_created";
explicitly_adopted: "explicitly_adopted";
}>;
sourceGoogleGroupIds: z.ZodArray<z.ZodString>;
}, z.core.$strict>], "kind">>;
authority: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
email: z.ZodEmail;
excludedEmails: z.ZodOptional<z.ZodArray<z.ZodEmail>>;
excludedIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
id: z.ZodString;
kind: z.ZodLiteral<"google_group">;
}, z.core.$strict>, z.ZodObject<{
emails: z.ZodArray<z.ZodEmail>;
excludedEmails: z.ZodArray<z.ZodEmail>;
excludedIds: z.ZodArray<z.ZodString>;
ids: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"google_group_union">;
}, z.core.$strict>], "kind">>;
currentHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
currentName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
channelAdditionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
channelRemovalIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
desiredChannelIds: z.ZodArray<z.ZodString>;
desiredName: z.ZodOptional<z.ZodString>;
desiredUserIds: z.ZodArray<z.ZodString>;
handle: z.ZodString;
memberAdditions: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberAdditionUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
memberRemovals: z.ZodOptional<z.ZodArray<z.ZodObject<{
identity: z.ZodEmail;
slackUserId: z.ZodString;
}, z.core.$strict>>>;
memberRemovalUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
removalCount: z.ZodDefault<z.ZodNumber>;
requiredChannelIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
slackUserGroupId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
status: z.ZodEnum<{
create: "create";
in_sync: "in_sync";
update: "update";
}>;
}, z.core.$strict>>;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
planHash: z.ZodNull;
selectedChannelAdditions: z.ZodDefault<z.ZodTuple<[], null>>;
selectedChannelRename: z.ZodDefault<z.ZodNull>;
selectedProvenanceChannelRemovals: z.ZodDefault<z.ZodTuple<[], null>>;
selectedRemovalCount: z.ZodDefault<z.ZodLiteral<0>>;
selectedUserGroupHandles: z.ZodDefault<z.ZodTuple<[], null>>;
selectedUserGroups: z.ZodDefault<z.ZodTuple<[], null>>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
accountPlans: z.ZodArray<z.ZodObject<{
googleUserId: z.ZodString;
plan: z.ZodDiscriminatedUnion<[z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"executable">;
operations: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">>>;
}, z.core.$strict>, z.ZodObject<{
blockers: z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"direct-repository-grants": "direct-repository-grants";
"identity-mismatch": "identity-mismatch";
"inherited-team-membership": "inherited-team-membership";
"outside-collaborator": "outside-collaborator";
"owner-protected": "owner-protected";
"pending-invitation": "pending-invitation";
"pending-team-membership": "pending-team-membership";
"privileged-invitation": "privileged-invitation";
"protected-google-identity": "protected-google-identity";
"repository-inventory-incomplete": "repository-inventory-incomplete";
"saml-unlinked": "saml-unlinked";
"team-maintainer": "team-maintainer";
}>;
detail: z.ZodString;
}, z.core.$strict>>>;
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
authorityHash: z.ZodString;
contentHash: z.ZodString;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.ZodString>>;
organizationId: z.ZodString;
organizationLogin: z.ZodString;
selectedOperation: z.ZodNullable<z.ZodObject<{
desired: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
desiredTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"present">;
managedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
organizationRole: z.ZodLiteral<"member">;
rehirePolicy: z.ZodLiteral<"fresh-least-privilege">;
reviewedDirectGrantRetention: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
allowedTeamSlugs: z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">>>;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
grants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.core.$ZodBranded<z.ZodNumber, "GitHubRepositoryId", "out">;
repositoryName: z.core.$ZodBranded<z.ZodString, "GitHubRepositoryName", "out">;
}, z.core.$strict>>>;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>>;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
github: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>;
lifecycle: z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"absent">;
subject: z.ZodReadonly<z.ZodObject<{
aliases: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">>>>;
authorityRevision: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
github: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"unlinked">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"verified">;
verifiedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-match": "ambiguous-match";
"duplicate-login": "duplicate-login";
"id-login-mismatch": "id-login-mismatch";
}>;
}, z.core.$strict>>], "kind">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
isAdmin: z.ZodOptional<z.ZodBoolean>;
isDelegatedAdmin: z.ZodOptional<z.ZodBoolean>;
observedAt: z.core.$ZodBranded<z.ZodISODateTime, "IsoInstant", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
lifecycle: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"suspended">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"archived">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"deleted">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">;
googleUserId: z.ZodString;
operation: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"invite-organization-member">;
role: z.ZodLiteral<"member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
invitationId: z.core.$ZodBranded<z.ZodNumber, "GitHubInvitationId", "out">;
kind: z.ZodLiteral<"cancel-invitation">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-organization-member">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"add-team-member">;
role: z.ZodLiteral<"member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
kind: z.ZodLiteral<"remove-team-member">;
teamSlug: z.core.$ZodBranded<z.ZodString, "GitHubTeamSlug", "out">;
}, z.core.$strict>>], "kind">;
}, z.core.$strict>>;
teamAccessHash: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodString;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodArray<z.ZodObject<{
authorityPath: z.ZodArray<z.ZodString>;
blockers: z.ZodArray<z.ZodString>;
current: z.ZodNullable<z.ZodEnum<{
absent: "absent";
present: "present";
}>>;
desired: z.ZodNullable<z.ZodEnum<{
blocked: "blocked";
member: "member";
none: "none";
}>>;
grace: z.ZodEnum<{
age_unknown: "age_unknown";
conflicted: "conflicted";
grace_elapsed: "grace_elapsed";
immediate_authoritative: "immediate_authoritative";
not_applicable: "not_applicable";
pending_grace: "pending_grace";
}>;
id: z.ZodString;
kind: z.ZodEnum<{
org_add: "org_add";
org_remove: "org_remove";
policy_exception: "policy_exception";
team_add: "team_add";
team_remove: "team_remove";
}>;
privilege: z.ZodUnion<readonly [z.ZodEnum<{
admin: "admin";
maintain: "maintain";
none: "none";
pull: "pull";
push: "push";
triage: "triage";
unknown: "unknown";
}>, z.ZodEnum<{
blocked: "blocked";
maintainer: "maintainer";
member: "member";
repository_specific: "repository_specific";
}>]>;
reason: z.ZodString;
safelyActionable: z.ZodBoolean;
subject: z.ZodObject<{
email: z.ZodOptional<z.ZodEmail>;
githubId: z.ZodOptional<z.ZodNumber>;
googleId: z.ZodOptional<z.ZodString>;
login: z.ZodOptional<z.ZodString>;
}, z.core.$strip>;
target: z.ZodString;
}, z.core.$strip>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"github-access">;
contentHash: z.ZodNull;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
proposedChanges: z.ZodTuple<[], null>;
}, z.core.$strict>], "execution">, z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
plan: z.ZodObject<{
actions: z.ZodArray<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
googleUserId: z.ZodString;
provider: z.ZodLiteral<"linear">;
type: z.ZodLiteral<"suspend">;
}, z.core.$strip>>;
diagnostics: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
code: z.ZodLiteral<"provider_readiness">;
context: z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>;
level: z.ZodLiteral<"error">;
message: z.ZodString;
provider: z.ZodLiteral<"linear">;
}, z.core.$strict>, z.ZodObject<{
code: z.ZodEnum<{
ambiguous_github_identity: "ambiguous_github_identity";
ambiguous_google_email: "ambiguous_google_email";
ambiguous_provider_email: "ambiguous_provider_email";
conflicting_github_identity: "conflicting_github_identity";
invalid_google_github_identity: "invalid_google_github_identity";
invalid_google_org_shape: "invalid_google_org_shape";
pending_provider_invitation: "pending_provider_invitation";
protected_linear_account: "protected_linear_account";
provider_error: "provider_error";
unmatched_provider_account: "unmatched_provider_account";
}>;
context: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
level: z.ZodEnum<{
error: "error";
warning: "warning";
}>;
message: z.ZodString;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
}, z.core.$strip>]>>;
issues: z.ZodArray<z.ZodObject<{
details: z.ZodRecord<z.ZodString, z.ZodString>;
googleUserId: z.ZodOptional<z.ZodString>;
id: z.ZodString;
kind: z.ZodEnum<{
active_downstream_for_inactive_google: "active_downstream_for_inactive_google";
active_downstream_without_google: "active_downstream_without_google";
coverage_failure: "coverage_failure";
missing_google_org_metadata: "missing_google_org_metadata";
}>;
provider: z.ZodOptional<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>>;
summary: z.ZodString;
}, z.core.$strip>>;
stats: z.ZodObject<{
activeGooglePeople: z.ZodNumber;
googleUsers: z.ZodNumber;
providerAccounts: z.ZodRecord<z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}> & z.core.$partial, z.ZodNumber>;
inactiveGoogleUsers: z.ZodNumber;
}, z.core.$strip>;
}, z.core.$strip>;
reviewedLinearSuspension: z.ZodOptional<z.ZodObject<{
accountId: z.ZodString;
email: z.ZodEmail;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
organizationId: z.ZodUUID;
organizationUrlKey: z.ZodString;
}, z.core.$strict>>;
scheduledLinearSuspension: z.ZodOptional<z.ZodLiteral<true>>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"access-guard">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
plan: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"identity-provisioning">;
execution: z.ZodLiteral<"managed">;
githubIdentitySeed: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"disabled">;
reason: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
artifact: z.ZodReadonly<z.ZodObject<{
entries: z.ZodReadonly<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
evidence: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
source: z.ZodEnum<{
"github-enterprise-saml": "github-enterprise-saml";
"identity-admin": "identity-admin";
}>;
verifiedAt: z.ZodISODateTime;
}, z.core.$strict>>;
kind: z.ZodLiteral<"exact-match">;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"unresolved">;
reason: z.ZodEnum<{
"github-member-not-found": "github-member-not-found";
"missing-verified-evidence": "missing-verified-evidence";
"unverified-heuristic": "unverified-heuristic";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
candidates: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"conflict">;
reason: z.ZodEnum<{
"ambiguous-heuristic": "ambiguous-heuristic";
"evidence-id-login-mismatch": "evidence-id-login-mismatch";
}>;
subject: z.ZodReadonly<z.ZodObject<{
displayName: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
}, z.core.$strict>>;
}, z.core.$strict>>], "kind">>>;
schemaVersion: z.ZodLiteral<"github-identity-seed-plan/v1">;
sourceRevision: z.ZodString;
summary: z.ZodReadonly<z.ZodObject<{
conflicts: z.ZodNumber;
exactMatches: z.ZodNumber;
unresolved: z.ZodNumber;
}, z.core.$strict>>;
contentHash: z.core.$ZodBranded<z.ZodString, "GitHubIdentitySeedContentHash", "out">;
}, z.core.$strict>>;
githubSourceFingerprint: z.ZodString;
kind: z.ZodLiteral<"managed">;
maxChanges: z.ZodNumber;
maxProviderReads: z.ZodNumber;
userPlans: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"blocked">;
reason: z.ZodEnum<{
deleted: "deleted";
inactive: "inactive";
"not-found": "not-found";
}>;
userId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>, z.ZodObject<{
current: z.ZodNullable<z.ZodObject<{
githubLogin: z.ZodOptional<z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">>;
githubUserId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">>;
}, z.core.$strict>>;
desired: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"update">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
identity: z.ZodObject<{
githubLogin: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
githubUserId: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
user: z.ZodObject<{
etag: z.ZodString;
id: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
primaryEmail: z.ZodEmail;
}, z.core.$strict>;
}, z.core.$strict>], "kind">>;
}, z.core.$strict>], "kind">;
killSwitchEngaged: z.ZodLiteral<false>;
providerExecution: z.ZodLiteral<"audit-only">;
schemaPlan: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"add-fields">;
schemaId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
issues: z.ZodArray<z.ZodString>;
kind: z.ZodLiteral<"blocked">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodLiteral<"STRING">;
indexed: z.ZodLiteral<true>;
multiValued: z.ZodLiteral<false>;
readAccessType: z.ZodLiteral<"ADMINS_AND_SELF">;
}, z.core.$strip>>;
kind: z.ZodLiteral<"create">;
}, z.core.$strict>, z.ZodObject<{
after: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
before: z.ZodObject<{
fields: z.ZodArray<z.ZodObject<{
fieldName: z.ZodEnum<{
githubLogin: "githubLogin";
githubUserId: "githubUserId";
}>;
fieldType: z.ZodEnum<{
BOOL: "BOOL";
DATE: "DATE";
DOUBLE: "DOUBLE";
EMAIL: "EMAIL";
INT64: "INT64";
PHONE: "PHONE";
STRING: "STRING";
}>;
indexed: z.ZodBoolean;
multiValued: z.ZodBoolean;
readAccessType: z.ZodNullable<z.ZodString>;
}, z.core.$strict>>;
schemaName: z.ZodNullable<z.ZodString>;
}, z.core.$strict>;
kind: z.ZodLiteral<"unchanged">;
schemaId: z.ZodString;
}, z.core.$strict>], "kind">, z.ZodObject<{
kind: z.ZodLiteral<"not-selected">;
}, z.core.$strict>]>;
subjects: z.ZodArray<z.ZodObject<{
authorityRevision: z.ZodString;
githubLinked: z.ZodBoolean;
googleUserId: z.ZodString;
lifecycle: z.ZodEnum<{
active: "active";
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
}, z.core.$strict>>;
}, z.core.$strict>], z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodObject<{
plan: z.ZodObject<{
errors: z.ZodArray<z.ZodString>;
planHash: z.ZodString;
stats: z.ZodObject<{
activeGoogleEmployees: z.ZodNumber;
contractorGoogleUsers: z.ZodNumber;
trycompMembers: z.ZodNumber;
}, z.core.$strip>;
warnings: z.ZodArray<z.ZodString>;
actions: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
deactivationAuthority: z.ZodOptional<z.ZodEnum<{
contractor_group: "contractor_group";
inactive_google: "inactive_google";
}>>;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"deactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
memberId: z.ZodString;
providerEmail: z.ZodOptional<z.ZodPipe<z.ZodString, z.ZodEmail>>;
type: z.ZodLiteral<"reactivate">;
}, z.core.$strip>, z.ZodObject<{
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
type: z.ZodLiteral<"invite">;
}, z.core.$strip>], "type">>;
}, z.core.$strip>;
schemaVersion: z.ZodLiteral<"trycomp-reviewed/v1">;
deactivationMode: z.ZodOptional<z.ZodEnum<{
"device-free-membership-revocation": "device-free-membership-revocation";
"membership-revocation": "membership-revocation";
}>>;
sourceFingerprint: z.ZodString;
targetBefore: z.ZodArray<z.ZodObject<{
fleetDmLabelId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
platformRole: z.ZodOptional<z.ZodNullable<z.ZodString>>;
deactivated: z.ZodBoolean;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
id: z.ZodString;
isActive: z.ZodBoolean;
role: z.ZodString;
}, z.core.$strict>>;
selectedIdentity: z.ZodOptional<z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
provider: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"member">;
memberId: z.ZodString;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"pending-invitation">;
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
}, z.core.$strict>], "kind">;
}, z.core.$strict>>;
}, z.core.$strict>;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"trycomp-people">;
execution: z.ZodLiteral<"disabled">;
killSwitchEngaged: z.ZodLiteral<true>;
reviewedPlan: z.ZodNull;
}, z.core.$strict>], "execution">, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"slack-names">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeRealName: z.ZodString;
desiredName: z.ZodString;
email: z.ZodEmail;
type: z.ZodLiteral<"repair-default-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
slackUserId: z.ZodString;
}, z.core.$strict>;
branchId: z.ZodLiteral<"slack-names">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
branchId: z.ZodLiteral<"linear-profiles">;
execution: z.ZodLiteral<"managed">;
killSwitchEngaged: z.ZodLiteral<false>;
reviewed: z.ZodNullable<z.ZodObject<{
expectedPlanHash: z.ZodString;
sourceFingerprint: z.ZodString;
action: z.ZodObject<{
beforeFullName: z.ZodString;
desiredFullName: z.ZodString;
email: z.ZodEmail;
linearUserId: z.ZodString;
type: z.ZodLiteral<"repair-default-full-name">;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
}, z.core.$strict>;
branchId: z.ZodLiteral<"linear-profiles">;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"google-group-cleanup">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodObject<{
authorityEmail: z.ZodOptional<z.ZodEmail>;
googleGroupEmail: z.ZodEmail;
googleGroupId: z.ZodString;
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
lifecycle: z.ZodEnum<{
archived: "archived";
deleted: "deleted";
suspended: "suspended";
}>;
memberEmail: z.ZodEmail;
memberId: z.core.$ZodBranded<z.ZodString, "GoogleDirectoryUserId", "out">;
role: z.ZodOptional<z.ZodEnum<{
MANAGER: "MANAGER";
OWNER: "OWNER";
}>>;
type: z.ZodLiteral<"remove-inactive-google-group-member">;
}, z.core.$strict>;
expectedPlanHash: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"pagerduty-teams">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"add">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
email: z.ZodEmail;
pagerDutyTeamId: z.ZodString;
pagerDutyUserId: z.ZodString;
googleGroupId: z.ZodString;
googleUserId: z.ZodString;
currentPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
desiredPagerDutyRole: z.ZodEnum<{
manager: "manager";
observer: "observer";
responder: "responder";
}>;
type: z.ZodLiteral<"set-role">;
}, z.core.$strict>>], "type">;
expectedPlanHash: z.ZodString;
reviewId: z.ZodUUID;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"sentry-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<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>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
diagnostics: z.ZodArray<z.ZodObject<{
code: z.ZodString;
context: z.ZodOptional<z.ZodObject<{
error_code: z.ZodEnum<{
linear_organization_id_mismatch: "linear_organization_id_mismatch";
linear_organization_id_unpinned: "linear_organization_id_unpinned";
linear_organization_url_key_mismatch: "linear_organization_url_key_mismatch";
}>;
kind: z.ZodLiteral<"linear_tenant">;
observed_organization_id: z.ZodUUID;
observed_url_key: z.ZodString;
}, z.core.$strict>>;
message: z.ZodString;
scope: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"authority">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"audit">;
provider: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>, z.ZodObject<{
actionId: z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>;
kind: z.ZodLiteral<"action">;
}, z.core.$strict>], "kind">>;
severity: z.ZodEnum<{
blocker: "blocker";
info: "info";
warning: "warning";
}>;
}, z.core.$strict>>;
killSwitchEngaged: z.ZodBoolean;
branchId: z.ZodLiteral<"posthog-memberships">;
execution: z.ZodEnum<{
"audit-only": "audit-only";
disabled: "disabled";
managed: "managed";
}>;
reviewed: z.ZodNullable<z.ZodObject<{
action: z.ZodDiscriminatedUnion<[z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"invite">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"cancel-invite">;
inviteId: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"remove-member">;
userUuid: z.ZodString;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"retire-grant">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
type: z.ZodLiteral<"bind-member">;
userUuid: z.ZodString;
}, z.core.$strict>], "type">;
expectedPlanHash: z.ZodString;
sourceAuthorityFingerprint: z.ZodString;
organizationId: z.ZodString;
}, z.core.$strict>>;
sourceFingerprint: z.ZodString;
}, z.core.$strict>]>>;
googleUsers: z.ZodNumber;
policyVersion: z.ZodEnum<{
"workspace-directory-v10": "workspace-directory-v10";
"workspace-directory-v11": "workspace-directory-v11";
"workspace-directory-v12": "workspace-directory-v12";
}>;
}, z.core.$strict>;
planHash: z.ZodString;
}, z.core.$strict>;
export type WorkspaceDirectoryWorkflowParams = z.output<typeof WorkspaceDirectoryWorkflowParamsSchema>;
export declare const WorkspaceDirectoryWorkflowResultSchema: z.ZodObject<{
authorizedActionIds: z.ZodArray<z.ZodEnum<{
"workspace-directory.drive-org-chart": "workspace-directory.drive-org-chart";
"workspace-directory.fanout": "workspace-directory.fanout";
"workspace-directory.github-access": "workspace-directory.github-access";
"workspace-directory.google-group-cleanup": "workspace-directory.google-group-cleanup";
"workspace-directory.linear-profiles": "workspace-directory.linear-profiles";
"workspace-directory.linear-suspensions": "workspace-directory.linear-suspensions";
"workspace-directory.pagerduty-teams": "workspace-directory.pagerduty-teams";
"workspace-directory.posthog-memberships": "workspace-directory.posthog-memberships";
"workspace-directory.sentry-memberships": "workspace-directory.sentry-memberships";
"workspace-directory.slack-groups-channels": "workspace-directory.slack-groups-channels";
"workspace-directory.slack-names": "workspace-directory.slack-names";
"workspace-directory.slack-profiles": "workspace-directory.slack-profiles";
"workspace-directory.trycomp-people": "workspace-directory.trycomp-people";
}>>;
branches: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"managed">;
state: z.ZodEnum<{
applied: "applied";
skipped: "skipped";
}>;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"audit-only">;
state: z.ZodLiteral<"audited">;
}, z.core.$strict>, z.ZodObject<{
detail: z.ZodString;
branchId: z.ZodLiteral<"access-guard" | "drive-org-chart" | "github-access" | "google-group-cleanup" | "identity-provisioning" | "linear-profiles" | "pagerduty-teams" | "posthog-memberships" | "sentry-memberships" | "slack-groups-channels" | "slack-names" | "slack-profiles" | "trycomp-people">;
execution: z.ZodLiteral<"disabled">;
state: z.ZodLiteral<"disabled">;
}, z.core.$strict>]>>;
executionId: z.ZodString;
planHash: z.ZodString;
}, z.core.$strict>;
export type WorkspaceDirectoryWorkflowResult = z.output<typeof WorkspaceDirectoryWorkflowResultSchema>;
export {};