Skip to content
Sarj Workspace Sync

configuration

@sarj-ai/workspace-sync ยท Source

import { z } from "zod";
export declare const WorkspaceSyncPolicySchema: z.ZodObject<{
contractorAuthorityGroup: z.ZodObject<{
acceptedEmails: z.ZodArray<z.ZodEmail>;
email: z.ZodEmail;
id: z.ZodString;
}, z.core.$strict>;
execution: z.ZodDefault<z.ZodNullable<z.ZodObject<{
notificationStatusUrl: z.ZodURL;
posthog: z.ZodDefault<z.ZodNullable<z.ZodObject<{
origin: z.ZodEnum<{
"https://eu.posthog.com": "https://eu.posthog.com";
"https://us.posthog.com": "https://us.posthog.com";
}>;
organizationId: z.ZodString;
actorUuid: z.ZodString;
authorityGroupEmail: z.ZodPipe<z.ZodEmail, z.ZodTransform<string, string>>;
authorityGroupId: z.ZodString;
minimumGoogleUsers: z.ZodNumber;
adoptedGrants: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodEmail;
evidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"invitation">;
inviteId: z.core.$ZodBranded<z.ZodString, "PosthogInvitationId", "out">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"membership">;
userUuid: z.core.$ZodBranded<z.ZodString, "PosthogUserUuid", "out">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"accepted-invitation">;
inviteId: z.core.$ZodBranded<z.ZodString, "PosthogInvitationId", "out">;
userUuid: z.core.$ZodBranded<z.ZodString, "PosthogUserUuid", "out">;
}, z.core.$strict>], "kind">;
state: z.ZodLiteral<"managed">;
}, z.core.$strict>, z.ZodObject<{
googleUserId: z.core.$ZodBranded<z.ZodString, "GoogleUserId", "out">;
email: z.ZodEmail;
evidence: z.ZodDiscriminatedUnion<[z.ZodObject<{
kind: z.ZodLiteral<"invitation">;
inviteId: z.core.$ZodBranded<z.ZodString, "PosthogInvitationId", "out">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"membership">;
userUuid: z.core.$ZodBranded<z.ZodString, "PosthogUserUuid", "out">;
}, z.core.$strict>, z.ZodObject<{
kind: z.ZodLiteral<"accepted-invitation">;
inviteId: z.core.$ZodBranded<z.ZodString, "PosthogInvitationId", "out">;
userUuid: z.core.$ZodBranded<z.ZodString, "PosthogUserUuid", "out">;
}, z.core.$strict>], "kind">;
state: z.ZodLiteral<"retired">;
}, z.core.$strict>], "state">>>;
}, z.core.$strict>>>;
sentry: z.ZodObject<{
organizationSlug: z.ZodString;
authorityGroupEmail: z.ZodEmail;
applyLeaseKey: z.ZodString;
}, z.core.$strict>;
expectedNoTeamAssignmentIdentities: z.ZodArray<z.ZodEmail>;
accessGuard: z.ZodObject<{
allowedEmptyManagerGoogleUserIds: z.ZodArray<z.ZodString>;
alertsChannelId: z.ZodString;
alertsChannelName: z.ZodLiteral<"alerts-it-admin">;
enabled: z.ZodBoolean;
expectedAttioWorkspaceId: z.ZodNullable<z.ZodUUID>;
expectedGitHubOrganization: z.ZodString;
expectedLinearOrganizationId: z.ZodNullable<z.ZodUUID>;
expectedLinearOrganizationUrlKey: z.ZodString;
maxAutomaticLinearSuspensions: z.ZodLiteral<0>;
maxReviewedLinearSuspensions: z.ZodNumber;
minimumProviderAccounts: z.ZodObject<{
attio: z.ZodNumber;
github: z.ZodNumber;
linear: z.ZodNumber;
pagerduty: z.ZodNumber;
slack: z.ZodNumber;
}, z.core.$strict>;
}, z.core.$strict>;
ledger: z.ZodObject<{
channelId: z.ZodString;
channelName: z.ZodString;
}, z.core.$strict>;
legacyCanaryResolution: z.ZodObject<{
tickId: z.ZodString;
intentId: z.ZodString;
workflowId: z.ZodString;
paramsDigest: z.ZodString;
planHash: z.ZodString;
workerVersionId: z.ZodUUID;
workerRevision: z.ZodString;
workflowVersionId: z.ZodUUID;
evidenceId: z.ZodString;
scheduledAtMs: z.ZodNumber;
attemptedAtMs: z.ZodNumber;
expiresAtMs: z.ZodNumber;
reservedAtMs: z.ZodNumber;
revision: z.ZodNumber;
googleUserId: z.ZodString;
slackUserId: z.ZodString;
slackUserGroupId: z.ZodString;
}, z.core.$strict>;
}, z.core.$strict>>>;
employeeEntitlementExcludedEmails: z.ZodArray<z.ZodEmail>;
ignoredDeletedGoogleUserIds: z.ZodArray<z.ZodString>;
org: z.ZodObject<{
allowedEmptyDepartmentGoogleUserIds: z.ZodArray<z.ZodString>;
allTeamDriveId: z.ZodString;
excludedGoogleUserIds: z.ZodArray<z.ZodString>;
expectedRootGoogleUserIds: z.ZodArray<z.ZodString>;
expectedSlackTeamId: z.ZodString;
protectedDepartedGoogleUserIds: z.ZodArray<z.ZodString>;
fieldIds: z.ZodObject<{
manages: z.ZodString;
reportsTo: z.ZodString;
team: z.ZodString;
}, z.core.$strict>;
googleAdminSubject: z.ZodEmail;
googleUserProject: z.ZodString;
managedDomain: z.ZodString;
maxAutomaticChanges: z.ZodNumber;
minimumGoogleParticipants: z.ZodNumber;
orgChartFileId: z.ZodString;
}, z.core.$strict>;
reviewedGitHubDirectGrantRetentions: z.ZodArray<z.ZodObject<{
allowedTeamSlugs: z.ZodArray<z.ZodString>;
githubLogin: z.ZodString;
githubUserId: z.ZodString;
googleUserId: z.ZodString;
grants: z.ZodArray<z.ZodObject<{
customRoleName: z.ZodOptional<z.ZodString>;
permission: z.ZodEnum<{
admin: "admin";
maintain: "maintain";
pull: "pull";
push: "push";
triage: "triage";
}>;
repositoryId: z.ZodNumber;
repositoryName: z.ZodString;
}, z.core.$strict>>;
primaryEmail: z.ZodEmail;
reviewedAt: z.ZodISODate;
}, z.core.$strict>>;
reviewedGitHubTeamMemberships: z.ZodArray<z.ZodObject<{
githubLogin: z.ZodString;
githubUserId: z.ZodString;
googleUserId: z.ZodString;
reviewedAt: z.ZodISODate;
teamId: z.ZodNumber;
teamSlug: z.ZodString;
}, z.core.$strict>>;
sentryTeamSlug: z.ZodString;
trycomp: z.ZodObject<{
contractorGroupEmail: z.ZodEmail;
contractorGroupId: z.ZodString;
maxAutomaticActivations: z.ZodNumber;
maxAutomaticContractorDeactivations: z.ZodNumber;
maxAutomaticInactiveGoogleDeactivations: z.ZodNumber;
maxAutomaticDeactivations: z.ZodNumber;
offboardingOnly: z.ZodBoolean;
minimumGoogleUsers: z.ZodNumber;
}, z.core.$strict>;
}, z.core.$strict>;
export type WorkspaceSyncPolicy = z.output<typeof WorkspaceSyncPolicySchema>;
export declare function configureWorkspaceSyncPolicy(input: unknown): void;
export declare function getWorkspaceSyncPolicy(): WorkspaceSyncPolicy;
export { OrgSyncService as SlackProfileSync, type SlackProfileSyncContract, } from "./org-sync/service.ts";