@arbidocs/sdk 0.4.54 → 0.4.55

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
@@ -6534,8 +6534,6 @@ __export(work_exports, {
6534
6534
  getActivity: () => getActivity,
6535
6535
  getPendingAuth: () => getPendingAuth,
6536
6536
  planWork: () => planWork,
6537
- requestApproval: () => requestApproval,
6538
- reviewConversation: () => reviewConversation,
6539
6537
  runConversation: () => runConversation,
6540
6538
  updateConversation: () => updateConversation
6541
6539
  });
@@ -6563,24 +6561,6 @@ async function runConversation(arbi, conversationId) {
6563
6561
  "Failed to run task"
6564
6562
  );
6565
6563
  }
6566
- async function reviewConversation(arbi, conversationId, body) {
6567
- return requireData(
6568
- await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/review", {
6569
- ...byId(conversationId),
6570
- body
6571
- }),
6572
- "Failed to review task"
6573
- );
6574
- }
6575
- async function requestApproval(arbi, conversationId, body) {
6576
- return requireData(
6577
- await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/request-approval", {
6578
- ...byId(conversationId),
6579
- body
6580
- }),
6581
- "Failed to request approval"
6582
- );
6583
- }
6584
6564
  async function getPendingAuth(arbi, conversationId) {
6585
6565
  return requireData(
6586
6566
  await arbi.fetch.GET(
@@ -7174,7 +7154,7 @@ var Arbi = class {
7174
7154
  delete: (conversationId) => deleteConversation(this.requireClient(), conversationId),
7175
7155
  /**
7176
7156
  * Patch a conversation: `title`, `shared` (owner only), and the work fields (`description`,
7177
- * `due_at`, `signoff_user_ext_id`, `parent_conversation_ext_id`, `status`, `plan`). The one call
7157
+ * `due_at`, `parent_conversation_ext_id`, `status`, `plan`). The one call
7178
7158
  * behind rename, share and unshare.
7179
7159
  */
7180
7160
  update: (conversationId, body) => updateConversation(this.requireClient(), conversationId, body),
@@ -7182,19 +7162,15 @@ var Arbi = class {
7182
7162
  createWork: (body) => createWork(this.requireClient(), body),
7183
7163
  /** Run a work item now, or retry it. */
7184
7164
  run: (conversationId) => runConversation(this.requireClient(), conversationId),
7185
- /** The sign-off person approves, or sends feedback back to the agent in the same thread. */
7186
- review: (conversationId, body) => reviewConversation(this.requireClient(), conversationId, body),
7187
- /** Hand sign-off to another workspace member. */
7188
- requestApproval: (conversationId, body) => requestApproval(this.requireClient(), conversationId, body),
7189
7165
  /** The session key an unattended run waits for the owner to allow; 404 when nothing waits. */
7190
7166
  pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
7191
7167
  /** The task's history, oldest first. */
7192
7168
  activity: (conversationId) => getActivity(this.requireClient(), conversationId),
7193
- /** Draft a reviewable plan from an objective. */
7169
+ /** Draft an editable plan from an objective. */
7194
7170
  plan: (body) => planWork(this.requireClient(), body),
7195
7171
  /**
7196
7172
  * Run a work item and, when the run is parked waiting for workspace access, grant the agent's
7197
- * run session a temporary key and run it again. Work that needs no approval returns from the
7173
+ * run session a temporary key and run it again. Work that needs no access grant returns from the
7198
7174
  * first call already running.
7199
7175
  */
7200
7176
  runWithAuth: async (conversationId) => {
@@ -7256,7 +7232,7 @@ var Arbi = class {
7256
7232
  // ── Assistant ─────────────────────────────────────────────────────────
7257
7233
  assistant = {
7258
7234
  cancelRun: (responseId) => this.recovering(() => cancelAssistantRun(this.getAuthHeaders(), responseId)),
7259
- /** Start a durable background turn; task options make its thread a reviewable work item. */
7235
+ /** Start a durable background turn; task options make its thread a work item. */
7260
7236
  submit: (question, options) => {
7261
7237
  const workspaceId = this.requireWorkspace();
7262
7238
  return this.recovering(