Skip to content
Sarj Workspace Sync

catalog/identity-authority

@sarj-ai/workspace-sync/identity-authority ยท Source

import { z } from "zod";
export declare const GoogleUserIdSchema: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
export declare const GitHubUserIdSchema: z.core.$ZodBranded<z.ZodString, "GitHubUserId", "out">;
export declare const GitHubLoginSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>, "GitHubLogin", "out">;
export declare const PrimaryEmailSchema: z.core.$ZodBranded<z.ZodPipe<z.ZodString, z.ZodEmail>, "PrimaryEmail", "out">;
export declare const AuthorityRevisionSchema: z.core.$ZodBranded<z.ZodString, "AuthorityRevision", "out">;
export declare const ProviderAccountIdSchema: z.core.$ZodBranded<z.ZodString, "ProviderAccountId", "out">;
export declare const ProvisioningIdempotencyKeySchema: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
export declare const IdentityProviderIdSchema: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
"google-workspace": "google-workspace";
linear: "linear";
pagerduty: "pagerduty";
posthog: "posthog";
sentry: "sentry";
slack: "slack";
}>;
export declare const ProvisioningProviderIdSchema: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
github: "github";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
export declare const InactiveAuthorityLifecycleSchema: 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">;
export declare const VerifiedGitHubIdentitySchema: 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>>;
export declare const GitHubIdentityCandidateSchema: 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>>;
export declare const GitHubIdentityStateSchema: 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">;
export declare const ActiveAuthorityIdentitySchema: 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.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
export declare const ActiveVerifiedAuthorityIdentitySchema: 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>>;
export declare const InactiveAuthorityIdentitySchema: 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>>;
export declare const AuthorityIdentitySchema: z.ZodUnion<readonly [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.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>, 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>>]>;
export declare const GitHubProviderAccountSchema: 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">;
providerId: z.ZodLiteral<"github">;
}, z.core.$strict>>;
export declare const NonGitHubProviderAccountSchema: z.ZodReadonly<z.ZodObject<{
accountId: z.core.$ZodBranded<z.ZodString, "ProviderAccountId", "out">;
providerId: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>>;
export declare const ProviderAccountSchema: z.ZodUnion<readonly [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">;
providerId: z.ZodLiteral<"github">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
accountId: z.core.$ZodBranded<z.ZodString, "ProviderAccountId", "out">;
providerId: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>>]>;
export declare const ProvisioningBlockerSchema: z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"authority-conflict": "authority-conflict";
"identity-unlinked": "identity-unlinked";
"provider-ambiguous": "provider-ambiguous";
"provider-unsupported": "provider-unsupported";
"safety-policy": "safety-policy";
}>;
detail: z.ZodString;
}, z.core.$strict>>;
export declare const DesiredProvisioningPlanSchema: z.ZodUnion<readonly [z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"provision">;
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>>;
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">;
providerId: z.ZodLiteral<"github">;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"provision">;
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.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>;
target: z.ZodReadonly<z.ZodObject<{
accountId: z.core.$ZodBranded<z.ZodString, "ProviderAccountId", "out">;
providerId: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
idempotencyKey: z.core.$ZodBranded<z.ZodString, "ProvisioningIdempotencyKey", "out">;
kind: z.ZodLiteral<"deprovision">;
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.ZodUnion<readonly [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">;
providerId: z.ZodLiteral<"github">;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
accountId: z.core.$ZodBranded<z.ZodString, "ProviderAccountId", "out">;
providerId: z.ZodEnum<{
ashby: "ashby";
attio: "attio";
linear: "linear";
pagerduty: "pagerduty";
slack: "slack";
}>;
}, z.core.$strict>>]>;
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
blockers: z.ZodReadonly<z.ZodTuple<[z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"authority-conflict": "authority-conflict";
"identity-unlinked": "identity-unlinked";
"provider-ambiguous": "provider-ambiguous";
"provider-unsupported": "provider-unsupported";
"safety-policy": "safety-policy";
}>;
detail: z.ZodString;
}, z.core.$strict>>], z.ZodReadonly<z.ZodObject<{
code: z.ZodEnum<{
"authority-conflict": "authority-conflict";
"identity-unlinked": "identity-unlinked";
"provider-ambiguous": "provider-ambiguous";
"provider-unsupported": "provider-unsupported";
"safety-policy": "safety-policy";
}>;
detail: z.ZodString;
}, z.core.$strict>>>>;
kind: z.ZodLiteral<"blocked">;
subject: z.ZodUnion<readonly [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.ZodReadonly<z.ZodObject<{
kind: z.ZodLiteral<"active">;
}, z.core.$strict>>;
}, z.core.$strict>>, 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>>]>;
}, z.core.$strict>>]>;
export type GoogleUserId = z.output<typeof GoogleUserIdSchema>;
export type GitHubUserId = z.output<typeof GitHubUserIdSchema>;
export type GitHubLogin = z.output<typeof GitHubLoginSchema>;
export type PrimaryEmail = z.output<typeof PrimaryEmailSchema>;
export type AuthorityRevision = z.output<typeof AuthorityRevisionSchema>;
export type ProvisioningIdempotencyKey = z.output<typeof ProvisioningIdempotencyKeySchema>;
export type ProvisioningProviderId = z.output<typeof ProvisioningProviderIdSchema>;
export type AuthorityIdentity = z.output<typeof AuthorityIdentitySchema>;
export type ProviderAccount = z.output<typeof ProviderAccountSchema>;
export type DesiredProvisioningPlan = z.output<typeof DesiredProvisioningPlanSchema>;
export declare function provisioningIdempotencyKey(input: {
readonly action: "deprovision" | "provision";
readonly authorityDigest: string;
readonly googleUserId: GoogleUserId;
readonly providerId: ProvisioningProviderId;
}): ProvisioningIdempotencyKey;