Skip to content
Sarj Workspace Sync

execution/reviewed-slack-lifecycle-intent

@sarj-ai/workspace-sync/execution/reviewed-slack-lifecycle-intent ยท Source

import type { D1Database } from "@cloudflare/workers-types";
import { z } from "zod";
export declare function isReviewedPlanWithinOriginalApproval(proof: {
generatedAtMs: number;
expiresAtMs: number;
}, generatedAt: string): boolean;
export declare const ReviewedSlackLifecycleIntentProofSchema: 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>;
export type ReviewedSlackLifecycleIntentProof = z.output<typeof ReviewedSlackLifecycleIntentProofSchema>;
export declare const ReviewedLinearIntentProofSchema: 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>;
export declare const ReviewedGoogleGroupCleanupIntentProofSchema: 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>;
export declare const ReviewedProviderIntentProofSchema: 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>]>;
export type ReviewedProviderIntentProof = z.output<typeof ReviewedProviderIntentProofSchema>;
export declare const ClaimedReviewedSlackLifecycleIntentSchema: 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>;
export declare const ClaimedReviewedProviderIntentSchema: 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>;
export type ReviewedProviderIntent = ReviewedSlackLifecycleIntent;
export type IReviewedProviderIntentAdmission = IReviewedSlackLifecycleIntentAdmission;
export type IReviewedProviderIntentClaims = IReviewedSlackLifecycleIntentClaims;
export declare const PendingReviewedProviderIntentSchema: z.ZodReadonly<z.ZodObject<{
claimedAtMs: z.ZodNull;
claimedTickId: z.ZodNull;
intentId: z.ZodString;
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>]>;
state: z.ZodLiteral<"pending">;
}, z.core.$strict>>;
export declare const ReviewedProviderIntentSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
claimedAtMs: z.ZodNull;
claimedTickId: z.ZodNull;
intentId: z.ZodString;
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>]>;
state: z.ZodLiteral<"pending">;
}, z.core.$strict>>, z.ZodReadonly<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>>], "state">;
export type ReviewedSlackLifecycleIntent = z.output<typeof ReviewedProviderIntentSchema>;
export type ClaimedReviewedProviderIntent = Readonly<z.output<typeof ClaimedReviewedProviderIntentSchema>>;
export interface IReviewedSlackLifecycleIntentAdmission {
admit(proof: ReviewedProviderIntentProof): Promise<ReviewedSlackLifecycleIntent>;
}
export interface IReviewedSlackLifecycleIntentClaims {
assertClaimed(expected: ClaimedReviewedProviderIntent, tickId: string): Promise<void>;
claim(tickId: string): Promise<null | ClaimedReviewedProviderIntent>;
read(intentId: string): Promise<null | ReviewedSlackLifecycleIntent>;
}
export declare class ReviewedSlackLifecycleIntentRepository implements IReviewedSlackLifecycleIntentAdmission, IReviewedSlackLifecycleIntentClaims {
#private;
constructor(database: D1Database, now?: () => number);
admit(rawProof: ReviewedProviderIntentProof): Promise<ReviewedSlackLifecycleIntent>;
claim(tickId: string): Promise<null | ClaimedReviewedProviderIntent>;
read(intentId: string): Promise<null | ReviewedSlackLifecycleIntent>;
assertClaimed(expected: ClaimedReviewedProviderIntent, tickId: string): Promise<void>;
}