Skip to main content

Function Index

This index is generated from TypeScript/TSX and Go source files.

  • Indexed function-like declarations: 302
  • Indexed source files containing functions: 80

agents/anchor-edge-agent/cmd/anchor-edge-agent/main.go\n\n- main (line 14, go function): Implements main for module behavior. source\n - Signature: func main() \{

agents/anchor-edge-agent/internal/buffer/file_buffer.go\n\n- NewFileBuffer (line 17, go function): Implements new file buffer for module behavior. source\n - Signature: func NewFileBuffer(path string) (*FileBuffer, error) \{

  • Append (line 29, go function): Implements append for module behavior. source\n - Signature: func (b *FileBuffer) Append(event types.TelemetryEvent) error \{
  • ReadAll (line 45, go function): Implements read all for module behavior. source\n - Signature: func (b *FileBuffer) ReadAll() ([]types.TelemetryEvent, error) \{
  • Clear (line 74, go function): Implements clear for module behavior. source\n - Signature: func (b *FileBuffer) Clear() error \{

agents/anchor-edge-agent/internal/collector/events.go\n\n- buildBaseEvent (line 10, go function): Implements build base event for telemetry collection. source\n - Signature: func buildBaseEvent(config Config, kind string) types.TelemetryEvent \{

  • BuildPatchCompliance (line 23, go function): Implements build patch compliance for telemetry collection. source\n - Signature: func BuildPatchCompliance(config Config, compliant bool, missingCritical, missingImportant int) types.TelemetryEvent \{
  • BuildBackupFailure (line 33, go function): Implements build backup failure for telemetry collection. source\n - Signature: func BuildBackupFailure(config Config, provider, jobName, reason string) types.TelemetryEvent \{
  • BuildServiceDegraded (line 43, go function): Implements build service degraded for telemetry collection. source\n - Signature: func BuildServiceDegraded(config Config, serviceName, severity, details string) types.TelemetryEvent \{
  • CollectProfileEvents (line 53, go function): Implements collect profile events for telemetry collection. source\n - Signature: func CollectProfileEvents(config Config, profile string) []types.TelemetryEvent \{

agents/anchor-edge-agent/internal/collector/system.go\n\n- BuildHeartbeat (line 19, go function): Implements build heartbeat for telemetry collection. source\n - Signature: func BuildHeartbeat(config Config) types.TelemetryEvent \{

  • pseudoUUID (line 40, go function): Implements pseudo uuid for telemetry collection. source\n - Signature: func pseudoUUID() string \{

agents/anchor-edge-agent/internal/transport/mtls_sender.go\n\n- NewMTLSSender (line 31, go function): Implements new mtlssender for transport delivery. source\n - Signature: func NewMTLSSender(cfg SenderConfig) (*MTLSSender, error) \{

  • Send (line 67, go function): Implements send for transport delivery. source\n - Signature: func (s *MTLSSender) Send(events []types.TelemetryEvent) error \{

apps/gateway/src/config/env.ts\n\n- parseNodeEnv (line 7, function): Implements parse node env for module behavior. source\n - Signature: function parseNodeEnv(value: string \| undefined): NodeEnv \{

  • parseAuthMode (line 14, function): Implements parse auth mode for module behavior. source\n - Signature: function parseAuthMode(value: string \| undefined): AuthMode \{
  • parseInteger (line 21, function): Implements parse integer for module behavior. source\n - Signature: function parseInteger(value: string \| undefined, fallback: number, name: string): number \{
  • parseBoolean (line 32, function): Implements parse boolean for module behavior. source\n - Signature: function parseBoolean(value: string \| undefined, fallback: boolean): boolean \{
  • parseCorsOrigins (line 39, function): Implements parse cors origins for module behavior. source\n - Signature: function parseCorsOrigins(value: string \| undefined): string[] \{
  • parseResourceEncryptionKey (line 49, function): Implements parse resource encryption key for module behavior. source\n - Signature: function parseResourceEncryptionKey(value: string \| undefined): Buffer \| null \{
  • parseOptionalUrl (line 60, function): Implements parse optional url for module behavior. source\n - Signature: function parseOptionalUrl(value: string \| undefined, name: string): string \| undefined \{

apps/gateway/src/middleware/auth.ts\n\n- parseAuthHeader (line 17, function): Implements parse auth header for module behavior. source\n - Signature: function parseAuthHeader(header: string \| undefined): string \{

  • parseAuthContext (line 30, function): Implements parse auth context for module behavior. source\n - Signature: function parseAuthContext(payload: Record<string, unknown>): AuthContext \{
  • verifyJwt (line 56, function): Implements verify jwt for module behavior. source\n - Signature: async function verifyJwt(token: string): Promise<Record<string, unknown>> \{

apps/gateway/src/middleware/rate-limit.ts\n\n- getKey (line 13, function): Implements get key for module behavior. source\n - Signature: function getKey(request: import("fastify").FastifyRequest): string \{

  • getCounter (line 19, function): Implements get counter for module behavior. source\n - Signature: function getCounter(key: string, now: number, windowMs: number): Counter \{
  • cleanupCounters (line 29, function): Implements cleanup counters for module behavior. source\n - Signature: function cleanupCounters(now: number): void \{

apps/gateway/src/middleware/security.ts\n\n- isProductionLike (line 9, function): Implements is production like for module behavior. source\n - Signature: function isProductionLike(): boolean \{

  • isOriginAllowed (line 13, function): Implements is origin allowed for module behavior. source\n - Signature: function isOriginAllowed(origin: string, allowedOrigins: string[]): boolean \{
  • getAllowedOrigins (line 20, function): Implements get allowed origins for module behavior. source\n - Signature: async function getAllowedOrigins(): Promise<string[]> \{

apps/gateway/src/routes/agent-runtime.ts\n\n- asRecord (line 49, function): Implements as record for HTTP request handling. source\n - Signature: function asRecord(input: unknown): Record<string, unknown> \{

  • controlPlaneProbe (line 53, function): Implements control plane probe for HTTP request handling. source\n - Signature: async function controlPlaneProbe() \{
  • resolveWorkers (line 83, function): Implements resolve workers for HTTP request handling. source\n - Signature: function resolveWorkers(statuses: Awaited<ReturnType<typeof listWorkerRuntimeStatus>>): WorkerRuntimeView[] \{

apps/gateway/src/routes/dashboard.ts\n\n- toRecordArray (line 10, function): Implements to record array for HTTP request handling. source\n - Signature: function toRecordArray(input: unknown[]): ResourceRecord[] \{

  • toStringValue (line 14, function): Implements to string value for HTTP request handling. source\n - Signature: function toStringValue(value: unknown): string \{
  • toNumberValue (line 18, function): Implements to number value for HTTP request handling. source\n - Signature: function toNumberValue(value: unknown): number \{
  • toDateValue (line 23, function): Implements to date value for HTTP request handling. source\n - Signature: function toDateValue(value: unknown): Date \| null \{
  • normalizeStatus (line 31, function): Implements normalize status for HTTP request handling. source\n - Signature: function normalizeStatus(value: unknown): string \{
  • formatCurrency (line 35, function): Implements format currency for HTTP request handling. source\n - Signature: function formatCurrency(value: number): string \{
  • isTicketOpen (line 44, function): Implements is ticket open for HTTP request handling. source\n - Signature: function isTicketOpen(status: string): boolean \{
  • isInvoiceOverdue (line 48, function): Implements is invoice overdue for HTTP request handling. source\n - Signature: function isInvoiceOverdue(invoice: ResourceRecord, now: Date): boolean \{
  • compareDatesDescending (line 57, function): Implements compare dates descending for HTTP request handling. source\n - Signature: function compareDatesDescending(left: ResourceRecord, right: ResourceRecord, field: string): number \{
  • firstNonEmptyString (line 65, function): Implements first non empty string for HTTP request handling. source\n - Signature: function firstNonEmptyString(record: ResourceRecord, fields: string[]): string \{
  • scopedPortalClientId (line 75, function): Implements scoped portal client id for HTTP request handling. source\n - Signature: function scopedPortalClientId(request: \{ auth?: \{ roles?: string[]; clientId?: string \| null \} \| null \}): string \| null \{

apps/gateway/src/routes/health.ts\n\n- getHealthPayload (line 6, const arrow function): Implements get health payload for HTTP request handling. source\n - Signature: const getHealthPayload = async () => \{

apps/gateway/src/routes/integrations.ts\n\n- validateSignature (line 9, function): Implements validate signature for HTTP request handling. source\n - Signature: function validateSignature(rawBody: string, signatureHeader: string \| undefined, secret: string \| undefined): boolean \{

apps/gateway/src/routes/ops-actions.ts\n\n- toRecord (line 18, function): Implements to record for HTTP request handling. source\n - Signature: function toRecord(input: unknown): AnyRecord \{

  • nowIso (line 22, function): Implements now iso for HTTP request handling. source\n - Signature: function nowIso() \{
  • workspaceIdFromRequest (line 26, function): Implements workspace id from request for HTTP request handling. source\n - Signature: function workspaceIdFromRequest(request: FastifyRequest): string \{
  • parseIdempotency (line 30, function): Implements parse idempotency for HTTP request handling. source\n - Signature: function parseIdempotency(request: FastifyRequest, reply: FastifyReply): string \{
  • getContext (line 39, function): Implements get context for HTTP request handling. source\n - Signature: function getContext(request: FastifyRequest, workspaceId: string, key: string) \{

apps/gateway/src/routes/portal-actions.ts\n\n- toRecord (line 22, function): Implements to record for HTTP request handling. source\n - Signature: function toRecord(input: unknown): AnyRecord \{

  • nowIso (line 26, function): Implements now iso for HTTP request handling. source\n - Signature: function nowIso() \{
  • toStringValue (line 30, function): Implements to string value for HTTP request handling. source\n - Signature: function toStringValue(input: unknown): string \{
  • isUuid (line 34, function): Implements is uuid for HTTP request handling. source\n - Signature: function isUuid(value: string): boolean \{
  • parsePortalSessionToken (line 38, function): Implements parse portal session token for HTTP request handling. source\n - Signature: function parsePortalSessionToken(token: string): \{
  • portalClientScope (line 78, function): Implements portal client scope for HTTP request handling. source\n - Signature: function portalClientScope(request: FastifyRequest): string \| null \{
  • denyPortalClientScope (line 85, function): Implements deny portal client scope for HTTP request handling. source\n - Signature: function denyPortalClientScope(reply: FastifyReply) \{
  • requireWorkspace (line 90, function): Implements require workspace for HTTP request handling. source\n - Signature: function requireWorkspace(headers: Record<string, unknown>): string \{
  • assertIdempotency (line 94, function): Implements assert idempotency for HTTP request handling. source\n - Signature: async function assertIdempotency(request: FastifyRequest, reply: FastifyReply) \{
  • idempotencyContext (line 103, function): Implements idempotency context for HTTP request handling. source\n - Signature: function idempotencyContext(request: FastifyRequest, workspaceId: string, key: string) \{

apps/gateway/src/routes/resources.ts\n\n- parsePositiveInt (line 22, function): Implements parse positive int for HTTP request handling. source\n - Signature: function parsePositiveInt(value: string \| undefined, fallback: number, maxValue: number): number \{

  • normalizeSortOrder (line 30, function): Implements normalize sort order for HTTP request handling. source\n - Signature: function normalizeSortOrder(value: string \| undefined): SortOrder \{
  • normalizeSortField (line 34, function): Implements normalize sort field for HTTP request handling. source\n - Signature: function normalizeSortField(value: string \| undefined): string \{
  • toComparableValue (line 38, function): Implements to comparable value for HTTP request handling. source\n - Signature: function toComparableValue(input: unknown): number \| string \{
  • withDefaultFields (line 55, function): Implements with default fields for HTTP request handling. source\n - Signature: function withDefaultFields(workspaceId: string, body: Record<string, unknown>) \{

apps/gateway/src/routes/settings.ts\n\n- validateSecretKey (line 26, function): Implements validate secret key for HTTP request handling. source\n - Signature: function validateSecretKey(secretKey: string): boolean \{

apps/gateway/src/server.ts\n\n- buildServer (line 27, function): Implements build server for module behavior. source\n - Signature: async function buildServer() \{

  • start (line 98, function): Implements start for module behavior. source\n - Signature: async function start() \{
  • shutdown (line 112, const arrow function): Implements shutdown for module behavior. source\n - Signature: const shutdown = async () => \{

apps/gateway/src/services/agentfield-client.ts\n\n- buildExecuteUrl (line 20, function): Implements build execute url for service-layer operations. source\n - Signature: function buildExecuteUrl(agent: string, reasoner: string): string \{

  • normalizeStatus (line 37, function): Implements normalize status for service-layer operations. source\n - Signature: function normalizeStatus(value: string \| undefined): "queued" \| "running" \{
  • parseExecutionResponse (line 44, function): Implements parse execution response for service-layer operations. source\n - Signature: function parseExecutionResponse(payload: AgentFieldExecutionResponse): ExecutionHandle \{
  • enqueueAgentExecution (line 57, function): Implements enqueue agent execution for service-layer operations. source\n - Signature: export async function enqueueAgentExecution(

apps/gateway/src/services/audit.ts\n\n- buildAuditCredential (line 5, function): Implements build audit credential for service-layer operations. source\n - Signature: export function buildAuditCredential(

apps/gateway/src/services/crypto.ts\n\n- isEncryptedEnvelope (line 12, function): Implements is encrypted envelope for service-layer operations. source\n - Signature: function isEncryptedEnvelope(value: unknown): value is EncryptedEnvelope \{

  • encryptJsonPayload (line 20, function): Implements encrypt json payload for service-layer operations. source\n - Signature: export function encryptJsonPayload(payload: unknown): unknown \{
  • decryptJsonPayload (line 43, function): Implements decrypt json payload for service-layer operations. source\n - Signature: export function decryptJsonPayload(payload: unknown): unknown \{

apps/gateway/src/services/event-pipeline.ts\n\n- persistTelemetryBatch (line 12, function): Implements persist telemetry batch for service-layer operations. source\n - Signature: export async function persistTelemetryBatch(

  • reservePendingOutboxEvents (line 41, function): Implements reserve pending outbox events for service-layer operations. source\n - Signature: export async function reservePendingOutboxEvents(limit = 100): Promise<
  • markOutboxEventStatus (line 79, function): Implements mark outbox event status for service-layer operations. source\n - Signature: export async function markOutboxEventStatus(id: string, status: "delivered" \| "pending" \| "failed"): Promise<void> \{
  • enqueueOutboxEvent (line 96, function): Implements enqueue outbox event for service-layer operations. source\n - Signature: export async function enqueueOutboxEvent(input: \{
  • listRecentOutboxEvents (line 109, function): Implements list recent outbox events for service-layer operations. source\n - Signature: export async function listRecentOutboxEvents(workspaceId: string, limit = 50): Promise<
  • listRecentTelemetryBatches (line 145, function): Implements list recent telemetry batches for service-layer operations. source\n - Signature: export async function listRecentTelemetryBatches(
  • listFailedOutboxEvents (line 171, function): Implements list failed outbox events for service-layer operations. source\n - Signature: export async function listFailedOutboxEvents(
  • retryOutboxEvent (line 200, function): Implements retry outbox event for service-layer operations. source\n - Signature: export async function retryOutboxEvent(workspaceId: string, eventId: string): Promise<boolean> \{

apps/gateway/src/services/event-router.ts\n\n- routeTelemetryEvent (line 9, function): Implements route telemetry event for service-layer operations. source\n - Signature: export function routeTelemetryEvent(event: TelemetryEvent): RoutedAction[] \{

apps/gateway/src/services/idempotency-repository.ts\n\n- getIdempotencyRecord (line 8, function): Implements get idempotency record for service-layer operations. source\n - Signature: export async function getIdempotencyRecord(

  • putIdempotencyRecord (line 36, function): Implements put idempotency record for service-layer operations. source\n - Signature: export async function putIdempotencyRecord(
  • pruneExpiredIdempotencyRecords (line 54, function): Implements prune expired idempotency records for service-layer operations. source\n - Signature: export async function pruneExpiredIdempotencyRecords(): Promise<number> \{

apps/gateway/src/services/job-repository.ts\n\n- rowToJob (line 40, function): Implements row to job for service-layer operations. source\n - Signature: function rowToJob(row: BackgroundJobRow): BackgroundJob \{

  • createBackgroundJob (line 59, function): Implements create background job for service-layer operations. source\n - Signature: export async function createBackgroundJob(workspaceId: string, jobType: string, payload: unknown): Promise<BackgroundJob> \{
  • listBackgroundJobs (line 72, function): Implements list background jobs for service-layer operations. source\n - Signature: export async function listBackgroundJobs(workspaceId: string, limit = 100): Promise<BackgroundJob[]> \{
  • reserveQueuedJobs (line 86, function): Implements reserve queued jobs for service-layer operations. source\n - Signature: export async function reserveQueuedJobs(limit = 20): Promise<BackgroundJob[]> \{
  • markBackgroundJobStatus (line 119, function): Implements mark background job status for service-layer operations. source\n - Signature: export async function markBackgroundJobStatus(jobId: string, status: JobStatus, payload?: unknown, patch: JobStatusPatch = \{\}): Promise<void> \{
  • listFailedBackgroundJobs (line 134, function): Implements list failed background jobs for service-layer operations. source\n - Signature: export async function listFailedBackgroundJobs(
  • retryBackgroundJob (line 165, function): Implements retry background job for service-layer operations. source\n - Signature: export async function retryBackgroundJob(workspaceId: string, jobId: string): Promise<boolean> \{

apps/gateway/src/services/portal-invite-repository.ts\n\n- normalizeStatus (line 35, function): Implements normalize status for service-layer operations. source\n - Signature: function normalizeStatus(value: string): PortalInviteStatus \{

  • mapInvite (line 45, function): Implements map invite for service-layer operations. source\n - Signature: function mapInvite(row: PortalInviteRow): PortalInvite \{
  • createPortalInvite (line 62, function): Implements create portal invite for service-layer operations. source\n - Signature: export async function createPortalInvite(input: \{
  • listPortalInvites (line 109, function): Implements list portal invites for service-layer operations. source\n - Signature: export async function listPortalInvites(workspaceId: string, limit = 50): Promise<PortalInvite[]> \{
  • revokePortalInvite (line 136, function): Implements revoke portal invite for service-layer operations. source\n - Signature: export async function revokePortalInvite(workspaceId: string, inviteId: string, revokedBy: string): Promise<boolean> \{
  • getPortalInviteByJti (line 150, function): Implements get portal invite by jti for service-layer operations. source\n - Signature: export async function getPortalInviteByJti(tokenJti: string): Promise<PortalInvite \| null> \{

apps/gateway/src/services/postgres.ts\n\n- requireDatabaseUrl (line 6, function): Implements require database url for service-layer operations. source\n - Signature: function requireDatabaseUrl(): string \{

  • createPool (line 14, function): Implements create pool for service-layer operations. source\n - Signature: function createPool(): Pool \{
  • getPool (line 31, function): Implements get pool for service-layer operations. source\n - Signature: export function getPool(): Pool \{

apps/gateway/src/services/providers/accounting.ts\n\n- sendAccountingSync (line 16, function): Implements send accounting sync for service-layer operations. source\n - Signature: export async function sendAccountingSync(input: AccountingSyncInput): Promise<\{ provider: string; accepted: boolean; details?: unknown \}> \{

apps/gateway/src/services/providers/notifications.ts\n\n- sendNotificationTest (line 17, function): Implements send notification test for service-layer operations. source\n - Signature: export async function sendNotificationTest(input: NotificationTestInput): Promise<\{ channel: string; delivered: boolean; details?: unknown \}> \{

apps/gateway/src/services/resource-repository.ts\n\n- serializePayload (line 6, function): Implements serialize payload for service-layer operations. source\n - Signature: function serializePayload(resourceType: string, payload: unknown): unknown \{

  • deserializePayload (line 13, function): Implements deserialize payload for service-layer operations. source\n - Signature: function deserializePayload(payload: unknown): unknown \{
  • listResources (line 17, function): Implements list resources for service-layer operations. source\n - Signature: export async function listResources(resourceType: string, workspaceId: string): Promise<unknown[]> \{
  • getResource (line 30, function): Implements get resource for service-layer operations. source\n - Signature: export async function getResource(resourceType: string, workspaceId: string, id: string): Promise<unknown \| null> \{
  • createResource (line 45, function): Implements create resource for service-layer operations. source\n - Signature: export async function createResource(resourceType: string, workspaceId: string, recordId: string, payload: unknown): Promise<void> \{
  • upsertResource (line 54, function): Implements upsert resource for service-layer operations. source\n - Signature: export async function upsertResource(resourceType: string, workspaceId: string, recordId: string, payload: unknown): Promise<void> \{
  • deleteResource (line 66, function): Implements delete resource for service-layer operations. source\n - Signature: export async function deleteResource(resourceType: string, workspaceId: string, recordId: string): Promise<boolean> \{

apps/gateway/src/services/runtime-config.ts\n\n- defaultPlatformSettings (line 15, function): Implements default platform settings for service-layer operations. source\n - Signature: export function defaultPlatformSettings(): PlatformSettings \{

  • defaultWorkspaceSettings (line 51, function): Implements default workspace settings for service-layer operations. source\n - Signature: export function defaultWorkspaceSettings(): WorkspaceSettings \{
  • mergePlatformSettings (line 69, function): Implements merge platform settings for service-layer operations. source\n - Signature: function mergePlatformSettings(base: PlatformSettings, override: PlatformSettings): PlatformSettings \{
  • getEffectivePlatformSettings (line 97, function): Implements get effective platform settings for service-layer operations. source\n - Signature: export async function getEffectivePlatformSettings(forceRefresh = false): Promise<\{
  • getEffectiveWorkspaceSettings (line 118, function): Implements get effective workspace settings for service-layer operations. source\n - Signature: export async function getEffectiveWorkspaceSettings(workspaceId: string): Promise<\{
  • invalidatePlatformSettingsCache (line 153, function): Implements invalidate platform settings cache for service-layer operations. source\n - Signature: export function invalidatePlatformSettingsCache(): void \{
  • resolveSecretValue (line 157, function): Implements resolve secret value for service-layer operations. source\n - Signature: export async function resolveSecretValue(input: \{

apps/gateway/src/services/settings-repository.ts\n\n- getPlatformSettingsRecord (line 23, function): Implements get platform settings record for service-layer operations. source\n - Signature: export async function getPlatformSettingsRecord(): Promise<\{

  • upsertPlatformSettingsRecord (line 55, function): Implements upsert platform settings record for service-layer operations. source\n - Signature: export async function upsertPlatformSettingsRecord(value: PlatformSettings, actor: string): Promise<\{
  • getWorkspaceSettingsRecord (line 82, function): Implements get workspace settings record for service-layer operations. source\n - Signature: export async function getWorkspaceSettingsRecord(workspaceId: string): Promise<\{
  • upsertWorkspaceSettingsRecord (line 117, function): Implements upsert workspace settings record for service-layer operations. source\n - Signature: export async function upsertWorkspaceSettingsRecord(
  • upsertRuntimeSecret (line 150, function): Implements upsert runtime secret for service-layer operations. source\n - Signature: export async function upsertRuntimeSecret(input: \{
  • listRuntimeSecretKeys (line 175, function): Implements list runtime secret keys for service-layer operations. source\n - Signature: export async function listRuntimeSecretKeys(input: \{
  • getRuntimeSecretValue (line 200, function): Implements get runtime secret value for service-layer operations. source\n - Signature: export async function getRuntimeSecretValue(input: \{

apps/gateway/src/services/telemetry.ts\n\n- getTelemetryClient (line 8, function): Implements get telemetry client for service-layer operations. source\n - Signature: function getTelemetryClient() \{

  • startTelemetry (line 28, function): Implements start telemetry for service-layer operations. source\n - Signature: export async function startTelemetry(logger: FastifyBaseLogger) \{
  • stopTelemetry (line 54, function): Implements stop telemetry for service-layer operations. source\n - Signature: export async function stopTelemetry(logger: FastifyBaseLogger) \{

apps/gateway/src/services/webhook-repository.ts\n\n- recordWebhookReceipt (line 3, function): Implements record webhook receipt for service-layer operations. source\n - Signature: export async function recordWebhookReceipt(provider: string, deliveryId: string): Promise<boolean> \{

apps/gateway/src/services/worker-runtime-repository.ts\n\n- normalizeStatus (line 17, function): Implements normalize status for service-layer operations. source\n - Signature: function normalizeStatus(value: string): "healthy" \| "degraded" \{

  • normalizeDetails (line 21, function): Implements normalize details for service-layer operations. source\n - Signature: function normalizeDetails(input: unknown): Record<string, unknown> \{
  • heartbeatWorker (line 25, function): Implements heartbeat worker for service-layer operations. source\n - Signature: export async function heartbeatWorker(
  • listWorkerRuntimeStatus (line 41, function): Implements list worker runtime status for service-layer operations. source\n - Signature: export async function listWorkerRuntimeStatus(limit = 50): Promise<WorkerRuntimeStatus[]> \{

apps/gateway/src/services/workflow-repository.ts\n\n- persistWorkflowExecution (line 16, function): Implements persist workflow execution for service-layer operations. source\n - Signature: export async function persistWorkflowExecution(input: PersistExecutionInput): Promise<void> \{

  • persistAuditCredential (line 41, function): Implements persist audit credential for service-layer operations. source\n - Signature: export async function persistAuditCredential(credential: AuditCredential): Promise<void> \{
  • deriveCompletionMetadata (line 69, function): Implements derive completion metadata for service-layer operations. source\n - Signature: function deriveCompletionMetadata(payload: unknown): \{
  • persistWorkflowCompletion (line 88, function): Implements persist workflow completion for service-layer operations. source\n - Signature: export async function persistWorkflowCompletion(input: WorkflowCompletionInput): Promise<void> \{
  • listWorkflowExecutions (line 128, function): Implements list workflow executions for service-layer operations. source\n - Signature: export async function listWorkflowExecutions(workspaceId: string, limit = 100): Promise<
  • getWorkflowExecutionById (line 189, function): Implements get workflow execution by id for service-layer operations. source\n - Signature: export async function getWorkflowExecutionById(workspaceId: string, executionId: string): Promise<\{
  • listWorkflowCallbacks (line 253, function): Implements list workflow callbacks for service-layer operations. source\n - Signature: export async function listWorkflowCallbacks(
  • cancelWorkflowExecution (line 274, function): Implements cancel workflow execution for service-layer operations. source\n - Signature: export async function cancelWorkflowExecution(
  • listAuditCredentials (line 293, function): Implements list audit credentials for service-layer operations. source\n - Signature: export async function listAuditCredentials(workspaceId: string, limit = 100): Promise<AuditCredential[]> \{

apps/gateway/src/tests/jwt.test.ts\n\n- encodeBase64Url (line 6, function): Implements encode base64 url for module behavior. source\n - Signature: function encodeBase64Url(value: string): string \{

  • buildToken (line 10, function): Implements build token for module behavior. source\n - Signature: function buildToken(payload: Record<string, unknown>, secret: string): string \{

apps/gateway/src/utils/authorization.ts\n\n- ensureRoles (line 3, function): Implements ensure roles for module behavior. source\n - Signature: export function ensureRoles(request: FastifyRequest, reply: FastifyReply, allowedRoles: string[]): boolean \{

apps/gateway/src/utils/idempotency.ts\n\n- getIdempotencyKey (line 3, function): Implements get idempotency key for module behavior. source\n - Signature: export function getIdempotencyKey(request: FastifyRequest): string \{

  • getIdempotencyRouteScope (line 18, function): Implements get idempotency route scope for module behavior. source\n - Signature: export function getIdempotencyRouteScope(request: FastifyRequest): string \{

apps/gateway/src/utils/jwt.ts\n\n- base64UrlDecode (line 5, function): Implements base64 url decode for module behavior. source\n - Signature: function base64UrlDecode(value: string): string \{

  • verifySignature (line 14, function): Implements verify signature for module behavior. source\n - Signature: function verifySignature(input: string, signature: string, secret: string): boolean \{
  • verifyHs256Jwt (line 24, function): Implements verify hs256 jwt for module behavior. source\n - Signature: export function verifyHs256Jwt(token: string, secret: string): JwtPayload \{

apps/gateway/src/utils/routes.ts\n\n- isPublicRoute (line 14, function): Implements is public route for module behavior. source\n - Signature: export function isPublicRoute(url: string): boolean \{

  • isNonTenantRoute (line 18, function): Implements is non tenant route for module behavior. source\n - Signature: export function isNonTenantRoute(url: string): boolean \{

apps/gateway/src/utils/uuid.ts\n\n- isUuid (line 5, function): Implements is uuid for module behavior. source\n - Signature: export function isUuid(value: string): boolean \{

  • ensureUuid (line 9, function): Implements ensure uuid for module behavior. source\n - Signature: export function ensureUuid(value: unknown, fallback?: string): string \{

apps/gateway/src/utils/workspace.ts\n\n- getWorkspaceIdFromHeaders (line 4, function): Implements get workspace id from headers for module behavior. source\n - Signature: export function getWorkspaceIdFromHeaders(headers: Record<string, unknown>): string \{

apps/gateway/src/workers/job-processor.ts\n\n- sleep (line 8, function): Implements sleep for background job processing. source\n - Signature: function sleep(ms: number) \{

  • readPayload (line 12, function): Implements read payload for background job processing. source\n - Signature: function readPayload(job: BackgroundJob): Record<string, unknown> \{
  • processImportJob (line 16, function): Implements process import job for background job processing. source\n - Signature: async function processImportJob(job: BackgroundJob): Promise<void> \{
  • processExportJob (line 50, function): Implements process export job for background job processing. source\n - Signature: async function processExportJob(job: BackgroundJob): Promise<void> \{
  • processJob (line 72, function): Implements process job for background job processing. source\n - Signature: async function processJob(job: BackgroundJob): Promise<void> \{
  • run (line 106, function): Implements run for background job processing. source\n - Signature: async function run() \{

apps/gateway/src/workers/outbox-dispatcher.ts\n\n- sleep (line 7, function): Implements sleep for background job processing. source\n - Signature: function sleep(ms: number) \{

  • processEvent (line 16, function): Implements process event for background job processing. source\n - Signature: async function processEvent(event: \{
  • run (line 44, function): Implements run for background job processing. source\n - Signature: async function run() \{

apps/status-mock/src/server.ts\n\n- ensureAuth (line 48, function): Implements ensure auth for module behavior. source\n - Signature: function ensureAuth(authorization: string \| undefined) \{

apps/web/app/.well-known/engine-status/route.ts\n\n- GET (line 6, function): Implements get for module behavior. source\n - Signature: export async function GET() \{

apps/web/app/actions/operator-actions.ts\n\n- requiredString (line 9, function): Implements required string for module behavior. source\n - Signature: function requiredString(formData: FormData, key: string): string \{

  • optionalString (line 17, function): Implements optional string for module behavior. source\n - Signature: function optionalString(formData: FormData, key: string): string \| undefined \{
  • requiredWorkspaceId (line 26, function): Implements required workspace id for module behavior. source\n - Signature: function requiredWorkspaceId(formData: FormData): string \{
  • redirectBack (line 34, function): Implements redirect back for module behavior. source\n - Signature: function redirectBack(formData: FormData, workspaceId: string): never \{
  • parsePositiveNumber (line 39, function): Implements parse positive number for module behavior. source\n - Signature: function parsePositiveNumber(input: string \| undefined, fallback = 0): number \{
  • requiredResourcePath (line 84, function): Implements required resource path for module behavior. source\n - Signature: function requiredResourcePath(formData: FormData): string \{
  • parseJsonObject (line 92, function): Implements parse json object for module behavior. source\n - Signature: function parseJsonObject(input: string, fieldName: string): Record<string, unknown> \{
  • parseScalarValue (line 104, function): Implements parse scalar value for module behavior. source\n - Signature: function parseScalarValue(input: string): unknown \{
  • collectStructuredFields (line 131, function): Implements collect structured fields for module behavior. source\n - Signature: function collectStructuredFields(formData: FormData): Record<string, unknown> \{
  • createClientAction (line 153, function): Implements create client action for module behavior. source\n - Signature: export async function createClientAction(formData: FormData) \{
  • createAssetAction (line 168, function): Implements create asset action for module behavior. source\n - Signature: export async function createAssetAction(formData: FormData) \{
  • createTicketAction (line 184, function): Implements create ticket action for module behavior. source\n - Signature: export async function createTicketAction(formData: FormData) \{
  • createAlertAction (line 200, function): Implements create alert action for module behavior. source\n - Signature: export async function createAlertAction(formData: FormData) \{
  • resourceCreateJsonAction (line 217, function): Implements resource create json action for module behavior. source\n - Signature: export async function resourceCreateJsonAction(formData: FormData) \{
  • resourceCreateStructuredAction (line 231, function): Implements resource create structured action for module behavior. source\n - Signature: export async function resourceCreateStructuredAction(formData: FormData) \{
  • resourcePatchJsonAction (line 248, function): Implements resource patch json action for module behavior. source\n - Signature: export async function resourcePatchJsonAction(formData: FormData) \{
  • resourceLifecyclePatchAction (line 263, function): Implements resource lifecycle patch action for module behavior. source\n - Signature: export async function resourceLifecyclePatchAction(formData: FormData) \{
  • resourceDeleteAction (line 281, function): Implements resource delete action for module behavior. source\n - Signature: export async function resourceDeleteAction(formData: FormData) \{
  • resourceArchiveAction (line 294, function): Implements resource archive action for module behavior. source\n - Signature: export async function resourceArchiveAction(formData: FormData) \{
  • portalCreateTicketAction (line 320, function): Implements portal create ticket action for module behavior. source\n - Signature: export async function portalCreateTicketAction(formData: FormData) \{
  • createPortalInviteAction (line 338, function): Implements create portal invite action for module behavior. source\n - Signature: export async function createPortalInviteAction(formData: FormData) \{
  • revokePortalInviteAction (line 393, function): Implements revoke portal invite action for module behavior. source\n - Signature: export async function revokePortalInviteAction(formData: FormData) \{
  • portalUpdateTicketAction (line 405, function): Implements portal update ticket action for module behavior. source\n - Signature: export async function portalUpdateTicketAction(formData: FormData) \{
  • portalQuoteDecisionAction (line 422, function): Implements portal quote decision action for module behavior. source\n - Signature: export async function portalQuoteDecisionAction(formData: FormData) \{
  • portalInvoiceAcknowledgeAction (line 439, function): Implements portal invoice acknowledge action for module behavior. source\n - Signature: export async function portalInvoiceAcknowledgeAction(formData: FormData) \{
  • portalInvoicePaymentIntentAction (line 455, function): Implements portal invoice payment intent action for module behavior. source\n - Signature: export async function portalInvoicePaymentIntentAction(formData: FormData) \{
  • portalTerminateSessionAction (line 473, function): Implements portal terminate session action for module behavior. source\n - Signature: export async function portalTerminateSessionAction(formData: FormData) \{
  • opsAlertLinkTicketAction (line 479, function): Implements ops alert link ticket action for module behavior. source\n - Signature: export async function opsAlertLinkTicketAction(formData: FormData) \{
  • opsTicketLinkAssetAction (line 495, function): Implements ops ticket link asset action for module behavior. source\n - Signature: export async function opsTicketLinkAssetAction(formData: FormData) \{
  • opsTicketLinkRunbookAction (line 509, function): Implements ops ticket link runbook action for module behavior. source\n - Signature: export async function opsTicketLinkRunbookAction(formData: FormData) \{
  • opsTicketEscalateAction (line 523, function): Implements ops ticket escalate action for module behavior. source\n - Signature: export async function opsTicketEscalateAction(formData: FormData) \{
  • opsTicketResolveAction (line 538, function): Implements ops ticket resolve action for module behavior. source\n - Signature: export async function opsTicketResolveAction(formData: FormData) \{
  • workflowRetryAction (line 553, function): Implements workflow retry action for module behavior. source\n - Signature: export async function workflowRetryAction(formData: FormData) \{
  • workflowCancelAction (line 567, function): Implements workflow cancel action for module behavior. source\n - Signature: export async function workflowCancelAction(formData: FormData) \{
  • retryOutboxFailureAction (line 581, function): Implements retry outbox failure action for module behavior. source\n - Signature: export async function retryOutboxFailureAction(formData: FormData) \{
  • retryJobFailureAction (line 593, function): Implements retry job failure action for module behavior. source\n - Signature: export async function retryJobFailureAction(formData: FormData) \{
  • triggerAgentSmokeAction (line 605, function): Implements trigger agent smoke action for module behavior. source\n - Signature: export async function triggerAgentSmokeAction(formData: FormData) \{
  • triggerAccountingSyncAction (line 625, function): Implements trigger accounting sync action for module behavior. source\n - Signature: export async function triggerAccountingSyncAction(formData: FormData) \{
  • triggerNotificationTestAction (line 659, function): Implements trigger notification test action for module behavior. source\n - Signature: export async function triggerNotificationTestAction(formData: FormData) \{
  • setWorkspaceSecretAction (line 693, function): Implements set workspace secret action for module behavior. source\n - Signature: export async function setWorkspaceSecretAction(formData: FormData) \{
  • updateWorkspacePolicyAction (line 709, function): Implements update workspace policy action for module behavior. source\n - Signature: export async function updateWorkspacePolicyAction(formData: FormData) \{
  • rotateEdgeEnrollmentTokenAction (line 745, function): Implements rotate edge enrollment token action for module behavior. source\n - Signature: export async function rotateEdgeEnrollmentTokenAction(formData: FormData) \{

apps/web/app/api/admin/platform-secrets/[key]/route.ts\n\n- POST (line 5, function): Implements post for module behavior. source\n - Signature: export async function POST(request: Request, context: \{ params: Promise<\{ key: string \}> \}) \{

apps/web/app/api/admin/platform-secrets/route.ts\n\n- GET (line 5, function): Implements get for module behavior. source\n - Signature: export async function GET(request: Request) \{

apps/web/app/api/admin/platform-settings/route.ts\n\n- getWorkspaceIdOrError (line 5, function): Implements get workspace id or error for module behavior. source\n - Signature: function getWorkspaceIdOrError(request: Request): \{ workspaceId?: string; error?: string \} \{

  • GET (line 13, function): Implements get for module behavior. source\n - Signature: export async function GET(request: Request) \{
  • PUT (line 22, function): Implements put for module behavior. source\n - Signature: export async function PUT(request: Request) \{

apps/web/app/api/admin/workspace-secrets/[key]/route.ts\n\n- POST (line 5, function): Implements post for module behavior. source\n - Signature: export async function POST(request: Request, context: \{ params: Promise<\{ key: string \}> \}) \{

apps/web/app/api/admin/workspace-secrets/route.ts\n\n- GET (line 5, function): Implements get for module behavior. source\n - Signature: export async function GET(request: Request) \{

apps/web/app/api/admin/workspace-settings/route.ts\n\n- getWorkspaceIdOrError (line 5, function): Implements get workspace id or error for module behavior. source\n - Signature: function getWorkspaceIdOrError(request: Request): \{ workspaceId?: string; error?: string \} \{

  • GET (line 13, function): Implements get for module behavior. source\n - Signature: export async function GET(request: Request) \{
  • PUT (line 23, function): Implements put for module behavior. source\n - Signature: export async function PUT(request: Request) \{

apps/web/app/auth/operator/actions.ts\n\n- sanitizeReturnTo (line 7, function): Implements sanitize return to for module behavior. source\n - Signature: function sanitizeReturnTo(value: string \| null): string \{

  • buildErrorUrl (line 18, function): Implements build error url for module behavior. source\n - Signature: function buildErrorUrl(workspaceId: string \| null, returnTo: string, message: string): string \{
  • operatorSessionSignInAction (line 30, function): Implements operator session sign in action for module behavior. source\n - Signature: export async function operatorSessionSignInAction(formData: FormData) \{
  • operatorSessionSignOutAction (line 62, function): Implements operator session sign out action for module behavior. source\n - Signature: export async function operatorSessionSignOutAction(formData: FormData) \{

apps/web/app/auth/operator/page.tsx\n\n- firstValue (line 10, function): Implements first value for module behavior. source\n - Signature: function firstValue(value: string \| string[] \| undefined): string \{

apps/web/app/page.tsx\n\n- singularLabel (line 45, function): Implements singular label for module behavior. source\n - Signature: function singularLabel(value: string): string \{

  • safeString (line 262, function): Implements safe string for module behavior. source\n - Signature: function safeString(input: unknown): string \{
  • firstSearchValue (line 266, function): Implements first search value for module behavior. source\n - Signature: function firstSearchValue(value: string \| string[] \| undefined): string \{
  • parsePositiveInt (line 273, function): Implements parse positive int for module behavior. source\n - Signature: function parsePositiveInt(value: string, fallback: number): number \{
  • recordPrimary (line 278, function): Implements record primary for module behavior. source\n - Signature: function recordPrimary(record: RecordData, keys: string[]): string \{
  • recordStatus (line 291, function): Implements record status for module behavior. source\n - Signature: function recordStatus(record: RecordData): string \{
  • recordTimestamp (line 299, function): Implements record timestamp for module behavior. source\n - Signature: function recordTimestamp(record: RecordData): string \{
  • buildPageHref (line 305, function): Implements build page href for module behavior. source\n - Signature: function buildPageHref(workspaceId: string, values: Record<string, string \| undefined>): string \{
  • buildReturnPath (line 316, function): Implements build return path for module behavior. source\n - Signature: function buildReturnPath(values: Record<string, string \| undefined>): string \{
  • sourceOptions (line 327, function): Implements source options for module behavior. source\n - Signature: function sourceOptions(records: RecordData[]): Array<\{ value: string; label: string \}> \{
  • fieldInput (line 336, function): Implements field input for module behavior. source\n - Signature: function fieldInput(field: ModuleField, sourceData: Record<ModuleSource, RecordData[]>) \{
  • activeRecords (line 440, const arrow function): Implements active records for module behavior. source\n - Signature: const activeRecords = (workbenchData?.inventory.find((entry) => entry.path === selectedModule.path)?.records ?? []) as RecordData[];
  • count (line 458, const arrow function): Implements count for module behavior. source\n - Signature: const count = (workbenchData?.inventory.find((inventory) => inventory.path === entry.path)?.records.length ?? 0) as number;

apps/web/app/portal/page.tsx\n\n- firstSearchValue (line 25, function): Implements first search value for module behavior. source\n - Signature: function firstSearchValue(value: string \| string[] \| undefined): string \| null \{

apps/web/components/admin-policy-panel.tsx\n\n- AdminPolicyPanel (line 8, function): Implements admin policy panel for module behavior. source\n - Signature: export function AdminPolicyPanel(\{ workspaceId \}: AdminPolicyPanelProps) \{

apps/web/components/admin-settings-console.tsx\n\n- pretty (line 17, function): Implements pretty for module behavior. source\n - Signature: function pretty(value: unknown): string \{

  • withWorkspace (line 21, function): Implements with workspace for module behavior. source\n - Signature: function withWorkspace(path: string, workspaceId: string): string \{
  • loadJson (line 25, function): Implements load json for module behavior. source\n - Signature: async function loadJson(path: string, workspaceId: string): Promise<unknown> \{
  • AdminSettingsConsole (line 34, function): Implements admin settings console for module behavior. source\n - Signature: export function AdminSettingsConsole(\{ workspaceId \}: AdminSettingsConsoleProps) \{
  • refresh (line 55, function): Implements refresh for module behavior. source\n - Signature: async function refresh() \{
  • savePlatformSettings (line 81, function): Implements save platform settings for module behavior. source\n - Signature: async function savePlatformSettings() \{
  • saveWorkspaceSettings (line 101, function): Implements save workspace settings for module behavior. source\n - Signature: async function saveWorkspaceSettings() \{
  • savePlatformSecret (line 121, function): Implements save platform secret for module behavior. source\n - Signature: async function savePlatformSecret() \{
  • saveWorkspaceSecret (line 144, function): Implements save workspace secret for module behavior. source\n - Signature: async function saveWorkspaceSecret() \{

apps/web/components/dashboard-shell.tsx\n\n- DashboardShell (line 8, function): Implements dashboard shell for module behavior. source\n - Signature: export function DashboardShell(\{ kpiTiles, activeExecutions, recentEvents, workspaceId \}: DashboardShellProps) \{

apps/web/components/integration-onboarding-panel.tsx\n\n- IntegrationOnboardingPanel (line 15, function): Implements integration onboarding panel for module behavior. source\n - Signature: export function IntegrationOnboardingPanel(\{ workspaceId, secretKeys, accountingStatus, notificationStatus \}: IntegrationOnboardingPanelProps) \{

apps/web/components/portal-invite-panel.tsx\n\n- PortalInvitePanel (line 27, function): Implements portal invite panel for module behavior. source\n - Signature: export function PortalInvitePanel(\{ workspaceId, clients, invites, inviteResult, inviteError \}: PortalInvitePanelProps) \{

apps/web/components/telemetry-enrollment-panel.tsx\n\n- TelemetryEnrollmentPanel (line 27, function): Implements telemetry enrollment panel for module behavior. source\n - Signature: export function TelemetryEnrollmentPanel(\{ workspaceId, enrollment, ingestStatus, tokenResult \}: TelemetryEnrollmentPanelProps) \{

apps/web/components/top-nav.tsx\n\n- TopNav (line 17, function): Implements top nav for module behavior. source\n - Signature: export function TopNav(\{ workspaceId, current, returnToPath = "/" \}: TopNavProps) \{

apps/web/components/workspace-required.tsx\n\n- WorkspaceRequired (line 10, function): Implements workspace required for module behavior. source\n - Signature: export function WorkspaceRequired(\{ returnTo, message, suggestions = [] \}: WorkspaceRequiredProps) \{

apps/web/components/workspace-switcher.tsx\n\n- WorkspaceSwitcher (line 6, function): Implements workspace switcher for module behavior. source\n - Signature: export function WorkspaceSwitcher(\{ action, workspaceId \}: WorkspaceSwitcherProps) \{

apps/web/lib/admin-api.ts\n\n- baseHeaders (line 6, function): Implements base headers for module behavior. source\n - Signature: function baseHeaders(workspaceId: string, operatorJwt: string \| null) \{

  • proxyGatewayJson (line 14, function): Implements proxy gateway json for module behavior. source\n - Signature: export async function proxyGatewayJson(path: string, workspaceId: string, init: RequestInit = \{\}) \{
  • idempotencyHeaders (line 49, function): Implements idempotency headers for module behavior. source\n - Signature: export function idempotencyHeaders(): Record<string, string> \{

apps/web/lib/dashboard-data.ts\n\n- requestHeaders (line 34, function): Implements request headers for module behavior. source\n - Signature: function requestHeaders(workspaceId: string, operatorJwt: string \| null) \{

  • getDashboardData (line 42, function): Implements get dashboard data for module behavior. source\n - Signature: export async function getDashboardData(workspaceId: string): Promise<DashboardData> \{

apps/web/lib/operator-auth.ts\n\n- decodeBase64Url (line 18, function): Implements decode base64 url for module behavior. source\n - Signature: function decodeBase64Url(value: string): string \{

  • parseOperatorClaims (line 24, function): Implements parse operator claims for module behavior. source\n - Signature: function parseOperatorClaims(token: string): OperatorClaims \{
  • getOperatorClaims (line 68, function): Implements get operator claims for module behavior. source\n - Signature: export function getOperatorClaims(): OperatorClaims \| null \{
  • getPreferredOperatorWorkspaceId (line 84, function): Implements get preferred operator workspace id for module behavior. source\n - Signature: export function getPreferredOperatorWorkspaceId(): string \| null \{
  • assertOperatorAccess (line 98, function): Implements assert operator access for module behavior. source\n - Signature: export function assertOperatorAccess(workspaceId: string, acceptedRoles: string[]): string \| null \{

apps/web/lib/operator-session.ts\n\n- decodeBase64Url (line 22, function): Implements decode base64 url for module behavior. source\n - Signature: function decodeBase64Url(value: string): string \{

  • parseOperatorSessionClaims (line 28, function): Implements parse operator session claims for module behavior. source\n - Signature: export function parseOperatorSessionClaims(token: string): OperatorSessionClaims \| null \{
  • readOperatorSession (line 70, function): Implements read operator session for module behavior. source\n - Signature: export async function readOperatorSession(): Promise<OperatorSession \| null> \{
  • setOperatorSessionToken (line 85, function): Implements set operator session token for module behavior. source\n - Signature: export async function setOperatorSessionToken(token: string): Promise<OperatorSessionClaims> \{
  • clearOperatorSessionToken (line 103, function): Implements clear operator session token for module behavior. source\n - Signature: export async function clearOperatorSessionToken() \{
  • resolveOperatorAuthToken (line 108, function): Implements resolve operator auth token for module behavior. source\n - Signature: export async function resolveOperatorAuthToken(workspaceId: string, acceptedRoles: string[]): Promise<string \| null> \{

apps/web/lib/operator-workbench-data.ts\n\n- asRecord (line 9, function): Implements as record for module behavior. source\n - Signature: function asRecord(input: unknown): RecordData \{

  • getConsoleWorkbenchData (line 89, function): Implements get console workbench data for module behavior. source\n - Signature: export async function getConsoleWorkbenchData(workspaceId: string): Promise<ConsoleWorkbenchData> \{
  • getOpsWorkbenchData (line 121, function): Implements get ops workbench data for module behavior. source\n - Signature: export async function getOpsWorkbenchData(workspaceId: string): Promise<OpsWorkbenchData> \{
  • getPortalWorkbenchData (line 169, function): Implements get portal workbench data for module behavior. source\n - Signature: export async function getPortalWorkbenchData(workspaceId: string): Promise<PortalWorkbenchData> \{

apps/web/lib/ops-data.ts\n\n- requestHeaders (line 26, function): Implements request headers for module behavior. source\n - Signature: function requestHeaders(workspaceId: string, operatorJwt: string \| null) \{

  • getOpsData (line 34, function): Implements get ops data for module behavior. source\n - Signature: export async function getOpsData(workspaceId: string): Promise<OpsData> \{

apps/web/lib/portal-data.ts\n\n- requestHeaders (line 46, function): Implements request headers for module behavior. source\n - Signature: function requestHeaders(workspaceId: string, operatorJwt: string \| null) \{

  • getPortalData (line 54, function): Implements get portal data for module behavior. source\n - Signature: export async function getPortalData(workspaceId: string): Promise<PortalData> \{

apps/web/lib/portal-session.ts\n\n- decodeBase64Url (line 35, function): Implements decode base64 url for module behavior. source\n - Signature: function decodeBase64Url(value: string): string \{

  • parsePortalClaims (line 41, function): Implements parse portal claims for module behavior. source\n - Signature: function parsePortalClaims(token: string): PortalSessionClaims \| null \{
  • readPortalSession (line 80, function): Implements read portal session for module behavior. source\n - Signature: export async function readPortalSession(workspaceId: string): Promise<PortalSession \| null> \{
  • setPortalSessionToken (line 101, function): Implements set portal session token for module behavior. source\n - Signature: export async function setPortalSessionToken(token: string, expiresAt?: string) \{
  • clearPortalSessionToken (line 112, function): Implements clear portal session token for module behavior. source\n - Signature: export async function clearPortalSessionToken() \{
  • resolvePortalAuthToken (line 117, function): Implements resolve portal auth token for module behavior. source\n - Signature: export async function resolvePortalAuthToken(
  • exchangePortalInviteToken (line 132, function): Implements exchange portal invite token for module behavior. source\n - Signature: export async function exchangePortalInviteToken(
  • terminatePortalSession (line 165, function): Implements terminate portal session for module behavior. source\n - Signature: export async function terminatePortalSession(workspaceId: string): Promise<void> \{

apps/web/lib/workspace-context.ts\n\n- isWorkspaceId (line 7, function): Implements is workspace id for module behavior. source\n - Signature: export function isWorkspaceId(value: unknown): value is string \{

  • firstValue (line 11, function): Implements first value for module behavior. source\n - Signature: function firstValue(value: string \| string[] \| undefined): string \| undefined \{
  • workspaceIdFromSearchParams (line 18, function): Implements workspace id from search params for module behavior. source\n - Signature: export function workspaceIdFromSearchParams(searchParams: SearchParamRecord \| URLSearchParams): string \| null \{
  • assertWorkspaceIdFromSearchParams (line 32, function): Implements assert workspace id from search params for module behavior. source\n - Signature: export function assertWorkspaceIdFromSearchParams(searchParams: SearchParamRecord \| URLSearchParams): string \{
  • withWorkspaceQuery (line 40, function): Implements with workspace query for module behavior. source\n - Signature: export function withWorkspaceQuery(path: string, workspaceId: string): string \{

apps/web/lib/workspace-resolution.ts\n\n- appendSearchValue (line 11, function): Implements append search value for module behavior. source\n - Signature: function appendSearchValue(params: URLSearchParams, key: string, value: string \| string[] \| undefined): void \{

  • resolveWorkspaceId (line 23, function): Implements resolve workspace id for module behavior. source\n - Signature: export function resolveWorkspaceId(searchParams: SearchParamRecord): string \| null \{
  • suggestedWorkspaceIds (line 37, function): Implements suggested workspace ids for module behavior. source\n - Signature: export function suggestedWorkspaceIds(): string[] \{
  • withResolvedWorkspace (line 52, function): Implements with resolved workspace for module behavior. source\n - Signature: export function withResolvedWorkspace(pathname: string, workspaceId: string, searchParams: SearchParamRecord): string \{

packages/ui/src/components/card.tsx\n\n- Card (line 23, function): Implements card for module behavior. source\n - Signature: export function Card(\{ className, tone, ...props \}: CardProps) \{

packages/ui/src/components/metric.tsx\n\n- Metric (line 17, function): Implements metric for module behavior. source\n - Signature: export function Metric(\{ label, value, trend, tone = "neutral" \}: MetricProps) \{

packages/ui/src/components/status-pill.tsx\n\n- StatusPill (line 18, function): Implements status pill for module behavior. source\n - Signature: export function StatusPill(\{ status \}: StatusPillProps) \{