@alpic-ai/api 1.105.0 → 1.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +10 -3
- package/dist/index.mjs +16 -15
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -787,6 +787,13 @@ declare const contract: {
|
|
|
787
787
|
targetUrl: z.ZodString;
|
|
788
788
|
teamId: z.ZodOptional<z.ZodString>;
|
|
789
789
|
projectId: z.ZodOptional<z.ZodString>;
|
|
790
|
+
excludeCategories: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
791
|
+
connectivity: "connectivity";
|
|
792
|
+
"tool-metadata": "tool-metadata";
|
|
793
|
+
"resource-metadata": "resource-metadata";
|
|
794
|
+
performance: "performance";
|
|
795
|
+
e2e: "e2e";
|
|
796
|
+
}>>>;
|
|
790
797
|
}, z.core.$strip>, z.ZodObject<{
|
|
791
798
|
id: z.ZodString;
|
|
792
799
|
}, z.core.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, {
|
|
@@ -796,7 +803,7 @@ declare const contract: {
|
|
|
796
803
|
};
|
|
797
804
|
get: {
|
|
798
805
|
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
799
|
-
|
|
806
|
+
auditId: z.ZodString;
|
|
800
807
|
}, z.core.$strip>, z.ZodObject<{
|
|
801
808
|
id: z.ZodString;
|
|
802
809
|
targetUrl: z.ZodString;
|
|
@@ -916,7 +923,7 @@ declare const transportSchema: z.ZodEnum<{
|
|
|
916
923
|
streamablehttp: "streamablehttp";
|
|
917
924
|
}>;
|
|
918
925
|
type Transport = z.infer<typeof transportSchema>;
|
|
919
|
-
declare const
|
|
926
|
+
declare const auditStatusSchema: z.ZodEnum<{
|
|
920
927
|
pending: "pending";
|
|
921
928
|
partial: "partial";
|
|
922
929
|
completed: "completed";
|
|
@@ -1095,4 +1102,4 @@ declare const serverFieldsSchema: z.ZodObject<{
|
|
|
1095
1102
|
}, z.core.$strip>>>;
|
|
1096
1103
|
}, z.core.$strip>;
|
|
1097
1104
|
//#endregion
|
|
1098
|
-
export { ApiContext, AuditReport, CheckCategory, CheckDetail, CheckResult, CheckScope, CheckSeverity, Platform, RouterInput, RouterOutput, Runtime, Transport,
|
|
1105
|
+
export { ApiContext, AuditReport, CheckCategory, CheckDetail, CheckResult, CheckScope, CheckSeverity, Platform, RouterInput, RouterOutput, Runtime, Transport, auditReportSchema, auditStatusSchema, buildSettingsSchema, checkCategorySchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|
package/dist/index.mjs
CHANGED
|
@@ -60,7 +60,7 @@ const transportSchema = z.enum([
|
|
|
60
60
|
"sse",
|
|
61
61
|
"streamablehttp"
|
|
62
62
|
]);
|
|
63
|
-
const
|
|
63
|
+
const auditStatusSchema = z.enum([
|
|
64
64
|
"pending",
|
|
65
65
|
"partial",
|
|
66
66
|
"completed",
|
|
@@ -642,31 +642,32 @@ const upsertPlaygroundContractV1 = oc.route({
|
|
|
642
642
|
examplePrompts: z.array(playgroundExamplePromptSchema).max(3).optional()
|
|
643
643
|
})).output(playgroundOutputSchema);
|
|
644
644
|
const createBeaconContractV1 = oc.route({
|
|
645
|
-
path: "/v1/beacon/
|
|
645
|
+
path: "/v1/beacon/audits",
|
|
646
646
|
method: "POST",
|
|
647
|
-
summary: "Create a beacon
|
|
648
|
-
description: "
|
|
647
|
+
summary: "Create a beacon audit",
|
|
648
|
+
description: "Audit an MCP server for spec compliance and AI client compatibility",
|
|
649
649
|
tags: ["beacon"],
|
|
650
|
-
successDescription: "The
|
|
650
|
+
successDescription: "The audit has been created"
|
|
651
651
|
}).errors({
|
|
652
652
|
NOT_FOUND: {},
|
|
653
653
|
BAD_REQUEST: {}
|
|
654
654
|
}).input(z.object({
|
|
655
|
-
targetUrl: z.string().url().describe("The HTTPS URL of the MCP server to
|
|
656
|
-
teamId: z.string().optional().describe("The team ID to associate the
|
|
657
|
-
projectId: z.string().optional().describe("The project ID to associate the
|
|
655
|
+
targetUrl: z.string().url().describe("The HTTPS URL of the MCP server to audit"),
|
|
656
|
+
teamId: z.string().optional().describe("The team ID to associate the audit with"),
|
|
657
|
+
projectId: z.string().optional().describe("The project ID to associate the audit with"),
|
|
658
|
+
excludeCategories: z.array(checkCategorySchema).optional().describe("Check categories to exclude from the audit")
|
|
658
659
|
})).output(z.object({ id: z.string() }));
|
|
659
660
|
const getBeaconContractV1 = oc.route({
|
|
660
|
-
path: "/v1/beacon/
|
|
661
|
+
path: "/v1/beacon/audits/{auditId}",
|
|
661
662
|
method: "GET",
|
|
662
|
-
summary: "Get a beacon
|
|
663
|
-
description: "Get a beacon
|
|
663
|
+
summary: "Get a beacon audit",
|
|
664
|
+
description: "Get a beacon audit by ID, including the report if completed",
|
|
664
665
|
tags: ["beacon"],
|
|
665
|
-
successDescription: "The
|
|
666
|
-
}).errors({ NOT_FOUND: {} }).input(z.object({
|
|
666
|
+
successDescription: "The audit details"
|
|
667
|
+
}).errors({ NOT_FOUND: {} }).input(z.object({ auditId: z.string().describe("The ID of the audit") })).output(z.object({
|
|
667
668
|
id: z.string(),
|
|
668
669
|
targetUrl: z.string(),
|
|
669
|
-
status:
|
|
670
|
+
status: auditStatusSchema,
|
|
670
671
|
durationMs: z.number().nullable(),
|
|
671
672
|
createdAt: z.coerce.date(),
|
|
672
673
|
report: auditReportSchema.nullable()
|
|
@@ -714,4 +715,4 @@ const contract = {
|
|
|
714
715
|
}
|
|
715
716
|
};
|
|
716
717
|
//#endregion
|
|
717
|
-
export {
|
|
718
|
+
export { auditReportSchema, auditStatusSchema, buildSettingsSchema, checkCategorySchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|