@mastra/server 1.63.2 → 1.63.3-alpha.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 (136) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
  3. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
  4. package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
  5. package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
  6. package/dist/docs/SKILL.md +1 -1
  7. package/dist/docs/assets/SOURCE_MAP.json +1 -1
  8. package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
  9. package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
  10. package/dist/server/a2a/store.d.ts.map +1 -1
  11. package/dist/server/auth/helpers.d.ts +1 -1
  12. package/dist/server/auth/helpers.d.ts.map +1 -1
  13. package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
  14. package/dist/server/constants.d.ts +1 -1
  15. package/dist/server/constants.d.ts.map +1 -1
  16. package/dist/server/handlers/a2a.d.ts +60 -60
  17. package/dist/server/handlers/a2a.d.ts.map +1 -1
  18. package/dist/server/handlers/agent-builder.d.ts +110 -110
  19. package/dist/server/handlers/agent-controller.d.ts +110 -110
  20. package/dist/server/handlers/agent-versions.d.ts +5267 -5259
  21. package/dist/server/handlers/agent-versions.d.ts.map +1 -1
  22. package/dist/server/handlers/agents.d.ts +4355 -4355
  23. package/dist/server/handlers/agents.d.ts.map +1 -1
  24. package/dist/server/handlers/auth.d.ts +52 -52
  25. package/dist/server/handlers/background-tasks.d.ts +37 -37
  26. package/dist/server/handlers/builder-registry.d.ts +12 -12
  27. package/dist/server/handlers/channels.d.ts +10 -10
  28. package/dist/server/handlers/conversations.d.ts +13 -13
  29. package/dist/server/handlers/datasets.d.ts +396 -396
  30. package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
  31. package/dist/server/handlers/editor-builder.d.ts +13 -13
  32. package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
  33. package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
  34. package/dist/server/handlers/logs.d.ts +40 -40
  35. package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
  36. package/dist/server/handlers/mcp.d.ts +23 -23
  37. package/dist/server/handlers/memory.d.ts +138 -138
  38. package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
  39. package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
  40. package/dist/server/handlers/observability-shared.d.ts +126 -126
  41. package/dist/server/handlers/observability-shared.d.ts.map +1 -1
  42. package/dist/server/handlers/observability.d.ts +17 -17
  43. package/dist/server/handlers/plans.d.ts +3 -3
  44. package/dist/server/handlers/processor-providers.d.ts +9 -9
  45. package/dist/server/handlers/processors.d.ts +31 -31
  46. package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
  47. package/dist/server/handlers/responses.adapter.d.ts +3 -3
  48. package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
  49. package/dist/server/handlers/responses.d.ts +17 -17
  50. package/dist/server/handlers/schedules.d.ts +242 -242
  51. package/dist/server/handlers/scorer-versions.d.ts +39 -39
  52. package/dist/server/handlers/scores.d.ts +20 -20
  53. package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
  54. package/dist/server/handlers/stored-agents.d.ts +5992 -5984
  55. package/dist/server/handlers/stored-agents.d.ts.map +1 -1
  56. package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
  57. package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
  58. package/dist/server/handlers/stored-scorers.d.ts +56 -56
  59. package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
  60. package/dist/server/handlers/stored-skills.d.ts +70 -70
  61. package/dist/server/handlers/stored-workspaces.d.ts +36 -36
  62. package/dist/server/handlers/system.d.ts +19 -19
  63. package/dist/server/handlers/tool-providers.d.ts +49 -49
  64. package/dist/server/handlers/tools.d.ts +10 -10
  65. package/dist/server/handlers/vector.d.ts +18 -18
  66. package/dist/server/handlers/version-helpers.d.ts +1 -1
  67. package/dist/server/handlers/version-helpers.d.ts.map +1 -1
  68. package/dist/server/handlers/workflows.d.ts +167 -167
  69. package/dist/server/handlers/workspace.d.ts +370 -370
  70. package/dist/server/http-exception.d.ts.map +1 -1
  71. package/dist/server/schemas/a2a.d.ts +18 -18
  72. package/dist/server/schemas/agent-versions.d.ts +3948 -3948
  73. package/dist/server/schemas/agents.d.ts +172 -172
  74. package/dist/server/schemas/agents.d.ts.map +1 -1
  75. package/dist/server/schemas/auth.d.ts +5 -5
  76. package/dist/server/schemas/background-tasks.d.ts +22 -22
  77. package/dist/server/schemas/builder-registry.d.ts +1 -1
  78. package/dist/server/schemas/channels.d.ts +1 -1
  79. package/dist/server/schemas/common.d.ts +5 -5
  80. package/dist/server/schemas/common.d.ts.map +1 -1
  81. package/dist/server/schemas/conversations.d.ts +2 -2
  82. package/dist/server/schemas/datasets.d.ts +98 -98
  83. package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
  84. package/dist/server/schemas/logs.d.ts +8 -8
  85. package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
  86. package/dist/server/schemas/memory-config.d.ts +5 -5
  87. package/dist/server/schemas/memory.d.ts +20 -20
  88. package/dist/server/schemas/processor-providers.d.ts +2 -2
  89. package/dist/server/schemas/processors.d.ts +13 -13
  90. package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
  91. package/dist/server/schemas/responses.d.ts +11 -11
  92. package/dist/server/schemas/rule-group.d.ts +28 -28
  93. package/dist/server/schemas/schedules.d.ts +120 -120
  94. package/dist/server/schemas/scorer-versions.d.ts +9 -9
  95. package/dist/server/schemas/scores.d.ts +2 -2
  96. package/dist/server/schemas/stored-agents.d.ts +9052 -9052
  97. package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
  98. package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
  99. package/dist/server/schemas/stored-scorers.d.ts +16 -16
  100. package/dist/server/schemas/stored-skills.d.ts +22 -22
  101. package/dist/server/schemas/stored-workspaces.d.ts +6 -6
  102. package/dist/server/schemas/system.d.ts +12 -12
  103. package/dist/server/schemas/tool-providers.d.ts +20 -20
  104. package/dist/server/schemas/vectors.d.ts +1 -1
  105. package/dist/server/schemas/version-common.d.ts +2 -2
  106. package/dist/server/schemas/workflows.d.ts +57 -57
  107. package/dist/server/schemas/workspace.d.ts +17 -17
  108. package/dist/server/server-adapter/index.d.ts.map +1 -1
  109. package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
  110. package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
  111. package/dist/server/server-adapter/routes/channels.d.ts +10 -10
  112. package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
  113. package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
  114. package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
  115. package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
  116. package/dist/server/server-adapter/routes/logs.d.ts +40 -40
  117. package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
  118. package/dist/server/server-adapter/routes/memory.d.ts +138 -138
  119. package/dist/server/server-adapter/routes/observability.d.ts +446 -446
  120. package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
  121. package/dist/server/server-adapter/routes/processors.d.ts +31 -31
  122. package/dist/server/server-adapter/routes/responses.d.ts +17 -17
  123. package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
  124. package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
  125. package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
  126. package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
  127. package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
  128. package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
  129. package/dist/server/server-adapter/routes/system.d.ts +19 -19
  130. package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
  131. package/dist/server/server-adapter/routes/tools.d.ts +6 -6
  132. package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
  133. package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
  134. package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
  135. package/dist/server/utils.d.ts.map +1 -1
  136. package/package.json +7 -6
