@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.
- package/CHANGELOG.md +7 -0
- package/dist/_types/@internal_core/dist/storage/index.d.ts +401 -401
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v3.d.ts +5 -5
- package/dist/_types/@mastra_schema-compat/dist/schema-compatibility-v4.d.ts +5 -5
- package/dist/_types/@mastra_schema-compat/dist/standard-schema/standard-schema.d.ts +1 -1
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/server/a2a/push-notification-sender.d.ts.map +1 -1
- package/dist/server/a2a/push-notification-store.d.ts.map +1 -1
- package/dist/server/a2a/store.d.ts.map +1 -1
- package/dist/server/auth/helpers.d.ts +1 -1
- package/dist/server/auth/helpers.d.ts.map +1 -1
- package/dist/server/browser-stream/viewer-registry.d.ts.map +1 -1
- package/dist/server/constants.d.ts +1 -1
- package/dist/server/constants.d.ts.map +1 -1
- package/dist/server/handlers/a2a.d.ts +60 -60
- package/dist/server/handlers/a2a.d.ts.map +1 -1
- package/dist/server/handlers/agent-builder.d.ts +110 -110
- package/dist/server/handlers/agent-controller.d.ts +110 -110
- package/dist/server/handlers/agent-versions.d.ts +5267 -5259
- package/dist/server/handlers/agent-versions.d.ts.map +1 -1
- package/dist/server/handlers/agents.d.ts +4355 -4355
- package/dist/server/handlers/agents.d.ts.map +1 -1
- package/dist/server/handlers/auth.d.ts +52 -52
- package/dist/server/handlers/background-tasks.d.ts +37 -37
- package/dist/server/handlers/builder-registry.d.ts +12 -12
- package/dist/server/handlers/channels.d.ts +10 -10
- package/dist/server/handlers/conversations.d.ts +13 -13
- package/dist/server/handlers/datasets.d.ts +396 -396
- package/dist/server/handlers/dynamic-workflows.d.ts +36 -36
- package/dist/server/handlers/editor-builder.d.ts +13 -13
- package/dist/server/handlers/gateway-memory-client.d.ts +4 -4
- package/dist/server/handlers/gateway-memory-client.d.ts.map +1 -1
- package/dist/server/handlers/logs.d.ts +40 -40
- package/dist/server/handlers/mcp-client-versions.d.ts +32 -32
- package/dist/server/handlers/mcp.d.ts +23 -23
- package/dist/server/handlers/memory.d.ts +138 -138
- package/dist/server/handlers/observability-list-query-schemas.d.ts +1 -1
- package/dist/server/handlers/observability-new-endpoints.d.ts +859 -859
- package/dist/server/handlers/observability-shared.d.ts +126 -126
- package/dist/server/handlers/observability-shared.d.ts.map +1 -1
- package/dist/server/handlers/observability.d.ts +17 -17
- package/dist/server/handlers/plans.d.ts +3 -3
- package/dist/server/handlers/processor-providers.d.ts +9 -9
- package/dist/server/handlers/processors.d.ts +31 -31
- package/dist/server/handlers/prompt-block-versions.d.ts +176 -176
- package/dist/server/handlers/responses.adapter.d.ts +3 -3
- package/dist/server/handlers/responses.adapter.d.ts.map +1 -1
- package/dist/server/handlers/responses.d.ts +17 -17
- package/dist/server/handlers/schedules.d.ts +242 -242
- package/dist/server/handlers/scorer-versions.d.ts +39 -39
- package/dist/server/handlers/scores.d.ts +20 -20
- package/dist/server/handlers/stored-agent-favorites.d.ts +4 -4
- package/dist/server/handlers/stored-agents.d.ts +5992 -5984
- package/dist/server/handlers/stored-agents.d.ts.map +1 -1
- package/dist/server/handlers/stored-mcp-clients.d.ts +46 -46
- package/dist/server/handlers/stored-prompt-blocks.d.ts +193 -193
- package/dist/server/handlers/stored-scorers.d.ts +56 -56
- package/dist/server/handlers/stored-skill-favorites.d.ts +4 -4
- package/dist/server/handlers/stored-skills.d.ts +70 -70
- package/dist/server/handlers/stored-workspaces.d.ts +36 -36
- package/dist/server/handlers/system.d.ts +19 -19
- package/dist/server/handlers/tool-providers.d.ts +49 -49
- package/dist/server/handlers/tools.d.ts +10 -10
- package/dist/server/handlers/vector.d.ts +18 -18
- package/dist/server/handlers/version-helpers.d.ts +1 -1
- package/dist/server/handlers/version-helpers.d.ts.map +1 -1
- package/dist/server/handlers/workflows.d.ts +167 -167
- package/dist/server/handlers/workspace.d.ts +370 -370
- package/dist/server/http-exception.d.ts.map +1 -1
- package/dist/server/schemas/a2a.d.ts +18 -18
- package/dist/server/schemas/agent-versions.d.ts +3948 -3948
- package/dist/server/schemas/agents.d.ts +172 -172
- package/dist/server/schemas/agents.d.ts.map +1 -1
- package/dist/server/schemas/auth.d.ts +5 -5
- package/dist/server/schemas/background-tasks.d.ts +22 -22
- package/dist/server/schemas/builder-registry.d.ts +1 -1
- package/dist/server/schemas/channels.d.ts +1 -1
- package/dist/server/schemas/common.d.ts +5 -5
- package/dist/server/schemas/common.d.ts.map +1 -1
- package/dist/server/schemas/conversations.d.ts +2 -2
- package/dist/server/schemas/datasets.d.ts +98 -98
- package/dist/server/schemas/dynamic-workflows.d.ts +7 -7
- package/dist/server/schemas/logs.d.ts +8 -8
- package/dist/server/schemas/mcp-client-versions.d.ts +2 -2
- package/dist/server/schemas/memory-config.d.ts +5 -5
- package/dist/server/schemas/memory.d.ts +20 -20
- package/dist/server/schemas/processor-providers.d.ts +2 -2
- package/dist/server/schemas/processors.d.ts +13 -13
- package/dist/server/schemas/prompt-block-versions.d.ts +149 -149
- package/dist/server/schemas/responses.d.ts +11 -11
- package/dist/server/schemas/rule-group.d.ts +28 -28
- package/dist/server/schemas/schedules.d.ts +120 -120
- package/dist/server/schemas/scorer-versions.d.ts +9 -9
- package/dist/server/schemas/scores.d.ts +2 -2
- package/dist/server/schemas/stored-agents.d.ts +9052 -9052
- package/dist/server/schemas/stored-mcp-clients.d.ts +9 -9
- package/dist/server/schemas/stored-prompt-blocks.d.ts +156 -156
- package/dist/server/schemas/stored-scorers.d.ts +16 -16
- package/dist/server/schemas/stored-skills.d.ts +22 -22
- package/dist/server/schemas/stored-workspaces.d.ts +6 -6
- package/dist/server/schemas/system.d.ts +12 -12
- package/dist/server/schemas/tool-providers.d.ts +20 -20
- package/dist/server/schemas/vectors.d.ts +1 -1
- package/dist/server/schemas/version-common.d.ts +2 -2
- package/dist/server/schemas/workflows.d.ts +57 -57
- package/dist/server/schemas/workspace.d.ts +17 -17
- package/dist/server/server-adapter/index.d.ts.map +1 -1
- package/dist/server/server-adapter/routes/a2a.d.ts +49 -49
- package/dist/server/server-adapter/routes/agent-builder.d.ts +110 -110
- package/dist/server/server-adapter/routes/channels.d.ts +10 -10
- package/dist/server/server-adapter/routes/conversations.d.ts +26 -26
- package/dist/server/server-adapter/routes/datasets.d.ts +394 -394
- package/dist/server/server-adapter/routes/editor-builder.d.ts +25 -25
- package/dist/server/server-adapter/routes/legacy.d.ts +157 -157
- package/dist/server/server-adapter/routes/logs.d.ts +40 -40
- package/dist/server/server-adapter/routes/mcp.d.ts +23 -23
- package/dist/server/server-adapter/routes/memory.d.ts +138 -138
- package/dist/server/server-adapter/routes/observability.d.ts +446 -446
- package/dist/server/server-adapter/routes/processor-providers.d.ts +9 -9
- package/dist/server/server-adapter/routes/processors.d.ts +31 -31
- package/dist/server/server-adapter/routes/responses.d.ts +17 -17
- package/dist/server/server-adapter/routes/scorers.d.ts +20 -20
- package/dist/server/server-adapter/routes/stored-mcp-clients.d.ts +78 -78
- package/dist/server/server-adapter/routes/stored-prompt-blocks.d.ts +369 -369
- package/dist/server/server-adapter/routes/stored-scorers.d.ts +95 -95
- package/dist/server/server-adapter/routes/stored-skills.d.ts +74 -74
- package/dist/server/server-adapter/routes/stored-workspaces.d.ts +36 -36
- package/dist/server/server-adapter/routes/system.d.ts +19 -19
- package/dist/server/server-adapter/routes/tool-providers.d.ts +49 -49
- package/dist/server/server-adapter/routes/tools.d.ts +6 -6
- package/dist/server/server-adapter/routes/vectors.d.ts +18 -18
- package/dist/server/server-adapter/routes/workflows.d.ts +163 -163
- package/dist/server/server-adapter/routes/workspace.d.ts +334 -334
- package/dist/server/utils.d.ts.map +1 -1
- 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, "
|
|
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?:
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
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
|
-
|
|
146
|
-
|
|
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
|
-
|
|
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
|
-
|
|
168
|
-
|
|
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
|
-
|
|
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
|
-
|
|
190
|
-
|
|
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, "
|
|
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?:
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
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
|
-
|
|
290
|
-
|
|
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
|
-
|
|
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
|
-
|
|
312
|
-
|
|
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
|
-
|
|
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
|
-
|
|
334
|
-
|
|
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, "
|
|
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?:
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
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
|
-
|
|
437
|
-
|
|
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
|
-
|
|
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
|
-
|
|
459
|
-
|
|
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
|
-
|
|
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
|
-
|
|
481
|
-
|
|
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, "
|
|
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?:
|
|
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, "
|
|
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?:
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
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
|
-
|
|
619
|
-
|
|
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
|
-
|
|
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
|
-
|
|
641
|
-
|
|
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
|
-
|
|
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
|
-
|
|
663
|
-
|
|
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, "
|
|
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?:
|
|
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, "
|
|
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?:
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
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
|
-
|
|
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
|
-
|
|
850
|
-
|
|
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
|
-
|
|
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
|
-
|
|
872
|
-
|
|
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
|
-
|
|
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
|
-
|
|
894
|
-
|
|
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
|
-
|
|
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
|
-
|
|
932
|
-
|
|
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
|
-
|
|
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
|
-
|
|
954
|
-
|
|
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
|
-
|
|
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
|
-
|
|
976
|
-
|
|
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>>;
|