@arbidocs/sdk 0.5.177 → 0.5.179

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.cjs CHANGED
@@ -5873,7 +5873,7 @@ async function submitBackgroundQuery(options) {
5873
5873
  tools.retrieval_chunk = {
5874
5874
  name: "retrieval_chunk",
5875
5875
  description: "retrieval chunk",
5876
- tool_args: { doc_ext_ids: docIds },
5876
+ tool_args: { doc_ext_ids: docIds, empty_scope: false },
5877
5877
  tool_responses: {}
5878
5878
  };
5879
5879
  if (fullContext)
@@ -7577,7 +7577,11 @@ function buildRetrievalChunkTool(docIds, searchMode) {
7577
7577
  return {
7578
7578
  name: "retrieval_chunk",
7579
7579
  description: "retrieval chunk",
7580
- tool_args: { doc_ext_ids: docIds, ...searchMode ? { search_mode: searchMode } : {} },
7580
+ tool_args: {
7581
+ doc_ext_ids: docIds,
7582
+ empty_scope: false,
7583
+ ...searchMode ? { search_mode: searchMode } : {}
7584
+ },
7581
7585
  tool_responses: {}
7582
7586
  };
7583
7587
  }
@@ -11916,6 +11920,7 @@ __export(calls_exports, {
11916
11920
  downloadRecordingPart: () => downloadRecordingPart,
11917
11921
  fetchCallToken: () => fetchCallToken,
11918
11922
  getCall: () => getCall,
11923
+ getCallAvatarAsset: () => getCallAvatarAsset,
11919
11924
  getCallRecording: () => getCallRecording,
11920
11925
  getCallsConfig: () => getCallsConfig,
11921
11926
  getOrCreateCallChat: () => getOrCreateCallChat,
@@ -12151,6 +12156,14 @@ async function deleteQuestion(arbi, callExtId, questionExtId, linkVersion) {
12151
12156
  }
12152
12157
 
12153
12158
  // src/operations/calls.ts
12159
+ async function getCallAvatarAsset(client, avatar, asset) {
12160
+ const { data, error, response } = await client.fetch.GET("/v1/calls/avatars/{avatar}/{asset}", {
12161
+ params: { path: { avatar, asset } },
12162
+ parseAs: "arrayBuffer"
12163
+ });
12164
+ if (error || !data) throw new CallApiError("Could not load the assistant avatar", response.status);
12165
+ return data;
12166
+ }
12154
12167
  var RECORDING = { quota: true };
12155
12168
  var TRANSCRIBE = { statusTexts: TRANSCRIBE_STATUS_TEXT };
12156
12169
  var callPath = (callExtId) => ({ params: { path: { call_ext_id: callExtId } } });
@@ -14493,6 +14506,7 @@ var Arbi = class {
14493
14506
  * `resetLink` do the key work and hand back K with the call; everything else moves ciphertext.
14494
14507
  */
14495
14508
  calls = {
14509
+ avatarAsset: (avatar, asset) => getCallAvatarAsset(this.requireClient(), avatar, asset),
14496
14510
  /** The deployment's calls config (`enabled`, `transcription_available`, …). */
14497
14511
  config: () => getCallsConfig(this.requireClient()),
14498
14512
  list: (query2) => listCalls(this.requireClient(), query2),