@vellumai/plugin-api 0.11.8-dev.202609012313.7a1acce → 0.11.8-dev.202609020319.a47fda9
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/index.d.ts +11 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -31,6 +31,17 @@ declare interface AddMessageOptions {
|
|
|
31
31
|
* internally. Pass the same value as `requestId` for user turns so
|
|
32
32
|
* the persisted row ID matches the runtime correlation ID. */
|
|
33
33
|
id?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Answered synchronously at the top of every insert attempt, immediately
|
|
36
|
+
* before that attempt's statement. False aborts with a
|
|
37
|
+
* {@link MessageInsertPreconditionError} and writes nothing.
|
|
38
|
+
*
|
|
39
|
+
* For a caller whose right to write can lapse while the insert is in
|
|
40
|
+
* flight. Per attempt rather than per call because contention retries the
|
|
41
|
+
* insert after an awaited backoff, and the world can move under a caller
|
|
42
|
+
* during that sleep.
|
|
43
|
+
*/
|
|
44
|
+
insertPrecondition?: () => boolean;
|
|
34
45
|
}
|
|
35
46
|
|
|
36
47
|
declare type AddMessageResult = Awaited<ReturnType<addMessage_2>>;
|
package/package.json
CHANGED