lua-cli 3.46.0 → 3.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-exports.d.ts +125 -57
- package/dist/api-exports.js +273 -118
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +334 -177
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +54 -54
- package/dist/workflow-builder.js +198 -102
- package/dist/workflow-builder.js.map +1 -1
- package/docs/README.md +4 -4
- package/docs/api/User.md +52 -1
- package/package.json +3 -3
- package/template/package.json +1 -1
package/dist/api-exports.d.ts
CHANGED
|
@@ -1884,10 +1884,37 @@ export declare enum BasketStatus {
|
|
|
1884
1884
|
* Overrides platform-wide env var defaults for this specific agent.
|
|
1885
1885
|
*/
|
|
1886
1886
|
export declare interface BatchingConfig {
|
|
1887
|
-
/**
|
|
1887
|
+
/**
|
|
1888
|
+
* Fixed hold applied to the first message of a turn before processing, so rapid
|
|
1889
|
+
* follow-ups can join it. 0 = disabled.
|
|
1890
|
+
*
|
|
1891
|
+
* This is a tax on EVERY turn, including single-message ones: `10000` delays every
|
|
1892
|
+
* reply by 10s whether or not the user sends a second message. Keep it small
|
|
1893
|
+
* (a few hundred ms to ~2s) unless your users routinely send bursts.
|
|
1894
|
+
*/
|
|
1888
1895
|
firstMessageDelayMs?: number;
|
|
1889
|
-
/**
|
|
1896
|
+
/**
|
|
1897
|
+
* Quiet period (ms) that collects subsequent messages while one is in-flight. 0 = batching disabled.
|
|
1898
|
+
*
|
|
1899
|
+
* The window SLIDES: every new message in the batch restarts it, so the reply goes out
|
|
1900
|
+
* `debounceWindowMs` after the user's LAST message. `30000` means a user who keeps typing
|
|
1901
|
+
* waits 30s after their final message. Larger values batch long bursts better but add
|
|
1902
|
+
* latency; pair a large value with `maxWaitMs` to bound the wait.
|
|
1903
|
+
*/
|
|
1890
1904
|
debounceWindowMs?: number;
|
|
1905
|
+
/**
|
|
1906
|
+
* Hard cap (ms) on how long a sliding debounce batch can be held, measured from batch
|
|
1907
|
+
* creation (the arrival of the message that formed the batch, not from the
|
|
1908
|
+
* `firstMessageDelayMs` hold). The batch fires on the quiet period OR this cap, whichever
|
|
1909
|
+
* comes first, so a continuous stream of messages cannot postpone the reply indefinitely.
|
|
1910
|
+
*
|
|
1911
|
+
* Optional; absent or 0 = no cap (the window slides until `maxBatchMessages` or silence).
|
|
1912
|
+
* If smaller than `debounceWindowMs`, the cap still applies from batch creation.
|
|
1913
|
+
* Per-agent only, no platform-wide default. Bounds the debounce wait only; the serialize-mode
|
|
1914
|
+
* wait for an in-flight turn is not covered. Measure the effect with
|
|
1915
|
+
* `lua_chat_stage_duration_seconds{stage="batch_wait"}`.
|
|
1916
|
+
*/
|
|
1917
|
+
maxWaitMs?: number;
|
|
1891
1918
|
/** Maximum messages collected in a single batch. */
|
|
1892
1919
|
maxBatchMessages?: number;
|
|
1893
1920
|
/**
|
|
@@ -5945,13 +5972,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5945
5972
|
}, "strip", z.ZodTypeAny, {
|
|
5946
5973
|
kind: "inference";
|
|
5947
5974
|
model: string;
|
|
5948
|
-
options?: Record<string, unknown> | undefined;
|
|
5949
5975
|
voice?: string | undefined;
|
|
5976
|
+
options?: Record<string, unknown> | undefined;
|
|
5950
5977
|
}, {
|
|
5951
5978
|
kind: "inference";
|
|
5952
5979
|
model: string;
|
|
5953
|
-
options?: Record<string, unknown> | undefined;
|
|
5954
5980
|
voice?: string | undefined;
|
|
5981
|
+
options?: Record<string, unknown> | undefined;
|
|
5955
5982
|
}>, z.ZodObject<{
|
|
5956
5983
|
kind: z.ZodLiteral<"plugin">;
|
|
5957
5984
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -5965,14 +5992,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5965
5992
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5966
5993
|
}, "strip", z.ZodTypeAny, {
|
|
5967
5994
|
kind: "plugin";
|
|
5968
|
-
options: Record<string, unknown>;
|
|
5969
5995
|
provider: "deepgram" | "elevenlabs";
|
|
5970
5996
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
5997
|
+
options: Record<string, unknown>;
|
|
5971
5998
|
}, {
|
|
5972
5999
|
kind: "plugin";
|
|
5973
|
-
options: Record<string, unknown>;
|
|
5974
6000
|
provider: "deepgram" | "elevenlabs";
|
|
5975
6001
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6002
|
+
options: Record<string, unknown>;
|
|
5976
6003
|
}>, z.ZodObject<{
|
|
5977
6004
|
kind: z.ZodLiteral<"realtime">;
|
|
5978
6005
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -5985,12 +6012,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5985
6012
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5986
6013
|
}, "strip", z.ZodTypeAny, {
|
|
5987
6014
|
kind: "realtime";
|
|
5988
|
-
options: Record<string, unknown>;
|
|
5989
6015
|
provider: "openai" | "google" | "xai";
|
|
6016
|
+
options: Record<string, unknown>;
|
|
5990
6017
|
}, {
|
|
5991
6018
|
kind: "realtime";
|
|
5992
|
-
options: Record<string, unknown>;
|
|
5993
6019
|
provider: "openai" | "google" | "xai";
|
|
6020
|
+
options: Record<string, unknown>;
|
|
5994
6021
|
}>]>;
|
|
5995
6022
|
stt: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
5996
6023
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -6011,13 +6038,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6011
6038
|
}, "strip", z.ZodTypeAny, {
|
|
6012
6039
|
kind: "inference";
|
|
6013
6040
|
model: string;
|
|
6014
|
-
options?: Record<string, unknown> | undefined;
|
|
6015
6041
|
voice?: string | undefined;
|
|
6042
|
+
options?: Record<string, unknown> | undefined;
|
|
6016
6043
|
}, {
|
|
6017
6044
|
kind: "inference";
|
|
6018
6045
|
model: string;
|
|
6019
|
-
options?: Record<string, unknown> | undefined;
|
|
6020
6046
|
voice?: string | undefined;
|
|
6047
|
+
options?: Record<string, unknown> | undefined;
|
|
6021
6048
|
}>, z.ZodObject<{
|
|
6022
6049
|
kind: z.ZodLiteral<"plugin">;
|
|
6023
6050
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -6031,14 +6058,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6031
6058
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6032
6059
|
}, "strip", z.ZodTypeAny, {
|
|
6033
6060
|
kind: "plugin";
|
|
6034
|
-
options: Record<string, unknown>;
|
|
6035
6061
|
provider: "deepgram" | "elevenlabs";
|
|
6036
6062
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6063
|
+
options: Record<string, unknown>;
|
|
6037
6064
|
}, {
|
|
6038
6065
|
kind: "plugin";
|
|
6039
|
-
options: Record<string, unknown>;
|
|
6040
6066
|
provider: "deepgram" | "elevenlabs";
|
|
6041
6067
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6068
|
+
options: Record<string, unknown>;
|
|
6042
6069
|
}>, z.ZodObject<{
|
|
6043
6070
|
kind: z.ZodLiteral<"realtime">;
|
|
6044
6071
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -6051,12 +6078,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6051
6078
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6052
6079
|
}, "strip", z.ZodTypeAny, {
|
|
6053
6080
|
kind: "realtime";
|
|
6054
|
-
options: Record<string, unknown>;
|
|
6055
6081
|
provider: "openai" | "google" | "xai";
|
|
6082
|
+
options: Record<string, unknown>;
|
|
6056
6083
|
}, {
|
|
6057
6084
|
kind: "realtime";
|
|
6058
|
-
options: Record<string, unknown>;
|
|
6059
6085
|
provider: "openai" | "google" | "xai";
|
|
6086
|
+
options: Record<string, unknown>;
|
|
6060
6087
|
}>]>>;
|
|
6061
6088
|
tts: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
6062
6089
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -6077,13 +6104,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6077
6104
|
}, "strip", z.ZodTypeAny, {
|
|
6078
6105
|
kind: "inference";
|
|
6079
6106
|
model: string;
|
|
6080
|
-
options?: Record<string, unknown> | undefined;
|
|
6081
6107
|
voice?: string | undefined;
|
|
6108
|
+
options?: Record<string, unknown> | undefined;
|
|
6082
6109
|
}, {
|
|
6083
6110
|
kind: "inference";
|
|
6084
6111
|
model: string;
|
|
6085
|
-
options?: Record<string, unknown> | undefined;
|
|
6086
6112
|
voice?: string | undefined;
|
|
6113
|
+
options?: Record<string, unknown> | undefined;
|
|
6087
6114
|
}>, z.ZodObject<{
|
|
6088
6115
|
kind: z.ZodLiteral<"plugin">;
|
|
6089
6116
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -6097,14 +6124,14 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6097
6124
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6098
6125
|
}, "strip", z.ZodTypeAny, {
|
|
6099
6126
|
kind: "plugin";
|
|
6100
|
-
options: Record<string, unknown>;
|
|
6101
6127
|
provider: "deepgram" | "elevenlabs";
|
|
6102
6128
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6129
|
+
options: Record<string, unknown>;
|
|
6103
6130
|
}, {
|
|
6104
6131
|
kind: "plugin";
|
|
6105
|
-
options: Record<string, unknown>;
|
|
6106
6132
|
provider: "deepgram" | "elevenlabs";
|
|
6107
6133
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6134
|
+
options: Record<string, unknown>;
|
|
6108
6135
|
}>, z.ZodObject<{
|
|
6109
6136
|
kind: z.ZodLiteral<"realtime">;
|
|
6110
6137
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -6117,12 +6144,12 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6117
6144
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6118
6145
|
}, "strip", z.ZodTypeAny, {
|
|
6119
6146
|
kind: "realtime";
|
|
6120
|
-
options: Record<string, unknown>;
|
|
6121
6147
|
provider: "openai" | "google" | "xai";
|
|
6148
|
+
options: Record<string, unknown>;
|
|
6122
6149
|
}, {
|
|
6123
6150
|
kind: "realtime";
|
|
6124
|
-
options: Record<string, unknown>;
|
|
6125
6151
|
provider: "openai" | "google" | "xai";
|
|
6152
|
+
options: Record<string, unknown>;
|
|
6126
6153
|
}>]>>;
|
|
6127
6154
|
vad: z.ZodOptional<z.ZodString>;
|
|
6128
6155
|
vadOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -6283,50 +6310,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6283
6310
|
llm: {
|
|
6284
6311
|
kind: "inference";
|
|
6285
6312
|
model: string;
|
|
6286
|
-
options?: Record<string, unknown> | undefined;
|
|
6287
6313
|
voice?: string | undefined;
|
|
6314
|
+
options?: Record<string, unknown> | undefined;
|
|
6288
6315
|
} | {
|
|
6289
6316
|
kind: "plugin";
|
|
6290
|
-
options: Record<string, unknown>;
|
|
6291
6317
|
provider: "deepgram" | "elevenlabs";
|
|
6292
6318
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6319
|
+
options: Record<string, unknown>;
|
|
6293
6320
|
} | {
|
|
6294
6321
|
kind: "realtime";
|
|
6295
|
-
options: Record<string, unknown>;
|
|
6296
6322
|
provider: "openai" | "google" | "xai";
|
|
6323
|
+
options: Record<string, unknown>;
|
|
6297
6324
|
};
|
|
6298
6325
|
name?: string | undefined;
|
|
6299
6326
|
vad?: string | undefined;
|
|
6300
6327
|
stt?: {
|
|
6301
6328
|
kind: "inference";
|
|
6302
6329
|
model: string;
|
|
6303
|
-
options?: Record<string, unknown> | undefined;
|
|
6304
6330
|
voice?: string | undefined;
|
|
6331
|
+
options?: Record<string, unknown> | undefined;
|
|
6305
6332
|
} | {
|
|
6306
6333
|
kind: "plugin";
|
|
6307
|
-
options: Record<string, unknown>;
|
|
6308
6334
|
provider: "deepgram" | "elevenlabs";
|
|
6309
6335
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6336
|
+
options: Record<string, unknown>;
|
|
6310
6337
|
} | {
|
|
6311
6338
|
kind: "realtime";
|
|
6312
|
-
options: Record<string, unknown>;
|
|
6313
6339
|
provider: "openai" | "google" | "xai";
|
|
6340
|
+
options: Record<string, unknown>;
|
|
6314
6341
|
} | undefined;
|
|
6315
6342
|
volume?: number | undefined;
|
|
6316
6343
|
tts?: {
|
|
6317
6344
|
kind: "inference";
|
|
6318
6345
|
model: string;
|
|
6319
|
-
options?: Record<string, unknown> | undefined;
|
|
6320
6346
|
voice?: string | undefined;
|
|
6347
|
+
options?: Record<string, unknown> | undefined;
|
|
6321
6348
|
} | {
|
|
6322
6349
|
kind: "plugin";
|
|
6323
|
-
options: Record<string, unknown>;
|
|
6324
6350
|
provider: "deepgram" | "elevenlabs";
|
|
6325
6351
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6352
|
+
options: Record<string, unknown>;
|
|
6326
6353
|
} | {
|
|
6327
6354
|
kind: "realtime";
|
|
6328
|
-
options: Record<string, unknown>;
|
|
6329
6355
|
provider: "openai" | "google" | "xai";
|
|
6356
|
+
options: Record<string, unknown>;
|
|
6330
6357
|
} | undefined;
|
|
6331
6358
|
vadOptions?: {
|
|
6332
6359
|
minSpeechDuration?: number | undefined;
|
|
@@ -6377,50 +6404,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6377
6404
|
llm: {
|
|
6378
6405
|
kind: "inference";
|
|
6379
6406
|
model: string;
|
|
6380
|
-
options?: Record<string, unknown> | undefined;
|
|
6381
6407
|
voice?: string | undefined;
|
|
6408
|
+
options?: Record<string, unknown> | undefined;
|
|
6382
6409
|
} | {
|
|
6383
6410
|
kind: "plugin";
|
|
6384
|
-
options: Record<string, unknown>;
|
|
6385
6411
|
provider: "deepgram" | "elevenlabs";
|
|
6386
6412
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6413
|
+
options: Record<string, unknown>;
|
|
6387
6414
|
} | {
|
|
6388
6415
|
kind: "realtime";
|
|
6389
|
-
options: Record<string, unknown>;
|
|
6390
6416
|
provider: "openai" | "google" | "xai";
|
|
6417
|
+
options: Record<string, unknown>;
|
|
6391
6418
|
};
|
|
6392
6419
|
name?: string | undefined;
|
|
6393
6420
|
vad?: string | undefined;
|
|
6394
6421
|
stt?: {
|
|
6395
6422
|
kind: "inference";
|
|
6396
6423
|
model: string;
|
|
6397
|
-
options?: Record<string, unknown> | undefined;
|
|
6398
6424
|
voice?: string | undefined;
|
|
6425
|
+
options?: Record<string, unknown> | undefined;
|
|
6399
6426
|
} | {
|
|
6400
6427
|
kind: "plugin";
|
|
6401
|
-
options: Record<string, unknown>;
|
|
6402
6428
|
provider: "deepgram" | "elevenlabs";
|
|
6403
6429
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6430
|
+
options: Record<string, unknown>;
|
|
6404
6431
|
} | {
|
|
6405
6432
|
kind: "realtime";
|
|
6406
|
-
options: Record<string, unknown>;
|
|
6407
6433
|
provider: "openai" | "google" | "xai";
|
|
6434
|
+
options: Record<string, unknown>;
|
|
6408
6435
|
} | undefined;
|
|
6409
6436
|
volume?: number | undefined;
|
|
6410
6437
|
tts?: {
|
|
6411
6438
|
kind: "inference";
|
|
6412
6439
|
model: string;
|
|
6413
|
-
options?: Record<string, unknown> | undefined;
|
|
6414
6440
|
voice?: string | undefined;
|
|
6441
|
+
options?: Record<string, unknown> | undefined;
|
|
6415
6442
|
} | {
|
|
6416
6443
|
kind: "plugin";
|
|
6417
|
-
options: Record<string, unknown>;
|
|
6418
6444
|
provider: "deepgram" | "elevenlabs";
|
|
6419
6445
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6446
|
+
options: Record<string, unknown>;
|
|
6420
6447
|
} | {
|
|
6421
6448
|
kind: "realtime";
|
|
6422
|
-
options: Record<string, unknown>;
|
|
6423
6449
|
provider: "openai" | "google" | "xai";
|
|
6450
|
+
options: Record<string, unknown>;
|
|
6424
6451
|
} | undefined;
|
|
6425
6452
|
vadOptions?: {
|
|
6426
6453
|
minSpeechDuration?: number | undefined;
|
|
@@ -6471,50 +6498,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6471
6498
|
llm: {
|
|
6472
6499
|
kind: "inference";
|
|
6473
6500
|
model: string;
|
|
6474
|
-
options?: Record<string, unknown> | undefined;
|
|
6475
6501
|
voice?: string | undefined;
|
|
6502
|
+
options?: Record<string, unknown> | undefined;
|
|
6476
6503
|
} | {
|
|
6477
6504
|
kind: "plugin";
|
|
6478
|
-
options: Record<string, unknown>;
|
|
6479
6505
|
provider: "deepgram" | "elevenlabs";
|
|
6480
6506
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6507
|
+
options: Record<string, unknown>;
|
|
6481
6508
|
} | {
|
|
6482
6509
|
kind: "realtime";
|
|
6483
|
-
options: Record<string, unknown>;
|
|
6484
6510
|
provider: "openai" | "google" | "xai";
|
|
6511
|
+
options: Record<string, unknown>;
|
|
6485
6512
|
};
|
|
6486
6513
|
name?: string | undefined;
|
|
6487
6514
|
vad?: string | undefined;
|
|
6488
6515
|
stt?: {
|
|
6489
6516
|
kind: "inference";
|
|
6490
6517
|
model: string;
|
|
6491
|
-
options?: Record<string, unknown> | undefined;
|
|
6492
6518
|
voice?: string | undefined;
|
|
6519
|
+
options?: Record<string, unknown> | undefined;
|
|
6493
6520
|
} | {
|
|
6494
6521
|
kind: "plugin";
|
|
6495
|
-
options: Record<string, unknown>;
|
|
6496
6522
|
provider: "deepgram" | "elevenlabs";
|
|
6497
6523
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6524
|
+
options: Record<string, unknown>;
|
|
6498
6525
|
} | {
|
|
6499
6526
|
kind: "realtime";
|
|
6500
|
-
options: Record<string, unknown>;
|
|
6501
6527
|
provider: "openai" | "google" | "xai";
|
|
6528
|
+
options: Record<string, unknown>;
|
|
6502
6529
|
} | undefined;
|
|
6503
6530
|
volume?: number | undefined;
|
|
6504
6531
|
tts?: {
|
|
6505
6532
|
kind: "inference";
|
|
6506
6533
|
model: string;
|
|
6507
|
-
options?: Record<string, unknown> | undefined;
|
|
6508
6534
|
voice?: string | undefined;
|
|
6535
|
+
options?: Record<string, unknown> | undefined;
|
|
6509
6536
|
} | {
|
|
6510
6537
|
kind: "plugin";
|
|
6511
|
-
options: Record<string, unknown>;
|
|
6512
6538
|
provider: "deepgram" | "elevenlabs";
|
|
6513
6539
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6540
|
+
options: Record<string, unknown>;
|
|
6514
6541
|
} | {
|
|
6515
6542
|
kind: "realtime";
|
|
6516
|
-
options: Record<string, unknown>;
|
|
6517
6543
|
provider: "openai" | "google" | "xai";
|
|
6544
|
+
options: Record<string, unknown>;
|
|
6518
6545
|
} | undefined;
|
|
6519
6546
|
vadOptions?: {
|
|
6520
6547
|
minSpeechDuration?: number | undefined;
|
|
@@ -6565,50 +6592,50 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6565
6592
|
llm: {
|
|
6566
6593
|
kind: "inference";
|
|
6567
6594
|
model: string;
|
|
6568
|
-
options?: Record<string, unknown> | undefined;
|
|
6569
6595
|
voice?: string | undefined;
|
|
6596
|
+
options?: Record<string, unknown> | undefined;
|
|
6570
6597
|
} | {
|
|
6571
6598
|
kind: "plugin";
|
|
6572
|
-
options: Record<string, unknown>;
|
|
6573
6599
|
provider: "deepgram" | "elevenlabs";
|
|
6574
6600
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6601
|
+
options: Record<string, unknown>;
|
|
6575
6602
|
} | {
|
|
6576
6603
|
kind: "realtime";
|
|
6577
|
-
options: Record<string, unknown>;
|
|
6578
6604
|
provider: "openai" | "google" | "xai";
|
|
6605
|
+
options: Record<string, unknown>;
|
|
6579
6606
|
};
|
|
6580
6607
|
name?: string | undefined;
|
|
6581
6608
|
vad?: string | undefined;
|
|
6582
6609
|
stt?: {
|
|
6583
6610
|
kind: "inference";
|
|
6584
6611
|
model: string;
|
|
6585
|
-
options?: Record<string, unknown> | undefined;
|
|
6586
6612
|
voice?: string | undefined;
|
|
6613
|
+
options?: Record<string, unknown> | undefined;
|
|
6587
6614
|
} | {
|
|
6588
6615
|
kind: "plugin";
|
|
6589
|
-
options: Record<string, unknown>;
|
|
6590
6616
|
provider: "deepgram" | "elevenlabs";
|
|
6591
6617
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6618
|
+
options: Record<string, unknown>;
|
|
6592
6619
|
} | {
|
|
6593
6620
|
kind: "realtime";
|
|
6594
|
-
options: Record<string, unknown>;
|
|
6595
6621
|
provider: "openai" | "google" | "xai";
|
|
6622
|
+
options: Record<string, unknown>;
|
|
6596
6623
|
} | undefined;
|
|
6597
6624
|
volume?: number | undefined;
|
|
6598
6625
|
tts?: {
|
|
6599
6626
|
kind: "inference";
|
|
6600
6627
|
model: string;
|
|
6601
|
-
options?: Record<string, unknown> | undefined;
|
|
6602
6628
|
voice?: string | undefined;
|
|
6629
|
+
options?: Record<string, unknown> | undefined;
|
|
6603
6630
|
} | {
|
|
6604
6631
|
kind: "plugin";
|
|
6605
|
-
options: Record<string, unknown>;
|
|
6606
6632
|
provider: "deepgram" | "elevenlabs";
|
|
6607
6633
|
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6634
|
+
options: Record<string, unknown>;
|
|
6608
6635
|
} | {
|
|
6609
6636
|
kind: "realtime";
|
|
6610
|
-
options: Record<string, unknown>;
|
|
6611
6637
|
provider: "openai" | "google" | "xai";
|
|
6638
|
+
options: Record<string, unknown>;
|
|
6612
6639
|
} | undefined;
|
|
6613
6640
|
vadOptions?: {
|
|
6614
6641
|
minSpeechDuration?: number | undefined;
|
|
@@ -9827,6 +9854,10 @@ declare interface UserDataAPI {
|
|
|
9827
9854
|
set?: Record<string, any>;
|
|
9828
9855
|
unset?: string[];
|
|
9829
9856
|
}): Promise<any>;
|
|
9857
|
+
/** Publishes the user's My work list (LUA-1028), replacing the previous one. */
|
|
9858
|
+
setWorkItems(items: WorkItem[]): Promise<any>;
|
|
9859
|
+
/** Removes the user's My work list. */
|
|
9860
|
+
clearWorkItems(): Promise<any>;
|
|
9830
9861
|
/**
|
|
9831
9862
|
* Clears user data.
|
|
9832
9863
|
* @returns Promise resolving when data is cleared
|
|
@@ -9883,7 +9914,23 @@ export declare class UserDataInstance {
|
|
|
9883
9914
|
}): Promise<any>;
|
|
9884
9915
|
unset(...fields: string[]): Promise<any>;
|
|
9885
9916
|
/**
|
|
9886
|
-
*
|
|
9917
|
+
* Publishes this user's My work list (LUA-1028): the open work they see in Frontline's "My work",
|
|
9918
|
+
* replacing the previous list. Publish whenever the work changes, for everyone it affects.
|
|
9919
|
+
* @param items - At most 100 items; each `action` is the message sent when the user taps it
|
|
9920
|
+
* @throws Error naming the first invalid item (nothing is sent), or if the write fails
|
|
9921
|
+
*
|
|
9922
|
+
* @example
|
|
9923
|
+
* const technician = await User.get({ phone: '+254700000000' });
|
|
9924
|
+
* await technician?.setWorkItems([
|
|
9925
|
+
* { id: 'MNT-00123', title: 'MNT-00123 · Fryer not heating', group: 'Assigned to you',
|
|
9926
|
+
* status: 'In progress', updatedAt: new Date(), action: 'Show MNT-00123' },
|
|
9927
|
+
* ]);
|
|
9928
|
+
*/
|
|
9929
|
+
setWorkItems(items: WorkItem[]): Promise<void>;
|
|
9930
|
+
/** Removes this user's My work list. */
|
|
9931
|
+
clearWorkItems(): Promise<void>;
|
|
9932
|
+
/**
|
|
9933
|
+
* Clears all user data for the current user (the My work list included)
|
|
9887
9934
|
* @returns Promise resolving to `{ success: true }` if clearing was successful
|
|
9888
9935
|
* @throws Error if the clear operation fails
|
|
9889
9936
|
*/
|
|
@@ -11267,6 +11314,27 @@ declare type WorkflowTier = (typeof WORKFLOW_TIERS)[number];
|
|
|
11267
11314
|
|
|
11268
11315
|
export declare type WorkflowWorkspaceBackend = 'ebs' | 'efs' | 's3';
|
|
11269
11316
|
|
|
11317
|
+
/** One item as an agent publishes it. */
|
|
11318
|
+
export declare interface WorkItem {
|
|
11319
|
+
/** Stable id within the list (e.g. a ticket number). */
|
|
11320
|
+
id: string;
|
|
11321
|
+
/** One line the user recognises, e.g. "MNT-00123 · Fryer not heating". */
|
|
11322
|
+
title: string;
|
|
11323
|
+
/** Display group chosen by the agent, e.g. "Waiting on you", "Your tickets". */
|
|
11324
|
+
group: string;
|
|
11325
|
+
/** The user's own action is needed (a fix to confirm, an approval to give); listed first. */
|
|
11326
|
+
needsAction?: boolean;
|
|
11327
|
+
/** Short status label, e.g. "In progress". */
|
|
11328
|
+
status?: string;
|
|
11329
|
+
/** When the work last changed. */
|
|
11330
|
+
updatedAt: string | Date;
|
|
11331
|
+
/**
|
|
11332
|
+
* The message the user's client sends when the item is tapped. A show/open request
|
|
11333
|
+
* ("Show MNT-00123"), never a decision: decisions are made in the conversation.
|
|
11334
|
+
*/
|
|
11335
|
+
action: string;
|
|
11336
|
+
}
|
|
11337
|
+
|
|
11270
11338
|
export declare type WorkspaceSpec = {
|
|
11271
11339
|
kind: 'git';
|
|
11272
11340
|
repo: string | TemplateBinding;
|