Restate Typescript SDK
    Preparing search index...

    Client bundle bound to a specific scope, returned by RestateOperations.scope (and the free-standing scope).

    Exposes the same client/sendClient overloads as the unscoped variants — for services, no key; for objects/workflows, the key — but every call/send routes within the bound scope.

    interface ScopedOperations {
        client<H extends Record<string, HandlerDescriptor>>(
            def: Descriptor<string, H, "service">,
        ): GenClient<H>;
        client<H extends Record<string, HandlerDescriptor>>(
            def: Descriptor<string, H, "object" | "workflow">,
            key: string,
        ): GenClient<H>;
        sendClient<H extends Record<string, HandlerDescriptor>>(
            def: Descriptor<string, H, "service">,
        ): GenSendClient<H>;
        sendClient<H extends Record<string, HandlerDescriptor>>(
            def: Descriptor<string, H, "object" | "workflow">,
            key: string,
        ): GenSendClient<H>;
    }
    Index

    Methods