İçeriğe geç
Lumean

Açıklamalar İngilizce

Bölümün arayüzü dilinize çevrildi, ancak işlem, şema ve hata açıklamaları yalnızca Rusça ve İngilizce mevcut — burada İngilizce sürüm gösteriliyor.

private-order.task.{orderId}

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

Kanal parametreleri

Değerlerinizi girin — kanal adında, aşağıdaki kodda ve konsolda görünürler. Hiçbir yere gönderilmez ve asla sayfa adresine yazılmazlar.

is the UUID from the POST /orders response.

Abone olunacak kanal adı

private-order.task.{orderId}

Adda hâlâ süslü parantez içinde yer tutucular var. Bu adla abone olamazsınız: sunucu kanalları tam ad eşleşmesiyle yetkilendirir.

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);
});

Payload örneği

bağlı değil

Kanal: private-order.task.{orderId}

Bu örnek bir olaydır, bağlantı yok. Abone olmak için API anahtarınız gerekir.

orders.read izni olan bir anahtar gerekir

.paragraph_regenerate.completed

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

Kanal olayları: 9

Her olayın kendi çapa bağlantısı, açıklamalar ve enum değerleriyle tam bir payload tablosu ve örnek bir yapısı vardır. Adlar Laravel Echo gösteriminde, yani baştaki noktayla gösterilir.

.paragraph_regenerate.completed

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

Payload alanları

order_idzorunlu
string
Örnek 01a0d8c6-86d3-70b5-a86e-5a12b1d860df
paragraph_indexzorunlu
integer
Örnek 1
created_countzorunlu
integer
Örnek 1
failed_countzorunlu
integer
Örnek 1

Payload örneği

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

Olay yapısına bir örnek. Değerler temsilidir.

.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.

Payload alanları

order_idzorunlu
string
Örnek example
queue_positionzorunlu
integer | null
Örnek 1
queue_wait_secondszorunlu
integer | null
Örnek 1

Payload örneği

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

Olay yapısına bir örnek. Değerler temsilidir.

.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.

Payload alanları

order_idzorunlu
string
Örnek example
queue_positionzorunlu
integer
Örnek 1
queue_wait_secondszorunlu
integer | null
Örnek 1

Payload örneği

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

Olay yapısına bir örnek. Değerler temsilidir.

.bulk_retry.completed

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

Payload alanları

order_idzorunlu
string
Örnek 01a1d77e-7c84-723f-9acf-ed6700e3454a
batch_idzorunlu
string | null
Örnek example
created_countzorunlu
integer
Örnek 1
failed_countzorunlu
integer
Örnek 1

Payload örneği

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

Olay yapısına bir örnek. Değerler temsilidir.

.renamed

Echo: .renamed · pusher-js: renamed

Payload alanları

orderzorunlu
object
idzorunlu
string
Örnek 01a1cfe4-f20e-731b-99e7-98f30b2c6706
user_idzorunlu
integer
Örnek 115
namezorunlu
string | null
Örnek example
templatezorunlu
object
idzorunlu
string
Örnek 01a1cfe4-f20c-72bb-a2e6-3545e39e7994
user_idzorunlu
integer
Örnek 116
slugzorunlu
string
Örnek 97d71387-1622-3762-94b1-f7b15341aa9b
namezorunlu
string
Örnek sunt
service_keyzorunlu
string
Örnek example
servicezorunlu

May arrive as null.

object | null
configzorunlu
array<object>
is_publiczorunlu
boolean
Örnek true
folder_idzorunlu

May arrive as null.

string | null
created_atzorunlu
string (date-time)
Örnek 2026-11-12T13:14:10+00:00
updated_atzorunlu
string (date-time)
Örnek 2026-11-12T13:14:10+00:00
template_idzorunlu
string
Örnek 01a1cfe4-f20c-72bb-a2e6-3545e39e7994
task_typezorunlu
Değerlerttsimagetxt2imgremiximage_editvoice_clonesfxmusicvoice_searchcartesia_dubelevenlabs_dubpipelineaimontage
string
Örnek tts
statuszorunlu
Değerlercreatedpendingin_progresscompletedresult_deliveredfailedcompensatedcancelledpartially_completed
string
Örnek created
price_unitszorunlu
number
Örnek 6.35
price_formattedzorunlu
number
Örnek 0.06
currency_assetzorunlu
object
idzorunlu

May arrive as null.

integer | null
codezorunlu
string
Örnek LUMC
kindzorunlu

May arrive as null.

string | null
precisionzorunlu
integer
Örnek 2
namezorunlu

May arrive as null.

string | null
deleted_atzorunlu
string (date-time) | null
created_atzorunlu
string (date-time) | null
updated_atzorunlu
string (date-time) | null
total_tokenszorunlu
integer
Örnek 0
total_duration_mszorunlu

May arrive as null.

integer | null
tokens_from_quotazorunlu

May arrive as null.

integer | null
tokens_from_paygzorunlu

