@code-pushup/models 0.8.25 → 0.9.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.
package/index.js CHANGED
@@ -451,7 +451,8 @@ var uploadConfigSchema = z10.object({
451
451
  description: "API key with write access to portal (use `process.env` for security)"
452
452
  }),
453
453
  organization: slugSchema("Organization slug from Code PushUp portal"),
454
- project: slugSchema("Project slug from Code PushUp portal")
454
+ project: slugSchema("Project slug from Code PushUp portal"),
455
+ timeout: z10.number({ description: "Request timeout in minutes (default is 5)" }).positive().int().optional()
455
456
  });
456
457
 
457
458
  // packages/models/src/lib/core-config.ts
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@code-pushup/models",
3
- "version": "0.8.25",
3
+ "version": "0.9.0",
4
4
  "dependencies": {
5
5
  "zod": "^3.22.1",
6
- "@code-pushup/portal-client": "^0.3.0"
6
+ "@code-pushup/portal-client": "^0.4.0"
7
7
  },
8
8
  "license": "MIT",
9
9
  "homepage": "https://github.com/code-pushup/cli#readme",
@@ -1707,16 +1707,19 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
1707
1707
  apiKey: z.ZodString;
1708
1708
  organization: z.ZodString;
1709
1709
  project: z.ZodString;
1710
+ timeout: z.ZodOptional<z.ZodNumber>;
1710
1711
  }, "strip", z.ZodTypeAny, {
1711
1712
  server: string;
1712
1713
  apiKey: string;
1713
1714
  organization: string;
1714
1715
  project: string;
1716
+ timeout?: number | undefined;
1715
1717
  }, {
1716
1718
  server: string;
1717
1719
  apiKey: string;
1718
1720
  organization: string;
1719
1721
  project: string;
1722
+ timeout?: number | undefined;
1720
1723
  }>>;
1721
1724
  categories: z.ZodEffects<z.ZodArray<z.ZodObject<{
1722
1725
  slug: z.ZodString;
@@ -2029,6 +2032,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
2029
2032
  apiKey: string;
2030
2033
  organization: string;
2031
2034
  project: string;
2035
+ timeout?: number | undefined;
2032
2036
  } | undefined;
2033
2037
  }, {
2034
2038
  categories: {
@@ -2250,6 +2254,7 @@ export declare const unrefinedCoreConfigSchema: z.ZodObject<{
2250
2254
  apiKey: string;
2251
2255
  organization: string;
2252
2256
  project: string;
2257
+ timeout?: number | undefined;
2253
2258
  } | undefined;
2254
2259
  }>;
2255
2260
  export declare const coreConfigSchema: z.ZodObject<{
@@ -3960,16 +3965,19 @@ export declare const coreConfigSchema: z.ZodObject<{
3960
3965
  apiKey: z.ZodString;
3961
3966
  organization: z.ZodString;
3962
3967
  project: z.ZodString;
3968
+ timeout: z.ZodOptional<z.ZodNumber>;
3963
3969
  }, "strip", z.ZodTypeAny, {
3964
3970
  server: string;
3965
3971
  apiKey: string;
3966
3972
  organization: string;
3967
3973
  project: string;
3974
+ timeout?: number | undefined;
3968
3975
  }, {
3969
3976
  server: string;
3970
3977
  apiKey: string;
3971
3978
  organization: string;
3972
3979
  project: string;
3980
+ timeout?: number | undefined;
3973
3981
  }>>;
3974
3982
  categories: z.ZodEffects<z.ZodArray<z.ZodObject<{
3975
3983
  slug: z.ZodString;
@@ -4282,6 +4290,7 @@ export declare const coreConfigSchema: z.ZodObject<{
4282
4290
  apiKey: string;
4283
4291
  organization: string;
4284
4292
  project: string;
4293
+ timeout?: number | undefined;
4285
4294
  } | undefined;
4286
4295
  }, {
4287
4296
  categories: {
@@ -4503,6 +4512,7 @@ export declare const coreConfigSchema: z.ZodObject<{
4503
4512
  apiKey: string;
4504
4513
  organization: string;
4505
4514
  project: string;
4515
+ timeout?: number | undefined;
4506
4516
  } | undefined;
4507
4517
  }>;
4508
4518
  /**
@@ -6218,16 +6228,19 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
6218
6228
  apiKey: z.ZodString;
6219
6229
  organization: z.ZodString;
6220
6230
  project: z.ZodString;
6231
+ timeout: z.ZodOptional<z.ZodNumber>;
6221
6232
  }, "strip", z.ZodTypeAny, {
6222
6233
  server: string;
6223
6234
  apiKey: string;
6224
6235
  organization: string;
6225
6236
  project: string;
6237
+ timeout?: number | undefined;
6226
6238
  }, {
6227
6239
  server: string;
6228
6240
  apiKey: string;
6229
6241
  organization: string;
6230
6242
  project: string;
6243
+ timeout?: number | undefined;
6231
6244
  }>>;
6232
6245
  categories: z.ZodEffects<z.ZodArray<z.ZodObject<{
6233
6246
  slug: z.ZodString;
@@ -6540,6 +6553,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
6540
6553
  apiKey: string;
6541
6554
  organization: string;
6542
6555
  project: string;
6556
+ timeout?: number | undefined;
6543
6557
  } | undefined;
6544
6558
  }, {
6545
6559
  categories: {
@@ -6761,6 +6775,7 @@ export declare function refineCoreConfig(schema: typeof unrefinedCoreConfigSchem
6761
6775
  apiKey: string;
6762
6776
  organization: string;
6763
6777
  project: string;
6778
+ timeout?: number | undefined;
6764
6779
  } | undefined;
6765
6780
  }>;
6766
6781
  export type CoreConfig = z.infer<typeof unrefinedCoreConfigSchema>;
@@ -4,15 +4,18 @@ export declare const uploadConfigSchema: z.ZodObject<{
4
4
  apiKey: z.ZodString;
5
5
  organization: z.ZodString;
6
6
  project: z.ZodString;
7
+ timeout: z.ZodOptional<z.ZodNumber>;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  server: string;
9
10
  apiKey: string;
10
11
  organization: string;
11
12
  project: string;
13
+ timeout?: number | undefined;
12
14
  }, {
13
15
  server: string;
14
16
  apiKey: string;
15
17
  organization: string;
16
18
  project: string;
19
+ timeout?: number | undefined;
17
20
  }>;
18
21
  export type UploadConfig = z.infer<typeof uploadConfigSchema>;