lua-cli 3.45.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 +576 -471
- package/dist/api-exports.js +1163 -353
- package/dist/api-exports.js.map +1 -1
- package/dist/index.js +2322 -1176
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +462 -462
- package/dist/workflow-builder.js +854 -148
- package/dist/workflow-builder.js.map +1 -1
- package/docs/README.md +4 -4
- package/docs/api/Agents.md +6 -1
- package/docs/api/User.md +52 -1
- package/docs/workflows/workspaces-and-long-steps.md +2 -0
- package/package.json +3 -3
- package/template/package.json +1 -1
- package/template-web-app/web/package.json +1 -0
- package/template-web-app/web/src/App.tsx +1 -1
- package/template-web-app/web/src/main.tsx +1 -1
- package/template-web-app/web/src/lua/client.ts +0 -269
package/dist/api-exports.d.ts
CHANGED
|
@@ -805,6 +805,19 @@ export declare interface AgentsApi {
|
|
|
805
805
|
commitHash?: string;
|
|
806
806
|
}): Promise<unknown>;
|
|
807
807
|
};
|
|
808
|
+
/**
|
|
809
|
+
* A job of the target.
|
|
810
|
+
* @experimental Under `lua test` / `lua dev` this is always refused. In a deployed agent it works only once the
|
|
811
|
+
* platform serves `jobs.register`, and needs the `supervision:register-job` grant.
|
|
812
|
+
*/
|
|
813
|
+
jobs(agentId: string): {
|
|
814
|
+
/**
|
|
815
|
+
* Register job `jobId`, defined in the staged version `versionId`, on the target.
|
|
816
|
+
* @experimental Under `lua test` / `lua dev` it is always refused (`supervision_release_offline_refused`). In a
|
|
817
|
+
* deployed agent it needs the `supervision:register-job` grant (`supervision_not_granted` without it).
|
|
818
|
+
*/
|
|
819
|
+
register(input: SupervisedJobRegisterInput): Promise<SupervisedJobRegisterResult>;
|
|
820
|
+
};
|
|
808
821
|
persona(agentId: string): {
|
|
809
822
|
versions(): Promise<unknown>;
|
|
810
823
|
/** Serve persona `version` (`supervision:release`). CAS on the served persona version. */
|
|
@@ -1871,10 +1884,37 @@ export declare enum BasketStatus {
|
|
|
1871
1884
|
* Overrides platform-wide env var defaults for this specific agent.
|
|
1872
1885
|
*/
|
|
1873
1886
|
export declare interface BatchingConfig {
|
|
1874
|
-
/**
|
|
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
|
+
*/
|
|
1875
1895
|
firstMessageDelayMs?: number;
|
|
1876
|
-
/**
|
|
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
|
+
*/
|
|
1877
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;
|
|
1878
1918
|
/** Maximum messages collected in a single batch. */
|
|
1879
1919
|
maxBatchMessages?: number;
|
|
1880
1920
|
/**
|
|
@@ -3860,10 +3900,11 @@ declare abstract class HttpClient {
|
|
|
3860
3900
|
* Performs an HTTP GET request
|
|
3861
3901
|
* @param url - The relative URL path to request (will be appended to baseUrl)
|
|
3862
3902
|
* @param headers - Optional HTTP headers to include in the request
|
|
3903
|
+
* @param overrides - Optional per-call overrides (timeout, caller AbortSignal)
|
|
3863
3904
|
* @returns Promise resolving to an ApiResponse with typed data
|
|
3864
3905
|
* @protected
|
|
3865
3906
|
*/
|
|
3866
|
-
protected httpGet<T>(url: string, headers?: Record<string, string
|
|
3907
|
+
protected httpGet<T>(url: string, headers?: Record<string, string>, overrides?: RequestOverrides): Promise<ApiResponse<T>>;
|
|
3867
3908
|
/**
|
|
3868
3909
|
* Performs an HTTP POST request
|
|
3869
3910
|
* @param url - The relative URL path to request (will be appended to baseUrl)
|
|
@@ -3886,27 +3927,30 @@ declare abstract class HttpClient {
|
|
|
3886
3927
|
* @param url - The relative URL path to request (will be appended to baseUrl)
|
|
3887
3928
|
* @param data - Optional request body data (will be JSON stringified)
|
|
3888
3929
|
* @param headers - Optional HTTP headers to include in the request
|
|
3930
|
+
* @param overrides - Optional per-call overrides (timeout, caller AbortSignal)
|
|
3889
3931
|
* @returns Promise resolving to an ApiResponse with typed data
|
|
3890
3932
|
* @protected
|
|
3891
3933
|
*/
|
|
3892
|
-
protected httpPut<T>(url: string, data?: any, headers?: Record<string, string
|
|
3934
|
+
protected httpPut<T>(url: string, data?: any, headers?: Record<string, string>, overrides?: RequestOverrides): Promise<ApiResponse<T>>;
|
|
3893
3935
|
/**
|
|
3894
3936
|
* Performs an HTTP DELETE request
|
|
3895
3937
|
* @param url - The relative URL path to request (will be appended to baseUrl)
|
|
3896
3938
|
* @param headers - Optional HTTP headers to include in the request
|
|
3939
|
+
* @param overrides - Optional per-call overrides (timeout, caller AbortSignal)
|
|
3897
3940
|
* @returns Promise resolving to an ApiResponse with typed data
|
|
3898
3941
|
* @protected
|
|
3899
3942
|
*/
|
|
3900
|
-
protected httpDelete<T>(url: string, headers?: Record<string, string
|
|
3943
|
+
protected httpDelete<T>(url: string, headers?: Record<string, string>, overrides?: RequestOverrides): Promise<ApiResponse<T>>;
|
|
3901
3944
|
/**
|
|
3902
3945
|
* Performs an HTTP PATCH request
|
|
3903
3946
|
* @param url - The relative URL path to request (will be appended to baseUrl)
|
|
3904
3947
|
* @param data - Optional request body data (will be JSON stringified)
|
|
3905
3948
|
* @param headers - Optional HTTP headers to include in the request
|
|
3949
|
+
* @param overrides - Optional per-call overrides (timeout, caller AbortSignal)
|
|
3906
3950
|
* @returns Promise resolving to an ApiResponse with typed data
|
|
3907
3951
|
* @protected
|
|
3908
3952
|
*/
|
|
3909
|
-
protected httpPatch<T>(url: string, data?: any, headers?: Record<string, string
|
|
3953
|
+
protected httpPatch<T>(url: string, data?: any, headers?: Record<string, string>, overrides?: RequestOverrides): Promise<ApiResponse<T>>;
|
|
3910
3954
|
/**
|
|
3911
3955
|
* Performs one HTTP PATCH attempt (no client retry).
|
|
3912
3956
|
*
|
|
@@ -5457,7 +5501,7 @@ export declare class LuaMCPServer {
|
|
|
5457
5501
|
/**
|
|
5458
5502
|
* Union type for all MCP server configurations.
|
|
5459
5503
|
*
|
|
5460
|
-
* Note: stdio transport is not supported
|
|
5504
|
+
* Note: stdio transport is not supported.
|
|
5461
5505
|
* Use 'streamable-http' (recommended) or 'sse' (legacy) instead.
|
|
5462
5506
|
*/
|
|
5463
5507
|
export declare type LuaMCPServerConfig = MCPSSEServerConfig | MCPStreamableHttpServerConfig;
|
|
@@ -5926,15 +5970,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5926
5970
|
*/
|
|
5927
5971
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5928
5972
|
}, "strip", z.ZodTypeAny, {
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
options?: Record<string, unknown
|
|
5973
|
+
kind: "inference";
|
|
5974
|
+
model: string;
|
|
5975
|
+
voice?: string | undefined;
|
|
5976
|
+
options?: Record<string, unknown> | undefined;
|
|
5933
5977
|
}, {
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
options?: Record<string, unknown
|
|
5978
|
+
kind: "inference";
|
|
5979
|
+
model: string;
|
|
5980
|
+
voice?: string | undefined;
|
|
5981
|
+
options?: Record<string, unknown> | undefined;
|
|
5938
5982
|
}>, z.ZodObject<{
|
|
5939
5983
|
kind: z.ZodLiteral<"plugin">;
|
|
5940
5984
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -5947,15 +5991,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5947
5991
|
*/
|
|
5948
5992
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5949
5993
|
}, "strip", z.ZodTypeAny, {
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
options
|
|
5994
|
+
kind: "plugin";
|
|
5995
|
+
provider: "deepgram" | "elevenlabs";
|
|
5996
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
5997
|
+
options: Record<string, unknown>;
|
|
5954
5998
|
}, {
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
options
|
|
5999
|
+
kind: "plugin";
|
|
6000
|
+
provider: "deepgram" | "elevenlabs";
|
|
6001
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6002
|
+
options: Record<string, unknown>;
|
|
5959
6003
|
}>, z.ZodObject<{
|
|
5960
6004
|
kind: z.ZodLiteral<"realtime">;
|
|
5961
6005
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -5967,13 +6011,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5967
6011
|
*/
|
|
5968
6012
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
5969
6013
|
}, "strip", z.ZodTypeAny, {
|
|
5970
|
-
kind
|
|
5971
|
-
provider
|
|
5972
|
-
options
|
|
6014
|
+
kind: "realtime";
|
|
6015
|
+
provider: "openai" | "google" | "xai";
|
|
6016
|
+
options: Record<string, unknown>;
|
|
5973
6017
|
}, {
|
|
5974
|
-
kind
|
|
5975
|
-
provider
|
|
5976
|
-
options
|
|
6018
|
+
kind: "realtime";
|
|
6019
|
+
provider: "openai" | "google" | "xai";
|
|
6020
|
+
options: Record<string, unknown>;
|
|
5977
6021
|
}>]>;
|
|
5978
6022
|
stt: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
5979
6023
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -5992,15 +6036,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
5992
6036
|
*/
|
|
5993
6037
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
5994
6038
|
}, "strip", z.ZodTypeAny, {
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
options?: Record<string, unknown
|
|
6039
|
+
kind: "inference";
|
|
6040
|
+
model: string;
|
|
6041
|
+
voice?: string | undefined;
|
|
6042
|
+
options?: Record<string, unknown> | undefined;
|
|
5999
6043
|
}, {
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
options?: Record<string, unknown
|
|
6044
|
+
kind: "inference";
|
|
6045
|
+
model: string;
|
|
6046
|
+
voice?: string | undefined;
|
|
6047
|
+
options?: Record<string, unknown> | undefined;
|
|
6004
6048
|
}>, z.ZodObject<{
|
|
6005
6049
|
kind: z.ZodLiteral<"plugin">;
|
|
6006
6050
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -6013,15 +6057,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6013
6057
|
*/
|
|
6014
6058
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6015
6059
|
}, "strip", z.ZodTypeAny, {
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
options
|
|
6060
|
+
kind: "plugin";
|
|
6061
|
+
provider: "deepgram" | "elevenlabs";
|
|
6062
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6063
|
+
options: Record<string, unknown>;
|
|
6020
6064
|
}, {
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
options
|
|
6065
|
+
kind: "plugin";
|
|
6066
|
+
provider: "deepgram" | "elevenlabs";
|
|
6067
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6068
|
+
options: Record<string, unknown>;
|
|
6025
6069
|
}>, z.ZodObject<{
|
|
6026
6070
|
kind: z.ZodLiteral<"realtime">;
|
|
6027
6071
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -6033,13 +6077,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6033
6077
|
*/
|
|
6034
6078
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6035
6079
|
}, "strip", z.ZodTypeAny, {
|
|
6036
|
-
kind
|
|
6037
|
-
provider
|
|
6038
|
-
options
|
|
6080
|
+
kind: "realtime";
|
|
6081
|
+
provider: "openai" | "google" | "xai";
|
|
6082
|
+
options: Record<string, unknown>;
|
|
6039
6083
|
}, {
|
|
6040
|
-
kind
|
|
6041
|
-
provider
|
|
6042
|
-
options
|
|
6084
|
+
kind: "realtime";
|
|
6085
|
+
provider: "openai" | "google" | "xai";
|
|
6086
|
+
options: Record<string, unknown>;
|
|
6043
6087
|
}>]>>;
|
|
6044
6088
|
tts: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
6045
6089
|
kind: z.ZodLiteral<"inference">;
|
|
@@ -6058,15 +6102,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6058
6102
|
*/
|
|
6059
6103
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
6060
6104
|
}, "strip", z.ZodTypeAny, {
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
options?: Record<string, unknown
|
|
6105
|
+
kind: "inference";
|
|
6106
|
+
model: string;
|
|
6107
|
+
voice?: string | undefined;
|
|
6108
|
+
options?: Record<string, unknown> | undefined;
|
|
6065
6109
|
}, {
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
options?: Record<string, unknown
|
|
6110
|
+
kind: "inference";
|
|
6111
|
+
model: string;
|
|
6112
|
+
voice?: string | undefined;
|
|
6113
|
+
options?: Record<string, unknown> | undefined;
|
|
6070
6114
|
}>, z.ZodObject<{
|
|
6071
6115
|
kind: z.ZodLiteral<"plugin">;
|
|
6072
6116
|
provider: z.ZodEnum<["deepgram", "elevenlabs"]>;
|
|
@@ -6079,15 +6123,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6079
6123
|
*/
|
|
6080
6124
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6081
6125
|
}, "strip", z.ZodTypeAny, {
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
options
|
|
6126
|
+
kind: "plugin";
|
|
6127
|
+
provider: "deepgram" | "elevenlabs";
|
|
6128
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6129
|
+
options: Record<string, unknown>;
|
|
6086
6130
|
}, {
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
options
|
|
6131
|
+
kind: "plugin";
|
|
6132
|
+
provider: "deepgram" | "elevenlabs";
|
|
6133
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6134
|
+
options: Record<string, unknown>;
|
|
6091
6135
|
}>, z.ZodObject<{
|
|
6092
6136
|
kind: z.ZodLiteral<"realtime">;
|
|
6093
6137
|
provider: z.ZodEnum<["openai", "google", "xai"]>;
|
|
@@ -6099,13 +6143,13 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6099
6143
|
*/
|
|
6100
6144
|
options: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
6101
6145
|
}, "strip", z.ZodTypeAny, {
|
|
6102
|
-
kind
|
|
6103
|
-
provider
|
|
6104
|
-
options
|
|
6146
|
+
kind: "realtime";
|
|
6147
|
+
provider: "openai" | "google" | "xai";
|
|
6148
|
+
options: Record<string, unknown>;
|
|
6105
6149
|
}, {
|
|
6106
|
-
kind
|
|
6107
|
-
provider
|
|
6108
|
-
options
|
|
6150
|
+
kind: "realtime";
|
|
6151
|
+
provider: "openai" | "google" | "xai";
|
|
6152
|
+
options: Record<string, unknown>;
|
|
6109
6153
|
}>]>>;
|
|
6110
6154
|
vad: z.ZodOptional<z.ZodString>;
|
|
6111
6155
|
vadOptions: z.ZodOptional<z.ZodObject<{
|
|
@@ -6114,15 +6158,15 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6114
6158
|
prefixPaddingDuration: z.ZodOptional<z.ZodNumber>;
|
|
6115
6159
|
activationThreshold: z.ZodOptional<z.ZodNumber>;
|
|
6116
6160
|
}, "strict", z.ZodTypeAny, {
|
|
6117
|
-
minSpeechDuration?: number;
|
|
6118
|
-
minSilenceDuration?: number;
|
|
6119
|
-
prefixPaddingDuration?: number;
|
|
6120
|
-
activationThreshold?: number;
|
|
6161
|
+
minSpeechDuration?: number | undefined;
|
|
6162
|
+
minSilenceDuration?: number | undefined;
|
|
6163
|
+
prefixPaddingDuration?: number | undefined;
|
|
6164
|
+
activationThreshold?: number | undefined;
|
|
6121
6165
|
}, {
|
|
6122
|
-
minSpeechDuration?: number;
|
|
6123
|
-
minSilenceDuration?: number;
|
|
6124
|
-
prefixPaddingDuration?: number;
|
|
6125
|
-
activationThreshold?: number;
|
|
6166
|
+
minSpeechDuration?: number | undefined;
|
|
6167
|
+
minSilenceDuration?: number | undefined;
|
|
6168
|
+
prefixPaddingDuration?: number | undefined;
|
|
6169
|
+
activationThreshold?: number | undefined;
|
|
6126
6170
|
}>>;
|
|
6127
6171
|
turnDetection: z.ZodOptional<z.ZodEnum<["multilingual", "english", "vad", "stt", "manual"]>>;
|
|
6128
6172
|
greeting: z.ZodOptional<z.ZodString>;
|
|
@@ -6137,33 +6181,33 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6137
6181
|
minDelay: z.ZodOptional<z.ZodNumber>;
|
|
6138
6182
|
maxDelay: z.ZodOptional<z.ZodNumber>;
|
|
6139
6183
|
}, "strip", z.ZodTypeAny, {
|
|
6140
|
-
enabled?: boolean;
|
|
6141
|
-
mode?: "adaptive" | "vad";
|
|
6142
|
-
falseInterruptionTimeout?: number;
|
|
6143
|
-
resumeFalseInterruption?: boolean;
|
|
6144
|
-
minDelay?: number;
|
|
6145
|
-
maxDelay?: number;
|
|
6184
|
+
enabled?: boolean | undefined;
|
|
6185
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6186
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6187
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6188
|
+
minDelay?: number | undefined;
|
|
6189
|
+
maxDelay?: number | undefined;
|
|
6146
6190
|
}, {
|
|
6147
|
-
enabled?: boolean;
|
|
6148
|
-
mode?: "adaptive" | "vad";
|
|
6149
|
-
falseInterruptionTimeout?: number;
|
|
6150
|
-
resumeFalseInterruption?: boolean;
|
|
6151
|
-
minDelay?: number;
|
|
6152
|
-
maxDelay?: number;
|
|
6191
|
+
enabled?: boolean | undefined;
|
|
6192
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6193
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6194
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6195
|
+
minDelay?: number | undefined;
|
|
6196
|
+
maxDelay?: number | undefined;
|
|
6153
6197
|
}>, {
|
|
6154
|
-
enabled?: boolean;
|
|
6155
|
-
mode?: "adaptive" | "vad";
|
|
6156
|
-
falseInterruptionTimeout?: number;
|
|
6157
|
-
resumeFalseInterruption?: boolean;
|
|
6158
|
-
minDelay?: number;
|
|
6159
|
-
maxDelay?: number;
|
|
6198
|
+
enabled?: boolean | undefined;
|
|
6199
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6200
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6201
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6202
|
+
minDelay?: number | undefined;
|
|
6203
|
+
maxDelay?: number | undefined;
|
|
6160
6204
|
}, {
|
|
6161
|
-
enabled?: boolean;
|
|
6162
|
-
mode?: "adaptive" | "vad";
|
|
6163
|
-
falseInterruptionTimeout?: number;
|
|
6164
|
-
resumeFalseInterruption?: boolean;
|
|
6165
|
-
minDelay?: number;
|
|
6166
|
-
maxDelay?: number;
|
|
6205
|
+
enabled?: boolean | undefined;
|
|
6206
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6207
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6208
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6209
|
+
minDelay?: number | undefined;
|
|
6210
|
+
maxDelay?: number | undefined;
|
|
6167
6211
|
}>>;
|
|
6168
6212
|
sttLanguage: z.ZodOptional<z.ZodString>;
|
|
6169
6213
|
krispEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -6173,89 +6217,89 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6173
6217
|
volume: z.ZodOptional<z.ZodNumber>;
|
|
6174
6218
|
probability: z.ZodOptional<z.ZodNumber>;
|
|
6175
6219
|
}, "strip", z.ZodTypeAny, {
|
|
6176
|
-
source
|
|
6177
|
-
volume?: number;
|
|
6178
|
-
probability?: number;
|
|
6220
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6221
|
+
volume?: number | undefined;
|
|
6222
|
+
probability?: number | undefined;
|
|
6179
6223
|
}, {
|
|
6180
|
-
source
|
|
6181
|
-
volume?: number;
|
|
6182
|
-
probability?: number;
|
|
6224
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6225
|
+
volume?: number | undefined;
|
|
6226
|
+
probability?: number | undefined;
|
|
6183
6227
|
}>, z.ZodArray<z.ZodObject<{
|
|
6184
6228
|
source: z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>;
|
|
6185
6229
|
volume: z.ZodOptional<z.ZodNumber>;
|
|
6186
6230
|
probability: z.ZodOptional<z.ZodNumber>;
|
|
6187
6231
|
}, "strip", z.ZodTypeAny, {
|
|
6188
|
-
source
|
|
6189
|
-
volume?: number;
|
|
6190
|
-
probability?: number;
|
|
6232
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6233
|
+
volume?: number | undefined;
|
|
6234
|
+
probability?: number | undefined;
|
|
6191
6235
|
}, {
|
|
6192
|
-
source
|
|
6193
|
-
volume?: number;
|
|
6194
|
-
probability?: number;
|
|
6236
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6237
|
+
volume?: number | undefined;
|
|
6238
|
+
probability?: number | undefined;
|
|
6195
6239
|
}>, "many">]>>;
|
|
6196
6240
|
thinking: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>, z.ZodObject<{
|
|
6197
6241
|
source: z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>;
|
|
6198
6242
|
volume: z.ZodOptional<z.ZodNumber>;
|
|
6199
6243
|
probability: z.ZodOptional<z.ZodNumber>;
|
|
6200
6244
|
}, "strip", z.ZodTypeAny, {
|
|
6201
|
-
source
|
|
6202
|
-
volume?: number;
|
|
6203
|
-
probability?: number;
|
|
6245
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6246
|
+
volume?: number | undefined;
|
|
6247
|
+
probability?: number | undefined;
|
|
6204
6248
|
}, {
|
|
6205
|
-
source
|
|
6206
|
-
volume?: number;
|
|
6207
|
-
probability?: number;
|
|
6249
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6250
|
+
volume?: number | undefined;
|
|
6251
|
+
probability?: number | undefined;
|
|
6208
6252
|
}>, z.ZodArray<z.ZodObject<{
|
|
6209
6253
|
source: z.ZodEnum<["office-ambience", "keyboard-typing", "keyboard-typing-2"]>;
|
|
6210
6254
|
volume: z.ZodOptional<z.ZodNumber>;
|
|
6211
6255
|
probability: z.ZodOptional<z.ZodNumber>;
|
|
6212
6256
|
}, "strip", z.ZodTypeAny, {
|
|
6213
|
-
source
|
|
6214
|
-
volume?: number;
|
|
6215
|
-
probability?: number;
|
|
6257
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6258
|
+
volume?: number | undefined;
|
|
6259
|
+
probability?: number | undefined;
|
|
6216
6260
|
}, {
|
|
6217
|
-
source
|
|
6218
|
-
volume?: number;
|
|
6219
|
-
probability?: number;
|
|
6261
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6262
|
+
volume?: number | undefined;
|
|
6263
|
+
probability?: number | undefined;
|
|
6220
6264
|
}>, "many">]>>;
|
|
6221
6265
|
}, "strip", z.ZodTypeAny, {
|
|
6222
6266
|
ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6223
|
-
source
|
|
6224
|
-
volume?: number;
|
|
6225
|
-
probability?: number;
|
|
6267
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6268
|
+
volume?: number | undefined;
|
|
6269
|
+
probability?: number | undefined;
|
|
6226
6270
|
} | {
|
|
6227
|
-
source
|
|
6228
|
-
volume?: number;
|
|
6229
|
-
probability?: number;
|
|
6230
|
-
}[];
|
|
6271
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6272
|
+
volume?: number | undefined;
|
|
6273
|
+
probability?: number | undefined;
|
|
6274
|
+
}[] | undefined;
|
|
6231
6275
|
thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6232
|
-
source
|
|
6233
|
-
volume?: number;
|
|
6234
|
-
probability?: number;
|
|
6276
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6277
|
+
volume?: number | undefined;
|
|
6278
|
+
probability?: number | undefined;
|
|
6235
6279
|
} | {
|
|
6236
|
-
source
|
|
6237
|
-
volume?: number;
|
|
6238
|
-
probability?: number;
|
|
6239
|
-
}[];
|
|
6280
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6281
|
+
volume?: number | undefined;
|
|
6282
|
+
probability?: number | undefined;
|
|
6283
|
+
}[] | undefined;
|
|
6240
6284
|
}, {
|
|
6241
6285
|
ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6242
|
-
source
|
|
6243
|
-
volume?: number;
|
|
6244
|
-
probability?: number;
|
|
6286
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6287
|
+
volume?: number | undefined;
|
|
6288
|
+
probability?: number | undefined;
|
|
6245
6289
|
} | {
|
|
6246
|
-
source
|
|
6247
|
-
volume?: number;
|
|
6248
|
-
probability?: number;
|
|
6249
|
-
}[];
|
|
6290
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6291
|
+
volume?: number | undefined;
|
|
6292
|
+
probability?: number | undefined;
|
|
6293
|
+
}[] | undefined;
|
|
6250
6294
|
thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6251
|
-
source
|
|
6252
|
-
volume?: number;
|
|
6253
|
-
probability?: number;
|
|
6295
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6296
|
+
volume?: number | undefined;
|
|
6297
|
+
probability?: number | undefined;
|
|
6254
6298
|
} | {
|
|
6255
|
-
source
|
|
6256
|
-
volume?: number;
|
|
6257
|
-
probability?: number;
|
|
6258
|
-
}[];
|
|
6299
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6300
|
+
volume?: number | undefined;
|
|
6301
|
+
probability?: number | undefined;
|
|
6302
|
+
}[] | undefined;
|
|
6259
6303
|
}>>;
|
|
6260
6304
|
volume: z.ZodOptional<z.ZodNumber>;
|
|
6261
6305
|
pronunciations: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -6263,381 +6307,381 @@ declare const LuaVoiceConfigSchema: z.ZodEffects<z.ZodObject<{
|
|
|
6263
6307
|
onToolFailureSay: z.ZodOptional<z.ZodString>;
|
|
6264
6308
|
excludeTools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6265
6309
|
}, "strip", z.ZodTypeAny, {
|
|
6266
|
-
|
|
6267
|
-
|
|
6268
|
-
|
|
6269
|
-
voice?: string;
|
|
6270
|
-
|
|
6271
|
-
model?: string;
|
|
6272
|
-
options?: Record<string, unknown>;
|
|
6310
|
+
llm: {
|
|
6311
|
+
kind: "inference";
|
|
6312
|
+
model: string;
|
|
6313
|
+
voice?: string | undefined;
|
|
6314
|
+
options?: Record<string, unknown> | undefined;
|
|
6273
6315
|
} | {
|
|
6274
|
-
|
|
6275
|
-
|
|
6276
|
-
|
|
6277
|
-
options
|
|
6316
|
+
kind: "plugin";
|
|
6317
|
+
provider: "deepgram" | "elevenlabs";
|
|
6318
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6319
|
+
options: Record<string, unknown>;
|
|
6278
6320
|
} | {
|
|
6279
|
-
kind
|
|
6280
|
-
provider
|
|
6281
|
-
options
|
|
6321
|
+
kind: "realtime";
|
|
6322
|
+
provider: "openai" | "google" | "xai";
|
|
6323
|
+
options: Record<string, unknown>;
|
|
6282
6324
|
};
|
|
6283
|
-
|
|
6284
|
-
|
|
6285
|
-
|
|
6286
|
-
kind
|
|
6287
|
-
model
|
|
6288
|
-
|
|
6325
|
+
name?: string | undefined;
|
|
6326
|
+
vad?: string | undefined;
|
|
6327
|
+
stt?: {
|
|
6328
|
+
kind: "inference";
|
|
6329
|
+
model: string;
|
|
6330
|
+
voice?: string | undefined;
|
|
6331
|
+
options?: Record<string, unknown> | undefined;
|
|
6289
6332
|
} | {
|
|
6290
|
-
|
|
6291
|
-
|
|
6292
|
-
|
|
6293
|
-
options
|
|
6333
|
+
kind: "plugin";
|
|
6334
|
+
provider: "deepgram" | "elevenlabs";
|
|
6335
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6336
|
+
options: Record<string, unknown>;
|
|
6294
6337
|
} | {
|
|
6295
|
-
kind
|
|
6296
|
-
provider
|
|
6297
|
-
options
|
|
6298
|
-
};
|
|
6338
|
+
kind: "realtime";
|
|
6339
|
+
provider: "openai" | "google" | "xai";
|
|
6340
|
+
options: Record<string, unknown>;
|
|
6341
|
+
} | undefined;
|
|
6342
|
+
volume?: number | undefined;
|
|
6299
6343
|
tts?: {
|
|
6300
|
-
|
|
6301
|
-
|
|
6302
|
-
|
|
6303
|
-
options?: Record<string, unknown
|
|
6344
|
+
kind: "inference";
|
|
6345
|
+
model: string;
|
|
6346
|
+
voice?: string | undefined;
|
|
6347
|
+
options?: Record<string, unknown> | undefined;
|
|
6304
6348
|
} | {
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
options
|
|
6349
|
+
kind: "plugin";
|
|
6350
|
+
provider: "deepgram" | "elevenlabs";
|
|
6351
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6352
|
+
options: Record<string, unknown>;
|
|
6309
6353
|
} | {
|
|
6310
|
-
kind
|
|
6311
|
-
provider
|
|
6312
|
-
options
|
|
6313
|
-
};
|
|
6354
|
+
kind: "realtime";
|
|
6355
|
+
provider: "openai" | "google" | "xai";
|
|
6356
|
+
options: Record<string, unknown>;
|
|
6357
|
+
} | undefined;
|
|
6314
6358
|
vadOptions?: {
|
|
6315
|
-
minSpeechDuration?: number;
|
|
6316
|
-
minSilenceDuration?: number;
|
|
6317
|
-
prefixPaddingDuration?: number;
|
|
6318
|
-
activationThreshold?: number;
|
|
6319
|
-
};
|
|
6320
|
-
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt";
|
|
6321
|
-
greeting?: string;
|
|
6322
|
-
maxToolSteps?: number;
|
|
6323
|
-
userAwayTimeout?: number;
|
|
6324
|
-
preemptiveGeneration?: boolean;
|
|
6359
|
+
minSpeechDuration?: number | undefined;
|
|
6360
|
+
minSilenceDuration?: number | undefined;
|
|
6361
|
+
prefixPaddingDuration?: number | undefined;
|
|
6362
|
+
activationThreshold?: number | undefined;
|
|
6363
|
+
} | undefined;
|
|
6364
|
+
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt" | undefined;
|
|
6365
|
+
greeting?: string | undefined;
|
|
6366
|
+
maxToolSteps?: number | undefined;
|
|
6367
|
+
userAwayTimeout?: number | undefined;
|
|
6368
|
+
preemptiveGeneration?: boolean | undefined;
|
|
6325
6369
|
interruption?: {
|
|
6326
|
-
enabled?: boolean;
|
|
6327
|
-
mode?: "adaptive" | "vad";
|
|
6328
|
-
falseInterruptionTimeout?: number;
|
|
6329
|
-
resumeFalseInterruption?: boolean;
|
|
6330
|
-
minDelay?: number;
|
|
6331
|
-
maxDelay?: number;
|
|
6332
|
-
};
|
|
6333
|
-
sttLanguage?: string;
|
|
6334
|
-
krispEnabled?: boolean;
|
|
6370
|
+
enabled?: boolean | undefined;
|
|
6371
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6372
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6373
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6374
|
+
minDelay?: number | undefined;
|
|
6375
|
+
maxDelay?: number | undefined;
|
|
6376
|
+
} | undefined;
|
|
6377
|
+
sttLanguage?: string | undefined;
|
|
6378
|
+
krispEnabled?: boolean | undefined;
|
|
6335
6379
|
backgroundAudio?: {
|
|
6336
6380
|
ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6337
|
-
source
|
|
6338
|
-
volume?: number;
|
|
6339
|
-
probability?: number;
|
|
6381
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6382
|
+
volume?: number | undefined;
|
|
6383
|
+
probability?: number | undefined;
|
|
6340
6384
|
} | {
|
|
6341
|
-
source
|
|
6342
|
-
volume?: number;
|
|
6343
|
-
probability?: number;
|
|
6344
|
-
}[];
|
|
6385
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6386
|
+
volume?: number | undefined;
|
|
6387
|
+
probability?: number | undefined;
|
|
6388
|
+
}[] | undefined;
|
|
6345
6389
|
thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6346
|
-
source
|
|
6347
|
-
volume?: number;
|
|
6348
|
-
probability?: number;
|
|
6390
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6391
|
+
volume?: number | undefined;
|
|
6392
|
+
probability?: number | undefined;
|
|
6349
6393
|
} | {
|
|
6350
|
-
source
|
|
6351
|
-
volume?: number;
|
|
6352
|
-
probability?: number;
|
|
6353
|
-
}[];
|
|
6354
|
-
};
|
|
6355
|
-
pronunciations?: Record<string, string
|
|
6356
|
-
persistTranscript?: boolean;
|
|
6357
|
-
onToolFailureSay?: string;
|
|
6358
|
-
excludeTools?: string[];
|
|
6394
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6395
|
+
volume?: number | undefined;
|
|
6396
|
+
probability?: number | undefined;
|
|
6397
|
+
}[] | undefined;
|
|
6398
|
+
} | undefined;
|
|
6399
|
+
pronunciations?: Record<string, string> | undefined;
|
|
6400
|
+
persistTranscript?: boolean | undefined;
|
|
6401
|
+
onToolFailureSay?: string | undefined;
|
|
6402
|
+
excludeTools?: string[] | undefined;
|
|
6359
6403
|
}, {
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
voice?: string;
|
|
6364
|
-
|
|
6365
|
-
model?: string;
|
|
6366
|
-
options?: Record<string, unknown>;
|
|
6404
|
+
llm: {
|
|
6405
|
+
kind: "inference";
|
|
6406
|
+
model: string;
|
|
6407
|
+
voice?: string | undefined;
|
|
6408
|
+
options?: Record<string, unknown> | undefined;
|
|
6367
6409
|
} | {
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
options
|
|
6410
|
+
kind: "plugin";
|
|
6411
|
+
provider: "deepgram" | "elevenlabs";
|
|
6412
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6413
|
+
options: Record<string, unknown>;
|
|
6372
6414
|
} | {
|
|
6373
|
-
kind
|
|
6374
|
-
provider
|
|
6375
|
-
options
|
|
6415
|
+
kind: "realtime";
|
|
6416
|
+
provider: "openai" | "google" | "xai";
|
|
6417
|
+
options: Record<string, unknown>;
|
|
6376
6418
|
};
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
kind
|
|
6381
|
-
model
|
|
6382
|
-
|
|
6419
|
+
name?: string | undefined;
|
|
6420
|
+
vad?: string | undefined;
|
|
6421
|
+
stt?: {
|
|
6422
|
+
kind: "inference";
|
|
6423
|
+
model: string;
|
|
6424
|
+
voice?: string | undefined;
|
|
6425
|
+
options?: Record<string, unknown> | undefined;
|
|
6383
6426
|
} | {
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
options
|
|
6427
|
+
kind: "plugin";
|
|
6428
|
+
provider: "deepgram" | "elevenlabs";
|
|
6429
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6430
|
+
options: Record<string, unknown>;
|
|
6388
6431
|
} | {
|
|
6389
|
-
kind
|
|
6390
|
-
provider
|
|
6391
|
-
options
|
|
6392
|
-
};
|
|
6432
|
+
kind: "realtime";
|
|
6433
|
+
provider: "openai" | "google" | "xai";
|
|
6434
|
+
options: Record<string, unknown>;
|
|
6435
|
+
} | undefined;
|
|
6436
|
+
volume?: number | undefined;
|
|
6393
6437
|
tts?: {
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
|
|
6397
|
-
options?: Record<string, unknown
|
|
6438
|
+
kind: "inference";
|
|
6439
|
+
model: string;
|
|
6440
|
+
voice?: string | undefined;
|
|
6441
|
+
options?: Record<string, unknown> | undefined;
|
|
6398
6442
|
} | {
|
|
6399
|
-
|
|
6400
|
-
|
|
6401
|
-
|
|
6402
|
-
options
|
|
6443
|
+
kind: "plugin";
|
|
6444
|
+
provider: "deepgram" | "elevenlabs";
|
|
6445
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6446
|
+
options: Record<string, unknown>;
|
|
6403
6447
|
} | {
|
|
6404
|
-
kind
|
|
6405
|
-
provider
|
|
6406
|
-
options
|
|
6407
|
-
};
|
|
6448
|
+
kind: "realtime";
|
|
6449
|
+
provider: "openai" | "google" | "xai";
|
|
6450
|
+
options: Record<string, unknown>;
|
|
6451
|
+
} | undefined;
|
|
6408
6452
|
vadOptions?: {
|
|
6409
|
-
minSpeechDuration?: number;
|
|
6410
|
-
minSilenceDuration?: number;
|
|
6411
|
-
prefixPaddingDuration?: number;
|
|
6412
|
-
activationThreshold?: number;
|
|
6413
|
-
};
|
|
6414
|
-
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt";
|
|
6415
|
-
greeting?: string;
|
|
6416
|
-
maxToolSteps?: number;
|
|
6417
|
-
userAwayTimeout?: number;
|
|
6418
|
-
preemptiveGeneration?: boolean;
|
|
6453
|
+
minSpeechDuration?: number | undefined;
|
|
6454
|
+
minSilenceDuration?: number | undefined;
|
|
6455
|
+
prefixPaddingDuration?: number | undefined;
|
|
6456
|
+
activationThreshold?: number | undefined;
|
|
6457
|
+
} | undefined;
|
|
6458
|
+
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt" | undefined;
|
|
6459
|
+
greeting?: string | undefined;
|
|
6460
|
+
maxToolSteps?: number | undefined;
|
|
6461
|
+
userAwayTimeout?: number | undefined;
|
|
6462
|
+
preemptiveGeneration?: boolean | undefined;
|
|
6419
6463
|
interruption?: {
|
|
6420
|
-
enabled?: boolean;
|
|
6421
|
-
mode?: "adaptive" | "vad";
|
|
6422
|
-
falseInterruptionTimeout?: number;
|
|
6423
|
-
resumeFalseInterruption?: boolean;
|
|
6424
|
-
minDelay?: number;
|
|
6425
|
-
maxDelay?: number;
|
|
6426
|
-
};
|
|
6427
|
-
sttLanguage?: string;
|
|
6428
|
-
krispEnabled?: boolean;
|
|
6464
|
+
enabled?: boolean | undefined;
|
|
6465
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6466
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6467
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6468
|
+
minDelay?: number | undefined;
|
|
6469
|
+
maxDelay?: number | undefined;
|
|
6470
|
+
} | undefined;
|
|
6471
|
+
sttLanguage?: string | undefined;
|
|
6472
|
+
krispEnabled?: boolean | undefined;
|
|
6429
6473
|
backgroundAudio?: {
|
|
6430
6474
|
ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6431
|
-
source
|
|
6432
|
-
volume?: number;
|
|
6433
|
-
probability?: number;
|
|
6475
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6476
|
+
volume?: number | undefined;
|
|
6477
|
+
probability?: number | undefined;
|
|
6434
6478
|
} | {
|
|
6435
|
-
source
|
|
6436
|
-
volume?: number;
|
|
6437
|
-
probability?: number;
|
|
6438
|
-
}[];
|
|
6479
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6480
|
+
volume?: number | undefined;
|
|
6481
|
+
probability?: number | undefined;
|
|
6482
|
+
}[] | undefined;
|
|
6439
6483
|
thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6440
|
-
source
|
|
6441
|
-
volume?: number;
|
|
6442
|
-
probability?: number;
|
|
6484
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6485
|
+
volume?: number | undefined;
|
|
6486
|
+
probability?: number | undefined;
|
|
6443
6487
|
} | {
|
|
6444
|
-
source
|
|
6445
|
-
volume?: number;
|
|
6446
|
-
probability?: number;
|
|
6447
|
-
}[];
|
|
6448
|
-
};
|
|
6449
|
-
pronunciations?: Record<string, string
|
|
6450
|
-
persistTranscript?: boolean;
|
|
6451
|
-
onToolFailureSay?: string;
|
|
6452
|
-
excludeTools?: string[];
|
|
6488
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6489
|
+
volume?: number | undefined;
|
|
6490
|
+
probability?: number | undefined;
|
|
6491
|
+
}[] | undefined;
|
|
6492
|
+
} | undefined;
|
|
6493
|
+
pronunciations?: Record<string, string> | undefined;
|
|
6494
|
+
persistTranscript?: boolean | undefined;
|
|
6495
|
+
onToolFailureSay?: string | undefined;
|
|
6496
|
+
excludeTools?: string[] | undefined;
|
|
6453
6497
|
}>, {
|
|
6454
|
-
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
voice?: string;
|
|
6458
|
-
|
|
6459
|
-
model?: string;
|
|
6460
|
-
options?: Record<string, unknown>;
|
|
6498
|
+
llm: {
|
|
6499
|
+
kind: "inference";
|
|
6500
|
+
model: string;
|
|
6501
|
+
voice?: string | undefined;
|
|
6502
|
+
options?: Record<string, unknown> | undefined;
|
|
6461
6503
|
} | {
|
|
6462
|
-
|
|
6463
|
-
|
|
6464
|
-
|
|
6465
|
-
options
|
|
6504
|
+
kind: "plugin";
|
|
6505
|
+
provider: "deepgram" | "elevenlabs";
|
|
6506
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6507
|
+
options: Record<string, unknown>;
|
|
6466
6508
|
} | {
|
|
6467
|
-
kind
|
|
6468
|
-
provider
|
|
6469
|
-
options
|
|
6509
|
+
kind: "realtime";
|
|
6510
|
+
provider: "openai" | "google" | "xai";
|
|
6511
|
+
options: Record<string, unknown>;
|
|
6470
6512
|
};
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6474
|
-
kind
|
|
6475
|
-
model
|
|
6476
|
-
|
|
6513
|
+
name?: string | undefined;
|
|
6514
|
+
vad?: string | undefined;
|
|
6515
|
+
stt?: {
|
|
6516
|
+
kind: "inference";
|
|
6517
|
+
model: string;
|
|
6518
|
+
voice?: string | undefined;
|
|
6519
|
+
options?: Record<string, unknown> | undefined;
|
|
6477
6520
|
} | {
|
|
6478
|
-
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
options
|
|
6521
|
+
kind: "plugin";
|
|
6522
|
+
provider: "deepgram" | "elevenlabs";
|
|
6523
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6524
|
+
options: Record<string, unknown>;
|
|
6482
6525
|
} | {
|
|
6483
|
-
kind
|
|
6484
|
-
provider
|
|
6485
|
-
options
|
|
6486
|
-
};
|
|
6526
|
+
kind: "realtime";
|
|
6527
|
+
provider: "openai" | "google" | "xai";
|
|
6528
|
+
options: Record<string, unknown>;
|
|
6529
|
+
} | undefined;
|
|
6530
|
+
volume?: number | undefined;
|
|
6487
6531
|
tts?: {
|
|
6488
|
-
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
options?: Record<string, unknown
|
|
6532
|
+
kind: "inference";
|
|
6533
|
+
model: string;
|
|
6534
|
+
voice?: string | undefined;
|
|
6535
|
+
options?: Record<string, unknown> | undefined;
|
|
6492
6536
|
} | {
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
options
|
|
6537
|
+
kind: "plugin";
|
|
6538
|
+
provider: "deepgram" | "elevenlabs";
|
|
6539
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6540
|
+
options: Record<string, unknown>;
|
|
6497
6541
|
} | {
|
|
6498
|
-
kind
|
|
6499
|
-
provider
|
|
6500
|
-
options
|
|
6501
|
-
};
|
|
6542
|
+
kind: "realtime";
|
|
6543
|
+
provider: "openai" | "google" | "xai";
|
|
6544
|
+
options: Record<string, unknown>;
|
|
6545
|
+
} | undefined;
|
|
6502
6546
|
vadOptions?: {
|
|
6503
|
-
minSpeechDuration?: number;
|
|
6504
|
-
minSilenceDuration?: number;
|
|
6505
|
-
prefixPaddingDuration?: number;
|
|
6506
|
-
activationThreshold?: number;
|
|
6507
|
-
};
|
|
6508
|
-
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt";
|
|
6509
|
-
greeting?: string;
|
|
6510
|
-
maxToolSteps?: number;
|
|
6511
|
-
userAwayTimeout?: number;
|
|
6512
|
-
preemptiveGeneration?: boolean;
|
|
6547
|
+
minSpeechDuration?: number | undefined;
|
|
6548
|
+
minSilenceDuration?: number | undefined;
|
|
6549
|
+
prefixPaddingDuration?: number | undefined;
|
|
6550
|
+
activationThreshold?: number | undefined;
|
|
6551
|
+
} | undefined;
|
|
6552
|
+
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt" | undefined;
|
|
6553
|
+
greeting?: string | undefined;
|
|
6554
|
+
maxToolSteps?: number | undefined;
|
|
6555
|
+
userAwayTimeout?: number | undefined;
|
|
6556
|
+
preemptiveGeneration?: boolean | undefined;
|
|
6513
6557
|
interruption?: {
|
|
6514
|
-
enabled?: boolean;
|
|
6515
|
-
mode?: "adaptive" | "vad";
|
|
6516
|
-
falseInterruptionTimeout?: number;
|
|
6517
|
-
resumeFalseInterruption?: boolean;
|
|
6518
|
-
minDelay?: number;
|
|
6519
|
-
maxDelay?: number;
|
|
6520
|
-
};
|
|
6521
|
-
sttLanguage?: string;
|
|
6522
|
-
krispEnabled?: boolean;
|
|
6558
|
+
enabled?: boolean | undefined;
|
|
6559
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6560
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6561
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6562
|
+
minDelay?: number | undefined;
|
|
6563
|
+
maxDelay?: number | undefined;
|
|
6564
|
+
} | undefined;
|
|
6565
|
+
sttLanguage?: string | undefined;
|
|
6566
|
+
krispEnabled?: boolean | undefined;
|
|
6523
6567
|
backgroundAudio?: {
|
|
6524
6568
|
ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6525
|
-
source
|
|
6526
|
-
volume?: number;
|
|
6527
|
-
probability?: number;
|
|
6569
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6570
|
+
volume?: number | undefined;
|
|
6571
|
+
probability?: number | undefined;
|
|
6528
6572
|
} | {
|
|
6529
|
-
source
|
|
6530
|
-
volume?: number;
|
|
6531
|
-
probability?: number;
|
|
6532
|
-
}[];
|
|
6573
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6574
|
+
volume?: number | undefined;
|
|
6575
|
+
probability?: number | undefined;
|
|
6576
|
+
}[] | undefined;
|
|
6533
6577
|
thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6534
|
-
source
|
|
6535
|
-
volume?: number;
|
|
6536
|
-
probability?: number;
|
|
6578
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6579
|
+
volume?: number | undefined;
|
|
6580
|
+
probability?: number | undefined;
|
|
6537
6581
|
} | {
|
|
6538
|
-
source
|
|
6539
|
-
volume?: number;
|
|
6540
|
-
probability?: number;
|
|
6541
|
-
}[];
|
|
6542
|
-
};
|
|
6543
|
-
pronunciations?: Record<string, string
|
|
6544
|
-
persistTranscript?: boolean;
|
|
6545
|
-
onToolFailureSay?: string;
|
|
6546
|
-
excludeTools?: string[];
|
|
6582
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6583
|
+
volume?: number | undefined;
|
|
6584
|
+
probability?: number | undefined;
|
|
6585
|
+
}[] | undefined;
|
|
6586
|
+
} | undefined;
|
|
6587
|
+
pronunciations?: Record<string, string> | undefined;
|
|
6588
|
+
persistTranscript?: boolean | undefined;
|
|
6589
|
+
onToolFailureSay?: string | undefined;
|
|
6590
|
+
excludeTools?: string[] | undefined;
|
|
6547
6591
|
}, {
|
|
6548
|
-
|
|
6549
|
-
|
|
6550
|
-
|
|
6551
|
-
voice?: string;
|
|
6552
|
-
|
|
6553
|
-
model?: string;
|
|
6554
|
-
options?: Record<string, unknown>;
|
|
6592
|
+
llm: {
|
|
6593
|
+
kind: "inference";
|
|
6594
|
+
model: string;
|
|
6595
|
+
voice?: string | undefined;
|
|
6596
|
+
options?: Record<string, unknown> | undefined;
|
|
6555
6597
|
} | {
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
options
|
|
6598
|
+
kind: "plugin";
|
|
6599
|
+
provider: "deepgram" | "elevenlabs";
|
|
6600
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6601
|
+
options: Record<string, unknown>;
|
|
6560
6602
|
} | {
|
|
6561
|
-
kind
|
|
6562
|
-
provider
|
|
6563
|
-
options
|
|
6603
|
+
kind: "realtime";
|
|
6604
|
+
provider: "openai" | "google" | "xai";
|
|
6605
|
+
options: Record<string, unknown>;
|
|
6564
6606
|
};
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
kind
|
|
6569
|
-
model
|
|
6570
|
-
|
|
6607
|
+
name?: string | undefined;
|
|
6608
|
+
vad?: string | undefined;
|
|
6609
|
+
stt?: {
|
|
6610
|
+
kind: "inference";
|
|
6611
|
+
model: string;
|
|
6612
|
+
voice?: string | undefined;
|
|
6613
|
+
options?: Record<string, unknown> | undefined;
|
|
6571
6614
|
} | {
|
|
6572
|
-
|
|
6573
|
-
|
|
6574
|
-
|
|
6575
|
-
options
|
|
6615
|
+
kind: "plugin";
|
|
6616
|
+
provider: "deepgram" | "elevenlabs";
|
|
6617
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6618
|
+
options: Record<string, unknown>;
|
|
6576
6619
|
} | {
|
|
6577
|
-
kind
|
|
6578
|
-
provider
|
|
6579
|
-
options
|
|
6580
|
-
};
|
|
6620
|
+
kind: "realtime";
|
|
6621
|
+
provider: "openai" | "google" | "xai";
|
|
6622
|
+
options: Record<string, unknown>;
|
|
6623
|
+
} | undefined;
|
|
6624
|
+
volume?: number | undefined;
|
|
6581
6625
|
tts?: {
|
|
6582
|
-
|
|
6583
|
-
|
|
6584
|
-
|
|
6585
|
-
options?: Record<string, unknown
|
|
6626
|
+
kind: "inference";
|
|
6627
|
+
model: string;
|
|
6628
|
+
voice?: string | undefined;
|
|
6629
|
+
options?: Record<string, unknown> | undefined;
|
|
6586
6630
|
} | {
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
options
|
|
6631
|
+
kind: "plugin";
|
|
6632
|
+
provider: "deepgram" | "elevenlabs";
|
|
6633
|
+
class: "LLM" | "STT" | "STTv2" | "TTS";
|
|
6634
|
+
options: Record<string, unknown>;
|
|
6591
6635
|
} | {
|
|
6592
|
-
kind
|
|
6593
|
-
provider
|
|
6594
|
-
options
|
|
6595
|
-
};
|
|
6636
|
+
kind: "realtime";
|
|
6637
|
+
provider: "openai" | "google" | "xai";
|
|
6638
|
+
options: Record<string, unknown>;
|
|
6639
|
+
} | undefined;
|
|
6596
6640
|
vadOptions?: {
|
|
6597
|
-
minSpeechDuration?: number;
|
|
6598
|
-
minSilenceDuration?: number;
|
|
6599
|
-
prefixPaddingDuration?: number;
|
|
6600
|
-
activationThreshold?: number;
|
|
6601
|
-
};
|
|
6602
|
-
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt";
|
|
6603
|
-
greeting?: string;
|
|
6604
|
-
maxToolSteps?: number;
|
|
6605
|
-
userAwayTimeout?: number;
|
|
6606
|
-
preemptiveGeneration?: boolean;
|
|
6641
|
+
minSpeechDuration?: number | undefined;
|
|
6642
|
+
minSilenceDuration?: number | undefined;
|
|
6643
|
+
prefixPaddingDuration?: number | undefined;
|
|
6644
|
+
activationThreshold?: number | undefined;
|
|
6645
|
+
} | undefined;
|
|
6646
|
+
turnDetection?: "manual" | "multilingual" | "english" | "vad" | "stt" | undefined;
|
|
6647
|
+
greeting?: string | undefined;
|
|
6648
|
+
maxToolSteps?: number | undefined;
|
|
6649
|
+
userAwayTimeout?: number | undefined;
|
|
6650
|
+
preemptiveGeneration?: boolean | undefined;
|
|
6607
6651
|
interruption?: {
|
|
6608
|
-
enabled?: boolean;
|
|
6609
|
-
mode?: "adaptive" | "vad";
|
|
6610
|
-
falseInterruptionTimeout?: number;
|
|
6611
|
-
resumeFalseInterruption?: boolean;
|
|
6612
|
-
minDelay?: number;
|
|
6613
|
-
maxDelay?: number;
|
|
6614
|
-
};
|
|
6615
|
-
sttLanguage?: string;
|
|
6616
|
-
krispEnabled?: boolean;
|
|
6652
|
+
enabled?: boolean | undefined;
|
|
6653
|
+
mode?: "adaptive" | "vad" | undefined;
|
|
6654
|
+
falseInterruptionTimeout?: number | undefined;
|
|
6655
|
+
resumeFalseInterruption?: boolean | undefined;
|
|
6656
|
+
minDelay?: number | undefined;
|
|
6657
|
+
maxDelay?: number | undefined;
|
|
6658
|
+
} | undefined;
|
|
6659
|
+
sttLanguage?: string | undefined;
|
|
6660
|
+
krispEnabled?: boolean | undefined;
|
|
6617
6661
|
backgroundAudio?: {
|
|
6618
6662
|
ambient?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6619
|
-
source
|
|
6620
|
-
volume?: number;
|
|
6621
|
-
probability?: number;
|
|
6663
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6664
|
+
volume?: number | undefined;
|
|
6665
|
+
probability?: number | undefined;
|
|
6622
6666
|
} | {
|
|
6623
|
-
source
|
|
6624
|
-
volume?: number;
|
|
6625
|
-
probability?: number;
|
|
6626
|
-
}[];
|
|
6667
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6668
|
+
volume?: number | undefined;
|
|
6669
|
+
probability?: number | undefined;
|
|
6670
|
+
}[] | undefined;
|
|
6627
6671
|
thinking?: "office-ambience" | "keyboard-typing" | "keyboard-typing-2" | {
|
|
6628
|
-
source
|
|
6629
|
-
volume?: number;
|
|
6630
|
-
probability?: number;
|
|
6672
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6673
|
+
volume?: number | undefined;
|
|
6674
|
+
probability?: number | undefined;
|
|
6631
6675
|
} | {
|
|
6632
|
-
source
|
|
6633
|
-
volume?: number;
|
|
6634
|
-
probability?: number;
|
|
6635
|
-
}[];
|
|
6636
|
-
};
|
|
6637
|
-
pronunciations?: Record<string, string
|
|
6638
|
-
persistTranscript?: boolean;
|
|
6639
|
-
onToolFailureSay?: string;
|
|
6640
|
-
excludeTools?: string[];
|
|
6676
|
+
source: "office-ambience" | "keyboard-typing" | "keyboard-typing-2";
|
|
6677
|
+
volume?: number | undefined;
|
|
6678
|
+
probability?: number | undefined;
|
|
6679
|
+
}[] | undefined;
|
|
6680
|
+
} | undefined;
|
|
6681
|
+
pronunciations?: Record<string, string> | undefined;
|
|
6682
|
+
persistTranscript?: boolean | undefined;
|
|
6683
|
+
onToolFailureSay?: string | undefined;
|
|
6684
|
+
excludeTools?: string[] | undefined;
|
|
6641
6685
|
}>;
|
|
6642
6686
|
|
|
6643
6687
|
/**
|
|
@@ -7357,7 +7401,7 @@ export declare interface MCPToolFilter {
|
|
|
7357
7401
|
* - 'streamable-http': Modern MCP standard (recommended) - single endpoint for bidirectional communication
|
|
7358
7402
|
* - 'sse': Legacy Server-Sent Events transport - for older MCP servers
|
|
7359
7403
|
*
|
|
7360
|
-
* Note: 'stdio' transport is not supported
|
|
7404
|
+
* Note: 'stdio' transport is not supported.
|
|
7361
7405
|
*/
|
|
7362
7406
|
export declare type MCPTransport = 'sse' | 'streamable-http';
|
|
7363
7407
|
|
|
@@ -8868,6 +8912,26 @@ declare interface SupervisedAgentSummary {
|
|
|
8868
8912
|
actions: string[];
|
|
8869
8913
|
}
|
|
8870
8914
|
|
|
8915
|
+
/**
|
|
8916
|
+
* Input of `Agents.jobs(agentId).register`: the staged version that defines the job, and the job to register.
|
|
8917
|
+
* @experimental Provisional: re-derive from the platform `jobs.register` op once it is in the shared contract.
|
|
8918
|
+
*/
|
|
8919
|
+
export declare interface SupervisedJobRegisterInput {
|
|
8920
|
+
versionId: string;
|
|
8921
|
+
jobId: string;
|
|
8922
|
+
}
|
|
8923
|
+
|
|
8924
|
+
/**
|
|
8925
|
+
* Result of a registration on the platform.
|
|
8926
|
+
* @experimental Provisional: re-derive from the platform `jobs.register` handler once it is in the shared contract.
|
|
8927
|
+
*/
|
|
8928
|
+
export declare interface SupervisedJobRegisterResult {
|
|
8929
|
+
agentId: string;
|
|
8930
|
+
versionId: string;
|
|
8931
|
+
jobId: string;
|
|
8932
|
+
registered: boolean;
|
|
8933
|
+
}
|
|
8934
|
+
|
|
8871
8935
|
/** `workflows.get` — metadata only: never the graph, script, code or tools. */
|
|
8872
8936
|
declare interface SupervisedWorkflow {
|
|
8873
8937
|
workflowId: string;
|
|
@@ -9790,6 +9854,10 @@ declare interface UserDataAPI {
|
|
|
9790
9854
|
set?: Record<string, any>;
|
|
9791
9855
|
unset?: string[];
|
|
9792
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>;
|
|
9793
9861
|
/**
|
|
9794
9862
|
* Clears user data.
|
|
9795
9863
|
* @returns Promise resolving when data is cleared
|
|
@@ -9846,7 +9914,23 @@ export declare class UserDataInstance {
|
|
|
9846
9914
|
}): Promise<any>;
|
|
9847
9915
|
unset(...fields: string[]): Promise<any>;
|
|
9848
9916
|
/**
|
|
9849
|
-
*
|
|
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)
|
|
9850
9934
|
* @returns Promise resolving to `{ success: true }` if clearing was successful
|
|
9851
9935
|
* @throws Error if the clear operation fails
|
|
9852
9936
|
*/
|
|
@@ -11230,6 +11314,27 @@ declare type WorkflowTier = (typeof WORKFLOW_TIERS)[number];
|
|
|
11230
11314
|
|
|
11231
11315
|
export declare type WorkflowWorkspaceBackend = 'ebs' | 'efs' | 's3';
|
|
11232
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
|
+
|
|
11233
11338
|
export declare type WorkspaceSpec = {
|
|
11234
11339
|
kind: 'git';
|
|
11235
11340
|
repo: string | TemplateBinding;
|