@takeshape/schema 11.110.0 → 11.113.1

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 (88) hide show
  1. package/dist/agents.js +4 -1
  2. package/dist/auth-schemas.d.ts +3 -0
  3. package/dist/auth-utils.d.ts +5 -0
  4. package/dist/auth-utils.js +6 -0
  5. package/dist/index.d.ts +1 -0
  6. package/dist/index.js +1 -0
  7. package/dist/migration/index.d.ts +1 -0
  8. package/dist/migration/index.js +3 -1
  9. package/dist/migration/to/v3.59.0.d.ts +4 -0
  10. package/dist/migration/to/v3.59.0.js +10 -0
  11. package/dist/project-schema/index.d.ts +4 -1
  12. package/dist/project-schema/index.js +2 -1
  13. package/dist/project-schema/latest.d.ts +13 -1
  14. package/dist/project-schema/migrate.js +4 -1
  15. package/dist/project-schema/v3.59.0.d.ts +2613 -0
  16. package/dist/project-schema/v3.59.0.js +7 -0
  17. package/dist/resolvers/ai/agent-chat-response.d.ts +18 -1
  18. package/dist/resolvers/ai/agent-message-payload.d.ts +12 -2
  19. package/dist/resolvers/ai/agent-message-payload.js +9 -1
  20. package/dist/resolvers/ai/agent-session-payload.d.ts +15 -1
  21. package/dist/resolvers/ai/agent-session-payload.js +18 -1
  22. package/dist/resolvers/ai/create-agent-session-response.d.ts +17 -0
  23. package/dist/resolvers/ai/get-agent-message-response.d.ts +19 -1
  24. package/dist/resolvers/ai/get-agent-message-response.js +1 -1
  25. package/dist/resolvers/ai/inspect-agent-response.d.ts +14 -0
  26. package/dist/resolvers/ai/send-agent-message-args.d.ts +9 -0
  27. package/dist/resolvers/ai/send-agent-message-args.js +4 -0
  28. package/dist/resolvers/ai/send-agent-message-response.d.ts +15 -1
  29. package/dist/schemas/auth-schemas.json +9 -0
  30. package/dist/schemas/index.d.ts +2 -2
  31. package/dist/schemas/index.js +4 -2
  32. package/dist/schemas/project-schema/latest.json +18 -2
  33. package/dist/schemas/project-schema/v3.59.0.json +4831 -0
  34. package/dist/schemas/project-schema.json +3 -0
  35. package/dist/util/expressions.js +0 -3
  36. package/dist/util/merge.js +0 -2
  37. package/examples/latest/agent-schema.json +1 -1
  38. package/examples/latest/all-fields-shapes-inline.json +1 -1
  39. package/examples/latest/all-fields-shapes.json +1 -1
  40. package/examples/latest/betzino.json +1 -1
  41. package/examples/latest/blog-schema.json +1 -1
  42. package/examples/latest/brewery-schema.json +1 -1
  43. package/examples/latest/clear-cache-schema.json +1 -1
  44. package/examples/latest/complex-project-schema.json +1 -1
  45. package/examples/latest/complex-schema.json +1 -1
  46. package/examples/latest/edit-schema.json +1 -1
  47. package/examples/latest/fabric-ecommerce.json +1 -1
  48. package/examples/latest/frank-and-fred-schema.json +1 -1
  49. package/examples/latest/klirr-schema.json +1 -1
  50. package/examples/latest/layers/rick-and-morty-layer.json +1 -1
  51. package/examples/latest/layers/shopify-layer-2023-01.json +1 -1
  52. package/examples/latest/layers/shopify-storefront-2023-04.json +1 -1
  53. package/examples/latest/layers/wordpress-2024-01.json +1 -1
  54. package/examples/latest/massive-schema.json +1 -1
  55. package/examples/latest/mill-components-schema.json +1 -1
  56. package/examples/latest/nested-shape-arrays.json +1 -1
  57. package/examples/latest/one-earth.json +1 -1
  58. package/examples/latest/pet-oneof-array.json +1 -1
  59. package/examples/latest/post-schema.json +1 -1
  60. package/examples/latest/pruned-shopify-product-schema.json +1 -1
  61. package/examples/latest/rag-example.json +1 -1
  62. package/examples/latest/real-world-schema.json +1 -1
  63. package/examples/latest/recursive-repeater-schema.json +1 -1
  64. package/examples/latest/recursive-schema.json +1 -1
  65. package/examples/latest/rick-and-morty-ast.json +1 -1
  66. package/examples/latest/rick-and-morty-graphql.json +1 -1
  67. package/examples/latest/rick-and-morty-rest.json +1 -1
  68. package/examples/latest/rick-and-morty-user-schema.json +1 -1
  69. package/examples/latest/rick-and-morty-with-indexing.json +1 -1
  70. package/examples/latest/schema-where-filter.json +1 -1
  71. package/examples/latest/schema-with-repeater-draftjs.json +1 -1
  72. package/examples/latest/schema-with-rick-and-morty.json +1 -1
  73. package/examples/latest/shape-books-v3_2_0.json +1 -1
  74. package/examples/latest/shape-books.json +1 -1
  75. package/examples/latest/shape-editor-schema-edited.json +1 -1
  76. package/examples/latest/shape-editor-schema-initial.json +1 -1
  77. package/examples/latest/shapedb-crud-every-prop-type.json +1 -1
  78. package/examples/latest/shopify-lookbook.json +1 -1
  79. package/examples/latest/shopify-product-2022-07.json +1 -1
  80. package/examples/latest/shopify-product-2023-04.json +1 -1
  81. package/examples/latest/shopify-store-with-widget.json +1 -1
  82. package/examples/latest/stripe-product-runtime-schema.json +1 -1
  83. package/examples/latest/stripe-starter-resolved.json +1 -1
  84. package/examples/latest/user-schema-no-required.json +1 -1
  85. package/examples/latest/user-schema-with-defaults.json +1 -1
  86. package/examples/latest/valvoline-ai-demo.json +1 -1
  87. package/examples/latest/vector-search-schema.json +1 -1
  88. 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 {};
