@arbidocs/sdk 0.5.105 → 0.5.107
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/{browser-CksUbMue.d.cts → browser-B6lX8DjB.d.cts} +348 -26
- package/dist/{browser-CU2UksYn.d.ts → browser-CBr3cEes.d.ts} +348 -26
- package/dist/browser.cjs +12 -4
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +12 -4
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/examples/human-review/package.json +1 -1
- package/examples/react-chat/package.json +2 -2
- package/package.json +2 -2
package/dist/browser.cjs
CHANGED
|
@@ -5001,9 +5001,12 @@ async function listWorkspaceTransfers(arbi) {
|
|
|
5001
5001
|
"Failed to list transfers"
|
|
5002
5002
|
);
|
|
5003
5003
|
}
|
|
5004
|
-
async function exportWorkspaceData(arbi, scope) {
|
|
5004
|
+
async function exportWorkspaceData(arbi, scope, workspaceExtId) {
|
|
5005
5005
|
return requireData(
|
|
5006
|
-
await arbi.fetch.POST("/v1/workspace/export", {
|
|
5006
|
+
await arbi.fetch.POST("/v1/workspace/export", {
|
|
5007
|
+
body: { scope },
|
|
5008
|
+
params: { query: { workspace_ext_id: workspaceExtId } }
|
|
5009
|
+
}),
|
|
5007
5010
|
"Failed to export the workspace"
|
|
5008
5011
|
);
|
|
5009
5012
|
}
|
|
@@ -8953,7 +8956,9 @@ async function billingPortal(arbi, projectExtId) {
|
|
|
8953
8956
|
async function addAddonBlock(arbi, projectExtId, kind) {
|
|
8954
8957
|
const params = projectPath(projectExtId);
|
|
8955
8958
|
return requireData(
|
|
8956
|
-
kind === "ai_usage" ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/ai-usage", { params }) : await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/
|
|
8959
|
+
kind === "ai_usage" ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/ai-usage", { params }) : kind === "collaborators" ? await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/collaborators", {
|
|
8960
|
+
params
|
|
8961
|
+
}) : await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/addons/storage", { params }),
|
|
8957
8962
|
"Failed to add the add-on"
|
|
8958
8963
|
);
|
|
8959
8964
|
}
|
|
@@ -12370,7 +12375,10 @@ var Arbi = class {
|
|
|
12370
12375
|
cancel: (transferId) => cancelWorkspaceTransfer(this.requireClient(), transferId),
|
|
12371
12376
|
get: (transferId) => getWorkspaceTransfer(this.requireClient(), transferId),
|
|
12372
12377
|
list: () => listWorkspaceTransfers(this.requireClient()),
|
|
12373
|
-
exportData: (scope) =>
|
|
12378
|
+
exportData: async (scope, options) => {
|
|
12379
|
+
if (options?.workspaceId) await this.openWorkspace(options.workspaceId);
|
|
12380
|
+
return exportWorkspaceData(this.requireClient(), scope, options?.workspaceId);
|
|
12381
|
+
}
|
|
12374
12382
|
}
|
|
12375
12383
|
};
|
|
12376
12384
|
// ── Documents ─────────────────────────────────────────────────────────
|