@arbidocs/sdk 0.5.132 → 0.5.133
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-C4_Zgu_N.d.cts → browser-CrLmQm-o.d.cts} +323 -7
- package/dist/{browser-BDt9qMGw.d.ts → browser-Do_-BxvU.d.ts} +323 -7
- package/dist/browser.cjs +16 -5
- 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 +16 -5
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +16 -5
- 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 +16 -5
- 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/index.cjs
CHANGED
|
@@ -5320,7 +5320,7 @@ __export(workspaces_exports, {
|
|
|
5320
5320
|
var WORKSPACE_ROLE_LABELS = {
|
|
5321
5321
|
owner: "Owner",
|
|
5322
5322
|
collaborator: "Collaborator",
|
|
5323
|
-
guest: "
|
|
5323
|
+
guest: "Viewer"
|
|
5324
5324
|
};
|
|
5325
5325
|
function workspaceRoleLabel(role) {
|
|
5326
5326
|
return WORKSPACE_ROLE_LABELS[role] ?? role.charAt(0).toUpperCase() + role.slice(1);
|
|
@@ -5328,7 +5328,7 @@ function workspaceRoleLabel(role) {
|
|
|
5328
5328
|
function parseWorkspaceRole(input) {
|
|
5329
5329
|
const value = input.trim().toLowerCase();
|
|
5330
5330
|
if (value === "owner" || value === "collaborator" || value === "guest") return value;
|
|
5331
|
-
return /^read[-_ ]?only$/.test(value) ? "guest" : null;
|
|
5331
|
+
return value === "viewer" || /^read[-_ ]?only$/.test(value) ? "guest" : null;
|
|
5332
5332
|
}
|
|
5333
5333
|
async function listWorkspaces(arbi) {
|
|
5334
5334
|
return requireData(await arbi.fetch.GET("/v1/user/workspaces"), "Failed to fetch workspaces");
|
|
@@ -9422,6 +9422,7 @@ __export(projects_exports, {
|
|
|
9422
9422
|
billingPortal: () => billingPortal,
|
|
9423
9423
|
cancelSubscription: () => cancelSubscription,
|
|
9424
9424
|
changePlan: () => changePlan,
|
|
9425
|
+
confirmSpendLimits: () => confirmSpendLimits,
|
|
9425
9426
|
createCheckout: () => createCheckout,
|
|
9426
9427
|
createProject: () => createProject,
|
|
9427
9428
|
deleteProject: () => deleteProject,
|
|
@@ -9654,6 +9655,15 @@ async function cancelSubscription(arbi, projectExtId) {
|
|
|
9654
9655
|
"Failed to cancel the subscription"
|
|
9655
9656
|
);
|
|
9656
9657
|
}
|
|
9658
|
+
async function confirmSpendLimits(arbi, projectExtId, body) {
|
|
9659
|
+
return requireData(
|
|
9660
|
+
await arbi.fetch.POST("/v1/user/projects/{project_ext_id}/spend-limits/confirm", {
|
|
9661
|
+
params: { path: { project_ext_id: projectExtId } },
|
|
9662
|
+
body
|
|
9663
|
+
}),
|
|
9664
|
+
"Failed to confirm spending limits"
|
|
9665
|
+
);
|
|
9666
|
+
}
|
|
9657
9667
|
var encoder = new TextEncoder();
|
|
9658
9668
|
var decoder = new TextDecoder();
|
|
9659
9669
|
var seal = (json2, keypair) => client.sealedBoxEncrypt(Uint8Array.from(encoder.encode(json2)), keypair.publicKey);
|
|
@@ -11644,7 +11654,7 @@ var CODE_TEXT = {
|
|
|
11644
11654
|
host_only: "Only the host can do that.",
|
|
11645
11655
|
// transcription
|
|
11646
11656
|
transcription_off: "Transcription is off.",
|
|
11647
|
-
speaker_mismatch: "Only the speaker can store this line (or another member, when the speaker is
|
|
11657
|
+
speaker_mismatch: "Only the speaker can store this line (or another member, when the speaker is a viewer).",
|
|
11648
11658
|
// recording
|
|
11649
11659
|
storage_quota_exceeded: "The storage quota is full: recording stopped.",
|
|
11650
11660
|
already_recording: "The call is already being recorded.",
|
|
@@ -12757,6 +12767,7 @@ var Arbi = class {
|
|
|
12757
12767
|
events: (projectExtId, options) => listProjectEvents(this.requireClient(), projectExtId, options),
|
|
12758
12768
|
/** The project's spend by conversation in a billing period (£). */
|
|
12759
12769
|
usageByConversation: (projectExtId, monthsBack) => getProjectConversationUsage(this.requireClient(), projectExtId, monthsBack),
|
|
12770
|
+
confirmSpendLimits: (projectExtId, body) => confirmSpendLimits(this.requireClient(), projectExtId, body),
|
|
12760
12771
|
refresh: (projectExtId) => refreshProject(this.requireClient(), projectExtId),
|
|
12761
12772
|
/** AI usage + spend breakdown for a project's billing period. */
|
|
12762
12773
|
usage: (projectExtId, monthsBack) => getProjectUsage(this.requireClient(), projectExtId, monthsBack),
|
|
@@ -13005,7 +13016,7 @@ var Arbi = class {
|
|
|
13005
13016
|
activity: (workspaceId, options) => getWorkspaceActivity(this.requireClient(), workspaceId, options),
|
|
13006
13017
|
/**
|
|
13007
13018
|
* Add users to the open workspace; `confirmInvite` also invites emails not on ARBI yet. `role`
|
|
13008
|
-
* defaults to `collaborator`; `guest` makes a read-only member (shown as "
|
|
13019
|
+
* defaults to `collaborator`; `guest` makes a read-only member (shown as "Viewer").
|
|
13009
13020
|
*/
|
|
13010
13021
|
addUsers: (emails, role, options) => addWorkspaceUsers(
|
|
13011
13022
|
this.requireClient(),
|
|
@@ -13049,7 +13060,7 @@ var Arbi = class {
|
|
|
13049
13060
|
userIds,
|
|
13050
13061
|
await this.targetWorkspace(options?.workspaceId)
|
|
13051
13062
|
),
|
|
13052
|
-
/** Change members' role; `guest` is read-only (shown as "
|
|
13063
|
+
/** Change members' role; `guest` is read-only (shown as "Viewer"). */
|
|
13053
13064
|
setUserRole: (userIds, role) => setUserRole(this.requireClient(), userIds, role),
|
|
13054
13065
|
/**
|
|
13055
13066
|
* Ask another user to grant you workspace access. Builds the E2E-encrypted
|