@alpic-ai/api 0.0.0-staging.8a3c77a → 0.0.0-staging.8ef93b7

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
@@ -6,6 +6,7 @@ import { z } from "zod";
6
6
  type ApiContext = {
7
7
  request: Request & {
8
8
  teamIds: string[];
9
+ defaultTeamId: string | undefined;
9
10
  };
10
11
  };
11
12
  declare const createEnvironmentContractV1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodObject<{
@@ -363,7 +364,9 @@ declare const contract: {
363
364
  }>, Record<never, never>>;
364
365
  };
365
366
  list: {
366
- v1: _orpc_contract0.ContractProcedureBuilderWithOutput<_orpc_contract0.Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
367
+ v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
368
+ teamId: z.ZodOptional<z.ZodString>;
369
+ }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
367
370
  id: z.ZodString;
368
371
  name: z.ZodString;
369
372
  teamId: z.ZodString;
package/dist/index.mjs CHANGED
@@ -13,7 +13,11 @@ const RESERVED_KEYS = [
13
13
  "AWS_LAMBDA_FUNCTION_VERSION",
14
14
  "AWS_LAMBDA_INITIALIZATION_TYPE",
15
15
  "AWS_LAMBDA_LOG_GROUP_NAME",
16
+ "AWS_LAMBDA_LOG_STREAM_NAME",
16
17
  "AWS_ACCESS_KEY",
18
+ "AWS_ACCESS_KEY_ID",
19
+ "AWS_SECRET_ACCESS_KEY",
20
+ "AWS_SESSION_TOKEN",
17
21
  "AWS_LAMBDA_RUNTIME_API",
18
22
  "LAMBDA_TASK_ROOT",
19
23
  "LAMBDA_RUNTIME_DIR",
@@ -168,7 +172,7 @@ const listProjectsContractV1 = oc.route({
168
172
  description: "List all projects for a team",
169
173
  tags: ["projects"],
170
174
  successDescription: "The list of projects"
171
- }).output(z.array(projectOutputSchema));
175
+ }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
172
176
  const createProjectContractV1 = oc.route({
173
177
  path: "/v1/projects",
174
178
  method: "POST",
@@ -181,7 +185,7 @@ const createProjectContractV1 = oc.route({
181
185
  BAD_REQUEST: {}
182
186
  }).input(z.object({
183
187
  teamId: z.string().optional(),
184
- name: z.string().min(1).max(100),
188
+ name: z.string().trim().min(1).max(100),
185
189
  sourceRepository: z.string().optional(),
186
190
  branchName: z.string().min(1).optional(),
187
191
  runtime: runtimeSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-staging.8a3c77a",
3
+ "version": "0.0.0-staging.8ef93b7",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -22,7 +22,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",