@diagonal-hq/workflows 0.5.0 → 0.5.2
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.
|
@@ -27,7 +27,7 @@ async function transaction(fn) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// packages/workflows/src/generated/capabilities.ts
|
|
30
|
-
var SDK_VERSION =
|
|
30
|
+
var SDK_VERSION = 67;
|
|
31
31
|
var ai = {
|
|
32
32
|
/** Ask a decisions model typed questions about some content and get labelled answers with their probabilities */
|
|
33
33
|
decide: (input) => invoke("ai.decide", input),
|
package/dist/data.d.ts
CHANGED
|
@@ -60,20 +60,14 @@ export declare const data: {
|
|
|
60
60
|
create: <R extends ResourceKey>(input: Omit<DataCreateInput, "resource" | "data"> & {
|
|
61
61
|
resource: R;
|
|
62
62
|
data: InputOf<R>;
|
|
63
|
-
}) => Promise<
|
|
64
|
-
id: string;
|
|
65
|
-
} & Record<string, unknown>>;
|
|
63
|
+
}) => Promise<RecordOf<R>>;
|
|
66
64
|
find: <R extends ResourceKey>(input: Omit<DataFindInput, "resource"> & {
|
|
67
65
|
resource: R;
|
|
68
|
-
}) => Promise<
|
|
69
|
-
id: string;
|
|
70
|
-
} & Record<string, unknown>>;
|
|
66
|
+
}) => Promise<RecordOf<R>>;
|
|
71
67
|
update: <R extends ResourceKey>(input: Omit<DataUpdateInput, "resource" | "data"> & {
|
|
72
68
|
resource: R;
|
|
73
69
|
data: InputOf<R>;
|
|
74
|
-
}) => Promise<
|
|
75
|
-
id: string;
|
|
76
|
-
} & Record<string, unknown>>;
|
|
70
|
+
}) => Promise<RecordOf<R>>;
|
|
77
71
|
/**
|
|
78
72
|
* One page of the records that the search matches: 50 records by default, and at most 100 with
|
|
79
73
|
* `pageSize`. To read every match, use `data.each`, which requests the pages for you.
|
|
@@ -84,34 +78,24 @@ export declare const data: {
|
|
|
84
78
|
each: typeof each;
|
|
85
79
|
delete: <R extends ResourceKey>(input: Omit<DataDeleteInput, "resource"> & {
|
|
86
80
|
resource: R;
|
|
87
|
-
}) => Promise<
|
|
88
|
-
id: string;
|
|
89
|
-
} & Record<string, unknown>>;
|
|
81
|
+
}) => Promise<RecordOf<R>>;
|
|
90
82
|
restore: <R extends ResourceKey>(input: Omit<DataRestoreInput, "resource"> & {
|
|
91
83
|
resource: R;
|
|
92
|
-
}) => Promise<
|
|
93
|
-
id: string;
|
|
94
|
-
} & Record<string, unknown>>;
|
|
84
|
+
}) => Promise<RecordOf<R>>;
|
|
95
85
|
count: <R extends ResourceKey>(input: Omit<DataCountInput, "resource"> & {
|
|
96
86
|
resource: R;
|
|
97
87
|
}) => Promise<number>;
|
|
98
88
|
findOrCreate: <R extends ResourceKey>(input: Omit<DataFindOrCreateInput, "resource"> & {
|
|
99
89
|
resource: R;
|
|
100
|
-
}) => Promise<
|
|
101
|
-
id: string;
|
|
102
|
-
} & Record<string, unknown>>;
|
|
90
|
+
}) => Promise<RecordOf<R>>;
|
|
103
91
|
updateOrCreate: <R extends ResourceKey>(input: Omit<DataUpdateOrCreateInput, "resource"> & {
|
|
104
92
|
resource: R;
|
|
105
|
-
}) => Promise<
|
|
106
|
-
id: string;
|
|
107
|
-
} & Record<string, unknown>>;
|
|
93
|
+
}) => Promise<RecordOf<R>>;
|
|
108
94
|
/** Create all of `records` in one call. The call has no limit on the number of records. */
|
|
109
95
|
createMany: <R extends ResourceKey>(input: Omit<DataCreateManyInput, "resource" | "records"> & {
|
|
110
96
|
resource: R;
|
|
111
97
|
records: Array<InputOf<R>>;
|
|
112
|
-
}) => Promise<
|
|
113
|
-
id: string;
|
|
114
|
-
} & Record<string, unknown>)[]>;
|
|
98
|
+
}) => Promise<Array<RecordOf<R>>>;
|
|
115
99
|
deleteMany: <R extends ResourceKey>(input: Omit<DataDeleteManyInput, "resource"> & {
|
|
116
100
|
resource: R;
|
|
117
101
|
}) => Promise<DataDeleteManyOutput>;
|
|
@@ -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 = 67;
|
|
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/package.json
CHANGED