@alpic-ai/api 1.154.0 → 1.154.1

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.
Files changed (2) hide show
  1. package/dist/index.mjs +17 -30
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -1582,6 +1582,21 @@ 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
+ });
1585
1600
  const getLogsContractV1 = oc.route({
1586
1601
  path: "/v1/environments/{environmentId}/logs",
1587
1602
  method: "GET",
@@ -1606,21 +1621,7 @@ const getLogsContractV1 = oc.route({
1606
1621
  search: z.string().optional().describe("Filter pattern to search for in log content"),
1607
1622
  nextToken: z.string().optional().describe("Pagination token from a previous response")
1608
1623
  })).output(z.object({
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
- })),
1624
+ logs: z.array(logEntrySchema),
1624
1625
  nextToken: z.string().nullable()
1625
1626
  }));
1626
1627
  const getLatestLogsContractV1 = oc.route({
@@ -1643,21 +1644,7 @@ const getLatestLogsContractV1 = oc.route({
1643
1644
  "DEBUG"
1644
1645
  ])).optional().describe("Filter by log level"),
1645
1646
  search: z.string().optional().describe("Filter pattern to search for in log content")
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
- })) }));
1647
+ })).output(z.object({ logs: z.array(logEntrySchema) }));
1661
1648
  const getDeploymentLogsContractV1 = oc.route({
1662
1649
  path: "/v1/deployments/{deploymentId}/logs",
1663
1650
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "1.154.0",
3
+ "version": "1.154.1",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",