May arrive as null.

integer | null
tokens_spentzorunlu

May arrive as null.

integer | null
task_datazorunlu

May arrive as null.

object | null
resultzorunlu

May arrive as null.

object | null
created_atzorunlu
string (date-time)
Örnek 2026-11-12T13:14:10+00:00
updated_atzorunlu
string (date-time)
Örnek 2026-11-12T13:14:10+00:00
dispatch_scheduled_atzorunlu
string (date-time) | null
Örnek 2026-11-12T13:14:10+00:00
files_expire_atzorunlu
string (date-time) | null
files_expiredzorunlu
boolean
Örnek false
retentionzorunlu
object
chunkszorunlu
object
expires_atzorunlu
string (date-time) | null
expiredzorunlu
boolean
Örnek false
expires_earlyzorunlu
boolean
Örnek false
reasonzorunlu

May arrive as null.

string | null
fileszorunlu
object
expires_atzorunlu
string (date-time) | null
expiredzorunlu
boolean
Örnek false
eta_secondszorunlu

May arrive as null.

integer | null
eta_atzorunlu
string (date-time) | null
completed_chunkszorunlu

May arrive as null.

integer | null
total_chunkszorunlu

May arrive as null.

integer | null
progress_percentzorunlu

May arrive as null.

integer | null
stitchingzorunlu
boolean
Örnek false
paragraphszorunlu

May arrive as null.

array<object> | null

Payload örneği

{
  "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": []
  }
}

Olay yapısına bir örnek. Değerler temsilidir.

.status.changed

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

The order changed status.

Payload alanları

orderzorunlu

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

object
items_summaryzorunlu

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

object
totalzorunlu
integer
Örnek 12
by_statuszorunlu

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

object<string, integer>
Örnek {"completed":10,"failed":2}
previous_statuszorunlu
Değerlercreatedpendingin_progresscompletedresult_deliveredfailedcompensatedcancelledpartially_completed
string
new_statuszorunlu
Değerlercreatedpendingin_progresscompletedresult_deliveredfailedcompensatedcancelledpartially_completed
string

Payload örneği

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

Olay yapısına bir örnek. Değerler temsilidir.

.item.status.changed

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

An order chunk changed status.

Payload alanları

itemzorunlu

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

object
idisteğe bağlı
string (uuid)
chunk_indexisteğe bağlı
integer | null
Örnek 3
statusisteğe bağlı
Değerlerpendingprocessingcompletedfailedpolicy_flagged
string
result_fileisteğe bağlı
object | null
duration_msisteğe bağlı
integer | null
Örnek 12480
pipelineisteğe bağlı

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

object | null
node_idisteğe bağlı
string | null
Örnek tts_1
attemptisteğe bağlı
integer
Örnek 1
statusisteğe bağlı
Değerlerprocessingcompletedfailedskipped
string
ordersisteğe bağlı
array<string (uuid)>
outputsisteğe bağlı

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

object<string, array<object>>
actionsisteğe bağlı
array<string>
erroristeğe bağlı
object | null
previous_statuszorunlu
string
new_statuszorunlu
string
completed_chunksisteğe bağlı
integer
Örnek 3
total_chunksisteğe bağlı
integer
Örnek 7
progress_percentisteğe bağlı
integer
Örnek 43
stitchingisteğe bağlı

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
Örnek false

Payload örneği

{
  "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
}

Olay yapısına bir örnek. Değerler temsilidir.

.stitch.changed

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

Payload alanları

order_idzorunlu
string
Örnek 01a12b4f-d2ba-70ef-b1a8-14aff97d1da2
order_statuszorunlu
string
Örnek created
stitchingzorunlu
boolean
Örnek false
stitchzorunlu
object
idzorunlu
string
Örnek 01a12b4f-d2bc-7117-83c6-a16f11eac8f4
statuszorunlu
string
Örnek pending
paragraph_indexzorunlu

May arrive as null.

integer | null
restitchzorunlu
boolean
Örnek false

Payload örneği

{
  "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
  }
}

Olay yapısına bir örnek. Değerler temsilidir.

.progress

Echo: .progress · pusher-js: progress

Live progress of the order.

Payload alanları

task_idzorunlu

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

string (uuid)
progresszorunlu

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

number
Örnek 42.5
chunks_donezorunlu

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

integer
chunks_totalzorunlu

Total number of parts in the order.

integer
duration_secondsisteğe bağlı

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

number
eta_secondsisteğe bağlı

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

integer | null
Örnek 95
eta_confidenceisteğe bağlı

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 «≈».

Değerlerhighmediumlownull
string | null
timestampisteğe bağlı
string (date-time)

Payload örneği

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

Olay yapısına bir örnek. Değerler temsilidir.

Tüm kanallar ve bağlantı parametreleri·POST /broadcasting/auth

Yapay zekâ için bu sayfa

.md sürümünü açllm.md

API sürümü 1.0.0