Saltar al contenido
Lumean

Descripciones en inglés

La interfaz de la sección está traducida a su idioma, pero las descripciones de operaciones, esquemas y errores solo existen en ruso y en inglés: aquí se muestra la versión en inglés.

private-order.task.{orderId}

Events for a single order. Someone else's order is out of reach: subscription auth returns 403.

Parámetros del canal

Complete sus valores: aparecen en el nombre del canal, en el código de abajo y en la consola. No se envían a ninguna parte ni terminan en la URL de la página.

is the UUID from the POST /orders response.

Nombre del canal al que suscribirse

private-order.task.{orderId}

El nombre todavía contiene marcadores entre llaves. Así no puede suscribirse: el servidor autoriza los canales por nombre exacto.

import Pusher from 'pusher-js';

const pusher = new Pusher('7c4dd881d8116ac76fe89aff71d8c2ff', {
  wsHost: 'ws.lumean.app',
  wsPort: 443, wssPort: 443,
  forceTLS: true,
  enabledTransports: ['ws', 'wss'],
  cluster: '',
  channelAuthorization: {
    endpoint: 'https://api.lumean.app/api/public/broadcasting/auth',
    headers: { 'X-API-KEY': 'YOUR_API_KEY' },
  },
});

const channel = pusher.subscribe('private-order.task.{orderId}');
channel.bind('paragraph_regenerate.completed', (data) => {
  console.log(data);
});

Ejemplo de payload

sin conexión

Canal: private-order.task.{orderId}

Es un evento de ejemplo; no hay conexión. Para suscribirse necesita su clave API.

requiere una clave con el permiso orders.read

.paragraph_regenerate.completed

{
  "order_id": "01a0d8c6-86d3-70b5-a86e-5a12b1d860df",
  "paragraph_index": 1,
  "created_count": 1,
  "failed_count": 1
}

Eventos del canal: 9

Cada evento tiene su propia ancla, una tabla completa del payload con descripciones y enums, y una forma de ejemplo. Los nombres se muestran en notación de Laravel Echo, con el punto inicial.

.paragraph_regenerate.completed

Echo: .paragraph_regenerate.completed · pusher-js: paragraph_regenerate.completed

Campos del payload

order_idobligatorio
string
Ejemplo 01a0d8c6-86d3-70b5-a86e-5a12b1d860df
paragraph_indexobligatorio
integer
Ejemplo 1
created_countobligatorio
integer
Ejemplo 1
failed_countobligatorio
integer
Ejemplo 1

Ejemplo de payload

