@diagonal-hq/workflows 0.9.0 → 0.10.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 = 76;
|
|
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),
|
|
@@ -334,7 +334,7 @@ var text = {
|
|
|
334
334
|
/** Hash a text value */
|
|
335
335
|
hash: (input) => invoke("text.hash", input),
|
|
336
336
|
/** Generate a random UUID v7 */
|
|
337
|
-
randomUuid: (input) => invoke("text.random_uuid", input),
|
|
337
|
+
randomUuid: (input = {}) => invoke("text.random_uuid", input),
|
|
338
338
|
/** Convert a plain text string into rich Content */
|
|
339
339
|
toContent: (input) => invoke("text.to_content", input)
|
|
340
340
|
};
|
|
@@ -404,7 +404,7 @@ var workspace = {
|
|
|
404
404
|
/** Get the value of a field in a workspace */
|
|
405
405
|
value: (input) => invoke("workspace.value", input),
|
|
406
406
|
/** Get all workspace field values as a dictionary */
|
|
407
|
-
values: (input) => invoke("workspace.values", input)
|
|
407
|
+
values: (input = {}) => invoke("workspace.values", input)
|
|
408
408
|
};
|
|
409
409
|
|
|
410
410
|
// packages/workflows/src/data.ts
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ResourceKeyWith } from "../data.js";
|
|
2
2
|
import type { ContentDocument } from "../input.js";
|
|
3
3
|
import type { DeepReadonly, Liquid, StaticLiquid } from "../liquid.js";
|
|
4
|
-
export declare const SDK_VERSION =
|
|
4
|
+
export declare const SDK_VERSION = 76;
|
|
5
5
|
export interface WorkspaceSystemFields {
|
|
6
6
|
"ai_custom_system_prompt": string | null;
|
|
7
7
|
"brand_kit": {
|
|
@@ -964,6 +964,8 @@ export interface NumberFormatInput {
|
|
|
964
964
|
}
|
|
965
965
|
export type NumberFormatOutput = string;
|
|
966
966
|
export interface PackageInstallInputInput {
|
|
967
|
+
package_id: string;
|
|
968
|
+
key: string;
|
|
967
969
|
}
|
|
968
970
|
export type PackageInstallInputOutput = unknown;
|
|
969
971
|
export interface PageUrlInput {
|
|
@@ -1811,8 +1813,7 @@ export interface TextHashInput {
|
|
|
1811
1813
|
value: string;
|
|
1812
1814
|
}
|
|
1813
1815
|
export type TextHashOutput = string;
|
|
1814
|
-
export
|
|
1815
|
-
}
|
|
1816
|
+
export type TextRandomUuidInput = Record<string, never>;
|
|
1816
1817
|
export type TextRandomUuidOutput = string;
|
|
1817
1818
|
export interface TextToContentInput {
|
|
1818
1819
|
value: string;
|
|
@@ -1870,11 +1871,9 @@ export interface TiptapParseInput {
|
|
|
1870
1871
|
placeholder?: string;
|
|
1871
1872
|
}
|
|
1872
1873
|
export type TiptapParseOutput = unknown;
|
|
1873
|
-
export
|
|
1874
|
-
}
|
|
1874
|
+
export type TransactionBeginInput = Record<string, never>;
|
|
1875
1875
|
export type TransactionBeginOutput = null;
|
|
1876
|
-
export
|
|
1877
|
-
}
|
|
1876
|
+
export type TransactionCommitInput = Record<string, never>;
|
|
1878
1877
|
export type TransactionCommitOutput = null;
|
|
1879
1878
|
export interface TransactionRollbackInput {
|
|
1880
1879
|
error?: {
|
|
@@ -2097,8 +2096,7 @@ export interface WorkspaceValueInput {
|
|
|
2097
2096
|
defaultValue?: unknown;
|
|
2098
2097
|
}
|
|
2099
2098
|
export type WorkspaceValueOutput = unknown;
|
|
2100
|
-
export
|
|
2101
|
-
}
|
|
2099
|
+
export type WorkspaceValuesInput = Record<string, never>;
|
|
2102
2100
|
export type WorkspaceValuesOutput = Record<string, unknown>;
|
|
2103
2101
|
export declare const ai: {
|
|
2104
2102
|
/** Ask a decisions model typed questions about some content and get labelled answers with their probabilities */
|
|
@@ -2337,7 +2335,7 @@ export declare const text: {
|
|
|
2337
2335
|
/** Hash a text value */
|
|
2338
2336
|
hash: (input: TextHashInput) => Promise<TextHashOutput>;
|
|
2339
2337
|
/** Generate a random UUID v7 */
|
|
2340
|
-
randomUuid: (input
|
|
2338
|
+
randomUuid: (input?: TextRandomUuidInput) => Promise<TextRandomUuidOutput>;
|
|
2341
2339
|
/** Convert a plain text string into rich Content */
|
|
2342
2340
|
toContent: (input: TextToContentInput) => Promise<TextToContentOutput>;
|
|
2343
2341
|
};
|
|
@@ -2367,9 +2365,9 @@ export declare const tiptap: {
|
|
|
2367
2365
|
};
|
|
2368
2366
|
export declare const transaction: {
|
|
2369
2367
|
/** Transaction control for transaction(). */
|
|
2370
|
-
begin: (input
|
|
2368
|
+
begin: (input?: TransactionBeginInput) => Promise<TransactionBeginOutput>;
|
|
2371
2369
|
/** Transaction control for transaction(). */
|
|
2372
|
-
commit: (input
|
|
2370
|
+
commit: (input?: TransactionCommitInput) => Promise<TransactionCommitOutput>;
|
|
2373
2371
|
/** Transaction control for transaction(). */
|
|
2374
2372
|
rollback: (input: TransactionRollbackInput) => Promise<TransactionRollbackOutput>;
|
|
2375
2373
|
};
|
|
@@ -2415,5 +2413,5 @@ export declare const workspace: {
|
|
|
2415
2413
|
/** Get the value of a field in a workspace */
|
|
2416
2414
|
value: (input: WorkspaceValueInput) => Promise<WorkspaceValueOutput>;
|
|
2417
2415
|
/** Get all workspace field values as a dictionary */
|
|
2418
|
-
values: (input
|
|
2416
|
+
values: (input?: WorkspaceValuesInput) => Promise<WorkspaceValuesOutput>;
|
|
2419
2417
|
};
|
package/dist/index.js
CHANGED
package/dist/profiles/test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WorkspaceSystemFields } from "./generated/capabilities.js";
|
|
1
|
+
import { type WorkspaceSystemFields, type WorkspaceValuesInput } from "./generated/capabilities.js";
|
|
2
2
|
import type { WorkspaceFieldCatalog } from "./index.js";
|
|
3
3
|
type Fields = Omit<WorkspaceSystemFields, keyof WorkspaceFieldCatalog> & WorkspaceFieldCatalog;
|
|
4
4
|
type Property<T, K extends string> = T extends null | undefined ? never : T extends readonly (infer Item)[] ? K extends `${number}` ? K extends keyof T ? T[K] : Item : unknown : T extends object ? K extends keyof T ? T[K] : unknown : unknown;
|
|
@@ -27,7 +27,7 @@ export declare const workspace: {
|
|
|
27
27
|
key: K;
|
|
28
28
|
value?: WriteValue<NoInfer<K>>;
|
|
29
29
|
}) => Promise<WriteValue<K>>;
|
|
30
|
-
values: (input?:
|
|
30
|
+
values: (input?: WorkspaceValuesInput) => Promise<WorkspaceValues>;
|
|
31
31
|
setValues: <V extends Record<string, unknown> = Record<never, never>>(input: {
|
|
32
32
|
values?: V & WrittenValues<NoInfer<V>>;
|
|
33
33
|
}) => Promise<WrittenValues<V>>;
|
package/package.json
CHANGED