@alpic-ai/api 0.0.0-dev.gde9ffac → 0.0.0-dev.ge039463
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.d.mts +18 -13
- package/dist/index.mjs +19 -18
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -831,6 +831,9 @@ declare const contract: {
|
|
|
831
831
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
832
832
|
NOT_FOUND: {};
|
|
833
833
|
BAD_REQUEST: {};
|
|
834
|
+
DNS_RESOLUTION_FAILED: {
|
|
835
|
+
status: number;
|
|
836
|
+
};
|
|
834
837
|
}>, Record<never, never>>;
|
|
835
838
|
};
|
|
836
839
|
get: {
|
|
@@ -935,7 +938,22 @@ declare const platformSchema: z.ZodEnum<{
|
|
|
935
938
|
type Platform = z.infer<typeof platformSchema>;
|
|
936
939
|
declare const PLATFORM_LABELS: Record<Platform, string>;
|
|
937
940
|
//#endregion
|
|
941
|
+
//#region ../domains/src/projects/schemas.d.ts
|
|
942
|
+
declare const runtimeSchema: z.ZodEnum<{
|
|
943
|
+
"python3.13": "python3.13";
|
|
944
|
+
"python3.14": "python3.14";
|
|
945
|
+
node22: "node22";
|
|
946
|
+
node24: "node24";
|
|
947
|
+
}>;
|
|
948
|
+
declare const transportSchema: z.ZodEnum<{
|
|
949
|
+
stdio: "stdio";
|
|
950
|
+
sse: "sse";
|
|
951
|
+
streamablehttp: "streamablehttp";
|
|
952
|
+
}>;
|
|
953
|
+
//#endregion
|
|
938
954
|
//#region src/schemas.d.ts
|
|
955
|
+
type Runtime = z.infer<typeof runtimeSchema>;
|
|
956
|
+
type Transport = z.infer<typeof transportSchema>;
|
|
939
957
|
declare const environmentVariableSchema: z.ZodObject<{
|
|
940
958
|
key: z.ZodString;
|
|
941
959
|
value: z.ZodString;
|
|
@@ -957,19 +975,6 @@ declare const buildSettingsSchema: z.ZodObject<{
|
|
|
957
975
|
buildOutputDir: z.ZodOptional<z.ZodString>;
|
|
958
976
|
startCommand: z.ZodOptional<z.ZodString>;
|
|
959
977
|
}, z.core.$strip>;
|
|
960
|
-
declare const runtimeSchema: z.ZodEnum<{
|
|
961
|
-
"python3.13": "python3.13";
|
|
962
|
-
"python3.14": "python3.14";
|
|
963
|
-
node22: "node22";
|
|
964
|
-
node24: "node24";
|
|
965
|
-
}>;
|
|
966
|
-
type Runtime = z.infer<typeof runtimeSchema>;
|
|
967
|
-
declare const transportSchema: z.ZodEnum<{
|
|
968
|
-
stdio: "stdio";
|
|
969
|
-
sse: "sse";
|
|
970
|
-
streamablehttp: "streamablehttp";
|
|
971
|
-
}>;
|
|
972
|
-
type Transport = z.infer<typeof transportSchema>;
|
|
973
978
|
declare const playgroundHeaderSchema: z.ZodObject<{
|
|
974
979
|
name: z.ZodString;
|
|
975
980
|
description: z.ZodString;
|
package/dist/index.mjs
CHANGED
|
@@ -81,12 +81,6 @@ z.object({
|
|
|
81
81
|
timestamp: z.coerce.date().optional(),
|
|
82
82
|
content: z.string().optional()
|
|
83
83
|
});
|
|
84
|
-
z.enum([
|
|
85
|
-
"INFO",
|
|
86
|
-
"WARNING",
|
|
87
|
-
"DEBUG",
|
|
88
|
-
"ERROR"
|
|
89
|
-
]);
|
|
90
84
|
z.object({
|
|
91
85
|
id: z.string(),
|
|
92
86
|
createdAt: z.coerce.date(),
|
|
@@ -106,6 +100,23 @@ z.object({
|
|
|
106
100
|
createdAt: z.coerce.date(),
|
|
107
101
|
updatedAt: z.coerce.date()
|
|
108
102
|
});
|
|
103
|
+
z.enum([
|
|
104
|
+
"INFO",
|
|
105
|
+
"WARNING",
|
|
106
|
+
"DEBUG",
|
|
107
|
+
"ERROR"
|
|
108
|
+
]);
|
|
109
|
+
const runtimeSchema = z.enum([
|
|
110
|
+
"python3.13",
|
|
111
|
+
"python3.14",
|
|
112
|
+
"node22",
|
|
113
|
+
"node24"
|
|
114
|
+
]);
|
|
115
|
+
const transportSchema = z.enum([
|
|
116
|
+
"stdio",
|
|
117
|
+
"sse",
|
|
118
|
+
"streamablehttp"
|
|
119
|
+
]);
|
|
109
120
|
const toolDefinitionSchema = z.object({
|
|
110
121
|
name: z.string(),
|
|
111
122
|
title: z.string().optional().describe("Human-friendly name for the tool, used in the UI. If not provided, `name` will be used."),
|
|
@@ -470,17 +481,6 @@ const buildSettingsSchema = z.object({
|
|
|
470
481
|
buildOutputDir: z.string().optional(),
|
|
471
482
|
startCommand: z.string().optional()
|
|
472
483
|
});
|
|
473
|
-
const runtimeSchema = z.enum([
|
|
474
|
-
"python3.13",
|
|
475
|
-
"python3.14",
|
|
476
|
-
"node22",
|
|
477
|
-
"node24"
|
|
478
|
-
]);
|
|
479
|
-
const transportSchema = z.enum([
|
|
480
|
-
"stdio",
|
|
481
|
-
"sse",
|
|
482
|
-
"streamablehttp"
|
|
483
|
-
]);
|
|
484
484
|
const playgroundHeaderSchema = z.object({
|
|
485
485
|
name: z.string().min(1).max(100),
|
|
486
486
|
description: z.string().max(200),
|
|
@@ -1043,7 +1043,8 @@ const createBeaconContractV1 = oc.route({
|
|
|
1043
1043
|
successDescription: "The audit has been created"
|
|
1044
1044
|
}).errors({
|
|
1045
1045
|
NOT_FOUND: {},
|
|
1046
|
-
BAD_REQUEST: {}
|
|
1046
|
+
BAD_REQUEST: {},
|
|
1047
|
+
DNS_RESOLUTION_FAILED: { status: 400 }
|
|
1047
1048
|
}).input(z.object({
|
|
1048
1049
|
targetUrl: z.url().describe("The HTTPS URL of the MCP server to audit"),
|
|
1049
1050
|
teamId: z.string().optional().describe("The team ID to associate the audit with"),
|