@takeshape/schema 11.55.0 → 11.58.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.
- package/dist/builtin-schema.js +31 -1
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.js +3 -1
- package/dist/migration/to/v3.52.0.d.ts +4 -0
- package/dist/migration/to/v3.52.0.js +10 -0
- package/dist/project-schema/index.d.ts +4 -1
- package/dist/project-schema/index.js +2 -1
- package/dist/project-schema/latest.d.ts +34 -12
- package/dist/project-schema/migrate.js +4 -1
- package/dist/project-schema/v3.48.0.d.ts +32 -10
- package/dist/project-schema/v3.49.0.d.ts +32 -10
- package/dist/project-schema/v3.50.0.d.ts +32 -10
- package/dist/project-schema/v3.51.0.d.ts +33 -11
- package/dist/project-schema/v3.52.0.d.ts +2243 -0
- package/dist/project-schema/v3.52.0.js +7 -0
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/project-schema/experimental.json +126 -3
- package/dist/schemas/project-schema/latest.json +9 -3
- package/dist/schemas/project-schema/v3.51.0.json +7 -1
- package/dist/schemas/project-schema/v3.52.0.json +3326 -0
- package/dist/schemas/project-schema.json +3 -0
- package/examples/latest/agent-schema.json +6 -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-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/examples/source/agent-schema.json +5 -0
- package/package.json +7 -8
package/dist/schemas/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const CURRENT_SCHEMA_VERSION = "3.
|
|
1
|
+
export declare const CURRENT_SCHEMA_VERSION = "3.52.0";
|
|
2
2
|
export { default as anyProjectSchema } from './project-schema.json';
|
|
3
|
-
export { default as latestSchemaJson } from './project-schema/v3.
|
|
3
|
+
export { default as latestSchemaJson } from './project-schema/v3.52.0.json';
|
|
4
4
|
export declare const allProjectSchemas: any[];
|
package/dist/schemas/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// This file is generated by "pnpm json2ts"
|
|
2
|
-
export const CURRENT_SCHEMA_VERSION = '3.
|
|
2
|
+
export const CURRENT_SCHEMA_VERSION = '3.52.0';
|
|
3
3
|
export { default as anyProjectSchema } from './project-schema.json' with { type: 'json' };
|
|
4
|
-
export { default as latestSchemaJson } from './project-schema/v3.
|
|
4
|
+
export { default as latestSchemaJson } from './project-schema/v3.52.0.json' with { type: 'json' };
|
|
5
5
|
import experimentalSchemaJson from './project-schema/experimental.json' with { type: 'json' };
|
|
6
6
|
import metaSchemaV1_0_0 from './project-schema/meta-schema-v1.0.0.json' with { type: 'json' };
|
|
7
7
|
import projectSchemaV1_0_0 from './project-schema/v1.0.0.json' with { type: 'json' };
|
|
@@ -75,6 +75,7 @@ import projectSchemaV3_48_0 from './project-schema/v3.48.0.json' with { type: 'j
|
|
|
75
75
|
import projectSchemaV3_49_0 from './project-schema/v3.49.0.json' with { type: 'json' };
|
|
76
76
|
import projectSchemaV3_50_0 from './project-schema/v3.50.0.json' with { type: 'json' };
|
|
77
77
|
import projectSchemaV3_51_0 from './project-schema/v3.51.0.json' with { type: 'json' };
|
|
78
|
+
import projectSchemaV3_52_0 from './project-schema/v3.52.0.json' with { type: 'json' };
|
|
78
79
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json' with { type: 'json' };
|
|
79
80
|
export const allProjectSchemas = [
|
|
80
81
|
experimentalSchemaJson,
|
|
@@ -150,5 +151,6 @@ export const allProjectSchemas = [
|
|
|
150
151
|
projectSchemaV3_49_0,
|
|
151
152
|
projectSchemaV3_50_0,
|
|
152
153
|
projectSchemaV3_51_0,
|
|
154
|
+
projectSchemaV3_52_0,
|
|
153
155
|
projectSchemaV4_0_0
|
|
154
156
|
];
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
"api": {
|
|
17
17
|
"$ref": "#/definitions/agentApi"
|
|
18
18
|
},
|
|
19
|
+
"memory": {
|
|
20
|
+
"$ref": "#/definitions/agentMemory"
|
|
21
|
+
},
|
|
19
22
|
"start": {
|
|
20
23
|
"$ref": "#/definitions/agentStart"
|
|
21
24
|
},
|
|
@@ -80,6 +83,46 @@
|
|
|
80
83
|
"required": ["type"],
|
|
81
84
|
"additionalProperties": false
|
|
82
85
|
},
|
|
86
|
+
"agentMemory": {
|
|
87
|
+
"title": "Agent Memory",
|
|
88
|
+
"type": "object",
|
|
89
|
+
"properties": {
|
|
90
|
+
"sessionMemory": {
|
|
91
|
+
"$ref": "#/definitions/agentSessionMemory"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"required": ["sessionMemory"],
|
|
95
|
+
"additionalProperties": false
|
|
96
|
+
},
|
|
97
|
+
"agentSessionMemory": {
|
|
98
|
+
"title": "Agent Session Memory",
|
|
99
|
+
"type": "object",
|
|
100
|
+
"properties": {
|
|
101
|
+
"memoryLocations": {
|
|
102
|
+
"title": "Memory Locations",
|
|
103
|
+
"type": "array",
|
|
104
|
+
"items": {
|
|
105
|
+
"$ref": "#/definitions/agentSessionMemoryLocation"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"required": ["memoryLocations"],
|
|
110
|
+
"additionalProperties": false
|
|
111
|
+
},
|
|
112
|
+
"agentSessionMemoryLocation": {
|
|
113
|
+
"title": "Agent Session Memory Location",
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"key": {
|
|
117
|
+
"type": "string"
|
|
118
|
+
},
|
|
119
|
+
"shape": {
|
|
120
|
+
"type": "string"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": ["key", "shape"],
|
|
124
|
+
"additionalProperties": false
|
|
125
|
+
},
|
|
83
126
|
"agentVariable": {
|
|
84
127
|
"title": "Agent Variable",
|
|
85
128
|
"type": "object",
|
|
@@ -104,6 +147,9 @@
|
|
|
104
147
|
"propertyName": "type"
|
|
105
148
|
},
|
|
106
149
|
"oneOf": [
|
|
150
|
+
{
|
|
151
|
+
"$ref": "#/definitions/agentVariableStepSessionMemory"
|
|
152
|
+
},
|
|
107
153
|
{
|
|
108
154
|
"$ref": "#/definitions/agentVariableStepGraphqlArg"
|
|
109
155
|
},
|
|
@@ -118,9 +164,25 @@
|
|
|
118
164
|
}
|
|
119
165
|
]
|
|
120
166
|
},
|
|
167
|
+
"agentVariableStepSessionMemory": {
|
|
168
|
+
"title": "Agent Variable Step Session Memory",
|
|
169
|
+
"type": "object",
|
|
170
|
+
"properties": {
|
|
171
|
+
"type": {
|
|
172
|
+
"enum": ["sessionMemory"]
|
|
173
|
+
},
|
|
174
|
+
"memoryKey": {
|
|
175
|
+
"type": "string"
|
|
176
|
+
},
|
|
177
|
+
"path": {
|
|
178
|
+
"type": "string"
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
"required": ["type", "memoryKey"],
|
|
182
|
+
"additionalProperties": false
|
|
183
|
+
},
|
|
121
184
|
"agentVariableStepGraphqlArg": {
|
|
122
185
|
"title": "Agent Variable Step GraphQL Arg",
|
|
123
|
-
"description": "An Agent Variable that defines a GraphQL argument and makes its value available to templates.",
|
|
124
186
|
"type": "object",
|
|
125
187
|
"properties": {
|
|
126
188
|
"type": {
|
|
@@ -135,7 +197,6 @@
|
|
|
135
197
|
},
|
|
136
198
|
"agentVariableStepPreviousStateOutput": {
|
|
137
199
|
"title": "Agent Variable Step Previous State Output",
|
|
138
|
-
"description": "An Agent Variable that provides the output of the previous state's execution.",
|
|
139
200
|
"type": "object",
|
|
140
201
|
"properties": {
|
|
141
202
|
"type": {
|
|
@@ -150,7 +211,6 @@
|
|
|
150
211
|
},
|
|
151
212
|
"agentVariableStepStateOutput": {
|
|
152
213
|
"title": "Agent Variable Step State Output",
|
|
153
|
-
"description": "An Agent Variable that provides the output of any previous state's execution.",
|
|
154
214
|
"type": "object",
|
|
155
215
|
"properties": {
|
|
156
216
|
"type": {
|
|
@@ -272,6 +332,18 @@
|
|
|
272
332
|
"execution": {
|
|
273
333
|
"$ref": "#/definitions/agentExecution"
|
|
274
334
|
},
|
|
335
|
+
"sessionMemory": {
|
|
336
|
+
"title": "Agent State Session Memory",
|
|
337
|
+
"type": "array",
|
|
338
|
+
"items": {
|
|
339
|
+
"default": {
|
|
340
|
+
"condition": {
|
|
341
|
+
"type": "none"
|
|
342
|
+
}
|
|
343
|
+
},
|
|
344
|
+
"$ref": "#/definitions/agentStateSessionMemoryLocation"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
275
347
|
"transition": {
|
|
276
348
|
"type": "array",
|
|
277
349
|
"items": {
|
|
@@ -337,6 +409,54 @@
|
|
|
337
409
|
"required": ["type", "query"],
|
|
338
410
|
"additionalProperties": false
|
|
339
411
|
},
|
|
412
|
+
"agentStateSessionMemoryLocation": {
|
|
413
|
+
"title": "Agent State Session Memory Location",
|
|
414
|
+
"discriminator": {
|
|
415
|
+
"propertyName": "type"
|
|
416
|
+
},
|
|
417
|
+
"oneOf": [
|
|
418
|
+
{
|
|
419
|
+
"$ref": "#/definitions/agentStateSessionMemoryLocationArtifact"
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"$ref": "#/definitions/agentStateSessionMemoryLocationStaticValue"
|
|
423
|
+
}
|
|
424
|
+
]
|
|
425
|
+
},
|
|
426
|
+
"agentStateSessionMemoryLocationStaticValue": {
|
|
427
|
+
"title": "Agent State Session Memory Location Static Value",
|
|
428
|
+
"type": "object",
|
|
429
|
+
"properties": {
|
|
430
|
+
"type": {
|
|
431
|
+
"enum": ["staticValue"]
|
|
432
|
+
},
|
|
433
|
+
"memoryKey": {
|
|
434
|
+
"type": "string"
|
|
435
|
+
},
|
|
436
|
+
"value": {
|
|
437
|
+
"type": "string"
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"required": ["type", "memoryKey"],
|
|
441
|
+
"additionalProperties": false
|
|
442
|
+
},
|
|
443
|
+
"agentStateSessionMemoryLocationArtifact": {
|
|
444
|
+
"title": "Agent State Session Memory Location Artifact",
|
|
445
|
+
"type": "object",
|
|
446
|
+
"properties": {
|
|
447
|
+
"type": {
|
|
448
|
+
"enum": ["artifactValue"]
|
|
449
|
+
},
|
|
450
|
+
"memoryKey": {
|
|
451
|
+
"type": "string"
|
|
452
|
+
},
|
|
453
|
+
"artifactPath": {
|
|
454
|
+
"type": "string"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
"required": ["type", "memoryKey"],
|
|
458
|
+
"additionalProperties": false
|
|
459
|
+
},
|
|
340
460
|
"agentAiStateInputArg": {
|
|
341
461
|
"title": "Agent AI State Input Argument",
|
|
342
462
|
"type": "object",
|
|
@@ -489,6 +609,9 @@
|
|
|
489
609
|
"title": "AgentToolConfig",
|
|
490
610
|
"type": "object",
|
|
491
611
|
"properties": {
|
|
612
|
+
"description": {
|
|
613
|
+
"type": "string"
|
|
614
|
+
},
|
|
492
615
|
"ref": {
|
|
493
616
|
"type": "string"
|
|
494
617
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "https://schema.takeshape.io/project-schema/v3.
|
|
3
|
+
"$id": "https://schema.takeshape.io/project-schema/v3.52.0#",
|
|
4
4
|
"title": "Project Schema JSON",
|
|
5
5
|
"definitions": {
|
|
6
6
|
"schemaArray": {
|
|
@@ -1642,7 +1642,13 @@
|
|
|
1642
1642
|
"title": "TakeshapeResolverName",
|
|
1643
1643
|
"type": "string",
|
|
1644
1644
|
"description": "Name of the resolver function.",
|
|
1645
|
-
"enum": [
|
|
1645
|
+
"enum": [
|
|
1646
|
+
"takeshape:get",
|
|
1647
|
+
"takeshape:getUser",
|
|
1648
|
+
"takeshape:search",
|
|
1649
|
+
"takeshape:vectorSearch",
|
|
1650
|
+
"takeshape:queryApiIndex"
|
|
1651
|
+
]
|
|
1646
1652
|
},
|
|
1647
1653
|
"service": {
|
|
1648
1654
|
"type": "string",
|
|
@@ -3247,7 +3253,7 @@
|
|
|
3247
3253
|
},
|
|
3248
3254
|
"schemaVersion": {
|
|
3249
3255
|
"type": "string",
|
|
3250
|
-
"enum": ["3.
|
|
3256
|
+
"enum": ["3.52.0"],
|
|
3251
3257
|
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
3252
3258
|
},
|
|
3253
3259
|
"projectId": {
|
|
@@ -1642,7 +1642,13 @@
|
|
|
1642
1642
|
"title": "TakeshapeResolverName",
|
|
1643
1643
|
"type": "string",
|
|
1644
1644
|
"description": "Name of the resolver function.",
|
|
1645
|
-
"enum": [
|
|
1645
|
+
"enum": [
|
|
1646
|
+
"takeshape:get",
|
|
1647
|
+
"takeshape:getUser",
|
|
1648
|
+
"takeshape:search",
|
|
1649
|
+
"takeshape:vectorSearch",
|
|
1650
|
+
"takeshape:queryApiIndex"
|
|
1651
|
+
]
|
|
1646
1652
|
},
|
|
1647
1653
|
"service": {
|
|
1648
1654
|
"type": "string",
|