@mastra/server 1.63.2 → 1.63.3-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -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 +8 -8
- 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.cjs +10 -4
- package/dist/server/handlers/agent-controller.cjs.map +1 -1
- package/dist/server/handlers/agent-controller.d.ts +110 -110
- package/dist/server/handlers/agent-controller.d.ts.map +1 -1
- package/dist/server/handlers/agent-controller.js +10 -4
- package/dist/server/handlers/agent-controller.js.map +1 -1
- 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 +8 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "
|
|
1
|
+
export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
2
2
|
method: "GET";
|
|
3
3
|
path: "/stored/prompt-blocks";
|
|
4
4
|
responseType: "json";
|
|
5
|
-
streamFormat?:
|
|
5
|
+
streamFormat?: 'sse' | 'stream';
|
|
6
6
|
sseFlushOnConnect?: boolean;
|
|
7
7
|
handler(params: import(".").InferParams<undefined, import("zod").ZodObject<{
|
|
8
|
-
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
9
8
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
9
|
+
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
10
10
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
11
11
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
12
12
|
createdAt: "createdAt";
|
|
@@ -18,15 +18,15 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
18
18
|
}>>;
|
|
19
19
|
}, import("zod/v4/core").$strip>>;
|
|
20
20
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
21
|
+
archived: "archived";
|
|
21
22
|
draft: "draft";
|
|
22
23
|
published: "published";
|
|
23
|
-
archived: "archived";
|
|
24
24
|
}>>;
|
|
25
25
|
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
26
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
27
27
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
28
|
-
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
29
28
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
29
|
+
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
30
30
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
31
31
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
32
32
|
createdAt: "createdAt";
|
|
@@ -38,9 +38,9 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
38
38
|
}>>;
|
|
39
39
|
}, import("zod/v4/core").$strip>>;
|
|
40
40
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
41
|
+
archived: "archived";
|
|
41
42
|
draft: "draft";
|
|
42
43
|
published: "published";
|
|
43
|
-
archived: "archived";
|
|
44
44
|
}>>;
|
|
45
45
|
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
46
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
@@ -52,32 +52,32 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
52
52
|
promptBlocks: {
|
|
53
53
|
id: string;
|
|
54
54
|
status: string;
|
|
55
|
-
createdAt: Date;
|
|
56
|
-
updatedAt: Date;
|
|
57
|
-
name: string;
|
|
58
|
-
content: string;
|
|
59
55
|
activeVersionId?: string | undefined;
|
|
60
56
|
hasDraft?: boolean | undefined;
|
|
61
57
|
authorId?: string | undefined;
|
|
62
58
|
metadata?: Record<string, unknown> | undefined;
|
|
59
|
+
createdAt: Date;
|
|
60
|
+
updatedAt: Date;
|
|
61
|
+
name: string;
|
|
63
62
|
description?: string | undefined;
|
|
63
|
+
content: string;
|
|
64
64
|
rules?: {
|
|
65
65
|
operator: "AND" | "OR";
|
|
66
66
|
conditions: ({
|
|
67
67
|
field: string;
|
|
68
|
-
operator: "
|
|
68
|
+
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";
|
|
69
69
|
value?: unknown;
|
|
70
70
|
} | {
|
|
71
71
|
operator: "AND" | "OR";
|
|
72
72
|
conditions: ({
|
|
73
73
|
field: string;
|
|
74
|
-
operator: "
|
|
74
|
+
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";
|
|
75
75
|
value?: unknown;
|
|
76
76
|
} | {
|
|
77
77
|
operator: "AND" | "OR";
|
|
78
78
|
conditions: {
|
|
79
79
|
field: string;
|
|
80
|
-
operator: "
|
|
80
|
+
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";
|
|
81
81
|
value?: unknown;
|
|
82
82
|
}[];
|
|
83
83
|
})[];
|
|
@@ -97,8 +97,8 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
97
97
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
98
98
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
99
99
|
readonly __schemas?: import(".").RouteSchemas<undefined, import("zod").ZodObject<{
|
|
100
|
-
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
101
100
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
101
|
+
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
102
102
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
103
103
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
104
104
|
createdAt: "createdAt";
|
|
@@ -110,15 +110,15 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
110
110
|
}>>;
|
|
111
111
|
}, import("zod/v4/core").$strip>>;
|
|
112
112
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
113
|
+
archived: "archived";
|
|
113
114
|
draft: "draft";
|
|
114
115
|
published: "published";
|
|
115
|
-
archived: "archived";
|
|
116
116
|
}>>;
|
|
117
117
|
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
118
118
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
119
119
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
120
|
-
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
121
120
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
121
|
+
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
122
122
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
123
123
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
124
124
|
createdAt: "createdAt";
|
|
@@ -130,9 +130,9 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
130
130
|
}>>;
|
|
131
131
|
}, import("zod/v4/core").$strip>>;
|
|
132
132
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
133
|
+
archived: "archived";
|
|
133
134
|
draft: "draft";
|
|
134
135
|
published: "published";
|
|
135
|
-
archived: "archived";
|
|
136
136
|
}>>;
|
|
137
137
|
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
138
138
|
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
@@ -161,18 +161,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
161
161
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
162
162
|
field: import("zod").ZodString;
|
|
163
163
|
operator: import("zod").ZodEnum<{
|
|
164
|
-
in: "in";
|
|
165
|
-
equals: "equals";
|
|
166
|
-
not_equals: "not_equals";
|
|
167
164
|
contains: "contains";
|
|
168
|
-
|
|
165
|
+
equals: "equals";
|
|
166
|
+
exists: "exists";
|
|
169
167
|
greater_than: "greater_than";
|
|
170
|
-
less_than: "less_than";
|
|
171
168
|
greater_than_or_equal: "greater_than_or_equal";
|
|
169
|
+
in: "in";
|
|
170
|
+
less_than: "less_than";
|
|
172
171
|
less_than_or_equal: "less_than_or_equal";
|
|
173
|
-
|
|
174
|
-
|
|
172
|
+
not_contains: "not_contains";
|
|
173
|
+
not_equals: "not_equals";
|
|
175
174
|
not_exists: "not_exists";
|
|
175
|
+
not_in: "not_in";
|
|
176
176
|
}>;
|
|
177
177
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
178
178
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -183,18 +183,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
183
183
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
184
184
|
field: import("zod").ZodString;
|
|
185
185
|
operator: import("zod").ZodEnum<{
|
|
186
|
-
in: "in";
|
|
187
|
-
equals: "equals";
|
|
188
|
-
not_equals: "not_equals";
|
|
189
186
|
contains: "contains";
|
|
190
|
-
|
|
187
|
+
equals: "equals";
|
|
188
|
+
exists: "exists";
|
|
191
189
|
greater_than: "greater_than";
|
|
192
|
-
less_than: "less_than";
|
|
193
190
|
greater_than_or_equal: "greater_than_or_equal";
|
|
191
|
+
in: "in";
|
|
192
|
+
less_than: "less_than";
|
|
194
193
|
less_than_or_equal: "less_than_or_equal";
|
|
195
|
-
|
|
196
|
-
|
|
194
|
+
not_contains: "not_contains";
|
|
195
|
+
not_equals: "not_equals";
|
|
197
196
|
not_exists: "not_exists";
|
|
197
|
+
not_in: "not_in";
|
|
198
198
|
}>;
|
|
199
199
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
200
200
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -205,18 +205,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
205
205
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
206
206
|
field: import("zod").ZodString;
|
|
207
207
|
operator: import("zod").ZodEnum<{
|
|
208
|
-
in: "in";
|
|
209
|
-
equals: "equals";
|
|
210
|
-
not_equals: "not_equals";
|
|
211
208
|
contains: "contains";
|
|
212
|
-
|
|
209
|
+
equals: "equals";
|
|
210
|
+
exists: "exists";
|
|
213
211
|
greater_than: "greater_than";
|
|
214
|
-
less_than: "less_than";
|
|
215
212
|
greater_than_or_equal: "greater_than_or_equal";
|
|
213
|
+
in: "in";
|
|
214
|
+
less_than: "less_than";
|
|
216
215
|
less_than_or_equal: "less_than_or_equal";
|
|
217
|
-
|
|
218
|
-
|
|
216
|
+
not_contains: "not_contains";
|
|
217
|
+
not_equals: "not_equals";
|
|
219
218
|
not_exists: "not_exists";
|
|
219
|
+
not_in: "not_in";
|
|
220
220
|
}>;
|
|
221
221
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
222
222
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -228,45 +228,45 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
228
228
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
229
229
|
} & {
|
|
230
230
|
readonly _mastraSchemaRoute: true;
|
|
231
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
231
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
232
232
|
method: "GET";
|
|
233
233
|
path: "/stored/prompt-blocks/:storedPromptBlockId";
|
|
234
234
|
responseType: "json";
|
|
235
|
-
streamFormat?:
|
|
235
|
+
streamFormat?: 'sse' | 'stream';
|
|
236
236
|
sseFlushOnConnect?: boolean;
|
|
237
237
|
handler(params: {
|
|
238
238
|
storedPromptBlockId: string;
|
|
239
239
|
} & {
|
|
240
|
-
status: "
|
|
240
|
+
status: "archived" | "draft" | "published";
|
|
241
241
|
} & import(".").ServerContext): Promise<{
|
|
242
242
|
id: string;
|
|
243
243
|
status: string;
|
|
244
|
-
createdAt: Date;
|
|
245
|
-
updatedAt: Date;
|
|
246
|
-
name: string;
|
|
247
|
-
content: string;
|
|
248
244
|
activeVersionId?: string | undefined;
|
|
249
245
|
hasDraft?: boolean | undefined;
|
|
250
246
|
authorId?: string | undefined;
|
|
251
247
|
metadata?: Record<string, unknown> | undefined;
|
|
248
|
+
createdAt: Date;
|
|
249
|
+
updatedAt: Date;
|
|
250
|
+
name: string;
|
|
252
251
|
description?: string | undefined;
|
|
252
|
+
content: string;
|
|
253
253
|
rules?: {
|
|
254
254
|
operator: "AND" | "OR";
|
|
255
255
|
conditions: ({
|
|
256
256
|
field: string;
|
|
257
|
-
operator: "
|
|
257
|
+
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";
|
|
258
258
|
value?: unknown;
|
|
259
259
|
} | {
|
|
260
260
|
operator: "AND" | "OR";
|
|
261
261
|
conditions: ({
|
|
262
262
|
field: string;
|
|
263
|
-
operator: "
|
|
263
|
+
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";
|
|
264
264
|
value?: unknown;
|
|
265
265
|
} | {
|
|
266
266
|
operator: "AND" | "OR";
|
|
267
267
|
conditions: {
|
|
268
268
|
field: string;
|
|
269
|
-
operator: "
|
|
269
|
+
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";
|
|
270
270
|
value?: unknown;
|
|
271
271
|
}[];
|
|
272
272
|
})[];
|
|
@@ -288,9 +288,9 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
288
288
|
storedPromptBlockId: import("zod").ZodString;
|
|
289
289
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
290
290
|
status: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
291
|
+
archived: "archived";
|
|
291
292
|
draft: "draft";
|
|
292
293
|
published: "published";
|
|
293
|
-
archived: "archived";
|
|
294
294
|
}>>>;
|
|
295
295
|
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
296
296
|
id: import("zod").ZodString;
|
|
@@ -312,18 +312,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
312
312
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
313
313
|
field: import("zod").ZodString;
|
|
314
314
|
operator: import("zod").ZodEnum<{
|
|
315
|
-
in: "in";
|
|
316
|
-
equals: "equals";
|
|
317
|
-
not_equals: "not_equals";
|
|
318
315
|
contains: "contains";
|
|
319
|
-
|
|
316
|
+
equals: "equals";
|
|
317
|
+
exists: "exists";
|
|
320
318
|
greater_than: "greater_than";
|
|
321
|
-
less_than: "less_than";
|
|
322
319
|
greater_than_or_equal: "greater_than_or_equal";
|
|
320
|
+
in: "in";
|
|
321
|
+
less_than: "less_than";
|
|
323
322
|
less_than_or_equal: "less_than_or_equal";
|
|
324
|
-
|
|
325
|
-
|
|
323
|
+
not_contains: "not_contains";
|
|
324
|
+
not_equals: "not_equals";
|
|
326
325
|
not_exists: "not_exists";
|
|
326
|
+
not_in: "not_in";
|
|
327
327
|
}>;
|
|
328
328
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
329
329
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -334,18 +334,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
334
334
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
335
335
|
field: import("zod").ZodString;
|
|
336
336
|
operator: import("zod").ZodEnum<{
|
|
337
|
-
in: "in";
|
|
338
|
-
equals: "equals";
|
|
339
|
-
not_equals: "not_equals";
|
|
340
337
|
contains: "contains";
|
|
341
|
-
|
|
338
|
+
equals: "equals";
|
|
339
|
+
exists: "exists";
|
|
342
340
|
greater_than: "greater_than";
|
|
343
|
-
less_than: "less_than";
|
|
344
341
|
greater_than_or_equal: "greater_than_or_equal";
|
|
342
|
+
in: "in";
|
|
343
|
+
less_than: "less_than";
|
|
345
344
|
less_than_or_equal: "less_than_or_equal";
|
|
346
|
-
|
|
347
|
-
|
|
345
|
+
not_contains: "not_contains";
|
|
346
|
+
not_equals: "not_equals";
|
|
348
347
|
not_exists: "not_exists";
|
|
348
|
+
not_in: "not_in";
|
|
349
349
|
}>;
|
|
350
350
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
351
351
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -356,18 +356,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
356
356
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
357
357
|
field: import("zod").ZodString;
|
|
358
358
|
operator: import("zod").ZodEnum<{
|
|
359
|
-
in: "in";
|
|
360
|
-
equals: "equals";
|
|
361
|
-
not_equals: "not_equals";
|
|
362
359
|
contains: "contains";
|
|
363
|
-
|
|
360
|
+
equals: "equals";
|
|
361
|
+
exists: "exists";
|
|
364
362
|
greater_than: "greater_than";
|
|
365
|
-
less_than: "less_than";
|
|
366
363
|
greater_than_or_equal: "greater_than_or_equal";
|
|
364
|
+
in: "in";
|
|
365
|
+
less_than: "less_than";
|
|
367
366
|
less_than_or_equal: "less_than_or_equal";
|
|
368
|
-
|
|
369
|
-
|
|
367
|
+
not_contains: "not_contains";
|
|
368
|
+
not_equals: "not_equals";
|
|
370
369
|
not_exists: "not_exists";
|
|
370
|
+
not_in: "not_in";
|
|
371
371
|
}>;
|
|
372
372
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
373
373
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -378,71 +378,71 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
378
378
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
379
379
|
} & {
|
|
380
380
|
readonly _mastraSchemaRoute: true;
|
|
381
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
381
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
382
382
|
method: "POST";
|
|
383
383
|
path: "/stored/prompt-blocks";
|
|
384
384
|
responseType: "json";
|
|
385
|
-
streamFormat?:
|
|
385
|
+
streamFormat?: 'sse' | 'stream';
|
|
386
386
|
sseFlushOnConnect?: boolean;
|
|
387
387
|
handler(params: {
|
|
388
388
|
name: string;
|
|
389
|
-
content: string;
|
|
390
|
-
id?: string | undefined;
|
|
391
|
-
authorId?: string | undefined;
|
|
392
|
-
metadata?: Record<string, unknown> | undefined;
|
|
393
389
|
description?: string | undefined;
|
|
390
|
+
content: string;
|
|
394
391
|
rules?: {
|
|
395
392
|
operator: "AND" | "OR";
|
|
396
393
|
conditions: ({
|
|
397
394
|
field: string;
|
|
398
|
-
operator: "
|
|
395
|
+
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";
|
|
399
396
|
value?: unknown;
|
|
400
397
|
} | {
|
|
401
398
|
operator: "AND" | "OR";
|
|
402
399
|
conditions: ({
|
|
403
400
|
field: string;
|
|
404
|
-
operator: "
|
|
401
|
+
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";
|
|
405
402
|
value?: unknown;
|
|
406
403
|
} | {
|
|
407
404
|
operator: "AND" | "OR";
|
|
408
405
|
conditions: {
|
|
409
406
|
field: string;
|
|
410
|
-
operator: "
|
|
407
|
+
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";
|
|
411
408
|
value?: unknown;
|
|
412
409
|
}[];
|
|
413
410
|
})[];
|
|
414
411
|
})[];
|
|
415
412
|
} | undefined;
|
|
416
413
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
414
|
+
id?: string | undefined;
|
|
415
|
+
authorId?: string | undefined;
|
|
416
|
+
metadata?: Record<string, unknown> | undefined;
|
|
417
417
|
} & import(".").ServerContext): Promise<{
|
|
418
418
|
id: string;
|
|
419
419
|
status: string;
|
|
420
|
-
createdAt: Date;
|
|
421
|
-
updatedAt: Date;
|
|
422
|
-
name: string;
|
|
423
|
-
content: string;
|
|
424
420
|
activeVersionId?: string | undefined;
|
|
425
421
|
hasDraft?: boolean | undefined;
|
|
426
422
|
authorId?: string | undefined;
|
|
427
423
|
metadata?: Record<string, unknown> | undefined;
|
|
424
|
+
createdAt: Date;
|
|
425
|
+
updatedAt: Date;
|
|
426
|
+
name: string;
|
|
428
427
|
description?: string | undefined;
|
|
428
|
+
content: string;
|
|
429
429
|
rules?: {
|
|
430
430
|
operator: "AND" | "OR";
|
|
431
431
|
conditions: ({
|
|
432
432
|
field: string;
|
|
433
|
-
operator: "
|
|
433
|
+
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";
|
|
434
434
|
value?: unknown;
|
|
435
435
|
} | {
|
|
436
436
|
operator: "AND" | "OR";
|
|
437
437
|
conditions: ({
|
|
438
438
|
field: string;
|
|
439
|
-
operator: "
|
|
439
|
+
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";
|
|
440
440
|
value?: unknown;
|
|
441
441
|
} | {
|
|
442
442
|
operator: "AND" | "OR";
|
|
443
443
|
conditions: {
|
|
444
444
|
field: string;
|
|
445
|
-
operator: "
|
|
445
|
+
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";
|
|
446
446
|
value?: unknown;
|
|
447
447
|
}[];
|
|
448
448
|
})[];
|
|
@@ -461,9 +461,6 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
461
461
|
fga?: import("@mastra/core/auth").FGARouteConfig;
|
|
462
462
|
onValidationError?: import("@mastra/core/server").ValidationErrorHook;
|
|
463
463
|
readonly __schemas?: import(".").RouteSchemas<undefined, undefined, import("zod").ZodObject<{
|
|
464
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
465
|
-
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
466
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
467
464
|
name: import("zod").ZodString;
|
|
468
465
|
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
469
466
|
content: import("zod").ZodString;
|
|
@@ -475,18 +472,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
475
472
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
476
473
|
field: import("zod").ZodString;
|
|
477
474
|
operator: import("zod").ZodEnum<{
|
|
478
|
-
in: "in";
|
|
479
|
-
equals: "equals";
|
|
480
|
-
not_equals: "not_equals";
|
|
481
475
|
contains: "contains";
|
|
482
|
-
|
|
476
|
+
equals: "equals";
|
|
477
|
+
exists: "exists";
|
|
483
478
|
greater_than: "greater_than";
|
|
484
|
-
less_than: "less_than";
|
|
485
479
|
greater_than_or_equal: "greater_than_or_equal";
|
|
480
|
+
in: "in";
|
|
481
|
+
less_than: "less_than";
|
|
486
482
|
less_than_or_equal: "less_than_or_equal";
|
|
487
|
-
|
|
488
|
-
|
|
483
|
+
not_contains: "not_contains";
|
|
484
|
+
not_equals: "not_equals";
|
|
489
485
|
not_exists: "not_exists";
|
|
486
|
+
not_in: "not_in";
|
|
490
487
|
}>;
|
|
491
488
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
492
489
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -497,18 +494,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
497
494
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
498
495
|
field: import("zod").ZodString;
|
|
499
496
|
operator: import("zod").ZodEnum<{
|
|
500
|
-
in: "in";
|
|
501
|
-
equals: "equals";
|
|
502
|
-
not_equals: "not_equals";
|
|
503
497
|
contains: "contains";
|
|
504
|
-
|
|
498
|
+
equals: "equals";
|
|
499
|
+
exists: "exists";
|
|
505
500
|
greater_than: "greater_than";
|
|
506
|
-
less_than: "less_than";
|
|
507
501
|
greater_than_or_equal: "greater_than_or_equal";
|
|
502
|
+
in: "in";
|
|
503
|
+
less_than: "less_than";
|
|
508
504
|
less_than_or_equal: "less_than_or_equal";
|
|
509
|
-
|
|
510
|
-
|
|
505
|
+
not_contains: "not_contains";
|
|
506
|
+
not_equals: "not_equals";
|
|
511
507
|
not_exists: "not_exists";
|
|
508
|
+
not_in: "not_in";
|
|
512
509
|
}>;
|
|
513
510
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
514
511
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -519,18 +516,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
519
516
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
520
517
|
field: import("zod").ZodString;
|
|
521
518
|
operator: import("zod").ZodEnum<{
|
|
522
|
-
in: "in";
|
|
523
|
-
equals: "equals";
|
|
524
|
-
not_equals: "not_equals";
|
|
525
519
|
contains: "contains";
|
|
526
|
-
|
|
520
|
+
equals: "equals";
|
|
521
|
+
exists: "exists";
|
|
527
522
|
greater_than: "greater_than";
|
|
528
|
-
less_than: "less_than";
|
|
529
523
|
greater_than_or_equal: "greater_than_or_equal";
|
|
524
|
+
in: "in";
|
|
525
|
+
less_than: "less_than";
|
|
530
526
|
less_than_or_equal: "less_than_or_equal";
|
|
531
|
-
|
|
532
|
-
|
|
527
|
+
not_contains: "not_contains";
|
|
528
|
+
not_equals: "not_equals";
|
|
533
529
|
not_exists: "not_exists";
|
|
530
|
+
not_in: "not_in";
|
|
534
531
|
}>;
|
|
535
532
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
536
533
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -538,6 +535,9 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
538
535
|
}, import("zod/v4/core").$strip>]>>;
|
|
539
536
|
}, import("zod/v4/core").$strip>>;
|
|
540
537
|
requestContextSchema: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
538
|
+
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
539
|
+
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
540
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
541
541
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
542
542
|
id: import("zod").ZodString;
|
|
543
543
|
status: import("zod").ZodString;
|
|
@@ -558,18 +558,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
558
558
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
559
559
|
field: import("zod").ZodString;
|
|
560
560
|
operator: import("zod").ZodEnum<{
|
|
561
|
-
in: "in";
|
|
562
|
-
equals: "equals";
|
|
563
|
-
not_equals: "not_equals";
|
|
564
561
|
contains: "contains";
|
|
565
|
-
|
|
562
|
+
equals: "equals";
|
|
563
|
+
exists: "exists";
|
|
566
564
|
greater_than: "greater_than";
|
|
567
|
-
less_than: "less_than";
|
|
568
565
|
greater_than_or_equal: "greater_than_or_equal";
|
|
566
|
+
in: "in";
|
|
567
|
+
less_than: "less_than";
|
|
569
568
|
less_than_or_equal: "less_than_or_equal";
|
|
570
|
-
|
|
571
|
-
|
|
569
|
+
not_contains: "not_contains";
|
|
570
|
+
not_equals: "not_equals";
|
|
572
571
|
not_exists: "not_exists";
|
|
572
|
+
not_in: "not_in";
|
|
573
573
|
}>;
|
|
574
574
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
575
575
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -580,18 +580,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
580
580
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
581
581
|
field: import("zod").ZodString;
|
|
582
582
|
operator: import("zod").ZodEnum<{
|
|
583
|
-
in: "in";
|
|
584
|
-
equals: "equals";
|
|
585
|
-
not_equals: "not_equals";
|
|
586
583
|
contains: "contains";
|
|
587
|
-
|
|
584
|
+
equals: "equals";
|
|
585
|
+
exists: "exists";
|
|
588
586
|
greater_than: "greater_than";
|
|
589
|
-
less_than: "less_than";
|
|
590
587
|
greater_than_or_equal: "greater_than_or_equal";
|
|
588
|
+
in: "in";
|
|
589
|
+
less_than: "less_than";
|
|
591
590
|
less_than_or_equal: "less_than_or_equal";
|
|
592
|
-
|
|
593
|
-
|
|
591
|
+
not_contains: "not_contains";
|
|
592
|
+
not_equals: "not_equals";
|
|
594
593
|
not_exists: "not_exists";
|
|
594
|
+
not_in: "not_in";
|
|
595
595
|
}>;
|
|
596
596
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
597
597
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -602,18 +602,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
602
602
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
603
603
|
field: import("zod").ZodString;
|
|
604
604
|
operator: import("zod").ZodEnum<{
|
|
605
|
-
in: "in";
|
|
606
|
-
equals: "equals";
|
|
607
|
-
not_equals: "not_equals";
|
|
608
605
|
contains: "contains";
|
|
609
|
-
|
|
606
|
+
equals: "equals";
|
|
607
|
+
exists: "exists";
|
|
610
608
|
greater_than: "greater_than";
|
|
611
|
-
less_than: "less_than";
|
|
612
609
|
greater_than_or_equal: "greater_than_or_equal";
|
|
610
|
+
in: "in";
|
|
611
|
+
less_than: "less_than";
|
|
613
612
|
less_than_or_equal: "less_than_or_equal";
|
|
614
|
-
|
|
615
|
-
|
|
613
|
+
not_contains: "not_contains";
|
|
614
|
+
not_equals: "not_equals";
|
|
616
615
|
not_exists: "not_exists";
|
|
616
|
+
not_in: "not_in";
|
|
617
617
|
}>;
|
|
618
618
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
619
619
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -624,17 +624,15 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
624
624
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
625
625
|
} & {
|
|
626
626
|
readonly _mastraSchemaRoute: true;
|
|
627
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
627
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
628
628
|
method: "PATCH";
|
|
629
629
|
path: "/stored/prompt-blocks/:storedPromptBlockId";
|
|
630
630
|
responseType: "json";
|
|
631
|
-
streamFormat?:
|
|
631
|
+
streamFormat?: 'sse' | 'stream';
|
|
632
632
|
sseFlushOnConnect?: boolean;
|
|
633
633
|
handler(params: {
|
|
634
634
|
storedPromptBlockId: string;
|
|
635
635
|
} & {
|
|
636
|
-
authorId?: string | undefined;
|
|
637
|
-
metadata?: Record<string, unknown> | undefined;
|
|
638
636
|
name?: string | undefined;
|
|
639
637
|
description?: string | undefined;
|
|
640
638
|
content?: string | undefined;
|
|
@@ -642,54 +640,56 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
642
640
|
operator: "AND" | "OR";
|
|
643
641
|
conditions: ({
|
|
644
642
|
field: string;
|
|
645
|
-
operator: "
|
|
643
|
+
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";
|
|
646
644
|
value?: unknown;
|
|
647
645
|
} | {
|
|
648
646
|
operator: "AND" | "OR";
|
|
649
647
|
conditions: ({
|
|
650
648
|
field: string;
|
|
651
|
-
operator: "
|
|
649
|
+
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";
|
|
652
650
|
value?: unknown;
|
|
653
651
|
} | {
|
|
654
652
|
operator: "AND" | "OR";
|
|
655
653
|
conditions: {
|
|
656
654
|
field: string;
|
|
657
|
-
operator: "
|
|
655
|
+
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";
|
|
658
656
|
value?: unknown;
|
|
659
657
|
}[];
|
|
660
658
|
})[];
|
|
661
659
|
})[];
|
|
662
660
|
} | undefined;
|
|
663
661
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
662
|
+
authorId?: string | undefined;
|
|
663
|
+
metadata?: Record<string, unknown> | undefined;
|
|
664
664
|
} & import(".").ServerContext): Promise<{
|
|
665
665
|
id: string;
|
|
666
666
|
status: string;
|
|
667
|
-
createdAt: Date;
|
|
668
|
-
updatedAt: Date;
|
|
669
|
-
name: string;
|
|
670
|
-
content: string;
|
|
671
667
|
activeVersionId?: string | undefined;
|
|
672
668
|
hasDraft?: boolean | undefined;
|
|
673
669
|
authorId?: string | undefined;
|
|
674
670
|
metadata?: Record<string, unknown> | undefined;
|
|
671
|
+
createdAt: Date;
|
|
672
|
+
updatedAt: Date;
|
|
673
|
+
name: string;
|
|
675
674
|
description?: string | undefined;
|
|
675
|
+
content: string;
|
|
676
676
|
rules?: {
|
|
677
677
|
operator: "AND" | "OR";
|
|
678
678
|
conditions: ({
|
|
679
679
|
field: string;
|
|
680
|
-
operator: "
|
|
680
|
+
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";
|
|
681
681
|
value?: unknown;
|
|
682
682
|
} | {
|
|
683
683
|
operator: "AND" | "OR";
|
|
684
684
|
conditions: ({
|
|
685
685
|
field: string;
|
|
686
|
-
operator: "
|
|
686
|
+
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";
|
|
687
687
|
value?: unknown;
|
|
688
688
|
} | {
|
|
689
689
|
operator: "AND" | "OR";
|
|
690
690
|
conditions: {
|
|
691
691
|
field: string;
|
|
692
|
-
operator: "
|
|
692
|
+
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";
|
|
693
693
|
value?: unknown;
|
|
694
694
|
}[];
|
|
695
695
|
})[];
|
|
@@ -699,11 +699,11 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
699
699
|
} | {
|
|
700
700
|
id: string;
|
|
701
701
|
status: string;
|
|
702
|
-
createdAt: Date;
|
|
703
|
-
updatedAt: Date;
|
|
704
702
|
activeVersionId?: string | undefined;
|
|
705
703
|
authorId?: string | undefined;
|
|
706
704
|
metadata?: Record<string, unknown> | undefined;
|
|
705
|
+
createdAt: Date;
|
|
706
|
+
updatedAt: Date;
|
|
707
707
|
}>;
|
|
708
708
|
pathParamSchema?: import("zod").ZodType;
|
|
709
709
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -718,8 +718,6 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
718
718
|
readonly __schemas?: import(".").RouteSchemas<import("zod").ZodObject<{
|
|
719
719
|
storedPromptBlockId: import("zod").ZodString;
|
|
720
720
|
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
721
|
-
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
722
|
-
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
723
721
|
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
724
722
|
description: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
725
723
|
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -731,18 +729,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
731
729
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
732
730
|
field: import("zod").ZodString;
|
|
733
731
|
operator: import("zod").ZodEnum<{
|
|
734
|
-
in: "in";
|
|
735
|
-
equals: "equals";
|
|
736
|
-
not_equals: "not_equals";
|
|
737
732
|
contains: "contains";
|
|
738
|
-
|
|
733
|
+
equals: "equals";
|
|
734
|
+
exists: "exists";
|
|
739
735
|
greater_than: "greater_than";
|
|
740
|
-
less_than: "less_than";
|
|
741
736
|
greater_than_or_equal: "greater_than_or_equal";
|
|
737
|
+
in: "in";
|
|
738
|
+
less_than: "less_than";
|
|
742
739
|
less_than_or_equal: "less_than_or_equal";
|
|
743
|
-
|
|
744
|
-
|
|
740
|
+
not_contains: "not_contains";
|
|
741
|
+
not_equals: "not_equals";
|
|
745
742
|
not_exists: "not_exists";
|
|
743
|
+
not_in: "not_in";
|
|
746
744
|
}>;
|
|
747
745
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
748
746
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -753,18 +751,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
753
751
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
754
752
|
field: import("zod").ZodString;
|
|
755
753
|
operator: import("zod").ZodEnum<{
|
|
756
|
-
in: "in";
|
|
757
|
-
equals: "equals";
|
|
758
|
-
not_equals: "not_equals";
|
|
759
754
|
contains: "contains";
|
|
760
|
-
|
|
755
|
+
equals: "equals";
|
|
756
|
+
exists: "exists";
|
|
761
757
|
greater_than: "greater_than";
|
|
762
|
-
less_than: "less_than";
|
|
763
758
|
greater_than_or_equal: "greater_than_or_equal";
|
|
759
|
+
in: "in";
|
|
760
|
+
less_than: "less_than";
|
|
764
761
|
less_than_or_equal: "less_than_or_equal";
|
|
765
|
-
|
|
766
|
-
|
|
762
|
+
not_contains: "not_contains";
|
|
763
|
+
not_equals: "not_equals";
|
|
767
764
|
not_exists: "not_exists";
|
|
765
|
+
not_in: "not_in";
|
|
768
766
|
}>;
|
|
769
767
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
770
768
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -775,18 +773,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
775
773
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
776
774
|
field: import("zod").ZodString;
|
|
777
775
|
operator: import("zod").ZodEnum<{
|
|
778
|
-
in: "in";
|
|
779
|
-
equals: "equals";
|
|
780
|
-
not_equals: "not_equals";
|
|
781
776
|
contains: "contains";
|
|
782
|
-
|
|
777
|
+
equals: "equals";
|
|
778
|
+
exists: "exists";
|
|
783
779
|
greater_than: "greater_than";
|
|
784
|
-
less_than: "less_than";
|
|
785
780
|
greater_than_or_equal: "greater_than_or_equal";
|
|
781
|
+
in: "in";
|
|
782
|
+
less_than: "less_than";
|
|
786
783
|
less_than_or_equal: "less_than_or_equal";
|
|
787
|
-
|
|
788
|
-
|
|
784
|
+
not_contains: "not_contains";
|
|
785
|
+
not_equals: "not_equals";
|
|
789
786
|
not_exists: "not_exists";
|
|
787
|
+
not_in: "not_in";
|
|
790
788
|
}>;
|
|
791
789
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
792
790
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -794,6 +792,8 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
794
792
|
}, import("zod/v4/core").$strip>]>>;
|
|
795
793
|
}, import("zod/v4/core").$strip>>>;
|
|
796
794
|
requestContextSchema: import("zod").ZodOptional<import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>>;
|
|
795
|
+
authorId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
796
|
+
metadata: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
797
797
|
}, import("zod/v4/core").$strip>, import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
798
798
|
id: import("zod").ZodString;
|
|
799
799
|
status: import("zod").ZodString;
|
|
@@ -822,18 +822,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
822
822
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
823
823
|
field: import("zod").ZodString;
|
|
824
824
|
operator: import("zod").ZodEnum<{
|
|
825
|
-
in: "in";
|
|
826
|
-
equals: "equals";
|
|
827
|
-
not_equals: "not_equals";
|
|
828
825
|
contains: "contains";
|
|
829
|
-
|
|
826
|
+
equals: "equals";
|
|
827
|
+
exists: "exists";
|
|
830
828
|
greater_than: "greater_than";
|
|
831
|
-
less_than: "less_than";
|
|
832
829
|
greater_than_or_equal: "greater_than_or_equal";
|
|
830
|
+
in: "in";
|
|
831
|
+
less_than: "less_than";
|
|
833
832
|
less_than_or_equal: "less_than_or_equal";
|
|
834
|
-
|
|
835
|
-
|
|
833
|
+
not_contains: "not_contains";
|
|
834
|
+
not_equals: "not_equals";
|
|
836
835
|
not_exists: "not_exists";
|
|
836
|
+
not_in: "not_in";
|
|
837
837
|
}>;
|
|
838
838
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
839
839
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -844,18 +844,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
844
844
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
845
845
|
field: import("zod").ZodString;
|
|
846
846
|
operator: import("zod").ZodEnum<{
|
|
847
|
-
in: "in";
|
|
848
|
-
equals: "equals";
|
|
849
|
-
not_equals: "not_equals";
|
|
850
847
|
contains: "contains";
|
|
851
|
-
|
|
848
|
+
equals: "equals";
|
|
849
|
+
exists: "exists";
|
|
852
850
|
greater_than: "greater_than";
|
|
853
|
-
less_than: "less_than";
|
|
854
851
|
greater_than_or_equal: "greater_than_or_equal";
|
|
852
|
+
in: "in";
|
|
853
|
+
less_than: "less_than";
|
|
855
854
|
less_than_or_equal: "less_than_or_equal";
|
|
856
|
-
|
|
857
|
-
|
|
855
|
+
not_contains: "not_contains";
|
|
856
|
+
not_equals: "not_equals";
|
|
858
857
|
not_exists: "not_exists";
|
|
858
|
+
not_in: "not_in";
|
|
859
859
|
}>;
|
|
860
860
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
861
861
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -866,18 +866,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
866
866
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
867
867
|
field: import("zod").ZodString;
|
|
868
868
|
operator: import("zod").ZodEnum<{
|
|
869
|
-
in: "in";
|
|
870
|
-
equals: "equals";
|
|
871
|
-
not_equals: "not_equals";
|
|
872
869
|
contains: "contains";
|
|
873
|
-
|
|
870
|
+
equals: "equals";
|
|
871
|
+
exists: "exists";
|
|
874
872
|
greater_than: "greater_than";
|
|
875
|
-
less_than: "less_than";
|
|
876
873
|
greater_than_or_equal: "greater_than_or_equal";
|
|
874
|
+
in: "in";
|
|
875
|
+
less_than: "less_than";
|
|
877
876
|
less_than_or_equal: "less_than_or_equal";
|
|
878
|
-
|
|
879
|
-
|
|
877
|
+
not_contains: "not_contains";
|
|
878
|
+
not_equals: "not_equals";
|
|
880
879
|
not_exists: "not_exists";
|
|
880
|
+
not_in: "not_in";
|
|
881
881
|
}>;
|
|
882
882
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
883
883
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -888,11 +888,11 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
888
888
|
}, import("zod/v4/core").$strip>]>> | undefined;
|
|
889
889
|
} & {
|
|
890
890
|
readonly _mastraSchemaRoute: true;
|
|
891
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
891
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
892
892
|
method: "DELETE";
|
|
893
893
|
path: "/stored/prompt-blocks/:storedPromptBlockId";
|
|
894
894
|
responseType: "json";
|
|
895
|
-
streamFormat?:
|
|
895
|
+
streamFormat?: 'sse' | 'stream';
|
|
896
896
|
sseFlushOnConnect?: boolean;
|
|
897
897
|
handler(params: {
|
|
898
898
|
storedPromptBlockId: string;
|
|
@@ -918,17 +918,17 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
918
918
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
919
919
|
} & {
|
|
920
920
|
readonly _mastraSchemaRoute: true;
|
|
921
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
921
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
922
922
|
method: "GET";
|
|
923
923
|
path: "/stored/prompt-blocks/:promptBlockId/versions";
|
|
924
924
|
responseType: "json";
|
|
925
|
-
streamFormat?:
|
|
925
|
+
streamFormat?: 'sse' | 'stream';
|
|
926
926
|
sseFlushOnConnect?: boolean;
|
|
927
927
|
handler(params: import(".").InferParams<import("zod").ZodObject<{
|
|
928
928
|
promptBlockId: import("zod").ZodString;
|
|
929
929
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
930
|
-
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
931
930
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
931
|
+
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
932
932
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
933
933
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
934
934
|
createdAt: "createdAt";
|
|
@@ -940,8 +940,8 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
940
940
|
}>>;
|
|
941
941
|
}, import("zod/v4/core").$strip>>;
|
|
942
942
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
943
|
-
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
944
943
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
944
|
+
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
945
945
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
946
946
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
947
947
|
createdAt: "createdAt";
|
|
@@ -962,26 +962,25 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
962
962
|
blockId: string;
|
|
963
963
|
versionNumber: number;
|
|
964
964
|
name: string;
|
|
965
|
-
content: string;
|
|
966
|
-
createdAt: Date;
|
|
967
965
|
description?: string | undefined;
|
|
966
|
+
content: string;
|
|
968
967
|
rules?: {
|
|
969
968
|
operator: "AND" | "OR";
|
|
970
969
|
conditions: ({
|
|
971
970
|
field: string;
|
|
972
|
-
operator: "
|
|
971
|
+
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";
|
|
973
972
|
value?: unknown;
|
|
974
973
|
} | {
|
|
975
974
|
operator: "AND" | "OR";
|
|
976
975
|
conditions: ({
|
|
977
976
|
field: string;
|
|
978
|
-
operator: "
|
|
977
|
+
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";
|
|
979
978
|
value?: unknown;
|
|
980
979
|
} | {
|
|
981
980
|
operator: "AND" | "OR";
|
|
982
981
|
conditions: {
|
|
983
982
|
field: string;
|
|
984
|
-
operator: "
|
|
983
|
+
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";
|
|
985
984
|
value?: unknown;
|
|
986
985
|
}[];
|
|
987
986
|
})[];
|
|
@@ -990,6 +989,7 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
990
989
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
991
990
|
changedFields?: string[] | undefined;
|
|
992
991
|
changeMessage?: string | undefined;
|
|
992
|
+
createdAt: Date;
|
|
993
993
|
}[];
|
|
994
994
|
}>;
|
|
995
995
|
pathParamSchema?: import("zod").ZodType;
|
|
@@ -1005,8 +1005,8 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1005
1005
|
readonly __schemas?: import(".").RouteSchemas<import("zod").ZodObject<{
|
|
1006
1006
|
promptBlockId: import("zod").ZodString;
|
|
1007
1007
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1008
|
-
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
1009
1008
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
1009
|
+
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
1010
1010
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1011
1011
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1012
1012
|
createdAt: "createdAt";
|
|
@@ -1018,8 +1018,8 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1018
1018
|
}>>;
|
|
1019
1019
|
}, import("zod/v4/core").$strip>>;
|
|
1020
1020
|
}, import("zod/v4/core").$strip> | import("zod").ZodObject<{
|
|
1021
|
-
perPage: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
1022
1021
|
page: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
1022
|
+
perPage: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>>;
|
|
1023
1023
|
orderBy: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1024
1024
|
field: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1025
1025
|
createdAt: "createdAt";
|
|
@@ -1050,18 +1050,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1050
1050
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1051
1051
|
field: import("zod").ZodString;
|
|
1052
1052
|
operator: import("zod").ZodEnum<{
|
|
1053
|
-
in: "in";
|
|
1054
|
-
equals: "equals";
|
|
1055
|
-
not_equals: "not_equals";
|
|
1056
1053
|
contains: "contains";
|
|
1057
|
-
|
|
1054
|
+
equals: "equals";
|
|
1055
|
+
exists: "exists";
|
|
1058
1056
|
greater_than: "greater_than";
|
|
1059
|
-
less_than: "less_than";
|
|
1060
1057
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1058
|
+
in: "in";
|
|
1059
|
+
less_than: "less_than";
|
|
1061
1060
|
less_than_or_equal: "less_than_or_equal";
|
|
1062
|
-
|
|
1063
|
-
|
|
1061
|
+
not_contains: "not_contains";
|
|
1062
|
+
not_equals: "not_equals";
|
|
1064
1063
|
not_exists: "not_exists";
|
|
1064
|
+
not_in: "not_in";
|
|
1065
1065
|
}>;
|
|
1066
1066
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1067
1067
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1072,18 +1072,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1072
1072
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1073
1073
|
field: import("zod").ZodString;
|
|
1074
1074
|
operator: import("zod").ZodEnum<{
|
|
1075
|
-
in: "in";
|
|
1076
|
-
equals: "equals";
|
|
1077
|
-
not_equals: "not_equals";
|
|
1078
1075
|
contains: "contains";
|
|
1079
|
-
|
|
1076
|
+
equals: "equals";
|
|
1077
|
+
exists: "exists";
|
|
1080
1078
|
greater_than: "greater_than";
|
|
1081
|
-
less_than: "less_than";
|
|
1082
1079
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1080
|
+
in: "in";
|
|
1081
|
+
less_than: "less_than";
|
|
1083
1082
|
less_than_or_equal: "less_than_or_equal";
|
|
1084
|
-
|
|
1085
|
-
|
|
1083
|
+
not_contains: "not_contains";
|
|
1084
|
+
not_equals: "not_equals";
|
|
1086
1085
|
not_exists: "not_exists";
|
|
1086
|
+
not_in: "not_in";
|
|
1087
1087
|
}>;
|
|
1088
1088
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1089
1089
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1094,18 +1094,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1094
1094
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1095
1095
|
field: import("zod").ZodString;
|
|
1096
1096
|
operator: import("zod").ZodEnum<{
|
|
1097
|
-
in: "in";
|
|
1098
|
-
equals: "equals";
|
|
1099
|
-
not_equals: "not_equals";
|
|
1100
1097
|
contains: "contains";
|
|
1101
|
-
|
|
1098
|
+
equals: "equals";
|
|
1099
|
+
exists: "exists";
|
|
1102
1100
|
greater_than: "greater_than";
|
|
1103
|
-
less_than: "less_than";
|
|
1104
1101
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1102
|
+
in: "in";
|
|
1103
|
+
less_than: "less_than";
|
|
1105
1104
|
less_than_or_equal: "less_than_or_equal";
|
|
1106
|
-
|
|
1107
|
-
|
|
1105
|
+
not_contains: "not_contains";
|
|
1106
|
+
not_equals: "not_equals";
|
|
1108
1107
|
not_exists: "not_exists";
|
|
1108
|
+
not_in: "not_in";
|
|
1109
1109
|
}>;
|
|
1110
1110
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1111
1111
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1120,21 +1120,17 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1120
1120
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1121
1121
|
} & {
|
|
1122
1122
|
readonly _mastraSchemaRoute: true;
|
|
1123
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1123
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1124
1124
|
method: "POST";
|
|
1125
1125
|
path: "/stored/prompt-blocks/:promptBlockId/versions";
|
|
1126
1126
|
responseType: "json";
|
|
1127
|
-
streamFormat?:
|
|
1127
|
+
streamFormat?: 'sse' | 'stream';
|
|
1128
1128
|
sseFlushOnConnect?: boolean;
|
|
1129
1129
|
handler(params: {
|
|
1130
1130
|
promptBlockId: string;
|
|
1131
1131
|
} & {
|
|
1132
1132
|
changeMessage?: string | undefined;
|
|
1133
1133
|
} & import(".").ServerContext): Promise<{
|
|
1134
|
-
id: string;
|
|
1135
|
-
blockId: string;
|
|
1136
|
-
versionNumber: number;
|
|
1137
|
-
createdAt: Date;
|
|
1138
1134
|
name?: string | undefined;
|
|
1139
1135
|
description?: string | undefined;
|
|
1140
1136
|
content?: string | undefined;
|
|
@@ -1142,19 +1138,19 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1142
1138
|
operator: "AND" | "OR";
|
|
1143
1139
|
conditions: ({
|
|
1144
1140
|
field: string;
|
|
1145
|
-
operator: "
|
|
1141
|
+
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";
|
|
1146
1142
|
value?: unknown;
|
|
1147
1143
|
} | {
|
|
1148
1144
|
operator: "AND" | "OR";
|
|
1149
1145
|
conditions: ({
|
|
1150
1146
|
field: string;
|
|
1151
|
-
operator: "
|
|
1147
|
+
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";
|
|
1152
1148
|
value?: unknown;
|
|
1153
1149
|
} | {
|
|
1154
1150
|
operator: "AND" | "OR";
|
|
1155
1151
|
conditions: {
|
|
1156
1152
|
field: string;
|
|
1157
|
-
operator: "
|
|
1153
|
+
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";
|
|
1158
1154
|
value?: unknown;
|
|
1159
1155
|
}[];
|
|
1160
1156
|
})[];
|
|
@@ -1163,6 +1159,10 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1163
1159
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
1164
1160
|
changedFields?: string[] | undefined;
|
|
1165
1161
|
changeMessage?: string | undefined;
|
|
1162
|
+
id: string;
|
|
1163
|
+
blockId: string;
|
|
1164
|
+
versionNumber: number;
|
|
1165
|
+
createdAt: Date;
|
|
1166
1166
|
}>;
|
|
1167
1167
|
pathParamSchema?: import("zod").ZodType;
|
|
1168
1168
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -1190,18 +1190,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1190
1190
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1191
1191
|
field: import("zod").ZodString;
|
|
1192
1192
|
operator: import("zod").ZodEnum<{
|
|
1193
|
-
in: "in";
|
|
1194
|
-
equals: "equals";
|
|
1195
|
-
not_equals: "not_equals";
|
|
1196
1193
|
contains: "contains";
|
|
1197
|
-
|
|
1194
|
+
equals: "equals";
|
|
1195
|
+
exists: "exists";
|
|
1198
1196
|
greater_than: "greater_than";
|
|
1199
|
-
less_than: "less_than";
|
|
1200
1197
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1198
|
+
in: "in";
|
|
1199
|
+
less_than: "less_than";
|
|
1201
1200
|
less_than_or_equal: "less_than_or_equal";
|
|
1202
|
-
|
|
1203
|
-
|
|
1201
|
+
not_contains: "not_contains";
|
|
1202
|
+
not_equals: "not_equals";
|
|
1204
1203
|
not_exists: "not_exists";
|
|
1204
|
+
not_in: "not_in";
|
|
1205
1205
|
}>;
|
|
1206
1206
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1207
1207
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1212,18 +1212,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1212
1212
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1213
1213
|
field: import("zod").ZodString;
|
|
1214
1214
|
operator: import("zod").ZodEnum<{
|
|
1215
|
-
in: "in";
|
|
1216
|
-
equals: "equals";
|
|
1217
|
-
not_equals: "not_equals";
|
|
1218
1215
|
contains: "contains";
|
|
1219
|
-
|
|
1216
|
+
equals: "equals";
|
|
1217
|
+
exists: "exists";
|
|
1220
1218
|
greater_than: "greater_than";
|
|
1221
|
-
less_than: "less_than";
|
|
1222
1219
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1220
|
+
in: "in";
|
|
1221
|
+
less_than: "less_than";
|
|
1223
1222
|
less_than_or_equal: "less_than_or_equal";
|
|
1224
|
-
|
|
1225
|
-
|
|
1223
|
+
not_contains: "not_contains";
|
|
1224
|
+
not_equals: "not_equals";
|
|
1226
1225
|
not_exists: "not_exists";
|
|
1226
|
+
not_in: "not_in";
|
|
1227
1227
|
}>;
|
|
1228
1228
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1229
1229
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1234,18 +1234,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1234
1234
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1235
1235
|
field: import("zod").ZodString;
|
|
1236
1236
|
operator: import("zod").ZodEnum<{
|
|
1237
|
-
in: "in";
|
|
1238
|
-
equals: "equals";
|
|
1239
|
-
not_equals: "not_equals";
|
|
1240
1237
|
contains: "contains";
|
|
1241
|
-
|
|
1238
|
+
equals: "equals";
|
|
1239
|
+
exists: "exists";
|
|
1242
1240
|
greater_than: "greater_than";
|
|
1243
|
-
less_than: "less_than";
|
|
1244
1241
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1242
|
+
in: "in";
|
|
1243
|
+
less_than: "less_than";
|
|
1245
1244
|
less_than_or_equal: "less_than_or_equal";
|
|
1246
|
-
|
|
1247
|
-
|
|
1245
|
+
not_contains: "not_contains";
|
|
1246
|
+
not_equals: "not_equals";
|
|
1248
1247
|
not_exists: "not_exists";
|
|
1248
|
+
not_in: "not_in";
|
|
1249
1249
|
}>;
|
|
1250
1250
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1251
1251
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1262,11 +1262,11 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1262
1262
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1263
1263
|
} & {
|
|
1264
1264
|
readonly _mastraSchemaRoute: true;
|
|
1265
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1265
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1266
1266
|
method: "GET";
|
|
1267
1267
|
path: "/stored/prompt-blocks/:promptBlockId/versions/compare";
|
|
1268
1268
|
responseType: "json";
|
|
1269
|
-
streamFormat?:
|
|
1269
|
+
streamFormat?: 'sse' | 'stream';
|
|
1270
1270
|
sseFlushOnConnect?: boolean;
|
|
1271
1271
|
handler(params: {
|
|
1272
1272
|
promptBlockId: string;
|
|
@@ -1284,26 +1284,25 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1284
1284
|
blockId: string;
|
|
1285
1285
|
versionNumber: number;
|
|
1286
1286
|
name: string;
|
|
1287
|
-
content: string;
|
|
1288
|
-
createdAt: Date;
|
|
1289
1287
|
description?: string | undefined;
|
|
1288
|
+
content: string;
|
|
1290
1289
|
rules?: {
|
|
1291
1290
|
operator: "AND" | "OR";
|
|
1292
1291
|
conditions: ({
|
|
1293
1292
|
field: string;
|
|
1294
|
-
operator: "
|
|
1293
|
+
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";
|
|
1295
1294
|
value?: unknown;
|
|
1296
1295
|
} | {
|
|
1297
1296
|
operator: "AND" | "OR";
|
|
1298
1297
|
conditions: ({
|
|
1299
1298
|
field: string;
|
|
1300
|
-
operator: "
|
|
1299
|
+
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";
|
|
1301
1300
|
value?: unknown;
|
|
1302
1301
|
} | {
|
|
1303
1302
|
operator: "AND" | "OR";
|
|
1304
1303
|
conditions: {
|
|
1305
1304
|
field: string;
|
|
1306
|
-
operator: "
|
|
1305
|
+
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";
|
|
1307
1306
|
value?: unknown;
|
|
1308
1307
|
}[];
|
|
1309
1308
|
})[];
|
|
@@ -1312,32 +1311,32 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1312
1311
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
1313
1312
|
changedFields?: string[] | undefined;
|
|
1314
1313
|
changeMessage?: string | undefined;
|
|
1314
|
+
createdAt: Date;
|
|
1315
1315
|
};
|
|
1316
1316
|
toVersion: {
|
|
1317
1317
|
id: string;
|
|
1318
1318
|
blockId: string;
|
|
1319
1319
|
versionNumber: number;
|
|
1320
1320
|
name: string;
|
|
1321
|
-
content: string;
|
|
1322
|
-
createdAt: Date;
|
|
1323
1321
|
description?: string | undefined;
|
|
1322
|
+
content: string;
|
|
1324
1323
|
rules?: {
|
|
1325
1324
|
operator: "AND" | "OR";
|
|
1326
1325
|
conditions: ({
|
|
1327
1326
|
field: string;
|
|
1328
|
-
operator: "
|
|
1327
|
+
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";
|
|
1329
1328
|
value?: unknown;
|
|
1330
1329
|
} | {
|
|
1331
1330
|
operator: "AND" | "OR";
|
|
1332
1331
|
conditions: ({
|
|
1333
1332
|
field: string;
|
|
1334
|
-
operator: "
|
|
1333
|
+
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";
|
|
1335
1334
|
value?: unknown;
|
|
1336
1335
|
} | {
|
|
1337
1336
|
operator: "AND" | "OR";
|
|
1338
1337
|
conditions: {
|
|
1339
1338
|
field: string;
|
|
1340
|
-
operator: "
|
|
1339
|
+
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";
|
|
1341
1340
|
value?: unknown;
|
|
1342
1341
|
}[];
|
|
1343
1342
|
})[];
|
|
@@ -1346,6 +1345,7 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1346
1345
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
1347
1346
|
changedFields?: string[] | undefined;
|
|
1348
1347
|
changeMessage?: string | undefined;
|
|
1348
|
+
createdAt: Date;
|
|
1349
1349
|
};
|
|
1350
1350
|
}>;
|
|
1351
1351
|
pathParamSchema?: import("zod").ZodType;
|
|
@@ -1384,18 +1384,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1384
1384
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1385
1385
|
field: import("zod").ZodString;
|
|
1386
1386
|
operator: import("zod").ZodEnum<{
|
|
1387
|
-
in: "in";
|
|
1388
|
-
equals: "equals";
|
|
1389
|
-
not_equals: "not_equals";
|
|
1390
1387
|
contains: "contains";
|
|
1391
|
-
|
|
1388
|
+
equals: "equals";
|
|
1389
|
+
exists: "exists";
|
|
1392
1390
|
greater_than: "greater_than";
|
|
1393
|
-
less_than: "less_than";
|
|
1394
1391
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1392
|
+
in: "in";
|
|
1393
|
+
less_than: "less_than";
|
|
1395
1394
|
less_than_or_equal: "less_than_or_equal";
|
|
1396
|
-
|
|
1397
|
-
|
|
1395
|
+
not_contains: "not_contains";
|
|
1396
|
+
not_equals: "not_equals";
|
|
1398
1397
|
not_exists: "not_exists";
|
|
1398
|
+
not_in: "not_in";
|
|
1399
1399
|
}>;
|
|
1400
1400
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1401
1401
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1406,18 +1406,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1406
1406
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1407
1407
|
field: import("zod").ZodString;
|
|
1408
1408
|
operator: import("zod").ZodEnum<{
|
|
1409
|
-
in: "in";
|
|
1410
|
-
equals: "equals";
|
|
1411
|
-
not_equals: "not_equals";
|
|
1412
1409
|
contains: "contains";
|
|
1413
|
-
|
|
1410
|
+
equals: "equals";
|
|
1411
|
+
exists: "exists";
|
|
1414
1412
|
greater_than: "greater_than";
|
|
1415
|
-
less_than: "less_than";
|
|
1416
1413
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1414
|
+
in: "in";
|
|
1415
|
+
less_than: "less_than";
|
|
1417
1416
|
less_than_or_equal: "less_than_or_equal";
|
|
1418
|
-
|
|
1419
|
-
|
|
1417
|
+
not_contains: "not_contains";
|
|
1418
|
+
not_equals: "not_equals";
|
|
1420
1419
|
not_exists: "not_exists";
|
|
1420
|
+
not_in: "not_in";
|
|
1421
1421
|
}>;
|
|
1422
1422
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1423
1423
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1428,18 +1428,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1428
1428
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1429
1429
|
field: import("zod").ZodString;
|
|
1430
1430
|
operator: import("zod").ZodEnum<{
|
|
1431
|
-
in: "in";
|
|
1432
|
-
equals: "equals";
|
|
1433
|
-
not_equals: "not_equals";
|
|
1434
1431
|
contains: "contains";
|
|
1435
|
-
|
|
1432
|
+
equals: "equals";
|
|
1433
|
+
exists: "exists";
|
|
1436
1434
|
greater_than: "greater_than";
|
|
1437
|
-
less_than: "less_than";
|
|
1438
1435
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1436
|
+
in: "in";
|
|
1437
|
+
less_than: "less_than";
|
|
1439
1438
|
less_than_or_equal: "less_than_or_equal";
|
|
1440
|
-
|
|
1441
|
-
|
|
1439
|
+
not_contains: "not_contains";
|
|
1440
|
+
not_equals: "not_equals";
|
|
1442
1441
|
not_exists: "not_exists";
|
|
1442
|
+
not_in: "not_in";
|
|
1443
1443
|
}>;
|
|
1444
1444
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1445
1445
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1466,18 +1466,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1466
1466
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1467
1467
|
field: import("zod").ZodString;
|
|
1468
1468
|
operator: import("zod").ZodEnum<{
|
|
1469
|
-
in: "in";
|
|
1470
|
-
equals: "equals";
|
|
1471
|
-
not_equals: "not_equals";
|
|
1472
1469
|
contains: "contains";
|
|
1473
|
-
|
|
1470
|
+
equals: "equals";
|
|
1471
|
+
exists: "exists";
|
|
1474
1472
|
greater_than: "greater_than";
|
|
1475
|
-
less_than: "less_than";
|
|
1476
1473
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1474
|
+
in: "in";
|
|
1475
|
+
less_than: "less_than";
|
|
1477
1476
|
less_than_or_equal: "less_than_or_equal";
|
|
1478
|
-
|
|
1479
|
-
|
|
1477
|
+
not_contains: "not_contains";
|
|
1478
|
+
not_equals: "not_equals";
|
|
1480
1479
|
not_exists: "not_exists";
|
|
1480
|
+
not_in: "not_in";
|
|
1481
1481
|
}>;
|
|
1482
1482
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1483
1483
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1488,18 +1488,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1488
1488
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1489
1489
|
field: import("zod").ZodString;
|
|
1490
1490
|
operator: import("zod").ZodEnum<{
|
|
1491
|
-
in: "in";
|
|
1492
|
-
equals: "equals";
|
|
1493
|
-
not_equals: "not_equals";
|
|
1494
1491
|
contains: "contains";
|
|
1495
|
-
|
|
1492
|
+
equals: "equals";
|
|
1493
|
+
exists: "exists";
|
|
1496
1494
|
greater_than: "greater_than";
|
|
1497
|
-
less_than: "less_than";
|
|
1498
1495
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1496
|
+
in: "in";
|
|
1497
|
+
less_than: "less_than";
|
|
1499
1498
|
less_than_or_equal: "less_than_or_equal";
|
|
1500
|
-
|
|
1501
|
-
|
|
1499
|
+
not_contains: "not_contains";
|
|
1500
|
+
not_equals: "not_equals";
|
|
1502
1501
|
not_exists: "not_exists";
|
|
1502
|
+
not_in: "not_in";
|
|
1503
1503
|
}>;
|
|
1504
1504
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1505
1505
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1510,18 +1510,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1510
1510
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1511
1511
|
field: import("zod").ZodString;
|
|
1512
1512
|
operator: import("zod").ZodEnum<{
|
|
1513
|
-
in: "in";
|
|
1514
|
-
equals: "equals";
|
|
1515
|
-
not_equals: "not_equals";
|
|
1516
1513
|
contains: "contains";
|
|
1517
|
-
|
|
1514
|
+
equals: "equals";
|
|
1515
|
+
exists: "exists";
|
|
1518
1516
|
greater_than: "greater_than";
|
|
1519
|
-
less_than: "less_than";
|
|
1520
1517
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1518
|
+
in: "in";
|
|
1519
|
+
less_than: "less_than";
|
|
1521
1520
|
less_than_or_equal: "less_than_or_equal";
|
|
1522
|
-
|
|
1523
|
-
|
|
1521
|
+
not_contains: "not_contains";
|
|
1522
|
+
not_equals: "not_equals";
|
|
1524
1523
|
not_exists: "not_exists";
|
|
1524
|
+
not_in: "not_in";
|
|
1525
1525
|
}>;
|
|
1526
1526
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1527
1527
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1536,11 +1536,11 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1536
1536
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1537
1537
|
} & {
|
|
1538
1538
|
readonly _mastraSchemaRoute: true;
|
|
1539
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1539
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1540
1540
|
method: "GET";
|
|
1541
1541
|
path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId";
|
|
1542
1542
|
responseType: "json";
|
|
1543
|
-
streamFormat?:
|
|
1543
|
+
streamFormat?: 'sse' | 'stream';
|
|
1544
1544
|
sseFlushOnConnect?: boolean;
|
|
1545
1545
|
handler(params: {
|
|
1546
1546
|
promptBlockId: string;
|
|
@@ -1550,26 +1550,25 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1550
1550
|
blockId: string;
|
|
1551
1551
|
versionNumber: number;
|
|
1552
1552
|
name: string;
|
|
1553
|
-
content: string;
|
|
1554
|
-
createdAt: Date;
|
|
1555
1553
|
description?: string | undefined;
|
|
1554
|
+
content: string;
|
|
1556
1555
|
rules?: {
|
|
1557
1556
|
operator: "AND" | "OR";
|
|
1558
1557
|
conditions: ({
|
|
1559
1558
|
field: string;
|
|
1560
|
-
operator: "
|
|
1559
|
+
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";
|
|
1561
1560
|
value?: unknown;
|
|
1562
1561
|
} | {
|
|
1563
1562
|
operator: "AND" | "OR";
|
|
1564
1563
|
conditions: ({
|
|
1565
1564
|
field: string;
|
|
1566
|
-
operator: "
|
|
1565
|
+
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";
|
|
1567
1566
|
value?: unknown;
|
|
1568
1567
|
} | {
|
|
1569
1568
|
operator: "AND" | "OR";
|
|
1570
1569
|
conditions: {
|
|
1571
1570
|
field: string;
|
|
1572
|
-
operator: "
|
|
1571
|
+
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";
|
|
1573
1572
|
value?: unknown;
|
|
1574
1573
|
}[];
|
|
1575
1574
|
})[];
|
|
@@ -1578,6 +1577,7 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1578
1577
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
1579
1578
|
changedFields?: string[] | undefined;
|
|
1580
1579
|
changeMessage?: string | undefined;
|
|
1580
|
+
createdAt: Date;
|
|
1581
1581
|
}>;
|
|
1582
1582
|
pathParamSchema?: import("zod").ZodType;
|
|
1583
1583
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -1607,18 +1607,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1607
1607
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1608
1608
|
field: import("zod").ZodString;
|
|
1609
1609
|
operator: import("zod").ZodEnum<{
|
|
1610
|
-
in: "in";
|
|
1611
|
-
equals: "equals";
|
|
1612
|
-
not_equals: "not_equals";
|
|
1613
1610
|
contains: "contains";
|
|
1614
|
-
|
|
1611
|
+
equals: "equals";
|
|
1612
|
+
exists: "exists";
|
|
1615
1613
|
greater_than: "greater_than";
|
|
1616
|
-
less_than: "less_than";
|
|
1617
1614
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1615
|
+
in: "in";
|
|
1616
|
+
less_than: "less_than";
|
|
1618
1617
|
less_than_or_equal: "less_than_or_equal";
|
|
1619
|
-
|
|
1620
|
-
|
|
1618
|
+
not_contains: "not_contains";
|
|
1619
|
+
not_equals: "not_equals";
|
|
1621
1620
|
not_exists: "not_exists";
|
|
1621
|
+
not_in: "not_in";
|
|
1622
1622
|
}>;
|
|
1623
1623
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1624
1624
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1629,18 +1629,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1629
1629
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1630
1630
|
field: import("zod").ZodString;
|
|
1631
1631
|
operator: import("zod").ZodEnum<{
|
|
1632
|
-
in: "in";
|
|
1633
|
-
equals: "equals";
|
|
1634
|
-
not_equals: "not_equals";
|
|
1635
1632
|
contains: "contains";
|
|
1636
|
-
|
|
1633
|
+
equals: "equals";
|
|
1634
|
+
exists: "exists";
|
|
1637
1635
|
greater_than: "greater_than";
|
|
1638
|
-
less_than: "less_than";
|
|
1639
1636
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1637
|
+
in: "in";
|
|
1638
|
+
less_than: "less_than";
|
|
1640
1639
|
less_than_or_equal: "less_than_or_equal";
|
|
1641
|
-
|
|
1642
|
-
|
|
1640
|
+
not_contains: "not_contains";
|
|
1641
|
+
not_equals: "not_equals";
|
|
1643
1642
|
not_exists: "not_exists";
|
|
1643
|
+
not_in: "not_in";
|
|
1644
1644
|
}>;
|
|
1645
1645
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1646
1646
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1651,18 +1651,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1651
1651
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1652
1652
|
field: import("zod").ZodString;
|
|
1653
1653
|
operator: import("zod").ZodEnum<{
|
|
1654
|
-
in: "in";
|
|
1655
|
-
equals: "equals";
|
|
1656
|
-
not_equals: "not_equals";
|
|
1657
1654
|
contains: "contains";
|
|
1658
|
-
|
|
1655
|
+
equals: "equals";
|
|
1656
|
+
exists: "exists";
|
|
1659
1657
|
greater_than: "greater_than";
|
|
1660
|
-
less_than: "less_than";
|
|
1661
1658
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1659
|
+
in: "in";
|
|
1660
|
+
less_than: "less_than";
|
|
1662
1661
|
less_than_or_equal: "less_than_or_equal";
|
|
1663
|
-
|
|
1664
|
-
|
|
1662
|
+
not_contains: "not_contains";
|
|
1663
|
+
not_equals: "not_equals";
|
|
1665
1664
|
not_exists: "not_exists";
|
|
1665
|
+
not_in: "not_in";
|
|
1666
1666
|
}>;
|
|
1667
1667
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1668
1668
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1676,11 +1676,11 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1676
1676
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1677
1677
|
} & {
|
|
1678
1678
|
readonly _mastraSchemaRoute: true;
|
|
1679
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1679
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1680
1680
|
method: "POST";
|
|
1681
1681
|
path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId/activate";
|
|
1682
1682
|
responseType: "json";
|
|
1683
|
-
streamFormat?:
|
|
1683
|
+
streamFormat?: 'sse' | 'stream';
|
|
1684
1684
|
sseFlushOnConnect?: boolean;
|
|
1685
1685
|
handler(params: {
|
|
1686
1686
|
promptBlockId: string;
|
|
@@ -1710,11 +1710,11 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1710
1710
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1711
1711
|
} & {
|
|
1712
1712
|
readonly _mastraSchemaRoute: true;
|
|
1713
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1713
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1714
1714
|
method: "POST";
|
|
1715
1715
|
path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId/restore";
|
|
1716
1716
|
responseType: "json";
|
|
1717
|
-
streamFormat?:
|
|
1717
|
+
streamFormat?: 'sse' | 'stream';
|
|
1718
1718
|
sseFlushOnConnect?: boolean;
|
|
1719
1719
|
handler(params: {
|
|
1720
1720
|
promptBlockId: string;
|
|
@@ -1724,26 +1724,25 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1724
1724
|
blockId: string;
|
|
1725
1725
|
versionNumber: number;
|
|
1726
1726
|
name: string;
|
|
1727
|
-
content: string;
|
|
1728
|
-
createdAt: Date;
|
|
1729
1727
|
description?: string | undefined;
|
|
1728
|
+
content: string;
|
|
1730
1729
|
rules?: {
|
|
1731
1730
|
operator: "AND" | "OR";
|
|
1732
1731
|
conditions: ({
|
|
1733
1732
|
field: string;
|
|
1734
|
-
operator: "
|
|
1733
|
+
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";
|
|
1735
1734
|
value?: unknown;
|
|
1736
1735
|
} | {
|
|
1737
1736
|
operator: "AND" | "OR";
|
|
1738
1737
|
conditions: ({
|
|
1739
1738
|
field: string;
|
|
1740
|
-
operator: "
|
|
1739
|
+
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";
|
|
1741
1740
|
value?: unknown;
|
|
1742
1741
|
} | {
|
|
1743
1742
|
operator: "AND" | "OR";
|
|
1744
1743
|
conditions: {
|
|
1745
1744
|
field: string;
|
|
1746
|
-
operator: "
|
|
1745
|
+
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";
|
|
1747
1746
|
value?: unknown;
|
|
1748
1747
|
}[];
|
|
1749
1748
|
})[];
|
|
@@ -1752,6 +1751,7 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1752
1751
|
requestContextSchema?: Record<string, unknown> | undefined;
|
|
1753
1752
|
changedFields?: string[] | undefined;
|
|
1754
1753
|
changeMessage?: string | undefined;
|
|
1754
|
+
createdAt: Date;
|
|
1755
1755
|
}>;
|
|
1756
1756
|
pathParamSchema?: import("zod").ZodType;
|
|
1757
1757
|
queryParamSchema?: import("zod").ZodType;
|
|
@@ -1781,18 +1781,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1781
1781
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1782
1782
|
field: import("zod").ZodString;
|
|
1783
1783
|
operator: import("zod").ZodEnum<{
|
|
1784
|
-
in: "in";
|
|
1785
|
-
equals: "equals";
|
|
1786
|
-
not_equals: "not_equals";
|
|
1787
1784
|
contains: "contains";
|
|
1788
|
-
|
|
1785
|
+
equals: "equals";
|
|
1786
|
+
exists: "exists";
|
|
1789
1787
|
greater_than: "greater_than";
|
|
1790
|
-
less_than: "less_than";
|
|
1791
1788
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1789
|
+
in: "in";
|
|
1790
|
+
less_than: "less_than";
|
|
1792
1791
|
less_than_or_equal: "less_than_or_equal";
|
|
1793
|
-
|
|
1794
|
-
|
|
1792
|
+
not_contains: "not_contains";
|
|
1793
|
+
not_equals: "not_equals";
|
|
1795
1794
|
not_exists: "not_exists";
|
|
1795
|
+
not_in: "not_in";
|
|
1796
1796
|
}>;
|
|
1797
1797
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1798
1798
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1803,18 +1803,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1803
1803
|
conditions: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
1804
1804
|
field: import("zod").ZodString;
|
|
1805
1805
|
operator: import("zod").ZodEnum<{
|
|
1806
|
-
in: "in";
|
|
1807
|
-
equals: "equals";
|
|
1808
|
-
not_equals: "not_equals";
|
|
1809
1806
|
contains: "contains";
|
|
1810
|
-
|
|
1807
|
+
equals: "equals";
|
|
1808
|
+
exists: "exists";
|
|
1811
1809
|
greater_than: "greater_than";
|
|
1812
|
-
less_than: "less_than";
|
|
1813
1810
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1811
|
+
in: "in";
|
|
1812
|
+
less_than: "less_than";
|
|
1814
1813
|
less_than_or_equal: "less_than_or_equal";
|
|
1815
|
-
|
|
1816
|
-
|
|
1814
|
+
not_contains: "not_contains";
|
|
1815
|
+
not_equals: "not_equals";
|
|
1817
1816
|
not_exists: "not_exists";
|
|
1817
|
+
not_in: "not_in";
|
|
1818
1818
|
}>;
|
|
1819
1819
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1820
1820
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
@@ -1825,18 +1825,18 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1825
1825
|
conditions: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1826
1826
|
field: import("zod").ZodString;
|
|
1827
1827
|
operator: import("zod").ZodEnum<{
|
|
1828
|
-
in: "in";
|
|
1829
|
-
equals: "equals";
|
|
1830
|
-
not_equals: "not_equals";
|
|
1831
1828
|
contains: "contains";
|
|
1832
|
-
|
|
1829
|
+
equals: "equals";
|
|
1830
|
+
exists: "exists";
|
|
1833
1831
|
greater_than: "greater_than";
|
|
1834
|
-
less_than: "less_than";
|
|
1835
1832
|
greater_than_or_equal: "greater_than_or_equal";
|
|
1833
|
+
in: "in";
|
|
1834
|
+
less_than: "less_than";
|
|
1836
1835
|
less_than_or_equal: "less_than_or_equal";
|
|
1837
|
-
|
|
1838
|
-
|
|
1836
|
+
not_contains: "not_contains";
|
|
1837
|
+
not_equals: "not_equals";
|
|
1839
1838
|
not_exists: "not_exists";
|
|
1839
|
+
not_in: "not_in";
|
|
1840
1840
|
}>;
|
|
1841
1841
|
value: import("zod").ZodOptional<import("zod").ZodUnknown>;
|
|
1842
1842
|
}, import("zod/v4/core").$strip>>;
|
|
@@ -1850,11 +1850,11 @@ export declare const STORED_PROMPT_BLOCKS_ROUTES: readonly [Omit<import("@mastra
|
|
|
1850
1850
|
}, import("zod/v4/core").$strip>> | undefined;
|
|
1851
1851
|
} & {
|
|
1852
1852
|
readonly _mastraSchemaRoute: true;
|
|
1853
|
-
}, Omit<import("@mastra/core/server").ApiRoute, "
|
|
1853
|
+
}, Omit<import("@mastra/core/server").ApiRoute, "createHandler" | "handler" | "method" | "openapi" | "path"> & {
|
|
1854
1854
|
method: "DELETE";
|
|
1855
1855
|
path: "/stored/prompt-blocks/:promptBlockId/versions/:versionId";
|
|
1856
1856
|
responseType: "json";
|
|
1857
|
-
streamFormat?:
|
|
1857
|
+
streamFormat?: 'sse' | 'stream';
|
|
1858
1858
|
sseFlushOnConnect?: boolean;
|
|
1859
1859
|
handler(params: {
|
|
1860
1860
|
promptBlockId: string;
|