Type alias InitializationWriteRequest<Context, AuthContext>

InitializationWriteRequest<Context, AuthContext>: {
    authContext: AuthContext;
    context: Context;
    machineInstanceName: string;
    type: "initialization";

A request to initialize the machine instance.

Use InitializationWriteRequest<Context, AuthContext> to specify the types of the context and events for your machine and the authContext you will provide.

Type Parameters

Type declaration

  • authContext: AuthContext

    The authorization context of the reader requesting access to the machine instance.

    The authorization context is the act claim of the JWT used to authenticate the reader (with the top-level sub claim used as a fallback if act did not provide a sub)

  • context: Context

    The initial context provided to the machine instance.

  • machineInstanceName: string

    The name of the machine instance to read.

    This is the name you provided when you created the machine instance.

  • type: "initialization"

Generated using TypeDoc