@@ -1,17 +1,17 @@
1
1
  /**
2
2
  * GET /stored/prompt-blocks/:promptBlockId/versions - List all versions for a prompt block
3
3
  */
4
- export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4
+ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5
5
  method: "GET";
6
6
  path: "/stored/prompt-blocks/:promptBlockId/versions";
7
7
  responseType: "json";
8
- streamFormat?: "sse" | "stream";
8
+ streamFormat?: 'sse' | 'stream';
9
9
  sseFlushOnConnect?: boolean;
10
10
  handler(params: import("../server-adapter").InferParams<import("zod").ZodObject<{
11
11
  promptBlockId: import("zod").ZodString;
12
12
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
13
- perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
14
13
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
14
+ perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
15
15
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
16
16
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
17
17
  createdAt: "createdAt";
@@ -23,8 +23,8 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
23
23
  }>>;
24
24
  }, import("zod/v4/core").$strip>>;
25
25
  }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
26
- perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
27
26
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
27
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
28
28
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
29
29
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
30
30
  createdAt: "createdAt";
@@ -45,26 +45,25 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
45
45
  blockId: string;
46
46
  versionNumber: number;
47
47
  name: string;
48
- content: string;
49
- createdAt: Date;
50
48
  description?: string | undefined;
49
+ content: string;
51
50
  rules?: {
52
51
  operator: "AND" | "OR";
53
52
  conditions: ({
54
53
  field: string;
55
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
54
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
56
55
  value?: unknown;
57
56
  } | {
58
57
  operator: "AND" | "OR";
59
58
  conditions: ({
60
59
  field: string;
61
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
60
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
62
61
  value?: unknown;
63
62
  } | {
64
63
  operator: "AND" | "OR";
65
64
  conditions: {
66
65
  field: string;
67
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
66
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
68
67
  value?: unknown;
69
68
  }[];
70
69
  })[];
@@ -73,6 +72,7 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
73
72
  requestContextSchema?: Record<string, unknown> | undefined;
74
73
  changedFields?: string[] | undefined;
75
74
  changeMessage?: string | undefined;
75
+ createdAt: Date;
76
76
  }[];
77
77
  }>;
78
78
  pathParamSchema?: import("zod").ZodType;
@@ -88,8 +88,8 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
88
88
  readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
89
89
  promptBlockId: import("zod").ZodString;
90
90
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
91
- perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
92
91
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
92
+ perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
93
93
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
94
94
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
95
95
  createdAt: "createdAt";
@@ -101,8 +101,8 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
101
101
  }>>;
