@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 = 70;
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 = 70;
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
@@ -37,7 +37,7 @@ import {
37
37
  web,
38
38
  workflow,
39
39
  workspace
40
- } from "./chunks/chunk-DRZ7TQYF.js";
40
+ } from "./chunks/chunk-FDU4BQPD.js";
41
41
  import {
42
42
  InputField,
43
43
  InputSchema,
@@ -35,7 +35,7 @@ import {
35
35
  web,
36
36
  workflow,
37
37
  workspace
38
- } from "../chunks/chunk-DRZ7TQYF.js";
38
+ } from "../chunks/chunk-FDU4BQPD.js";
39
39
  import {
40
40
  InputField,
41
41
  InputSchema,
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/workflows",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "The authoring API of Diagonal managed workflows, their capabilities, and the workflow test helpers.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {