@arbidocs/sdk 0.4.72 → 0.4.73
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-BWUCi_v2.d.cts → browser-BBYaJCyB.d.cts} +112 -2
- package/dist/{browser-BWUCi_v2.d.ts → browser-BBYaJCyB.d.ts} +112 -2
- package/dist/browser.cjs +24 -0
- 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 +24 -0
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +24 -0
- 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 +24 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -6627,9 +6627,11 @@ async function getUserUsageToday(arbi) {
|
|
|
6627
6627
|
// src/operations/work.ts
|
|
6628
6628
|
var work_exports = {};
|
|
6629
6629
|
__export(work_exports, {
|
|
6630
|
+
actOnStep: () => actOnStep,
|
|
6630
6631
|
createWork: () => createWork,
|
|
6631
6632
|
getActivity: () => getActivity,
|
|
6632
6633
|
getPendingAuth: () => getPendingAuth,
|
|
6634
|
+
notifyConversation: () => notifyConversation,
|
|
6633
6635
|
planWork: () => planWork,
|
|
6634
6636
|
runConversation: () => runConversation,
|
|
6635
6637
|
updateConversation: () => updateConversation
|
|
@@ -6667,6 +6669,24 @@ async function getPendingAuth(arbi, conversationId) {
|
|
|
6667
6669
|
"Failed to read the pending access request"
|
|
6668
6670
|
);
|
|
6669
6671
|
}
|
|
6672
|
+
async function actOnStep(arbi, conversationId, body) {
|
|
6673
|
+
return requireData(
|
|
6674
|
+
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/step", {
|
|
6675
|
+
...byId(conversationId),
|
|
6676
|
+
body
|
|
6677
|
+
}),
|
|
6678
|
+
"Failed to update the workflow step"
|
|
6679
|
+
);
|
|
6680
|
+
}
|
|
6681
|
+
async function notifyConversation(arbi, conversationId, userIds) {
|
|
6682
|
+
return requireData(
|
|
6683
|
+
await arbi.fetch.POST("/v1/conversation/{conversation_ext_id}/notify", {
|
|
6684
|
+
...byId(conversationId),
|
|
6685
|
+
body: { user_ext_ids: userIds }
|
|
6686
|
+
}),
|
|
6687
|
+
"Failed to notify people about the conversation"
|
|
6688
|
+
);
|
|
6689
|
+
}
|
|
6670
6690
|
async function getActivity(arbi, conversationId) {
|
|
6671
6691
|
return requireData(
|
|
6672
6692
|
await arbi.fetch.GET("/v1/conversation/{conversation_ext_id}/activity", byId(conversationId)),
|
|
@@ -7319,6 +7339,10 @@ var Arbi = class {
|
|
|
7319
7339
|
pendingAuth: (conversationId) => getPendingAuth(this.requireClient(), conversationId),
|
|
7320
7340
|
/** The task's history, oldest first. */
|
|
7321
7341
|
activity: (conversationId) => getActivity(this.requireClient(), conversationId),
|
|
7342
|
+
/** Complete or skip a step of a workflow run; the run goes on to its next agent step. */
|
|
7343
|
+
actOnStep: (conversationId, body) => actOnStep(this.requireClient(), conversationId, body),
|
|
7344
|
+
/** Notify people about a conversation (each gets a notification); resolves with who was. */
|
|
7345
|
+
notify: (conversationId, userIds) => notifyConversation(this.requireClient(), conversationId, userIds),
|
|
7322
7346
|
/** Draft an editable plan from an objective. */
|
|
7323
7347
|
plan: (body) => planWork(this.requireClient(), body),
|
|
7324
7348
|
/**
|