@alpic-ai/api 0.0.0-dev.gd8fe3e4 → 0.0.0-dev.gd908bf7
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 +1 -0
- package/dist/index.mjs +30 -17
- package/package.json +6 -6
package/dist/index.d.mts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1582,21 +1582,6 @@ const getDeploymentContractV1 = oc.route({
|
|
|
1582
1582
|
tags: ["deployments"],
|
|
1583
1583
|
successDescription: "The deployment details"
|
|
1584
1584
|
}).errors({ NOT_FOUND: {} }).input(z.object({ deploymentId: z.string().describe("The ID of the deployment") })).output(deploymentSchema);
|
|
1585
|
-
const logEntrySchema = z.object({
|
|
1586
|
-
timestamp: z.coerce.date(),
|
|
1587
|
-
type: z.enum([
|
|
1588
|
-
"START",
|
|
1589
|
-
"END",
|
|
1590
|
-
"INFO",
|
|
1591
|
-
"ERROR",
|
|
1592
|
-
"WARNING",
|
|
1593
|
-
"DEBUG"
|
|
1594
|
-
]),
|
|
1595
|
-
requestId: z.string(),
|
|
1596
|
-
content: z.string().optional(),
|
|
1597
|
-
method: z.string().optional(),
|
|
1598
|
-
durationInMs: z.number().optional()
|
|
1599
|
-
});
|
|
1600
1585
|
const getLogsContractV1 = oc.route({
|
|
1601
1586
|
path: "/v1/environments/{environmentId}/logs",
|
|
1602
1587
|
method: "GET",
|
|
@@ -1621,7 +1606,21 @@ const getLogsContractV1 = oc.route({
|
|
|
1621
1606
|
search: z.string().optional().describe("Filter pattern to search for in log content"),
|
|
1622
1607
|
nextToken: z.string().optional().describe("Pagination token from a previous response")
|
|
1623
1608
|
})).output(z.object({
|
|
1624
|
-
logs: z.array(
|
|
1609
|
+
logs: z.array(z.object({
|
|
1610
|
+
timestamp: z.coerce.date(),
|
|
1611
|
+
type: z.enum([
|
|
1612
|
+
"START",
|
|
1613
|
+
"END",
|
|
1614
|
+
"INFO",
|
|
1615
|
+
"ERROR",
|
|
1616
|
+
"WARNING",
|
|
1617
|
+
"DEBUG"
|
|
1618
|
+
]),
|
|
1619
|
+
requestId: z.string(),
|
|
1620
|
+
content: z.string().optional(),
|
|
1621
|
+
method: z.string().optional(),
|
|
1622
|
+
durationInMs: z.number().optional()
|
|
1623
|
+
})),
|
|
1625
1624
|
nextToken: z.string().nullable()
|
|
1626
1625
|
}));
|
|
1627
1626
|
const getLatestLogsContractV1 = oc.route({
|
|
@@ -1644,7 +1643,21 @@ const getLatestLogsContractV1 = oc.route({
|
|
|
1644
1643
|
"DEBUG"
|
|
1645
1644
|
])).optional().describe("Filter by log level"),
|
|
1646
1645
|
search: z.string().optional().describe("Filter pattern to search for in log content")
|
|
1647
|
-
})).output(z.object({ logs: z.array(
|
|
1646
|
+
})).output(z.object({ logs: z.array(z.object({
|
|
1647
|
+
timestamp: z.coerce.date(),
|
|
1648
|
+
type: z.enum([
|
|
1649
|
+
"START",
|
|
1650
|
+
"END",
|
|
1651
|
+
"INFO",
|
|
1652
|
+
"ERROR",
|
|
1653
|
+
"WARNING",
|
|
1654
|
+
"DEBUG"
|
|
1655
|
+
]),
|
|
1656
|
+
requestId: z.string(),
|
|
1657
|
+
content: z.string().optional(),
|
|
1658
|
+
method: z.string().optional(),
|
|
1659
|
+
durationInMs: z.number().optional()
|
|
1660
|
+
})) }));
|
|
1648
1661
|
const getDeploymentLogsContractV1 = oc.route({
|
|
1649
1662
|
path: "/v1/deployments/{deploymentId}/logs",
|
|
1650
1663
|
method: "GET",
|
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.gd908bf7",
|
|
4
4
|
"description": "Contract for the Alpic API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -33,19 +33,19 @@
|
|
|
33
33
|
"author": "Alpic",
|
|
34
34
|
"license": "ISC",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@orpc/contract": "^1.14.
|
|
36
|
+
"@orpc/contract": "^1.14.6",
|
|
37
37
|
"ms": "^2.1.3",
|
|
38
38
|
"zod": "^4.4.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@orpc/openapi": "^1.14.
|
|
42
|
-
"@orpc/zod": "^1.14.
|
|
41
|
+
"@orpc/openapi": "^1.14.6",
|
|
42
|
+
"@orpc/zod": "^1.14.6",
|
|
43
43
|
"@total-typescript/tsconfig": "^1.0.4",
|
|
44
44
|
"@types/ms": "^2.1.0",
|
|
45
45
|
"shx": "^0.4.0",
|
|
46
|
-
"tsdown": "^0.22.
|
|
46
|
+
"tsdown": "^0.22.3",
|
|
47
47
|
"typescript": "^6.0.3",
|
|
48
|
-
"vitest": "^4.1.
|
|
48
|
+
"vitest": "^4.1.9",
|
|
49
49
|
"@alpic-ai/domains": "0.0.0"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|