mirror of
https://github.com/harivansh-afk/sandbox-agent.git
synced 2026-04-16 01:03:52 +00:00
29 lines
957 B
TypeScript
29 lines
957 B
TypeScript
export type ActorKey = string[];
|
|
|
|
export function organizationKey(organizationId: string): ActorKey {
|
|
return ["org", organizationId];
|
|
}
|
|
|
|
export function userKey(userId: string): ActorKey {
|
|
return ["org", "app", "user", userId];
|
|
}
|
|
|
|
export function repositoryKey(organizationId: string, repoId: string): ActorKey {
|
|
return ["org", organizationId, "repository", repoId];
|
|
}
|
|
|
|
export function taskKey(organizationId: string, repoId: string, taskId: string): ActorKey {
|
|
return ["org", organizationId, "repository", repoId, "task", taskId];
|
|
}
|
|
|
|
export function taskSandboxKey(organizationId: string, sandboxId: string): ActorKey {
|
|
return ["org", organizationId, "sandbox", sandboxId];
|
|
}
|
|
|
|
export function auditLogKey(organizationId: string, repoId: string): ActorKey {
|
|
return ["org", organizationId, "repository", repoId, "audit-log"];
|
|
}
|
|
|
|
export function githubDataKey(organizationId: string): ActorKey {
|
|
return ["org", organizationId, "github-data"];
|
|
}
|