@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,15 +1,15 @@
1
1
  /**
2
2
  * GET /stored/prompt-blocks - List all stored prompt blocks
3
3
  */
4
- export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
4
+ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
5
5
  method: "GET";
6
6
  path: "/stored/prompt-blocks";
7
7
  responseType: "json";
8
- streamFormat?: "sse" | "stream";
8
+ streamFormat?: 'sse' | 'stream';
9
9
  sseFlushOnConnect?: boolean;
10
10
  handler(params: import("../server-adapter").InferParams<undefined, import("zod").ZodObject<{
11
- perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
12
11
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
12
+ perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
13
13
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
14
14
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
15
15
  createdAt: "createdAt";
@@ -21,15 +21,15 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
21
21
  }>>;
22
22
  }, import("zod/v4/core").$strip>>;
23
23
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
24
+ archived: "archived";
24
25
  draft: "draft";
25
26
  published: "published";
26
- archived: "archived";
27
27
  }>>;
28
28
  authorId: import("zod").ZodOptional<import("zod").ZodString>;
29
29
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
30
30
  }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
31
- perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
32
31
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
32
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
33
33
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
34
34
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
35
35
  createdAt: "createdAt";
@@ -41,9 +41,9 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
41
41
  }>>;
42
42
  }, import("zod/v4/core").$strip>>;
43
43
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
44
+ archived: "archived";
44
45
  draft: "draft";
45
46
  published: "published";
46
- archived: "archived";
47
47
  }>>;
48
48
  authorId: import("zod").ZodOptional<import("zod").ZodString>;
49
49
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
@@ -55,32 +55,32 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
55
55
  promptBlocks: {
56
56
  id: string;
57
57
  status: string;
58
- createdAt: Date;
59
- updatedAt: Date;
60
- name: string;
61
- content: string;
62
58
  activeVersionId?: string | undefined;
63
59
  hasDraft?: boolean | undefined;
64
60
  authorId?: string | undefined;
65
61
  metadata?: Record<string, unknown> | undefined;
62
+ createdAt: Date;
63
+ updatedAt: Date;
64
+ name: string;
66
65
  description?: string | undefined;
66
+ content: string;
67
67
  rules?: {
68
68
  operator: "AND" | "OR";
69
69
  conditions: ({
70
70
  field: string;
71
- 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";
71
+ 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";
72
72
  value?: unknown;
73
73
  } | {
74
74
  operator: "AND" | "OR";
75
75
  conditions: ({
76
76
  field: string;
77
- 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";
77
+ 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";
78
78
  value?: unknown;
79
79
  } | {
80
80
  operator: "AND" | "OR";
81
81
  conditions: {
82
82
  field: string;
83
- 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";
83
+ 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";
84
84
  value?: unknown;
85
85
  }[];
86
86
  })[];
@@ -100,8 +100,8 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
100
100
  fga?: import("@mastra/core/auth").FGARouteConfig;
101
101
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
102
102
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, import("zod").ZodObject<{
103
- perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
104
103
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
104
+ perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
105
105
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
106
106
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
107
107
  createdAt: "createdAt";
@@ -113,15 +113,15 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
113
113
  }>>;
114
114
  }, import("zod/v4/core").$strip>>;
115
115
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
116
+ archived: "archived";
116
117
  draft: "draft";
117
118
  published: "published";
118
- archived: "archived";
119
119
  }>>;
120
120
  authorId: import("zod").ZodOptional<import("zod").ZodString>;
121
121
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
122
122
  }, import("zod/v4/core").$strip> | import("zod").ZodObject<{
123
- perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
124
123
  page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
124
+ perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
125
125
  orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
126
126
  field: import("zod").ZodOptional<import("zod").ZodEnum<{
127
127
  createdAt: "createdAt";
@@ -133,9 +133,9 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
133
133
  }>>;
134
134
  }, import("zod/v4/core").$strip>>;
135
135
  status: import("zod").ZodOptional<import("zod").ZodEnum<{
136
+ archived: "archived";
136
137
  draft: "draft";
137
138
  published: "published";
138
- archived: "archived";
139
139
  }>>;
140
140
  authorId: import("zod").ZodOptional<import("zod").ZodString>;
141
141
  metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
@@ -164,18 +164,18 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
164
164
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
165
165
  field: import("zod").ZodString;
166
166
  operator: import("zod").ZodEnum<{
167
- in: "in";
168
- equals: "equals";
169
- not_equals: "not_equals";
170
167
  contains: "contains";
171
- not_contains: "not_contains";
168
+ equals: "equals";
169
+ exists: "exists";
172
170
  greater_than: "greater_than";
173
- less_than: "less_than";
174
171
  greater_than_or_equal: "greater_than_or_equal";
172
+ in: "in";
173
+ less_than: "less_than";
175
174
  less_than_or_equal: "less_than_or_equal";
176
- not_in: "not_in";
177
- exists: "exists";
175
+ not_contains: "not_contains";
176
+ not_equals: "not_equals";
178
177
  not_exists: "not_exists";
178
+ not_in: "not_in";
179
179
  }>;
180
180
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
181
181
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -186,18 +186,18 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
186
186
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
187
187
  field: import("zod").ZodString;
188
188
  operator: import("zod").ZodEnum<{
189
- in: "in";
190
- equals: "equals";
191
- not_equals: "not_equals";
192
189
  contains: "contains";
193
- not_contains: "not_contains";
190
+ equals: "equals";
191
+ exists: "exists";
194
192
  greater_than: "greater_than";
195
- less_than: "less_than";
196
193
  greater_than_or_equal: "greater_than_or_equal";
194
+ in: "in";
195
+ less_than: "less_than";
197
196
  less_than_or_equal: "less_than_or_equal";
198
- not_in: "not_in";
199
- exists: "exists";
197
+ not_contains: "not_contains";
198
+ not_equals: "not_equals";
200
199
  not_exists: "not_exists";
200
+ not_in: "not_in";
201
201
  }>;
202
202
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
203
203
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -208,18 +208,18 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
208
208
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
209
209
  field: import("zod").ZodString;
210
210
  operator: import("zod").ZodEnum<{
211
- in: "in";
212
- equals: "equals";
213
- not_equals: "not_equals";
214
211
  contains: "contains";
215
- not_contains: "not_contains";
212
+ equals: "equals";
213
+ exists: "exists";
216
214
  greater_than: "greater_than";
217
- less_than: "less_than";
218
215
  greater_than_or_equal: "greater_than_or_equal";
216
+ in: "in";
217
+ less_than: "less_than";
219
218
  less_than_or_equal: "less_than_or_equal";
220
- not_in: "not_in";
221
- exists: "exists";
219
+ not_contains: "not_contains";
220
+ not_equals: "not_equals";
222
221
  not_exists: "not_exists";
222
+ not_in: "not_in";
223
223
  }>;
224
224
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
225
225
  }, import("zod/v4/core").$strip>>;
