@alpic-ai/api 1.91.5 → 1.91.6

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
@@ -168,7 +168,7 @@ const listProjectsContractV1 = oc.route({
168
168
  description: "List all projects for a team",
169
169
  tags: ["projects"],
170
170
  successDescription: "The list of projects"
171
- }).output(z.array(projectOutputSchema));
171
+ }).input(z.object({ teamId: z.string().optional() }).optional()).output(z.array(projectOutputSchema));
172
172
  const createProjectContractV1 = oc.route({
173
173
  path: "/v1/projects",
174
174
  method: "POST",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alpic-ai/api",
3
- "version": "1.91.5",
3
+ "version": "1.91.6",
4
4
  "description": "Contract for the Alpic API",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",