@alpic-ai/api 0.0.0-dev.gfbe773a → 0.0.0-dev.gfc6015a

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
@@ -448,6 +448,7 @@ declare const contract: {
448
448
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
449
449
  NOT_FOUND: {};
450
450
  BAD_REQUEST: {};
451
+ FORBIDDEN: {};
451
452
  }>, Record<never, never>>;
452
453
  };
453
454
  get: {
@@ -663,6 +664,7 @@ declare const contract: {
663
664
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
664
665
  NOT_FOUND: {};
665
666
  BAD_REQUEST: {};
667
+ FORBIDDEN: {};
666
668
  }>, Record<never, never>>;
667
669
  };
668
670
  delete: {
package/dist/index.mjs CHANGED
@@ -508,6 +508,10 @@ z.object({
508
508
  environments: z.array(environmentWithDomainsSchema),
509
509
  productionEnvironment: environmentWithDomainsSchema.nullable()
510
510
  });
511
+ const projectDomainMappingSchema = z.object({
512
+ pathPrefix: z.string(),
513
+ environment: environmentSchema$1
514
+ });
511
515
  z.object({
512
516
  domain: z.string(),
513
517
  createdAt: z.coerce.date(),
@@ -516,7 +520,7 @@ z.object({
516
520
  "deployed",
517
521
  "failed"
518
522
  ]),
519
- environment: environmentSchema$1
523
+ mappings: z.array(projectDomainMappingSchema)
520
524
  });
521
525
  const serverFieldsSchema$1 = z.object({
522
526
  $schema: z.string(),
@@ -1429,7 +1433,8 @@ const createProjectContractV1 = oc.route({
1429
1433
  successDescription: "The project has been created successfully"
1430
1434
  }).errors({
1431
1435
  NOT_FOUND: {},
1432
- BAD_REQUEST: {}
1436
+ BAD_REQUEST: {},
1437
+ FORBIDDEN: {}
1433
1438
  }).input(z.object({
1434
1439
  teamId: z.string().optional(),
1435
1440
  name: z.string().trim().min(1).max(100),
@@ -1535,7 +1540,8 @@ const updateProjectContractV1 = oc.route({
1535
1540
  successDescription: "The project has been updated successfully"
1536
1541
  }).errors({
1537
1542
  NOT_FOUND: {},
1538
- BAD_REQUEST: {}
1543
+ BAD_REQUEST: {},
1544
+ FORBIDDEN: {}
1539
1545
  }).input(z.object({
1540
1546
  projectId: z.string().describe("The ID of the project"),
1541
1547
  name: z.string().min(1).max(100).optional().describe("The new name for the project"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-dev.gfbe773a",
3
+ "version": "0.0.0-dev.gfc6015a",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -27,9 +27,9 @@
27
27
  "@total-typescript/tsconfig": "^1.0.4",
28
28
  "@types/ms": "^2.1.0",
29
29
  "shx": "^0.4.0",
30
- "tsdown": "^0.22.2",
30
+ "tsdown": "^0.22.3",
31
31
  "typescript": "^6.0.3",
32
- "vitest": "^4.1.8",
32
+ "vitest": "^4.1.9",
33
33
  "@alpic-ai/domains": "0.0.0"
34
34
  },
35
35
  "scripts": {