execution/identity-seed-preview
@sarj-ai/workspace-sync/execution/identity-seed-preview ยท Source
import { z } from "zod";import { type GoogleGithubIdentitySeedSource } from "../identity-sync/google-github-identity-seed-service.ts";import { type GoogleDirectoryClient } from "../org-sync/google-directory-client.ts";import type { WorkspaceSyncRuntimeBindings } from "./provider-runtime-ports.ts";import type { WorkspaceRuntimeConfiguration as ValidatedEnv } from "./runtime-configuration.ts";export declare const GithubIdentitySeedPreviewSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{ issues: z.ZodArray<z.ZodString>; kind: z.ZodLiteral<"blocked">; writesAttempted: z.ZodLiteral<0>;}, z.core.$strict>, z.ZodObject<{ artifactHash: z.ZodString; githubSourceFingerprint: z.ZodString; googleAuthorityFingerprint: z.ZodString; kind: z.ZodLiteral<"ready">; maxChanges: z.ZodNumber; updates: z.ZodArray<z.ZodObject<{ current: z.ZodNullable<z.ZodObject<{ githubLogin: z.ZodOptional<z.ZodString>; githubUserId: z.ZodOptional<z.ZodString>; }, z.core.$strict>>; desired: z.ZodObject<{ githubLogin: z.ZodString; githubUserId: z.ZodString; }, z.core.$strict>; googleUserId: z.ZodString; primaryEmail: z.ZodEmail; }, z.core.$strict>>; writesAttempted: z.ZodLiteral<0>;}, z.core.$strict>], "kind">;export type GithubIdentitySeedPreview = z.output<typeof GithubIdentitySeedPreviewSchema>;export declare function previewGithubIdentitySeed(bindings: WorkspaceSyncRuntimeBindings, env: ValidatedEnv): Promise<GithubIdentitySeedPreview>;export declare function previewGithubIdentitySeedFromSources(sources: { github: GoogleGithubIdentitySeedSource; google: Pick<GoogleDirectoryClient, "listAllUsers" | "listDeletedUsers" | "readUserById">;}): Promise<GithubIdentitySeedPreview>;