Anchorage API reference
    Preparing search index...
    • A host mounts this route through preRoutes on its private state-script Worker.

      Returns (
          request: Request,
          env: FlowsafeWorkerEnv,
          ctx: FlowsafeWorkerContext,
          kit: {
              authorizePrivateWorkflowDispatch: (
                  request: Request,
              ) => Promise<Response | undefined>;
              contextForStoredInvocation: (
                  journal: {
                      deploymentId: string;
                      get: (
                          invocationId: string,
                      ) => Promise<
                          | {
                              deploymentId: string;
                              invocationId: string;
                              principal: ExecutionPrincipal;
                              tablePrefix: string;
                          }
                          | undefined,
                      >;
                      tablePrefix: string;
                  },
                  invocationId: string,
              ) => Promise<ActorContext | undefined>;
              contextForStoredWorkflowInvocation: (
                  journal: {
                      deploymentId: string;
                      getWorkflow: (
                          invocationId: string,
                      ) => Promise<
                          | {
                              deploymentId: string;
                              invocationId: string;
                              principal: ExecutionPrincipal;
                              tablePrefix: string;
                          }
                          | undefined,
                      >;
                      tablePrefix: string;
                  },
                  invocationId: string,
              ) => Promise<ActorContext | undefined>;
              contextForStoredWorkflowStart: (
                  workflowId: string,
                  runId: string,
              ) => Promise<ActorContext | undefined>;
              resolve: ActorResolver;
              topology: DoRunRemoteStepTopology;
          },
      ) => Promise<Response | null>