102
102
  }, import("zod/v4/core").$strip>>;
103
103
  }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
104
- perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
105
104
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
105
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
106
106
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
107
107
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
108
108
  createdAt: "createdAt";
@@ -133,18 +133,18 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
133
133
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
134
134
  field: import("zod").ZodString;
135
135
  operator: import("zod").ZodEnum<{
136
- in: "in";
137
- equals: "equals";
138
- not_equals: "not_equals";
139
136
  contains: "contains";
140
- not_contains: "not_contains";
137
+ equals: "equals";
138
+ exists: "exists";
141
139
  greater_than: "greater_than";
142
- less_than: "less_than";
143
140
  greater_than_or_equal: "greater_than_or_equal";
141
+ in: "in";
142
+ less_than: "less_than";
144
143
  less_than_or_equal: "less_than_or_equal";
145
- not_in: "not_in";
146
- exists: "exists";
144
+ not_contains: "not_contains";
145
+ not_equals: "not_equals";
147
146
  not_exists: "not_exists";
147
+ not_in: "not_in";
148
148
  }>;
149
149
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
150
150
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -155,18 +155,18 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
155
155
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
156
156
  field: import("zod").ZodString;
157
157
  operator: import("zod").ZodEnum<{
158
- in: "in";
159
- equals: "equals";
160
- not_equals: "not_equals";
161
158
  contains: "contains";
162
- not_contains: "not_contains";
159
+ equals: "equals";
160
+ exists: "exists";
163
161
  greater_than: "greater_than";
164
- less_than: "less_than";
165
162
  greater_than_or_equal: "greater_than_or_equal";
163
+ in: "in";
164
+ less_than: "less_than";
166
165
  less_than_or_equal: "less_than_or_equal";
167
- not_in: "not_in";
168
- exists: "exists";
166
+ not_contains: "not_contains";
167
+ not_equals: "not_equals";
169
168
  not_exists: "not_exists";
169
+ not_in: "not_in";
170
170
  }>;
171
171
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
172
172
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -177,18 +177,18 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
177
177
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
178
178
  field: import("zod").ZodString;
179
179
  operator: import("zod").ZodEnum<{
180
- in: "in";
181
- equals: "equals";
182
- not_equals: "not_equals";
183
180
  contains: "contains";
184
- not_contains: "not_contains";
181
+ equals: "equals";
182
+ exists: "exists";
185
183
  greater_than: "greater_than";
186
- less_than: "less_than";
187
184
  greater_than_or_equal: "greater_than_or_equal";
185
+ in: "in";
186
+ less_than: "less_than";
188
187
  less_than_or_equal: "less_than_or_equal";
189
- not_in: "not_in";
190
- exists: "exists";
188
+ not_contains: "not_contains";
189
+ not_equals: "not_equals";
191
190
  not_exists: "not_exists";
191
+ not_in: "not_in";
192
192
  }>;
193
193
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
194
194
  }, import("zod/v4/core").$strip>>;
@@ -207,21 +207,17 @@ export declare const LIST_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core
207
207
  /**
208
208
  * POST /stored/prompt-blocks/:promptBlockId/versions - Create a new version snapshot
209
209
  */
210
- export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
210
+ export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
211
211
  method: "POST";
212
212
  path: "/stored/prompt-blocks/:promptBlockId/versions";
213
213
  responseType: "json";
214
- streamFormat?: "sse" | "stream";
214
+ streamFormat?: 'sse' | 'stream';
215
215
  sseFlushOnConnect?: boolean;
