Skip to main content

ResolverDeps

@forge/monorepo


@forge/monorepo / backend/src / ResolverDeps

Type Alias: ResolverDeps

ResolverDeps = object

Defined in: backend/src/graphql/resolvers.ts:26

Properties

approvals

readonly approvals: ReturnType<typeof createApprovalService>

Defined in: backend/src/graphql/resolvers.ts:32


channelFor?

readonly optional channelFor?: (conversationId) => string

Defined in: backend/src/graphql/resolvers.ts:54

Parameters

conversationId

ConversationId

Returns

string


conversations

readonly conversations: ConversationStore

Defined in: backend/src/graphql/resolvers.ts:27


coordinator

readonly coordinator: ConversationRunCoordinator

Defined in: backend/src/graphql/resolvers.ts:33


dispatcher

readonly dispatcher: JobDispatcher

Defined in: backend/src/graphql/resolvers.ts:34


eventLog

readonly eventLog: RunEventLog

Defined in: backend/src/graphql/resolvers.ts:35


inspectContext?

readonly optional inspectContext?: (execution, input) => Promise<ContextInspection | null>

Defined in: backend/src/graphql/resolvers.ts:56

Host-provided context assembly for the inspector (providers are app-specific).

Parameters

execution

ExecutionContext

input
conversationId

ConversationId

runId?

RunId

Returns

Promise<ContextInspection | null>


live

readonly live: LiveEventSource

Defined in: backend/src/graphql/resolvers.ts:53


questions

readonly questions: ReturnType<typeof createQuestionService>

Defined in: backend/src/graphql/resolvers.ts:31


quota?

readonly optional quota?: QuotaGuard

Defined in: backend/src/graphql/resolvers.ts:43

Quota enforcement at admission (#139).

Optional: a deployment with no limits configured is valid, and its absence means unbounded — the same direction resolveLimits takes, because a misconfigured quota that blocks everything is an outage and one that blocks nothing is a bill the rollups make visible.


rateLimit?

readonly optional rateLimit?: RateLimitGuard

Defined in: backend/src/graphql/resolvers.ts:45

Capacity, as distinct from spend — task #248. Absent means unchecked.


rollups?

readonly optional rollups?: UsageRollupStore

Defined in: backend/src/graphql/resolvers.ts:52

Rollups for the spend panel (#140).

Optional for the same reason quota is: a deployment that has not run the rollup job yet should still serve a usage query, from the ledger, rather than erroring. Its absence costs a chart, not the page.


runs

readonly runs: RunStore

Defined in: backend/src/graphql/resolvers.ts:28


toolRegistry

readonly toolRegistry: ToolRegistry

Defined in: backend/src/graphql/resolvers.ts:30


usage

readonly usage: UsageStore

Defined in: backend/src/graphql/resolvers.ts:29