@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.
Files changed (74) hide show
  1. package/dist/migration/index.d.ts +1 -0
  2. package/dist/migration/index.js +3 -1
  3. package/dist/migration/to/v3.57.0.js +1 -1
  4. package/dist/migration/to/v3.58.0.d.ts +4 -0
  5. package/dist/migration/to/v3.58.0.js +10 -0
  6. package/dist/project-schema/index.d.ts +4 -1
  7. package/dist/project-schema/index.js +2 -1
  8. package/dist/project-schema/latest.d.ts +5 -1
  9. package/dist/project-schema/migrate.js +4 -1
  10. package/dist/project-schema/v3.57.0.d.ts +4 -0
  11. package/dist/project-schema/v3.58.0.d.ts +2601 -0
  12. package/dist/project-schema/v3.58.0.js +7 -0
  13. package/dist/resolvers/ai/agent-message-payload.d.ts +2 -2
  14. package/dist/resolvers/ai/agent-message-payload.js +1 -1
  15. package/dist/schemas/index.d.ts +2 -2
  16. package/dist/schemas/index.js +4 -2
  17. package/dist/schemas/project-schema/latest.json +7 -2
  18. package/dist/schemas/project-schema/v3.57.0.json +5 -0
  19. package/dist/schemas/project-schema/v3.58.0.json +4815 -0
  20. package/dist/schemas/project-schema.json +3 -0
  21. package/dist/validate/validate.d.ts +1 -0
  22. package/dist/validate/validate.js +1 -1
  23. package/examples/latest/agent-schema.json +1 -1
  24. package/examples/latest/all-fields-shapes-inline.json +1 -1
  25. package/examples/latest/all-fields-shapes.json +1 -1
  26. package/examples/latest/betzino.json +1 -1
  27. package/examples/latest/blog-schema.json +1 -1
  28. package/examples/latest/brewery-schema.json +1 -1
  29. package/examples/latest/clear-cache-schema.json +1 -1
  30. package/examples/latest/complex-project-schema.json +1 -1
  31. package/examples/latest/complex-schema.json +1 -1
  32. package/examples/latest/edit-schema.json +1 -1
  33. package/examples/latest/fabric-ecommerce.json +1 -1
  34. package/examples/latest/frank-and-fred-schema.json +1 -1
  35. package/examples/latest/klirr-schema.json +1 -1
  36. package/examples/latest/layers/rick-and-morty-layer.json +1 -1
  37. package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
  38. package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
  39. package/examples/latest/layers/wordpress-2024-01.json +1 -1
  40. package/examples/latest/massive-schema.json +1 -1
  41. package/examples/latest/mill-components-schema.json +1 -1
  42. package/examples/latest/nested-shape-arrays.json +1 -1
  43. package/examples/latest/one-earth.json +1 -1
  44. package/examples/latest/pet-oneof-array.json +1 -1
  45. package/examples/latest/post-schema.json +1 -1
  46. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  47. package/examples/latest/rag-example.json +1 -1
  48. package/examples/latest/real-world-schema.json +1 -1
  49. package/examples/latest/recursive-repeater-schema.json +1 -1
  50. package/examples/latest/recursive-schema.json +1 -1
  51. package/examples/latest/rick-and-morty-ast.json +1 -1
  52. package/examples/latest/rick-and-morty-graphql.json +1 -1
  53. package/examples/latest/rick-and-morty-rest.json +1 -1
  54. package/examples/latest/rick-and-morty-user-schema.json +1 -1
  55. package/examples/latest/rick-and-morty-with-indexing.json +1 -1
  56. package/examples/latest/schema-where-filter.json +1 -1
  57. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  58. package/examples/latest/schema-with-rick-and-morty.json +1 -1
  59. package/examples/latest/shape-books-v3_2_0.json +1 -1
  60. package/examples/latest/shape-books.json +1 -1
  61. package/examples/latest/shape-editor-schema-edited.json +1 -1
  62. package/examples/latest/shape-editor-schema-initial.json +1 -1
  63. package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
  64. package/examples/latest/shopify-lookbook.json +1 -1
  65. package/examples/latest/shopify-product-2022-07.json +1 -1
  66. package/examples/latest/shopify-product-2023-04.json +1 -1
  67. package/examples/latest/shopify-store-with-widget.json +1 -1
  68. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  69. package/examples/latest/stripe-starter-resolved.json +1 -1
  70. package/examples/latest/user-schema-no-required.json +1 -1
  71. package/examples/latest/user-schema-with-defaults.json +1 -1
  72. package/examples/latest/valvoline-ai-demo.json +1 -1
  73. package/examples/latest/vector-search-schema.json +1 -1
  74. package/package.json +6 -6
@@ -0,0 +1,7 @@
1
+ /* tslint:disable */
2
+ /**
3
+ * This file was automatically generated by json-schema-to-typescript.
4
+ * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
5
+ * and run json-schema-to-typescript to regenerate this file.
6
+ */
7
+ export {};
@@ -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);
@@ -1,4 +1,4 @@
1
- export declare const CURRENT_SCHEMA_VERSION = "3.57.0";
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.57.0.json';
3
+ export { default as latestSchemaJson } from './project-schema/v3.58.0.json';
4
4
  export declare const allProjectSchemas: any[];
@@ -1,7 +1,7 @@
1
1
  // This file is generated by "pnpm json2ts"
2
- export const CURRENT_SCHEMA_VERSION = '3.57.0';
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.57.0.json' with { type: 'json' };
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.57.0#",
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.57.0"],
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,