@artifact-keeper/sdk 1.3.0 → 1.4.1
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/package.json +1 -1
- package/src/index.ts +2 -2
- package/src/sdk.gen.ts +239 -5
- package/src/types.gen.ts +1062 -65
package/src/types.gen.ts
CHANGED
|
@@ -52,6 +52,32 @@ export type AdvancedSearchResponse = {
|
|
|
52
52
|
pagination: PaginationInfo;
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
+
export type AgeGateConfigResponse = {
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
min_age_days: number;
|
|
58
|
+
repository_key: string;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
export type AgeGateReviewListResponse = {
|
|
62
|
+
items: Array<AgeGateReviewResponse>;
|
|
63
|
+
pagination: Pagination;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
export type AgeGateReviewResponse = {
|
|
67
|
+
id: string;
|
|
68
|
+
last_requested_at: string;
|
|
69
|
+
package_name: string;
|
|
70
|
+
package_version: string;
|
|
71
|
+
repository_key: string;
|
|
72
|
+
request_count: number;
|
|
73
|
+
requested_at: string;
|
|
74
|
+
review_reason?: string | null;
|
|
75
|
+
reviewed_at?: string | null;
|
|
76
|
+
reviewed_by?: string | null;
|
|
77
|
+
status: string;
|
|
78
|
+
upstream_published_at?: string | null;
|
|
79
|
+
};
|
|
80
|
+
|
|
55
81
|
/**
|
|
56
82
|
* Alert state for a service.
|
|
57
83
|
*/
|
|
@@ -218,6 +244,19 @@ export type ArtifactMetadataResponse = {
|
|
|
218
244
|
};
|
|
219
245
|
|
|
220
246
|
export type ArtifactResponse = {
|
|
247
|
+
/**
|
|
248
|
+
* Whether this artifact can have an SBOM generated or a security scan
|
|
249
|
+
* run against it. `false` for proxy-cached (Remote) objects: those are
|
|
250
|
+
* listed with a synthetic, SHA-256-derived id (see
|
|
251
|
+
* [`cached_artifact_id`]) and have no row in the `artifacts` table
|
|
252
|
+
* (#1280/#1278), so SBOM/scan lookups by `artifacts.id` cannot resolve
|
|
253
|
+
* them and `sbom_documents`/`scan_results` cannot reference them.
|
|
254
|
+
* `true` for hosted artifacts, which carry a real DB id. The web UI
|
|
255
|
+
* uses this to hide/disable the "Generate SBOM" / "Scan" actions where
|
|
256
|
+
* they cannot work; clients that predate the field should treat an
|
|
257
|
+
* absent value as `true` so hosted artifacts are never hidden. (#2227)
|
|
258
|
+
*/
|
|
259
|
+
analyzable: boolean;
|
|
221
260
|
/**
|
|
222
261
|
* When the proxy cache entry for this artifact was last written.
|
|
223
262
|
* Only populated for Remote (proxy) repositories whose proxy service is
|
|
@@ -552,6 +591,67 @@ export type ChunkResponse = {
|
|
|
552
591
|
chunks_remaining: number;
|
|
553
592
|
};
|
|
554
593
|
|
|
594
|
+
export type CiOidcMappingResponse = {
|
|
595
|
+
allowed_repo_ids?: Array<string> | null;
|
|
596
|
+
claim_filters: unknown;
|
|
597
|
+
created_at: string;
|
|
598
|
+
id: string;
|
|
599
|
+
is_enabled: boolean;
|
|
600
|
+
name: string;
|
|
601
|
+
priority: number;
|
|
602
|
+
provider_id: string;
|
|
603
|
+
updated_at: string;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
export type CiOidcProviderResponse = {
|
|
607
|
+
audience: string;
|
|
608
|
+
created_at: string;
|
|
609
|
+
id: string;
|
|
610
|
+
is_enabled: boolean;
|
|
611
|
+
issuer_url: string;
|
|
612
|
+
mapping_count: number;
|
|
613
|
+
name: string;
|
|
614
|
+
provider_type: string;
|
|
615
|
+
updated_at: string;
|
|
616
|
+
};
|
|
617
|
+
|
|
618
|
+
/**
|
|
619
|
+
* Body for toggle endpoint.
|
|
620
|
+
*/
|
|
621
|
+
export type CiOidcToggleRequest = {
|
|
622
|
+
enabled: boolean;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
export type CiTokenRequest = {
|
|
626
|
+
/**
|
|
627
|
+
* UUID of the `ci_oidc_providers` row to use for validation.
|
|
628
|
+
*/
|
|
629
|
+
provider_id: string;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
export type CiTokenResponse = {
|
|
633
|
+
/**
|
|
634
|
+
* Short-lived Artifact Keeper access token.
|
|
635
|
+
*/
|
|
636
|
+
access_token: string;
|
|
637
|
+
/**
|
|
638
|
+
* Lifetime in seconds (default 900 = 15 min).
|
|
639
|
+
*
|
|
640
|
+
* Docker caches credentials and does not auto-refresh. Re-exchange the
|
|
641
|
+
* CI JWT before each `docker push` step if the pipeline runs longer
|
|
642
|
+
* than this window.
|
|
643
|
+
*/
|
|
644
|
+
expires_in: number;
|
|
645
|
+
token_type: string;
|
|
646
|
+
/**
|
|
647
|
+
* The provisioned CI service-account username.
|
|
648
|
+
*
|
|
649
|
+
* Use this directly as `docker login --username` — no separate
|
|
650
|
+
* `GET /api/v1/auth/me` call is needed.
|
|
651
|
+
*/
|
|
652
|
+
username: string;
|
|
653
|
+
};
|
|
654
|
+
|
|
555
655
|
export type CleanupRequest = {
|
|
556
656
|
cleanup_audit_logs?: boolean | null;
|
|
557
657
|
cleanup_old_backups?: boolean | null;
|
|
@@ -689,6 +789,22 @@ export type CreateBuildRequest = {
|
|
|
689
789
|
vcs_url?: string | null;
|
|
690
790
|
};
|
|
691
791
|
|
|
792
|
+
export type CreateCiOidcMappingRequest = {
|
|
793
|
+
allowed_repo_ids?: Array<string> | null;
|
|
794
|
+
claim_filters: unknown;
|
|
795
|
+
is_enabled?: boolean | null;
|
|
796
|
+
name: string;
|
|
797
|
+
priority?: number | null;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
export type CreateCiOidcProviderRequest = {
|
|
801
|
+
audience?: string | null;
|
|
802
|
+
is_enabled?: boolean | null;
|
|
803
|
+
issuer_url: string;
|
|
804
|
+
name: string;
|
|
805
|
+
provider_type?: string | null;
|
|
806
|
+
};
|
|
807
|
+
|
|
692
808
|
export type CreateConnectionRequest = {
|
|
693
809
|
auth_type: string;
|
|
694
810
|
credentials: ConnectionCredentials;
|
|
@@ -769,6 +885,21 @@ export type CreateLdapConfigRequest = {
|
|
|
769
885
|
username_attribute?: string | null;
|
|
770
886
|
};
|
|
771
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Request to create a lifecycle policy.
|
|
890
|
+
*/
|
|
891
|
+
export type CreateLifecyclePolicyRequest = {
|
|
892
|
+
config: {
|
|
893
|
+
[key: string]: unknown;
|
|
894
|
+
};
|
|
895
|
+
cron_schedule?: string | null;
|
|
896
|
+
description?: string | null;
|
|
897
|
+
name: string;
|
|
898
|
+
policy_type: string;
|
|
899
|
+
priority?: number | null;
|
|
900
|
+
repository_id?: string | null;
|
|
901
|
+
};
|
|
902
|
+
|
|
772
903
|
export type CreateMigrationRequest = {
|
|
773
904
|
config: {
|
|
774
905
|
[key: string]: unknown;
|
|
@@ -778,6 +909,14 @@ export type CreateMigrationRequest = {
|
|
|
778
909
|
};
|
|
779
910
|
|
|
780
911
|
export type CreateOidcConfigRequest = {
|
|
912
|
+
/**
|
|
913
|
+
* Opt-in compatibility flag (migration 144): when `true` the provider
|
|
914
|
+
* accepts ID tokens signed with RSA keys shorter than 2048 bits via a
|
|
915
|
+
* restricted RS256/384/512 PKCS#1 v1.5 fallback path. Defaults to
|
|
916
|
+
* `false`. Below the OWASP ASVS 4.0 baseline; only enable for legacy
|
|
917
|
+
* IdPs such as Lark AnyCross.
|
|
918
|
+
*/
|
|
919
|
+
allow_legacy_rsa_keys?: boolean | null;
|
|
781
920
|
attribute_mapping?: {
|
|
782
921
|
[key: string]: unknown;
|
|
783
922
|
} | null;
|
|
@@ -891,6 +1030,19 @@ export type CreateRepositoryRequest = {
|
|
|
891
1030
|
* Defaults to false (no behavior change for existing repositories).
|
|
892
1031
|
*/
|
|
893
1032
|
promotion_only?: boolean | null;
|
|
1033
|
+
/**
|
|
1034
|
+
* Override the PyPI simple-index prefix for upstreams that do not follow
|
|
1035
|
+
* the standard PEP 503 `/simple/` layout (issue #1546).
|
|
1036
|
+
*
|
|
1037
|
+
* - Omit or `"simple"` — standard PEP 503 (pypi.org, devpi, Nexus). Default.
|
|
1038
|
+
* - `""` (empty) — flat CDN (e.g. `https://download.pytorch.org/whl/cpu`):
|
|
1039
|
+
* package files are served directly under the upstream root with no prefix.
|
|
1040
|
+
* - Any other non-empty string — custom index prefix.
|
|
1041
|
+
*
|
|
1042
|
+
* Stored in `repository_config` under `pypi_upstream_index_path`.
|
|
1043
|
+
* Only meaningful for PyPI / Poetry / Conda Remote repositories.
|
|
1044
|
+
*/
|
|
1045
|
+
pypi_upstream_index_path?: string | null;
|
|
894
1046
|
quota_bytes?: number | null;
|
|
895
1047
|
repo_type: string;
|
|
896
1048
|
/**
|
|
@@ -1086,6 +1238,12 @@ export type CreateTokenResponse = {
|
|
|
1086
1238
|
token: string;
|
|
1087
1239
|
};
|
|
1088
1240
|
|
|
1241
|
+
export type CreateUserApiTokenRequest = {
|
|
1242
|
+
expires_in_days?: number | null;
|
|
1243
|
+
name: string;
|
|
1244
|
+
scopes: Array<string>;
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1089
1247
|
export type CreateUserRequest = {
|
|
1090
1248
|
display_name?: string | null;
|
|
1091
1249
|
email: string;
|
|
@@ -1159,6 +1317,28 @@ export type CurationCreateRuleRequest = {
|
|
|
1159
1317
|
version_constraint?: string;
|
|
1160
1318
|
};
|
|
1161
1319
|
|
|
1320
|
+
export type CurationPackageResponse = {
|
|
1321
|
+
architecture?: string | null;
|
|
1322
|
+
checksum_sha256?: string | null;
|
|
1323
|
+
evaluated_at?: string | null;
|
|
1324
|
+
evaluated_by?: string | null;
|
|
1325
|
+
evaluation_reason?: string | null;
|
|
1326
|
+
first_seen_at: string;
|
|
1327
|
+
format: string;
|
|
1328
|
+
id: string;
|
|
1329
|
+
metadata: {
|
|
1330
|
+
[key: string]: unknown;
|
|
1331
|
+
};
|
|
1332
|
+
package_name: string;
|
|
1333
|
+
release?: string | null;
|
|
1334
|
+
remote_repo_id: string;
|
|
1335
|
+
rule_id?: string | null;
|
|
1336
|
+
staging_repo_id: string;
|
|
1337
|
+
status: string;
|
|
1338
|
+
upstream_path: string;
|
|
1339
|
+
version: string;
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1162
1342
|
export type CurationUpdateRuleRequest = {
|
|
1163
1343
|
action: string;
|
|
1164
1344
|
architecture?: string;
|
|
@@ -2319,6 +2499,13 @@ export type MigrationJobRow = {
|
|
|
2319
2499
|
transferred_bytes: number;
|
|
2320
2500
|
};
|
|
2321
2501
|
|
|
2502
|
+
export type MigrationPaginationInfo = {
|
|
2503
|
+
page: number;
|
|
2504
|
+
per_page: number;
|
|
2505
|
+
total: number;
|
|
2506
|
+
total_pages: number;
|
|
2507
|
+
};
|
|
2508
|
+
|
|
2322
2509
|
export type MigrationReportResponse = {
|
|
2323
2510
|
errors: {
|
|
2324
2511
|
[key: string]: unknown;
|
|
@@ -2441,6 +2628,13 @@ export type OciBlobRepoFootprint = {
|
|
|
2441
2628
|
};
|
|
2442
2629
|
|
|
2443
2630
|
export type OidcConfigResponse = {
|
|
2631
|
+
/**
|
|
2632
|
+
* Opt-in compatibility flag (migration 144): when true the OIDC
|
|
2633
|
+
* provider accepts ID tokens signed with RSA keys shorter than
|
|
2634
|
+
* 2048 bits via a restricted RS256/384/512 PKCS#1 v1.5 path.
|
|
2635
|
+
* Below the OWASP ASVS 4.0 baseline; only enable for legacy IdPs.
|
|
2636
|
+
*/
|
|
2637
|
+
allow_legacy_rsa_keys: boolean;
|
|
2444
2638
|
attribute_mapping: {
|
|
2445
2639
|
[key: string]: unknown;
|
|
2446
2640
|
};
|
|
@@ -2987,12 +3181,10 @@ export type RegisterPeerRequest = {
|
|
|
2987
3181
|
};
|
|
2988
3182
|
};
|
|
2989
3183
|
|
|
2990
|
-
/**
|
|
2991
|
-
* Response returned when a reindex is triggered.
|
|
2992
|
-
*/
|
|
2993
3184
|
export type ReindexResponse = {
|
|
3185
|
+
artifacts_indexed: number;
|
|
2994
3186
|
message: string;
|
|
2995
|
-
|
|
3187
|
+
repositories_indexed: number;
|
|
2996
3188
|
};
|
|
2997
3189
|
|
|
2998
3190
|
export type RejectArtifactRequest = {
|
|
@@ -3227,6 +3419,17 @@ export type RestoreResponse = {
|
|
|
3227
3419
|
tables_restored: Array<string>;
|
|
3228
3420
|
};
|
|
3229
3421
|
|
|
3422
|
+
export type ReviewActionRequest = {
|
|
3423
|
+
reason?: string | null;
|
|
3424
|
+
};
|
|
3425
|
+
|
|
3426
|
+
export type ReviewListQuery = {
|
|
3427
|
+
page?: number | null;
|
|
3428
|
+
per_page?: number | null;
|
|
3429
|
+
repository_key?: string | null;
|
|
3430
|
+
status?: string | null;
|
|
3431
|
+
};
|
|
3432
|
+
|
|
3230
3433
|
export type ReviewRequest = {
|
|
3231
3434
|
/**
|
|
3232
3435
|
* Optional reviewer notes
|
|
@@ -3475,6 +3678,14 @@ export type ScoredPeerResponse = {
|
|
|
3475
3678
|
score: number;
|
|
3476
3679
|
};
|
|
3477
3680
|
|
|
3681
|
+
/**
|
|
3682
|
+
* Response returned when a reindex is triggered.
|
|
3683
|
+
*/
|
|
3684
|
+
export type SearchReindexResponse = {
|
|
3685
|
+
message: string;
|
|
3686
|
+
status: string;
|
|
3687
|
+
};
|
|
3688
|
+
|
|
3478
3689
|
/**
|
|
3479
3690
|
* A unified search result matching the frontend `SearchResult` interface.
|
|
3480
3691
|
*/
|
|
@@ -4120,6 +4331,11 @@ export type UninstallQuery = {
|
|
|
4120
4331
|
force?: boolean | null;
|
|
4121
4332
|
};
|
|
4122
4333
|
|
|
4334
|
+
export type UpdateAgeGateConfigRequest = {
|
|
4335
|
+
enabled: boolean;
|
|
4336
|
+
min_age_days: number;
|
|
4337
|
+
};
|
|
4338
|
+
|
|
4123
4339
|
export type UpdateAnalysisBody = {
|
|
4124
4340
|
component_uuid: string;
|
|
4125
4341
|
details?: string | null;
|
|
@@ -4140,6 +4356,22 @@ export type UpdateChunkAvailabilityBody = {
|
|
|
4140
4356
|
total_chunks: number;
|
|
4141
4357
|
};
|
|
4142
4358
|
|
|
4359
|
+
export type UpdateCiOidcMappingRequest = {
|
|
4360
|
+
allowed_repo_ids?: Array<string> | null;
|
|
4361
|
+
claim_filters?: unknown;
|
|
4362
|
+
is_enabled?: boolean | null;
|
|
4363
|
+
name?: string | null;
|
|
4364
|
+
priority?: number | null;
|
|
4365
|
+
};
|
|
4366
|
+
|
|
4367
|
+
export type UpdateCiOidcProviderRequest = {
|
|
4368
|
+
audience?: string | null;
|
|
4369
|
+
is_enabled?: boolean | null;
|
|
4370
|
+
issuer_url?: string | null;
|
|
4371
|
+
name?: string | null;
|
|
4372
|
+
provider_type?: string | null;
|
|
4373
|
+
};
|
|
4374
|
+
|
|
4143
4375
|
export type UpdateCveStatusRequest = {
|
|
4144
4376
|
reason?: string | null;
|
|
4145
4377
|
status: string;
|
|
@@ -4181,7 +4413,22 @@ export type UpdateLdapConfigRequest = {
|
|
|
4181
4413
|
username_attribute?: string | null;
|
|
4182
4414
|
};
|
|
4183
4415
|
|
|
4416
|
+
/**
|
|
4417
|
+
* Request to update a lifecycle policy.
|
|
4418
|
+
*/
|
|
4419
|
+
export type UpdateLifecyclePolicyRequest = {
|
|
4420
|
+
config?: {
|
|
4421
|
+
[key: string]: unknown;
|
|
4422
|
+
} | null;
|
|
4423
|
+
cron_schedule?: string | null;
|
|
4424
|
+
description?: string | null;
|
|
4425
|
+
enabled?: boolean | null;
|
|
4426
|
+
name?: string | null;
|
|
4427
|
+
priority?: number | null;
|
|
4428
|
+
};
|
|
4429
|
+
|
|
4184
4430
|
export type UpdateOidcConfigRequest = {
|
|
4431
|
+
allow_legacy_rsa_keys?: boolean | null;
|
|
4185
4432
|
/**
|
|
4186
4433
|
* Partial update for `attribute_mapping`. Keys present in this object
|
|
4187
4434
|
* overwrite the matching keys in the stored mapping. Keys not present
|
|
@@ -4267,6 +4514,13 @@ export type UpdateRepositoryRequest = {
|
|
|
4267
4514
|
* repository (admin-only). When omitted, the flag is left unchanged.
|
|
4268
4515
|
*/
|
|
4269
4516
|
promotion_only?: boolean | null;
|
|
4517
|
+
/**
|
|
4518
|
+
* Update the PyPI simple-index prefix (stored in `repository_config` under
|
|
4519
|
+
* `pypi_upstream_index_path`). Pass `""` for flat CDN layout, `"simple"` to
|
|
4520
|
+
* restore the PEP 503 default, or any other non-empty string for a custom prefix.
|
|
4521
|
+
* Only meaningful for PyPI / Poetry / Conda Remote repositories.
|
|
4522
|
+
*/
|
|
4523
|
+
pypi_upstream_index_path?: string | null;
|
|
4270
4524
|
/**
|
|
4271
4525
|
* Quarantine hold duration in minutes for this repository.
|
|
4272
4526
|
* Stored in `repository_config` under `quarantine_duration_minutes`.
|
|
@@ -4473,7 +4727,7 @@ export type WasmPluginResponse = {
|
|
|
4473
4727
|
/**
|
|
4474
4728
|
* Webhook event types
|
|
4475
4729
|
*/
|
|
4476
|
-
export type WebhookEvent = 'artifact_uploaded' | 'artifact_deleted' | 'repository_created' | 'repository_deleted' | 'user_created' | 'user_deleted' | 'build_started' | 'build_completed' | 'build_failed';
|
|
4730
|
+
export type WebhookEvent = 'artifact_uploaded' | 'artifact_deleted' | 'repository_created' | 'repository_deleted' | 'user_created' | 'user_deleted' | 'build_started' | 'build_completed' | 'build_failed' | 'age_gate_queued' | 'age_gate_approved' | 'age_gate_rejected';
|
|
4477
4731
|
|
|
4478
4732
|
export type WebhookListResponse = {
|
|
4479
4733
|
items: Array<WebhookResponse>;
|
|
@@ -4532,6 +4786,69 @@ export type WebhookSecretCreatedResponse = WebhookResponse & {
|
|
|
4532
4786
|
secret?: string | null;
|
|
4533
4787
|
};
|
|
4534
4788
|
|
|
4789
|
+
export type ListReviewsData = {
|
|
4790
|
+
body?: never;
|
|
4791
|
+
path?: never;
|
|
4792
|
+
query?: {
|
|
4793
|
+
repository_key?: string;
|
|
4794
|
+
status?: string;
|
|
4795
|
+
page?: number;
|
|
4796
|
+
per_page?: number;
|
|
4797
|
+
};
|
|
4798
|
+
url: '/api/v1/admin/age-gate/reviews';
|
|
4799
|
+
};
|
|
4800
|
+
|
|
4801
|
+
export type ListReviewsResponses = {
|
|
4802
|
+
200: AgeGateReviewListResponse;
|
|
4803
|
+
};
|
|
4804
|
+
|
|
4805
|
+
export type ListReviewsResponse = ListReviewsResponses[keyof ListReviewsResponses];
|
|
4806
|
+
|
|
4807
|
+
export type GetReviewData = {
|
|
4808
|
+
body?: never;
|
|
4809
|
+
path: {
|
|
4810
|
+
id: string;
|
|
4811
|
+
};
|
|
4812
|
+
query?: never;
|
|
4813
|
+
url: '/api/v1/admin/age-gate/reviews/{id}';
|
|
4814
|
+
};
|
|
4815
|
+
|
|
4816
|
+
export type GetReviewResponses = {
|
|
4817
|
+
200: AgeGateReviewResponse;
|
|
4818
|
+
};
|
|
4819
|
+
|
|
4820
|
+
export type GetReviewResponse = GetReviewResponses[keyof GetReviewResponses];
|
|
4821
|
+
|
|
4822
|
+
export type ApproveReviewData = {
|
|
4823
|
+
body: ReviewActionRequest;
|
|
4824
|
+
path: {
|
|
4825
|
+
id: string;
|
|
4826
|
+
};
|
|
4827
|
+
query?: never;
|
|
4828
|
+
url: '/api/v1/admin/age-gate/reviews/{id}/approve';
|
|
4829
|
+
};
|
|
4830
|
+
|
|
4831
|
+
export type ApproveReviewResponses = {
|
|
4832
|
+
200: AgeGateReviewResponse;
|
|
4833
|
+
};
|
|
4834
|
+
|
|
4835
|
+
export type ApproveReviewResponse = ApproveReviewResponses[keyof ApproveReviewResponses];
|
|
4836
|
+
|
|
4837
|
+
export type RejectReviewData = {
|
|
4838
|
+
body: ReviewActionRequest;
|
|
4839
|
+
path: {
|
|
4840
|
+
id: string;
|
|
4841
|
+
};
|
|
4842
|
+
query?: never;
|
|
4843
|
+
url: '/api/v1/admin/age-gate/reviews/{id}/reject';
|
|
4844
|
+
};
|
|
4845
|
+
|
|
4846
|
+
export type RejectReviewResponses = {
|
|
4847
|
+
200: AgeGateReviewResponse;
|
|
4848
|
+
};
|
|
4849
|
+
|
|
4850
|
+
export type RejectReviewResponse = RejectReviewResponses[keyof RejectReviewResponses];
|
|
4851
|
+
|
|
4535
4852
|
export type GetStaleArtifactsData = {
|
|
4536
4853
|
body?: never;
|
|
4537
4854
|
path?: never;
|
|
@@ -4759,121 +5076,595 @@ export type GetBackupData = {
|
|
|
4759
5076
|
|
|
4760
5077
|
export type GetBackupErrors = {
|
|
4761
5078
|
/**
|
|
4762
|
-
* Backup not found
|
|
5079
|
+
* Backup not found
|
|
5080
|
+
*/
|
|
5081
|
+
404: unknown;
|
|
5082
|
+
/**
|
|
5083
|
+
* Internal server error
|
|
5084
|
+
*/
|
|
5085
|
+
500: unknown;
|
|
5086
|
+
};
|
|
5087
|
+
|
|
5088
|
+
export type GetBackupResponses = {
|
|
5089
|
+
/**
|
|
5090
|
+
* Backup details
|
|
5091
|
+
*/
|
|
5092
|
+
200: BackupResponse;
|
|
5093
|
+
};
|
|
5094
|
+
|
|
5095
|
+
export type GetBackupResponse = GetBackupResponses[keyof GetBackupResponses];
|
|
5096
|
+
|
|
5097
|
+
export type CancelBackupData = {
|
|
5098
|
+
body?: never;
|
|
5099
|
+
path: {
|
|
5100
|
+
/**
|
|
5101
|
+
* Backup ID
|
|
5102
|
+
*/
|
|
5103
|
+
id: string;
|
|
5104
|
+
};
|
|
5105
|
+
query?: never;
|
|
5106
|
+
url: '/api/v1/admin/backups/{id}/cancel';
|
|
5107
|
+
};
|
|
5108
|
+
|
|
5109
|
+
export type CancelBackupErrors = {
|
|
5110
|
+
/**
|
|
5111
|
+
* Backup not found
|
|
5112
|
+
*/
|
|
5113
|
+
404: unknown;
|
|
5114
|
+
/**
|
|
5115
|
+
* Backup is not in a cancellable state
|
|
5116
|
+
*/
|
|
5117
|
+
409: unknown;
|
|
5118
|
+
/**
|
|
5119
|
+
* Internal server error
|
|
5120
|
+
*/
|
|
5121
|
+
500: unknown;
|
|
5122
|
+
};
|
|
5123
|
+
|
|
5124
|
+
export type CancelBackupResponses = {
|
|
5125
|
+
/**
|
|
5126
|
+
* Backup cancelled
|
|
5127
|
+
*/
|
|
5128
|
+
200: unknown;
|
|
5129
|
+
};
|
|
5130
|
+
|
|
5131
|
+
export type ExecuteBackupData = {
|
|
5132
|
+
body?: never;
|
|
5133
|
+
path: {
|
|
5134
|
+
/**
|
|
5135
|
+
* Backup ID
|
|
5136
|
+
*/
|
|
5137
|
+
id: string;
|
|
5138
|
+
};
|
|
5139
|
+
query?: never;
|
|
5140
|
+
url: '/api/v1/admin/backups/{id}/execute';
|
|
5141
|
+
};
|
|
5142
|
+
|
|
5143
|
+
export type ExecuteBackupErrors = {
|
|
5144
|
+
/**
|
|
5145
|
+
* Backup not found
|
|
5146
|
+
*/
|
|
5147
|
+
404: unknown;
|
|
5148
|
+
/**
|
|
5149
|
+
* Internal server error
|
|
5150
|
+
*/
|
|
5151
|
+
500: unknown;
|
|
5152
|
+
};
|
|
5153
|
+
|
|
5154
|
+
export type ExecuteBackupResponses = {
|
|
5155
|
+
/**
|
|
5156
|
+
* Backup executed
|
|
5157
|
+
*/
|
|
5158
|
+
200: BackupResponse;
|
|
5159
|
+
};
|
|
5160
|
+
|
|
5161
|
+
export type ExecuteBackupResponse = ExecuteBackupResponses[keyof ExecuteBackupResponses];
|
|
5162
|
+
|
|
5163
|
+
export type RestoreBackupData = {
|
|
5164
|
+
body: RestoreRequest;
|
|
5165
|
+
path: {
|
|
5166
|
+
/**
|
|
5167
|
+
* Backup ID
|
|
5168
|
+
*/
|
|
5169
|
+
id: string;
|
|
5170
|
+
};
|
|
5171
|
+
query?: never;
|
|
5172
|
+
url: '/api/v1/admin/backups/{id}/restore';
|
|
5173
|
+
};
|
|
5174
|
+
|
|
5175
|
+
export type RestoreBackupErrors = {
|
|
5176
|
+
/**
|
|
5177
|
+
* Backup not found
|
|
5178
|
+
*/
|
|
5179
|
+
404: unknown;
|
|
5180
|
+
/**
|
|
5181
|
+
* Internal server error
|
|
5182
|
+
*/
|
|
5183
|
+
500: unknown;
|
|
5184
|
+
};
|
|
5185
|
+
|
|
5186
|
+
export type RestoreBackupResponses = {
|
|
5187
|
+
/**
|
|
5188
|
+
* Backup restored
|
|
5189
|
+
*/
|
|
5190
|
+
200: RestoreResponse;
|
|
5191
|
+
};
|
|
5192
|
+
|
|
5193
|
+
export type RestoreBackupResponse = RestoreBackupResponses[keyof RestoreBackupResponses];
|
|
5194
|
+
|
|
5195
|
+
export type CiOidcListProvidersData = {
|
|
5196
|
+
body?: never;
|
|
5197
|
+
path?: never;
|
|
5198
|
+
query?: never;
|
|
5199
|
+
url: '/api/v1/admin/ci-oidc';
|
|
5200
|
+
};
|
|
5201
|
+
|
|
5202
|
+
export type CiOidcListProvidersErrors = {
|
|
5203
|
+
/**
|
|
5204
|
+
* Unauthorized
|
|
5205
|
+
*/
|
|
5206
|
+
401: ErrorResponse;
|
|
5207
|
+
/**
|
|
5208
|
+
* Admin required
|
|
5209
|
+
*/
|
|
5210
|
+
403: ErrorResponse;
|
|
5211
|
+
};
|
|
5212
|
+
|
|
5213
|
+
export type CiOidcListProvidersError = CiOidcListProvidersErrors[keyof CiOidcListProvidersErrors];
|
|
5214
|
+
|
|
5215
|
+
export type CiOidcListProvidersResponses = {
|
|
5216
|
+
/**
|
|
5217
|
+
* List CI OIDC providers
|
|
5218
|
+
*/
|
|
5219
|
+
200: Array<CiOidcProviderResponse>;
|
|
5220
|
+
};
|
|
5221
|
+
|
|
5222
|
+
export type CiOidcListProvidersResponse = CiOidcListProvidersResponses[keyof CiOidcListProvidersResponses];
|
|
5223
|
+
|
|
5224
|
+
export type CreateProviderData = {
|
|
5225
|
+
body: CreateCiOidcProviderRequest;
|
|
5226
|
+
path?: never;
|
|
5227
|
+
query?: never;
|
|
5228
|
+
url: '/api/v1/admin/ci-oidc';
|
|
5229
|
+
};
|
|
5230
|
+
|
|
5231
|
+
export type CreateProviderErrors = {
|
|
5232
|
+
/**
|
|
5233
|
+
* Invalid request
|
|
5234
|
+
*/
|
|
5235
|
+
400: ErrorResponse;
|
|
5236
|
+
/**
|
|
5237
|
+
* Unauthorized
|
|
5238
|
+
*/
|
|
5239
|
+
401: ErrorResponse;
|
|
5240
|
+
/**
|
|
5241
|
+
* Admin required
|
|
5242
|
+
*/
|
|
5243
|
+
403: ErrorResponse;
|
|
5244
|
+
};
|
|
5245
|
+
|
|
5246
|
+
export type CreateProviderError = CreateProviderErrors[keyof CreateProviderErrors];
|
|
5247
|
+
|
|
5248
|
+
export type CreateProviderResponses = {
|
|
5249
|
+
/**
|
|
5250
|
+
* Create CI OIDC provider
|
|
5251
|
+
*/
|
|
5252
|
+
200: CiOidcProviderResponse;
|
|
5253
|
+
};
|
|
5254
|
+
|
|
5255
|
+
export type CreateProviderResponse = CreateProviderResponses[keyof CreateProviderResponses];
|
|
5256
|
+
|
|
5257
|
+
export type DeleteProviderData = {
|
|
5258
|
+
body?: never;
|
|
5259
|
+
path: {
|
|
5260
|
+
/**
|
|
5261
|
+
* CI OIDC provider ID
|
|
5262
|
+
*/
|
|
5263
|
+
id: string;
|
|
5264
|
+
};
|
|
5265
|
+
query?: never;
|
|
5266
|
+
url: '/api/v1/admin/ci-oidc/{id}';
|
|
5267
|
+
};
|
|
5268
|
+
|
|
5269
|
+
export type DeleteProviderErrors = {
|
|
5270
|
+
/**
|
|
5271
|
+
* Unauthorized
|
|
5272
|
+
*/
|
|
5273
|
+
401: ErrorResponse;
|
|
5274
|
+
/**
|
|
5275
|
+
* Admin required
|
|
5276
|
+
*/
|
|
5277
|
+
403: ErrorResponse;
|
|
5278
|
+
/**
|
|
5279
|
+
* Provider not found
|
|
5280
|
+
*/
|
|
5281
|
+
404: ErrorResponse;
|
|
5282
|
+
};
|
|
5283
|
+
|
|
5284
|
+
export type DeleteProviderError = DeleteProviderErrors[keyof DeleteProviderErrors];
|
|
5285
|
+
|
|
5286
|
+
export type DeleteProviderResponses = {
|
|
5287
|
+
/**
|
|
5288
|
+
* Delete CI OIDC provider
|
|
5289
|
+
*/
|
|
5290
|
+
200: unknown;
|
|
5291
|
+
};
|
|
5292
|
+
|
|
5293
|
+
export type GetProviderData = {
|
|
5294
|
+
body?: never;
|
|
5295
|
+
path: {
|
|
5296
|
+
/**
|
|
5297
|
+
* CI OIDC provider ID
|
|
5298
|
+
*/
|
|
5299
|
+
id: string;
|
|
5300
|
+
};
|
|
5301
|
+
query?: never;
|
|
5302
|
+
url: '/api/v1/admin/ci-oidc/{id}';
|
|
5303
|
+
};
|
|
5304
|
+
|
|
5305
|
+
export type GetProviderErrors = {
|
|
5306
|
+
/**
|
|
5307
|
+
* Unauthorized
|
|
5308
|
+
*/
|
|
5309
|
+
401: ErrorResponse;
|
|
5310
|
+
/**
|
|
5311
|
+
* Admin required
|
|
5312
|
+
*/
|
|
5313
|
+
403: ErrorResponse;
|
|
5314
|
+
/**
|
|
5315
|
+
* Provider not found
|
|
5316
|
+
*/
|
|
5317
|
+
404: ErrorResponse;
|
|
5318
|
+
};
|
|
5319
|
+
|
|
5320
|
+
export type GetProviderError = GetProviderErrors[keyof GetProviderErrors];
|
|
5321
|
+
|
|
5322
|
+
export type GetProviderResponses = {
|
|
5323
|
+
/**
|
|
5324
|
+
* Get CI OIDC provider
|
|
5325
|
+
*/
|
|
5326
|
+
200: CiOidcProviderResponse;
|
|
5327
|
+
};
|
|
5328
|
+
|
|
5329
|
+
export type GetProviderResponse = GetProviderResponses[keyof GetProviderResponses];
|
|
5330
|
+
|
|
5331
|
+
export type UpdateProviderData = {
|
|
5332
|
+
body: UpdateCiOidcProviderRequest;
|
|
5333
|
+
path: {
|
|
5334
|
+
/**
|
|
5335
|
+
* CI OIDC provider ID
|
|
5336
|
+
*/
|
|
5337
|
+
id: string;
|
|
5338
|
+
};
|
|
5339
|
+
query?: never;
|
|
5340
|
+
url: '/api/v1/admin/ci-oidc/{id}';
|
|
5341
|
+
};
|
|
5342
|
+
|
|
5343
|
+
export type UpdateProviderErrors = {
|
|
5344
|
+
/**
|
|
5345
|
+
* Invalid request
|
|
5346
|
+
*/
|
|
5347
|
+
400: ErrorResponse;
|
|
5348
|
+
/**
|
|
5349
|
+
* Unauthorized
|
|
5350
|
+
*/
|
|
5351
|
+
401: ErrorResponse;
|
|
5352
|
+
/**
|
|
5353
|
+
* Admin required
|
|
5354
|
+
*/
|
|
5355
|
+
403: ErrorResponse;
|
|
5356
|
+
/**
|
|
5357
|
+
* Provider not found
|
|
5358
|
+
*/
|
|
5359
|
+
404: ErrorResponse;
|
|
5360
|
+
};
|
|
5361
|
+
|
|
5362
|
+
export type UpdateProviderError = UpdateProviderErrors[keyof UpdateProviderErrors];
|
|
5363
|
+
|
|
5364
|
+
export type UpdateProviderResponses = {
|
|
5365
|
+
/**
|
|
5366
|
+
* Update CI OIDC provider
|
|
5367
|
+
*/
|
|
5368
|
+
200: CiOidcProviderResponse;
|
|
5369
|
+
};
|
|
5370
|
+
|
|
5371
|
+
export type UpdateProviderResponse = UpdateProviderResponses[keyof UpdateProviderResponses];
|
|
5372
|
+
|
|
5373
|
+
export type ListMappingsData = {
|
|
5374
|
+
body?: never;
|
|
5375
|
+
path: {
|
|
5376
|
+
/**
|
|
5377
|
+
* CI OIDC provider ID
|
|
5378
|
+
*/
|
|
5379
|
+
id: string;
|
|
5380
|
+
};
|
|
5381
|
+
query?: never;
|
|
5382
|
+
url: '/api/v1/admin/ci-oidc/{id}/mappings';
|
|
5383
|
+
};
|
|
5384
|
+
|
|
5385
|
+
export type ListMappingsErrors = {
|
|
5386
|
+
/**
|
|
5387
|
+
* Unauthorized
|
|
5388
|
+
*/
|
|
5389
|
+
401: ErrorResponse;
|
|
5390
|
+
/**
|
|
5391
|
+
* Admin required
|
|
5392
|
+
*/
|
|
5393
|
+
403: ErrorResponse;
|
|
5394
|
+
/**
|
|
5395
|
+
* Provider not found
|
|
5396
|
+
*/
|
|
5397
|
+
404: ErrorResponse;
|
|
5398
|
+
};
|
|
5399
|
+
|
|
5400
|
+
export type ListMappingsError = ListMappingsErrors[keyof ListMappingsErrors];
|
|
5401
|
+
|
|
5402
|
+
export type ListMappingsResponses = {
|
|
5403
|
+
/**
|
|
5404
|
+
* List identity mappings for provider
|
|
5405
|
+
*/
|
|
5406
|
+
200: Array<CiOidcMappingResponse>;
|
|
5407
|
+
};
|
|
5408
|
+
|
|
5409
|
+
export type ListMappingsResponse = ListMappingsResponses[keyof ListMappingsResponses];
|
|
5410
|
+
|
|
5411
|
+
export type CreateMappingData = {
|
|
5412
|
+
body: CreateCiOidcMappingRequest;
|
|
5413
|
+
path: {
|
|
5414
|
+
/**
|
|
5415
|
+
* CI OIDC provider ID
|
|
5416
|
+
*/
|
|
5417
|
+
id: string;
|
|
5418
|
+
};
|
|
5419
|
+
query?: never;
|
|
5420
|
+
url: '/api/v1/admin/ci-oidc/{id}/mappings';
|
|
5421
|
+
};
|
|
5422
|
+
|
|
5423
|
+
export type CreateMappingErrors = {
|
|
5424
|
+
/**
|
|
5425
|
+
* Invalid request
|
|
5426
|
+
*/
|
|
5427
|
+
400: ErrorResponse;
|
|
5428
|
+
/**
|
|
5429
|
+
* Unauthorized
|
|
5430
|
+
*/
|
|
5431
|
+
401: ErrorResponse;
|
|
5432
|
+
/**
|
|
5433
|
+
* Admin required
|
|
5434
|
+
*/
|
|
5435
|
+
403: ErrorResponse;
|
|
5436
|
+
/**
|
|
5437
|
+
* Provider not found
|
|
5438
|
+
*/
|
|
5439
|
+
404: ErrorResponse;
|
|
5440
|
+
};
|
|
5441
|
+
|
|
5442
|
+
export type CreateMappingError = CreateMappingErrors[keyof CreateMappingErrors];
|
|
5443
|
+
|
|
5444
|
+
export type CreateMappingResponses = {
|
|
5445
|
+
/**
|
|
5446
|
+
* Create identity mapping
|
|
5447
|
+
*/
|
|
5448
|
+
200: CiOidcMappingResponse;
|
|
5449
|
+
};
|
|
5450
|
+
|
|
5451
|
+
export type CreateMappingResponse = CreateMappingResponses[keyof CreateMappingResponses];
|
|
5452
|
+
|
|
5453
|
+
export type DeleteMappingData = {
|
|
5454
|
+
body?: never;
|
|
5455
|
+
path: {
|
|
5456
|
+
/**
|
|
5457
|
+
* CI OIDC provider ID
|
|
5458
|
+
*/
|
|
5459
|
+
id: string;
|
|
5460
|
+
/**
|
|
5461
|
+
* Identity mapping ID
|
|
5462
|
+
*/
|
|
5463
|
+
mid: string;
|
|
5464
|
+
};
|
|
5465
|
+
query?: never;
|
|
5466
|
+
url: '/api/v1/admin/ci-oidc/{id}/mappings/{mid}';
|
|
5467
|
+
};
|
|
5468
|
+
|
|
5469
|
+
export type DeleteMappingErrors = {
|
|
5470
|
+
/**
|
|
5471
|
+
* Unauthorized
|
|
5472
|
+
*/
|
|
5473
|
+
401: ErrorResponse;
|
|
5474
|
+
/**
|
|
5475
|
+
* Admin required
|
|
5476
|
+
*/
|
|
5477
|
+
403: ErrorResponse;
|
|
5478
|
+
/**
|
|
5479
|
+
* Mapping not found
|
|
5480
|
+
*/
|
|
5481
|
+
404: ErrorResponse;
|
|
5482
|
+
};
|
|
5483
|
+
|
|
5484
|
+
export type DeleteMappingError = DeleteMappingErrors[keyof DeleteMappingErrors];
|
|
5485
|
+
|
|
5486
|
+
export type DeleteMappingResponses = {
|
|
5487
|
+
/**
|
|
5488
|
+
* Delete identity mapping
|
|
5489
|
+
*/
|
|
5490
|
+
200: unknown;
|
|
5491
|
+
};
|
|
5492
|
+
|
|
5493
|
+
export type GetMappingData = {
|
|
5494
|
+
body?: never;
|
|
5495
|
+
path: {
|
|
5496
|
+
/**
|
|
5497
|
+
* CI OIDC provider ID
|
|
5498
|
+
*/
|
|
5499
|
+
id: string;
|
|
5500
|
+
/**
|
|
5501
|
+
* Identity mapping ID
|
|
5502
|
+
*/
|
|
5503
|
+
mid: string;
|
|
5504
|
+
};
|
|
5505
|
+
query?: never;
|
|
5506
|
+
url: '/api/v1/admin/ci-oidc/{id}/mappings/{mid}';
|
|
5507
|
+
};
|
|
5508
|
+
|
|
5509
|
+
export type GetMappingErrors = {
|
|
5510
|
+
/**
|
|
5511
|
+
* Unauthorized
|
|
4763
5512
|
*/
|
|
4764
|
-
|
|
5513
|
+
401: ErrorResponse;
|
|
4765
5514
|
/**
|
|
4766
|
-
*
|
|
5515
|
+
* Admin required
|
|
4767
5516
|
*/
|
|
4768
|
-
|
|
5517
|
+
403: ErrorResponse;
|
|
5518
|
+
/**
|
|
5519
|
+
* Mapping not found
|
|
5520
|
+
*/
|
|
5521
|
+
404: ErrorResponse;
|
|
4769
5522
|
};
|
|
4770
5523
|
|
|
4771
|
-
export type
|
|
5524
|
+
export type GetMappingError = GetMappingErrors[keyof GetMappingErrors];
|
|
5525
|
+
|
|
5526
|
+
export type GetMappingResponses = {
|
|
4772
5527
|
/**
|
|
4773
|
-
*
|
|
5528
|
+
* Get identity mapping
|
|
4774
5529
|
*/
|
|
4775
|
-
200:
|
|
5530
|
+
200: CiOidcMappingResponse;
|
|
4776
5531
|
};
|
|
4777
5532
|
|
|
4778
|
-
export type
|
|
5533
|
+
export type GetMappingResponse = GetMappingResponses[keyof GetMappingResponses];
|
|
4779
5534
|
|
|
4780
|
-
export type
|
|
4781
|
-
body
|
|
5535
|
+
export type UpdateMappingData = {
|
|
5536
|
+
body: UpdateCiOidcMappingRequest;
|
|
4782
5537
|
path: {
|
|
4783
5538
|
/**
|
|
4784
|
-
*
|
|
5539
|
+
* CI OIDC provider ID
|
|
4785
5540
|
*/
|
|
4786
5541
|
id: string;
|
|
5542
|
+
/**
|
|
5543
|
+
* Identity mapping ID
|
|
5544
|
+
*/
|
|
5545
|
+
mid: string;
|
|
4787
5546
|
};
|
|
4788
5547
|
query?: never;
|
|
4789
|
-
url: '/api/v1/admin/
|
|
5548
|
+
url: '/api/v1/admin/ci-oidc/{id}/mappings/{mid}';
|
|
4790
5549
|
};
|
|
4791
5550
|
|
|
4792
|
-
export type
|
|
5551
|
+
export type UpdateMappingErrors = {
|
|
4793
5552
|
/**
|
|
4794
|
-
*
|
|
5553
|
+
* Invalid request
|
|
4795
5554
|
*/
|
|
4796
|
-
|
|
5555
|
+
400: ErrorResponse;
|
|
4797
5556
|
/**
|
|
4798
|
-
*
|
|
5557
|
+
* Unauthorized
|
|
4799
5558
|
*/
|
|
4800
|
-
|
|
5559
|
+
401: ErrorResponse;
|
|
4801
5560
|
/**
|
|
4802
|
-
*
|
|
5561
|
+
* Admin required
|
|
4803
5562
|
*/
|
|
4804
|
-
|
|
5563
|
+
403: ErrorResponse;
|
|
5564
|
+
/**
|
|
5565
|
+
* Mapping not found
|
|
5566
|
+
*/
|
|
5567
|
+
404: ErrorResponse;
|
|
4805
5568
|
};
|
|
4806
5569
|
|
|
4807
|
-
export type
|
|
5570
|
+
export type UpdateMappingError = UpdateMappingErrors[keyof UpdateMappingErrors];
|
|
5571
|
+
|
|
5572
|
+
export type UpdateMappingResponses = {
|
|
4808
5573
|
/**
|
|
4809
|
-
*
|
|
5574
|
+
* Update identity mapping
|
|
4810
5575
|
*/
|
|
4811
|
-
200:
|
|
5576
|
+
200: CiOidcMappingResponse;
|
|
4812
5577
|
};
|
|
4813
5578
|
|
|
4814
|
-
export type
|
|
4815
|
-
|
|
5579
|
+
export type UpdateMappingResponse = UpdateMappingResponses[keyof UpdateMappingResponses];
|
|
5580
|
+
|
|
5581
|
+
export type ToggleMappingData = {
|
|
5582
|
+
body: CiOidcToggleRequest;
|
|
4816
5583
|
path: {
|
|
4817
5584
|
/**
|
|
4818
|
-
*
|
|
5585
|
+
* CI OIDC provider ID
|
|
4819
5586
|
*/
|
|
4820
5587
|
id: string;
|
|
5588
|
+
/**
|
|
5589
|
+
* Identity mapping ID
|
|
5590
|
+
*/
|
|
5591
|
+
mid: string;
|
|
4821
5592
|
};
|
|
4822
5593
|
query?: never;
|
|
4823
|
-
url: '/api/v1/admin/
|
|
5594
|
+
url: '/api/v1/admin/ci-oidc/{id}/mappings/{mid}/toggle';
|
|
4824
5595
|
};
|
|
4825
5596
|
|
|
4826
|
-
export type
|
|
5597
|
+
export type ToggleMappingErrors = {
|
|
4827
5598
|
/**
|
|
4828
|
-
*
|
|
5599
|
+
* Invalid request
|
|
4829
5600
|
*/
|
|
4830
|
-
|
|
5601
|
+
400: ErrorResponse;
|
|
4831
5602
|
/**
|
|
4832
|
-
*
|
|
5603
|
+
* Unauthorized
|
|
4833
5604
|
*/
|
|
4834
|
-
|
|
5605
|
+
401: ErrorResponse;
|
|
5606
|
+
/**
|
|
5607
|
+
* Admin required
|
|
5608
|
+
*/
|
|
5609
|
+
403: ErrorResponse;
|
|
5610
|
+
/**
|
|
5611
|
+
* Mapping not found
|
|
5612
|
+
*/
|
|
5613
|
+
404: ErrorResponse;
|
|
4835
5614
|
};
|
|
4836
5615
|
|
|
4837
|
-
export type
|
|
5616
|
+
export type ToggleMappingError = ToggleMappingErrors[keyof ToggleMappingErrors];
|
|
5617
|
+
|
|
5618
|
+
export type ToggleMappingResponses = {
|
|
4838
5619
|
/**
|
|
4839
|
-
*
|
|
5620
|
+
* Toggle identity mapping
|
|
4840
5621
|
*/
|
|
4841
|
-
200:
|
|
5622
|
+
200: CiOidcMappingResponse;
|
|
4842
5623
|
};
|
|
4843
5624
|
|
|
4844
|
-
export type
|
|
5625
|
+
export type ToggleMappingResponse = ToggleMappingResponses[keyof ToggleMappingResponses];
|
|
4845
5626
|
|
|
4846
|
-
export type
|
|
4847
|
-
body:
|
|
5627
|
+
export type ToggleProviderData = {
|
|
5628
|
+
body: CiOidcToggleRequest;
|
|
4848
5629
|
path: {
|
|
4849
5630
|
/**
|
|
4850
|
-
*
|
|
5631
|
+
* CI OIDC provider ID
|
|
4851
5632
|
*/
|
|
4852
5633
|
id: string;
|
|
4853
5634
|
};
|
|
4854
5635
|
query?: never;
|
|
4855
|
-
url: '/api/v1/admin/
|
|
5636
|
+
url: '/api/v1/admin/ci-oidc/{id}/toggle';
|
|
4856
5637
|
};
|
|
4857
5638
|
|
|
4858
|
-
export type
|
|
5639
|
+
export type ToggleProviderErrors = {
|
|
4859
5640
|
/**
|
|
4860
|
-
*
|
|
5641
|
+
* Invalid request
|
|
4861
5642
|
*/
|
|
4862
|
-
|
|
5643
|
+
400: ErrorResponse;
|
|
4863
5644
|
/**
|
|
4864
|
-
*
|
|
5645
|
+
* Unauthorized
|
|
4865
5646
|
*/
|
|
4866
|
-
|
|
5647
|
+
401: ErrorResponse;
|
|
5648
|
+
/**
|
|
5649
|
+
* Admin required
|
|
5650
|
+
*/
|
|
5651
|
+
403: ErrorResponse;
|
|
5652
|
+
/**
|
|
5653
|
+
* Provider not found
|
|
5654
|
+
*/
|
|
5655
|
+
404: ErrorResponse;
|
|
4867
5656
|
};
|
|
4868
5657
|
|
|
4869
|
-
export type
|
|
5658
|
+
export type ToggleProviderError = ToggleProviderErrors[keyof ToggleProviderErrors];
|
|
5659
|
+
|
|
5660
|
+
export type ToggleProviderResponses = {
|
|
4870
5661
|
/**
|
|
4871
|
-
*
|
|
5662
|
+
* Toggle CI OIDC provider
|
|
4872
5663
|
*/
|
|
4873
|
-
200:
|
|
5664
|
+
200: CiOidcProviderResponse;
|
|
4874
5665
|
};
|
|
4875
5666
|
|
|
4876
|
-
export type
|
|
5667
|
+
export type ToggleProviderResponse = ToggleProviderResponses[keyof ToggleProviderResponses];
|
|
4877
5668
|
|
|
4878
5669
|
export type RunCleanupData = {
|
|
4879
5670
|
body: CleanupRequest;
|
|
@@ -4917,7 +5708,7 @@ export type ListLifecyclePoliciesResponses = {
|
|
|
4917
5708
|
export type ListLifecyclePoliciesResponse = ListLifecyclePoliciesResponses[keyof ListLifecyclePoliciesResponses];
|
|
4918
5709
|
|
|
4919
5710
|
export type CreateLifecyclePolicyData = {
|
|
4920
|
-
body:
|
|
5711
|
+
body: CreateLifecyclePolicyRequest;
|
|
4921
5712
|
path?: never;
|
|
4922
5713
|
query?: never;
|
|
4923
5714
|
url: '/api/v1/admin/lifecycle';
|
|
@@ -4989,7 +5780,7 @@ export type GetLifecyclePolicyResponses = {
|
|
|
4989
5780
|
export type GetLifecyclePolicyResponse = GetLifecyclePolicyResponses[keyof GetLifecyclePolicyResponses];
|
|
4990
5781
|
|
|
4991
5782
|
export type UpdateLifecyclePolicyData = {
|
|
4992
|
-
body:
|
|
5783
|
+
body: UpdateLifecyclePolicyRequest;
|
|
4993
5784
|
path: {
|
|
4994
5785
|
/**
|
|
4995
5786
|
* Policy ID
|
|
@@ -5205,7 +5996,7 @@ export type TriggerSearchReindexResponses = {
|
|
|
5205
5996
|
/**
|
|
5206
5997
|
* Reindex started in background
|
|
5207
5998
|
*/
|
|
5208
|
-
200:
|
|
5999
|
+
200: SearchReindexResponse;
|
|
5209
6000
|
};
|
|
5210
6001
|
|
|
5211
6002
|
export type TriggerSearchReindexResponse = TriggerSearchReindexResponses[keyof TriggerSearchReindexResponses];
|
|
@@ -6510,6 +7301,35 @@ export type GetArtifactStatsResponses = {
|
|
|
6510
7301
|
|
|
6511
7302
|
export type GetArtifactStatsResponse = GetArtifactStatsResponses[keyof GetArtifactStatsResponses];
|
|
6512
7303
|
|
|
7304
|
+
export type ExchangeCiTokenData = {
|
|
7305
|
+
body: CiTokenRequest;
|
|
7306
|
+
path?: never;
|
|
7307
|
+
query?: never;
|
|
7308
|
+
url: '/api/v1/auth/ci/token';
|
|
7309
|
+
};
|
|
7310
|
+
|
|
7311
|
+
export type ExchangeCiTokenErrors = {
|
|
7312
|
+
/**
|
|
7313
|
+
* Invalid CI token or provider configuration
|
|
7314
|
+
*/
|
|
7315
|
+
401: ErrorResponse;
|
|
7316
|
+
/**
|
|
7317
|
+
* CI OIDC provider not found
|
|
7318
|
+
*/
|
|
7319
|
+
404: ErrorResponse;
|
|
7320
|
+
};
|
|
7321
|
+
|
|
7322
|
+
export type ExchangeCiTokenError = ExchangeCiTokenErrors[keyof ExchangeCiTokenErrors];
|
|
7323
|
+
|
|
7324
|
+
export type ExchangeCiTokenResponses = {
|
|
7325
|
+
/**
|
|
7326
|
+
* CI token exchange successful
|
|
7327
|
+
*/
|
|
7328
|
+
200: CiTokenResponse;
|
|
7329
|
+
};
|
|
7330
|
+
|
|
7331
|
+
export type ExchangeCiTokenResponse = ExchangeCiTokenResponses[keyof ExchangeCiTokenResponses];
|
|
7332
|
+
|
|
6513
7333
|
export type LoginData = {
|
|
6514
7334
|
body: LoginRequest;
|
|
6515
7335
|
path?: never;
|
|
@@ -6968,6 +7788,13 @@ export type ListBuildsData = {
|
|
|
6968
7788
|
url: '/api/v1/builds';
|
|
6969
7789
|
};
|
|
6970
7790
|
|
|
7791
|
+
export type ListBuildsErrors = {
|
|
7792
|
+
/**
|
|
7793
|
+
* Authentication required
|
|
7794
|
+
*/
|
|
7795
|
+
401: unknown;
|
|
7796
|
+
};
|
|
7797
|
+
|
|
6971
7798
|
export type ListBuildsResponses = {
|
|
6972
7799
|
/**
|
|
6973
7800
|
* List of builds
|
|
@@ -7010,6 +7837,13 @@ export type GetBuildDiffData = {
|
|
|
7010
7837
|
url: '/api/v1/builds/diff';
|
|
7011
7838
|
};
|
|
7012
7839
|
|
|
7840
|
+
export type GetBuildDiffErrors = {
|
|
7841
|
+
/**
|
|
7842
|
+
* Authentication required
|
|
7843
|
+
*/
|
|
7844
|
+
401: unknown;
|
|
7845
|
+
};
|
|
7846
|
+
|
|
7013
7847
|
export type GetBuildDiffResponses = {
|
|
7014
7848
|
/**
|
|
7015
7849
|
* Diff between two builds
|
|
@@ -7032,6 +7866,10 @@ export type GetBuildData = {
|
|
|
7032
7866
|
};
|
|
7033
7867
|
|
|
7034
7868
|
export type GetBuildErrors = {
|
|
7869
|
+
/**
|
|
7870
|
+
* Authentication required
|
|
7871
|
+
*/
|
|
7872
|
+
401: unknown;
|
|
7035
7873
|
/**
|
|
7036
7874
|
* Build not found
|
|
7037
7875
|
*/
|
|
@@ -7124,7 +7962,7 @@ export type ListCurationPackagesData = {
|
|
|
7124
7962
|
};
|
|
7125
7963
|
|
|
7126
7964
|
export type ListCurationPackagesResponses = {
|
|
7127
|
-
200: Array<
|
|
7965
|
+
200: Array<CurationPackageResponse>;
|
|
7128
7966
|
};
|
|
7129
7967
|
|
|
7130
7968
|
export type ListCurationPackagesResponse = ListCurationPackagesResponses[keyof ListCurationPackagesResponses];
|
|
@@ -7181,7 +8019,7 @@ export type GetCurationPackageData = {
|
|
|
7181
8019
|
};
|
|
7182
8020
|
|
|
7183
8021
|
export type GetCurationPackageResponses = {
|
|
7184
|
-
200:
|
|
8022
|
+
200: CurationPackageResponse;
|
|
7185
8023
|
};
|
|
7186
8024
|
|
|
7187
8025
|
export type GetCurationPackageResponse = GetCurationPackageResponses[keyof GetCurationPackageResponses];
|
|
@@ -7199,7 +8037,7 @@ export type ApprovePackageData = {
|
|
|
7199
8037
|
};
|
|
7200
8038
|
|
|
7201
8039
|
export type ApprovePackageResponses = {
|
|
7202
|
-
200:
|
|
8040
|
+
200: CurationPackageResponse;
|
|
7203
8041
|
};
|
|
7204
8042
|
|
|
7205
8043
|
export type ApprovePackageResponse = ApprovePackageResponses[keyof ApprovePackageResponses];
|
|
@@ -7217,7 +8055,7 @@ export type BlockPackageData = {
|
|
|
7217
8055
|
};
|
|
7218
8056
|
|
|
7219
8057
|
export type BlockPackageResponses = {
|
|
7220
|
-
200:
|
|
8058
|
+
200: CurationPackageResponse;
|
|
7221
8059
|
};
|
|
7222
8060
|
|
|
7223
8061
|
export type BlockPackageResponse = BlockPackageResponses[keyof BlockPackageResponses];
|
|
@@ -10609,13 +11447,24 @@ export type SetReleaseTargetResponse = SetReleaseTargetResponses[keyof SetReleas
|
|
|
10609
11447
|
export type ListChecksData = {
|
|
10610
11448
|
body?: never;
|
|
10611
11449
|
path?: never;
|
|
10612
|
-
query
|
|
10613
|
-
|
|
10614
|
-
|
|
11450
|
+
query: {
|
|
11451
|
+
/**
|
|
11452
|
+
* Artifact ID to list quality check results for
|
|
11453
|
+
*/
|
|
11454
|
+
artifact_id: string;
|
|
10615
11455
|
};
|
|
10616
11456
|
url: '/api/v1/quality/checks';
|
|
10617
11457
|
};
|
|
10618
11458
|
|
|
11459
|
+
export type ListChecksErrors = {
|
|
11460
|
+
/**
|
|
11461
|
+
* Missing or invalid artifact_id
|
|
11462
|
+
*/
|
|
11463
|
+
400: ErrorResponse;
|
|
11464
|
+
};
|
|
11465
|
+
|
|
11466
|
+
export type ListChecksError = ListChecksErrors[keyof ListChecksErrors];
|
|
11467
|
+
|
|
10619
11468
|
export type ListChecksResponses = {
|
|
10620
11469
|
/**
|
|
10621
11470
|
* List of quality check results
|
|
@@ -11278,6 +12127,36 @@ export type UpdateRepositoryResponses = {
|
|
|
11278
12127
|
|
|
11279
12128
|
export type UpdateRepositoryResponse = UpdateRepositoryResponses[keyof UpdateRepositoryResponses];
|
|
11280
12129
|
|
|
12130
|
+
export type GetRepoAgeGateData = {
|
|
12131
|
+
body?: never;
|
|
12132
|
+
path: {
|
|
12133
|
+
key: string;
|
|
12134
|
+
};
|
|
12135
|
+
query?: never;
|
|
12136
|
+
url: '/api/v1/repositories/{key}/age-gate';
|
|
12137
|
+
};
|
|
12138
|
+
|
|
12139
|
+
export type GetRepoAgeGateResponses = {
|
|
12140
|
+
200: AgeGateConfigResponse;
|
|
12141
|
+
};
|
|
12142
|
+
|
|
12143
|
+
export type GetRepoAgeGateResponse = GetRepoAgeGateResponses[keyof GetRepoAgeGateResponses];
|
|
12144
|
+
|
|
12145
|
+
export type UpdateRepoAgeGateData = {
|
|
12146
|
+
body: UpdateAgeGateConfigRequest;
|
|
12147
|
+
path: {
|
|
12148
|
+
key: string;
|
|
12149
|
+
};
|
|
12150
|
+
query?: never;
|
|
12151
|
+
url: '/api/v1/repositories/{key}/age-gate';
|
|
12152
|
+
};
|
|
12153
|
+
|
|
12154
|
+
export type UpdateRepoAgeGateResponses = {
|
|
12155
|
+
200: AgeGateConfigResponse;
|
|
12156
|
+
};
|
|
12157
|
+
|
|
12158
|
+
export type UpdateRepoAgeGateResponse = UpdateRepoAgeGateResponses[keyof UpdateRepoAgeGateResponses];
|
|
12159
|
+
|
|
11281
12160
|
export type ListArtifactsData = {
|
|
11282
12161
|
body?: never;
|
|
11283
12162
|
path: {
|
|
@@ -11425,7 +12304,7 @@ export type UploadArtifactResponses = {
|
|
|
11425
12304
|
/**
|
|
11426
12305
|
* Artifact uploaded
|
|
11427
12306
|
*/
|
|
11428
|
-
|
|
12307
|
+
201: ArtifactResponse;
|
|
11429
12308
|
};
|
|
11430
12309
|
|
|
11431
12310
|
export type UploadArtifactResponse = UploadArtifactResponses[keyof UploadArtifactResponses];
|
|
@@ -13291,6 +14170,14 @@ export type CreatePolicyData = {
|
|
|
13291
14170
|
};
|
|
13292
14171
|
|
|
13293
14172
|
export type CreatePolicyErrors = {
|
|
14173
|
+
/**
|
|
14174
|
+
* Invalid max_severity (must be one of critical, high, medium, low; case-insensitive)
|
|
14175
|
+
*/
|
|
14176
|
+
400: ErrorResponse;
|
|
14177
|
+
/**
|
|
14178
|
+
* repository_id does not reference an existing repository
|
|
14179
|
+
*/
|
|
14180
|
+
404: ErrorResponse;
|
|
13294
14181
|
/**
|
|
13295
14182
|
* Validation error
|
|
13296
14183
|
*/
|
|
@@ -14701,6 +15588,116 @@ export type CreateUserResponses = {
|
|
|
14701
15588
|
|
|
14702
15589
|
export type CreateUserResponse2 = CreateUserResponses[keyof CreateUserResponses];
|
|
14703
15590
|
|
|
15591
|
+
export type GetCurrentUserRecordData = {
|
|
15592
|
+
body?: never;
|
|
15593
|
+
path?: never;
|
|
15594
|
+
query?: never;
|
|
15595
|
+
url: '/api/v1/users/me';
|
|
15596
|
+
};
|
|
15597
|
+
|
|
15598
|
+
export type GetCurrentUserRecordErrors = {
|
|
15599
|
+
/**
|
|
15600
|
+
* User not found
|
|
15601
|
+
*/
|
|
15602
|
+
404: unknown;
|
|
15603
|
+
};
|
|
15604
|
+
|
|
15605
|
+
export type GetCurrentUserRecordResponses = {
|
|
15606
|
+
/**
|
|
15607
|
+
* The authenticated caller's user record
|
|
15608
|
+
*/
|
|
15609
|
+
200: AdminUserResponse;
|
|
15610
|
+
};
|
|
15611
|
+
|
|
15612
|
+
export type GetCurrentUserRecordResponse = GetCurrentUserRecordResponses[keyof GetCurrentUserRecordResponses];
|
|
15613
|
+
|
|
15614
|
+
export type ChangeCurrentUserPasswordData = {
|
|
15615
|
+
body: ChangePasswordRequest;
|
|
15616
|
+
path?: never;
|
|
15617
|
+
query?: never;
|
|
15618
|
+
url: '/api/v1/users/me/password';
|
|
15619
|
+
};
|
|
15620
|
+
|
|
15621
|
+
export type ChangeCurrentUserPasswordErrors = {
|
|
15622
|
+
/**
|
|
15623
|
+
* Current password is incorrect
|
|
15624
|
+
*/
|
|
15625
|
+
401: unknown;
|
|
15626
|
+
/**
|
|
15627
|
+
* User not found
|
|
15628
|
+
*/
|
|
15629
|
+
404: unknown;
|
|
15630
|
+
/**
|
|
15631
|
+
* Validation error
|
|
15632
|
+
*/
|
|
15633
|
+
422: unknown;
|
|
15634
|
+
};
|
|
15635
|
+
|
|
15636
|
+
export type ChangeCurrentUserPasswordResponses = {
|
|
15637
|
+
/**
|
|
15638
|
+
* Password changed successfully
|
|
15639
|
+
*/
|
|
15640
|
+
200: unknown;
|
|
15641
|
+
};
|
|
15642
|
+
|
|
15643
|
+
export type ListCurrentUserTokensData = {
|
|
15644
|
+
body?: never;
|
|
15645
|
+
path?: never;
|
|
15646
|
+
query?: never;
|
|
15647
|
+
url: '/api/v1/users/me/tokens';
|
|
15648
|
+
};
|
|
15649
|
+
|
|
15650
|
+
export type ListCurrentUserTokensResponses = {
|
|
15651
|
+
/**
|
|
15652
|
+
* List of the caller's API tokens
|
|
15653
|
+
*/
|
|
15654
|
+
200: ApiTokenListResponse;
|
|
15655
|
+
};
|
|
15656
|
+
|
|
15657
|
+
export type ListCurrentUserTokensResponse = ListCurrentUserTokensResponses[keyof ListCurrentUserTokensResponses];
|
|
15658
|
+
|
|
15659
|
+
export type CreateCurrentUserApiTokenData = {
|
|
15660
|
+
body: CreateUserApiTokenRequest;
|
|
15661
|
+
path?: never;
|
|
15662
|
+
query?: never;
|
|
15663
|
+
url: '/api/v1/users/me/tokens';
|
|
15664
|
+
};
|
|
15665
|
+
|
|
15666
|
+
export type CreateCurrentUserApiTokenErrors = {
|
|
15667
|
+
/**
|
|
15668
|
+
* Requested scopes require administrator privileges
|
|
15669
|
+
*/
|
|
15670
|
+
403: unknown;
|
|
15671
|
+
};
|
|
15672
|
+
|
|
15673
|
+
export type CreateCurrentUserApiTokenResponses = {
|
|
15674
|
+
/**
|
|
15675
|
+
* API token created successfully
|
|
15676
|
+
*/
|
|
15677
|
+
200: ApiTokenCreatedResponse;
|
|
15678
|
+
};
|
|
15679
|
+
|
|
15680
|
+
export type CreateCurrentUserApiTokenResponse = CreateCurrentUserApiTokenResponses[keyof CreateCurrentUserApiTokenResponses];
|
|
15681
|
+
|
|
15682
|
+
export type RevokeCurrentUserApiTokenData = {
|
|
15683
|
+
body?: never;
|
|
15684
|
+
path: {
|
|
15685
|
+
/**
|
|
15686
|
+
* API token ID
|
|
15687
|
+
*/
|
|
15688
|
+
token_id: string;
|
|
15689
|
+
};
|
|
15690
|
+
query?: never;
|
|
15691
|
+
url: '/api/v1/users/me/tokens/{token_id}';
|
|
15692
|
+
};
|
|
15693
|
+
|
|
15694
|
+
export type RevokeCurrentUserApiTokenResponses = {
|
|
15695
|
+
/**
|
|
15696
|
+
* API token revoked successfully
|
|
15697
|
+
*/
|
|
15698
|
+
200: unknown;
|
|
15699
|
+
};
|
|
15700
|
+
|
|
14704
15701
|
export type DeleteUserData = {
|
|
14705
15702
|
body?: never;
|
|
14706
15703
|
path: {
|
|
@@ -14996,7 +15993,7 @@ export type ListUserTokensResponses = {
|
|
|
14996
15993
|
export type ListUserTokensResponse = ListUserTokensResponses[keyof ListUserTokensResponses];
|
|
14997
15994
|
|
|
14998
15995
|
export type CreateUserApiTokenData = {
|
|
14999
|
-
body:
|
|
15996
|
+
body: CreateUserApiTokenRequest;
|
|
15000
15997
|
path: {
|
|
15001
15998
|
/**
|
|
15002
15999
|
* User ID
|