@@ -235,45 +235,45 @@ export declare const LIST_STORED_PROMPT_BLOCKS_ROUTE: Omit<import("@mastra/core/
235
235
  /**
236
236
  * GET /stored/prompt-blocks/:storedPromptBlockId - Get a stored prompt block by ID
237
237
  */
238
- export declare const GET_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
238
+ export declare const GET_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
239
239
  method: "GET";
240
240
  path: "/stored/prompt-blocks/:storedPromptBlockId";
241
241
  responseType: "json";
242
- streamFormat?: "sse" | "stream";
242
+ streamFormat?: 'sse' | 'stream';
243
243
  sseFlushOnConnect?: boolean;
244
244
  handler(params: {
245
245
  storedPromptBlockId: string;
246
246
  } & {
247
- status: "draft" | "published" | "archived";
247
+ status: "archived" | "draft" | "published";
248
248
  } & import("../server-adapter").ServerContext): Promise<{
249
249
  id: string;
250
250
  status: string;
251
- createdAt: Date;
252
- updatedAt: Date;
253
- name: string;
254
- content: string;
255
251
  activeVersionId?: string | undefined;
256
252
  hasDraft?: boolean | undefined;
257
253
  authorId?: string | undefined;
258
254
  metadata?: Record<string, unknown> | undefined;
255
+ createdAt: Date;
256
+ updatedAt: Date;
257
+ name: string;
259
258
  description?: string | undefined;
259
+ content: string;
260
260
  rules?: {
261
261
  operator: "AND" | "OR";
262
262
  conditions: ({
263
263
  field: string;
264
- 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";
264
+ 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";
265
265
  value?: unknown;
266
266
  } | {
267
267
  operator: "AND" | "OR";
268
268
  conditions: ({
269
269
  field: string;
270
- 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";
270
+ 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";
271
271
  value?: unknown;
272
272
  } | {
273
273
  operator: "AND" | "OR";
274
274
  conditions: {
275
275
  field: string;
276
- 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";
276
+ 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";
277
277
  value?: unknown;
278
278
  }[];
279
279
  })[];
@@ -295,9 +295,9 @@ export declare const GET_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/se
295
295
  storedPromptBlockId: import("zod").ZodString;
296
296
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
297
297
  status: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
298
+ archived: "archived";
298
299
  draft: "draft";
299
300
  published: "published";
300
- archived: "archived";
301
301
  }>>>;
302
302
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
303
303
  id: import("zod").ZodString;
@@ -319,18 +319,18 @@ export declare const GET_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/se
319
319
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
320
320
  field: import("zod").ZodString;
321
321
  operator: import("zod").ZodEnum<{
322
- in: "in";
323
- equals: "equals";
324
- not_equals: "not_equals";
325
322
  contains: "contains";
326
- not_contains: "not_contains";
323
+ equals: "equals";
324
+ exists: "exists";
327
325
  greater_than: "greater_than";
328
- less_than: "less_than";
329
326
  greater_than_or_equal: "greater_than_or_equal";
327
+ in: "in";
328
+ less_than: "less_than";
330
329
  less_than_or_equal: "less_than_or_equal";
331
- not_in: "not_in";
332
- exists: "exists";
330
+ not_contains: "not_contains";
331
+ not_equals: "not_equals";
333
332
  not_exists: "not_exists";
333
+ not_in: "not_in";
334
334
  }>;
335
335
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
336
336
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -341,18 +341,18 @@ export declare const GET_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/se
341
341
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
342
342
  field: import("zod").ZodString;
343
343
  operator: import("zod").ZodEnum<{
344
- in: "in";
345
- equals: "equals";
346
- not_equals: "not_equals";
347
344
  contains: "contains";
348
- not_contains: "not_contains";
345
+ equals: "equals";
346
+ exists: "exists";
349
347
  greater_than: "greater_than";
350
- less_than: "less_than";
351
348
  greater_than_or_equal: "greater_than_or_equal";
349
+ in: "in";
350
+ less_than: "less_than";
352
351
  less_than_or_equal: "less_than_or_equal";
353
- not_in: "not_in";
354
- exists: "exists";
352
+ not_contains: "not_contains";
353
+ not_equals: "not_equals";
355
354
  not_exists: "not_exists";
355
+ not_in: "not_in";
356
356
  }>;
357
357
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
358
358
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -363,18 +363,18 @@ export declare const GET_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/se
363
363
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
364
364
  field: import("zod").ZodString;
365
365
  operator: import("zod").ZodEnum<{
366
- in: "in";
367
- equals: "equals";
368
- not_equals: "not_equals";
369
366
  contains: "contains";
370
- not_contains: "not_contains";
367
+ equals: "equals";
368
+ exists: "exists";
371
369
  greater_than: "greater_than";
372
- less_than: "less_than";
373
370
  greater_than_or_equal: "greater_than_or_equal";
371
+ in: "in";
372
+ less_than: "less_than";
374
373
  less_than_or_equal: "less_than_or_equal";
375
- not_in: "not_in";
376
- exists: "exists";
374
+ not_contains: "not_contains";
375
+ not_equals: "not_equals";
377
376
  not_exists: "not_exists";
377
+ not_in: "not_in";
378
378
  }>;
379
379
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
380
380
  }, import("zod/v4/core").$strip>>;
@@ -389,71 +389,71 @@ export declare const GET_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/se
389
389
  /**
390
390
  * POST /stored/prompt-blocks - Create a new stored prompt block
391
391
  */
392
- export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
392
+ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
393
393
  method: "POST";
394
394
  path: "/stored/prompt-blocks";
395
395
  responseType: "json";
396
- streamFormat?: "sse" | "stream";
396
+ streamFormat?: 'sse' | 'stream';
397
397
  sseFlushOnConnect?: boolean;
398
398
  handler(params: {
399
399
  name: string;
400
- content: string;
401
- id?: string | undefined;
402
- authorId?: string | undefined;
403
- metadata?: Record<string, unknown> | undefined;
404
400
  description?: string | undefined;
401
+ content: string;
405
402
  rules?: {
406
403
  operator: "AND" | "OR";
407
404
  conditions: ({
408
405
  field: string;
409
- 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";
406
+ 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";
410
407
  value?: unknown;
411
408
  } | {
412
409
  operator: "AND" | "OR";
413
410
  conditions: ({
414
411
  field: string;
415
- 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";
412
+ 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";
416
413
  value?: unknown;
417
414
  } | {
418
415
  operator: "AND" | "OR";
419
416
  conditions: {
420
417
  field: string;
421
- 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";
418
+ 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";
422
419
  value?: unknown;
423
420
  }[];
424
421
  })[];
425
422
  })[];
426
423
  } | undefined;
427
424
  requestContextSchema?: Record<string, unknown> | undefined;
425
+ id?: string | undefined;
426
+ authorId?: string | undefined;
427
+ metadata?: Record<string, unknown> | undefined;
428
428
  } & import("../server-adapter").ServerContext): Promise<{
429
429
  id: string;
430
430
  status: string;
431
- createdAt: Date;
432
- updatedAt: Date;
433
- name: string;
434
- content: string;
435
431
  activeVersionId?: string | undefined;
436
432
  hasDraft?: boolean | undefined;
437
433
  authorId?: string | undefined;
438
434
  metadata?: Record<string, unknown> | undefined;
435
+ createdAt: Date;
436
+ updatedAt: Date;
437
+ name: string;
439
438
  description?: string | undefined;
439
+ content: string;
440
440
  rules?: {
441
441
  operator: "AND" | "OR";
442
442
  conditions: ({
443
443
  field: string;
444
- 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";
444
+ 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";
445
445
  value?: unknown;
446
446
  } | {
447
447
  operator: "AND" | "OR";
448
448
  conditions: ({
449
449
  field: string;
450
- 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";
450
+ 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";
451
451
  value?: unknown;
452
452
  } | {
453
453
  operator: "AND" | "OR";
454
454
  conditions: {
455
455
  field: string;
456
- 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";
456
+ 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";
457
457
  value?: unknown;
458
458
  }[];
459
459
  })[];
@@ -472,9 +472,6 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
472
472
  fga?: import("@mastra/core/auth").FGARouteConfig;
473
473
  onValidationError?: import("@mastra/core/server").ValidationErrorHook;
474
474
  readonly __schemas?: import("../server-adapter").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
475
- id: import("zod").ZodOptional<import("zod").ZodString>;
476
- authorId: import("zod").ZodOptional<import("zod").ZodString>;
477
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
478
475
  name: import("zod").ZodString;
479
476
  description: import("zod").ZodOptional<import("zod").ZodString>;
480
477
  content: import("zod").ZodString;
@@ -486,18 +483,18 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
486
483
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
487
484
  field: import("zod").ZodString;
488
485
  operator: import("zod").ZodEnum<{
489
- in: "in";
490
- equals: "equals";
491
- not_equals: "not_equals";
492
486
  contains: "contains";
493
- not_contains: "not_contains";
487
+ equals: "equals";
488
+ exists: "exists";
494
489
  greater_than: "greater_than";
495
- less_than: "less_than";
496
490
  greater_than_or_equal: "greater_than_or_equal";
491
+ in: "in";
492
+ less_than: "less_than";
497
493
  less_than_or_equal: "less_than_or_equal";
498
- not_in: "not_in";
499
- exists: "exists";
494
+ not_contains: "not_contains";
495
+ not_equals: "not_equals";
500
496
  not_exists: "not_exists";
497
+ not_in: "not_in";
501
498
  }>;
502
499
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
503
500
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -508,18 +505,18 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
508
505
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
509
506
  field: import("zod").ZodString;
510
507
  operator: import("zod").ZodEnum<{
511
- in: "in";
512
- equals: "equals";
513
- not_equals: "not_equals";
514
508
  contains: "contains";
515
- not_contains: "not_contains";
509
+ equals: "equals";
510
+ exists: "exists";
516
511
  greater_than: "greater_than";
517
- less_than: "less_than";
518
512
  greater_than_or_equal: "greater_than_or_equal";
513
+ in: "in";
514
+ less_than: "less_than";
519
515
  less_than_or_equal: "less_than_or_equal";
520
- not_in: "not_in";
521
- exists: "exists";
516
+ not_contains: "not_contains";
517
+ not_equals: "not_equals";
522
518
  not_exists: "not_exists";
519
+ not_in: "not_in";
523
520
  }>;
524
521
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
525
522
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -530,18 +527,18 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
530
527
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
531
528
  field: import("zod").ZodString;
532
529
  operator: import("zod").ZodEnum<{
533
- in: "in";
534
- equals: "equals";
535
- not_equals: "not_equals";
536
530
  contains: "contains";
537
- not_contains: "not_contains";
531
+ equals: "equals";
532
+ exists: "exists";
538
533
  greater_than: "greater_than";
539
- less_than: "less_than";
540
534
  greater_than_or_equal: "greater_than_or_equal";
535
+ in: "in";
536
+ less_than: "less_than";
541
537
  less_than_or_equal: "less_than_or_equal";
542
- not_in: "not_in";
543
- exists: "exists";
538
+ not_contains: "not_contains";
539
+ not_equals: "not_equals";
544
540
  not_exists: "not_exists";
541
+ not_in: "not_in";
545
542
  }>;
546
543
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
547
544
  }, import("zod/v4/core").$strip>>;
@@ -549,6 +546,9 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
549
546
  }, import("zod/v4/core").$strip>]>>;
550
547
  }, import("zod/v4/core").$strip>>;
551
548
  requestContextSchema: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
549
+ id: import("zod").ZodOptional<import("zod").ZodString>;
550
+ authorId: import("zod").ZodOptional<import("zod").ZodString>;
551
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
552
552
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
553
553
  id: import("zod").ZodString;
554
554
  status: import("zod").ZodString;
@@ -569,18 +569,18 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
569
569
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
570
570
  field: import("zod").ZodString;
571
571
  operator: import("zod").ZodEnum<{
572
- in: "in";
573
- equals: "equals";
574
- not_equals: "not_equals";
575
572
  contains: "contains";
576
- not_contains: "not_contains";
573
+ equals: "equals";
574
+ exists: "exists";
577
575
  greater_than: "greater_than";
578
- less_than: "less_than";
579
576
  greater_than_or_equal: "greater_than_or_equal";
577
+ in: "in";
578
+ less_than: "less_than";
580
579
  less_than_or_equal: "less_than_or_equal";
581
- not_in: "not_in";
582
- exists: "exists";
580
+ not_contains: "not_contains";
581
+ not_equals: "not_equals";
583
582
  not_exists: "not_exists";
583
+ not_in: "not_in";
584
584
  }>;
585
585
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
586
586
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -591,18 +591,18 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
591
591
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
592
592
  field: import("zod").ZodString;
593
593
  operator: import("zod").ZodEnum<{
594
- in: "in";
595
- equals: "equals";
596
- not_equals: "not_equals";
597
594
  contains: "contains";
598
- not_contains: "not_contains";
595
+ equals: "equals";
596
+ exists: "exists";
599
597
  greater_than: "greater_than";
600
- less_than: "less_than";
601
598
  greater_than_or_equal: "greater_than_or_equal";
599
+ in: "in";
600
+ less_than: "less_than";
602
601
  less_than_or_equal: "less_than_or_equal";
603
- not_in: "not_in";
604
- exists: "exists";
602
+ not_contains: "not_contains";
603
+ not_equals: "not_equals";
605
604
  not_exists: "not_exists";
605
+ not_in: "not_in";
606
606
  }>;
607
607
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
608
608
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -613,18 +613,18 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
613
613
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
614
614
  field: import("zod").ZodString;
615
615
  operator: import("zod").ZodEnum<{
616
- in: "in";
617
- equals: "equals";
618
- not_equals: "not_equals";
619
616
  contains: "contains";
620
- not_contains: "not_contains";
617
+ equals: "equals";
618
+ exists: "exists";
621
619
  greater_than: "greater_than";
622
- less_than: "less_than";
623
620
  greater_than_or_equal: "greater_than_or_equal";
621
+ in: "in";
622
+ less_than: "less_than";
624
623
  less_than_or_equal: "less_than_or_equal";
625
- not_in: "not_in";
626
- exists: "exists";
624
+ not_contains: "not_contains";
625
+ not_equals: "not_equals";
627
626
  not_exists: "not_exists";
627
+ not_in: "not_in";
628
628
  }>;
629
629
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
630
630
  }, import("zod/v4/core").$strip>>;
@@ -639,17 +639,15 @@ export declare const CREATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
639
639
  /**
640
640
  * PATCH /stored/prompt-blocks/:storedPromptBlockId - Update a stored prompt block
641
641
  */
642
- export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
642
+ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
643
643
  method: "PATCH";
644
644
  path: "/stored/prompt-blocks/:storedPromptBlockId";
645
645
  responseType: "json";
646
- streamFormat?: "sse" | "stream";
646
+ streamFormat?: 'sse' | 'stream';
647
647
  sseFlushOnConnect?: boolean;
648
648
  handler(params: {
649
649
  storedPromptBlockId: string;
650
650
  } & {
651
- authorId?: string | undefined;
652
- metadata?: Record<string, unknown> | undefined;
653
651
  name?: string | undefined;
654
652
  description?: string | undefined;
655
653
  content?: string | undefined;
@@ -657,54 +655,56 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
657
655
  operator: "AND" | "OR";
658
656
  conditions: ({
659
657
  field: string;
660
- 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";
658
+ 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";
661
659
  value?: unknown;
662
660
  } | {
663
661
  operator: "AND" | "OR";
664
662
  conditions: ({
665
663
  field: string;
666
- 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";
664
+ 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";
667
665
  value?: unknown;
668
666
  } | {
669
667
  operator: "AND" | "OR";
670
668
  conditions: {
671
669
  field: string;
672
- 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";
670
+ 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";
673
671
  value?: unknown;
674
672
  }[];
675
673
  })[];
676
674
  })[];
677
675
  } | undefined;
678
676
  requestContextSchema?: Record<string, unknown> | undefined;
677
+ authorId?: string | undefined;
678
+ metadata?: Record<string, unknown> | undefined;
679
679
  } & import("../server-adapter").ServerContext): Promise<{
680
680
  id: string;
681
681
  status: string;
682
- createdAt: Date;
683
- updatedAt: Date;
684
- name: string;
685
- content: string;
686
682
  activeVersionId?: string | undefined;
687
683
  hasDraft?: boolean | undefined;
688
684
  authorId?: string | undefined;
689
685
  metadata?: Record<string, unknown> | undefined;
686
+ createdAt: Date;
687
+ updatedAt: Date;
688
+ name: string;
690
689
  description?: string | undefined;
690
+ content: string;
691
691
  rules?: {
692
692
  operator: "AND" | "OR";
693
693
  conditions: ({
694
694
  field: string;
695
- 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";
695
+ 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";
696
696
  value?: unknown;
697
697
  } | {
698
698
  operator: "AND" | "OR";
699
699
  conditions: ({
700
700
  field: string;
701
- 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";
701
+ 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";
702
702
  value?: unknown;
703
703
  } | {
704
704
  operator: "AND" | "OR";
705
705
  conditions: {
706
706
  field: string;
707
- 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";
707
+ 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";
708
708
  value?: unknown;
709
709
  }[];
710
710
  })[];
@@ -714,11 +714,11 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
714
714
  } | {
715
715
  id: string;
716
716
  status: string;
717
- createdAt: Date;
718
- updatedAt: Date;
719
717
  activeVersionId?: string | undefined;
720
718
  authorId?: string | undefined;
721
719
  metadata?: Record<string, unknown> | undefined;
720
+ createdAt: Date;
721
+ updatedAt: Date;
722
722
  }>;
723
723
  pathParamSchema?: import("zod").ZodType;
724
724
  queryParamSchema?: import("zod").ZodType;
@@ -733,8 +733,6 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
733
733
  readonly __schemas?: import("../server-adapter").RouteSchemas<import("zod").ZodObject<{
734
734
  storedPromptBlockId: import("zod").ZodString;
735
735
  }, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
736
- authorId: import("zod").ZodOptional<import("zod").ZodString>;
737
- metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
738
736
  name: import("zod").ZodOptional<import("zod").ZodString>;
739
737
  description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
740
738
  content: import("zod").ZodOptional<import("zod").ZodString>;
@@ -746,18 +744,18 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
746
744
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
747
745
  field: import("zod").ZodString;
748
746
  operator: import("zod").ZodEnum<{
749
- in: "in";
750
- equals: "equals";
751
- not_equals: "not_equals";
752
747
  contains: "contains";
753
- not_contains: "not_contains";
748
+ equals: "equals";
749
+ exists: "exists";
754
750
  greater_than: "greater_than";
755
- less_than: "less_than";
756
751
  greater_than_or_equal: "greater_than_or_equal";
752
+ in: "in";
753
+ less_than: "less_than";
757
754
  less_than_or_equal: "less_than_or_equal";
758
- not_in: "not_in";
759
- exists: "exists";
755
+ not_contains: "not_contains";
756
+ not_equals: "not_equals";
760
757
  not_exists: "not_exists";
758
+ not_in: "not_in";
761
759
  }>;
762
760
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
763
761
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -768,18 +766,18 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
768
766
  conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
769
767
  field: import("zod").ZodString;
770
768
  operator: import("zod").ZodEnum<{
771
- in: "in";
772
- equals: "equals";
773
- not_equals: "not_equals";
774
769
  contains: "contains";
775
- not_contains: "not_contains";
770
+ equals: "equals";
771
+ exists: "exists";
776
772
  greater_than: "greater_than";
777
- less_than: "less_than";
778
773
  greater_than_or_equal: "greater_than_or_equal";
774
+ in: "in";
775
+ less_than: "less_than";
779
776
  less_than_or_equal: "less_than_or_equal";
780
- not_in: "not_in";
781
- exists: "exists";
777
+ not_contains: "not_contains";
778
+ not_equals: "not_equals";
782
779
  not_exists: "not_exists";
780
+ not_in: "not_in";
783
781
  }>;
784
782
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
785
783
  }, import("zod/v4/core").$strip>, import("zod").ZodObject<{
@@ -790,18 +788,18 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
790
788
  conditions: import("zod").ZodArray<import("zod").ZodObject<{
791
789
  field: import("zod").ZodString;
792
790
  operator: import("zod").ZodEnum<{
793
- in: "in";
794
- equals: "equals";
795
- not_equals: "not_equals";
796
791
  contains: "contains";
797
- not_contains: "not_contains";
792
+ equals: "equals";
793
+ exists: "exists";
798
794
  greater_than: "greater_than";
799
- less_than: "less_than";
800
795
  greater_than_or_equal: "greater_than_or_equal";
796
+ in: "in";
797
+ less_than: "less_than";
801
798
  less_than_or_equal: "less_than_or_equal";
802
- not_in: "not_in";
803
- exists: "exists";
799
+ not_contains: "not_contains";
800
+ not_equals: "not_equals";
804
801
  not_exists: "not_exists";
802
+ not_in: "not_in";
805
803
  }>;
806
804
  value: import("zod").ZodOptional<import("zod").ZodUnknown>;
807
805
  }, import("zod/v4/core").$strip>>;
@@ -809,6 +807,8 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
809
807
  }, import("zod/v4/core").$strip>]>>;
810
808
  }, import("zod/v4/core").$strip>>>;
811
809
  requestContextSchema: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
810
+ authorId: import("zod").ZodOptional<import("zod").ZodString>;
811
+ metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
812
812
  }, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
813
813
  id: import("zod").ZodString;
814
814
  status: import("zod").ZodString;
@@ -837,18 +837,18 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
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 UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
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 UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
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>>;
@@ -907,11 +907,11 @@ export declare const UPDATE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core
907
907
  /**
908
908
  * DELETE /stored/prompt-blocks/:storedPromptBlockId - Delete a stored prompt block
909
909
  */
910
- export declare const DELETE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "path" | "method" | "handler" | "createHandler" | "openapi"> & {
910
+ export declare const DELETE_STORED_PROMPT_BLOCK_ROUTE: Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
911
911
  method: "DELETE";
912
912
  path: "/stored/prompt-blocks/:storedPromptBlockId";
913
913
  responseType: "json";
914
- streamFormat?: "sse" | "stream";
914
+ streamFormat?: 'sse' | 'stream';
915
915
  sseFlushOnConnect?: boolean;
916
916
  handler(params: {
917
917
  storedPromptBlockId: string;