execution/capture-workspace-name-branches
@sarj-ai/workspace-sync/execution/capture-workspace-name-branches ยท Source
import type { GoogleDirectoryUser } from "../org-sync/model.ts";import { WORKSPACE_DIRECTORY_ACTION_IDS, type WorkspaceDirectoryPlan } from "./contracts.ts";import type { WorkspaceNameServices } from "./provider-runtime-ports.ts";export declare function captureWorkspaceNameBranches(plan: WorkspaceDirectoryPlan, users: readonly GoogleDirectoryUser[], services: WorkspaceNameServices, includes: (actionId: typeof WORKSPACE_DIRECTORY_ACTION_IDS.linearProfiles | typeof WORKSPACE_DIRECTORY_ACTION_IDS.slackNames) => boolean): Promise<({ diagnostics: { code: string; context?: { error_code: "linear_organization_id_mismatch" | "linear_organization_id_unpinned" | "linear_organization_url_key_mismatch"; kind: "linear_tenant"; observed_organization_id: string; observed_url_key: string; } | undefined; message: string; scope?: { kind: "authority"; } | { kind: "audit"; provider: "ashby" | "attio" | "github" | "linear" | "pagerduty" | "slack"; } | { actionId: "workspace-directory.drive-org-chart" | "workspace-directory.fanout" | "workspace-directory.github-access" | "workspace-directory.google-group-cleanup" | "workspace-directory.linear-profiles" | "workspace-directory.linear-suspensions" | "workspace-directory.pagerduty-teams" | "workspace-directory.posthog-memberships" | "workspace-directory.sentry-memberships" | "workspace-directory.slack-groups-channels" | "workspace-directory.slack-names" | "workspace-directory.slack-profiles" | "workspace-directory.trycomp-people"; kind: "action"; } | undefined; severity: "blocker" | "info" | "warning"; }[]; branchId: "slack-names"; execution: "managed"; killSwitchEngaged: false; reviewed: { expectedPlanHash: string; sourceFingerprint: string; action: { beforeRealName: string; desiredName: string; email: string; type: "repair-default-name"; googleUserId: string & import("zod").$brand<"GoogleUserId">; slackUserId: string; }; branchId: "slack-names"; } | null; sourceFingerprint: string;} | { diagnostics: { code: string; context?: { error_code: "linear_organization_id_mismatch" | "linear_organization_id_unpinned" | "linear_organization_url_key_mismatch"; kind: "linear_tenant"; observed_organization_id: string; observed_url_key: string; } | undefined; message: string; scope?: { kind: "authority"; } | { kind: "audit"; provider: "ashby" | "attio" | "github" | "linear" | "pagerduty" | "slack"; } | { actionId: "workspace-directory.drive-org-chart" | "workspace-directory.fanout" | "workspace-directory.github-access" | "workspace-directory.google-group-cleanup" | "workspace-directory.linear-profiles" | "workspace-directory.linear-suspensions" | "workspace-directory.pagerduty-teams" | "workspace-directory.posthog-memberships" | "workspace-directory.sentry-memberships" | "workspace-directory.slack-groups-channels" | "workspace-directory.slack-names" | "workspace-directory.slack-profiles" | "workspace-directory.trycomp-people"; kind: "action"; } | undefined; severity: "blocker" | "info" | "warning"; }[]; branchId: "linear-profiles"; execution: "managed"; killSwitchEngaged: false; reviewed: { expectedPlanHash: string; sourceFingerprint: string; action: { beforeFullName: string; desiredFullName: string; email: string; linearUserId: string; type: "repair-default-full-name"; googleUserId: string & import("zod").$brand<"GoogleUserId">; }; branchId: "linear-profiles"; } | null; sourceFingerprint: string;})[]>;