@alpic-ai/api 0.0.0-dev.gcf3ff4f → 0.0.0-dev.gd42bc7e
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 -0
- package/dist/index.mjs +24 -7
- 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: {
|
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,12 @@ 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
109
|
const runtimeSchema = z.enum([
|
|
110
110
|
"python3.13",
|
|
111
111
|
"python3.14",
|
|
@@ -427,6 +427,22 @@ const subscriptionPlanSchema = z.enum([
|
|
|
427
427
|
"enterprise"
|
|
428
428
|
]);
|
|
429
429
|
z.object({ plan: subscriptionPlanSchema.nullable() });
|
|
430
|
+
const customerCreditsSchema = z.object({
|
|
431
|
+
balanceInCents: z.number(),
|
|
432
|
+
expiresAt: z.number().nullable(),
|
|
433
|
+
currency: z.string()
|
|
434
|
+
});
|
|
435
|
+
const customerUsageSchema = z.object({
|
|
436
|
+
amountInCents: z.number(),
|
|
437
|
+
currency: z.string(),
|
|
438
|
+
periodEnd: z.number()
|
|
439
|
+
});
|
|
440
|
+
const partnerDiscountSchema = z.object({ endsAt: z.number() });
|
|
441
|
+
z.object({
|
|
442
|
+
customerCredits: customerCreditsSchema.nullable(),
|
|
443
|
+
customerUsage: customerUsageSchema.nullable(),
|
|
444
|
+
partnerDiscount: partnerDiscountSchema.nullable()
|
|
445
|
+
});
|
|
430
446
|
//#endregion
|
|
431
447
|
//#region src/schemas.ts
|
|
432
448
|
const RESERVED_KEYS = [
|
|
@@ -1043,7 +1059,8 @@ const createBeaconContractV1 = oc.route({
|
|
|
1043
1059
|
successDescription: "The audit has been created"
|
|
1044
1060
|
}).errors({
|
|
1045
1061
|
NOT_FOUND: {},
|
|
1046
|
-
BAD_REQUEST: {}
|
|
1062
|
+
BAD_REQUEST: {},
|
|
1063
|
+
DNS_RESOLUTION_FAILED: { status: 400 }
|
|
1047
1064
|
}).input(z.object({
|
|
1048
1065
|
targetUrl: z.url().describe("The HTTPS URL of the MCP server to audit"),
|
|
1049
1066
|
teamId: z.string().optional().describe("The team ID to associate the audit with"),
|