@@ -36,6 +36,16 @@ export declare const schema: {
36
36
  readonly type: "string";
37
37
  readonly description: "The unique identifier for the agent session.";
38
38
  };
39
+ readonly createdAt: {
40
+ readonly type: "string";
41
+ readonly description: "ISO8601 timestamp when the agent session was created";
42
+ readonly format: "date-time";
43
+ };
44
+ readonly updatedAt: {
45
+ readonly type: "string";
46
+ readonly description: "ISO8601 timestamp when the agent session was updated";
47
+ readonly format: "date-time";
48
+ };
39
49
  readonly agentName: {
40
50
  readonly type: "string";
41
51
  readonly description: "The name of the agent associated with this session.";
@@ -48,6 +58,10 @@ export declare const schema: {
48
58
  readonly type: "string";
49
59
  readonly description: "The schema ID associated with the agent session, typically in the format \"production~projectId\".";
50
60
  };
61
+ readonly schemaHash: {
62
+ readonly type: "string";
63
+ readonly description: "The hash of the schema version associated with the agent session.";
64
+ };
51
65
  readonly done: {
52
66
  readonly type: "boolean";
53
67
  readonly description: "Indicates whether the agent session is completed.";
@@ -85,7 +99,7 @@ export declare const schema: {
85
99
  readonly description: "Indicates whether the agent session has an associated history of agent responses.";
86
100
  };
87
101
  };
88
- readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId"];
102
+ readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId", "schemaHash"];
89
103
  readonly additionalProperties: false;
90
104
  };
