@arbidocs/sdk 0.3.80 → 0.3.82

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
@@ -4191,7 +4191,6 @@ var LIFECYCLE_LABELS_FALLBACK = {
4191
4191
  goal: "Thinking\u2026",
4192
4192
  evaluation: "Evaluating results",
4193
4193
  answering: "Answered",
4194
- reviewing: "Reviewing answer",
4195
4194
  planning: "Planning",
4196
4195
  tool_progress: "Working"
4197
4196
  };
@@ -5240,6 +5239,7 @@ __export(conversations_exports, {
5240
5239
  deleteMessage: () => deleteMessage,
5241
5240
  getConversationThreads: () => getConversationThreads,
5242
5241
  getMessage: () => getMessage,
5242
+ importConversations: () => importConversations,
5243
5243
  listConversations: () => listConversations,
5244
5244
  shareConversation: () => shareConversation,
5245
5245
  updateConversationTitle: () => updateConversationTitle
@@ -5247,6 +5247,17 @@ __export(conversations_exports, {
5247
5247
  async function listConversations(arbi) {
5248
5248
  return requireData(await arbi.fetch.GET("/v1/conversation/list"), "Failed to fetch conversations");
5249
5249
  }
5250
+ async function importConversations(auth, fileData, fileName, source = "auto") {
5251
+ const formData = new FormData();
5252
+ formData.append("file", fileData, fileName);
5253
+ const res = await authenticatedFetch({
5254
+ ...auth,
5255
+ path: `/v1/conversation/import?source=${encodeURIComponent(source)}`,
5256
+ method: "POST",
5257
+ body: formData
5258
+ });
5259
+ return res.json();
5260
+ }
5250
5261
  async function getConversationThreads(arbi, conversationId) {
5251
5262
  return requireData(
5252
5263
  await arbi.fetch.GET("/v1/conversation/{conversation_ext_id}/threads", {