@oore/client 0.23.0 → 0.24.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/dist/generated/types.gen.d.ts +43 -0
- package/dist/generated/valibot/v-create-pipeline-body.d.ts +9 -0
- package/dist/generated/valibot/v-create-pipeline-request.d.ts +9 -0
- package/dist/generated/valibot/v-create-pipeline-request.js +2 -0
- package/dist/generated/valibot/v-create-pipeline-response.d.ts +9 -0
- package/dist/generated/valibot/v-create-pipeline-response2.d.ts +9 -0
- package/dist/generated/valibot/v-get-pipeline-response.d.ts +9 -0
- package/dist/generated/valibot/v-list-pipelines-response.d.ts +9 -0
- package/dist/generated/valibot/v-list-pipelines-response2.d.ts +9 -0
- package/dist/generated/valibot/v-pipeline-detail-response.d.ts +9 -0
- package/dist/generated/valibot/v-pipeline.d.ts +9 -0
- package/dist/generated/valibot/v-pipeline.js +2 -0
- package/dist/generated/valibot/v-size-budget-mode.d.ts +2 -0
- package/dist/generated/valibot/v-size-budget-mode.js +3 -0
- package/dist/generated/valibot/v-size-budget-rule.d.ts +7 -0
- package/dist/generated/valibot/v-size-budget-rule.js +16 -0
- package/dist/generated/valibot/v-size-budget.d.ts +10 -0
- package/dist/generated/valibot/v-size-budget.js +8 -0
- package/dist/generated/valibot/v-update-pipeline-body.d.ts +9 -0
- package/dist/generated/valibot/v-update-pipeline-request.d.ts +9 -0
- package/dist/generated/valibot/v-update-pipeline-request.js +2 -0
- package/dist/generated/valibot/v-update-pipeline-response.d.ts +9 -0
- package/dist/generated/valibot/v-validate-pipeline-body.d.ts +9 -0
- package/dist/generated/valibot/v-validate-pipeline-request.d.ts +9 -0
- package/dist/generated/valibot/v-validate-pipeline-request.js +2 -0
- package/dist/valibot.d.ts +3 -0
- package/dist/valibot.js +3 -0
- package/openapi/openapi.json +101 -0
- package/package.json +1 -1
|
@@ -690,6 +690,7 @@ export type CreatePipelineRequest = {
|
|
|
690
690
|
config_path_explicit?: boolean | null;
|
|
691
691
|
execution_config?: null | PipelineExecutionConfig;
|
|
692
692
|
name: string;
|
|
693
|
+
size_budget?: null | SizeBudget;
|
|
693
694
|
timeout_minutes?: number | null;
|
|
694
695
|
trigger_config?: null | TriggerConfig;
|
|
695
696
|
/**
|
|
@@ -1456,6 +1457,10 @@ export type Pipeline = {
|
|
|
1456
1457
|
id: string;
|
|
1457
1458
|
name: string;
|
|
1458
1459
|
project_id: string;
|
|
1460
|
+
/**
|
|
1461
|
+
* Artifact size limits the commit checks enforce.
|
|
1462
|
+
*/
|
|
1463
|
+
size_budget: SizeBudget;
|
|
1459
1464
|
/**
|
|
1460
1465
|
* Minutes a running build may take before it is marked `timed_out`.
|
|
1461
1466
|
*/
|
|
@@ -2397,6 +2402,42 @@ export type SetupTrustedProxyConfigureResponse = {
|
|
|
2397
2402
|
setup_owner_email?: string | null;
|
|
2398
2403
|
state: SetupState;
|
|
2399
2404
|
};
|
|
2405
|
+
/**
|
|
2406
|
+
* Artifact size limits a pipeline's commit checks enforce. Increase limits
|
|
2407
|
+
* compare with the same baseline as the build's size report; without a
|
|
2408
|
+
* baseline only `max_bytes` applies. Empty `rules` turns the budget off.
|
|
2409
|
+
*/
|
|
2410
|
+
export type SizeBudget = {
|
|
2411
|
+
mode: SizeBudgetMode;
|
|
2412
|
+
rules: Array<SizeBudgetRule>;
|
|
2413
|
+
};
|
|
2414
|
+
/**
|
|
2415
|
+
* What a pipeline's commit check does when an artifact is over its size
|
|
2416
|
+
* budget. The build itself never fails.
|
|
2417
|
+
*/
|
|
2418
|
+
export type SizeBudgetMode = 'warn' | 'fail';
|
|
2419
|
+
/**
|
|
2420
|
+
* Size limits for one kind of artifact. A rule needs at least one limit.
|
|
2421
|
+
*/
|
|
2422
|
+
export type SizeBudgetRule = {
|
|
2423
|
+
/**
|
|
2424
|
+
* The artifact kind: its lowercase file extension, such as `aab`,
|
|
2425
|
+
* `apk` or `ipa`.
|
|
2426
|
+
*/
|
|
2427
|
+
kind: string;
|
|
2428
|
+
/**
|
|
2429
|
+
* Largest size allowed, in bytes.
|
|
2430
|
+
*/
|
|
2431
|
+
max_bytes?: number | null;
|
|
2432
|
+
/**
|
|
2433
|
+
* Largest growth allowed compared with the baseline build, in bytes.
|
|
2434
|
+
*/
|
|
2435
|
+
max_increase_bytes?: number | null;
|
|
2436
|
+
/**
|
|
2437
|
+
* Largest growth allowed compared with the baseline build, in percent.
|
|
2438
|
+
*/
|
|
2439
|
+
max_increase_percent?: number | null;
|
|
2440
|
+
};
|
|
2400
2441
|
/**
|
|
2401
2442
|
* Maps a person to the Slack member mentioned in their notifications.
|
|
2402
2443
|
*/
|
|
@@ -2709,6 +2750,7 @@ export type UpdatePipelineRequest = {
|
|
|
2709
2750
|
enabled?: boolean | null;
|
|
2710
2751
|
execution_config?: null | PipelineExecutionConfig;
|
|
2711
2752
|
name?: string | null;
|
|
2753
|
+
size_budget?: null | SizeBudget;
|
|
2712
2754
|
timeout_minutes?: number | null;
|
|
2713
2755
|
trigger_config?: null | TriggerConfig;
|
|
2714
2756
|
/**
|
|
@@ -2816,6 +2858,7 @@ export type ValidatePipelineRequest = {
|
|
|
2816
2858
|
config_path_explicit?: boolean | null;
|
|
2817
2859
|
execution_config?: null | PipelineExecutionConfig;
|
|
2818
2860
|
repository_yaml?: string | null;
|
|
2861
|
+
size_budget?: null | SizeBudget;
|
|
2819
2862
|
timeout_minutes?: number | null;
|
|
2820
2863
|
trigger_config?: null | TriggerConfig;
|
|
2821
2864
|
/**
|
|
@@ -39,6 +39,15 @@ export declare const vCreatePipelineBody: v.ObjectSchema<{
|
|
|
39
39
|
readonly runs_on: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
40
40
|
}, undefined>, undefined>;
|
|
41
41
|
readonly name: v.StringSchema<undefined>;
|
|
42
|
+
readonly size_budget: v.NullishSchema<v.StrictObjectSchema<{
|
|
43
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
44
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly kind: v.StringSchema<undefined>;
|
|
46
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
47
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
48
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
}, undefined>, undefined>;
|
|
42
51
|
readonly timeout_minutes: v.NullishSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>, undefined>;
|
|
43
52
|
readonly trigger_config: v.NullishSchema<v.ObjectSchema<{
|
|
44
53
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -39,6 +39,15 @@ export declare const vCreatePipelineRequest: v.ObjectSchema<{
|
|
|
39
39
|
readonly runs_on: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
40
40
|
}, undefined>, undefined>;
|
|
41
41
|
readonly name: v.StringSchema<undefined>;
|
|
42
|
+
readonly size_budget: v.NullishSchema<v.StrictObjectSchema<{
|
|
43
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
44
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly kind: v.StringSchema<undefined>;
|
|
46
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
47
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
48
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
}, undefined>, undefined>;
|
|
42
51
|
readonly timeout_minutes: v.NullishSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>, undefined>;
|
|
43
52
|
readonly trigger_config: v.NullishSchema<v.ObjectSchema<{
|
|
44
53
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -3,6 +3,7 @@ import * as v from 'valibot';
|
|
|
3
3
|
import { vApprovalPolicy } from './v-approval-policy.js';
|
|
4
4
|
import { vConcurrencyPolicy } from './v-concurrency-policy.js';
|
|
5
5
|
import { vPipelineExecutionConfig } from './v-pipeline-execution-config.js';
|
|
6
|
+
import { vSizeBudget } from './v-size-budget.js';
|
|
6
7
|
import { vTriggerConfig } from './v-trigger-config.js';
|
|
7
8
|
export const vCreatePipelineRequest = v.object({
|
|
8
9
|
approval: v.nullish(vApprovalPolicy),
|
|
@@ -11,6 +12,7 @@ export const vCreatePipelineRequest = v.object({
|
|
|
11
12
|
config_path_explicit: v.nullish(v.boolean()),
|
|
12
13
|
execution_config: v.nullish(vPipelineExecutionConfig),
|
|
13
14
|
name: v.string(),
|
|
15
|
+
size_budget: v.nullish(vSizeBudget),
|
|
14
16
|
timeout_minutes: v.nullish(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(2147483647, 'Invalid value: Expected int32 to be <= 2147483647'))),
|
|
15
17
|
trigger_config: v.nullish(vTriggerConfig),
|
|
16
18
|
workflow: v.nullish(v.string())
|
|
@@ -44,6 +44,15 @@ export declare const vCreatePipelineResponse: v.ObjectSchema<{
|
|
|
44
44
|
readonly id: v.StringSchema<undefined>;
|
|
45
45
|
readonly name: v.StringSchema<undefined>;
|
|
46
46
|
readonly project_id: v.StringSchema<undefined>;
|
|
47
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
48
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
49
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly kind: v.StringSchema<undefined>;
|
|
51
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
52
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
53
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
47
56
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
48
57
|
readonly trigger_config: v.ObjectSchema<{
|
|
49
58
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -44,6 +44,15 @@ export declare const vCreatePipelineResponse2: v.ObjectSchema<{
|
|
|
44
44
|
readonly id: v.StringSchema<undefined>;
|
|
45
45
|
readonly name: v.StringSchema<undefined>;
|
|
46
46
|
readonly project_id: v.StringSchema<undefined>;
|
|
47
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
48
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
49
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly kind: v.StringSchema<undefined>;
|
|
51
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
52
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
53
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
47
56
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
48
57
|
readonly trigger_config: v.ObjectSchema<{
|
|
49
58
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -45,6 +45,15 @@ export declare const vGetPipelineResponse: v.ObjectSchema<{
|
|
|
45
45
|
readonly id: v.StringSchema<undefined>;
|
|
46
46
|
readonly name: v.StringSchema<undefined>;
|
|
47
47
|
readonly project_id: v.StringSchema<undefined>;
|
|
48
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
49
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
50
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
51
|
+
readonly kind: v.StringSchema<undefined>;
|
|
52
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
53
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
54
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
55
|
+
}, undefined>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
48
57
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
49
58
|
readonly trigger_config: v.ObjectSchema<{
|
|
50
59
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -44,6 +44,15 @@ export declare const vListPipelinesResponse: v.ObjectSchema<{
|
|
|
44
44
|
readonly id: v.StringSchema<undefined>;
|
|
45
45
|
readonly name: v.StringSchema<undefined>;
|
|
46
46
|
readonly project_id: v.StringSchema<undefined>;
|
|
47
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
48
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
49
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly kind: v.StringSchema<undefined>;
|
|
51
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
52
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
53
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
47
56
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
48
57
|
readonly trigger_config: v.ObjectSchema<{
|
|
49
58
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -44,6 +44,15 @@ export declare const vListPipelinesResponse2: v.ObjectSchema<{
|
|
|
44
44
|
readonly id: v.StringSchema<undefined>;
|
|
45
45
|
readonly name: v.StringSchema<undefined>;
|
|
46
46
|
readonly project_id: v.StringSchema<undefined>;
|
|
47
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
48
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
49
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly kind: v.StringSchema<undefined>;
|
|
51
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
52
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
53
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
47
56
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
48
57
|
readonly trigger_config: v.ObjectSchema<{
|
|
49
58
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -45,6 +45,15 @@ export declare const vPipelineDetailResponse: v.ObjectSchema<{
|
|
|
45
45
|
readonly id: v.StringSchema<undefined>;
|
|
46
46
|
readonly name: v.StringSchema<undefined>;
|
|
47
47
|
readonly project_id: v.StringSchema<undefined>;
|
|
48
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
49
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
50
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
51
|
+
readonly kind: v.StringSchema<undefined>;
|
|
52
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
53
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
54
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
55
|
+
}, undefined>, undefined>;
|
|
56
|
+
}, undefined>;
|
|
48
57
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
49
58
|
readonly trigger_config: v.ObjectSchema<{
|
|
50
59
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -43,6 +43,15 @@ export declare const vPipeline: v.ObjectSchema<{
|
|
|
43
43
|
readonly id: v.StringSchema<undefined>;
|
|
44
44
|
readonly name: v.StringSchema<undefined>;
|
|
45
45
|
readonly project_id: v.StringSchema<undefined>;
|
|
46
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
47
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
48
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
49
|
+
readonly kind: v.StringSchema<undefined>;
|
|
50
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
51
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
52
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
53
|
+
}, undefined>, undefined>;
|
|
54
|
+
}, undefined>;
|
|
46
55
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
47
56
|
readonly trigger_config: v.ObjectSchema<{
|
|
48
57
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -3,6 +3,7 @@ import * as v from 'valibot';
|
|
|
3
3
|
import { vApprovalPolicy } from './v-approval-policy.js';
|
|
4
4
|
import { vConcurrencyPolicy } from './v-concurrency-policy.js';
|
|
5
5
|
import { vPipelineExecutionConfig } from './v-pipeline-execution-config.js';
|
|
6
|
+
import { vSizeBudget } from './v-size-budget.js';
|
|
6
7
|
import { vTriggerConfig } from './v-trigger-config.js';
|
|
7
8
|
export const vPipeline = v.object({
|
|
8
9
|
approval: vApprovalPolicy,
|
|
@@ -19,6 +20,7 @@ export const vPipeline = v.object({
|
|
|
19
20
|
id: v.string(),
|
|
20
21
|
name: v.string(),
|
|
21
22
|
project_id: v.string(),
|
|
23
|
+
size_budget: vSizeBudget,
|
|
22
24
|
timeout_minutes: v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(2147483647, 'Invalid value: Expected int32 to be <= 2147483647')),
|
|
23
25
|
trigger_config: vTriggerConfig,
|
|
24
26
|
updated_at: v.pipe(v.union([
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vSizeBudgetRule: v.StrictObjectSchema<{
|
|
3
|
+
readonly kind: v.StringSchema<undefined>;
|
|
4
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
5
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
6
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
7
|
+
}, undefined>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export const vSizeBudgetRule = v.strictObject({
|
|
4
|
+
kind: v.string(),
|
|
5
|
+
max_bytes: v.nullish(v.pipe(v.union([
|
|
6
|
+
v.number(),
|
|
7
|
+
v.string(),
|
|
8
|
+
v.bigint()
|
|
9
|
+
]), v.transform(x => BigInt(x)), v.minValue(BigInt('-9223372036854775808'), 'Invalid value: Expected int64 to be >= -9223372036854775808'), v.maxValue(BigInt('9223372036854775807'), 'Invalid value: Expected int64 to be <= 9223372036854775807'))),
|
|
10
|
+
max_increase_bytes: v.nullish(v.pipe(v.union([
|
|
11
|
+
v.number(),
|
|
12
|
+
v.string(),
|
|
13
|
+
v.bigint()
|
|
14
|
+
]), v.transform(x => BigInt(x)), v.minValue(BigInt('-9223372036854775808'), 'Invalid value: Expected int64 to be >= -9223372036854775808'), v.maxValue(BigInt('9223372036854775807'), 'Invalid value: Expected int64 to be <= 9223372036854775807'))),
|
|
15
|
+
max_increase_percent: v.nullish(v.number())
|
|
16
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vSizeBudget: v.StrictObjectSchema<{
|
|
3
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
4
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
5
|
+
readonly kind: v.StringSchema<undefined>;
|
|
6
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
7
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
8
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
9
|
+
}, undefined>, undefined>;
|
|
10
|
+
}, undefined>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { vSizeBudgetMode } from './v-size-budget-mode.js';
|
|
4
|
+
import { vSizeBudgetRule } from './v-size-budget-rule.js';
|
|
5
|
+
export const vSizeBudget = v.strictObject({
|
|
6
|
+
mode: vSizeBudgetMode,
|
|
7
|
+
rules: v.array(vSizeBudgetRule)
|
|
8
|
+
});
|
|
@@ -40,6 +40,15 @@ export declare const vUpdatePipelineBody: v.ObjectSchema<{
|
|
|
40
40
|
readonly runs_on: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
41
41
|
}, undefined>, undefined>;
|
|
42
42
|
readonly name: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly size_budget: v.NullishSchema<v.StrictObjectSchema<{
|
|
44
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
45
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
46
|
+
readonly kind: v.StringSchema<undefined>;
|
|
47
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
48
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
49
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
50
|
+
}, undefined>, undefined>;
|
|
51
|
+
}, undefined>, undefined>;
|
|
43
52
|
readonly timeout_minutes: v.NullishSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>, undefined>;
|
|
44
53
|
readonly trigger_config: v.NullishSchema<v.ObjectSchema<{
|
|
45
54
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -40,6 +40,15 @@ export declare const vUpdatePipelineRequest: v.ObjectSchema<{
|
|
|
40
40
|
readonly runs_on: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
41
41
|
}, undefined>, undefined>;
|
|
42
42
|
readonly name: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
43
|
+
readonly size_budget: v.NullishSchema<v.StrictObjectSchema<{
|
|
44
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
45
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
46
|
+
readonly kind: v.StringSchema<undefined>;
|
|
47
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
48
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
49
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
50
|
+
}, undefined>, undefined>;
|
|
51
|
+
}, undefined>, undefined>;
|
|
43
52
|
readonly timeout_minutes: v.NullishSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>, undefined>;
|
|
44
53
|
readonly trigger_config: v.NullishSchema<v.ObjectSchema<{
|
|
45
54
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -3,6 +3,7 @@ import * as v from 'valibot';
|
|
|
3
3
|
import { vApprovalPolicy } from './v-approval-policy.js';
|
|
4
4
|
import { vConcurrencyPolicy } from './v-concurrency-policy.js';
|
|
5
5
|
import { vPipelineExecutionConfig } from './v-pipeline-execution-config.js';
|
|
6
|
+
import { vSizeBudget } from './v-size-budget.js';
|
|
6
7
|
import { vTriggerConfig } from './v-trigger-config.js';
|
|
7
8
|
export const vUpdatePipelineRequest = v.object({
|
|
8
9
|
approval: v.nullish(vApprovalPolicy),
|
|
@@ -12,6 +13,7 @@ export const vUpdatePipelineRequest = v.object({
|
|
|
12
13
|
enabled: v.nullish(v.boolean()),
|
|
13
14
|
execution_config: v.nullish(vPipelineExecutionConfig),
|
|
14
15
|
name: v.nullish(v.string()),
|
|
16
|
+
size_budget: v.nullish(vSizeBudget),
|
|
15
17
|
timeout_minutes: v.nullish(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(2147483647, 'Invalid value: Expected int32 to be <= 2147483647'))),
|
|
16
18
|
trigger_config: v.nullish(vTriggerConfig),
|
|
17
19
|
workflow: v.nullish(v.string())
|
|
@@ -44,6 +44,15 @@ export declare const vUpdatePipelineResponse: v.ObjectSchema<{
|
|
|
44
44
|
readonly id: v.StringSchema<undefined>;
|
|
45
45
|
readonly name: v.StringSchema<undefined>;
|
|
46
46
|
readonly project_id: v.StringSchema<undefined>;
|
|
47
|
+
readonly size_budget: v.StrictObjectSchema<{
|
|
48
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
49
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
50
|
+
readonly kind: v.StringSchema<undefined>;
|
|
51
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
52
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
53
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
54
|
+
}, undefined>, undefined>;
|
|
55
|
+
}, undefined>;
|
|
47
56
|
readonly timeout_minutes: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>;
|
|
48
57
|
readonly trigger_config: v.ObjectSchema<{
|
|
49
58
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -39,6 +39,15 @@ export declare const vValidatePipelineBody: v.ObjectSchema<{
|
|
|
39
39
|
readonly runs_on: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
40
40
|
}, undefined>, undefined>;
|
|
41
41
|
readonly repository_yaml: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly size_budget: v.NullishSchema<v.StrictObjectSchema<{
|
|
43
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
44
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly kind: v.StringSchema<undefined>;
|
|
46
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
47
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
48
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
}, undefined>, undefined>;
|
|
42
51
|
readonly timeout_minutes: v.NullishSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>, undefined>;
|
|
43
52
|
readonly trigger_config: v.NullishSchema<v.ObjectSchema<{
|
|
44
53
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -39,6 +39,15 @@ export declare const vValidatePipelineRequest: v.ObjectSchema<{
|
|
|
39
39
|
readonly runs_on: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
40
40
|
}, undefined>, undefined>;
|
|
41
41
|
readonly repository_yaml: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
readonly size_budget: v.NullishSchema<v.StrictObjectSchema<{
|
|
43
|
+
readonly mode: v.PicklistSchema<["warn", "fail"], undefined>;
|
|
44
|
+
readonly rules: v.ArraySchema<v.StrictObjectSchema<{
|
|
45
|
+
readonly kind: v.StringSchema<undefined>;
|
|
46
|
+
readonly max_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
47
|
+
readonly max_increase_bytes: v.NullishSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.NumberSchema<undefined>, v.StringSchema<undefined>, v.BigintSchema<undefined>], undefined>, v.TransformAction<string | number | bigint, bigint>, v.MinValueAction<bigint, bigint, "Invalid value: Expected int64 to be >= -9223372036854775808">, v.MaxValueAction<bigint, bigint, "Invalid value: Expected int64 to be <= 9223372036854775807">]>, undefined>;
|
|
48
|
+
readonly max_increase_percent: v.NullishSchema<v.NumberSchema<undefined>, undefined>;
|
|
49
|
+
}, undefined>, undefined>;
|
|
50
|
+
}, undefined>, undefined>;
|
|
42
51
|
readonly timeout_minutes: v.NullishSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, 2147483647, "Invalid value: Expected int32 to be <= 2147483647">]>, undefined>;
|
|
43
52
|
readonly trigger_config: v.NullishSchema<v.ObjectSchema<{
|
|
44
53
|
readonly branches: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -3,6 +3,7 @@ import * as v from 'valibot';
|
|
|
3
3
|
import { vApprovalPolicy } from './v-approval-policy.js';
|
|
4
4
|
import { vConcurrencyPolicy } from './v-concurrency-policy.js';
|
|
5
5
|
import { vPipelineExecutionConfig } from './v-pipeline-execution-config.js';
|
|
6
|
+
import { vSizeBudget } from './v-size-budget.js';
|
|
6
7
|
import { vTriggerConfig } from './v-trigger-config.js';
|
|
7
8
|
export const vValidatePipelineRequest = v.object({
|
|
8
9
|
approval: v.nullish(vApprovalPolicy),
|
|
@@ -11,6 +12,7 @@ export const vValidatePipelineRequest = v.object({
|
|
|
11
12
|
config_path_explicit: v.nullish(v.boolean()),
|
|
12
13
|
execution_config: v.nullish(vPipelineExecutionConfig),
|
|
13
14
|
repository_yaml: v.nullish(v.string()),
|
|
15
|
+
size_budget: v.nullish(vSizeBudget),
|
|
14
16
|
timeout_minutes: v.nullish(v.pipe(v.number(), v.integer(), v.minValue(0), v.maxValue(2147483647, 'Invalid value: Expected int32 to be <= 2147483647'))),
|
|
15
17
|
trigger_config: v.nullish(vTriggerConfig),
|
|
16
18
|
workflow: v.nullish(v.string())
|
package/dist/valibot.d.ts
CHANGED
|
@@ -261,6 +261,9 @@ export { vSetupSummaryResponse } from './generated/valibot/v-setup-summary-respo
|
|
|
261
261
|
export { vSetupTrustedProxyClaimOwnerResponse } from './generated/valibot/v-setup-trusted-proxy-claim-owner-response.js';
|
|
262
262
|
export { vSetupTrustedProxyConfigureRequest } from './generated/valibot/v-setup-trusted-proxy-configure-request.js';
|
|
263
263
|
export { vSetupTrustedProxyConfigureResponse } from './generated/valibot/v-setup-trusted-proxy-configure-response.js';
|
|
264
|
+
export { vSizeBudgetMode } from './generated/valibot/v-size-budget-mode.js';
|
|
265
|
+
export { vSizeBudgetRule } from './generated/valibot/v-size-budget-rule.js';
|
|
266
|
+
export { vSizeBudget } from './generated/valibot/v-size-budget.js';
|
|
264
267
|
export { vSlackMention } from './generated/valibot/v-slack-mention.js';
|
|
265
268
|
export { vSmtpTlsMode } from './generated/valibot/v-smtp-tls-mode.js';
|
|
266
269
|
export { vSmtpConfig } from './generated/valibot/v-smtp-config.js';
|
package/dist/valibot.js
CHANGED
|
@@ -262,6 +262,9 @@ export { vSetupSummaryResponse } from './generated/valibot/v-setup-summary-respo
|
|
|
262
262
|
export { vSetupTrustedProxyClaimOwnerResponse } from './generated/valibot/v-setup-trusted-proxy-claim-owner-response.js';
|
|
263
263
|
export { vSetupTrustedProxyConfigureRequest } from './generated/valibot/v-setup-trusted-proxy-configure-request.js';
|
|
264
264
|
export { vSetupTrustedProxyConfigureResponse } from './generated/valibot/v-setup-trusted-proxy-configure-response.js';
|
|
265
|
+
export { vSizeBudgetMode } from './generated/valibot/v-size-budget-mode.js';
|
|
266
|
+
export { vSizeBudgetRule } from './generated/valibot/v-size-budget-rule.js';
|
|
267
|
+
export { vSizeBudget } from './generated/valibot/v-size-budget.js';
|
|
265
268
|
export { vSlackMention } from './generated/valibot/v-slack-mention.js';
|
|
266
269
|
export { vSmtpTlsMode } from './generated/valibot/v-smtp-tls-mode.js';
|
|
267
270
|
export { vSmtpConfig } from './generated/valibot/v-smtp-config.js';
|
package/openapi/openapi.json
CHANGED
|
@@ -15396,6 +15396,16 @@
|
|
|
15396
15396
|
"name": {
|
|
15397
15397
|
"type": "string"
|
|
15398
15398
|
},
|
|
15399
|
+
"size_budget": {
|
|
15400
|
+
"oneOf": [
|
|
15401
|
+
{
|
|
15402
|
+
"type": "null"
|
|
15403
|
+
},
|
|
15404
|
+
{
|
|
15405
|
+
"$ref": "#/components/schemas/SizeBudget"
|
|
15406
|
+
}
|
|
15407
|
+
]
|
|
15408
|
+
},
|
|
15399
15409
|
"timeout_minutes": {
|
|
15400
15410
|
"type": [
|
|
15401
15411
|
"integer",
|
|
@@ -17971,6 +17981,7 @@
|
|
|
17971
17981
|
"concurrency",
|
|
17972
17982
|
"timeout_minutes",
|
|
17973
17983
|
"approval",
|
|
17984
|
+
"size_budget",
|
|
17974
17985
|
"enabled",
|
|
17975
17986
|
"created_at",
|
|
17976
17987
|
"updated_at"
|
|
@@ -18007,6 +18018,10 @@
|
|
|
18007
18018
|
"project_id": {
|
|
18008
18019
|
"type": "string"
|
|
18009
18020
|
},
|
|
18021
|
+
"size_budget": {
|
|
18022
|
+
"$ref": "#/components/schemas/SizeBudget",
|
|
18023
|
+
"description": "Artifact size limits the commit checks enforce."
|
|
18024
|
+
},
|
|
18010
18025
|
"timeout_minutes": {
|
|
18011
18026
|
"type": "integer",
|
|
18012
18027
|
"format": "int32",
|
|
@@ -21126,6 +21141,72 @@
|
|
|
21126
21141
|
}
|
|
21127
21142
|
}
|
|
21128
21143
|
},
|
|
21144
|
+
"SizeBudget": {
|
|
21145
|
+
"type": "object",
|
|
21146
|
+
"description": "Artifact size limits a pipeline's commit checks enforce. Increase limits\ncompare with the same baseline as the build's size report; without a\nbaseline only `max_bytes` applies. Empty `rules` turns the budget off.",
|
|
21147
|
+
"required": [
|
|
21148
|
+
"mode",
|
|
21149
|
+
"rules"
|
|
21150
|
+
],
|
|
21151
|
+
"properties": {
|
|
21152
|
+
"mode": {
|
|
21153
|
+
"$ref": "#/components/schemas/SizeBudgetMode"
|
|
21154
|
+
},
|
|
21155
|
+
"rules": {
|
|
21156
|
+
"type": "array",
|
|
21157
|
+
"items": {
|
|
21158
|
+
"$ref": "#/components/schemas/SizeBudgetRule"
|
|
21159
|
+
}
|
|
21160
|
+
}
|
|
21161
|
+
},
|
|
21162
|
+
"additionalProperties": false
|
|
21163
|
+
},
|
|
21164
|
+
"SizeBudgetMode": {
|
|
21165
|
+
"type": "string",
|
|
21166
|
+
"description": "What a pipeline's commit check does when an artifact is over its size\nbudget. The build itself never fails.",
|
|
21167
|
+
"enum": [
|
|
21168
|
+
"warn",
|
|
21169
|
+
"fail"
|
|
21170
|
+
]
|
|
21171
|
+
},
|
|
21172
|
+
"SizeBudgetRule": {
|
|
21173
|
+
"type": "object",
|
|
21174
|
+
"description": "Size limits for one kind of artifact. A rule needs at least one limit.",
|
|
21175
|
+
"required": [
|
|
21176
|
+
"kind"
|
|
21177
|
+
],
|
|
21178
|
+
"properties": {
|
|
21179
|
+
"kind": {
|
|
21180
|
+
"type": "string",
|
|
21181
|
+
"description": "The artifact kind: its lowercase file extension, such as `aab`,\n`apk` or `ipa`."
|
|
21182
|
+
},
|
|
21183
|
+
"max_bytes": {
|
|
21184
|
+
"type": [
|
|
21185
|
+
"integer",
|
|
21186
|
+
"null"
|
|
21187
|
+
],
|
|
21188
|
+
"format": "int64",
|
|
21189
|
+
"description": "Largest size allowed, in bytes."
|
|
21190
|
+
},
|
|
21191
|
+
"max_increase_bytes": {
|
|
21192
|
+
"type": [
|
|
21193
|
+
"integer",
|
|
21194
|
+
"null"
|
|
21195
|
+
],
|
|
21196
|
+
"format": "int64",
|
|
21197
|
+
"description": "Largest growth allowed compared with the baseline build, in bytes."
|
|
21198
|
+
},
|
|
21199
|
+
"max_increase_percent": {
|
|
21200
|
+
"type": [
|
|
21201
|
+
"number",
|
|
21202
|
+
"null"
|
|
21203
|
+
],
|
|
21204
|
+
"format": "double",
|
|
21205
|
+
"description": "Largest growth allowed compared with the baseline build, in percent."
|
|
21206
|
+
}
|
|
21207
|
+
},
|
|
21208
|
+
"additionalProperties": false
|
|
21209
|
+
},
|
|
21129
21210
|
"SlackMention": {
|
|
21130
21211
|
"type": "object",
|
|
21131
21212
|
"description": "Maps a person to the Slack member mentioned in their notifications.",
|
|
@@ -22158,6 +22239,16 @@
|
|
|
22158
22239
|
"null"
|
|
22159
22240
|
]
|
|
22160
22241
|
},
|
|
22242
|
+
"size_budget": {
|
|
22243
|
+
"oneOf": [
|
|
22244
|
+
{
|
|
22245
|
+
"type": "null"
|
|
22246
|
+
},
|
|
22247
|
+
{
|
|
22248
|
+
"$ref": "#/components/schemas/SizeBudget"
|
|
22249
|
+
}
|
|
22250
|
+
]
|
|
22251
|
+
},
|
|
22161
22252
|
"timeout_minutes": {
|
|
22162
22253
|
"type": [
|
|
22163
22254
|
"integer",
|
|
@@ -22666,6 +22757,16 @@
|
|
|
22666
22757
|
"null"
|
|
22667
22758
|
]
|
|
22668
22759
|
},
|
|
22760
|
+
"size_budget": {
|
|
22761
|
+
"oneOf": [
|
|
22762
|
+
{
|
|
22763
|
+
"type": "null"
|
|
22764
|
+
},
|
|
22765
|
+
{
|
|
22766
|
+
"$ref": "#/components/schemas/SizeBudget"
|
|
22767
|
+
}
|
|
22768
|
+
]
|
|
22769
|
+
},
|
|
22669
22770
|
"timeout_minutes": {
|
|
22670
22771
|
"type": [
|
|
22671
22772
|
"integer",
|