@alpic-ai/api 0.0.0-staging.fd93e94 → 0.0.0-staging.fdc7ec4
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 +3 -3
- package/dist/index.mjs +16 -16
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -803,7 +803,7 @@ declare const contract: {
|
|
|
803
803
|
};
|
|
804
804
|
get: {
|
|
805
805
|
v1: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
806
|
-
|
|
806
|
+
auditId: z.ZodString;
|
|
807
807
|
}, z.core.$strip>, z.ZodObject<{
|
|
808
808
|
id: z.ZodString;
|
|
809
809
|
targetUrl: z.ZodString;
|
|
@@ -923,7 +923,7 @@ declare const transportSchema: z.ZodEnum<{
|
|
|
923
923
|
streamablehttp: "streamablehttp";
|
|
924
924
|
}>;
|
|
925
925
|
type Transport = z.infer<typeof transportSchema>;
|
|
926
|
-
declare const
|
|
926
|
+
declare const auditStatusSchema: z.ZodEnum<{
|
|
927
927
|
pending: "pending";
|
|
928
928
|
partial: "partial";
|
|
929
929
|
completed: "completed";
|
|
@@ -1102,4 +1102,4 @@ declare const serverFieldsSchema: z.ZodObject<{
|
|
|
1102
1102
|
}, z.core.$strip>>>;
|
|
1103
1103
|
}, z.core.$strip>;
|
|
1104
1104
|
//#endregion
|
|
1105
|
-
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,32 +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
|
|
658
|
-
excludeCategories: z.array(checkCategorySchema).optional().describe("Check categories to exclude from 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")
|
|
659
659
|
})).output(z.object({ id: z.string() }));
|
|
660
660
|
const getBeaconContractV1 = oc.route({
|
|
661
|
-
path: "/v1/beacon/
|
|
661
|
+
path: "/v1/beacon/audits/{auditId}",
|
|
662
662
|
method: "GET",
|
|
663
|
-
summary: "Get a beacon
|
|
664
|
-
description: "Get a beacon
|
|
663
|
+
summary: "Get a beacon audit",
|
|
664
|
+
description: "Get a beacon audit by ID, including the report if completed",
|
|
665
665
|
tags: ["beacon"],
|
|
666
|
-
successDescription: "The
|
|
667
|
-
}).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({
|
|
668
668
|
id: z.string(),
|
|
669
669
|
targetUrl: z.string(),
|
|
670
|
-
status:
|
|
670
|
+
status: auditStatusSchema,
|
|
671
671
|
durationMs: z.number().nullable(),
|
|
672
672
|
createdAt: z.coerce.date(),
|
|
673
673
|
report: auditReportSchema.nullable()
|
|
@@ -715,4 +715,4 @@ const contract = {
|
|
|
715
715
|
}
|
|
716
716
|
};
|
|
717
717
|
//#endregion
|
|
718
|
-
export {
|
|
718
|
+
export { auditReportSchema, auditStatusSchema, buildSettingsSchema, checkCategorySchema, checkDetailSchema, checkResultSchema, contract, createEnvironmentContractV1, deploymentStatusSchema, environmentVariableSchema, environmentVariablesSchema, platformSchema, playgroundExamplePromptSchema, playgroundHeaderSchema, runtimeSchema, serverFieldsSchema, transportSchema };
|