Skip to content

@codesoul-co/hypha-core / contracts/runtime-schemas

Using this module

Use the Runtime schemas module for declaring and runtime-validating contracts. It exports 40 constants, 8 functions.

Import from the package entrypoint

ts
import {
  normalizedRuntimeErrorDefinition,
  normalizedRuntimeErrorExample,
  normalizedRuntimeErrorJsonSchema,
  normalizedRuntimeErrorSchema,
  runSignalRequestDefinition,
  runSignalRequestExample,
  runSignalRequestJsonSchema,
  runSignalRequestSchema,
} from '@codesoul-co/hypha-core';

// The complete export list is documented below.

Usage patterns

  • The module exposes 8 functions as direct operation entrypoints. Every overload, required/optional parameter, and return type is documented below.
  • The 40 constant/enum exports provide stable values, schemas, definitions, or defaults. Reuse these exports instead of copying internal values into an application.

Runtime validation example

ts
import { normalizedRuntimeErrorSchema } from '@codesoul-co/hypha-core';

declare function loadExternalInput(): unknown;
const input: unknown = loadExternalInput();
const parsed = normalizedRuntimeErrorSchema.parse(input);

Parse untrusted configuration, network, or persisted input with the runtime schema before passing it to functions or classes that expect a validated contract.

Public exports

