@alpic-ai/api 0.0.0-staging.dfd352e → 0.0.0-staging.e2caa7a

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 CHANGED
@@ -134,6 +134,7 @@ declare const contract: {
134
134
  authorAvatarUrl: z.ZodNullable<z.ZodString>;
135
135
  startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
136
136
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
137
+ deploymentPageUrl: z.ZodNullable<z.ZodURL>;
137
138
  }, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
138
139
  NOT_FOUND: {};
139
140
  }>, Record<never, never>>;
@@ -218,6 +219,7 @@ declare const contract: {
218
219
  authorAvatarUrl: z.ZodNullable<z.ZodString>;
219
220
  startedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
220
221
  completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
222
+ deploymentPageUrl: z.ZodNullable<z.ZodURL>;
221
223
  }, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
222
224
  NOT_FOUND: {};
223
225
  BAD_REQUEST: {};
@@ -228,6 +230,7 @@ declare const contract: {
228
230
  update: {
229
231
  v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
230
232
  projectId: z.ZodString;
233
+ name: z.ZodOptional<z.ZodString>;
231
234
  sourceRepository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
235
  }, z.core.$strip>, z.ZodObject<{
233
236
  id: z.ZodString;
package/dist/index.mjs CHANGED
@@ -82,6 +82,7 @@ const deploymentSchema = z.object({
82
82
  startedAt: z.coerce.date().nullable(),
83
83
  completedAt: z.coerce.date().nullable()
84
84
  });
85
+ const deploymentWithPageUrlSchema = deploymentSchema.extend({ deploymentPageUrl: z.url().nullable() });
85
86
  const createEnvironmentContractV1 = oc.route({
86
87
  path: "/v1/environments",
87
88
  method: "POST",
@@ -230,6 +231,7 @@ const updateProjectContractV1 = oc.route({
230
231
  BAD_REQUEST: {}
231
232
  }).input(z.object({
232
233
  projectId: z.string().describe("The ID of the project"),
234
+ name: z.string().min(1).max(100).optional().describe("The new name for the project"),
233
235
  sourceRepository: z.string().nullable().optional().describe("The source repository to connect to the project")
234
236
  })).output(projectOutputSchema);
235
237
  const deployEnvironmentContractV1 = oc.route({
@@ -245,7 +247,7 @@ const deployEnvironmentContractV1 = oc.route({
245
247
  }).input(z.object({
246
248
  environmentId: z.string().describe("The ID of the environment to deploy"),
247
249
  token: z.string().describe("The token to identify the source archive").optional()
248
- })).output(deploymentSchema);
250
+ })).output(deploymentWithPageUrlSchema);
249
251
  const uploadDeploymentArtifactContractV1 = oc.route({
250
252
  path: "/v1/deployments/upload",
251
253
  method: "POST",
@@ -276,7 +278,7 @@ const getDeploymentContractV1 = oc.route({
276
278
  description: "Get a deployment by ID",
277
279
  tags: ["deployments"],
278
280
  successDescription: "The deployment details"
279
- }).errors({ NOT_FOUND: {} }).input(z.object({ deploymentId: z.string().describe("The ID of the deployment") })).output(deploymentSchema);
281
+ }).errors({ NOT_FOUND: {} }).input(z.object({ deploymentId: z.string().describe("The ID of the deployment") })).output(deploymentWithPageUrlSchema);
280
282
  const getDeploymentLogsContractV1 = oc.route({
281
283
  path: "/v1/deployments/{deploymentId}/logs",
282
284
  method: "GET",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.dfd352e",
3
+ "version": "0.0.0-staging.e2caa7a",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -17,12 +17,11 @@
17
17
  "author": "Alpic",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@orpc/contract": "^1.13.4",
20
+ "@orpc/contract": "^1.13.5",
21
21
  "zod": "^4.3.6"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@total-typescript/tsconfig": "^1.0.4",
25
- "biome": "^0.3.3",
26
25
  "shx": "^0.4.0",
27
26
  "tsdown": "^0.20.3",
28
27
  "typescript": "^5.9.3",