@alpic-ai/api 0.0.0-dev.f71377d → 0.0.0-dev.f858b20
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.mjs +15 -19
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { oc } from "@orpc/contract";
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
|
|
4
3
|
//#region src/schemas.ts
|
|
5
4
|
const RESERVED_KEYS = [
|
|
6
5
|
"_HANDLER",
|
|
@@ -59,7 +58,6 @@ const transportSchema = z.enum([
|
|
|
59
58
|
"sse",
|
|
60
59
|
"streamablehttp"
|
|
61
60
|
]);
|
|
62
|
-
|
|
63
61
|
//#endregion
|
|
64
62
|
//#region src/api.contract.ts
|
|
65
63
|
const deploymentStatusSchema = z.enum([
|
|
@@ -345,22 +343,21 @@ const getProjectAnalyticsContractV1 = oc.route({
|
|
|
345
343
|
}),
|
|
346
344
|
timeSeries: analyticsTimeSeriesSchema
|
|
347
345
|
}));
|
|
348
|
-
const listTeamsContractV1 = oc.route({
|
|
349
|
-
path: "/v1/teams",
|
|
350
|
-
method: "GET",
|
|
351
|
-
summary: "List teams",
|
|
352
|
-
description: "List all teams for the authenticated user",
|
|
353
|
-
tags: ["teams"],
|
|
354
|
-
successDescription: "The list of teams"
|
|
355
|
-
}).output(z.array(z.object({
|
|
356
|
-
id: z.string(),
|
|
357
|
-
name: z.string(),
|
|
358
|
-
createdAt: z.coerce.date(),
|
|
359
|
-
hasStripeAccount: z.boolean(),
|
|
360
|
-
hasActiveSubscription: z.boolean()
|
|
361
|
-
})));
|
|
362
346
|
const contract = {
|
|
363
|
-
teams: { list: { v1:
|
|
347
|
+
teams: { list: { v1: oc.route({
|
|
348
|
+
path: "/v1/teams",
|
|
349
|
+
method: "GET",
|
|
350
|
+
summary: "List teams",
|
|
351
|
+
description: "List all teams for the authenticated user",
|
|
352
|
+
tags: ["teams"],
|
|
353
|
+
successDescription: "The list of teams"
|
|
354
|
+
}).output(z.array(z.object({
|
|
355
|
+
id: z.string(),
|
|
356
|
+
name: z.string(),
|
|
357
|
+
createdAt: z.coerce.date(),
|
|
358
|
+
hasStripeAccount: z.boolean(),
|
|
359
|
+
hasActiveSubscription: z.boolean()
|
|
360
|
+
}))) } },
|
|
364
361
|
analytics: { get: { v1: getProjectAnalyticsContractV1 } },
|
|
365
362
|
deployments: {
|
|
366
363
|
list: { v1: listProjectDeploymentsContractV1 },
|
|
@@ -381,6 +378,5 @@ const contract = {
|
|
|
381
378
|
delete: { v1: deleteProjectContractV1 }
|
|
382
379
|
}
|
|
383
380
|
};
|
|
384
|
-
|
|
385
381
|
//#endregion
|
|
386
|
-
export { buildSettingsSchema, contract, createEnvironmentContractV1, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, transportSchema };
|
|
382
|
+
export { buildSettingsSchema, contract, createEnvironmentContractV1, environmentVariableSchema, environmentVariablesSchema, runtimeSchema, transportSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alpic-ai/api",
|
|
3
|
-
"version": "0.0.0-dev.
|
|
3
|
+
"version": "0.0.0-dev.f858b20",
|
|
4
4
|
"description": "Contract for the Alpic API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
25
25
|
"shx": "^0.4.0",
|
|
26
|
-
"tsdown": "^0.
|
|
26
|
+
"tsdown": "^0.21.0",
|
|
27
27
|
"typescript": "^5.9.3",
|
|
28
28
|
"vitest": "^4.0.18"
|
|
29
29
|
},
|