@magemetrics/core 0.5.2 → 0.5.3
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/dist/index.js +8 -42
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2362,50 +2362,16 @@ var CreateSpeechToken = createRoute({
|
|
|
2362
2362
|
}
|
|
2363
2363
|
}
|
|
2364
2364
|
});
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
status: z.literal("error"),
|
|
2370
|
-
error: z.string()
|
|
2365
|
+
var End2EndApiResponseSchema = z5.discriminatedUnion("status", [
|
|
2366
|
+
z5.object({
|
|
2367
|
+
status: z5.literal("error"),
|
|
2368
|
+
error: z5.string()
|
|
2371
2369
|
}),
|
|
2372
|
-
|
|
2373
|
-
status:
|
|
2374
|
-
flowId:
|
|
2370
|
+
z5.object({
|
|
2371
|
+
status: z5.literal("success"),
|
|
2372
|
+
flowId: z5.string()
|
|
2375
2373
|
})
|
|
2376
2374
|
]);
|
|
2377
|
-
createRoute({
|
|
2378
|
-
method: "post",
|
|
2379
|
-
path: "/api/v1/end2end",
|
|
2380
|
-
operationId: "runEnd2EndFlow",
|
|
2381
|
-
request: {
|
|
2382
|
-
headers: SupabaseHeaderSchema,
|
|
2383
|
-
body: {
|
|
2384
|
-
required: true,
|
|
2385
|
-
content: {
|
|
2386
|
-
"application/json": {
|
|
2387
|
-
schema: z.object({
|
|
2388
|
-
userQuery: z.string(),
|
|
2389
|
-
isNewAnalysisGoal: z.boolean().default(true),
|
|
2390
|
-
difficultyLevel: z.enum(["simple", "moderate", "complex"]).default("complex")
|
|
2391
|
-
})
|
|
2392
|
-
}
|
|
2393
|
-
}
|
|
2394
|
-
}
|
|
2395
|
-
},
|
|
2396
|
-
responses: {
|
|
2397
|
-
200: {
|
|
2398
|
-
description: "Run the end2end flow",
|
|
2399
|
-
content: {
|
|
2400
|
-
"application/json": {
|
|
2401
|
-
schema: End2EndApiResponseSchema
|
|
2402
|
-
}
|
|
2403
|
-
}
|
|
2404
|
-
}
|
|
2405
|
-
}
|
|
2406
|
-
});
|
|
2407
|
-
|
|
2408
|
-
// ../shared/dist/src/endpoints/companion/triggers.routes.js
|
|
2409
2375
|
var TriggerFlowBody = z5.object({
|
|
2410
2376
|
triggerId: z5.string(),
|
|
2411
2377
|
variables: z5.record(z5.string(), z5.string()),
|
|
@@ -3151,7 +3117,7 @@ var toSearchParams = ({ cursor, filters, sorting, limit }) => {
|
|
|
3151
3117
|
|
|
3152
3118
|
// package.json
|
|
3153
3119
|
var package_default = {
|
|
3154
|
-
version: "0.5.
|
|
3120
|
+
version: "0.5.3"};
|
|
3155
3121
|
var MageMetricsChatTransport = class extends DefaultChatTransport {
|
|
3156
3122
|
constructor(apiUrl, flowId, options) {
|
|
3157
3123
|
super({
|