216
216
  handler(params: {
217
217
  promptBlockId: string;
218
218
  } & {
219
219
  changeMessage?: string | undefined;
220
220
  } & import("../server-adapter").ServerContext): Promise<{
221
- id: string;
222
- blockId: string;
223
- versionNumber: number;
224
- createdAt: Date;
225
221
  name?: string | undefined;
226
222
  description?: string | undefined;
227
223
  content?: string | undefined;
@@ -229,19 +225,19 @@ export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/cor
229
225
  operator: "AND" | "OR";
230
226
  conditions: ({
231
227
  field: string;
232
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
228
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
233
229
  value?: unknown;
234
230
  } | {
235
231
  operator: "AND" | "OR";
236
232
  conditions: ({
237
233
  field: string;
238
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
234
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
239
235
  value?: unknown;
240
236
  } | {
241
237
  operator: "AND" | "OR";
242
238
  conditions: {
243
239
  field: string;
244
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
240
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
245
241
  value?: unknown;
246
242
  }[];
247
243
  })[];
@@ -250,6 +246,10 @@ export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/cor
250
246
  requestContextSchema?: Record<string, unknown> | undefined;
251
247
  changedFields?: string[] | undefined;
252
248
  changeMessage?: string | undefined;
249
+ id: string;
250
+ blockId: string;
251
+ versionNumber: number;
252
+ createdAt: Date;
253
253
  }>;
254
254
  pathParamSchema?: import("zod").ZodType;
255
255
  queryParamSchema?: import("zod").ZodType;
@@ -277,18 +277,18 @@ export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/cor
277
277
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
278
278
  field: import("zod").ZodString;
279
279
  operator: import("zod").ZodEnum<{
280
- in: "in";
281
- equals: "equals";
282
- not_equals: "not_equals";
283
280
  contains: "contains";
284
- not_contains: "not_contains";
281
+ equals: "equals";
282
+ exists: "exists";
285
283
  greater_than: "greater_than";
286
- less_than: "less_than";
287
284
  greater_than_or_equal: "greater_than_or_equal";
285
+ in: "in";
286
+ less_than: "less_than";
288
287
  less_than_or_equal: "less_than_or_equal";
289
- not_in: "not_in";
290
- exists: "exists";
288
+ not_contains: "not_contains";
289
+ not_equals: "not_equals";
291
290
  not_exists: "not_exists";
291
+ not_in: "not_in";
292
292
  }>;
293
293
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
294
294
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -299,18 +299,18 @@ export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/cor
299
299
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
300
300
  field: import("zod").ZodString;
301
301
  operator: import("zod").ZodEnum<{
302
- in: "in";
303
- equals: "equals";
304
- not_equals: "not_equals";
305
302
  contains: "contains";
306
- not_contains: "not_contains";
303
+ equals: "equals";
304
+ exists: "exists";
307
305
  greater_than: "greater_than";
308
- less_than: "less_than";
309
306
  greater_than_or_equal: "greater_than_or_equal";
307
+ in: "in";
308
+ less_than: "less_than";
310
309
  less_than_or_equal: "less_than_or_equal";
311
- not_in: "not_in";
312
- exists: "exists";
310
+ not_contains: "not_contains";
311
+ not_equals: "not_equals";
313
312
  not_exists: "not_exists";
313
+ not_in: "not_in";
314
314
  }>;
315
315
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
316
316
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -321,18 +321,18 @@ export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/cor
321
321
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
322
322
  field: import("zod").ZodString;
323
323
  operator: import("zod").ZodEnum<{
324
- in: "in";
325
- equals: "equals";
326
- not_equals: "not_equals";
327
324
  contains: "contains";
328
- not_contains: "not_contains";
325
+ equals: "equals";
326
+ exists: "exists";
329
327
  greater_than: "greater_than";
330
- less_than: "less_than";
331
328
  greater_than_or_equal: "greater_than_or_equal";
329
+ in: "in";
330
+ less_than: "less_than";
332
331
  less_than_or_equal: "less_than_or_equal";
333
- not_in: "not_in";
334
- exists: "exists";
332
+ not_contains: "not_contains";
333
+ not_equals: "not_equals";
335
334
  not_exists: "not_exists";
335
+ not_in: "not_in";
336
336
  }>;
337
337
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
338
338
  }, import("zod/v4/core").$strip>>;
@@ -353,11 +353,11 @@ export declare const CREATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/cor
353
353
  /**
354
354
  * GET /stored/prompt-blocks/:promptBlockId/versions/:versionId - Get a specific version
355
355
  */
356
- export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
356
+ export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
357
357
  method: "GET";
358
358
  path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId";
359
359
  responseType: "json";
360
- streamFormat?: "sse" | "stream";
360
+ streamFormat?: 'sse' | 'stream';
361
361
  sseFlushOnConnect?: boolean;
362
362
  handler(params: {
363
363
  promptBlockId: string;
@@ -367,26 +367,25 @@ export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/s
367
367
  blockId: string;
368
368
  versionNumber: number;
369
369
  name: string;
370
- content: string;
371
- createdAt: Date;
372
370
  description?: string | undefined;
371
+ content: string;
373
372
  rules?: {
374
373
  operator: "AND" | "OR";
375
374
  conditions: ({
376
375
  field: string;
377
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
376
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
378
377
  value?: unknown;
379
378
  } | {
380
379
  operator: "AND" | "OR";
381
380
  conditions: ({
382
381
  field: string;
383
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
382
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
384
383
  value?: unknown;
385
384
  } | {
386
385
  operator: "AND" | "OR";
387
386
  conditions: {
388
387
  field: string;
389
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
388
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
390
389
  value?: unknown;
391
390
  }[];
392
391
  })[];
@@ -395,6 +394,7 @@ export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/s
395
394
  requestContextSchema?: Record<string, unknown> | undefined;
396
395
  changedFields?: string[] | undefined;
397
396
  changeMessage?: string | undefined;
397
+ createdAt: Date;
398
398
  }>;
399
399
  pathParamSchema?: import("zod").ZodType;
400
400
  queryParamSchema?: import("zod").ZodType;
@@ -424,18 +424,18 @@ export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/s
424
424
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
425
425
  field: import("zod").ZodString;
426
426
  operator: import("zod").ZodEnum<{
427
- in: "in";
428
- equals: "equals";
429
- not_equals: "not_equals";
430
427
  contains: "contains";
431
- not_contains: "not_contains";
428
+ equals: "equals";
429
+ exists: "exists";
432
430
  greater_than: "greater_than";
433
- less_than: "less_than";
434
431
  greater_than_or_equal: "greater_than_or_equal";
432
+ in: "in";
433
+ less_than: "less_than";
435
434
  less_than_or_equal: "less_than_or_equal";
436
- not_in: "not_in";
437
- exists: "exists";
435
+ not_contains: "not_contains";
436
+ not_equals: "not_equals";
438
437
  not_exists: "not_exists";
438
+ not_in: "not_in";
439
439
  }>;
440
440
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
441
441
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -446,18 +446,18 @@ export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/s
446
446
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
447
447
  field: import("zod").ZodString;
448
448
  operator: import("zod").ZodEnum<{
449
- in: "in";
450
- equals: "equals";
451
- not_equals: "not_equals";
452
449
  contains: "contains";
453
- not_contains: "not_contains";
450
+ equals: "equals";
451
+ exists: "exists";
454
452
  greater_than: "greater_than";
455
- less_than: "less_than";
456
453
  greater_than_or_equal: "greater_than_or_equal";
454
+ in: "in";
455
+ less_than: "less_than";
457
456
  less_than_or_equal: "less_than_or_equal";
458
- not_in: "not_in";
459
- exists: "exists";
457
+ not_contains: "not_contains";
458
+ not_equals: "not_equals";
460
459
  not_exists: "not_exists";
460
+ not_in: "not_in";
461
461
  }>;
462
462
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
463
463
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -468,18 +468,18 @@ export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/s
468
468
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
469
469
  field: import("zod").ZodString;
470
470
  operator: import("zod").ZodEnum<{
471
- in: "in";
472
- equals: "equals";
473
- not_equals: "not_equals";
474
471
  contains: "contains";
475
- not_contains: "not_contains";
472
+ equals: "equals";
473
+ exists: "exists";
476
474
  greater_than: "greater_than";
477
- less_than: "less_than";
478
475
  greater_than_or_equal: "greater_than_or_equal";
476
+ in: "in";
477
+ less_than: "less_than";
479
478
  less_than_or_equal: "less_than_or_equal";
480
- not_in: "not_in";
481
- exists: "exists";
479
+ not_contains: "not_contains";
480
+ not_equals: "not_equals";
482
481
  not_exists: "not_exists";
482
+ not_in: "not_in";
483
483
  }>;
484
484
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
485
485
  }, import("zod/v4/core").$strip>>;
@@ -497,11 +497,11 @@ export declare const GET_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/s
497
497
  /**
498
498
  * POST /stored/prompt-blocks/:promptBlockId/versions/:versionId/activate - Set a version as active
499
499
  */
500
- export declare const ACTIVATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
500
+ export declare const ACTIVATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
501
501
  method: "POST";
502
502
  path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId/activate";
503
503
  responseType: "json";
504
- streamFormat?: "sse" | "stream";
504
+ streamFormat?: 'sse' | 'stream';
505
505
  sseFlushOnConnect?: boolean;
506
506
  handler(params: {
507
507
  promptBlockId: string;
@@ -535,11 +535,11 @@ export declare const ACTIVATE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/c
535
535
  /**
536
536
  * POST /stored/prompt-blocks/:promptBlockId/versions/:versionId/restore - Restore prompt block to a version
537
537
  */
538
- export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
538
+ export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
539
539
  method: "POST";
540
540
  path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId/restore";
541
541
  responseType: "json";
542
- streamFormat?: "sse" | "stream";
542
+ streamFormat?: 'sse' | 'stream';
543
543
  sseFlushOnConnect?: boolean;
544
544
  handler(params: {
545
545
  promptBlockId: string;
@@ -549,26 +549,25 @@ export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/co
549
549
  blockId: string;
550
550
  versionNumber: number;
551
551
  name: string;
552
- content: string;
553
- createdAt: Date;
554
552
  description?: string | undefined;
553
+ content: string;
555
554
  rules?: {
556
555
  operator: "AND" | "OR";
557
556
  conditions: ({
558
557
  field: string;
559
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
558
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
560
559
  value?: unknown;
561
560
  } | {
562
561
  operator: "AND" | "OR";
563
562
  conditions: ({
564
563
  field: string;
565
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
564
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
566
565
  value?: unknown;
567
566
  } | {
568
567
  operator: "AND" | "OR";
569
568
  conditions: {
570
569
  field: string;
571
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
570
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
572
571
  value?: unknown;
573
572
  }[];
574
573
  })[];
@@ -577,6 +576,7 @@ export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/co
577
576
  requestContextSchema?: Record<string, unknown> | undefined;
578
577
  changedFields?: string[] | undefined;
579
578
  changeMessage?: string | undefined;
579
+ createdAt: Date;
580
580
  }>;
581
581
  pathParamSchema?: import("zod").ZodType;
582
582
  queryParamSchema?: import("zod").ZodType;
@@ -606,18 +606,18 @@ export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/co
606
606
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
607
607
  field: import("zod").ZodString;
608
608
  operator: import("zod").ZodEnum<{
609
- in: "in";
610
- equals: "equals";
611
- not_equals: "not_equals";
612
609
  contains: "contains";
613
- not_contains: "not_contains";
610
+ equals: "equals";
611
+ exists: "exists";
614
612
  greater_than: "greater_than";
615
- less_than: "less_than";
616
613
  greater_than_or_equal: "greater_than_or_equal";
614
+ in: "in";
615
+ less_than: "less_than";
617
616
  less_than_or_equal: "less_than_or_equal";
618
- not_in: "not_in";
619
- exists: "exists";
617
+ not_contains: "not_contains";
618
+ not_equals: "not_equals";
620
619
  not_exists: "not_exists";
620
+ not_in: "not_in";
621
621
  }>;
622
622
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
623
623
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -628,18 +628,18 @@ export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/co
628
628
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
629
629
  field: import("zod").ZodString;
630
630
  operator: import("zod").ZodEnum<{
631
- in: "in";
632
- equals: "equals";
633
- not_equals: "not_equals";
634
631
  contains: "contains";
635
- not_contains: "not_contains";
632
+ equals: "equals";
633
+ exists: "exists";
636
634
  greater_than: "greater_than";
637
- less_than: "less_than";
638
635
  greater_than_or_equal: "greater_than_or_equal";
636
+ in: "in";
637
+ less_than: "less_than";
639
638
  less_than_or_equal: "less_than_or_equal";
640
- not_in: "not_in";
641
- exists: "exists";
639
+ not_contains: "not_contains";
640
+ not_equals: "not_equals";
642
641
  not_exists: "not_exists";
642
+ not_in: "not_in";
643
643
  }>;
644
644
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
645
645
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -650,18 +650,18 @@ export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/co
650
650
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
651
651
  field: import("zod").ZodString;
652
652
  operator: import("zod").ZodEnum<{
653
- in: "in";
654
- equals: "equals";
655
- not_equals: "not_equals";
656
653
  contains: "contains";
657
- not_contains: "not_contains";
654
+ equals: "equals";
655
+ exists: "exists";
658
656
  greater_than: "greater_than";
659
- less_than: "less_than";
660
657
  greater_than_or_equal: "greater_than_or_equal";
658
+ in: "in";
659
+ less_than: "less_than";
661
660
  less_than_or_equal: "less_than_or_equal";
662
- not_in: "not_in";
663
- exists: "exists";
661
+ not_contains: "not_contains";
662
+ not_equals: "not_equals";
664
663
  not_exists: "not_exists";
664
+ not_in: "not_in";
665
665
  }>;
666
666
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
667
667
  }, import("zod/v4/core").$strip>>;
@@ -679,11 +679,11 @@ export declare const RESTORE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/co
679
679
  /**
680
680
  * DELETE /stored/prompt-blocks/:promptBlockId/versions/:versionId - Delete a version
681
681
  */
682
- export declare const DELETE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
682
+ export declare const DELETE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
683
683
  method: "DELETE";
684
684
  path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId";
685
685
  responseType: "json";
686
- streamFormat?: "sse" | "stream";
686
+ streamFormat?: 'sse' | 'stream';
687
687
  sseFlushOnConnect?: boolean;
688
688
  handler(params: {
689
689
  promptBlockId: string;
@@ -715,11 +715,11 @@ export declare const DELETE_PROMPT_BLOCK_VERSION_ROUTE: Omit<import("@mastra/cor
715
715
  /**
716
716
  * GET /stored/prompt-blocks/:promptBlockId/versions/compare - Compare two versions
717
717
  */
718
- export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
718
+ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
719
719
  method: "GET";
720
720
  path: "/stored/prompt-blocks/:promptBlockId/versions/compare";
721
721
  responseType: "json";
722
- streamFormat?: "sse" | "stream";
722
+ streamFormat?: 'sse' | 'stream';
723
723
  sseFlushOnConnect?: boolean;
724
724
  handler(params: {
725
725
  promptBlockId: string;
@@ -737,26 +737,25 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
737
737
  blockId: string;
738
738
  versionNumber: number;
739
739
  name: string;
740
- content: string;
741
- createdAt: Date;
742
740
  description?: string | undefined;
741
+ content: string;
743
742
  rules?: {
744
743
  operator: "AND" | "OR";
745
744
  conditions: ({
746
745
  field: string;
747
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
746
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
748
747
  value?: unknown;
749
748
  } | {
750
749
  operator: "AND" | "OR";
751
750
  conditions: ({
752
751
  field: string;
753
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
752
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
754
753
  value?: unknown;
755
754
  } | {
756
755
  operator: "AND" | "OR";
757
756
  conditions: {
758
757
  field: string;
759
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
758
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
760
759
  value?: unknown;
761
760
  }[];
762
761
  })[];
@@ -765,32 +764,32 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
765
764
  requestContextSchema?: Record<string, unknown> | undefined;
766
765
  changedFields?: string[] | undefined;
767
766
  changeMessage?: string | undefined;
767
+ createdAt: Date;
768
768
  };
769
769
  toVersion: {
770
770
  id: string;
771
771
  blockId: string;
772
772
  versionNumber: number;
773
773
  name: string;
774
- content: string;
775
- createdAt: Date;
776
774
  description?: string | undefined;
775
+ content: string;
777
776
  rules?: {
778
777
  operator: "AND" | "OR";
779
778
  conditions: ({
780
779
  field: string;
781
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
780
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
782
781
  value?: unknown;
783
782
  } | {
784
783
  operator: "AND" | "OR";
785
784
  conditions: ({
786
785
  field: string;
787
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
786
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
788
787
  value?: unknown;
789
788
  } | {
790
789
  operator: "AND" | "OR";
791
790
  conditions: {
792
791
  field: string;
793
- operator: "in" | "equals" | "not_equals" | "contains" | "not_contains" | "greater_than" | "less_than" | "greater_than_or_equal" | "less_than_or_equal" | "not_in" | "exists" | "not_exists";
792
+ operator: "contains" | "equals" | "exists" | "greater_than" | "greater_than_or_equal" | "in" | "less_than" | "less_than_or_equal" | "not_contains" | "not_equals" | "not_exists" | "not_in";
794
793
  value?: unknown;
795
794
  }[];
796
795
  })[];
@@ -799,6 +798,7 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
799
798
  requestContextSchema?: Record<string, unknown> | undefined;
800
799
  changedFields?: string[] | undefined;
801
800
  changeMessage?: string | undefined;
801
+ createdAt: Date;
802
802
  };
803
803
  }>;
804
804
  pathParamSchema?: import("zod").ZodType;
@@ -837,18 +837,18 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
837
837
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
838
838
  field: import("zod").ZodString;
839
839
  operator: import("zod").ZodEnum<{
840
- in: "in";
841
- equals: "equals";
842
- not_equals: "not_equals";
843
840
  contains: "contains";
844
- not_contains: "not_contains";
841
+ equals: "equals";
842
+ exists: "exists";
845
843
  greater_than: "greater_than";
846
- less_than: "less_than";
847
844
  greater_than_or_equal: "greater_than_or_equal";
845
+ in: "in";
846
+ less_than: "less_than";
848
847
  less_than_or_equal: "less_than_or_equal";
849
- not_in: "not_in";
850
- exists: "exists";
848
+ not_contains: "not_contains";
849
+ not_equals: "not_equals";
851
850
  not_exists: "not_exists";
851
+ not_in: "not_in";
852
852
  }>;
853
853
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
854
854
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -859,18 +859,18 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
859
859
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
860
860
  field: import("zod").ZodString;
861
861
  operator: import("zod").ZodEnum<{
862
- in: "in";
863
- equals: "equals";
864
- not_equals: "not_equals";
865
862
  contains: "contains";
866
- not_contains: "not_contains";
863
+ equals: "equals";
864
+ exists: "exists";
867
865
  greater_than: "greater_than";
868
- less_than: "less_than";
869
866
  greater_than_or_equal: "greater_than_or_equal";
867
+ in: "in";
868
+ less_than: "less_than";
870
869
  less_than_or_equal: "less_than_or_equal";
871
- not_in: "not_in";
872
- exists: "exists";
870
+ not_contains: "not_contains";
871
+ not_equals: "not_equals";
873
872
  not_exists: "not_exists";
873
+ not_in: "not_in";
874
874
  }>;
875
875
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
876
876
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -881,18 +881,18 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
881
881
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
882
882
  field: import("zod").ZodString;
883
883
  operator: import("zod").ZodEnum<{
884
- in: "in";
885
- equals: "equals";
886
- not_equals: "not_equals";
887
884
  contains: "contains";
888
- not_contains: "not_contains";
885
+ equals: "equals";
886
+ exists: "exists";
889
887
  greater_than: "greater_than";
890
- less_than: "less_than";
891
888
  greater_than_or_equal: "greater_than_or_equal";
889
+ in: "in";
890
+ less_than: "less_than";
892
891
  less_than_or_equal: "less_than_or_equal";
893
- not_in: "not_in";
894
- exists: "exists";
892
+ not_contains: "not_contains";
893
+ not_equals: "not_equals";
895
894
  not_exists: "not_exists";
895
+ not_in: "not_in";
896
896
  }>;
897
897
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
898
898
  }, import("zod/v4/core").$strip>>;
@@ -919,18 +919,18 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
919
919
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
920
920
  field: import("zod").ZodString;
921
921
  operator: import("zod").ZodEnum<{
922
- in: "in";
923
- equals: "equals";
924
- not_equals: "not_equals";
925
922
  contains: "contains";
926
- not_contains: "not_contains";
923
+ equals: "equals";
924
+ exists: "exists";
927
925
  greater_than: "greater_than";
928
- less_than: "less_than";
929
926
  greater_than_or_equal: "greater_than_or_equal";
927
+ in: "in";
928
+ less_than: "less_than";
930
929
  less_than_or_equal: "less_than_or_equal";
931
- not_in: "not_in";
932
- exists: "exists";
930
+ not_contains: "not_contains";
931
+ not_equals: "not_equals";
933
932
  not_exists: "not_exists";
933
+ not_in: "not_in";
934
934
  }>;
935
935
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
936
936
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -941,18 +941,18 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
941
941
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
942
942
  field: import("zod").ZodString;
943
943
  operator: import("zod").ZodEnum<{
944
- in: "in";
945
- equals: "equals";
946
- not_equals: "not_equals";
947
944
  contains: "contains";
948
- not_contains: "not_contains";
945
+ equals: "equals";
946
+ exists: "exists";
949
947
  greater_than: "greater_than";
950
- less_than: "less_than";
951
948
  greater_than_or_equal: "greater_than_or_equal";
949
+ in: "in";
950
+ less_than: "less_than";
952
951
  less_than_or_equal: "less_than_or_equal";
953
- not_in: "not_in";
954
- exists: "exists";
952
+ not_contains: "not_contains";
953
+ not_equals: "not_equals";
955
954
  not_exists: "not_exists";
955
+ not_in: "not_in";
956
956
  }>;
957
957
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
958
958
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -963,18 +963,18 @@ export declare const COMPARE_PROMPT_BLOCK_VERSIONS_ROUTE: Omit<import("@mastra/c
963
963
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
964
964
  field: import("zod").ZodString;
965
965
  operator: import("zod").ZodEnum<{
966
- in: "in";
967
- equals: "equals";
968
- not_equals: "not_equals";
969
966
  contains: "contains";
970
- not_contains: "not_contains";
967
+ equals: "equals";
968
+ exists: "exists";
971
969
  greater_than: "greater_than";
972
- less_than: "less_than";
973
970
  greater_than_or_equal: "greater_than_or_equal";
971
+ in: "in";
972
+ less_than: "less_than";
974
973
  less_than_or_equal: "less_than_or_equal";
975
- not_in: "not_in";
976
- exists: "exists";
974
+ not_contains: "not_contains";
975
+ not_equals: "not_equals";
977
976
  not_exists: "not_exists";
977
+ not_in: "not_in";
978
978
  }>;
979
979
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
980
980
  }, import("zod/v4/core").$strip>>;