@diagonal-hq/workflows 0.2.0 → 0.3.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.js";
2
2
  import type { ContentDocument } from "../input.js";
3
- export declare const SDK_VERSION = 55;
3
+ export declare const SDK_VERSION = 56;
4
4
  export interface AiDecideInput {
5
5
  state: unknown;
6
6
  questions: Array<{
@@ -1938,7 +1938,7 @@ export declare const file: {
1938
1938
  changeVisibility: (input: FileChangeVisibilityInput) => Promise<FileChangeVisibilityOutput>;
1939
1939
  /** Download a file from a public http(s) URL and save it privately in the workspace */
1940
1940
  createFromUrl: (input: FileCreateFromUrlInput) => Promise<FileCreateFromUrlOutput>;
1941
- /** Create a public library master from an accessible workspace file, preserving external sources. Returns the library File ID */
1941
+ /** Create a public library master from an accessible workspace file, preserving external sources. Accepts images, video, audio and PDF by the type detected from bytes. Store other files in a record file field. Returns the library File ID */
1942
1942
  createMediaLibraryItem: (input: FileCreateMediaLibraryItemInput) => Promise<FileCreateMediaLibraryItemOutput>;
1943
1943
  /** Generate a QR code PNG image that encodes a value and save it privately in the workspace */
1944
1944
  createQrCode: (input: FileCreateQrCodeInput) => Promise<FileCreateQrCodeOutput>;
package/dist/index.js CHANGED
@@ -42,7 +42,7 @@ async function transaction(fn) {
42
42
  }
43
43
 
44
44
  // packages/workflows/src/generated/capabilities.ts
45
- var SDK_VERSION = 55;
45
+ var SDK_VERSION = 56;
46
46
  var ai = {
47
47
  /** Ask a decisions model typed questions about some content and get labelled answers with their probabilities */
48
48
  decide: (input) => invoke("ai.decide", input),
@@ -142,7 +142,7 @@ var file = {
142
142
  changeVisibility: (input) => invoke("file.change_visibility", input),
143
143
  /** Download a file from a public http(s) URL and save it privately in the workspace */
144
144
  createFromUrl: (input) => invoke("file.create_from_url", input),
145
- /** Create a public library master from an accessible workspace file, preserving external sources. Returns the library File ID */
145
+ /** Create a public library master from an accessible workspace file, preserving external sources. Accepts images, video, audio and PDF by the type detected from bytes. Store other files in a record file field. Returns the library File ID */
146
146
  createMediaLibraryItem: (input) => invoke("file.create_media_library_item", input),
147
147
  /** Generate a QR code PNG image that encodes a value and save it privately in the workspace */
148
148
  createQrCode: (input) => invoke("file.create_qr_code", input)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@diagonal-hq/workflows",
3
- "version": "0.2.0",
3
+ "version": "0.3.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": {