91
105
  readonly runMode: {
@@ -118,9 +132,12 @@ export declare const validate: import("ajv").ValidateFunction<{
118
132
  } | undefined;
119
133
  hasAgentHistory?: boolean | undefined;
120
134
  id: string;
135
+ createdAt: string;
136
+ updatedAt: string;
121
137
  agentName: string;
122
138
  projectId: string;
123
139
  schemaId: string;
140
+ schemaHash: string;
124
141
  done: boolean;
125
142
  currentStateId: string;
126
143
  chatSessionIds: {
@@ -15,6 +15,14 @@ export declare const schema: {
15
15
  readonly type: "string";
16
16
  readonly description: "Project ID of the project this message belongs to";
17
17
  };
18
+ readonly schemaId: {
19
+ readonly type: "string";
20
+ readonly description: "Schema ID this message was created by";
21
+ };
22
+ readonly agentName: {
23
+ readonly type: "string";
24
+ readonly description: "Name of the agent this message was created by";
25
+ };
18
26
  readonly input: {
19
27
  readonly type: "object";
20
28
  };
@@ -112,7 +120,7 @@ export declare const schema: {
112
120
  readonly required: ["name"];
113
121
  };
114
122
  };
115
- readonly required: ["messageId", "sessionId", "projectId", "runMode", "sentAt"];
123
+ readonly required: ["messageId", "sessionId", "agentName", "projectId", "schemaId", "runMode", "sentAt"];
116
124
  readonly additionalProperties: false;
117
125
  };
118
126
  export type AgentMessagePayload = FromSchema<typeof schema>;
@@ -132,10 +140,10 @@ export declare const validate: import("ajv").ValidateFunction<{
132
140
  startedAt?: number | undefined;
133
141
  finishedAt?: number | undefined;
134
142
  span?: {
143
+ createdAt: number;
135
144
  name: string;
136
145
  traceId: string;
137
146
  spanId: string;
138
- createdAt: number;
139
147
  } | undefined;
140
148
  feedback?: {
141
149
  createdAt?: number | undefined;
@@ -147,7 +155,9 @@ export declare const validate: import("ajv").ValidateFunction<{
147
155
  name: string;
148
156
  } | undefined;
149
157
  messageId: string;
158
+ agentName: string;
150
159
  projectId: string;
160
+ schemaId: string;
151
161
  sessionId: string;
152
162
  runMode: "BACKGROUND" | "IMMEDIATE";
153
163
  sentAt: number;
@@ -15,6 +15,14 @@ export const schema = {
15
15
  type: 'string',
16
16
  description: 'Project ID of the project this message belongs to'
17
17
  },
18
+ schemaId: {
19
+ type: 'string',
20
+ description: 'Schema ID this message was created by'
21
+ },
22
+ agentName: {
23
+ type: 'string',
24
+ description: 'Name of the agent this message was created by'
25
+ },
18
26
  input: {
19
27
  type: 'object'
20
28
  },
@@ -106,7 +114,7 @@ export const schema = {
106
114
  required: ['name']
107
115
  }
108
116
  },
109
- required: ['messageId', 'sessionId', 'projectId', 'runMode', 'sentAt'],
117
+ required: ['messageId', 'sessionId', 'agentName', 'projectId', 'schemaId', 'runMode', 'sentAt'],
110
118
  additionalProperties: false
111
119
  };
112
120
  export const validate = createTypedValidator(schema);
@@ -7,6 +7,16 @@ export declare const schema: {
7
7
  readonly type: "string";
8
8
  readonly description: "The unique identifier for the agent session.";
9
9
  };