SymbolKindSignatureDescription
normalizedRuntimeErrorDefinitionconstantconst normalizedRuntimeErrorDefinition: SpecSchemaDefinition<NormalizedRuntimeError>Normalized Runtime Error Definition constant exported by the contracts/runtime-schemas module.
normalizedRuntimeErrorExampleconstantconst normalizedRuntimeErrorExample: NormalizedRuntimeErrorValid example value for Normalized Runtime Error.
normalizedRuntimeErrorJsonSchemaconstantconst normalizedRuntimeErrorJsonSchema: JsonSchemaJSON Schema for Normalized Runtime Error.
normalizedRuntimeErrorSchemaconstantconst normalizedRuntimeErrorSchema: z.ZodObject<{ code: z.ZodEnum<["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW"...Runtime schema for Normalized Runtime Error.
runSignalRequestDefinitionconstantconst runSignalRequestDefinition: SpecSchemaDefinition<RunSignalRequest>Run Signal Request Definition constant exported by the contracts/runtime-schemas module.
runSignalRequestExampleconstantconst runSignalRequestExample: RunSignalRequestValid example value for Run Signal Request.
runSignalRequestJsonSchemaconstantconst runSignalRequestJsonSchema: JsonSchemaJSON Schema for Run Signal Request.
runSignalRequestSchemaconstantconst runSignalRequestSchema: z.ZodObject<{ signalId: z.ZodString; runId: z.ZodString; key: z.ZodString; principal: z.ZodObject<{ principalId: z.ZodString; type: z.ZodEnum<["user", "agent", "service", "system"]>; tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodOptional<z.ZodString>; agentId: z.ZodOptional<z.ZodString>; roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; permissionScopes: z.ZodArray<z.ZodStri...Runtime schema for Run Signal Request.
runtimeContractDefinitionsconstantconst runtimeContractDefinitions: readonly [SpecSchemaDefinition<RuntimeScope>, SpecSchemaDefinition<RuntimePrincipal>, SpecSchemaDefinition<NormalizedRuntimeError>, SpecSchemaDefinition<RuntimeSession>, SpecSchemaDefinition<RuntimeRun>, SpecSchemaDefinition<RuntimeWaitRequest>, SpecSchemaDefinition<RuntimeWaitRecord>, SpecSchemaDefinition<RunSignalRequest>]Runtime Contract Definitions constant exported by the contracts/runtime-schemas module.
runtimeContractJsonSchemasconstantconst runtimeContractJsonSchemas: Record<string, JsonSchema>Runtime Contract JSON Schemas constant exported by the contracts/runtime-schemas module.
runtimeErrorCodeSchemaconstantconst runtimeErrorCodeSchema: z.ZodEnum<["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW", "RUNTIME_RUN_NOT_FOUND",...Runtime schema for Runtime Error Code.
runtimePrincipalDefinitionconstantconst runtimePrincipalDefinition: SpecSchemaDefinition<RuntimePrincipal>Runtime Principal Definition constant exported by the contracts/runtime-schemas module.
runtimePrincipalExampleconstantconst runtimePrincipalExample: RuntimePrincipalValid example value for Runtime Principal.
runtimePrincipalJsonSchemaconstantconst runtimePrincipalJsonSchema: JsonSchemaJSON Schema for Runtime Principal.
runtimePrincipalSchemaconstantconst runtimePrincipalSchema: z.ZodObject<{ principalId: z.ZodString; type: z.ZodEnum<["user", "agent", "service", "system"]>; tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodOptional<z.ZodString>; agentId: z.ZodOptional<z.ZodString>; roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; permissionScopes: z.ZodArray<z.ZodString, "many">; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.Z...Runtime schema for Runtime Principal.
runtimePrincipalTypeSchemaconstantconst runtimePrincipalTypeSchema: z.ZodEnum<["user", "agent", "service", "system"]>Runtime schema for Runtime Principal Type.
runtimeRunDefinitionconstantconst runtimeRunDefinition: SpecSchemaDefinition<RuntimeRun>Runtime Run Definition constant exported by the contracts/runtime-schemas module.
runtimeRunExampleconstantconst runtimeRunExample: RuntimeRunValid example value for Runtime Run.
runtimeRunJsonSchemaconstantconst runtimeRunJsonSchema: JsonSchemaJSON Schema for Runtime Run.
runtimeRunSchemaconstantconst runtimeRunSchema: z.ZodObject<{ id: z.ZodString; revision: z.ZodNumber; tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodOptional<z.ZodString>; sessionId: z.ZodString; domainPackRef: z.ZodOptional<z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; revision?: string | undefined; version?:...Runtime schema for Runtime Run.
runtimeRunStatusSchemaconstantconst runtimeRunStatusSchema: z.ZodEnum<["created", "queued", "starting", "acquiring", "running", "waiting", "waiting_human", "waiting_signal", "waiting_timer", "pausing", "paused", "retry_scheduled", "recovering", "cancelling", "completed", "failed", "cancelled", "timed_out"]>Runtime schema for Runtime Run Status.
runtimeScopeDefinitionconstantconst runtimeScopeDefinition: SpecSchemaDefinition<RuntimeScope>Runtime Scope Definition constant exported by the contracts/runtime-schemas module.
runtimeScopeExampleconstantconst runtimeScopeExample: RuntimeScopeValid example value for Runtime Scope.
runtimeScopeJsonSchemaconstantconst runtimeScopeJsonSchema: JsonSchemaJSON Schema for Runtime Scope.
runtimeScopeSchemaconstantconst runtimeScopeSchema: z.ZodObject<{ tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodOptional<z.ZodString>; sessionId: z.ZodString; runId: z.ZodString; agentId: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { userId: string; sessionId: string; runId: string; tenantId?: string | undefined; workspaceId?: string | undefined; agentId?: string | undefined; }, { userId: string; s...Runtime schema for Runtime Scope.
runtimeSessionDefinitionconstantconst runtimeSessionDefinition: SpecSchemaDefinition<RuntimeSession>Runtime Session Definition constant exported by the contracts/runtime-schemas module.
runtimeSessionExampleconstantconst runtimeSessionExample: RuntimeSessionValid example value for Runtime Session.
runtimeSessionJsonSchemaconstantconst runtimeSessionJsonSchema: JsonSchemaJSON Schema for Runtime Session.
runtimeSessionSchemaconstantconst runtimeSessionSchema: z.ZodObject<{ id: z.ZodString; revision: z.ZodNumber; tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodOptional<z.ZodString>; domainPackRef: z.ZodOptional<z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; revision?: string | undefined; version?: string | undefined;...Runtime schema for Runtime Session.
runtimeSessionStatusSchemaconstantconst runtimeSessionStatusSchema: z.ZodEnum<["active", "closed", "archived"]>Runtime schema for Runtime Session Status.
runtimeWaitRecordDefinitionconstantconst runtimeWaitRecordDefinition: SpecSchemaDefinition<RuntimeWaitRecord>Runtime Wait Record Definition constant exported by the contracts/runtime-schemas module.
runtimeWaitRecordExampleconstantconst runtimeWaitRecordExample: RuntimeWaitRecordValid example value for Runtime Wait Record.
runtimeWaitRecordJsonSchemaconstantconst runtimeWaitRecordJsonSchema: JsonSchemaJSON Schema for Runtime Wait Record.
runtimeWaitRecordSchemaconstantconst runtimeWaitRecordSchema: z.ZodObject<{ id: z.ZodString; runId: z.ZodString; stateId: z.ZodString; type: z.ZodEnum<["human", "signal", "timer", "external_operation"]>; key: z.ZodOptional<z.ZodString>; status: z.ZodEnum<["waiting", "received", "expired", "cancelled"]>; expectedSchemaHash: z.ZodOptional<z.ZodString>; createdAt: z.ZodString; expiresAt: z.ZodOptional<z.ZodString>; resolvedAt: z.ZodOptional<z.ZodS...Runtime schema for Runtime Wait Record.
runtimeWaitRequestDefinitionconstantconst runtimeWaitRequestDefinition: SpecSchemaDefinition<RuntimeWaitRequest>Runtime Wait Request Definition constant exported by the contracts/runtime-schemas module.
runtimeWaitRequestExampleconstantconst runtimeWaitRequestExample: RuntimeWaitRequestValid example value for Runtime Wait Request.
runtimeWaitRequestJsonSchemaconstantconst runtimeWaitRequestJsonSchema: JsonSchemaJSON Schema for Runtime Wait Request.
runtimeWaitRequestSchemaconstantconst runtimeWaitRequestSchema: z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["human", "signal", "timer", "external_operation"]>; key: z.ZodOptional<z.ZodString>; expectedSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; expiresAt: z.ZodOptional<z.ZodString>; timeoutTransitionId: z.ZodOptional<z.ZodString>; pendingActionRef: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodS...Runtime schema for Runtime Wait Request.
runtimeWaitStatusSchemaconstantconst runtimeWaitStatusSchema: z.ZodEnum<["waiting", "received", "expired", "cancelled"]>Runtime schema for Runtime Wait Status.
runtimeWaitTypeSchemaconstantconst runtimeWaitTypeSchema: z.ZodEnum<["human", "signal", "timer", "external_operation"]>Runtime schema for Runtime Wait Type.
validateNormalizedRuntimeErrorfunctionvalidateNormalizedRuntimeError(input: unknown): NormalizedRuntimeErrorValidate Normalized Runtime Error function with 1 public call signature; parameters and return types are listed below.
validateRunSignalRequestfunctionvalidateRunSignalRequest(input: unknown): RunSignalRequestValidate Run Signal Request function with 1 public call signature; parameters and return types are listed below.
validateRuntimePrincipalfunctionvalidateRuntimePrincipal(input: unknown): RuntimePrincipalValidate Runtime Principal function with 1 public call signature; parameters and return types are listed below.
validateRuntimeRunfunctionvalidateRuntimeRun(input: unknown): RuntimeRunValidate Runtime Run function with 1 public call signature; parameters and return types are listed below.
validateRuntimeScopefunctionvalidateRuntimeScope(input: unknown): RuntimeScopeValidate Runtime Scope function with 1 public call signature; parameters and return types are listed below.
validateRuntimeSessionfunctionvalidateRuntimeSession(input: unknown): RuntimeSessionValidate Runtime Session function with 1 public call signature; parameters and return types are listed below.
validateRuntimeWaitRecordfunctionvalidateRuntimeWaitRecord(input: unknown): RuntimeWaitRecordValidate Runtime Wait Record function with 1 public call signature; parameters and return types are listed below.
validateRuntimeWaitRequestfunctionvalidateRuntimeWaitRequest(input: unknown): RuntimeWaitRequestValidate Runtime Wait Request function with 1 public call signature; parameters and return types are listed below.

normalizedRuntimeErrorDefinition

Normalized Runtime Error Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { normalizedRuntimeErrorDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const normalizedRuntimeErrorDefinition: SpecSchemaDefinition<NormalizedRuntimeError>;

normalizedRuntimeErrorExample

Valid example value for Normalized Runtime Error.

  • Kind: constant
  • Import: import { normalizedRuntimeErrorExample } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const normalizedRuntimeErrorExample: NormalizedRuntimeError;

normalizedRuntimeErrorJsonSchema

JSON Schema for Normalized Runtime Error.

  • Kind: constant
  • Import: import { normalizedRuntimeErrorJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const normalizedRuntimeErrorJsonSchema: JsonSchema;

normalizedRuntimeErrorSchema

Runtime schema for Normalized Runtime Error.

  • Kind: constant
  • Import: import { normalizedRuntimeErrorSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const normalizedRuntimeErrorSchema: z.ZodObject<{ code: z.ZodEnum<["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW", "RUNTIME_RUN_NOT_FOUND", "RUNTIME_RUN_CONFLICT", "RUNTIME_LEASE_CONFLICT", "RUNTIME_WORKFLOW_INVALID", "RUNTIME_PROCESS_MISMATCH", "RUNTIME_STATE_NOT_FOUND", "RUNTIME_TRANSITION_REJECTED", "RUNTIME_GUARD_FAILED", "RUNTIME_INVARIANT_FAILED", "RUNTIME_STATE_TIMEOUT", "RUNTIME_RUN_TIMEOUT", "RUNTIME_CANCELLED", "RUNTIME_SIGNAL_INVALID", "RUNTIME_SIGNAL_EXPIRED", "RUNTIME_RETRY_EXHAUSTED", "RUNTIME_CHECKPOINT_FAILED", "RUNTIME_EVENT_APPEND_FAILED", "RUNTIME_PROJECTION_FAILED", "RUNTIME_REPLAY_DIVERGENCE", "RUNTIME_INTERNAL_ERROR"]>; message: z.ZodString; retryable: z.ZodBoolean; stateId: z.ZodOptional<z.ZodString>; transitionId: z.ZodOptional<z.ZodString>; details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>>; causeRef: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { code: "RUNTIME_INVALID_INPUT" | "RUNTIME_MESSAGE_BUS_UNAVAILABLE" | "RUNTIME_MESSAGE_SCHEMA_INVALID" | "RUNTIME_MESSAGE_DEAD_LETTERED" | "RUNTIME_SESSION_QUEUE_CONFLICT" | "RUNTIME_SESSION_QUEUE_OVERFLOW" | "RUNTIME_FENCING_REJECTED" | "RUNTIME_RESOURCE_CONFLICT" | "RUNTIME_IDEMPOTENCY_CONFLICT" | "RUNTIME_EVENT_STREAM_CORRUPT" | "RUNTIME_RECOVERY_REQUIRES_REVIEW" | "RUNTIME_RUN_NOT_FOUND" | "RUNTIME_RUN_CONFLICT" | "RUNTIME_LEASE_CONFLICT" | "RUNTIME_WORKFLOW_INVALID" | "RUNTIME_PROCESS_MISMATCH" | "RUNTIME_STATE_NOT_FOUND" | "RUNTIME_TRANSITION_REJECTED" | "RUNTIME_GUARD_FAILED" | "RUNTIME_INVARIANT_FAILED" | "RUNTIME_STATE_TIMEOUT" | "RUNTIME_RUN_TIMEOUT" | "RUNTIME_CANCELLED" | "RUNTIME_SIGNAL_INVALID" | "RUNTIME_SIGNAL_EXPIRED" | "RUNTIME_RETRY_EXHAUSTED" | "RUNTIME_CHECKPOINT_FAILED" | "RUNTIME_EVENT_APPEND_FAILED" | "RUNTIME_PROJECTION_FAILED" | "RUNTIME_REPLAY_DIVERGENCE" | "RUNTIME_INTERNAL_ERROR"; message: string; retryable: boolean; details?: Record<string, JsonValue> | undefined; causeRef?: string | undefined; stateId?: string | undefined; transitionId?: string | undefined; }, { code: "RUNTIME_INVALID_INPUT" | "RUNTIME_MESSAGE_BUS_UNAVAILABLE" | "RUNTIME_MESSAGE_SCHEMA_INVALID" | "RUNTIME_MESSAGE_DEAD_LETTERED" | "RUNTIME_SESSION_QUEUE_CONFLICT" | "RUNTIME_SESSION_QUEUE_OVERFLOW" | "RUNTIME_FENCING_REJECTED" | "RUNTIME_RESOURCE_CONFLICT" | "RUNTIME_IDEMPOTENCY_CONFLICT" | "RUNTIME_EVENT_STREAM_CORRUPT" | "RUNTIME_RECOVERY_REQUIRES_REVIEW" | "RUNTIME_RUN_NOT_FOUND" | "RUNTIME_RUN_CONFLICT" | "RUNTIME_LEASE_CONFLICT" | "RUNTIME_WORKFLOW_INVALID" | "RUNTIME_PROCESS_MISMATCH" | "RUNTIME_STATE_NOT_FOUND" | "RUNTIME_TRANSITION_REJECTED" | "RUNTIME_GUARD_FAILED" | "RUNTIME_INVARIANT_FAILED" | "RUNTIME_STATE_TIMEOUT" | "RUNTIME_RUN_TIMEOUT" | "RUNTIME_CANCELLED" | "RUNTIME_SIGNAL_INVALID" | "RUNTIME_SIGNAL_EXPIRED" | "RUNTIME_RETRY_EXHAUSTED" | "RUNTIME_CHECKPOINT_FAILED" | "RUNTIME_EVENT_APPEND_FAILED" | "RUNTIME_PROJECTION_FAILED" | "RUNTIME_REPLAY_DIVERGENCE" | "RUNTIME_INTERNAL_ERROR"; message: string; retryable: boolean; details?: Record<string, JsonValue> | undefined; causeRef?: string | undefined; stateId?: string | undefined; transitionId?: string | undefined; }>;

runSignalRequestDefinition

Run Signal Request Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runSignalRequestDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runSignalRequestDefinition: SpecSchemaDefinition<RunSignalRequest>;

runSignalRequestExample

Valid example value for Run Signal Request.

  • Kind: constant
  • Import: import { runSignalRequestExample } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runSignalRequestExample: RunSignalRequest;

runSignalRequestJsonSchema

JSON Schema for Run Signal Request.

  • Kind: constant
  • Import: import { runSignalRequestJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runSignalRequestJsonSchema: JsonSchema;

runSignalRequestSchema

Runtime schema for Run Signal Request.

  • Kind: constant
  • Import: import { runSignalRequestSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runSignalRequestSchema: z.ZodObject<{ signalId: z.ZodString; runId: z.ZodString; key: z.ZodString; principal: z.ZodObject<{ principalId: z.ZodString; type: z.ZodEnum<["user", "agent", "service", "system"]>; tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodOptional<z.ZodString>; agentId: z.ZodOptional<z.ZodString>; roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; permissionScopes: z.ZodArray<z.ZodString, "many">; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>>; }, "strict", z.ZodTypeAny, { type: "user" | "agent" | "service" | "system"; principalId: string; permissionScopes: string[]; tenantId?: string | undefined; userId?: string | undefined; agentId?: string | undefined; metadata?: Record<string, JsonValue> | undefined; roles?: string[] | undefined; }, { type: "user" | "agent" | "service" | "system"; principalId: string; permissionScopes: string[]; tenantId?: string | undefined; userId?: string | undefined; agentId?: string | undefined; metadata?: Record<string, JsonValue> | undefined; roles?: string[] | undefined; }>; payload: z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>; idempotencyKey: z.ZodOptional<z.ZodString>; sentAt: z.ZodString; }, "strict", z.ZodTypeAny, { runId: string; principal: { type: "user" | "agent" | "service" | "system"; principalId: string; permissionScopes: string[]; tenantId?: string | undefined; userId?: string | undefined; agentId?: string | undefined; metadata?: Record<string, JsonValue> | undefined; roles?: string[] | undefined; }; payload: JsonValue; key: string; signalId: string; sentAt: string; idempotencyKey?: string | undefined; }, { runId: string; principal: { type: "user" | "agent" | "service" | "system"; principalId: string; permissionScopes: string[]; tenantId?: string | undefined; userId?: string | undefined; agentId?: string | undefined; metadata?: Record<string, JsonValue> | undefined; roles?: string[] | undefined; }; payload: JsonValue; key: string; signalId: string; sentAt: string; idempotencyKey?: string | undefined; }>;

runtimeContractDefinitions

Runtime Contract Definitions constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimeContractDefinitions } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeContractDefinitions: readonly [SpecSchemaDefinition<RuntimeScope>, SpecSchemaDefinition<RuntimePrincipal>, SpecSchemaDefinition<NormalizedRuntimeError>, SpecSchemaDefinition<RuntimeSession>, SpecSchemaDefinition<RuntimeRun>, SpecSchemaDefinition<RuntimeWaitRequest>, SpecSchemaDefinition<RuntimeWaitRecord>, SpecSchemaDefinition<RunSignalRequest>];

runtimeContractJsonSchemas

Runtime Contract JSON Schemas constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimeContractJsonSchemas } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeContractJsonSchemas: Record<string, JsonSchema>;

runtimeErrorCodeSchema

Runtime schema for Runtime Error Code.

  • Kind: constant
  • Import: import { runtimeErrorCodeSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeErrorCodeSchema: z.ZodEnum<["RUNTIME_INVALID_INPUT", "RUNTIME_MESSAGE_BUS_UNAVAILABLE", "RUNTIME_MESSAGE_SCHEMA_INVALID", "RUNTIME_MESSAGE_DEAD_LETTERED", "RUNTIME_SESSION_QUEUE_CONFLICT", "RUNTIME_SESSION_QUEUE_OVERFLOW", "RUNTIME_FENCING_REJECTED", "RUNTIME_RESOURCE_CONFLICT", "RUNTIME_IDEMPOTENCY_CONFLICT", "RUNTIME_EVENT_STREAM_CORRUPT", "RUNTIME_RECOVERY_REQUIRES_REVIEW", "RUNTIME_RUN_NOT_FOUND", "RUNTIME_RUN_CONFLICT", "RUNTIME_LEASE_CONFLICT", "RUNTIME_WORKFLOW_INVALID", "RUNTIME_PROCESS_MISMATCH", "RUNTIME_STATE_NOT_FOUND", "RUNTIME_TRANSITION_REJECTED", "RUNTIME_GUARD_FAILED", "RUNTIME_INVARIANT_FAILED", "RUNTIME_STATE_TIMEOUT", "RUNTIME_RUN_TIMEOUT", "RUNTIME_CANCELLED", "RUNTIME_SIGNAL_INVALID", "RUNTIME_SIGNAL_EXPIRED", "RUNTIME_RETRY_EXHAUSTED", "RUNTIME_CHECKPOINT_FAILED", "RUNTIME_EVENT_APPEND_FAILED", "RUNTIME_PROJECTION_FAILED", "RUNTIME_REPLAY_DIVERGENCE", "RUNTIME_INTERNAL_ERROR"]>;

runtimePrincipalDefinition

Runtime Principal Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimePrincipalDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimePrincipalDefinition: SpecSchemaDefinition<RuntimePrincipal>;

runtimePrincipalExample

Valid example value for Runtime Principal.

  • Kind: constant
  • Import: import { runtimePrincipalExample } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimePrincipalExample: RuntimePrincipal;

runtimePrincipalJsonSchema

JSON Schema for Runtime Principal.

  • Kind: constant
  • Import: import { runtimePrincipalJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimePrincipalJsonSchema: JsonSchema;

runtimePrincipalSchema

Runtime schema for Runtime Principal.

  • Kind: constant
  • Import: import { runtimePrincipalSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimePrincipalSchema: z.ZodObject<{ principalId: z.ZodString; type: z.ZodEnum<["user", "agent", "service", "system"]>; tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodOptional<z.ZodString>; agentId: z.ZodOptional<z.ZodString>; roles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>; permissionScopes: z.ZodArray<z.ZodString, "many">; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>>; }, "strict", z.ZodTypeAny, { type: "user" | "agent" | "service" | "system"; principalId: string; permissionScopes: string[]; tenantId?: string | undefined; userId?: string | undefined; agentId?: string | undefined; metadata?: Record<string, JsonValue> | undefined; roles?: string[] | undefined; }, { type: "user" | "agent" | "service" | "system"; principalId: string; permissionScopes: string[]; tenantId?: string | undefined; userId?: string | undefined; agentId?: string | undefined; metadata?: Record<string, JsonValue> | undefined; roles?: string[] | undefined; }>;

runtimePrincipalTypeSchema

Runtime schema for Runtime Principal Type.

  • Kind: constant
  • Import: import { runtimePrincipalTypeSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimePrincipalTypeSchema: z.ZodEnum<["user", "agent", "service", "system"]>;

runtimeRunDefinition

Runtime Run Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimeRunDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeRunDefinition: SpecSchemaDefinition<RuntimeRun>;

runtimeRunExample

Valid example value for Runtime Run.

Declaration

text
export declare const runtimeRunExample: RuntimeRun;

runtimeRunJsonSchema

JSON Schema for Runtime Run.

  • Kind: constant
  • Import: import { runtimeRunJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeRunJsonSchema: JsonSchema;

runtimeRunSchema

Runtime schema for Runtime Run.

Declaration

text
// Exact type resolved from the package entrypoint; see source for the compiler expansion.
export declare const runtimeRunSchema: (typeof import('@codesoul-co/hypha-core'))['runtimeRunSchema'];

This compiler-expanded constant type is compacted. Its public name, top-level type, and source location remain here; use the module’s exported interfaces, types, or runtime schema for input/output fields.

runtimeRunStatusSchema

Runtime schema for Runtime Run Status.

  • Kind: constant
  • Import: import { runtimeRunStatusSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeRunStatusSchema: z.ZodEnum<["created", "queued", "starting", "acquiring", "running", "waiting", "waiting_human", "waiting_signal", "waiting_timer", "pausing", "paused", "retry_scheduled", "recovering", "cancelling", "completed", "failed", "cancelled", "timed_out"]>;

runtimeScopeDefinition

Runtime Scope Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimeScopeDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeScopeDefinition: SpecSchemaDefinition<RuntimeScope>;

runtimeScopeExample

Valid example value for Runtime Scope.

Declaration

text
export declare const runtimeScopeExample: RuntimeScope;

runtimeScopeJsonSchema

JSON Schema for Runtime Scope.

  • Kind: constant
  • Import: import { runtimeScopeJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeScopeJsonSchema: JsonSchema;

runtimeScopeSchema

Runtime schema for Runtime Scope.

Declaration

text
export declare const runtimeScopeSchema: z.ZodObject<{ tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodOptional<z.ZodString>; sessionId: z.ZodString; runId: z.ZodString; agentId: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { userId: string; sessionId: string; runId: string; tenantId?: string | undefined; workspaceId?: string | undefined; agentId?: string | undefined; }, { userId: string; sessionId: string; runId: string; tenantId?: string | undefined; workspaceId?: string | undefined; agentId?: string | undefined; }>;

runtimeSessionDefinition

Runtime Session Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimeSessionDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeSessionDefinition: SpecSchemaDefinition<RuntimeSession>;

runtimeSessionExample

Valid example value for Runtime Session.

  • Kind: constant
  • Import: import { runtimeSessionExample } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeSessionExample: RuntimeSession;

runtimeSessionJsonSchema

JSON Schema for Runtime Session.

  • Kind: constant
  • Import: import { runtimeSessionJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeSessionJsonSchema: JsonSchema;

runtimeSessionSchema

Runtime schema for Runtime Session.

  • Kind: constant
  • Import: import { runtimeSessionSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeSessionSchema: z.ZodObject<{ id: z.ZodString; revision: z.ZodNumber; tenantId: z.ZodOptional<z.ZodString>; userId: z.ZodString; workspaceId: z.ZodOptional<z.ZodString>; domainPackRef: z.ZodOptional<z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; revision?: string | undefined; version?: string | undefined; }, { id: string; revision?: string | undefined; version?: string | undefined; }>>; sessionProfileRef: z.ZodOptional<z.ZodObject<{ id: z.ZodString; version: z.ZodOptional<z.ZodString>; revision: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { id: string; revision?: string | undefined; version?: string | undefined; }, { id: string; revision?: string | undefined; version?: string | undefined; }>>; title: z.ZodOptional<z.ZodString>; metadata: z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>; status: z.ZodEnum<["active", "closed", "archived"]>; createdAt: z.ZodString; updatedAt: z.ZodString; closedAt: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { id: string; revision: number; userId: string; status: "archived" | "active" | "closed"; metadata: Record<string, JsonValue>; createdAt: string; updatedAt: string; tenantId?: string | undefined; workspaceId?: string | undefined; domainPackRef?: { id: string; revision?: string | undefined; version?: string | undefined; } | undefined; sessionProfileRef?: { id: string; revision?: string | undefined; version?: string | undefined; } | undefined; closedAt?: string | undefined; title?: string | undefined; }, { id: string; revision: number; userId: string; status: "archived" | "active" | "closed"; metadata: Record<string, JsonValue>; createdAt: string; updatedAt: string; tenantId?: string | undefined; workspaceId?: string | undefined; domainPackRef?: { id: string; revision?: string | undefined; version?: string | undefined; } | undefined; sessionProfileRef?: { id: string; revision?: string | undefined; version?: string | undefined; } | undefined; closedAt?: string | undefined; title?: string | undefined; }>;

runtimeSessionStatusSchema

Runtime schema for Runtime Session Status.

  • Kind: constant
  • Import: import { runtimeSessionStatusSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeSessionStatusSchema: z.ZodEnum<["active", "closed", "archived"]>;

runtimeWaitRecordDefinition

Runtime Wait Record Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimeWaitRecordDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRecordDefinition: SpecSchemaDefinition<RuntimeWaitRecord>;

runtimeWaitRecordExample

Valid example value for Runtime Wait Record.

  • Kind: constant
  • Import: import { runtimeWaitRecordExample } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRecordExample: RuntimeWaitRecord;

runtimeWaitRecordJsonSchema

JSON Schema for Runtime Wait Record.

  • Kind: constant
  • Import: import { runtimeWaitRecordJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRecordJsonSchema: JsonSchema;

runtimeWaitRecordSchema

Runtime schema for Runtime Wait Record.

  • Kind: constant
  • Import: import { runtimeWaitRecordSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRecordSchema: z.ZodObject<{ id: z.ZodString; runId: z.ZodString; stateId: z.ZodString; type: z.ZodEnum<["human", "signal", "timer", "external_operation"]>; key: z.ZodOptional<z.ZodString>; status: z.ZodEnum<["waiting", "received", "expired", "cancelled"]>; expectedSchemaHash: z.ZodOptional<z.ZodString>; createdAt: z.ZodString; expiresAt: z.ZodOptional<z.ZodString>; resolvedAt: z.ZodOptional<z.ZodString>; signalRef: z.ZodOptional<z.ZodString>; }, "strict", z.ZodTypeAny, { id: string; runId: string; status: "received" | "expired" | "cancelled" | "waiting"; type: "signal" | "human" | "timer" | "external_operation"; createdAt: string; stateId: string; expiresAt?: string | undefined; key?: string | undefined; resolvedAt?: string | undefined; expectedSchemaHash?: string | undefined; signalRef?: string | undefined; }, { id: string; runId: string; status: "received" | "expired" | "cancelled" | "waiting"; type: "signal" | "human" | "timer" | "external_operation"; createdAt: string; stateId: string; expiresAt?: string | undefined; key?: string | undefined; resolvedAt?: string | undefined; expectedSchemaHash?: string | undefined; signalRef?: string | undefined; }>;

runtimeWaitRequestDefinition

Runtime Wait Request Definition constant exported by the contracts/runtime-schemas module.

  • Kind: constant
  • Import: import { runtimeWaitRequestDefinition } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRequestDefinition: SpecSchemaDefinition<RuntimeWaitRequest>;

runtimeWaitRequestExample

Valid example value for Runtime Wait Request.

  • Kind: constant
  • Import: import { runtimeWaitRequestExample } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRequestExample: RuntimeWaitRequest;

runtimeWaitRequestJsonSchema

JSON Schema for Runtime Wait Request.

  • Kind: constant
  • Import: import { runtimeWaitRequestJsonSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRequestJsonSchema: JsonSchema;

runtimeWaitRequestSchema

Runtime schema for Runtime Wait Request.

  • Kind: constant
  • Import: import { runtimeWaitRequestSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitRequestSchema: z.ZodEffects<z.ZodObject<{ type: z.ZodEnum<["human", "signal", "timer", "external_operation"]>; key: z.ZodOptional<z.ZodString>; expectedSchema: z.ZodOptional<z.ZodType<JsonSchema, z.ZodTypeDef, JsonSchema>>; expiresAt: z.ZodOptional<z.ZodString>; timeoutTransitionId: z.ZodOptional<z.ZodString>; pendingActionRef: z.ZodOptional<z.ZodString>; metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<JsonValue, z.ZodTypeDef, JsonValue>>>; }, "strict", z.ZodTypeAny, { type: "signal" | "human" | "timer" | "external_operation"; metadata?: Record<string, JsonValue> | undefined; expiresAt?: string | undefined; key?: string | undefined; pendingActionRef?: string | undefined; expectedSchema?: JsonSchema | undefined; timeoutTransitionId?: string | undefined; }, { type: "signal" | "human" | "timer" | "external_operation"; metadata?: Record<string, JsonValue> | undefined; expiresAt?: string | undefined; key?: string | undefined; pendingActionRef?: string | undefined; expectedSchema?: JsonSchema | undefined; timeoutTransitionId?: string | undefined; }>, { type: "signal" | "human" | "timer" | "external_operation"; metadata?: Record<string, JsonValue> | undefined; expiresAt?: string | undefined; key?: string | undefined; pendingActionRef?: string | undefined; expectedSchema?: JsonSchema | undefined; timeoutTransitionId?: string | undefined; }, { type: "signal" | "human" | "timer" | "external_operation"; metadata?: Record<string, JsonValue> | undefined; expiresAt?: string | undefined; key?: string | undefined; pendingActionRef?: string | undefined; expectedSchema?: JsonSchema | undefined; timeoutTransitionId?: string | undefined; }>;

runtimeWaitStatusSchema

Runtime schema for Runtime Wait Status.

  • Kind: constant
  • Import: import { runtimeWaitStatusSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitStatusSchema: z.ZodEnum<["waiting", "received", "expired", "cancelled"]>;

runtimeWaitTypeSchema

Runtime schema for Runtime Wait Type.

  • Kind: constant
  • Import: import { runtimeWaitTypeSchema } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare const runtimeWaitTypeSchema: z.ZodEnum<["human", "signal", "timer", "external_operation"]>;

validateNormalizedRuntimeError

Validate Normalized Runtime Error function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateNormalizedRuntimeError } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare function validateNormalizedRuntimeError(input: unknown): NormalizedRuntimeError;

Call signature

text
validateNormalizedRuntimeError(input: unknown): NormalizedRuntimeError

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: NormalizedRuntimeError
  • Description: The return contract is defined by the type shown above.

validateRunSignalRequest

Validate Run Signal Request function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateRunSignalRequest } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare function validateRunSignalRequest(input: unknown): RunSignalRequest;

Call signature

text
validateRunSignalRequest(input: unknown): RunSignalRequest

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: RunSignalRequest
  • Description: The return contract is defined by the type shown above.

validateRuntimePrincipal

Validate Runtime Principal function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateRuntimePrincipal } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare function validateRuntimePrincipal(input: unknown): RuntimePrincipal;

Call signature

text
validateRuntimePrincipal(input: unknown): RuntimePrincipal

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: RuntimePrincipal
  • Description: The return contract is defined by the type shown above.

validateRuntimeRun

Validate Runtime Run function with 1 public call signature; parameters and return types are listed below.

Declaration

text
export declare function validateRuntimeRun(input: unknown): RuntimeRun;

Call signature

text
validateRuntimeRun(input: unknown): RuntimeRun

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: RuntimeRun
  • Description: The return contract is defined by the type shown above.

validateRuntimeScope

Validate Runtime Scope function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateRuntimeScope } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare function validateRuntimeScope(input: unknown): RuntimeScope;

Call signature

text
validateRuntimeScope(input: unknown): RuntimeScope

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: RuntimeScope
  • Description: The return contract is defined by the type shown above.

validateRuntimeSession

Validate Runtime Session function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateRuntimeSession } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare function validateRuntimeSession(input: unknown): RuntimeSession;

Call signature

text
validateRuntimeSession(input: unknown): RuntimeSession

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: RuntimeSession
  • Description: The return contract is defined by the type shown above.

validateRuntimeWaitRecord

Validate Runtime Wait Record function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateRuntimeWaitRecord } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare function validateRuntimeWaitRecord(input: unknown): RuntimeWaitRecord;

Call signature

text
validateRuntimeWaitRecord(input: unknown): RuntimeWaitRecord

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: RuntimeWaitRecord
  • Description: The return contract is defined by the type shown above.

validateRuntimeWaitRequest

Validate Runtime Wait Request function with 1 public call signature; parameters and return types are listed below.

  • Kind: function
  • Import: import { validateRuntimeWaitRequest } from '@codesoul-co/hypha-core';
  • Source module: contracts/runtime-schemas

Declaration

text
export declare function validateRuntimeWaitRequest(input: unknown): RuntimeWaitRequest;

Call signature

text
validateRuntimeWaitRequest(input: unknown): RuntimeWaitRequest

Parameters

ParameterTypeRequiredDescription
inputunknownYesRequired parameter; accepted values are defined by the type column.

Returns

  • Type: RuntimeWaitRequest
  • Description: The return contract is defined by the type shown above.