@alpic-ai/api 0.0.0-staging.22149cf → 0.0.0-staging.2317413

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
@@ -228,6 +228,7 @@ declare const contract: {
228
228
  update: {
229
229
  v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
230
230
  projectId: z.ZodString;
231
+ name: z.ZodOptional<z.ZodString>;
231
232
  sourceRepository: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
233
  }, z.core.$strip>, z.ZodObject<{
233
234
  id: z.ZodString;
@@ -485,6 +486,15 @@ declare const contract: {
485
486
  BAD_REQUEST: {};
486
487
  }>, Record<never, never>>;
487
488
  };
489
+ delete: {
490
+ v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
491
+ projectId: z.ZodString;
492
+ }, z.core.$strip>, z.ZodObject<{
493
+ success: z.ZodLiteral<true>;
494
+ }, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
495
+ NOT_FOUND: {};
496
+ }>, Record<never, never>>;
497
+ };
488
498
  };
489
499
  };
490
500
  type RouterInput = InferContractRouterInputs<typeof contract>;
package/dist/index.mjs CHANGED
@@ -210,6 +210,14 @@ const createProjectContractV1 = oc.route({
210
210
  startCommand: z.string().nullable(),
211
211
  createdAt: z.coerce.date()
212
212
  }));
213
+ const deleteProjectContractV1 = oc.route({
214
+ path: "/v1/projects/:projectId",
215
+ method: "DELETE",
216
+ summary: "Delete a project",
217
+ description: "Delete a project and all its environments",
218
+ tags: ["projects"],
219
+ successDescription: "The project has been deleted successfully"
220
+ }).errors({ NOT_FOUND: {} }).input(z.object({ projectId: z.string().describe("The ID of the project") })).output(z.object({ success: z.literal(true) }));
213
221
  const updateProjectContractV1 = oc.route({
214
222
  path: "/v1/projects/{projectId}",
215
223
  method: "PATCH",
@@ -222,6 +230,7 @@ const updateProjectContractV1 = oc.route({
222
230
  BAD_REQUEST: {}
223
231
  }).input(z.object({
224
232
  projectId: z.string().describe("The ID of the project"),
233
+ name: z.string().min(1).max(100).optional().describe("The new name for the project"),
225
234
  sourceRepository: z.string().nullable().optional().describe("The source repository to connect to the project")
226
235
  })).output(projectOutputSchema);
227
236
  const deployEnvironmentContractV1 = oc.route({
@@ -353,7 +362,8 @@ const contract = {
353
362
  update: { v1: updateProjectContractV1 },
354
363
  get: { v1: getProjectContractV1 },
355
364
  list: { v1: listProjectsContractV1 },
356
- create: { v1: createProjectContractV1 }
365
+ create: { v1: createProjectContractV1 },
366
+ delete: { v1: deleteProjectContractV1 }
357
367
  }
358
368
  };
359
369
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.22149cf",
3
+ "version": "0.0.0-staging.2317413",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",