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

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
@@ -485,6 +485,15 @@ declare const contract: {
485
485
  BAD_REQUEST: {};
486
486
  }>, Record<never, never>>;
487
487
  };
488
+ delete: {
489
+ v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
490
+ projectId: z.ZodString;
491
+ }, z.core.$strip>, z.ZodObject<{
492
+ success: z.ZodLiteral<true>;
493
+ }, z.core.$strip>, _orpc_contract0.MergedErrorMap<Record<never, never>, {
494
+ NOT_FOUND: {};
495
+ }>, Record<never, never>>;
496
+ };
488
497
  };
489
498
  };
490
499
  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",
@@ -353,7 +361,8 @@ const contract = {
353
361
  update: { v1: updateProjectContractV1 },
354
362
  get: { v1: getProjectContractV1 },
355
363
  list: { v1: listProjectsContractV1 },
356
- create: { v1: createProjectContractV1 }
364
+ create: { v1: createProjectContractV1 },
365
+ delete: { v1: deleteProjectContractV1 }
357
366
  }
358
367
  };
359
368
 
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.23c994d",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",