@alpic-ai/api 0.0.0-staging.d9dbe27 → 0.0.0-staging.dd7df19
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 +4 -1
- package/dist/index.mjs +6 -2
- package/package.json +1 -1
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.
|
|
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,
|