10
+ readonly createdAt: {
11
+ readonly type: "string";
12
+ readonly description: "ISO8601 timestamp when the agent session was created";
13
+ readonly format: "date-time";
14
+ };
15
+ readonly updatedAt: {
16
+ readonly type: "string";
17
+ readonly description: "ISO8601 timestamp when the agent session was updated";
18
+ readonly format: "date-time";
19
+ };
10
20
  readonly agentName: {
11
21
  readonly type: "string";
12
22
  readonly description: "The name of the agent associated with this session.";
@@ -19,6 +29,10 @@ export declare const schema: {
19
29
  readonly type: "string";
20
30
  readonly description: "The schema ID associated with the agent session, typically in the format \"production~projectId\".";
21
31
  };
32
+ readonly schemaHash: {
33
+ readonly type: "string";
34
+ readonly description: "The hash of the schema version associated with the agent session.";
35
+ };
22
36
  readonly done: {
23
37
  readonly type: "boolean";
24
38
  readonly description: "Indicates whether the agent session is completed.";
@@ -56,7 +70,7 @@ export declare const schema: {
56
70
  readonly description: "Indicates whether the agent session has an associated history of agent responses.";
57
71
  };
58
72
  };
59
- readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId"];
73
+ readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId", "schemaHash"];
60
74
  readonly additionalProperties: false;
61
75
  };
