@takeshape/schema 11.85.4 → 11.88.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.
- package/dist/builtin-schema.js +29 -68
- package/dist/create-input-schema.js +13 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.js +3 -1
- package/dist/migration/to/v3.55.0.d.ts +4 -0
- package/dist/migration/to/v3.55.0.js +10 -0
- package/dist/migration/types.d.ts +2 -1
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.js +2 -1
- package/dist/project-schema/latest.d.ts +32 -22
- package/dist/project-schema/migrate.js +4 -1
- package/dist/project-schema/v3.48.0.d.ts +30 -20
- package/dist/project-schema/v3.49.0.d.ts +30 -20
- package/dist/project-schema/v3.50.0.d.ts +30 -20
- package/dist/project-schema/v3.51.0.d.ts +30 -20
- package/dist/project-schema/v3.52.0.d.ts +30 -20
- package/dist/project-schema/v3.53.0.d.ts +30 -20
- package/dist/project-schema/v3.54.0.d.ts +30 -20
- package/dist/project-schema/v3.55.0.d.ts +2344 -0
- package/dist/project-schema/v3.55.0.js +7 -0
- package/dist/refs.js +12 -6
- package/dist/resolvers/takeshape/assets/asset-image-meta.d.ts +77 -0
- package/dist/resolvers/takeshape/assets/asset-image-meta.js +95 -0
- package/dist/resolvers/takeshape/assets/asset-image-params.d.ts +899 -0
- package/dist/resolvers/takeshape/assets/asset-image-params.js +723 -0
- package/dist/resolvers/takeshape/assets/asset-image.d.ts +15 -0
- package/dist/resolvers/takeshape/assets/asset-image.js +12 -0
- package/dist/resolvers/takeshape/assets/asset.d.ts +123 -0
- package/dist/resolvers/takeshape/assets/asset.js +105 -0
- package/dist/resolvers/takeshape/assets/constants.d.ts +11 -0
- package/dist/resolvers/takeshape/assets/constants.js +11 -0
- package/dist/runtime-schema.js +2 -1
- package/dist/schema-util.js +9 -2
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/project-schema/experimental.json +41 -3
- package/dist/schemas/project-schema/latest.json +6 -3
- package/dist/schemas/project-schema/v3.55.0.json +3515 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/util/patch-schema.js +2 -1
- package/examples/latest/agent-schema.json +1 -1
- package/examples/latest/all-fields-shapes-inline.json +1 -1
- package/examples/latest/all-fields-shapes.json +1 -1
- package/examples/latest/betzino.json +1 -1
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/clear-cache-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/complex-schema.json +1 -1
- package/examples/latest/edit-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/klirr-schema.json +1 -1
- package/examples/latest/layers/rick-and-morty-layer.json +1 -1
- package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
- package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
- package/examples/latest/layers/wordpress-2024-01.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/nested-shape-arrays.json +1 -1
- package/examples/latest/one-earth.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/rag-example.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +1 -1
- package/examples/latest/rick-and-morty-graphql.json +1 -1
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/rick-and-morty-user-schema.json +1 -1
- package/examples/latest/rick-and-morty-with-indexing.json +1 -1
- package/examples/latest/schema-where-filter.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/schema-with-rick-and-morty.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shape-editor-schema-edited.json +1 -1
- package/examples/latest/shape-editor-schema-initial.json +1 -1
- package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-product-2022-07.json +1 -1
- package/examples/latest/shopify-product-2023-04.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +1 -1
- package/examples/latest/stripe-product-runtime-schema.json +1 -1
- package/examples/latest/stripe-starter-resolved.json +1 -1
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/examples/latest/valvoline-ai-demo.json +1 -1
- package/examples/latest/vector-search-schema.json +1 -1
- package/package.json +5 -5
package/dist/builtin-schema.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { embeddingSearchArgsSchema } from "./resolvers/ai/embedding-search.js";
|
|
2
|
+
import { schema as assetSchema } from "./resolvers/takeshape/assets/asset.js";
|
|
3
|
+
import { schema as assetImageSchema } from "./resolvers/takeshape/assets/asset-image.js";
|
|
4
|
+
import { schema as assetImageMetaSchema } from "./resolvers/takeshape/assets/asset-image-meta.js";
|
|
5
|
+
import { schema as assetImageParamsSchema } from "./resolvers/takeshape/assets/asset-image-params.js";
|
|
6
|
+
import { ASSET_IMAGE_META_SHAPE_ID, ASSET_IMAGE_META_SHAPE_NAME, ASSET_IMAGE_PARAMS_SHAPE_ID, ASSET_IMAGE_PARAMS_SHAPE_NAME, ASSET_IMAGE_SHAPE_ID, ASSET_IMAGE_SHAPE_NAME, ASSET_SHAPE_ID, ASSET_SHAPE_NAME } from "./resolvers/takeshape/assets/constants.js";
|
|
2
7
|
export function isAsset(content) {
|
|
3
|
-
return content._contentTypeId ===
|
|
8
|
+
return content._contentTypeId === ASSET_SHAPE_ID || content._shapeId === ASSET_SHAPE_ID;
|
|
4
9
|
}
|
|
5
10
|
const ASSET_PATH = 'Hk6FQuz5';
|
|
6
11
|
export function getAssetS3Path(content) {
|
|
@@ -127,77 +132,33 @@ export const builtInShapes = {
|
|
|
127
132
|
required: ['id', 'email', 'fullName']
|
|
128
133
|
}
|
|
129
134
|
},
|
|
130
|
-
|
|
131
|
-
id:
|
|
132
|
-
name:
|
|
135
|
+
[ASSET_SHAPE_NAME]: {
|
|
136
|
+
id: ASSET_SHAPE_ID,
|
|
137
|
+
name: ASSET_SHAPE_NAME,
|
|
133
138
|
title: 'Asset',
|
|
134
139
|
model: {
|
|
135
140
|
type: 'multiple'
|
|
136
141
|
},
|
|
137
|
-
schema:
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
'@mapping': 'shapedb:Asset.H1oYQOM9'
|
|
158
|
-
},
|
|
159
|
-
caption: {
|
|
160
|
-
type: 'object',
|
|
161
|
-
title: 'Caption',
|
|
162
|
-
'@mapping': 'shapedb:Asset.SyWVsd98x',
|
|
163
|
-
'@tag': 'draftjs',
|
|
164
|
-
'@l10n': true
|
|
165
|
-
},
|
|
166
|
-
credit: {
|
|
167
|
-
type: 'object',
|
|
168
|
-
title: 'Credit',
|
|
169
|
-
'@mapping': 'shapedb:Asset.Skn_i_5Ll',
|
|
170
|
-
'@tag': 'draftjs',
|
|
171
|
-
'@l10n': true
|
|
172
|
-
},
|
|
173
|
-
path: {
|
|
174
|
-
type: 'string',
|
|
175
|
-
title: 'Path',
|
|
176
|
-
'@l10n': false,
|
|
177
|
-
minLength: 1,
|
|
178
|
-
'@mapping': 'shapedb:Asset.Hk6FQuz5'
|
|
179
|
-
},
|
|
180
|
-
mimeType: {
|
|
181
|
-
type: 'string',
|
|
182
|
-
title: 'MIME type',
|
|
183
|
-
'@l10n': false,
|
|
184
|
-
'@mapping': 'shapedb:Asset.SyCYX_Gq'
|
|
185
|
-
},
|
|
186
|
-
sourceUrl: {
|
|
187
|
-
type: 'string',
|
|
188
|
-
title: 'Source URL',
|
|
189
|
-
'@l10n': false,
|
|
190
|
-
'@mapping': 'shapedb:Asset.SJXSidnXE'
|
|
191
|
-
},
|
|
192
|
-
uploadStatus: {
|
|
193
|
-
type: 'string',
|
|
194
|
-
title: 'Upload status',
|
|
195
|
-
'@l10n': false,
|
|
196
|
-
'@mapping': 'shapedb:Asset.ByeAYXdG9'
|
|
197
|
-
}
|
|
198
|
-
},
|
|
199
|
-
required: ['filename', 'path']
|
|
200
|
-
}
|
|
142
|
+
schema: assetSchema
|
|
143
|
+
},
|
|
144
|
+
[ASSET_IMAGE_PARAMS_SHAPE_NAME]: {
|
|
145
|
+
id: ASSET_IMAGE_PARAMS_SHAPE_ID,
|
|
146
|
+
name: ASSET_IMAGE_PARAMS_SHAPE_NAME,
|
|
147
|
+
title: 'Asset Image Params',
|
|
148
|
+
type: 'input',
|
|
149
|
+
schema: assetImageParamsSchema
|
|
150
|
+
},
|
|
151
|
+
[ASSET_IMAGE_SHAPE_NAME]: {
|
|
152
|
+
id: ASSET_IMAGE_SHAPE_ID,
|
|
153
|
+
name: ASSET_IMAGE_SHAPE_NAME,
|
|
154
|
+
title: 'Asset Image',
|
|
155
|
+
schema: assetImageSchema
|
|
156
|
+
},
|
|
157
|
+
[ASSET_IMAGE_META_SHAPE_NAME]: {
|
|
158
|
+
id: ASSET_IMAGE_META_SHAPE_ID,
|
|
159
|
+
name: ASSET_IMAGE_META_SHAPE_NAME,
|
|
160
|
+
title: 'Asset Image Meta',
|
|
161
|
+
schema: assetImageMetaSchema
|
|
201
162
|
},
|
|
202
163
|
TSStaticSite: {
|
|
203
164
|
id: 'SITE',
|
|
@@ -34,14 +34,22 @@ export function createInputSchema(schema, options = {}) {
|
|
|
34
34
|
parent.type !== undefined) {
|
|
35
35
|
return REMOVE;
|
|
36
36
|
}
|
|
37
|
-
if (
|
|
38
|
-
const
|
|
39
|
-
for (const [key, prop] of Object.entries(value)) {
|
|
37
|
+
if (isIterableObject(value) && value.type === 'object' && isIterableObject(value.properties)) {
|
|
38
|
+
const properties = {};
|
|
39
|
+
for (const [key, prop] of Object.entries(value.properties)) {
|
|
40
40
|
if (isIterableObject(prop) && (!prop['@resolver'] || prop['@input'])) {
|
|
41
|
-
|
|
41
|
+
properties[key] = clone(prop, key, value);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
|
|
44
|
+
let required;
|
|
45
|
+
if (!options.isUpdate && Array.isArray(value.required)) {
|
|
46
|
+
required = value.required.filter((key) => Boolean(properties[key]));
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
...value,
|
|
50
|
+
properties,
|
|
51
|
+
required
|
|
52
|
+
};
|
|
45
53
|
}
|
|
46
54
|
if (isIterableObject(value) && isIterableObject(value['@input'])) {
|
|
47
55
|
const { '@input': input, '@l10n': l10n, '@syncLocaleStructure': syncLocaleStructure, '@mapping': mapping, title, ...output } = value;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from './project-schema/index.ts';
|
|
|
18
18
|
export * from './project-schema/migrate.ts';
|
|
19
19
|
export * from './refs.ts';
|
|
20
20
|
export * from './relationships.ts';
|
|
21
|
+
export * from './resolvers/takeshape/assets/constants.ts';
|
|
21
22
|
export * from './runtime-schema.ts';
|
|
22
23
|
export * from './scalars.ts';
|
|
23
24
|
export * from './schema-transform.ts';
|
package/dist/index.js
CHANGED
|
@@ -16,6 +16,7 @@ export * from "./project-schema/index.js";
|
|
|
16
16
|
export * from "./project-schema/migrate.js";
|
|
17
17
|
export * from "./refs.js";
|
|
18
18
|
export * from "./relationships.js";
|
|
19
|
+
export * from "./resolvers/takeshape/assets/constants.js";
|
|
19
20
|
export * from "./runtime-schema.js";
|
|
20
21
|
export * from "./scalars.js";
|
|
21
22
|
export * from "./schema-transform.js";
|
|
@@ -61,6 +61,7 @@ export declare const migrateTo: {
|
|
|
61
61
|
'v3.52.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_51_0, import("../index.ts").ProjectSchemaJSONV3_52_0>;
|
|
62
62
|
'v3.53.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_52_0, import("../index.ts").ProjectSchemaJSONV3_53_0>;
|
|
63
63
|
'v3.54.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_53_0, import("../index.ts").ProjectSchemaJSONV3_54_0>;
|
|
64
|
+
'v3.55.0': import("./types.ts").MigrateFunction<import("../index.ts").ProjectSchemaJSONV3_54_0, import("../index.ts").ProjectSchemaJSONV3_55_0>;
|
|
64
65
|
};
|
|
65
66
|
export * from './utils.ts';
|
|
66
67
|
export declare const listTypePrefix = "PaginatedList";
|
package/dist/migration/index.js
CHANGED
|
@@ -60,6 +60,7 @@ import migrateToV3_51_0 from "./to/v3.51.0.js";
|
|
|
60
60
|
import migrateToV3_52_0 from "./to/v3.52.0.js";
|
|
61
61
|
import migrateToV3_53_0 from "./to/v3.53.0.js";
|
|
62
62
|
import migrateToV3_54_0 from "./to/v3.54.0.js";
|
|
63
|
+
import migrateToV3_55_0 from "./to/v3.55.0.js";
|
|
63
64
|
export const migrateTo = {
|
|
64
65
|
'v3.0.0': migrateToV3_0_0,
|
|
65
66
|
'v3.1.0': migrateToV3_1_0,
|
|
@@ -122,7 +123,8 @@ export const migrateTo = {
|
|
|
122
123
|
'v3.51.0': migrateToV3_51_0,
|
|
123
124
|
'v3.52.0': migrateToV3_52_0,
|
|
124
125
|
'v3.53.0': migrateToV3_53_0,
|
|
125
|
-
'v3.54.0': migrateToV3_54_0
|
|
126
|
+
'v3.54.0': migrateToV3_54_0,
|
|
127
|
+
'v3.55.0': migrateToV3_55_0
|
|
126
128
|
};
|
|
127
129
|
export * from "./utils.js";
|
|
128
130
|
export const listTypePrefix = 'PaginatedList';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ProjectSchemaJSONV3_54_0, ProjectSchemaJSONV3_55_0 } from '../../project-schema/index.ts';
|
|
2
|
+
import type { MigrateFunction } from '../types.ts';
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_54_0, ProjectSchemaJSONV3_55_0>;
|
|
4
|
+
export default migrate;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AgentJSON, FormConfig, GuardJSON, ProjectSchemaJSON, QueryJSON, ServiceConfigJSON, ShapeJSON, Workflow } from '../project-schema/index.ts';
|
|
1
|
+
import type { AgentJSON, FormConfig, GuardJSON, ProjectSchemaJSON, QueryJSON, ServiceConfigJSON, ShapeJSON, ToolJSON, Workflow } from '../project-schema/index.ts';
|
|
2
2
|
import type { EncryptFn, SafeDecryptFn } from '../services/types.ts';
|
|
3
3
|
export type ProjectSchemaMigrationContext = {
|
|
4
4
|
generateDataKeyFn: () => Promise<string>;
|
|
@@ -11,6 +11,7 @@ export type ProjectSchemaUpdate = {
|
|
|
11
11
|
shapes?: Record<string, ShapeJSON | null>;
|
|
12
12
|
'ai-experimental.agents'?: Record<string, AgentJSON | null>;
|
|
13
13
|
'ai-experimental.guards'?: Record<string, GuardJSON | null>;
|
|
14
|
+
'ai-experimental.tools'?: Record<string, ToolJSON | null>;
|
|
14
15
|
forms?: Record<string, FormConfig | null>;
|
|
15
16
|
workflows?: Record<string, Workflow | null>;
|
|
16
17
|
services?: Record<string, ServiceConfigJSON | null>;
|
|
@@ -62,6 +62,7 @@ export type * from './v3.51.0.ts';
|
|
|
62
62
|
export type * from './v3.52.0.ts';
|
|
63
63
|
export type * from './v3.53.0.ts';
|
|
64
64
|
export type * from './v3.54.0.ts';
|
|
65
|
+
export type * from './v3.55.0.ts';
|
|
65
66
|
export type * from './v4.0.0.ts';
|
|
66
67
|
import { ProjectSchemaJSONV1_0_0 } from './v1.0.0.ts';
|
|
67
68
|
import { ProjectSchemaJSONV3_0_0 } from './v3.0.0.ts';
|
|
@@ -126,9 +127,10 @@ import { ProjectSchemaJSONV3_51_0 } from './v3.51.0.ts';
|
|
|
126
127
|
import { ProjectSchemaJSONV3_52_0 } from './v3.52.0.ts';
|
|
127
128
|
import { ProjectSchemaJSONV3_53_0 } from './v3.53.0.ts';
|
|
128
129
|
import { ProjectSchemaJSONV3_54_0 } from './v3.54.0.ts';
|
|
130
|
+
import { ProjectSchemaJSONV3_55_0 } from './v3.55.0.ts';
|
|
129
131
|
import { ProjectSchemaJSONV4_0_0 } from './v4.0.0.ts';
|
|
130
132
|
import { ProjectSchemaJSON } from './latest.ts';
|
|
131
|
-
export type AnyProjectSchemaJSON = ProjectSchemaJSONV1_0_0 | ProjectSchemaJSONV3_0_0 | ProjectSchemaJSONV3_1_0 | ProjectSchemaJSONV3_2_0 | ProjectSchemaJSONV3_3_0 | ProjectSchemaJSONV3_4_0 | ProjectSchemaJSONV3_5_0 | ProjectSchemaJSONV3_5_1 | ProjectSchemaJSONV3_6_0 | ProjectSchemaJSONV3_7_0 | ProjectSchemaJSONV3_8_0 | ProjectSchemaJSONV3_9_0 | ProjectSchemaJSONV3_10_0 | ProjectSchemaJSONV3_11_0 | ProjectSchemaJSONV3_12_0 | ProjectSchemaJSONV3_12_1 | ProjectSchemaJSONV3_12_2 | ProjectSchemaJSONV3_12_3 | ProjectSchemaJSONV3_13_0 | ProjectSchemaJSONV3_14_0 | ProjectSchemaJSONV3_15_0 | ProjectSchemaJSONV3_16_0 | ProjectSchemaJSONV3_17_0 | ProjectSchemaJSONV3_17_1 | ProjectSchemaJSONV3_18_0 | ProjectSchemaJSONV3_18_1 | ProjectSchemaJSONV3_18_2 | ProjectSchemaJSONV3_19_0 | ProjectSchemaJSONV3_20_0 | ProjectSchemaJSONV3_21_0 | ProjectSchemaJSONV3_22_0 | ProjectSchemaJSONV3_23_0 | ProjectSchemaJSONV3_24_0 | ProjectSchemaJSONV3_25_0 | ProjectSchemaJSONV3_26_0 | ProjectSchemaJSONV3_27_0 | ProjectSchemaJSONV3_28_0 | ProjectSchemaJSONV3_29_0 | ProjectSchemaJSONV3_30_0 | ProjectSchemaJSONV3_31_0 | ProjectSchemaJSONV3_32_0 | ProjectSchemaJSONV3_33_0 | ProjectSchemaJSONV3_34_0 | ProjectSchemaJSONV3_35_0 | ProjectSchemaJSONV3_36_0 | ProjectSchemaJSONV3_37_0 | ProjectSchemaJSONV3_38_0 | ProjectSchemaJSONV3_39_0 | ProjectSchemaJSONV3_40_0 | ProjectSchemaJSONV3_41_0 | ProjectSchemaJSONV3_42_0 | ProjectSchemaJSONV3_43_0 | ProjectSchemaJSONV3_44_0 | ProjectSchemaJSONV3_45_0 | ProjectSchemaJSONV3_46_0 | ProjectSchemaJSONV3_47_0 | ProjectSchemaJSONV3_48_0 | ProjectSchemaJSONV3_49_0 | ProjectSchemaJSONV3_50_0 | ProjectSchemaJSONV3_51_0 | ProjectSchemaJSONV3_52_0 | ProjectSchemaJSONV3_53_0 | ProjectSchemaJSONV3_54_0 | ProjectSchemaJSONV4_0_0 | ProjectSchemaJSON;
|
|
133
|
+
export type AnyProjectSchemaJSON = ProjectSchemaJSONV1_0_0 | ProjectSchemaJSONV3_0_0 | ProjectSchemaJSONV3_1_0 | ProjectSchemaJSONV3_2_0 | ProjectSchemaJSONV3_3_0 | ProjectSchemaJSONV3_4_0 | ProjectSchemaJSONV3_5_0 | ProjectSchemaJSONV3_5_1 | ProjectSchemaJSONV3_6_0 | ProjectSchemaJSONV3_7_0 | ProjectSchemaJSONV3_8_0 | ProjectSchemaJSONV3_9_0 | ProjectSchemaJSONV3_10_0 | ProjectSchemaJSONV3_11_0 | ProjectSchemaJSONV3_12_0 | ProjectSchemaJSONV3_12_1 | ProjectSchemaJSONV3_12_2 | ProjectSchemaJSONV3_12_3 | ProjectSchemaJSONV3_13_0 | ProjectSchemaJSONV3_14_0 | ProjectSchemaJSONV3_15_0 | ProjectSchemaJSONV3_16_0 | ProjectSchemaJSONV3_17_0 | ProjectSchemaJSONV3_17_1 | ProjectSchemaJSONV3_18_0 | ProjectSchemaJSONV3_18_1 | ProjectSchemaJSONV3_18_2 | ProjectSchemaJSONV3_19_0 | ProjectSchemaJSONV3_20_0 | ProjectSchemaJSONV3_21_0 | ProjectSchemaJSONV3_22_0 | ProjectSchemaJSONV3_23_0 | ProjectSchemaJSONV3_24_0 | ProjectSchemaJSONV3_25_0 | ProjectSchemaJSONV3_26_0 | ProjectSchemaJSONV3_27_0 | ProjectSchemaJSONV3_28_0 | ProjectSchemaJSONV3_29_0 | ProjectSchemaJSONV3_30_0 | ProjectSchemaJSONV3_31_0 | ProjectSchemaJSONV3_32_0 | ProjectSchemaJSONV3_33_0 | ProjectSchemaJSONV3_34_0 | ProjectSchemaJSONV3_35_0 | ProjectSchemaJSONV3_36_0 | ProjectSchemaJSONV3_37_0 | ProjectSchemaJSONV3_38_0 | ProjectSchemaJSONV3_39_0 | ProjectSchemaJSONV3_40_0 | ProjectSchemaJSONV3_41_0 | ProjectSchemaJSONV3_42_0 | ProjectSchemaJSONV3_43_0 | ProjectSchemaJSONV3_44_0 | ProjectSchemaJSONV3_45_0 | ProjectSchemaJSONV3_46_0 | ProjectSchemaJSONV3_47_0 | ProjectSchemaJSONV3_48_0 | ProjectSchemaJSONV3_49_0 | ProjectSchemaJSONV3_50_0 | ProjectSchemaJSONV3_51_0 | ProjectSchemaJSONV3_52_0 | ProjectSchemaJSONV3_53_0 | ProjectSchemaJSONV3_54_0 | ProjectSchemaJSONV3_55_0 | ProjectSchemaJSONV4_0_0 | ProjectSchemaJSON;
|
|
132
134
|
export declare const isProjectSchemaJSONV1_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV1_0_0;
|
|
133
135
|
export declare const isProjectSchemaJSONV3_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_0_0;
|
|
134
136
|
export declare const isProjectSchemaJSONV3_1_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_1_0;
|
|
@@ -192,5 +194,6 @@ export declare const isProjectSchemaJSONV3_51_0: (projectSchema: AnyProjectSchem
|
|
|
192
194
|
export declare const isProjectSchemaJSONV3_52_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_52_0;
|
|
193
195
|
export declare const isProjectSchemaJSONV3_53_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_53_0;
|
|
194
196
|
export declare const isProjectSchemaJSONV3_54_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_54_0;
|
|
197
|
+
export declare const isProjectSchemaJSONV3_55_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV3_55_0;
|
|
195
198
|
export declare const isLatestProjectSchemaJSON: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSON;
|
|
196
199
|
export declare const isProjectSchemaJSONV4_0_0: (projectSchema: AnyProjectSchemaJSON) => projectSchema is ProjectSchemaJSONV4_0_0;
|
|
@@ -74,5 +74,6 @@ export const isProjectSchemaJSONV3_51_0 = createVersionPredicate('3.51.0');
|
|
|
74
74
|
export const isProjectSchemaJSONV3_52_0 = createVersionPredicate('3.52.0');
|
|
75
75
|
export const isProjectSchemaJSONV3_53_0 = createVersionPredicate('3.53.0');
|
|
76
76
|
export const isProjectSchemaJSONV3_54_0 = createVersionPredicate('3.54.0');
|
|
77
|
-
export const
|
|
77
|
+
export const isProjectSchemaJSONV3_55_0 = createVersionPredicate('3.55.0');
|
|
78
|
+
export const isLatestProjectSchemaJSON = createVersionPredicate('3.55.0');
|
|
78
79
|
export const isProjectSchemaJSONV4_0_0 = createVersionPredicate('4.0.0');
|
|
@@ -130,7 +130,7 @@ export type DelegateResolverName = 'delegate';
|
|
|
130
130
|
/**
|
|
131
131
|
* Name of the resolver function.
|
|
132
132
|
*/
|
|
133
|
-
export type TakeshapeResolverName = 'takeshape:get' | 'takeshape:getUser' | 'takeshape:search' | 'takeshape:vectorSearch' | 'takeshape:queryApiIndex';
|
|
133
|
+
export type TakeshapeResolverName = 'takeshape:get' | 'takeshape:getUser' | 'takeshape:search' | 'takeshape:vectorSearch' | 'takeshape:queryApiIndex' | 'takeshape:assetUrl' | 'takeshape:assetImage' | 'takeshape:assetImageMeta';
|
|
134
134
|
/**
|
|
135
135
|
* Name of the resolver function.
|
|
136
136
|
*/
|
|
@@ -293,7 +293,19 @@ export type InteractionTimeoutMilliseconds1 = number;
|
|
|
293
293
|
export type Variables = AgentVariable[];
|
|
294
294
|
export type AgentExecution = AgentExecutionGraphQL | AgentExecutionGenerate | AgentExecutionChat;
|
|
295
295
|
export type AgentAIStateInput = AgentAIStateInputArgument | AgentAIStateInputTemplate;
|
|
296
|
-
export type AgentToolConfigArg =
|
|
296
|
+
export type AgentToolConfigArg = AgentControlled | VariableValue;
|
|
297
|
+
/**
|
|
298
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
299
|
+
*/
|
|
300
|
+
export type ToolArgumentName = string;
|
|
301
|
+
/**
|
|
302
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
303
|
+
*/
|
|
304
|
+
export type ToolArgumentName1 = string;
|
|
305
|
+
/**
|
|
306
|
+
* Name of variable to pull value from.
|
|
307
|
+
*/
|
|
308
|
+
export type StateVariableName = string;
|
|
297
309
|
export type History1 = boolean;
|
|
298
310
|
/**
|
|
299
311
|
* Maximum number of tokens to generate. Defaults to 1024
|
|
@@ -454,6 +466,7 @@ export type Filter1 = {
|
|
|
454
466
|
type: Type;
|
|
455
467
|
threshold: Threshold;
|
|
456
468
|
}[];
|
|
469
|
+
export type ToolArg = AgentControlled;
|
|
457
470
|
/**
|
|
458
471
|
* Human-readable id for use in the UI
|
|
459
472
|
*/
|
|
@@ -598,7 +611,7 @@ export interface ProjectSchemaJSON {
|
|
|
598
611
|
/**
|
|
599
612
|
* The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format.
|
|
600
613
|
*/
|
|
601
|
-
schemaVersion: '3.
|
|
614
|
+
schemaVersion: '3.55.0';
|
|
602
615
|
/**
|
|
603
616
|
* The ID of the TakeShape project this schema belongs to.
|
|
604
617
|
*/
|
|
@@ -1840,33 +1853,20 @@ export interface AgentAIStateInputTemplate {
|
|
|
1840
1853
|
type: 'template';
|
|
1841
1854
|
inputTemplate: string;
|
|
1842
1855
|
}
|
|
1843
|
-
/**
|
|
1844
|
-
* This interface was referenced by `ToolMap`'s JSON-Schema definition
|
|
1845
|
-
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1846
|
-
*/
|
|
1847
1856
|
export interface AgentToolConfig {
|
|
1848
1857
|
ref: string;
|
|
1849
1858
|
description?: string;
|
|
1850
1859
|
args?: AgentToolConfigArg[];
|
|
1851
1860
|
selectionSet?: string;
|
|
1852
1861
|
}
|
|
1853
|
-
export interface
|
|
1862
|
+
export interface AgentControlled {
|
|
1854
1863
|
type: 'agent';
|
|
1855
|
-
|
|
1856
|
-
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1857
|
-
*/
|
|
1858
|
-
argName: string;
|
|
1864
|
+
argName: ToolArgumentName;
|
|
1859
1865
|
}
|
|
1860
|
-
export interface
|
|
1866
|
+
export interface VariableValue {
|
|
1861
1867
|
type: 'variable';
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
*/
|
|
1865
|
-
argName: string;
|
|
1866
|
-
/**
|
|
1867
|
-
* Name of variable to pull value from.
|
|
1868
|
-
*/
|
|
1869
|
-
variableName: string;
|
|
1868
|
+
argName: ToolArgumentName1;
|
|
1869
|
+
variableName: StateVariableName;
|
|
1870
1870
|
}
|
|
1871
1871
|
export interface AgentGenerateOptions {
|
|
1872
1872
|
history?: History1;
|
|
@@ -1986,7 +1986,17 @@ export interface ContextualGroundingPolicy {
|
|
|
1986
1986
|
filtersConfig: Filter1;
|
|
1987
1987
|
}
|
|
1988
1988
|
export interface ToolMap {
|
|
1989
|
-
[k: string]:
|
|
1989
|
+
[k: string]: ToolJSON;
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* This interface was referenced by `ToolMap`'s JSON-Schema definition
|
|
1993
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1994
|
+
*/
|
|
1995
|
+
export interface ToolJSON {
|
|
1996
|
+
ref: string;
|
|
1997
|
+
description?: string;
|
|
1998
|
+
args?: ToolArg[];
|
|
1999
|
+
selectionSet?: string;
|
|
1990
2000
|
}
|
|
1991
2001
|
/**
|
|
1992
2002
|
* This interface was referenced by `ProjectSchemaJSON`'s JSON-Schema
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { migrateTo } from "../migration/index.js";
|
|
2
|
-
import { isProjectSchemaJSONV1_0_0, isProjectSchemaJSONV3_0_0, isProjectSchemaJSONV3_1_0, isProjectSchemaJSONV3_2_0, isProjectSchemaJSONV3_3_0, isProjectSchemaJSONV3_4_0, isProjectSchemaJSONV3_5_0, isProjectSchemaJSONV3_5_1, isProjectSchemaJSONV3_6_0, isProjectSchemaJSONV3_7_0, isProjectSchemaJSONV3_8_0, isProjectSchemaJSONV3_9_0, isProjectSchemaJSONV3_10_0, isProjectSchemaJSONV3_11_0, isProjectSchemaJSONV3_12_0, isProjectSchemaJSONV3_12_1, isProjectSchemaJSONV3_12_2, isProjectSchemaJSONV3_12_3, isProjectSchemaJSONV3_13_0, isProjectSchemaJSONV3_14_0, isProjectSchemaJSONV3_15_0, isProjectSchemaJSONV3_16_0, isProjectSchemaJSONV3_17_0, isProjectSchemaJSONV3_17_1, isProjectSchemaJSONV3_18_0, isProjectSchemaJSONV3_18_1, isProjectSchemaJSONV3_18_2, isProjectSchemaJSONV3_19_0, isProjectSchemaJSONV3_20_0, isProjectSchemaJSONV3_21_0, isProjectSchemaJSONV3_22_0, isProjectSchemaJSONV3_23_0, isProjectSchemaJSONV3_24_0, isProjectSchemaJSONV3_25_0, isProjectSchemaJSONV3_26_0, isProjectSchemaJSONV3_27_0, isProjectSchemaJSONV3_28_0, isProjectSchemaJSONV3_29_0, isProjectSchemaJSONV3_30_0, isProjectSchemaJSONV3_31_0, isProjectSchemaJSONV3_32_0, isProjectSchemaJSONV3_33_0, isProjectSchemaJSONV3_34_0, isProjectSchemaJSONV3_35_0, isProjectSchemaJSONV3_36_0, isProjectSchemaJSONV3_37_0, isProjectSchemaJSONV3_38_0, isProjectSchemaJSONV3_39_0, isProjectSchemaJSONV3_40_0, isProjectSchemaJSONV3_41_0, isProjectSchemaJSONV3_42_0, isProjectSchemaJSONV3_43_0, isProjectSchemaJSONV3_44_0, isProjectSchemaJSONV3_45_0, isProjectSchemaJSONV3_46_0, isProjectSchemaJSONV3_47_0, isProjectSchemaJSONV3_48_0, isProjectSchemaJSONV3_49_0, isProjectSchemaJSONV3_50_0, isProjectSchemaJSONV3_51_0, isProjectSchemaJSONV3_52_0, isProjectSchemaJSONV3_53_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from "./index.js";
|
|
2
|
+
import { isProjectSchemaJSONV1_0_0, isProjectSchemaJSONV3_0_0, isProjectSchemaJSONV3_1_0, isProjectSchemaJSONV3_2_0, isProjectSchemaJSONV3_3_0, isProjectSchemaJSONV3_4_0, isProjectSchemaJSONV3_5_0, isProjectSchemaJSONV3_5_1, isProjectSchemaJSONV3_6_0, isProjectSchemaJSONV3_7_0, isProjectSchemaJSONV3_8_0, isProjectSchemaJSONV3_9_0, isProjectSchemaJSONV3_10_0, isProjectSchemaJSONV3_11_0, isProjectSchemaJSONV3_12_0, isProjectSchemaJSONV3_12_1, isProjectSchemaJSONV3_12_2, isProjectSchemaJSONV3_12_3, isProjectSchemaJSONV3_13_0, isProjectSchemaJSONV3_14_0, isProjectSchemaJSONV3_15_0, isProjectSchemaJSONV3_16_0, isProjectSchemaJSONV3_17_0, isProjectSchemaJSONV3_17_1, isProjectSchemaJSONV3_18_0, isProjectSchemaJSONV3_18_1, isProjectSchemaJSONV3_18_2, isProjectSchemaJSONV3_19_0, isProjectSchemaJSONV3_20_0, isProjectSchemaJSONV3_21_0, isProjectSchemaJSONV3_22_0, isProjectSchemaJSONV3_23_0, isProjectSchemaJSONV3_24_0, isProjectSchemaJSONV3_25_0, isProjectSchemaJSONV3_26_0, isProjectSchemaJSONV3_27_0, isProjectSchemaJSONV3_28_0, isProjectSchemaJSONV3_29_0, isProjectSchemaJSONV3_30_0, isProjectSchemaJSONV3_31_0, isProjectSchemaJSONV3_32_0, isProjectSchemaJSONV3_33_0, isProjectSchemaJSONV3_34_0, isProjectSchemaJSONV3_35_0, isProjectSchemaJSONV3_36_0, isProjectSchemaJSONV3_37_0, isProjectSchemaJSONV3_38_0, isProjectSchemaJSONV3_39_0, isProjectSchemaJSONV3_40_0, isProjectSchemaJSONV3_41_0, isProjectSchemaJSONV3_42_0, isProjectSchemaJSONV3_43_0, isProjectSchemaJSONV3_44_0, isProjectSchemaJSONV3_45_0, isProjectSchemaJSONV3_46_0, isProjectSchemaJSONV3_47_0, isProjectSchemaJSONV3_48_0, isProjectSchemaJSONV3_49_0, isProjectSchemaJSONV3_50_0, isProjectSchemaJSONV3_51_0, isProjectSchemaJSONV3_52_0, isProjectSchemaJSONV3_53_0, isProjectSchemaJSONV3_54_0, isProjectSchemaJSONV4_0_0, isLatestProjectSchemaJSON } from "./index.js";
|
|
3
3
|
export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
4
4
|
if (isLatestProjectSchemaJSON(projectSchema)) {
|
|
5
5
|
return projectSchema;
|
|
@@ -190,6 +190,9 @@ export async function migrateToLatestProjectSchema(context, projectSchema) {
|
|
|
190
190
|
if (isProjectSchemaJSONV3_53_0(projectSchema)) {
|
|
191
191
|
projectSchema = await migrateTo['v3.54.0'](context, projectSchema);
|
|
192
192
|
}
|
|
193
|
+
if (isProjectSchemaJSONV3_54_0(projectSchema)) {
|
|
194
|
+
projectSchema = await migrateTo['v3.55.0'](context, projectSchema);
|
|
195
|
+
}
|
|
193
196
|
if (isProjectSchemaJSONV4_0_0(projectSchema)) {
|
|
194
197
|
throw new Error('You are using an unreleased schema version. Migration is not possible');
|
|
195
198
|
}
|
|
@@ -268,7 +268,19 @@ export type InteractionTimeoutMillisecondsV3_48_01 = number;
|
|
|
268
268
|
export type VariablesV3_48_0 = AgentVariableV3_48_0[];
|
|
269
269
|
export type AgentExecutionV3_48_0 = AgentExecutionGraphQLV3_48_0 | AgentExecutionGenerateV3_48_0 | AgentExecutionChatV3_48_0;
|
|
270
270
|
export type AgentAIStateInputV3_48_0 = AgentAIStateInputArgumentV3_48_0 | AgentAIStateInputTemplateV3_48_0;
|
|
271
|
-
export type AgentToolConfigArgV3_48_0 =
|
|
271
|
+
export type AgentToolConfigArgV3_48_0 = AgentControlledV3_48_0 | VariableValueV3_48_0;
|
|
272
|
+
/**
|
|
273
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
274
|
+
*/
|
|
275
|
+
export type ToolArgumentNameV3_48_0 = string;
|
|
276
|
+
/**
|
|
277
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
278
|
+
*/
|
|
279
|
+
export type ToolArgumentNameV3_48_01 = string;
|
|
280
|
+
/**
|
|
281
|
+
* Name of variable to pull value from.
|
|
282
|
+
*/
|
|
283
|
+
export type StateVariableNameV3_48_0 = string;
|
|
272
284
|
export type HistoryV3_48_01 = boolean;
|
|
273
285
|
/**
|
|
274
286
|
* Maximum number of tokens to generate. Defaults to 1024
|
|
@@ -429,6 +441,7 @@ export type FilterV3_48_01 = {
|
|
|
429
441
|
type: TypeV3_48_0;
|
|
430
442
|
threshold: ThresholdV3_48_0;
|
|
431
443
|
}[];
|
|
444
|
+
export type ToolArgV3_48_0 = AgentControlledV3_48_0;
|
|
432
445
|
/**
|
|
433
446
|
* Human-readable id for use in the UI
|
|
434
447
|
*/
|
|
@@ -1688,33 +1701,20 @@ export interface AgentAIStateInputTemplateV3_48_0 {
|
|
|
1688
1701
|
type: 'template';
|
|
1689
1702
|
inputTemplate: string;
|
|
1690
1703
|
}
|
|
1691
|
-
/**
|
|
1692
|
-
* This interface was referenced by `ToolMapV3_48_0`'s JSON-Schema definition
|
|
1693
|
-
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1694
|
-
*/
|
|
1695
1704
|
export interface AgentToolConfigV3_48_0 {
|
|
1696
1705
|
ref: string;
|
|
1697
1706
|
description?: string;
|
|
1698
1707
|
args?: AgentToolConfigArgV3_48_0[];
|
|
1699
1708
|
selectionSet?: string;
|
|
1700
1709
|
}
|
|
1701
|
-
export interface
|
|
1710
|
+
export interface AgentControlledV3_48_0 {
|
|
1702
1711
|
type: 'agent';
|
|
1703
|
-
|
|
1704
|
-
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1705
|
-
*/
|
|
1706
|
-
argName: string;
|
|
1712
|
+
argName: ToolArgumentNameV3_48_0;
|
|
1707
1713
|
}
|
|
1708
|
-
export interface
|
|
1714
|
+
export interface VariableValueV3_48_0 {
|
|
1709
1715
|
type: 'variable';
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
*/
|
|
1713
|
-
argName: string;
|
|
1714
|
-
/**
|
|
1715
|
-
* Name of variable to pull value from.
|
|
1716
|
-
*/
|
|
1717
|
-
variableName: string;
|
|
1716
|
+
argName: ToolArgumentNameV3_48_01;
|
|
1717
|
+
variableName: StateVariableNameV3_48_0;
|
|
1718
1718
|
}
|
|
1719
1719
|
export interface AgentGenerateOptionsV3_48_0 {
|
|
1720
1720
|
history?: HistoryV3_48_01;
|
|
@@ -1834,7 +1834,17 @@ export interface ContextualGroundingPolicyV3_48_0 {
|
|
|
1834
1834
|
filtersConfig: FilterV3_48_01;
|
|
1835
1835
|
}
|
|
1836
1836
|
export interface ToolMapV3_48_0 {
|
|
1837
|
-
[k: string]:
|
|
1837
|
+
[k: string]: ToolJSONV3_48_0;
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* This interface was referenced by `ToolMapV3_48_0`'s JSON-Schema definition
|
|
1841
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1842
|
+
*/
|
|
1843
|
+
export interface ToolJSONV3_48_0 {
|
|
1844
|
+
ref: string;
|
|
1845
|
+
description?: string;
|
|
1846
|
+
args?: ToolArgV3_48_0[];
|
|
1847
|
+
selectionSet?: string;
|
|
1838
1848
|
}
|
|
1839
1849
|
/**
|
|
1840
1850
|
* This interface was referenced by `ProjectSchemaJSONV3_48_0`'s JSON-Schema
|
|
@@ -268,7 +268,19 @@ export type InteractionTimeoutMillisecondsV3_49_01 = number;
|
|
|
268
268
|
export type VariablesV3_49_0 = AgentVariableV3_49_0[];
|
|
269
269
|
export type AgentExecutionV3_49_0 = AgentExecutionGraphQLV3_49_0 | AgentExecutionGenerateV3_49_0 | AgentExecutionChatV3_49_0;
|
|
270
270
|
export type AgentAIStateInputV3_49_0 = AgentAIStateInputArgumentV3_49_0 | AgentAIStateInputTemplateV3_49_0;
|
|
271
|
-
export type AgentToolConfigArgV3_49_0 =
|
|
271
|
+
export type AgentToolConfigArgV3_49_0 = AgentControlledV3_49_0 | VariableValueV3_49_0;
|
|
272
|
+
/**
|
|
273
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
274
|
+
*/
|
|
275
|
+
export type ToolArgumentNameV3_49_0 = string;
|
|
276
|
+
/**
|
|
277
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
278
|
+
*/
|
|
279
|
+
export type ToolArgumentNameV3_49_01 = string;
|
|
280
|
+
/**
|
|
281
|
+
* Name of variable to pull value from.
|
|
282
|
+
*/
|
|
283
|
+
export type StateVariableNameV3_49_0 = string;
|
|
272
284
|
export type HistoryV3_49_01 = boolean;
|
|
273
285
|
/**
|
|
274
286
|
* Maximum number of tokens to generate. Defaults to 1024
|
|
@@ -429,6 +441,7 @@ export type FilterV3_49_01 = {
|
|
|
429
441
|
type: TypeV3_49_0;
|
|
430
442
|
threshold: ThresholdV3_49_0;
|
|
431
443
|
}[];
|
|
444
|
+
export type ToolArgV3_49_0 = AgentControlledV3_49_0;
|
|
432
445
|
/**
|
|
433
446
|
* Human-readable id for use in the UI
|
|
434
447
|
*/
|
|
@@ -1688,33 +1701,20 @@ export interface AgentAIStateInputTemplateV3_49_0 {
|
|
|
1688
1701
|
type: 'template';
|
|
1689
1702
|
inputTemplate: string;
|
|
1690
1703
|
}
|
|
1691
|
-
/**
|
|
1692
|
-
* This interface was referenced by `ToolMapV3_49_0`'s JSON-Schema definition
|
|
1693
|
-
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1694
|
-
*/
|
|
1695
1704
|
export interface AgentToolConfigV3_49_0 {
|
|
1696
1705
|
ref: string;
|
|
1697
1706
|
description?: string;
|
|
1698
1707
|
args?: AgentToolConfigArgV3_49_0[];
|
|
1699
1708
|
selectionSet?: string;
|
|
1700
1709
|
}
|
|
1701
|
-
export interface
|
|
1710
|
+
export interface AgentControlledV3_49_0 {
|
|
1702
1711
|
type: 'agent';
|
|
1703
|
-
|
|
1704
|
-
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1705
|
-
*/
|
|
1706
|
-
argName: string;
|
|
1712
|
+
argName: ToolArgumentNameV3_49_0;
|
|
1707
1713
|
}
|
|
1708
|
-
export interface
|
|
1714
|
+
export interface VariableValueV3_49_0 {
|
|
1709
1715
|
type: 'variable';
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
*/
|
|
1713
|
-
argName: string;
|
|
1714
|
-
/**
|
|
1715
|
-
* Name of variable to pull value from.
|
|
1716
|
-
*/
|
|
1717
|
-
variableName: string;
|
|
1716
|
+
argName: ToolArgumentNameV3_49_01;
|
|
1717
|
+
variableName: StateVariableNameV3_49_0;
|
|
1718
1718
|
}
|
|
1719
1719
|
export interface AgentGenerateOptionsV3_49_0 {
|
|
1720
1720
|
history?: HistoryV3_49_01;
|
|
@@ -1834,7 +1834,17 @@ export interface ContextualGroundingPolicyV3_49_0 {
|
|
|
1834
1834
|
filtersConfig: FilterV3_49_01;
|
|
1835
1835
|
}
|
|
1836
1836
|
export interface ToolMapV3_49_0 {
|
|
1837
|
-
[k: string]:
|
|
1837
|
+
[k: string]: ToolJSONV3_49_0;
|
|
1838
|
+
}
|
|
1839
|
+
/**
|
|
1840
|
+
* This interface was referenced by `ToolMapV3_49_0`'s JSON-Schema definition
|
|
1841
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1842
|
+
*/
|
|
1843
|
+
export interface ToolJSONV3_49_0 {
|
|
1844
|
+
ref: string;
|
|
1845
|
+
description?: string;
|
|
1846
|
+
args?: ToolArgV3_49_0[];
|
|
1847
|
+
selectionSet?: string;
|
|
1838
1848
|
}
|
|
1839
1849
|
/**
|
|
1840
1850
|
* This interface was referenced by `ProjectSchemaJSONV3_49_0`'s JSON-Schema
|
|
@@ -280,7 +280,19 @@ export type InteractionTimeoutMillisecondsV3_50_01 = number;
|
|
|
280
280
|
export type VariablesV3_50_0 = AgentVariableV3_50_0[];
|
|
281
281
|
export type AgentExecutionV3_50_0 = AgentExecutionGraphQLV3_50_0 | AgentExecutionGenerateV3_50_0 | AgentExecutionChatV3_50_0;
|
|
282
282
|
export type AgentAIStateInputV3_50_0 = AgentAIStateInputArgumentV3_50_0 | AgentAIStateInputTemplateV3_50_0;
|
|
283
|
-
export type AgentToolConfigArgV3_50_0 =
|
|
283
|
+
export type AgentToolConfigArgV3_50_0 = AgentControlledV3_50_0 | VariableValueV3_50_0;
|
|
284
|
+
/**
|
|
285
|
+
* The argument name that will be exposed by the tool for the LLM to use.
|
|
286
|
+
*/
|
|
287
|
+
export type ToolArgumentNameV3_50_0 = string;
|
|
288
|
+
/**
|
|
289
|
+
* Name of argument to pass value to. This prevents the LLM from setting the argument.
|
|
290
|
+
*/
|
|
291
|
+
export type ToolArgumentNameV3_50_01 = string;
|
|
292
|
+
/**
|
|
293
|
+
* Name of variable to pull value from.
|
|
294
|
+
*/
|
|
295
|
+
export type StateVariableNameV3_50_0 = string;
|
|
284
296
|
export type HistoryV3_50_01 = boolean;
|
|
285
297
|
/**
|
|
286
298
|
* Maximum number of tokens to generate. Defaults to 1024
|
|
@@ -441,6 +453,7 @@ export type FilterV3_50_01 = {
|
|
|
441
453
|
type: TypeV3_50_0;
|
|
442
454
|
threshold: ThresholdV3_50_0;
|
|
443
455
|
}[];
|
|
456
|
+
export type ToolArgV3_50_0 = AgentControlledV3_50_0;
|
|
444
457
|
/**
|
|
445
458
|
* Human-readable id for use in the UI
|
|
446
459
|
*/
|
|
@@ -1740,33 +1753,20 @@ export interface AgentAIStateInputTemplateV3_50_0 {
|
|
|
1740
1753
|
type: 'template';
|
|
1741
1754
|
inputTemplate: string;
|
|
1742
1755
|
}
|
|
1743
|
-
/**
|
|
1744
|
-
* This interface was referenced by `ToolMapV3_50_0`'s JSON-Schema definition
|
|
1745
|
-
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1746
|
-
*/
|
|
1747
1756
|
export interface AgentToolConfigV3_50_0 {
|
|
1748
1757
|
ref: string;
|
|
1749
1758
|
description?: string;
|
|
1750
1759
|
args?: AgentToolConfigArgV3_50_0[];
|
|
1751
1760
|
selectionSet?: string;
|
|
1752
1761
|
}
|
|
1753
|
-
export interface
|
|
1762
|
+
export interface AgentControlledV3_50_0 {
|
|
1754
1763
|
type: 'agent';
|
|
1755
|
-
|
|
1756
|
-
* The argument name that will be exposed by the tool for the LLM to use.
|
|
1757
|
-
*/
|
|
1758
|
-
argName: string;
|
|
1764
|
+
argName: ToolArgumentNameV3_50_0;
|
|
1759
1765
|
}
|
|
1760
|
-
export interface
|
|
1766
|
+
export interface VariableValueV3_50_0 {
|
|
1761
1767
|
type: 'variable';
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
*/
|
|
1765
|
-
argName: string;
|
|
1766
|
-
/**
|
|
1767
|
-
* Name of variable to pull value from.
|
|
1768
|
-
*/
|
|
1769
|
-
variableName: string;
|
|
1768
|
+
argName: ToolArgumentNameV3_50_01;
|
|
1769
|
+
variableName: StateVariableNameV3_50_0;
|
|
1770
1770
|
}
|
|
1771
1771
|
export interface AgentGenerateOptionsV3_50_0 {
|
|
1772
1772
|
history?: HistoryV3_50_01;
|
|
@@ -1886,7 +1886,17 @@ export interface ContextualGroundingPolicyV3_50_0 {
|
|
|
1886
1886
|
filtersConfig: FilterV3_50_01;
|
|
1887
1887
|
}
|
|
1888
1888
|
export interface ToolMapV3_50_0 {
|
|
1889
|
-
[k: string]:
|
|
1889
|
+
[k: string]: ToolJSONV3_50_0;
|
|
1890
|
+
}
|
|
1891
|
+
/**
|
|
1892
|
+
* This interface was referenced by `ToolMapV3_50_0`'s JSON-Schema definition
|
|
1893
|
+
* via the `patternProperty` "^[0-9A-Za-z_]+$".
|
|
1894
|
+
*/
|
|
1895
|
+
export interface ToolJSONV3_50_0 {
|
|
1896
|
+
ref: string;
|
|
1897
|
+
description?: string;
|
|
1898
|
+
args?: ToolArgV3_50_0[];
|
|
1899
|
+
selectionSet?: string;
|
|
1890
1900
|
}
|
|
1891
1901
|
/**
|
|
1892
1902
|
* This interface was referenced by `ProjectSchemaJSONV3_50_0`'s JSON-Schema
|