For the complete documentation index, see llms.txt. This page is also available as Markdown.

emitOperationId

Emits the operationId when it is generated.

Details

Notifies the operation identifier as soon as it is created.

Event: emitOperationId

Type: FacephiSdkProviderCustomEvent<string> | CustomEvent<string>

Syntax

provider.addEventListener('emitOperationId', onEmitOperationId);

Received object

detail: string

Description

Useful for linking the SDK operation with your backend.


Example

<facephi-sdk-provider
    apikey={process.env.FACEPHI_SDK_APIKEY}
    onEmitOperationId={onEmitOperationId}
/>

Last updated