@alpic-ai/api 0.0.0-staging.05b006d → 0.0.0-staging.05f123d

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
@@ -5,7 +5,7 @@ import { z } from "zod";
5
5
  //#region src/api.contract.d.ts
6
6
  type ApiContext = {
7
7
  request: Request & {
8
- teamId: string;
8
+ teamIds: string[];
9
9
  };
10
10
  };
11
11
  declare const createEnvironmentContractV1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -53,7 +53,9 @@ declare const contract: {
53
53
  }>, Record<never, never>>;
54
54
  };
55
55
  uploadArtifact: {
56
- v1: _orpc_contract0.ContractProcedureBuilderWithOutput<_orpc_contract0.Schema<unknown, unknown>, z.ZodObject<{
56
+ v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
57
+ teamId: z.ZodOptional<z.ZodString>;
58
+ }, z.core.$strip>>, z.ZodObject<{
57
59
  uploadUrl: z.ZodString;
58
60
  token: z.ZodString;
59
61
  expiresAt: z.ZodCoercedDate<unknown>;
@@ -254,6 +256,7 @@ declare const contract: {
254
256
  };
255
257
  create: {
256
258
  v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
259
+ teamId: z.ZodOptional<z.ZodString>;
257
260
  name: z.ZodString;
258
261
  sourceRepository: z.ZodOptional<z.ZodString>;
259
262
  branchName: z.ZodOptional<z.ZodString>;
package/dist/index.mjs CHANGED
@@ -179,6 +179,7 @@ const createProjectContractV1 = oc.route({
179
179
  NOT_FOUND: {},
180
180
  BAD_REQUEST: {}
181
181
  }).input(z.object({
182
+ teamId: z.string().optional(),
182
183
  name: z.string().min(1).max(100),
183
184
  sourceRepository: z.string().optional(),
184
185
  branchName: z.string().min(1).optional(),
@@ -230,7 +231,7 @@ const uploadDeploymentArtifactContractV1 = oc.route({
230
231
  description: "Return a presigned S3 URL to upload a deployment artifact",
231
232
  tags: ["deployments"],
232
233
  successDescription: "The presigned upload URL has been generated successfully"
233
- }).output(z.object({
234
+ }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.object({
234
235
  uploadUrl: z.string().url().describe("Presigned S3 URL to upload the source archive with HTTP PUT"),
235
236
  token: z.string().describe("Token to identify the source archive"),
236
237
  expiresAt: z.coerce.date().describe("Expiration date of the presigned URL")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.05b006d",
3
+ "version": "0.0.0-staging.05f123d",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",