import type { Api } from "@superblocksteam/util"; import type { FeatureFlags } from "../flag.js"; export interface UserMeDto { user: User; organizations: Organization[]; agents: Agent[]; flagBootstrap: FlagBootstrap; } export interface FlagBootstrap { "ui.enable-resource-signing"?: boolean; "superblocks.git.split.large.steps.enabled"?: boolean; "superblocks.git.split.large.step.lines"?: number; "ui.code-mode.enable-session-recording"?: boolean; "superblocks.dev-server.inactivity-timeout.cloud"?: number; "superblocks.dev-server.inactivity-timeout.local"?: number; "superblocks.dev-server.llmobs.enabled"?: boolean; "superblocks.dev-server.pnpm.enabled"?: boolean; "superblocks.dev-server.memory-metrics.enabled"?: boolean; "superblocks.dev-server.in-place-template-restart.enabled"?: boolean; "superblocks.deploy.include-dot-superblocks"?: boolean; "superblocks.remove-manual-commits.enabled"?: boolean; } export interface TokenConfig { superblocksBaseUrl: string; token: string; } interface UserInfo { userId: string; userEmail: string; organizationId: string; featureFlags: FeatureFlags; } export interface ApplicationConfig { id: string; branchName: string; } interface ApplicationConfigWithUserInfo extends UserInfo, ApplicationConfig { } export interface ApplicationConfigWithTokenConfigAndUserInfo extends ApplicationConfigWithUserInfo, TokenConfig { } type User = { id: string; email: string; currentOrganizationId: string; organizationIds: string[]; username: string; name: string; anonymousId: string; isAnonymous: boolean; isAdmin: boolean; metadata: Record; }; /** Plugin execution versions map - plugin ID to version string */ type PluginExecutionVersions = Record; interface Organization { id: string; name: string; displayName: string; agents?: Agent[]; apiKey: string; agentType: AgentType; minExternalAgentVersion: string; pluginExecutionVersions?: PluginExecutionVersions; profiles?: Profile[]; } export type Agent = { id: string; key: string; environment: string; status: AgentStatus; version: string; versionExternal: string; url: string; type: AgentType; updated: Date; created: Date; tags: AgentTags; verificationKeyIds?: null | string[]; signingKeyId?: null | string; }; export declare enum AgentStatus { ACTIVE = "Active", DISCONNECTED = "Disconnected", BROWSER_UNREACHABLE = "Browser Unreachable", PENDING_REGISTRATION = "Pending Registration", STALE = "Stale" } export declare enum AgentType { MULTITENANT = 0, DEDICATED = 1, ONPREMISE = 2 } type AgentTags = Record; declare class Profile { id: string; key: string; displayName: string; description: string; type: ProfileType; constructor({ id, key, displayName, description, type, }: { id: string; key: string; displayName: string; description: string; type: ProfileType; }); } declare enum ProfileType { RESERVED = "RESERVED", CUSTOM = "CUSTOM" } export type ApiWithPb = { id: string; pageId?: string; apiPb: Api; }; export type Page = { id: string; applicationId: string; isHidden: boolean; layouts: Record[]; name: string; apis: ApiWithPb[]; }; export interface RemoteCommitDto { commitId: string; remoteCommitId: string; remoteCommitDate: Date; branchName: string; repositoryId: string; } export interface DeploymentDto { commitId: string; previousCommitId?: string | null; entityId: string; deployer: { id: string; email: string; name: string; }; deploymentId: string; deployMessage: string; deploymentTime: number; } export type DeploymentHistoryEntryDto = Omit & { commitId: string | null; }; export interface TokenUpdateEvent { token: string; } export {}; //# sourceMappingURL=common.d.ts.map