@alpic-ai/api 0.0.0-dev.fe3e667 → 0.0.0-dev.fe4d24a

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<{
@@ -258,6 +259,15 @@ declare const contract: {
258
259
  id: z.ZodString;
259
260
  name: z.ZodString;
260
261
  mcpServerUrl: z.ZodString;
262
+ domains: z.ZodArray<z.ZodObject<{
263
+ domain: z.ZodString;
264
+ status: z.ZodEnum<{
265
+ ongoing: "ongoing";
266
+ deployed: "deployed";
267
+ failed: "failed";
268
+ }>;
269
+ createdAt: z.ZodCoercedDate<unknown>;
270
+ }, z.core.$strip>>;
261
271
  latestDeployment: z.ZodNullable<z.ZodObject<{
262
272
  id: z.ZodString;
263
273
  status: z.ZodEnum<{
@@ -325,6 +335,15 @@ declare const contract: {
325
335
  id: z.ZodString;
326
336
  name: z.ZodString;
327
337
  mcpServerUrl: z.ZodString;
338
+ domains: z.ZodArray<z.ZodObject<{
339
+ domain: z.ZodString;
340
+ status: z.ZodEnum<{
341
+ ongoing: "ongoing";
342
+ deployed: "deployed";
343
+ failed: "failed";
344
+ }>;
345
+ createdAt: z.ZodCoercedDate<unknown>;
346
+ }, z.core.$strip>>;
328
347
  latestDeployment: z.ZodNullable<z.ZodObject<{
329
348
  id: z.ZodString;
330
349
  status: z.ZodEnum<{
@@ -363,7 +382,9 @@ declare const contract: {
363
382
  }>, Record<never, never>>;
364
383
  };
365
384
  list: {
366
- v1: _orpc_contract0.ContractProcedureBuilderWithOutput<_orpc_contract0.Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
385
+ v1: _orpc_contract0.ContractProcedureBuilderWithInputOutput<z.ZodOptional<z.ZodObject<{
386
+ teamId: z.ZodOptional<z.ZodString>;
387
+ }, z.core.$strip>>, z.ZodArray<z.ZodObject<{
367
388
  id: z.ZodString;
368
389
  name: z.ZodString;
369
390
  teamId: z.ZodString;
@@ -389,6 +410,15 @@ declare const contract: {
389
410
  id: z.ZodString;
390
411
  name: z.ZodString;
391
412
  mcpServerUrl: z.ZodString;
413
+ domains: z.ZodArray<z.ZodObject<{
414
+ domain: z.ZodString;
415
+ status: z.ZodEnum<{
416
+ ongoing: "ongoing";
417
+ deployed: "deployed";
418
+ failed: "failed";
419
+ }>;
420
+ createdAt: z.ZodCoercedDate<unknown>;
421
+ }, z.core.$strip>>;
392
422
  latestDeployment: z.ZodNullable<z.ZodObject<{
393
423
  id: z.ZodString;
394
424
  status: z.ZodEnum<{
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",
@@ -122,10 +126,20 @@ const getEnvironmentContractV1 = oc.route({
122
126
  createdAt: z.coerce.date(),
123
127
  projectId: z.string()
124
128
  }));
129
+ const domainSchema = z.object({
130
+ domain: z.string(),
131
+ status: z.enum([
132
+ "ongoing",
133
+ "deployed",
134
+ "failed"
135
+ ]),
136
+ createdAt: z.coerce.date()
137
+ });
125
138
  const productionEnvironmentSchema = z.object({
126
139
  id: z.string(),
127
140
  name: z.string(),
128
141
  mcpServerUrl: z.string(),
142
+ domains: z.array(domainSchema),
129
143
  latestDeployment: latestDeploymentSchema.nullable()
130
144
  });
131
145
  const environmentSchema = z.object({
@@ -168,7 +182,7 @@ const listProjectsContractV1 = oc.route({
168
182
  description: "List all projects for a team",
169
183
  tags: ["projects"],
170
184
  successDescription: "The list of projects"
171
- }).output(z.array(projectOutputSchema));
185
+ }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
172
186
  const createProjectContractV1 = oc.route({
173
187
  path: "/v1/projects",
174
188
  method: "POST",
@@ -181,7 +195,7 @@ const createProjectContractV1 = oc.route({
181
195
  BAD_REQUEST: {}
182
196
  }).input(z.object({
183
197
  teamId: z.string().optional(),
184
- name: z.string().min(1).max(100),
198
+ name: z.string().trim().min(1).max(100),
185
199
  sourceRepository: z.string().optional(),
186
200
  branchName: z.string().min(1).optional(),
187
201
  runtime: runtimeSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "0.0.0-dev.fe3e667",
3
+ "version": "0.0.0-dev.fe4d24a",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -17,7 +17,7 @@
17
17
  "author": "Alpic",
18
18
  "license": "ISC",
19
19
  "dependencies": {
20
- "@orpc/contract": "^1.13.5",
20
+ "@orpc/contract": "^1.13.6",
21
21
  "zod": "^4.3.6"
22
22
  },
23
23
  "devDependencies": {