@capybara-hq/plugin-sdk 0.1.0-rc.87 → 0.1.0-rc.88
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/README.md +2 -0
- package/agent-docs/extensions.md +3 -2
- package/api/plugin-sdk.api.md +5914 -0
- package/dist/hooks.d.ts +9 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -1
package/dist/hooks.d.ts
CHANGED
|
@@ -322,7 +322,9 @@ export interface OrgDeletedPayload {
|
|
|
322
322
|
* - `offer_declined`: directed work was not run (`reason`): the person's rule is `off`, the person
|
|
323
323
|
* `declined` the offer, their acceptance automation is `paused`, the offer `expired` unanswered
|
|
324
324
|
* (seven days), or the event stayed `undelivered` (the kernel gave up routing it). No run and no
|
|
325
|
-
* conversation: `accountId` and `agentId` are the event's audience
|
|
325
|
+
* conversation: `accountId` and `agentId` are the event's audience; `eventId` and `dedupeKey`
|
|
326
|
+
* name the event the decline is for, so a plugin can tell a stale decline (an older event of
|
|
327
|
+
* the subject) from one for its latest.
|
|
326
328
|
*/
|
|
327
329
|
export interface RunLifecyclePayload {
|
|
328
330
|
orgId: string;
|
|
@@ -345,6 +347,12 @@ export interface RunLifecyclePayload {
|
|
|
345
347
|
waitingOn?: "approval" | "input";
|
|
346
348
|
/** Set for `offer_declined`. */
|
|
347
349
|
reason?: RunLifecycleDeclineReason;
|
|
350
|
+
/** Set for `offer_declined`: the kernel's id of the directed event that was not run. */
|
|
351
|
+
eventId?: string;
|
|
352
|
+
/**
|
|
353
|
+
* Set for `offer_declined`: the `dedupeKey` the plugin gave that event in `ctx.triggers.emit`.
|
|
354
|
+
*/
|
|
355
|
+
dedupeKey?: string;
|
|
348
356
|
}
|
|
349
357
|
/** Why directed work was not run (`run.lifecycle` `offer_declined`). */
|
|
350
358
|
export type RunLifecycleDeclineReason = "declined" | "off" | "paused" | "expired" | "undelivered";
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capybara-hq/plugin-sdk",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
3
|
+
"version": "0.1.0-rc.88",
|
|
4
4
|
"description": "Capybara plugin SDK: the types and pure functions plugins are written against",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist",
|
|
31
|
+
"api",
|
|
31
32
|
"schemas",
|
|
32
33
|
"agent-docs",
|
|
33
34
|
"README.md",
|