@diagonal-hq/cli 0.27.0 → 0.28.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ResourceKeyWith } from '../data';
|
|
2
2
|
import type { ContentDocument } from '../input';
|
|
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": {
|
|
@@ -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;
|