@diagonal-hq/workflows 0.7.0 → 0.8.0
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.
|
@@ -97,7 +97,7 @@ function isFailure(value2) {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
// packages/workflows/src/generated/capabilities.ts
|
|
100
|
-
var SDK_VERSION =
|
|
100
|
+
var SDK_VERSION = 71;
|
|
101
101
|
var ai = {
|
|
102
102
|
/** Ask a decisions model typed questions about some content and get labelled answers with their probabilities */
|
|
103
103
|
decide: (input) => invoke("ai.decide", input),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ResourceKeyWith } from "../data.js";
|
|
2
2
|
import type { ContentDocument } from "../input.js";
|
|
3
|
-
export declare const SDK_VERSION =
|
|
3
|
+
export declare const SDK_VERSION = 71;
|
|
4
4
|
export interface WorkspaceSystemFields {
|
|
5
5
|
"ai_custom_system_prompt": string | null;
|
|
6
6
|
"brand_kit": {
|
package/dist/index.js
CHANGED
package/dist/profiles/test.js
CHANGED
package/dist/workflow.d.ts
CHANGED
|
@@ -15,8 +15,23 @@ export interface RequestContext {
|
|
|
15
15
|
url: string;
|
|
16
16
|
params: Record<string, string>;
|
|
17
17
|
query: Record<string, unknown>;
|
|
18
|
+
/** The request input: the payload with the query string values added. */
|
|
18
19
|
body: Record<string, unknown>;
|
|
20
|
+
/** The payload as the caller sent it, without the query string. */
|
|
21
|
+
payload: Record<string, unknown>;
|
|
22
|
+
/** Header names are lowercase. A header with more than one value joins them with `, `. */
|
|
19
23
|
headers: Record<string, string>;
|
|
24
|
+
/**
|
|
25
|
+
* The raw value of each field that the request contract of the trigger declares, under its
|
|
26
|
+
* declared key, as a graph `request.input` reference reads it. A field that the request does
|
|
27
|
+
* not carry is absent. A header has its first value only.
|
|
28
|
+
*/
|
|
29
|
+
declared: {
|
|
30
|
+
params: Record<string, unknown>;
|
|
31
|
+
query: Record<string, unknown>;
|
|
32
|
+
headers: Record<string, unknown>;
|
|
33
|
+
body: Record<string, unknown>;
|
|
34
|
+
};
|
|
20
35
|
}
|
|
21
36
|
export interface ScriptExecution {
|
|
22
37
|
id: string;
|
package/package.json
CHANGED