Skip to main content

authoringReadContextSchema

@gooi/language-server


@gooi/language-server / contracts/read-context / authoringReadContextSchema

Variable: authoringReadContextSchema

const authoringReadContextSchema: ZodObject<{ capabilityIndexSnapshot: ZodObject<{ artifactHash: ZodString; artifactVersion: ZodLiteral<"1.0.0">; capabilities: ZodArray<ZodObject<{ capabilityId: ZodString; capabilityVersion: ZodString; certificationState: ZodEnum<{ certified: "certified"; pending: "pending"; rejected: "rejected"; revoked: "revoked"; uncertified: "uncertified"; }>; declaredEffects: ZodArray<ZodEnum<{ compute: "compute"; emit: "emit"; network: "network"; read: "read"; session: "session"; stream: "stream"; write: "write"; }>>; deprecation: ZodObject<{ deprecatedAt: ZodOptional<ZodISODateTime>; isDeprecated: ZodBoolean; removalAt: ZodOptional<ZodISODateTime>; replacementCapabilityId: ZodOptional<ZodString>; }, $strip>; examples: ZodObject<{ error: ZodOptional<ZodType<..., ..., ...>>; input: ZodOptional<ZodType<..., ..., ...>>; output: ZodOptional<ZodType<..., ..., ...>>; }, $strip>; ioSchemaRefs: ZodObject<{ errorSchemaRef: ZodString; inputSchemaRef: ZodString; outputSchemaRef: ZodString; }, $strip>; lastVerifiedAt: ZodNullable<ZodISODateTime>; provenance: ZodEnum<{ catalog: "catalog"; local-spec: "local-spec"; }>; providerAvailability: ZodArray<ZodObject<{ providerId: ZodString; providerVersion: ZodString; status: ZodEnum<...>; }, $strip>>; trustTier: ZodEnum<{ community: "community"; trusted: "trusted"; unknown: "unknown"; verified: "verified"; }>; }, $strip>>; catalogIdentity: ZodObject<{ catalogHash: ZodString; catalogSource: ZodString; catalogVersion: ZodString; }, $strip>; sourceHash: ZodString; }, $strip>; compiledEntrypointBundleIdentity: ZodObject<{ artifactHash: ZodString; artifactId: ZodLiteral<"CompiledEntrypointBundle">; artifactVersion: ZodString; }, $strict>; documentPath: ZodString; documentText: ZodString; documentUri: ZodString; lockfile: ZodObject<{ artifactHash: ZodString; artifactVersion: ZodLiteral<"1.0.0">; catalogSnapshot: ZodObject<{ catalogHash: ZodString; catalogSource: ZodString; catalogVersion: ZodString; }, $strip>; envelopeVersions: ZodObject<{ authoringDiagnosticsEnvelope: ZodLiteral<"1.0.0">; authoringErrorEnvelope: ZodLiteral<"1.0.0">; authoringRequestEnvelope: ZodLiteral<"1.0.0">; authoringResultEnvelope: ZodLiteral<"1.0.0">; }, $strip>; remoteSource: ZodOptional<ZodObject<{ fetchedAt: ZodISODateTime; id: ZodString; url: ZodURL; }, $strip>>; requiredArtifacts: ZodObject<{ capabilityIndexSnapshot: ZodObject<{ artifactHash: ZodString; artifactId: ZodString; artifactVersion: ZodString; }, $strip>; compiledEntrypointBundle: ZodObject<{ artifactHash: ZodString; artifactId: ZodString; artifactVersion: ZodString; }, $strip>; symbolGraphSnapshot: ZodObject<{ artifactHash: ZodString; artifactId: ZodString; artifactVersion: ZodString; }, $strip>; }, $strip>; sourceHash: ZodString; sourceKind: ZodLiteral<"workspace-local">; }, $strip>; sourceSpec: ZodOptional<ZodUnknown>; symbolGraphSnapshot: ZodObject<{ artifactHash: ZodString; artifactVersion: ZodLiteral<"1.0.0">; references: ZodArray<ZodObject<{ fromSymbolId: ZodString; relationship: ZodEnum<{ emits_signal: "emits_signal"; impacts_query: "impacts_query"; references: "references"; refresh_subscription: "refresh_subscription"; }>; toSymbolId: ZodString; }, $strip>>; renameConstraints: ZodArray<ZodObject<{ blockedReason: ZodOptional<ZodString>; renameable: ZodBoolean; symbolKind: ZodEnum<{ action: "action"; ambient_symbol: "ambient_symbol"; capability: "capability"; entrypoint: "entrypoint"; expression_variable: "expression_variable"; projection: "projection"; route: "route"; signal: "signal"; step_binding: "step_binding"; }>; }, $strip>>; sourceHash: ZodString; symbols: ZodArray<ZodObject<{ id: ZodString; kind: ZodEnum<{ action: "action"; ambient_symbol: "ambient_symbol"; capability: "capability"; entrypoint: "entrypoint"; expression_variable: "expression_variable"; projection: "projection"; route: "route"; signal: "signal"; step_binding: "step_binding"; }>; location: ZodObject<{ character: ZodNumber; line: ZodNumber; path: ZodString; }, $strip>; name: ZodString; ownerSymbolId: ZodOptional<ZodString>; }, $strip>>; }, $strip>; }, $strip>

Defined in: authoring/authoring-diagnostics/src/contracts/read-context.ts:23

Snapshot-backed document context required by authoring read-path features.