openpond-sdk 0.0.11 → 0.0.12
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
CHANGED
|
@@ -119,6 +119,25 @@ await openpond.workflows.runNow(workflow.scheduleId);
|
|
|
119
119
|
await openpond.workflows.update(workflow.scheduleId, { enabled: false });
|
|
120
120
|
```
|
|
121
121
|
|
|
122
|
+
An external product can also let OpenPond own recurrence while keeping the
|
|
123
|
+
work itself inside that product. External callbacks are created disabled by
|
|
124
|
+
default by the caller, carry only an opaque external reference, and receive a
|
|
125
|
+
verifiable Saved Work run identity when OpenPond fires them:
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
await openpond.workflows.create({
|
|
129
|
+
name: "Daily account review",
|
|
130
|
+
prompt: "Run the account-owned daily review.",
|
|
131
|
+
recurrence,
|
|
132
|
+
enabled: false,
|
|
133
|
+
target: {
|
|
134
|
+
kind: "external_callback",
|
|
135
|
+
callbackUrl: "https://app.example.com/api/workflows/openpond-callback",
|
|
136
|
+
externalReference: "opaque_binding_id",
|
|
137
|
+
},
|
|
138
|
+
});
|
|
139
|
+
```
|
|
140
|
+
|
|
122
141
|
`openpond.workflows` is distinct from `openpond.sandboxes.createSchedule()`. Workflows schedule model-driven Work and create normal Work conversations and run history. Raw sandbox schedules execute a declared sandbox command or action.
|
|
123
142
|
|
|
124
143
|
## Project Actions
|