@valbuild/shared 0.111.0 → 0.114.0

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.
@@ -870,36 +870,6 @@ export declare const Api: {
870
870
  }, z.core.$strip>]>;
871
871
  };
872
872
  };
873
- "/commit-summary": {
874
- GET: {
875
- req: {
876
- query: {
877
- patch_id: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
878
- };
879
- cookies: {
880
- val_session: z.ZodOptional<z.ZodString>;
881
- };
882
- };
883
- res: z.ZodUnion<readonly [z.ZodObject<{
884
- status: z.ZodLiteral<401>;
885
- json: z.ZodObject<{
886
- message: z.ZodString;
887
- }, z.core.$strip>;
888
- }, z.core.$strip>, z.ZodObject<{
889
- status: z.ZodLiteral<400>;
890
- json: z.ZodObject<{
891
- message: z.ZodString;
892
- }, z.core.$strip>;
893
- }, z.core.$strip>, z.ZodObject<{
894
- status: z.ZodLiteral<200>;
895
- json: z.ZodObject<{
896
- patchIds: z.ZodArray<z.ZodString & z.ZodType<import("@valbuild/core").PatchId, string, z.core.$ZodTypeInternals<import("@valbuild/core").PatchId, string>>>;
897
- baseSha: z.ZodString;
898
- commitSummary: z.ZodNullable<z.ZodString>;
899
- }, z.core.$strip>;
900
- }, z.core.$strip>]>;
901
- };
902
- };
903
873
  "/save": {
904
874
  POST: {
905
875
  req: {
@@ -1064,6 +1034,7 @@ export declare const Api: {
1064
1034
  json: z.ZodObject<{
1065
1035
  nonce: z.ZodString;
1066
1036
  wsUrl: z.ZodString;
1037
+ providers: z.ZodOptional<z.ZodArray<z.ZodString>>;
1067
1038
  }, z.core.$strip>;
1068
1039
  }, z.core.$strip>, z.ZodObject<{
1069
1040
  status: z.ZodLiteral<500>;
@@ -2018,31 +2018,6 @@ var Api = {
2018
2018
  })])
2019
2019
  }
2020
2020
  },
2021
- "/commit-summary": {
2022
- GET: {
2023
- req: {
2024
- query: {
2025
- patch_id: zod.z.array(PatchId)
2026
- },
2027
- cookies: {
2028
- val_session: zod.z.string().optional()
2029
- }
2030
- },
2031
- res: zod.z.union([unauthorizedResponse, zod.z.object({
2032
- status: zod.z.literal(400),
2033
- json: zod.z.object({
2034
- message: zod.z.string()
2035
- })
2036
- }), zod.z.object({
2037
- status: zod.z.literal(200),
2038
- json: zod.z.object({
2039
- patchIds: zod.z.array(PatchId),
2040
- baseSha: zod.z.string(),
2041
- commitSummary: zod.z.string().nullable()
2042
- })
2043
- })])
2044
- }
2045
- },
2046
2021
  "/save": {
2047
2022
  POST: {
2048
2023
  req: {
@@ -2214,7 +2189,21 @@ var Api = {
2214
2189
  status: zod.z.literal(200),
2215
2190
  json: zod.z.object({
2216
2191
  nonce: zod.z.string(),
2217
- wsUrl: zod.z.string()
2192
+ wsUrl: zod.z.string(),
2193
+ /**
2194
+ * The AI providers this project can actually reach.
2195
+ *
2196
+ * AI runs on a key the org or the user brought, so an org with only
2197
+ * an Anthropic key cannot use a GPT model — asking for one gets a
2198
+ * refusal. The client owns the model catalog and picks a model whose
2199
+ * provider is in here.
2200
+ *
2201
+ * `string[]` and not an enum on purpose: the content server may add
2202
+ * a provider before the Studio knows of it, and a strict enum would
2203
+ * reject the whole response over a name this version has not heard
2204
+ * of. Unknown entries are simply ignored.
2205
+ */
2206
+ providers: zod.z.array(zod.z.string()).optional()
2218
2207
  })
2219
2208
  }), zod.z.object({
2220
2209
  status: zod.z.literal(500),
@@ -2018,31 +2018,6 @@ var Api = {
2018
2018
  })])
2019
2019
  }
