@hasna/projects
Version:
High-level project management CLI, MCP server, SDK, and AI SDK agent loop for coding agents
437 lines • 30.4 kB
TypeScript
/** Server configuration only. This policy authorizes factual source receipts, never deployment. */
import { z } from "zod";
import type { ApiKeyPrincipal } from "@hasna/contracts/auth";
export declare const ProjectionPolicySchema: z.ZodObject<{
schema: z.ZodLiteral<"projects.projection_issuer_policy.v1">;
id: z.ZodEffects<z.ZodString, string, string>;
revision: z.ZodNumber;
digest: z.ZodString;
state: z.ZodEnum<["active", "disabled"]>;
authority: z.ZodEffects<z.ZodString, string, string>;
evidence_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
id: z.ZodString;
kind: z.ZodOptional<z.ZodEnum<["file", "command_output", "screenshot", "log", "diff", "report", "artifact", "url", "video", "har", "test_result", "metric", "trace", "other"]>>;
uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
sha256: z.ZodOptional<z.ZodString>;
summary: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
id: string;
kind?: "report" | "video" | "file" | "url" | "artifact" | "other" | "command_output" | "screenshot" | "log" | "diff" | "har" | "test_result" | "metric" | "trace" | undefined;
sha256?: string | undefined;
uri?: string | undefined;
summary?: string | undefined;
}, {
id: string;
kind?: "report" | "video" | "file" | "url" | "artifact" | "other" | "command_output" | "screenshot" | "log" | "diff" | "har" | "test_result" | "metric" | "trace" | undefined;
sha256?: string | undefined;
uri?: string | undefined;
summary?: string | undefined;
}>, {
id: string;
kind?: "report" | "video" | "file" | "url" | "artifact" | "other" | "command_output" | "screenshot" | "log" | "diff" | "har" | "test_result" | "metric" | "trace" | undefined;
sha256?: string | undefined;
uri?: string | undefined;
summary?: string | undefined;
}, {
id: string;
kind?: "report" | "video" | "file" | "url" | "artifact" | "other" | "command_output" | "screenshot" | "log" | "diff" | "har" | "test_result" | "metric" | "trace" | undefined;
sha256?: string | undefined;
uri?: string | undefined;
summary?: string | undefined;
}>, "many">;
bindings: z.ZodArray<z.ZodObject<{
project_id: z.ZodString;
tenant_id: z.ZodEffects<z.ZodString, string, string>;
subjects: z.ZodArray<z.ZodObject<{
app: z.ZodEffects<z.ZodString, string, string>;
tenant_id: z.ZodEffects<z.ZodString, string, string>;
agent: z.ZodEffects<z.ZodString, string, string>;
kid: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
}, "strict", z.ZodTypeAny, {
agent: string;
tenant_id: string;
app: string;
kid?: string | undefined;
}, {
agent: string;
tenant_id: string;
app: string;
kid?: string | undefined;
}>, "many">;
operations: z.ZodArray<z.ZodEnum<["issue", "read"]>, "many">;
owner_refs: z.ZodArray<z.ZodEffects<z.ZodObject<{
kind: z.ZodEnum<["agent", "human", "service", "model", "workflow", "system"]>;
id: z.ZodString;
name: z.ZodOptional<z.ZodString>;
provider: z.ZodOptional<z.ZodString>;
accountId: z.ZodOptional<z.ZodString>;
machineId: z.ZodOptional<z.ZodString>;
}, "strict", z.ZodTypeAny, {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}, {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}>, {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}, {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}>, "many">;
repository_ref: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
kind: z.ZodEnum<["task", "project", "repo", "run", "loop", "workflow", "action", "event", "integration", "session", "machine", "model", "tool", "file", "document", "url", "artifact", "knowledge", "email", "conversation", "dashboard", "render", "panel", "report", "commit", "branch", "pull_request", "issue", "comment", "verification", "finding", "context_pack", "proof_bundle", "memento", "eval", "budget", "cost", "alert", "incident", "app", "release", "rollout", "announcement", "audience", "feedback", "unknown"]>;
id: z.ZodString;
name: z.ZodOptional<z.ZodString>;
uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
externalId: z.ZodOptional<z.ZodString>;
sourcePackage: z.ZodOptional<z.ZodString>;
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
}, "strict", z.ZodTypeAny, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>;
workspace_ref: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
kind: z.ZodEnum<["task", "project", "repo", "run", "loop", "workflow", "action", "event", "integration", "session", "machine", "model", "tool", "file", "document", "url", "artifact", "knowledge", "email", "conversation", "dashboard", "render", "panel", "report", "commit", "branch", "pull_request", "issue", "comment", "verification", "finding", "context_pack", "proof_bundle", "memento", "eval", "budget", "cost", "alert", "incident", "app", "release", "rollout", "announcement", "audience", "feedback", "unknown"]>;
id: z.ZodString;
name: z.ZodOptional<z.ZodString>;
uri: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
externalId: z.ZodOptional<z.ZodString>;
sourcePackage: z.ZodOptional<z.ZodString>;
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
}, "strict", z.ZodTypeAny, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
}, {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
}>;
}, "strict", z.ZodTypeAny, {
project_id: string;
tenant_id: string;
subjects: {
agent: string;
tenant_id: string;
app: string;
kid?: string | undefined;
}[];
operations: ("issue" | "read")[];
owner_refs: {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}[];
repository_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
};
workspace_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
};
}, {
project_id: string;
tenant_id: string;
subjects: {
agent: string;
tenant_id: string;
app: string;
kid?: string | undefined;
}[];
operations: ("issue" | "read")[];
owner_refs: {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}[];
repository_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
};
workspace_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
};
}>, "many">;
}, "strict", z.ZodTypeAny, {
authority: string;
schema: "projects.projection_issuer_policy.v1";
state: "active" | "disabled";
id: string;
digest: string;
revision: number;
evidence_refs: {
id: string;
kind?: "report" | "video" | "file" | "url" | "artifact" | "other" | "command_output" | "screenshot" | "log" | "diff" | "har" | "test_result" | "metric" | "trace" | undefined;
sha256?: string | undefined;
uri?: string | undefined;
summary?: string | undefined;
}[];
bindings: {
project_id: string;
tenant_id: string;
subjects: {
agent: string;
tenant_id: string;
app: string;
kid?: string | undefined;
}[];
operations: ("issue" | "read")[];
owner_refs: {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}[];
repository_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
};
workspace_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
tags: string[];
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
};
}[];
}, {
authority: string;
schema: "projects.projection_issuer_policy.v1";
state: "active" | "disabled";
id: string;
digest: string;
revision: number;
evidence_refs: {
id: string;
kind?: "report" | "video" | "file" | "url" | "artifact" | "other" | "command_output" | "screenshot" | "log" | "diff" | "har" | "test_result" | "metric" | "trace" | undefined;
sha256?: string | undefined;
uri?: string | undefined;
summary?: string | undefined;
}[];
bindings: {
project_id: string;
tenant_id: string;
subjects: {
agent: string;
tenant_id: string;
app: string;
kid?: string | undefined;
}[];
operations: ("issue" | "read")[];
owner_refs: {
id: string;
kind: "agent" | "human" | "service" | "model" | "workflow" | "system";
name?: string | undefined;
provider?: string | undefined;
accountId?: string | undefined;
machineId?: string | undefined;
}[];
repository_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
};
workspace_ref: {
id: string;
kind: "app" | "email" | "feedback" | "report" | "run" | "unknown" | "file" | "url" | "model" | "workflow" | "budget" | "task" | "project" | "repo" | "loop" | "action" | "event" | "integration" | "session" | "machine" | "tool" | "document" | "artifact" | "knowledge" | "conversation" | "dashboard" | "render" | "panel" | "commit" | "branch" | "pull_request" | "issue" | "comment" | "verification" | "finding" | "context_pack" | "proof_bundle" | "memento" | "eval" | "cost" | "alert" | "incident" | "release" | "rollout" | "announcement" | "audience";
name?: string | undefined;
uri?: string | undefined;
externalId?: string | undefined;
sourcePackage?: string | undefined;
tags?: string[] | undefined;
};
}[];
}>;
export type ProjectionPolicy = z.infer<typeof ProjectionPolicySchema>;
export type ProjectionBinding = ProjectionPolicy["bindings"][number];
export declare class ProjectionError extends Error {
readonly status: number;
readonly code: string;
constructor(status: number, code: string);
}
export declare function projectionPolicyDigest(value: unknown): string;
/** Invalid input disables only this optional surface; no raw configuration reaches diagnostics. */
export declare function validateProjectionPolicy(input: unknown): ProjectionPolicy | undefined;
export declare function authorizeProjection(policy: ProjectionPolicy | undefined, principal: ApiKeyPrincipal, projectId: string, operation: "issue" | "read"): ProjectionBinding;
export declare function projectionSubject(principal: ApiKeyPrincipal): {
app: string;
tenant_id: string;
agent: string;
kid: string;
};
//# sourceMappingURL=projection-policy.d.ts.map