{
  "order_id": "01a0d8c6-86d3-70b5-a86e-5a12b1d860df",
  "paragraph_index": 1,
  "created_count": 1,
  "failed_count": 1
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.order.queue.updated

Echo: .order.queue.updated · pusher-js: order.queue.updated

The order's place in the worker queue moved — for every task type except voice_search. queue_position is how many orders are ahead, 0 means next; null means the order left the queue (a worker took it or the order was cancelled), so hide the queue badge. Sent only when the position changes, at most once every ~2 s; moves within the 100+ zone are not sent — the exact number is in GET /orders/{order}. The position counts orders, not people; several workers pick tasks at once, so the number can drop in jumps and work can start while the position is above zero. queue_wait_seconds is always null. A missed frame is not resent: after reconnecting, re-read the order over REST.

Campos del payload

order_idobligatorio
string
Ejemplo example
queue_positionobligatorio
integer | null
Ejemplo 1
queue_wait_secondsobligatorio
integer | null
Ejemplo 1

Ejemplo de payload

{
  "order_id": "example",
  "queue_position": 1,
  "queue_wait_seconds": 1
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.voice_search.queue.updated

Echo: .voice_search.queue.updated · pusher-js: voice_search.queue.updated

The voice-search queue moved — only for voice_search orders, which are checked one at a time. queue_position is how many orders are ahead, 0 means your order is being processed now. queue_wait_seconds is the estimated wait in seconds (an estimate, not a promise), or null while there are no statistics yet. The same values are in the order fields over REST.

Campos del payload

order_idobligatorio
string
Ejemplo example
queue_positionobligatorio
integer
Ejemplo 1
queue_wait_secondsobligatorio
integer | null
Ejemplo 1

Ejemplo de payload

{
  "order_id": "example",
  "queue_position": 1,
  "queue_wait_seconds": 1
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.bulk_retry.completed

Echo: .bulk_retry.completed · pusher-js: bulk_retry.completed

Campos del payload

order_idobligatorio
string
Ejemplo 01a1d77e-7c84-723f-9acf-ed6700e3454a
batch_idobligatorio
string | null
Ejemplo example
created_countobligatorio
integer
Ejemplo 1
failed_countobligatorio
integer
Ejemplo 1

Ejemplo de payload

{
  "order_id": "01a1d77e-7c84-723f-9acf-ed6700e3454a",
  "batch_id": "example",
  "created_count": 1,
  "failed_count": 1
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.renamed

Echo: .renamed · pusher-js: renamed

Campos del payload

orderobligatorio
object
idobligatorio
string
Ejemplo 01a1cfe4-f20e-731b-99e7-98f30b2c6706
user_idobligatorio
integer
Ejemplo 115
nameobligatorio
string | null
Ejemplo example
templateobligatorio
object
idobligatorio
string
Ejemplo 01a1cfe4-f20c-72bb-a2e6-3545e39e7994
user_idobligatorio
integer
Ejemplo 116
slugobligatorio
string
Ejemplo 97d71387-1622-3762-94b1-f7b15341aa9b
nameobligatorio
string
Ejemplo sunt
service_keyobligatorio
string
Ejemplo example
serviceobligatorio

May arrive as null.

object | null
configobligatorio
array<object>
is_publicobligatorio
boolean
Ejemplo true
folder_idobligatorio

May arrive as null.

string | null
created_atobligatorio
string (date-time)
Ejemplo 2026-11-12T13:14:10+00:00
updated_atobligatorio
string (date-time)
Ejemplo 2026-11-12T13:14:10+00:00
template_idobligatorio
string
Ejemplo 01a1cfe4-f20c-72bb-a2e6-3545e39e7994
task_typeobligatorio
Valoresttsimagetxt2imgremiximage_editvoice_clonesfxmusicvoice_searchcartesia_dubelevenlabs_dubpipelineaimontage
string
Ejemplo tts
statusobligatorio
Valorescreatedpendingin_progresscompletedresult_deliveredfailedcompensatedcancelledpartially_completed
string
Ejemplo created
price_unitsobligatorio
number
Ejemplo 6.35
price_formattedobligatorio
number
Ejemplo 0.06
currency_assetobligatorio
object
idobligatorio

May arrive as null.

integer | null
codeobligatorio
string
Ejemplo LUMC
kindobligatorio

May arrive as null.

string | null
precisionobligatorio
integer
Ejemplo 2
nameobligatorio

May arrive as null.

string | null
deleted_atobligatorio
string (date-time) | null
created_atobligatorio
string (date-time) | null
updated_atobligatorio
string (date-time) | null
total_tokensobligatorio
integer
Ejemplo 0
total_duration_msobligatorio

May arrive as null.

integer | null
tokens_from_quotaobligatorio

May arrive as null.

integer | null
tokens_from_paygobligatorio

May arrive as null.

integer | null
tokens_spentobligatorio

May arrive as null.

integer | null
task_dataobligatorio

May arrive as null.

object | null
resultobligatorio

May arrive as null.

object | null
created_atobligatorio
string (date-time)
Ejemplo 2026-11-12T13:14:10+00:00
updated_atobligatorio
string (date-time)
Ejemplo 2026-11-12T13:14:10+00:00
dispatch_scheduled_atobligatorio
string (date-time) | null
Ejemplo 2026-11-12T13:14:10+00:00
files_expire_atobligatorio
string (date-time) | null
files_expiredobligatorio
boolean
Ejemplo false
retentionobligatorio
object
chunksobligatorio
object
expires_atobligatorio
string (date-time) | null
expiredobligatorio
boolean
Ejemplo false
expires_earlyobligatorio
boolean
Ejemplo false
reasonobligatorio

May arrive as null.

string | null
filesobligatorio
object
expires_atobligatorio
string (date-time) | null
expiredobligatorio
boolean
Ejemplo false
eta_secondsobligatorio

May arrive as null.

integer | null
eta_atobligatorio
string (date-time) | null
completed_chunksobligatorio

May arrive as null.

integer | null
total_chunksobligatorio

May arrive as null.

integer | null
progress_percentobligatorio

May arrive as null.

integer | null
stitchingobligatorio
boolean
Ejemplo false
paragraphsobligatorio

May arrive as null.

array<object> | null

Ejemplo de payload

{
  "order": {
    "id": "01a1cfe4-f20e-731b-99e7-98f30b2c6706",
    "user_id": 115,
    "name": "example",
    "template": {
      "id": "01a1cfe4-f20c-72bb-a2e6-3545e39e7994",
      "user_id": 116,
      "slug": "97d71387-1622-3762-94b1-f7b15341aa9b",
      "name": "sunt",
      "service_key": "example",
      "service": {},
      "config": [],
      "is_public": true,
      "folder_id": "string",
      "created_at": "2026-11-12T13:14:10+00:00",
      "updated_at": "2026-11-12T13:14:10+00:00"
    },
    "template_id": "01a1cfe4-f20c-72bb-a2e6-3545e39e7994",
    "task_type": "tts",
    "status": "created",
    "price_units": 6.35,
    "price_formatted": 0.06,
    "currency_asset": {
      "id": 0,
      "code": "LUMC",
      "kind": "string",
      "precision": 2,
      "name": "string",
      "deleted_at": "<date-time>",
      "created_at": "<date-time>",
      "updated_at": "<date-time>"
    },
    "total_tokens": 0,
    "total_duration_ms": 0,
    "tokens_from_quota": 0,
    "tokens_from_payg": 0,
    "tokens_spent": 0,
    "task_data": {},
    "result": {},
    "created_at": "2026-11-12T13:14:10+00:00",
    "updated_at": "2026-11-12T13:14:10+00:00",
    "dispatch_scheduled_at": "2026-11-12T13:14:10+00:00",
    "files_expire_at": "<date-time>",
    "files_expired": false,
    "retention": {
      "chunks": {
        "expires_at": "<date-time>",
        "expired": false,
        "expires_early": false,
        "reason": "string"
      },
      "files": {
        "expires_at": "<date-time>",
        "expired": false
      }
    },
    "eta_seconds": 0,
    "eta_at": "<date-time>",
    "completed_chunks": 0,
    "total_chunks": 0,
    "progress_percent": 0,
    "stitching": false,
    "paragraphs": []
  }
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.status.changed

Echo: .status.changed · pusher-js: status.changed

The order changed status.

Campos del payload

orderobligatorio

A snapshot of the order without the chunk list — per-chunk changes arrive as separate item.status.changed events.

object
items_summaryobligatorio

A summary of the order's chunks instead of the full list.

object
totalobligatorio
integer
Ejemplo 12
by_statusobligatorio

How many chunks are in each status: pending, processing, completed, failed, policy_flagged.

object<string, integer>
Ejemplo {"completed":10,"failed":2}
previous_statusobligatorio
Valorescreatedpendingin_progresscompletedresult_deliveredfailedcompensatedcancelledpartially_completed
string
new_statusobligatorio
Valorescreatedpendingin_progresscompletedresult_deliveredfailedcompensatedcancelledpartially_completed
string

Ejemplo de payload

{
  "order": {},
  "items_summary": {
    "total": 12,
    "by_status": {
      "completed": 10,
      "failed": 2
    }
  },
  "previous_status": "created",
  "new_status": "created"
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.item.status.changed

Echo: .item.status.changed · pusher-js: item.status.changed

An order chunk changed status.

Campos del payload

itemobligatorio

The chunk index, its status, the result file path and the audio duration.

object
idopcional
string (uuid)
chunk_indexopcional
integer | null
Ejemplo 3
statusopcional
Valorespendingprocessingcompletedfailedpolicy_flagged
string
result_fileopcional
object | null
duration_msopcional
integer | null
Ejemplo 12480
pipelineopcional

Pipeline run node state; null for items of regular orders.

object | null
node_idopcional
string | null
Ejemplo tts_1
attemptopcional
integer
Ejemplo 1
statusopcional
Valoresprocessingcompletedfailedskipped
string
ordersopcional
array<string (uuid)>
outputsopcional

Port -> list of {path, mime}: absolute paths of sub-order files.

object<string, array<object>>
actionsopcional
array<string>
erroropcional
object | null
previous_statusobligatorio
string
new_statusobligatorio
string
completed_chunksopcional
integer
Ejemplo 3
total_chunksopcional
integer
Ejemplo 7
progress_percentopcional
integer
Ejemplo 43
stitchingopcional

Whether the order's audio is being stitched. The last finished chunk of a multi-chunk order means stitching has started, not that the order is done: while true the result is not final.

boolean
Ejemplo false

Ejemplo de payload

{
  "item": {
    "id": "<uuid>",
    "chunk_index": 3,
    "status": "pending",
    "result_file": {},
    "duration_ms": 12480,
    "pipeline": {
      "node_id": "tts_1",
      "attempt": 1,
      "status": "processing",
      "orders": [],
      "outputs": {},
      "actions": [],
      "error": {}
    }
  },
  "previous_status": "string",
  "new_status": "string",
  "completed_chunks": 3,
  "total_chunks": 7,
  "progress_percent": 43,
  "stitching": false
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.stitch.changed

Echo: .stitch.changed · pusher-js: stitch.changed

Campos del payload

order_idobligatorio
string
Ejemplo 01a12b4f-d2ba-70ef-b1a8-14aff97d1da2
order_statusobligatorio
string
Ejemplo created
stitchingobligatorio
boolean
Ejemplo false
stitchobligatorio
object
idobligatorio
string
Ejemplo 01a12b4f-d2bc-7117-83c6-a16f11eac8f4
statusobligatorio
string
Ejemplo pending
paragraph_indexobligatorio

May arrive as null.

integer | null
restitchobligatorio
boolean
Ejemplo false

Ejemplo de payload

{
  "order_id": "01a12b4f-d2ba-70ef-b1a8-14aff97d1da2",
  "order_status": "created",
  "stitching": false,
  "stitch": {
    "id": "01a12b4f-d2bc-7117-83c6-a16f11eac8f4",
    "status": "pending",
    "paragraph_index": 0,
    "restitch": false
  }
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

.progress

Echo: .progress · pusher-js: progress

Live progress of the order.

Campos del payload

task_idobligatorio

The order UUID — the same value as the channel's {orderId}.

string (uuid)
progressobligatorio

Kept for compatibility and does not reflect progress — rely on the progress events of the orders channel, or on eta_seconds.

number
Ejemplo 42.5
chunks_doneobligatorio

Kept for compatibility and does not reflect how many parts are done — count completion from item.status.changed events.

integer
chunks_totalobligatorio

Total number of parts in the order.

integer
duration_secondsopcional

How many seconds the task has been running. This is elapsed time, not remaining.

number
eta_secondsopcional

Estimated time remaining, in seconds. Computed by the API from service statistics.

integer | null
Ejemplo 95
eta_confidenceopcional

How much to trust the estimate: high — statistics for chunks of the same size, medium — for the service overall, low — little data, so show it with a «≈».

Valoreshighmediumlownull
string | null
timestampopcional
string (date-time)

Ejemplo de payload

{
  "task_id": "<uuid>",
  "progress": 42.5,
  "chunks_done": 0,
  "chunks_total": 0,
  "duration_seconds": 0,
  "eta_seconds": 95,
  "eta_confidence": "high",
  "timestamp": "<date-time>"
}

Ejemplo de la forma del evento. Los valores son ilustrativos.

Todos los canales y parámetros de conexión·POST /broadcasting/auth

Esta página para IA

Abrir .mdllm.md

versión de la API 1.0.0