2020
2020
  },
2021
- "/commit-summary": {
2022
- GET: {
2023
- req: {
2024
- query: {
2025
- patch_id: zod.z.array(PatchId)
2026
- },
2027
- cookies: {
2028
- val_session: zod.z.string().optional()
2029
- }
2030
- },
2031
- res: zod.z.union([unauthorizedResponse, zod.z.object({
2032
- status: zod.z.literal(400),
2033
- json: zod.z.object({
2034
- message: zod.z.string()
2035
- })
2036
- }), zod.z.object({
2037
- status: zod.z.literal(200),
2038
- json: zod.z.object({
2039
- patchIds: zod.z.array(PatchId),
2040
- baseSha: zod.z.string(),
2041
- commitSummary: zod.z.string().nullable()
2042
- })
2043
- })])
2044
- }
2045
- },
2046
2021
  "/save": {
2047
2022
  POST: {
2048
2023
  req: {
@@ -2214,7 +2189,21 @@ var Api = {
2214
2189
  status: zod.z.literal(200),
2215
2190
  json: zod.z.object({
2216
2191
  nonce: zod.z.string(),
2217
- wsUrl: zod.z.string()
2192
+ wsUrl: zod.z.string(),
2193
+ /**
2194
+ * The AI providers this project can actually reach.
2195
+ *
2196
+ * AI runs on a key the org or the user brought, so an org with only
2197
+ * an Anthropic key cannot use a GPT model — asking for one gets a
2198
+ * refusal. The client owns the model catalog and picks a model whose
2199
+ * provider is in here.
2200
+ *
2201
+ * `string[]` and not an enum on purpose: the content server may add
2202
+ * a provider before the Studio knows of it, and a strict enum would
2203
+ * reject the whole response over a name this version has not heard
2204
+ * of. Unknown entries are simply ignored.
2205
+ */
2206
+ providers: zod.z.array(zod.z.string()).optional()
2218
2207
  })
2219
2208
  }), zod.z.object({
2220
2209
  status: zod.z.literal(500),
@@ -2014,31 +2014,6 @@ var Api = {
2014
2014
  })])
2015
2015
  }
2016
2016
  },
2017
- "/commit-summary": {
2018
- GET: {
2019
- req: {
2020
- query: {
2021
- patch_id: z.array(PatchId)
2022
- },
2023
- cookies: {
2024
- val_session: z.string().optional()
2025
- }
2026
- },
2027
- res: z.union([unauthorizedResponse, z.object({
2028
- status: z.literal(400),
2029
- json: z.object({
2030
- message: z.string()
2031
- })
2032
- }), z.object({
2033
- status: z.literal(200),
2034
- json: z.object({
2035
- patchIds: z.array(PatchId),
2036
- baseSha: z.string(),
2037
- commitSummary: z.string().nullable()
2038
- })
2039
- })])
2040
- }
2041
- },
2042
2017
  "/save": {
2043
2018
  POST: {
2044
2019
  req: {
@@ -2210,7 +2185,21 @@ var Api = {
2210
2185
  status: z.literal(200),
2211
2186
  json: z.object({
2212
2187
  nonce: z.string(),
2213
- wsUrl: z.string()
2188
+ wsUrl: z.string(),
2189
+ /**
2190
+ * The AI providers this project can actually reach.
2191
+ *
2192
+ * AI runs on a key the org or the user brought, so an org with only
2193
+ * an Anthropic key cannot use a GPT model — asking for one gets a
2194
+ * refusal. The client owns the model catalog and picks a model whose
2195
+ * provider is in here.
2196
+ *
2197
+ * `string[]` and not an enum on purpose: the content server may add
2198
+ * a provider before the Studio knows of it, and a strict enum would
2199
+ * reject the whole response over a name this version has not heard
2200
+ * of. Unknown entries are simply ignored.
2201
+ */
2202
+ providers: z.array(z.string()).optional()
2214
2203
  })
2215
2204
  }), z.object({
2216
2205
  status: z.literal(500),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@valbuild/shared",
3
- "version": "0.111.0",
3
+ "version": "0.114.0",
4
4
  "private": false,
5
5
  "description": "Val shared types and utilities",
6
6
  "repository": {