@avallon-labs/sdk 47.1.0 → 47.2.0-staging.1078
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/index.d.ts +32 -8
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -367,6 +367,8 @@ interface VoiceAgent {
|
|
|
367
367
|
greeting: string | null;
|
|
368
368
|
/** Inactivity timeout in seconds. null disables the feature. */
|
|
369
369
|
inactivity_timeout_seconds: number | null;
|
|
370
|
+
/** Tools the agent can call. Part of the versioned config: each version captures its own set, and a rollback restores it. */
|
|
371
|
+
tool_ids: string[];
|
|
370
372
|
}
|
|
371
373
|
|
|
372
374
|
/**
|
|
@@ -4913,6 +4915,8 @@ interface VoiceAgentWithTestPhoneNumber {
|
|
|
4913
4915
|
greeting: string | null;
|
|
4914
4916
|
/** Inactivity timeout in seconds. null disables the feature. */
|
|
4915
4917
|
inactivity_timeout_seconds: number | null;
|
|
4918
|
+
/** Tools the agent can call. Part of the versioned config: each version captures its own set, and a rollback restores it. */
|
|
4919
|
+
tool_ids: string[];
|
|
4916
4920
|
test_phone_number: string | null;
|
|
4917
4921
|
}
|
|
4918
4922
|
|
|
@@ -5191,6 +5195,8 @@ interface VoiceAgentVersionDetail {
|
|
|
5191
5195
|
greeting: string | null;
|
|
5192
5196
|
/** Inactivity timeout in seconds. null disables the feature. */
|
|
5193
5197
|
inactivity_timeout_seconds: number | null;
|
|
5198
|
+
/** Tools the agent can call. Part of the versioned config: each version captures its own set, and a rollback restores it. */
|
|
5199
|
+
tool_ids: string[];
|
|
5194
5200
|
/**
|
|
5195
5201
|
* @minimum -9007199254740991
|
|
5196
5202
|
* @maximum 9007199254740991
|
|
@@ -7369,6 +7375,9 @@ declare const ListToolsSortOrder: {
|
|
|
7369
7375
|
type ListToolsParams = {
|
|
7370
7376
|
sort_by?: ListToolsSortBy;
|
|
7371
7377
|
sort_order?: ListToolsSortOrder;
|
|
7378
|
+
/**
|
|
7379
|
+
* Deprecated. Read `tool_ids` off the voice agent instead — it reports the set for the agent's newest config version, which is what this filter resolves.
|
|
7380
|
+
*/
|
|
7372
7381
|
call_agent_id?: string;
|
|
7373
7382
|
};
|
|
7374
7383
|
|
|
@@ -9318,6 +9327,8 @@ type UpdateVoiceAgentBody = {
|
|
|
9318
9327
|
voice_mail_detection?: boolean;
|
|
9319
9328
|
/** Noise cancellation mode applied to the caller audio. Omit to leave unchanged. */
|
|
9320
9329
|
noise_cancellation?: UpdateVoiceAgentBodyNoiseCancellation;
|
|
9330
|
+
/** Replace the agent's attached tool set. Omit to leave unchanged; pass [] to detach all. */
|
|
9331
|
+
tool_ids?: string[];
|
|
9321
9332
|
};
|
|
9322
9333
|
|
|
9323
9334
|
/**
|
|
@@ -9860,6 +9871,9 @@ declare const WorkerListToolsSortOrder: {
|
|
|
9860
9871
|
type WorkerListToolsParams = {
|
|
9861
9872
|
sort_by?: WorkerListToolsSortBy;
|
|
9862
9873
|
sort_order?: WorkerListToolsSortOrder;
|
|
9874
|
+
/**
|
|
9875
|
+
* Deprecated. Read `tool_ids` off the voice agent instead — it reports the set for the agent's newest config version, which is what this filter resolves.
|
|
9876
|
+
*/
|
|
9863
9877
|
call_agent_id?: string;
|
|
9864
9878
|
};
|
|
9865
9879
|
|
|
@@ -12677,7 +12691,7 @@ declare const useCreateTool: <TError = ErrorType<ErrorResponse>>(options?: {
|
|
|
12677
12691
|
/**
|
|
12678
12692
|
* List all code tools with sorting.
|
|
12679
12693
|
|
|
12680
|
-
Optionally filter by `call_agent_id` to list only tools attached to a specific agent.
|
|
12694
|
+
Optionally filter by `call_agent_id` to list only tools attached to a specific voice agent. That parameter is deprecated — a voice agent reports its attached ids as `tool_ids`.
|
|
12681
12695
|
|
|
12682
12696
|
For compatibility this endpoint is also available using the following (deprecated) paths:
|
|
12683
12697
|
`GET /worker/v1/tools`
|
|
@@ -12819,7 +12833,7 @@ declare const useExecuteCode: <TError = ErrorType<ErrorResponse>>(id: string, op
|
|
|
12819
12833
|
/**
|
|
12820
12834
|
* List all code tools with sorting.
|
|
12821
12835
|
|
|
12822
|
-
Optionally filter by `call_agent_id` to list only tools attached to a specific agent.
|
|
12836
|
+
Optionally filter by `call_agent_id` to list only tools attached to a specific voice agent. That parameter is deprecated — a voice agent reports its attached ids as `tool_ids`.
|
|
12823
12837
|
* @deprecated
|
|
12824
12838
|
* @summary List tools
|
|
12825
12839
|
*/
|
|
@@ -13016,6 +13030,8 @@ Set `voice_mail_detection` to `true` to have the agent listen for a voicemail be
|
|
|
13016
13030
|
|
|
13017
13031
|
Set `noise_cancellation` to choose the noise cancellation mode applied to the caller audio.
|
|
13018
13032
|
|
|
13033
|
+
Set `tool_ids` to replace the agent's attached tool set. This is the supported way to manage tool attachments; the dedicated add and remove endpoints are deprecated.
|
|
13034
|
+
|
|
13019
13035
|
Config changes create a new voice agent config version. The live and test releases keep pointing at their current versions until the new version is promoted.
|
|
13020
13036
|
* @summary Update voice agent
|
|
13021
13037
|
*/
|
|
@@ -13172,11 +13188,14 @@ declare const useGetVoiceAgentVersionChangeSummary: <TError = ErrorType<ErrorRes
|
|
|
13172
13188
|
swrKey: string | false | readonly [any, ...unknown[]] | Record<any, any> | (() => Arguments);
|
|
13173
13189
|
};
|
|
13174
13190
|
/**
|
|
13175
|
-
*
|
|
13191
|
+
* **Deprecated.** Tool attachments are a versioned field on the agent. Send the full set as `tool_ids` on `PATCH /v1/voice-agents/{voiceAgentId}` instead; the current set is on the agent response.
|
|
13192
|
+
|
|
13193
|
+
Adds one or more tools to a voice agent by their IDs, leaving the rest of the set in place. Idempotent: ids already in (or absent from) the set are ignored rather than rejected.
|
|
13176
13194
|
|
|
13177
13195
|
For compatibility this endpoint is also available using the following (deprecated) paths:
|
|
13178
13196
|
`POST /v1/agents/{id}/tools`
|
|
13179
|
-
* @
|
|
13197
|
+
* @deprecated
|
|
13198
|
+
* @summary Add tools to voice agent (deprecated)
|
|
13180
13199
|
*/
|
|
13181
13200
|
declare const getAddToolsToVoiceAgentUrl: (voiceAgentId: string) => string;
|
|
13182
13201
|
declare const addToolsToVoiceAgent: (voiceAgentId: string, addToolsToVoiceAgentBody: AddToolsToVoiceAgentBody, options?: RequestInit) => Promise<AddToolsToVoiceAgentEnvelope>;
|
|
@@ -13186,7 +13205,8 @@ declare const getAddToolsToVoiceAgentMutationFetcher: (voiceAgentId: string, opt
|
|
|
13186
13205
|
declare const getAddToolsToVoiceAgentMutationKey: (voiceAgentId: string) => readonly [`/v1/voice-agents/${string}/tools`];
|
|
13187
13206
|
type AddToolsToVoiceAgentMutationResult = NonNullable<Awaited$4<ReturnType<typeof addToolsToVoiceAgent>>>;
|
|
13188
13207
|
/**
|
|
13189
|
-
* @
|
|
13208
|
+
* @deprecated
|
|
13209
|
+
* @summary Add tools to voice agent (deprecated)
|
|
13190
13210
|
*/
|
|
13191
13211
|
declare const useAddToolsToVoiceAgent: <TError = ErrorType<ErrorResponse>>(voiceAgentId: string, options?: {
|
|
13192
13212
|
swr?: SWRMutationConfiguration<Awaited$4<ReturnType<typeof addToolsToVoiceAgent>>, TError, Key, AddToolsToVoiceAgentBody, Awaited$4<ReturnType<typeof addToolsToVoiceAgent>>> & {
|
|
@@ -13202,11 +13222,14 @@ declare const useAddToolsToVoiceAgent: <TError = ErrorType<ErrorResponse>>(voice
|
|
|
13202
13222
|
swrKey: string | readonly [`/v1/voice-agents/${string}/tools`];
|
|
13203
13223
|
};
|
|
13204
13224
|
/**
|
|
13205
|
-
*
|
|
13225
|
+
* **Deprecated.** Tool attachments are a versioned field on the agent. Send the full set as `tool_ids` on `PATCH /v1/voice-agents/{voiceAgentId}` instead; the current set is on the agent response.
|
|
13226
|
+
|
|
13227
|
+
Removes one or more tools from a voice agent by their IDs, leaving the rest of the set in place. Idempotent: ids already in (or absent from) the set are ignored rather than rejected.
|
|
13206
13228
|
|
|
13207
13229
|
For compatibility this endpoint is also available using the following (deprecated) paths:
|
|
13208
13230
|
`DELETE /v1/agents/{id}/tools`
|
|
13209
|
-
* @
|
|
13231
|
+
* @deprecated
|
|
13232
|
+
* @summary Remove tools from voice agent (deprecated)
|
|
13210
13233
|
*/
|
|
13211
13234
|
declare const getDeleteToolsFromVoiceAgentUrl: (voiceAgentId: string) => string;
|
|
13212
13235
|
declare const deleteToolsFromVoiceAgent: (voiceAgentId: string, deleteToolsFromVoiceAgentBody: DeleteToolsFromVoiceAgentBody, options?: RequestInit) => Promise<DeleteToolsFromVoiceAgentEnvelope>;
|
|
@@ -13216,7 +13239,8 @@ declare const getDeleteToolsFromVoiceAgentMutationFetcher: (voiceAgentId: string
|
|
|
13216
13239
|
declare const getDeleteToolsFromVoiceAgentMutationKey: (voiceAgentId: string) => readonly [`/v1/voice-agents/${string}/tools`];
|
|
13217
13240
|
type DeleteToolsFromVoiceAgentMutationResult = NonNullable<Awaited$4<ReturnType<typeof deleteToolsFromVoiceAgent>>>;
|
|
13218
13241
|
/**
|
|
13219
|
-
* @
|
|
13242
|
+
* @deprecated
|
|
13243
|
+
* @summary Remove tools from voice agent (deprecated)
|
|
13220
13244
|
*/
|
|
13221
13245
|
declare const useDeleteToolsFromVoiceAgent: <TError = ErrorType<ErrorResponse>>(voiceAgentId: string, options?: {
|
|
13222
13246
|
swr?: SWRMutationConfiguration<Awaited$4<ReturnType<typeof deleteToolsFromVoiceAgent>>, TError, Key, DeleteToolsFromVoiceAgentBody, Awaited$4<ReturnType<typeof deleteToolsFromVoiceAgent>>> & {
|