@oore/client 0.25.0 → 0.27.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/@tanstack/react-query.gen.d.ts +60 -5
- package/dist/generated/@tanstack/react-query.gen.js +57 -5
- package/dist/generated/msw.gen.d.ts +30 -1
- package/dist/generated/msw.gen.js +46 -0
- package/dist/generated/sdk.gen.d.ts +19 -3
- package/dist/generated/sdk.gen.js +32 -2
- package/dist/generated/types.gen.d.ts +203 -4
- package/dist/generated/valibot/v-analyzer-counts.d.ts +6 -0
- package/dist/generated/valibot/v-analyzer-counts.js +19 -0
- package/dist/generated/valibot/v-analyzer-diagnostic.d.ts +9 -0
- package/dist/generated/valibot/v-analyzer-diagnostic.js +19 -0
- package/dist/generated/valibot/v-analyzer-severity.d.ts +2 -0
- package/dist/generated/valibot/v-analyzer-severity.js +7 -0
- package/dist/generated/valibot/v-approver-role.d.ts +2 -0
- package/dist/generated/valibot/v-approver-role.js +3 -0
- package/dist/generated/valibot/v-build-analysis-baseline.d.ts +11 -0
- package/dist/generated/valibot/v-build-analysis-baseline.js +13 -0
- package/dist/generated/valibot/v-build-analysis-response.d.ts +30 -0
- package/dist/generated/valibot/v-build-analysis-response.js +9 -0
- package/dist/generated/valibot/v-build-analysis.d.ts +17 -0
- package/dist/generated/valibot/v-build-analysis.js +13 -0
- package/dist/generated/valibot/v-create-project-environment-body.d.ts +4 -0
- package/dist/generated/valibot/v-create-project-environment-request.d.ts +4 -0
- package/dist/generated/valibot/v-create-project-environment-request.js +2 -0
- package/dist/generated/valibot/v-create-project-environment-response.d.ts +7 -0
- package/dist/generated/valibot/v-environment-approver.d.ts +5 -0
- package/dist/generated/valibot/v-environment-approver.js +6 -0
- package/dist/generated/valibot/v-environment-approvers-input.d.ts +5 -0
- package/dist/generated/valibot/v-environment-approvers-input.js +7 -0
- package/dist/generated/valibot/v-environment-approvers.d.ts +8 -0
- package/dist/generated/valibot/v-environment-approvers.js +8 -0
- package/dist/generated/valibot/v-get-build-analysis-path.d.ts +4 -0
- package/dist/generated/valibot/v-get-build-analysis-path.js +5 -0
- package/dist/generated/valibot/v-get-build-analysis-response.d.ts +30 -0
- package/dist/generated/valibot/v-get-build-analysis-response.js +3 -0
- package/dist/generated/valibot/v-list-project-environments-response.d.ts +7 -0
- package/dist/generated/valibot/v-list-project-environments-response2.d.ts +7 -0
- package/dist/generated/valibot/v-project-environment.d.ts +7 -0
- package/dist/generated/valibot/v-project-environment.js +2 -0
- package/dist/generated/valibot/v-report-job-analysis-body.d.ts +16 -0
- package/dist/generated/valibot/v-report-job-analysis-body.js +3 -0
- package/dist/generated/valibot/v-report-job-analysis-path.d.ts +5 -0
- package/dist/generated/valibot/v-report-job-analysis-path.js +6 -0
- package/dist/generated/valibot/v-report-job-analysis-response.d.ts +4 -0
- package/dist/generated/valibot/v-report-job-analysis-response.js +3 -0
- package/dist/generated/valibot/v-runner-analyzer-report.d.ts +16 -0
- package/dist/generated/valibot/v-runner-analyzer-report.js +8 -0
- package/dist/generated/valibot/v-target-size-budget.d.ts +14 -0
- package/dist/generated/valibot/v-target-size-budget.js +9 -0
- package/dist/generated/valibot/v-update-job-status-body.d.ts +13 -0
- package/dist/generated/valibot/v-update-job-status-request.d.ts +13 -0
- package/dist/generated/valibot/v-update-job-status-request.js +2 -0
- package/dist/generated/valibot/v-update-project-environment-body.d.ts +4 -0
- package/dist/generated/valibot/v-update-project-environment-request.d.ts +4 -0
- package/dist/generated/valibot/v-update-project-environment-request.js +2 -0
- package/dist/generated/valibot/v-update-project-environment-response.d.ts +7 -0
- package/dist/msw.d.ts +2 -2
- package/dist/msw.js +1 -1
- package/dist/react-query.d.ts +1 -1
- package/dist/react-query.js +1 -1
- package/dist/valibot.d.ts +17 -0
- package/dist/valibot.js +17 -0
- package/openapi/openapi.json +443 -5
- package/package.json +1 -1
|
@@ -406,6 +406,19 @@ export const getBuild = (options) => options.client.get({
|
|
|
406
406
|
url: '/v1/builds/{build_id}',
|
|
407
407
|
...options
|
|
408
408
|
});
|
|
409
|
+
/**
|
|
410
|
+
* Get the build's analyzer summary
|
|
411
|
+
*
|
|
412
|
+
* Returns the `dart analyze` counts and most severe diagnostics of a
|
|
413
|
+
* build, with the baseline build on the base branch it compares with.
|
|
414
|
+
* `analysis` is `null` when the build reported none.
|
|
415
|
+
*/
|
|
416
|
+
export const getBuildAnalysis = (options) => options.client.get({
|
|
417
|
+
responseStyle: 'data',
|
|
418
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
419
|
+
url: '/v1/builds/{build_id}/analysis',
|
|
420
|
+
...options
|
|
421
|
+
});
|
|
409
422
|
/**
|
|
410
423
|
* Approve build
|
|
411
424
|
*
|
|
@@ -1442,7 +1455,7 @@ export const promoteBuild = (options) => options.client.post({
|
|
|
1442
1455
|
/**
|
|
1443
1456
|
* Approve promotion
|
|
1444
1457
|
*
|
|
1445
|
-
* Approves a pending promotion and makes the store change as the approver. Requires the maintainer
|
|
1458
|
+
* Approves a pending promotion and makes the store change as the approver. Requires one of the environment's approvers (by default any maintainer). API tokens cannot decide promotions. Writes an audit log entry.
|
|
1446
1459
|
*/
|
|
1447
1460
|
export const approvePromotion = (options) => options.client.post({
|
|
1448
1461
|
responseStyle: 'data',
|
|
@@ -1457,7 +1470,7 @@ export const approvePromotion = (options) => options.client.post({
|
|
|
1457
1470
|
/**
|
|
1458
1471
|
* Reject promotion
|
|
1459
1472
|
*
|
|
1460
|
-
* Rejects a pending promotion; nothing changes at the store. Requires the maintainer
|
|
1473
|
+
* Rejects a pending promotion; nothing changes at the store. Requires one of the environment's approvers (by default any maintainer). API tokens cannot decide promotions. Writes an audit log entry.
|
|
1461
1474
|
*/
|
|
1462
1475
|
export const rejectPromotion = (options) => options.client.post({
|
|
1463
1476
|
responseStyle: 'data',
|
|
@@ -1827,6 +1840,23 @@ export const getJobStatus = (options) => options.client.get({
|
|
|
1827
1840
|
url: '/v1/runners/{runner_id}/jobs/{job_id}',
|
|
1828
1841
|
...options
|
|
1829
1842
|
});
|
|
1843
|
+
/**
|
|
1844
|
+
* Report the analyzer summary
|
|
1845
|
+
*
|
|
1846
|
+
* Runner reports the `dart analyze --format=json` summary of a build. A
|
|
1847
|
+
* later report replaces an earlier one. Only accepted while the build
|
|
1848
|
+
* runs.
|
|
1849
|
+
*/
|
|
1850
|
+
export const reportJobAnalysis = (options) => options.client.post({
|
|
1851
|
+
responseStyle: 'data',
|
|
1852
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
1853
|
+
url: '/v1/runners/{runner_id}/jobs/{job_id}/analysis',
|
|
1854
|
+
...options,
|
|
1855
|
+
headers: {
|
|
1856
|
+
'Content-Type': 'application/json',
|
|
1857
|
+
...options.headers
|
|
1858
|
+
}
|
|
1859
|
+
});
|
|
1830
1860
|
/**
|
|
1831
1861
|
* Get job-scoped Android signing material
|
|
1832
1862
|
*
|
|
@@ -8,6 +8,35 @@ export type AddProjectMemberRequest = {
|
|
|
8
8
|
export type AddProjectMemberResponse = {
|
|
9
9
|
member: ProjectMember;
|
|
10
10
|
};
|
|
11
|
+
/**
|
|
12
|
+
* Diagnostics counted by severity.
|
|
13
|
+
*/
|
|
14
|
+
export type AnalyzerCounts = {
|
|
15
|
+
errors: number;
|
|
16
|
+
infos: number;
|
|
17
|
+
warnings: number;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* One `dart analyze` diagnostic.
|
|
21
|
+
*/
|
|
22
|
+
export type AnalyzerDiagnostic = {
|
|
23
|
+
/**
|
|
24
|
+
* The diagnostic code, such as `unused_import`.
|
|
25
|
+
*/
|
|
26
|
+
code: string;
|
|
27
|
+
column: number;
|
|
28
|
+
/**
|
|
29
|
+
* Path relative to the build workspace, such as `lib/main.dart`.
|
|
30
|
+
*/
|
|
31
|
+
file: string;
|
|
32
|
+
line: number;
|
|
33
|
+
message: string;
|
|
34
|
+
severity: AnalyzerSeverity;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Severity of a `dart analyze` diagnostic.
|
|
38
|
+
*/
|
|
39
|
+
export type AnalyzerSeverity = 'error' | 'warning' | 'info';
|
|
11
40
|
export type AndroidSigningBuildType = 'debug' | 'release';
|
|
12
41
|
export type AndroidSigningProfile = {
|
|
13
42
|
build_type: AndroidSigningBuildType;
|
|
@@ -128,6 +157,10 @@ export type ApprovalPolicy = {
|
|
|
128
157
|
expires_after_hours?: number | null;
|
|
129
158
|
required: boolean;
|
|
130
159
|
};
|
|
160
|
+
/**
|
|
161
|
+
* The lowest project role that may approve promotions into an environment.
|
|
162
|
+
*/
|
|
163
|
+
export type ApproverRole = 'maintainer' | 'developer';
|
|
131
164
|
export type Artifact = {
|
|
132
165
|
artifact_type: ArtifactType;
|
|
133
166
|
build_id: string;
|
|
@@ -271,6 +304,36 @@ export type Build = {
|
|
|
271
304
|
trigger_type: TriggerType;
|
|
272
305
|
updated_at: number;
|
|
273
306
|
};
|
|
307
|
+
/**
|
|
308
|
+
* A build's analyzer summary.
|
|
309
|
+
*/
|
|
310
|
+
export type BuildAnalysis = {
|
|
311
|
+
counts: AnalyzerCounts;
|
|
312
|
+
/**
|
|
313
|
+
* The most severe diagnostics, errors first, at most 50.
|
|
314
|
+
*/
|
|
315
|
+
diagnostics: Array<AnalyzerDiagnostic>;
|
|
316
|
+
recorded_at: number;
|
|
317
|
+
};
|
|
318
|
+
/**
|
|
319
|
+
* The earlier build an analysis compares with: the latest successful build
|
|
320
|
+
* of the same pipeline on the base branch that reported one, as for sizes.
|
|
321
|
+
*/
|
|
322
|
+
export type BuildAnalysisBaseline = {
|
|
323
|
+
branch: string;
|
|
324
|
+
build_id: string;
|
|
325
|
+
build_number: number;
|
|
326
|
+
counts: AnalyzerCounts;
|
|
327
|
+
};
|
|
328
|
+
export type BuildAnalysisResponse = {
|
|
329
|
+
analysis?: null | BuildAnalysis;
|
|
330
|
+
/**
|
|
331
|
+
* The branch the build compares with: a pull request's target branch,
|
|
332
|
+
* otherwise the default branch.
|
|
333
|
+
*/
|
|
334
|
+
base_branch?: string | null;
|
|
335
|
+
baseline?: null | BuildAnalysisBaseline;
|
|
336
|
+
};
|
|
274
337
|
export type BuildApproval = {
|
|
275
338
|
decided_at?: number | null;
|
|
276
339
|
decided_by?: string | null;
|
|
@@ -703,6 +766,7 @@ export type CreatePipelineResponse = {
|
|
|
703
766
|
};
|
|
704
767
|
export type CreateProjectEnvironmentRequest = {
|
|
705
768
|
approval_required?: boolean;
|
|
769
|
+
approvers?: null | EnvironmentApproversInput;
|
|
706
770
|
key: string;
|
|
707
771
|
name: string;
|
|
708
772
|
rollout_policy?: null | ReleasePolicy;
|
|
@@ -802,6 +866,42 @@ export type EffectiveProjectRetentionResponse = {
|
|
|
802
866
|
has_override: boolean;
|
|
803
867
|
override_fields?: null | ProjectRetentionOverride;
|
|
804
868
|
};
|
|
869
|
+
/**
|
|
870
|
+
* A project member named as an approver.
|
|
871
|
+
*/
|
|
872
|
+
export type EnvironmentApprover = {
|
|
873
|
+
email: string;
|
|
874
|
+
user_id: string;
|
|
875
|
+
};
|
|
876
|
+
/**
|
|
877
|
+
* Who may approve or reject promotions into an environment.
|
|
878
|
+
*
|
|
879
|
+
* A member may decide when their project role is at least `role`, or when
|
|
880
|
+
* they are one of `users` (developers and maintainers only). With no role
|
|
881
|
+
* and no users, any project maintainer may decide, as before approvers
|
|
882
|
+
* existed. Instance owners and admins may always decide. API tokens never
|
|
883
|
+
* decide: approvals are interactive.
|
|
884
|
+
*/
|
|
885
|
+
export type EnvironmentApprovers = {
|
|
886
|
+
role?: null | ApproverRole;
|
|
887
|
+
/**
|
|
888
|
+
* Project members named as approvers. A user who leaves the project,
|
|
889
|
+
* or becomes a viewer, stops counting.
|
|
890
|
+
*/
|
|
891
|
+
users: Array<EnvironmentApprover>;
|
|
892
|
+
};
|
|
893
|
+
/**
|
|
894
|
+
* Approvers to set on an environment. Replaces the whole set; send an empty
|
|
895
|
+
* object to go back to "any maintainer".
|
|
896
|
+
*/
|
|
897
|
+
export type EnvironmentApproversInput = {
|
|
898
|
+
role?: null | ApproverRole;
|
|
899
|
+
/**
|
|
900
|
+
* User ids of project members who are developers or maintainers. At
|
|
901
|
+
* most 20.
|
|
902
|
+
*/
|
|
903
|
+
user_ids?: Array<string>;
|
|
904
|
+
};
|
|
805
905
|
/**
|
|
806
906
|
* A request to put an existing build into an environment.
|
|
807
907
|
*/
|
|
@@ -1749,10 +1849,15 @@ export type ProjectDetailResponse = {
|
|
|
1749
1849
|
*/
|
|
1750
1850
|
export type ProjectEnvironment = {
|
|
1751
1851
|
/**
|
|
1752
|
-
* A promotion into this environment waits for
|
|
1753
|
-
*
|
|
1852
|
+
* A promotion into this environment waits for an approval before
|
|
1853
|
+
* anything changes at the store. `approvers` says who may give it.
|
|
1754
1854
|
*/
|
|
1755
1855
|
approval_required: boolean;
|
|
1856
|
+
/**
|
|
1857
|
+
* Who may approve or reject promotions into this environment. With no
|
|
1858
|
+
* role and no users, any project maintainer may.
|
|
1859
|
+
*/
|
|
1860
|
+
approvers: EnvironmentApprovers;
|
|
1756
1861
|
created_at: number;
|
|
1757
1862
|
id: string;
|
|
1758
1863
|
/**
|
|
@@ -2124,6 +2229,18 @@ export type Runner = {
|
|
|
2124
2229
|
status: RunnerStatus;
|
|
2125
2230
|
updated_at: number;
|
|
2126
2231
|
};
|
|
2232
|
+
/**
|
|
2233
|
+
* The summary of `dart analyze --format=json` a runner reports after the
|
|
2234
|
+
* build's steps.
|
|
2235
|
+
*/
|
|
2236
|
+
export type RunnerAnalyzerReport = {
|
|
2237
|
+
counts: AnalyzerCounts;
|
|
2238
|
+
/**
|
|
2239
|
+
* The most severe diagnostics, errors first. The daemon keeps at most
|
|
2240
|
+
* 50.
|
|
2241
|
+
*/
|
|
2242
|
+
diagnostics: Array<AnalyzerDiagnostic>;
|
|
2243
|
+
};
|
|
2127
2244
|
export type RunnerAndroidSigningProfile = {
|
|
2128
2245
|
build_type: AndroidSigningBuildType;
|
|
2129
2246
|
enabled: boolean;
|
|
@@ -2654,6 +2771,19 @@ export type SyncPipelineIosSigningResponse = {
|
|
|
2654
2771
|
updated_profiles: number;
|
|
2655
2772
|
warnings: Array<string>;
|
|
2656
2773
|
};
|
|
2774
|
+
/**
|
|
2775
|
+
* A size budget a repository's `.oore.yaml` version 2 file sets on one
|
|
2776
|
+
* target, after workflow overrides. That platform's commit check enforces it
|
|
2777
|
+
* on top of the pipeline's `size_budget`, which stays a floor.
|
|
2778
|
+
*/
|
|
2779
|
+
export type TargetSizeBudget = {
|
|
2780
|
+
budget: SizeBudget;
|
|
2781
|
+
platform: BuildPlatform;
|
|
2782
|
+
/**
|
|
2783
|
+
* Where the budget came from, such as `targets.android.budgets`.
|
|
2784
|
+
*/
|
|
2785
|
+
source: string;
|
|
2786
|
+
};
|
|
2657
2787
|
export type TestNotificationChannelResponse = {
|
|
2658
2788
|
error?: string | null;
|
|
2659
2789
|
success: boolean;
|
|
@@ -2753,6 +2883,12 @@ export type UpdateInstancePreferencesRequest = {
|
|
|
2753
2883
|
export type UpdateJobStatusRequest = {
|
|
2754
2884
|
error_message?: string | null;
|
|
2755
2885
|
exit_code?: number | null;
|
|
2886
|
+
/**
|
|
2887
|
+
* The size budgets the build's `.oore.yaml` version 2 file sets, sent
|
|
2888
|
+
* once the runner planned the build. An empty list means the file sets
|
|
2889
|
+
* none; leaving it out keeps what the build has.
|
|
2890
|
+
*/
|
|
2891
|
+
size_budgets?: Array<TargetSizeBudget> | null;
|
|
2756
2892
|
status: string;
|
|
2757
2893
|
steps?: Array<StepResult>;
|
|
2758
2894
|
};
|
|
@@ -2823,6 +2959,7 @@ export type UpdatePipelineRequest = {
|
|
|
2823
2959
|
*/
|
|
2824
2960
|
export type UpdateProjectEnvironmentRequest = {
|
|
2825
2961
|
approval_required?: boolean | null;
|
|
2962
|
+
approvers?: null | EnvironmentApproversInput;
|
|
2826
2963
|
name?: string | null;
|
|
2827
2964
|
position?: number | null;
|
|
2828
2965
|
rollout_policy?: null | ReleasePolicy;
|
|
@@ -3979,6 +4116,31 @@ export type GetBuildResponses = {
|
|
|
3979
4116
|
200: BuildDetailResponse;
|
|
3980
4117
|
};
|
|
3981
4118
|
export type GetBuildResponse = GetBuildResponses[keyof GetBuildResponses];
|
|
4119
|
+
export type GetBuildAnalysisData = {
|
|
4120
|
+
body?: never;
|
|
4121
|
+
path: {
|
|
4122
|
+
/**
|
|
4123
|
+
* Build ID
|
|
4124
|
+
*/
|
|
4125
|
+
build_id: string;
|
|
4126
|
+
};
|
|
4127
|
+
query?: never;
|
|
4128
|
+
url: '/v1/builds/{build_id}/analysis';
|
|
4129
|
+
};
|
|
4130
|
+
export type GetBuildAnalysisErrors = {
|
|
4131
|
+
/**
|
|
4132
|
+
* Build not found
|
|
4133
|
+
*/
|
|
4134
|
+
404: ApiError;
|
|
4135
|
+
};
|
|
4136
|
+
export type GetBuildAnalysisError = GetBuildAnalysisErrors[keyof GetBuildAnalysisErrors];
|
|
4137
|
+
export type GetBuildAnalysisResponses = {
|
|
4138
|
+
/**
|
|
4139
|
+
* Analyzer summary
|
|
4140
|
+
*/
|
|
4141
|
+
200: BuildAnalysisResponse;
|
|
4142
|
+
};
|
|
4143
|
+
export type GetBuildAnalysisResponse = GetBuildAnalysisResponses[keyof GetBuildAnalysisResponses];
|
|
3982
4144
|
export type ApproveBuildData = {
|
|
3983
4145
|
/**
|
|
3984
4146
|
* Optional note for the audit log
|
|
@@ -6342,7 +6504,7 @@ export type ApprovePromotionData = {
|
|
|
6342
6504
|
};
|
|
6343
6505
|
export type ApprovePromotionErrors = {
|
|
6344
6506
|
/**
|
|
6345
|
-
*
|
|
6507
|
+
* Not one of the environment's approvers, or an API token
|
|
6346
6508
|
*/
|
|
6347
6509
|
403: ApiError;
|
|
6348
6510
|
/**
|
|
@@ -6386,7 +6548,7 @@ export type RejectPromotionData = {
|
|
|
6386
6548
|
};
|
|
6387
6549
|
export type RejectPromotionErrors = {
|
|
6388
6550
|
/**
|
|
6389
|
-
*
|
|
6551
|
+
* Not one of the environment's approvers, or an API token
|
|
6390
6552
|
*/
|
|
6391
6553
|
403: ApiError;
|
|
6392
6554
|
/**
|
|
@@ -7260,6 +7422,43 @@ export type GetJobStatusResponses = {
|
|
|
7260
7422
|
200: JobStatusResponse;
|
|
7261
7423
|
};
|
|
7262
7424
|
export type GetJobStatusResponse = GetJobStatusResponses[keyof GetJobStatusResponses];
|
|
7425
|
+
export type ReportJobAnalysisData = {
|
|
7426
|
+
body: RunnerAnalyzerReport;
|
|
7427
|
+
path: {
|
|
7428
|
+
/**
|
|
7429
|
+
* Runner ID
|
|
7430
|
+
*/
|
|
7431
|
+
runner_id: string;
|
|
7432
|
+
/**
|
|
7433
|
+
* Build/Job ID
|
|
7434
|
+
*/
|
|
7435
|
+
job_id: string;
|
|
7436
|
+
};
|
|
7437
|
+
query?: never;
|
|
7438
|
+
url: '/v1/runners/{runner_id}/jobs/{job_id}/analysis';
|
|
7439
|
+
};
|
|
7440
|
+
export type ReportJobAnalysisErrors = {
|
|
7441
|
+
/**
|
|
7442
|
+
* Runner does not match the assignment
|
|
7443
|
+
*/
|
|
7444
|
+
403: ApiError;
|
|
7445
|
+
/**
|
|
7446
|
+
* Build not found
|
|
7447
|
+
*/
|
|
7448
|
+
404: ApiError;
|
|
7449
|
+
/**
|
|
7450
|
+
* Build is not running
|
|
7451
|
+
*/
|
|
7452
|
+
409: ApiError;
|
|
7453
|
+
};
|
|
7454
|
+
export type ReportJobAnalysisError = ReportJobAnalysisErrors[keyof ReportJobAnalysisErrors];
|
|
7455
|
+
export type ReportJobAnalysisResponses = {
|
|
7456
|
+
/**
|
|
7457
|
+
* Recorded
|
|
7458
|
+
*/
|
|
7459
|
+
200: OkResponse;
|
|
7460
|
+
};
|
|
7461
|
+
export type ReportJobAnalysisResponse = ReportJobAnalysisResponses[keyof ReportJobAnalysisResponses];
|
|
7263
7462
|
export type GetJobAndroidSigningData = {
|
|
7264
7463
|
body?: never;
|
|
7265
7464
|
headers: {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vAnalyzerCounts: v.ObjectSchema<{
|
|
3
|
+
readonly errors: 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">]>;
|
|
4
|
+
readonly infos: 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">]>;
|
|
5
|
+
readonly warnings: 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">]>;
|
|
6
|
+
}, undefined>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
export const vAnalyzerCounts = v.object({
|
|
4
|
+
errors: v.pipe(v.union([
|
|
5
|
+
v.number(),
|
|
6
|
+
v.string(),
|
|
7
|
+
v.bigint()
|
|
8
|
+
]), 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')),
|
|
9
|
+
infos: v.pipe(v.union([
|
|
10
|
+
v.number(),
|
|
11
|
+
v.string(),
|
|
12
|
+
v.bigint()
|
|
13
|
+
]), 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')),
|
|
14
|
+
warnings: v.pipe(v.union([
|
|
15
|
+
v.number(),
|
|
16
|
+
v.string(),
|
|
17
|
+
v.bigint()
|
|
18
|
+
]), 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'))
|
|
19
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vAnalyzerDiagnostic: v.ObjectSchema<{
|
|
3
|
+
readonly code: v.StringSchema<undefined>;
|
|
4
|
+
readonly column: 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">]>;
|
|
5
|
+
readonly file: v.StringSchema<undefined>;
|
|
6
|
+
readonly line: 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">]>;
|
|
7
|
+
readonly message: v.StringSchema<undefined>;
|
|
8
|
+
readonly severity: v.PicklistSchema<["error", "warning", "info"], undefined>;
|
|
9
|
+
}, undefined>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { vAnalyzerSeverity } from './v-analyzer-severity.js';
|
|
4
|
+
export const vAnalyzerDiagnostic = v.object({
|
|
5
|
+
code: v.string(),
|
|
6
|
+
column: v.pipe(v.union([
|
|
7
|
+
v.number(),
|
|
8
|
+
v.string(),
|
|
9
|
+
v.bigint()
|
|
10
|
+
]), 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')),
|
|
11
|
+
file: v.string(),
|
|
12
|
+
line: v.pipe(v.union([
|
|
13
|
+
v.number(),
|
|
14
|
+
v.string(),
|
|
15
|
+
v.bigint()
|
|
16
|
+
]), 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')),
|
|
17
|
+
message: v.string(),
|
|
18
|
+
severity: vAnalyzerSeverity
|
|
19
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vBuildAnalysisBaseline: v.ObjectSchema<{
|
|
3
|
+
readonly branch: v.StringSchema<undefined>;
|
|
4
|
+
readonly build_id: v.StringSchema<undefined>;
|
|
5
|
+
readonly build_number: 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">]>;
|
|
6
|
+
readonly counts: v.ObjectSchema<{
|
|
7
|
+
readonly errors: 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">]>;
|
|
8
|
+
readonly infos: 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">]>;
|
|
9
|
+
readonly warnings: 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">]>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
}, undefined>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { vAnalyzerCounts } from './v-analyzer-counts.js';
|
|
4
|
+
export const vBuildAnalysisBaseline = v.object({
|
|
5
|
+
branch: v.string(),
|
|
6
|
+
build_id: v.string(),
|
|
7
|
+
build_number: v.pipe(v.union([
|
|
8
|
+
v.number(),
|
|
9
|
+
v.string(),
|
|
10
|
+
v.bigint()
|
|
11
|
+
]), 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')),
|
|
12
|
+
counts: vAnalyzerCounts
|
|
13
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vBuildAnalysisResponse: v.ObjectSchema<{
|
|
3
|
+
readonly analysis: v.NullishSchema<v.ObjectSchema<{
|
|
4
|
+
readonly counts: v.ObjectSchema<{
|
|
5
|
+
readonly errors: 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">]>;
|
|
6
|
+
readonly infos: 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">]>;
|
|
7
|
+
readonly warnings: 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">]>;
|
|
8
|
+
}, undefined>;
|
|
9
|
+
readonly diagnostics: v.ArraySchema<v.ObjectSchema<{
|
|
10
|
+
readonly code: v.StringSchema<undefined>;
|
|
11
|
+
readonly column: 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">]>;
|
|
12
|
+
readonly file: v.StringSchema<undefined>;
|
|
13
|
+
readonly line: 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">]>;
|
|
14
|
+
readonly message: v.StringSchema<undefined>;
|
|
15
|
+
readonly severity: v.PicklistSchema<["error", "warning", "info"], undefined>;
|
|
16
|
+
}, undefined>, undefined>;
|
|
17
|
+
readonly recorded_at: 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">]>;
|
|
18
|
+
}, undefined>, undefined>;
|
|
19
|
+
readonly base_branch: v.NullishSchema<v.StringSchema<undefined>, undefined>;
|
|
20
|
+
readonly baseline: v.NullishSchema<v.ObjectSchema<{
|
|
21
|
+
readonly branch: v.StringSchema<undefined>;
|
|
22
|
+
readonly build_id: v.StringSchema<undefined>;
|
|
23
|
+
readonly build_number: 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">]>;
|
|
24
|
+
readonly counts: v.ObjectSchema<{
|
|
25
|
+
readonly errors: 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">]>;
|
|
26
|
+
readonly infos: 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">]>;
|
|
27
|
+
readonly warnings: 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">]>;
|
|
28
|
+
}, undefined>;
|
|
29
|
+
}, undefined>, undefined>;
|
|
30
|
+
}, undefined>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { vBuildAnalysis } from './v-build-analysis.js';
|
|
4
|
+
import { vBuildAnalysisBaseline } from './v-build-analysis-baseline.js';
|
|
5
|
+
export const vBuildAnalysisResponse = v.object({
|
|
6
|
+
analysis: v.nullish(vBuildAnalysis),
|
|
7
|
+
base_branch: v.nullish(v.string()),
|
|
8
|
+
baseline: v.nullish(vBuildAnalysisBaseline)
|
|
9
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vBuildAnalysis: v.ObjectSchema<{
|
|
3
|
+
readonly counts: v.ObjectSchema<{
|
|
4
|
+
readonly errors: 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">]>;
|
|
5
|
+
readonly infos: 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">]>;
|
|
6
|
+
readonly warnings: 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">]>;
|
|
7
|
+
}, undefined>;
|
|
8
|
+
readonly diagnostics: v.ArraySchema<v.ObjectSchema<{
|
|
9
|
+
readonly code: v.StringSchema<undefined>;
|
|
10
|
+
readonly column: 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">]>;
|
|
11
|
+
readonly file: v.StringSchema<undefined>;
|
|
12
|
+
readonly line: 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">]>;
|
|
13
|
+
readonly message: v.StringSchema<undefined>;
|
|
14
|
+
readonly severity: v.PicklistSchema<["error", "warning", "info"], undefined>;
|
|
15
|
+
}, undefined>, undefined>;
|
|
16
|
+
readonly recorded_at: 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">]>;
|
|
17
|
+
}, undefined>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { vAnalyzerCounts } from './v-analyzer-counts.js';
|
|
4
|
+
import { vAnalyzerDiagnostic } from './v-analyzer-diagnostic.js';
|
|
5
|
+
export const vBuildAnalysis = v.object({
|
|
6
|
+
counts: vAnalyzerCounts,
|
|
7
|
+
diagnostics: v.array(vAnalyzerDiagnostic),
|
|
8
|
+
recorded_at: v.pipe(v.union([
|
|
9
|
+
v.number(),
|
|
10
|
+
v.string(),
|
|
11
|
+
v.bigint()
|
|
12
|
+
]), 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'))
|
|
13
|
+
});
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const vCreateProjectEnvironmentBody: v.ObjectSchema<{
|
|
3
3
|
readonly approval_required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4
|
+
readonly approvers: v.NullishSchema<v.ObjectSchema<{
|
|
5
|
+
readonly role: v.NullishSchema<v.PicklistSchema<["maintainer", "developer"], undefined>, undefined>;
|
|
6
|
+
readonly user_ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7
|
+
}, undefined>, undefined>;
|
|
4
8
|
readonly key: v.StringSchema<undefined>;
|
|
5
9
|
readonly name: v.StringSchema<undefined>;
|
|
6
10
|
readonly rollout_policy: v.NullishSchema<v.ObjectSchema<{
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const vCreateProjectEnvironmentRequest: v.ObjectSchema<{
|
|
3
3
|
readonly approval_required: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
4
|
+
readonly approvers: v.NullishSchema<v.ObjectSchema<{
|
|
5
|
+
readonly role: v.NullishSchema<v.PicklistSchema<["maintainer", "developer"], undefined>, undefined>;
|
|
6
|
+
readonly user_ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
7
|
+
}, undefined>, undefined>;
|
|
4
8
|
readonly key: v.StringSchema<undefined>;
|
|
5
9
|
readonly name: v.StringSchema<undefined>;
|
|
6
10
|
readonly rollout_policy: v.NullishSchema<v.ObjectSchema<{
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
2
|
import * as v from 'valibot';
|
|
3
|
+
import { vEnvironmentApproversInput } from './v-environment-approvers-input.js';
|
|
3
4
|
import { vReleasePolicy } from './v-release-policy.js';
|
|
4
5
|
import { vReleaseStore } from './v-release-store.js';
|
|
5
6
|
export const vCreateProjectEnvironmentRequest = v.object({
|
|
6
7
|
approval_required: v.optional(v.boolean()),
|
|
8
|
+
approvers: v.nullish(vEnvironmentApproversInput),
|
|
7
9
|
key: v.string(),
|
|
8
10
|
name: v.string(),
|
|
9
11
|
rollout_policy: v.nullish(vReleasePolicy),
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
import * as v from 'valibot';
|
|
2
2
|
export declare const vCreateProjectEnvironmentResponse: v.ObjectSchema<{
|
|
3
3
|
readonly approval_required: v.BooleanSchema<undefined>;
|
|
4
|
+
readonly approvers: v.ObjectSchema<{
|
|
5
|
+
readonly role: v.NullishSchema<v.PicklistSchema<["maintainer", "developer"], undefined>, undefined>;
|
|
6
|
+
readonly users: v.ArraySchema<v.ObjectSchema<{
|
|
7
|
+
readonly email: v.StringSchema<undefined>;
|
|
8
|
+
readonly user_id: v.StringSchema<undefined>;
|
|
9
|
+
}, undefined>, undefined>;
|
|
10
|
+
}, undefined>;
|
|
4
11
|
readonly created_at: 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">]>;
|
|
5
12
|
readonly id: v.StringSchema<undefined>;
|
|
6
13
|
readonly key: v.StringSchema<undefined>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vEnvironmentApproversInput: v.ObjectSchema<{
|
|
3
|
+
readonly role: v.NullishSchema<v.PicklistSchema<["maintainer", "developer"], undefined>, undefined>;
|
|
4
|
+
readonly user_ids: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
5
|
+
}, undefined>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Generated by scripts/generate-valibot-modules.ts. Do not edit.
|
|
2
|
+
import * as v from 'valibot';
|
|
3
|
+
import { vApproverRole } from './v-approver-role.js';
|
|
4
|
+
export const vEnvironmentApproversInput = v.object({
|
|
5
|
+
role: v.nullish(vApproverRole),
|
|
6
|
+
user_ids: v.optional(v.array(v.string()))
|
|
7
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
export declare const vEnvironmentApprovers: v.ObjectSchema<{
|
|
3
|
+
readonly role: v.NullishSchema<v.PicklistSchema<["maintainer", "developer"], undefined>, undefined>;
|
|
4
|
+
readonly users: v.ArraySchema<v.ObjectSchema<{
|
|
5
|
+
readonly email: v.StringSchema<undefined>;
|
|
6
|
+
readonly user_id: v.StringSchema<undefined>;
|
|
7
|
+
}, undefined>, undefined>;
|
|
8
|
+
}, undefined>;
|