62
76
  export type AgentSessionPayload = FromSchema<typeof schema> & {
@@ -6,6 +6,16 @@ export const schema = {
6
6
  type: 'string',
7
7
  description: 'The unique identifier for the agent session.'
8
8
  },
9
+ createdAt: {
10
+ type: 'string',
11
+ description: 'ISO8601 timestamp when the agent session was created',
12
+ format: 'date-time'
13
+ },
14
+ updatedAt: {
15
+ type: 'string',
16
+ description: 'ISO8601 timestamp when the agent session was updated',
17
+ format: 'date-time'
18
+ },
9
19
  agentName: {
10
20
  type: 'string',
11
21
  description: 'The name of the agent associated with this session.'
@@ -18,6 +28,10 @@ export const schema = {
18
28
  type: 'string',
19
29
  description: 'The schema ID associated with the agent session, typically in the format "production~projectId".'
20
30
  },
31
+ schemaHash: {
32
+ type: 'string',
33
+ description: 'The hash of the schema version associated with the agent session.'
34
+ },
21
35
  done: {
22
36
  type: 'boolean',
23
37
  description: 'Indicates whether the agent session is completed.'
@@ -58,13 +72,16 @@ export const schema = {
58
72
  required: [
59
73
  'id',
60
74
  'agentName',
75
+ 'createdAt',
76
+ 'updatedAt',
61
77
  'done',
62
78
  'currentStateId',
63
79
  'chatSessionIds',
64
80
  'sessionMemory',
65
81
  'stateOutputs',
66
82
  'projectId',
67
- 'schemaId'
83
+ 'schemaId',
84
+ 'schemaHash'
68
85
  ],
69
86
  additionalProperties: false
70
87
  };
@@ -6,10 +6,24 @@ export declare const schema: {
6
6
  readonly type: "string";
7
7
  readonly description: "The unique identifier for the agent session.";
8
8
  };
9
+ readonly createdAt: {
10
+ readonly type: "string";
11
+ readonly description: "ISO8601 timestamp when the agent session was created";
12
+ readonly format: "date-time";
13
+ };
14
+ readonly updatedAt: {
15
+ readonly type: "string";
16
+ readonly description: "ISO8601 timestamp when the agent session was updated";
17
+ readonly format: "date-time";
18
+ };
9
19
  readonly agentName: {
10
20
  readonly type: "string";
11
21
  readonly description: "The name of the agent associated with this session.";
12
22
  };
23
+ readonly schemaHash: {
24
+ readonly type: "string";
25
+ readonly description: "The hash of the schema version associated with the agent session.";
26
+ };
13
27
  readonly done: {
14
28
  readonly type: "boolean";
15
29
  readonly description: "Indicates whether the agent session is completed.";
@@ -53,6 +67,9 @@ export declare const schema: {
53
67
  };
54
68
  export type CreateAgentSessionResponse = FromSchema<typeof schema>;
55
69
  export declare const validate: import("ajv").ValidateFunction<{
70
+ createdAt?: string | undefined;
71
+ updatedAt?: string | undefined;
72
+ schemaHash?: string | undefined;
56
73
  suspended?: boolean | undefined;
57
74
  previousStateId?: string | undefined;
58
75
  currentValue?: {
@@ -21,6 +21,16 @@ export declare const schema: {
21
21
  readonly type: "string";
22
22
  readonly description: "The unique identifier for the agent session.";
23
23
  };
24
+ readonly createdAt: {
25
+ readonly type: "string";
26
+ readonly description: "ISO8601 timestamp when the agent session was created";
27
+ readonly format: "date-time";
28
+ };
29
+ readonly updatedAt: {
30
+ readonly type: "string";
31
+ readonly description: "ISO8601 timestamp when the agent session was updated";
32
+ readonly format: "date-time";
33
+ };
24
34
  readonly agentName: {
25
35
  readonly type: "string";
26
36
  readonly description: "The name of the agent associated with this session.";
@@ -33,6 +43,10 @@ export declare const schema: {
33
43
  readonly type: "string";
34
44
  readonly description: "The schema ID associated with the agent session, typically in the format \"production~projectId\".";
35
45
  };
46
+ readonly schemaHash: {
47
+ readonly type: "string";
48
+ readonly description: "The hash of the schema version associated with the agent session.";
49
+ };
36
50
  readonly done: {
37
51
  readonly type: "boolean";
38
52
  readonly description: "Indicates whether the agent session is completed.";
@@ -70,13 +84,17 @@ export declare const schema: {
70
84
  readonly description: "Indicates whether the agent session has an associated history of agent responses.";
71
85
  };
72
86
  };
73
- readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId"];
87
+ readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId", "schemaHash"];
74
88
  readonly additionalProperties: false;
75
89
  };
76
90
  readonly messageId: {
77
91
  readonly type: "string";
78
92
  readonly description: "ID of the message that was deferred";
79
93
  };
94
+ readonly agentName: {
95
+ readonly type: "string";
96
+ readonly description: "Name of the agent this message was created by";
97
+ };
80
98
  readonly input: {
81
99
  readonly type: "object";
82
100
  };
@@ -6,7 +6,7 @@ export const schema = {
6
6
  type: 'object',
7
7
  properties: {
8
8
  // The message payload has a structured output, the response output is just the output.data and is unknown
9
- ...omit(agentMessagePayload.schema.properties, ['output', 'sessionId', 'projectId']),
9
+ ...omit(agentMessagePayload.schema.properties, ['output', 'sessionId', 'projectId', 'schemaId']),
10
10
  aborted: {
11
11
  type: 'boolean',
12
12
  description: 'Indicates if the deferred message was aborted'
@@ -22,10 +22,24 @@ export declare const schema: {
22
22
  readonly type: "string";
23
23
  readonly description: "The unique identifier for the agent session.";
24
24
  };
25
+ readonly createdAt: {
26
+ readonly type: "string";
27
+ readonly description: "ISO8601 timestamp when the agent session was created";
28
+ readonly format: "date-time";
29
+ };
30
+ readonly updatedAt: {
31
+ readonly type: "string";
32
+ readonly description: "ISO8601 timestamp when the agent session was updated";
33
+ readonly format: "date-time";
34
+ };
25
35
  readonly agentName: {
26
36
  readonly type: "string";
27
37
  readonly description: "The name of the agent associated with this session.";
28
38
  };
39
+ readonly schemaHash: {
40
+ readonly type: "string";
41
+ readonly description: "The hash of the schema version associated with the agent session.";
42
+ };
29
43
  readonly done: {
30
44
  readonly type: "boolean";
31
45
  readonly description: "Indicates whether the agent session is completed.";
@@ -11,6 +11,10 @@ export declare const schema: {
11
11
  readonly description: "The mode in which the agent should run. \"ALLOW_BACKGROUND\" allows runs that would timeout to run longer in the background, \"BACKGROUND\" only runs in the background and results will need to be polled for. \"IMMEDIATE\" runs immediately and will timeout if it takes too long.";
12
12
  readonly enum: ["ALLOW_BACKGROUND", "BACKGROUND", "IMMEDIATE"];
13
13
  };
14
+ readonly token: {
15
+ readonly type: "string";
16
+ readonly description: "Proof of work to verify the request is not a bot.";
17
+ };
14
18
  };
15
19
  readonly required: [];
16
20
  readonly additionalProperties: true;
@@ -26,6 +30,10 @@ export declare const propertySchema: {
26
30
  readonly type: "string";
27
31
  readonly description: "Session ID to continue existing session with this agent";
28
32
  };
33
+ readonly token: {
34
+ readonly type: "string";
35
+ readonly description: "Proof of work to verify the request is not a bot.";
36
+ };
29
37
  };
30
38
  readonly required: [];
31
39
  readonly additionalProperties: false;
@@ -35,5 +43,6 @@ export type SendAgentMessageArgs = FromSchema<typeof schema>;
35
43
  export declare const validate: import("ajv").ValidateFunction<{
36
44
  [x: string]: unknown;
37
45
  sessionId?: string | undefined;
46
+ token?: string | undefined;
38
47
  runMode: "BACKGROUND" | "IMMEDIATE" | "ALLOW_BACKGROUND";
39
48
  }>;
@@ -12,6 +12,10 @@ export const schema = {
12
12
  ...agentRunMode.schema,
13
13
  default: 'IMMEDIATE',
14
14
  description: 'The mode in which the agent should run. "ALLOW_BACKGROUND" allows runs that would timeout to run longer in the background, "BACKGROUND" only runs in the background and results will need to be polled for. "IMMEDIATE" runs immediately and will timeout if it takes too long.'
15
+ },
16
+ token: {
17
+ type: 'string',
18
+ description: 'Proof of work to verify the request is not a bot.'
15
19
  }
16
20
  },
17
21
  required: [],
@@ -13,6 +13,16 @@ export declare const schema: {
13
13
  readonly type: "string";
14
14
  readonly description: "The unique identifier for the agent session.";
15
15
  };
16
+ readonly createdAt: {
17
+ readonly type: "string";
18
+ readonly description: "ISO8601 timestamp when the agent session was created";
19
+ readonly format: "date-time";
20
+ };
21
+ readonly updatedAt: {
22
+ readonly type: "string";
23
+ readonly description: "ISO8601 timestamp when the agent session was updated";
24
+ readonly format: "date-time";
25
+ };
16
26
  readonly agentName: {
17
27
  readonly type: "string";
18
28
  readonly description: "The name of the agent associated with this session.";
@@ -25,6 +35,10 @@ export declare const schema: {
25
35
  readonly type: "string";
26
36
  readonly description: "The schema ID associated with the agent session, typically in the format \"production~projectId\".";
27
37
  };
38
+ readonly schemaHash: {
39
+ readonly type: "string";
40
+ readonly description: "The hash of the schema version associated with the agent session.";
41
+ };
28
42
  readonly done: {
29
43
  readonly type: "boolean";
30
44
  readonly description: "Indicates whether the agent session is completed.";
@@ -62,7 +76,7 @@ export declare const schema: {
62
76
  readonly description: "Indicates whether the agent session has an associated history of agent responses.";
63
77
  };
64
78
  };
65
- readonly required: ["id", "agentName", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId"];
79
+ readonly required: ["id", "agentName", "createdAt", "updatedAt", "done", "currentStateId", "chatSessionIds", "sessionMemory", "stateOutputs", "projectId", "schemaId", "schemaHash"];
66
80
  readonly additionalProperties: false;
67
81
  };
68
82
  readonly runMode: {
@@ -328,6 +328,15 @@
328
328
  "updated": {
329
329
  "type": "number"
330
330
  },
331
+ "requiresEmailValidation": {
332
+ "type": "boolean"
333
+ },
334
+ "emailValidationToken": {
335
+ "type": "string"
336
+ },
337
+ "inviteCode": {
338
+ "type": "string"
339
+ },
331
340
  "firstTime": {
332
341
  "type": "boolean"
333
342
  },
@@ -1,4 +1,4 @@
1
- export declare const CURRENT_SCHEMA_VERSION = "3.58.0";
1
+ export declare const CURRENT_SCHEMA_VERSION = "3.59.0";
2
2
  export { default as anyProjectSchema } from './project-schema.json';
3
- export { default as latestSchemaJson } from './project-schema/v3.58.0.json';
3
+ export { default as latestSchemaJson } from './project-schema/v3.59.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.58.0';
2
+ export const CURRENT_SCHEMA_VERSION = '3.59.0';
3
3
  export { default as anyProjectSchema } from './project-schema.json' with { type: 'json' };
4
- export { default as latestSchemaJson } from './project-schema/v3.58.0.json' with { type: 'json' };
4
+ export { default as latestSchemaJson } from './project-schema/v3.59.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' };
@@ -82,6 +82,7 @@ import projectSchemaV3_55_0 from './project-schema/v3.55.0.json' with { type: 'j
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
84
  import projectSchemaV3_58_0 from './project-schema/v3.58.0.json' with { type: 'json' };
85
+ import projectSchemaV3_59_0 from './project-schema/v3.59.0.json' with { type: 'json' };
85
86
  import projectSchemaV4_0_0 from './project-schema/v4.0.0.json' with { type: 'json' };
86
87
  export const allProjectSchemas = [
87
88
  experimentalSchemaJson,
@@ -164,5 +165,6 @@ export const allProjectSchemas = [
164
165
  projectSchemaV3_56_0,
165
166
  projectSchemaV3_57_0,
166
167
  projectSchemaV3_58_0,
168
+ projectSchemaV3_59_0,
167
169
  projectSchemaV4_0_0
168
170
  ];
@@ -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.58.0#",
3
+ "$id": "https://schema.takeshape.io/project-schema/v3.59.0#",
4
4
  "title": "Project Schema JSON",
5
5
  "definitions": {
6
6
  "schemaArray": {
@@ -3482,6 +3482,9 @@
3482
3482
  },
3483
3483
  "historyStrategies": {
3484
3484
  "$ref": "#/definitions/historyStrategyMap"
3485
+ },
3486
+ "protection": {
3487
+ "$ref": "#/definitions/agentProtection"
3485
3488
  }
3486
3489
  },
3487
3490
  "required": ["start", "states", "api"],
@@ -3997,6 +4000,19 @@
3997
4000
  "required": ["guardId"],
3998
4001
  "additionalProperties": false
3999
4002
  },
4003
+ "agentProtection": {
4004
+ "title": "Agent Protection",
4005
+ "type": "object",
4006
+ "properties": {
4007
+ "enabled": {
4008
+ "title": "Enable Agent Abuse Protection",
4009
+ "description": "Enabling this will require a proof-of-work token to be included with each request. This will prevent abuse and spam.",
4010
+ "type": "boolean"
4011
+ }
4012
+ },
4013
+ "required": ["enabled"],
4014
+ "additionalProperties": false
4015
+ },
4000
4016
  "agentToolConfig": {
4001
4017
  "title": "AgentToolConfig",
4002
4018
  "type": "object",
@@ -4734,7 +4750,7 @@
4734
4750
  },
4735
4751
  "schemaVersion": {
4736
4752
  "type": "string",
4737
- "enum": ["3.58.0"],
4753
+ "enum": ["3.59.0"],
4738
4754
  "description": "The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format."
4739
4755
  },
4740
4756
  "projectId": {