@takeshape/schema 11.108.1 → 11.110.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/migration/index.d.ts +1 -0
- package/dist/migration/index.js +3 -1
- package/dist/migration/to/v3.57.0.js +1 -1
- package/dist/migration/to/v3.58.0.d.ts +4 -0
- package/dist/migration/to/v3.58.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 +5 -1
- package/dist/project-schema/migrate.js +4 -1
- package/dist/project-schema/v3.57.0.d.ts +4 -0
- package/dist/project-schema/v3.58.0.d.ts +2601 -0
- package/dist/project-schema/v3.58.0.js +7 -0
- package/dist/resolvers/ai/agent-message-payload.d.ts +2 -2
- package/dist/resolvers/ai/agent-message-payload.js +1 -1
- package/dist/schemas/index.d.ts +2 -2
- package/dist/schemas/index.js +4 -2
- package/dist/schemas/project-schema/latest.json +7 -2
- package/dist/schemas/project-schema/v3.57.0.json +5 -0
- package/dist/schemas/project-schema/v3.58.0.json +4815 -0
- package/dist/schemas/project-schema.json +3 -0
- package/dist/validate/validate.d.ts +1 -0
- package/dist/validate/validate.js +1 -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 +6 -6
|
@@ -112,7 +112,7 @@ export declare const schema: {
|
|
|
112
112
|
readonly required: ["name"];
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
-
readonly required: ["messageId", "sessionId", "projectId", "runMode"];
|
|
115
|
+
readonly required: ["messageId", "sessionId", "projectId", "runMode", "sentAt"];
|
|
116
116
|
readonly additionalProperties: false;
|
|
117
117
|
};
|
|
118
118
|
export type AgentMessagePayload = FromSchema<typeof schema>;
|
|
@@ -129,7 +129,6 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
129
129
|
code?: string | undefined;
|
|
130
130
|
} | undefined;
|
|
131
131
|
abortedAt?: number | undefined;
|
|
132
|
-
sentAt?: number | undefined;
|
|
133
132
|
startedAt?: number | undefined;
|
|
134
133
|
finishedAt?: number | undefined;
|
|
135
134
|
span?: {
|
|
@@ -151,4 +150,5 @@ export declare const validate: import("ajv").ValidateFunction<{
|
|
|
151
150
|
projectId: string;
|
|
152
151
|
sessionId: string;
|
|
153
152
|
runMode: "BACKGROUND" | "IMMEDIATE";
|
|
153
|
+
sentAt: number;
|
|
154
154
|
}>;
|
|
@@ -106,7 +106,7 @@ export const schema = {
|
|
|
106
106
|
required: ['name']
|
|
107
107
|
}
|
|
108
108
|
},
|
|
109
|
-
required: ['messageId', 'sessionId', 'projectId', 'runMode'],
|
|
109
|
+
required: ['messageId', 'sessionId', 'projectId', 'runMode', 'sentAt'],
|
|
110
110
|
additionalProperties: false
|
|
111
111
|
};
|
|
112
112
|
export const validate = createTypedValidator(schema);
|
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.58.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.58.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.58.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.58.0.json' with { type: 'json' };
|
|
5
5
|
import experimentalSchemaJson from './project-schema/experimental-2025-07.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' };
|
|
@@ -81,6 +81,7 @@ import projectSchemaV3_54_0 from './project-schema/v3.54.0.json' with { type: 'j
|
|
|
81
81
|
import projectSchemaV3_55_0 from './project-schema/v3.55.0.json' with { type: 'json' };
|
|
82
82
|
import projectSchemaV3_56_0 from './project-schema/v3.56.0.json' with { type: 'json' };
|
|
83
83
|
import projectSchemaV3_57_0 from './project-schema/v3.57.0.json' with { type: 'json' };
|
|
84
|
+
import projectSchemaV3_58_0 from './project-schema/v3.58.0.json' with { type: 'json' };
|
|
84
85
|
import projectSchemaV4_0_0 from './project-schema/v4.0.0.json' with { type: 'json' };
|
|
85
86
|
export const allProjectSchemas = [
|
|
86
87
|
experimentalSchemaJson,
|
|
@@ -162,5 +163,6 @@ export const allProjectSchemas = [
|
|
|
162
163
|
projectSchemaV3_55_0,
|
|
163
164
|
projectSchemaV3_56_0,
|
|
164
165
|
projectSchemaV3_57_0,
|
|
166
|
+
projectSchemaV3_58_0,
|
|
165
167
|
projectSchemaV4_0_0
|
|
166
168
|
];
|
|
@@ -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.58.0#",
|
|
4
4
|
"title": "Project Schema JSON",
|
|
5
5
|
"definitions": {
|
|
6
6
|
"schemaArray": {
|
|
@@ -2576,6 +2576,11 @@
|
|
|
2576
2576
|
"description": "Number of seconds this Shape should be cached. Default 0.",
|
|
2577
2577
|
"type": "number",
|
|
2578
2578
|
"minimum": 0
|
|
2579
|
+
},
|
|
2580
|
+
"staleWhileRevalidate": {
|
|
2581
|
+
"description": "Requests after maxAge will send a request to origin to revalidate while serving stale content for this duration in the meantime.",
|
|
2582
|
+
"type": "number",
|
|
2583
|
+
"minimum": 0
|
|
2579
2584
|
}
|
|
2580
2585
|
},
|
|
2581
2586
|
"additionalProperties": false,
|
|
@@ -4729,7 +4734,7 @@
|
|
|
4729
4734
|
},
|
|
4730
4735
|
"schemaVersion": {
|
|
4731
4736
|
"type": "string",
|
|
4732
|
-
"enum": ["3.
|
|
4737
|
+
"enum": ["3.58.0"],
|
|
4733
4738
|
"description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
|
|
4734
4739
|
},
|
|
4735
4740
|
"projectId": {
|
|
@@ -2576,6 +2576,11 @@
|
|
|
2576
2576
|
"description": "Number of seconds this Shape should be cached. Default 0.",
|
|
2577
2577
|
"type": "number",
|
|
2578
2578
|
"minimum": 0
|
|
2579
|
+
},
|
|
2580
|
+
"staleWhileRevalidate": {
|
|
2581
|
+
"description": "Requests after maxAge will send a request to origin to revalidate while serving stale content for this duration in the meantime.",
|
|
2582
|
+
"type": "number",
|
|
2583
|
+
"minimum": 0
|
|
2579
2584
|
}
|
|
2580
2585
|
},
|
|
2581
2586
|
"additionalProperties": false,
|