@amerged/ohmyhost-sdk 0.1.28 → 0.1.30
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/README.md +1 -1
- package/dist/generated/index.d.ts +2 -2
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/sdk.gen.d.ts +104 -1
- package/dist/generated/sdk.gen.d.ts.map +1 -1
- package/dist/generated/sdk.gen.js +281 -0
- package/dist/generated/sdk.gen.js.map +1 -1
- package/dist/generated/types.gen.d.ts +805 -5
- package/dist/generated/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/packages/sdk-ts/package.json +1 -1
- package/src/packages/sdk-ts/src/generated/index.ts +92 -0
- package/src/packages/sdk-ts/src/generated/sdk.gen.ts +541 -0
- package/src/packages/sdk-ts/src/generated/types.gen.ts +911 -4
|
@@ -440,7 +440,10 @@ export type GithubSourceAuthorization = {
|
|
|
440
440
|
repository_owner: string;
|
|
441
441
|
repository_name: string;
|
|
442
442
|
};
|
|
443
|
-
export type ProjectSource =
|
|
443
|
+
export type ProjectSource = GithubProjectSource | ManagedProjectSource;
|
|
444
|
+
export type ProjectSourceBinding = GithubSourceBinding | ManagedProjectSource;
|
|
445
|
+
export type ProjectSourceResponse = GithubProjectSource | GithubSourceBinding | ManagedProjectSource;
|
|
446
|
+
export type GithubProjectSource = {
|
|
444
447
|
provider: "github";
|
|
445
448
|
installation_id: string;
|
|
446
449
|
repository_full_name: string;
|
|
@@ -449,6 +452,140 @@ export type ProjectSource = {
|
|
|
449
452
|
updated_at: string;
|
|
450
453
|
failure_summary?: string;
|
|
451
454
|
};
|
|
455
|
+
export type GithubSourceBinding = {
|
|
456
|
+
source_connection_id: Ulid;
|
|
457
|
+
source_generation: number;
|
|
458
|
+
provider: "github";
|
|
459
|
+
installation_id: string;
|
|
460
|
+
repository_full_name: string;
|
|
461
|
+
status: "pending" | "ready" | "failed" | "revoked";
|
|
462
|
+
linked_at: string;
|
|
463
|
+
updated_at: string;
|
|
464
|
+
failure_summary?: string;
|
|
465
|
+
};
|
|
466
|
+
export type CommitSha = string;
|
|
467
|
+
export type NullableCommitSha = string | null;
|
|
468
|
+
export type SourceGeneration = number;
|
|
469
|
+
/**
|
|
470
|
+
* Printable ASCII USTAR-compatible relative repository path without dot segments, backslashes, Git metadata or credential files. Environment secrets use the protected secret form; .env.example is allowed.
|
|
471
|
+
*/
|
|
472
|
+
export type ManagedSourcePath = string;
|
|
473
|
+
export type SourceContentBase64 = string;
|
|
474
|
+
export type SourceMessage = string;
|
|
475
|
+
export type SourceManifestFile = {
|
|
476
|
+
path: ManagedSourcePath;
|
|
477
|
+
sha256: string;
|
|
478
|
+
byte_length: number;
|
|
479
|
+
executable: boolean;
|
|
480
|
+
};
|
|
481
|
+
export type SourceManifest = Array<SourceManifestFile>;
|
|
482
|
+
export type ManagedProjectSource = {
|
|
483
|
+
/**
|
|
484
|
+
* Actual source initialization child operation, when one exists; present only while pending or failed.
|
|
485
|
+
*/
|
|
486
|
+
initialization_operation_id?: Ulid;
|
|
487
|
+
/**
|
|
488
|
+
* Canonical public operation failure code for failed initialization; never a provider error.
|
|
489
|
+
*/
|
|
490
|
+
initialization_error_code?: string;
|
|
491
|
+
provider: "managed";
|
|
492
|
+
source_connection_id: Ulid;
|
|
493
|
+
source_generation: SourceGeneration;
|
|
494
|
+
namespace: string;
|
|
495
|
+
repository_name: string;
|
|
496
|
+
branch: "main";
|
|
497
|
+
current_commit_sha: NullableCommitSha;
|
|
498
|
+
status: "pending" | "ready" | "failed" | "revoked";
|
|
499
|
+
linked_at: string;
|
|
500
|
+
updated_at: string;
|
|
501
|
+
};
|
|
502
|
+
export type ManagedSourceInitializeRequest = {
|
|
503
|
+
template: "vite-react" | "empty";
|
|
504
|
+
expected_source_generation: SourceGeneration;
|
|
505
|
+
};
|
|
506
|
+
export type ManagedSourceUploadRequest = {
|
|
507
|
+
mode: "initialize" | "commit" | "switch";
|
|
508
|
+
expected_source_generation: SourceGeneration;
|
|
509
|
+
expected_source_connection_id: string | null;
|
|
510
|
+
expected_commit_sha: NullableCommitSha;
|
|
511
|
+
message: SourceMessage;
|
|
512
|
+
};
|
|
513
|
+
export type ManagedSourceBlobRequest = {
|
|
514
|
+
path: ManagedSourcePath;
|
|
515
|
+
content_base64: SourceContentBase64;
|
|
516
|
+
executable: boolean;
|
|
517
|
+
sha256: string;
|
|
518
|
+
};
|
|
519
|
+
export type ManagedSourceFinalizeRequest = {
|
|
520
|
+
files: SourceManifest;
|
|
521
|
+
expected_source_generation: SourceGeneration;
|
|
522
|
+
};
|
|
523
|
+
export type ManagedSourceSwitchRequest = {
|
|
524
|
+
upload_operation_id: Ulid;
|
|
525
|
+
files: SourceManifest;
|
|
526
|
+
expected_source_generation: SourceGeneration;
|
|
527
|
+
expected_source_connection_id: Ulid;
|
|
528
|
+
};
|
|
529
|
+
export type ManagedSourceChangesRequest = {
|
|
530
|
+
expected_source_generation: SourceGeneration;
|
|
531
|
+
expected_commit_sha: NullableCommitSha;
|
|
532
|
+
message: SourceMessage;
|
|
533
|
+
changes: Array<{
|
|
534
|
+
path: ManagedSourcePath;
|
|
535
|
+
executable: boolean;
|
|
536
|
+
content_base64: string | null;
|
|
537
|
+
}>;
|
|
538
|
+
};
|
|
539
|
+
export type ManagedSourceRestoreRequest = {
|
|
540
|
+
expected_source_generation: SourceGeneration;
|
|
541
|
+
expected_commit_sha: NullableCommitSha;
|
|
542
|
+
restore_commit_sha: CommitSha;
|
|
543
|
+
message: SourceMessage;
|
|
544
|
+
};
|
|
545
|
+
export type ManagedSourceUploadReceipt = {
|
|
546
|
+
operation_id: Ulid;
|
|
547
|
+
state: "staging" | "sealed" | "committed" | "failed";
|
|
548
|
+
expected_source_generation: SourceGeneration;
|
|
549
|
+
expected_commit_sha: NullableCommitSha;
|
|
550
|
+
commit_sha: NullableCommitSha;
|
|
551
|
+
expires_at: string;
|
|
552
|
+
};
|
|
553
|
+
export type ManagedSourceFilesResponse = ManagedSourceFiles | ManagedSourceFileResponse;
|
|
554
|
+
export type ManagedSourceFiles = {
|
|
555
|
+
commit_sha: CommitSha;
|
|
556
|
+
files: SourceManifest;
|
|
557
|
+
};
|
|
558
|
+
export type ManagedSourceFileResponse = {
|
|
559
|
+
commit_sha: CommitSha;
|
|
560
|
+
file: {
|
|
561
|
+
path: ManagedSourcePath;
|
|
562
|
+
sha256: string;
|
|
563
|
+
byte_length: number;
|
|
564
|
+
executable: boolean;
|
|
565
|
+
content_base64: SourceContentBase64;
|
|
566
|
+
};
|
|
567
|
+
};
|
|
568
|
+
export type ManagedSourceVersions = {
|
|
569
|
+
next_commit_sha: NullableCommitSha;
|
|
570
|
+
versions: Array<{
|
|
571
|
+
commit_sha: CommitSha;
|
|
572
|
+
parent_commit_sha: NullableCommitSha;
|
|
573
|
+
message: string;
|
|
574
|
+
created_at: string;
|
|
575
|
+
}>;
|
|
576
|
+
};
|
|
577
|
+
export type ManagedSourceDiff = {
|
|
578
|
+
from_commit_sha: CommitSha;
|
|
579
|
+
to_commit_sha: CommitSha;
|
|
580
|
+
changes: Array<{
|
|
581
|
+
path: ManagedSourcePath;
|
|
582
|
+
change: "added" | "modified" | "deleted";
|
|
583
|
+
before_sha256: string | null;
|
|
584
|
+
after_sha256: string | null;
|
|
585
|
+
before_executable: boolean | null;
|
|
586
|
+
after_executable: boolean | null;
|
|
587
|
+
}>;
|
|
588
|
+
};
|
|
452
589
|
export type FunctionRun = {
|
|
453
590
|
id: Ulid;
|
|
454
591
|
deployment_id: Ulid;
|
|
@@ -782,6 +919,10 @@ export type FeedbackUpdate = {
|
|
|
782
919
|
* Phase 1 project creation request. The server assigns resource identifiers.
|
|
783
920
|
*/
|
|
784
921
|
export type CreateProjectRequest = {
|
|
922
|
+
source?: {
|
|
923
|
+
provider: "managed";
|
|
924
|
+
template: "vite-react" | "empty";
|
|
925
|
+
};
|
|
785
926
|
organization_id: Ulid;
|
|
786
927
|
data_mode?: ProjectDataMode;
|
|
787
928
|
dev_access_mode?: "protected" | "public";
|
|
@@ -1043,7 +1184,7 @@ export type ProjectExportArchive = {
|
|
|
1043
1184
|
download_expires_at: string | null;
|
|
1044
1185
|
};
|
|
1045
1186
|
export type OperationFailure = {
|
|
1046
|
-
code: "operation_failed" | "operation_abandoned" | "recovery_dispatch_failed" | "recovery_job_failed" | "recovery_input_expired" | "recovery_database_unavailable" | "recovery_checksum_mismatch" | "recovery_scope_unavailable" | "recovery_archive_too_large" | "build_not_started" | "build_failed" | "database_write_rejected" | "database_write_unavailable" | "database_write_outcome_unknown" | "database_compute_failed" | "database_compute_plan_changed" | "database_compute_rejected" | "database_migration_failed" | "insufficient_organization_credits" | "paid_plan_required" | "runtime_candidate_failed" | "runtime_candidate_rejected" | "storage_jurisdiction_conflict" | "provider_state_absent" | "auto_deploy_plan_rejected" | "promotion_source_stale" | "promotion_target_stale";
|
|
1187
|
+
code: "operation_failed" | "operation_abandoned" | "authorization_changed" | "source_commit_conflict" | "source_snapshot_invalid" | "source_upload_expired" | "recovery_dispatch_failed" | "recovery_job_failed" | "recovery_input_expired" | "recovery_database_unavailable" | "recovery_checksum_mismatch" | "recovery_scope_unavailable" | "recovery_archive_too_large" | "build_not_started" | "build_failed" | "database_write_rejected" | "database_write_unavailable" | "database_write_outcome_unknown" | "database_compute_failed" | "database_compute_plan_changed" | "database_compute_rejected" | "database_migration_failed" | "insufficient_organization_credits" | "paid_plan_required" | "runtime_candidate_failed" | "runtime_candidate_rejected" | "storage_jurisdiction_conflict" | "provider_state_absent" | "auto_deploy_plan_rejected" | "promotion_source_stale" | "promotion_target_stale";
|
|
1047
1188
|
message: string;
|
|
1048
1189
|
/**
|
|
1049
1190
|
* A terminal operation cannot be retried in place; follow suggested_action.
|
|
@@ -3614,7 +3755,12 @@ export type GetProjectSourceData = {
|
|
|
3614
3755
|
*/
|
|
3615
3756
|
project_id: Ulid;
|
|
3616
3757
|
};
|
|
3617
|
-
query?:
|
|
3758
|
+
query?: {
|
|
3759
|
+
/**
|
|
3760
|
+
* Return exact source binding metadata for GitHub; managed sources are always full.
|
|
3761
|
+
*/
|
|
3762
|
+
include_binding?: boolean;
|
|
3763
|
+
};
|
|
3618
3764
|
url: "/v1/projects/{project_id}/source";
|
|
3619
3765
|
};
|
|
3620
3766
|
export type GetProjectSourceErrors = {
|
|
@@ -3646,11 +3792,665 @@ export type GetProjectSourceErrors = {
|
|
|
3646
3792
|
export type GetProjectSourceError = GetProjectSourceErrors[keyof GetProjectSourceErrors];
|
|
3647
3793
|
export type GetProjectSourceResponses = {
|
|
3648
3794
|
/**
|
|
3649
|
-
* The current
|
|
3795
|
+
* The current source, using the default or explicitly requested binding projection.
|
|
3650
3796
|
*/
|
|
3651
|
-
200:
|
|
3797
|
+
200: ProjectSourceResponse;
|
|
3652
3798
|
};
|
|
3653
3799
|
export type GetProjectSourceResponse = GetProjectSourceResponses[keyof GetProjectSourceResponses];
|
|
3800
|
+
export type InitializeManagedSourceData = {
|
|
3801
|
+
body: ManagedSourceInitializeRequest;
|
|
3802
|
+
headers: {
|
|
3803
|
+
/**
|
|
3804
|
+
* Optional caller-provided correlation identifier.
|
|
3805
|
+
*/
|
|
3806
|
+
"X-Request-Id"?: string;
|
|
3807
|
+
/**
|
|
3808
|
+
* Identifies one mutation and its canonical request payload.
|
|
3809
|
+
*/
|
|
3810
|
+
"Idempotency-Key": string;
|
|
3811
|
+
};
|
|
3812
|
+
path: {
|
|
3813
|
+
/**
|
|
3814
|
+
* Project identifier.
|
|
3815
|
+
*/
|
|
3816
|
+
project_id: Ulid;
|
|
3817
|
+
};
|
|
3818
|
+
query?: never;
|
|
3819
|
+
url: "/v1/projects/{project_id}/source:initialize";
|
|
3820
|
+
};
|
|
3821
|
+
export type InitializeManagedSourceErrors = {
|
|
3822
|
+
/**
|
|
3823
|
+
* The request failed.
|
|
3824
|
+
*/
|
|
3825
|
+
400: ProblemDetails;
|
|
3826
|
+
/**
|
|
3827
|
+
* The request failed.
|
|
3828
|
+
*/
|
|
3829
|
+
401: ProblemDetails;
|
|
3830
|
+
/**
|
|
3831
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
3832
|
+
*/
|
|
3833
|
+
404: ProblemDetails;
|
|
3834
|
+
/**
|
|
3835
|
+
* The request failed.
|
|
3836
|
+
*/
|
|
3837
|
+
409: ProblemDetails;
|
|
3838
|
+
/**
|
|
3839
|
+
* The request failed.
|
|
3840
|
+
*/
|
|
3841
|
+
413: ProblemDetails;
|
|
3842
|
+
/**
|
|
3843
|
+
* The request failed.
|
|
3844
|
+
*/
|
|
3845
|
+
429: ProblemDetails;
|
|
3846
|
+
/**
|
|
3847
|
+
* The request failed.
|
|
3848
|
+
*/
|
|
3849
|
+
503: ProblemDetails;
|
|
3850
|
+
};
|
|
3851
|
+
export type InitializeManagedSourceError = InitializeManagedSourceErrors[keyof InitializeManagedSourceErrors];
|
|
3852
|
+
export type InitializeManagedSourceResponses = {
|
|
3853
|
+
/**
|
|
3854
|
+
* The mutation was accepted for asynchronous processing.
|
|
3855
|
+
*/
|
|
3856
|
+
202: Operation;
|
|
3857
|
+
};
|
|
3858
|
+
export type InitializeManagedSourceResponse = InitializeManagedSourceResponses[keyof InitializeManagedSourceResponses];
|
|
3859
|
+
export type ListManagedSourceFilesData = {
|
|
3860
|
+
body?: never;
|
|
3861
|
+
headers?: {
|
|
3862
|
+
/**
|
|
3863
|
+
* Optional caller-provided correlation identifier.
|
|
3864
|
+
*/
|
|
3865
|
+
"X-Request-Id"?: string;
|
|
3866
|
+
};
|
|
3867
|
+
path: {
|
|
3868
|
+
/**
|
|
3869
|
+
* Project identifier.
|
|
3870
|
+
*/
|
|
3871
|
+
project_id: Ulid;
|
|
3872
|
+
};
|
|
3873
|
+
query?: {
|
|
3874
|
+
commit_sha?: CommitSha;
|
|
3875
|
+
path?: ManagedSourcePath;
|
|
3876
|
+
};
|
|
3877
|
+
url: "/v1/projects/{project_id}/source/files";
|
|
3878
|
+
};
|
|
3879
|
+
export type ListManagedSourceFilesErrors = {
|
|
3880
|
+
/**
|
|
3881
|
+
* The request failed.
|
|
3882
|
+
*/
|
|
3883
|
+
400: ProblemDetails;
|
|
3884
|
+
/**
|
|
3885
|
+
* The request failed.
|
|
3886
|
+
*/
|
|
3887
|
+
401: ProblemDetails;
|
|
3888
|
+
/**
|
|
3889
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
3890
|
+
*/
|
|
3891
|
+
404: ProblemDetails;
|
|
3892
|
+
/**
|
|
3893
|
+
* The request failed.
|
|
3894
|
+
*/
|
|
3895
|
+
409: ProblemDetails;
|
|
3896
|
+
/**
|
|
3897
|
+
* The request failed.
|
|
3898
|
+
*/
|
|
3899
|
+
413: ProblemDetails;
|
|
3900
|
+
/**
|
|
3901
|
+
* The request failed.
|
|
3902
|
+
*/
|
|
3903
|
+
429: ProblemDetails;
|
|
3904
|
+
/**
|
|
3905
|
+
* The request failed.
|
|
3906
|
+
*/
|
|
3907
|
+
503: ProblemDetails;
|
|
3908
|
+
};
|
|
3909
|
+
export type ListManagedSourceFilesError = ListManagedSourceFilesErrors[keyof ListManagedSourceFilesErrors];
|
|
3910
|
+
export type ListManagedSourceFilesResponses = {
|
|
3911
|
+
/**
|
|
3912
|
+
* The tenant-scoped managed source result.
|
|
3913
|
+
*/
|
|
3914
|
+
200: ManagedSourceFilesResponse;
|
|
3915
|
+
};
|
|
3916
|
+
export type ListManagedSourceFilesResponse = ListManagedSourceFilesResponses[keyof ListManagedSourceFilesResponses];
|
|
3917
|
+
export type ListManagedSourceVersionsData = {
|
|
3918
|
+
body?: never;
|
|
3919
|
+
headers?: {
|
|
3920
|
+
/**
|
|
3921
|
+
* Optional caller-provided correlation identifier.
|
|
3922
|
+
*/
|
|
3923
|
+
"X-Request-Id"?: string;
|
|
3924
|
+
};
|
|
3925
|
+
path: {
|
|
3926
|
+
/**
|
|
3927
|
+
* Project identifier.
|
|
3928
|
+
*/
|
|
3929
|
+
project_id: Ulid;
|
|
3930
|
+
};
|
|
3931
|
+
query?: {
|
|
3932
|
+
limit?: number;
|
|
3933
|
+
before_commit_sha?: CommitSha;
|
|
3934
|
+
};
|
|
3935
|
+
url: "/v1/projects/{project_id}/source/versions";
|
|
3936
|
+
};
|
|
3937
|
+
export type ListManagedSourceVersionsErrors = {
|
|
3938
|
+
/**
|
|
3939
|
+
* The request failed.
|
|
3940
|
+
*/
|
|
3941
|
+
400: ProblemDetails;
|
|
3942
|
+
/**
|
|
3943
|
+
* The request failed.
|
|
3944
|
+
*/
|
|
3945
|
+
401: ProblemDetails;
|
|
3946
|
+
/**
|
|
3947
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
3948
|
+
*/
|
|
3949
|
+
404: ProblemDetails;
|
|
3950
|
+
/**
|
|
3951
|
+
* The request failed.
|
|
3952
|
+
*/
|
|
3953
|
+
409: ProblemDetails;
|
|
3954
|
+
/**
|
|
3955
|
+
* The request failed.
|
|
3956
|
+
*/
|
|
3957
|
+
413: ProblemDetails;
|
|
3958
|
+
/**
|
|
3959
|
+
* The request failed.
|
|
3960
|
+
*/
|
|
3961
|
+
429: ProblemDetails;
|
|
3962
|
+
/**
|
|
3963
|
+
* The request failed.
|
|
3964
|
+
*/
|
|
3965
|
+
503: ProblemDetails;
|
|
3966
|
+
};
|
|
3967
|
+
export type ListManagedSourceVersionsError = ListManagedSourceVersionsErrors[keyof ListManagedSourceVersionsErrors];
|
|
3968
|
+
export type ListManagedSourceVersionsResponses = {
|
|
3969
|
+
/**
|
|
3970
|
+
* The tenant-scoped managed source result.
|
|
3971
|
+
*/
|
|
3972
|
+
200: ManagedSourceVersions;
|
|
3973
|
+
};
|
|
3974
|
+
export type ListManagedSourceVersionsResponse = ListManagedSourceVersionsResponses[keyof ListManagedSourceVersionsResponses];
|
|
3975
|
+
export type DiffManagedSourceData = {
|
|
3976
|
+
body?: never;
|
|
3977
|
+
headers?: {
|
|
3978
|
+
/**
|
|
3979
|
+
* Optional caller-provided correlation identifier.
|
|
3980
|
+
*/
|
|
3981
|
+
"X-Request-Id"?: string;
|
|
3982
|
+
};
|
|
3983
|
+
path: {
|
|
3984
|
+
/**
|
|
3985
|
+
* Project identifier.
|
|
3986
|
+
*/
|
|
3987
|
+
project_id: Ulid;
|
|
3988
|
+
};
|
|
3989
|
+
query: {
|
|
3990
|
+
from_commit_sha: CommitSha;
|
|
3991
|
+
to_commit_sha: CommitSha;
|
|
3992
|
+
};
|
|
3993
|
+
url: "/v1/projects/{project_id}/source/diff";
|
|
3994
|
+
};
|
|
3995
|
+
export type DiffManagedSourceErrors = {
|
|
3996
|
+
/**
|
|
3997
|
+
* The request failed.
|
|
3998
|
+
*/
|
|
3999
|
+
400: ProblemDetails;
|
|
4000
|
+
/**
|
|
4001
|
+
* The request failed.
|
|
4002
|
+
*/
|
|
4003
|
+
401: ProblemDetails;
|
|
4004
|
+
/**
|
|
4005
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4006
|
+
*/
|
|
4007
|
+
404: ProblemDetails;
|
|
4008
|
+
/**
|
|
4009
|
+
* The request failed.
|
|
4010
|
+
*/
|
|
4011
|
+
409: ProblemDetails;
|
|
4012
|
+
/**
|
|
4013
|
+
* The request failed.
|
|
4014
|
+
*/
|
|
4015
|
+
413: ProblemDetails;
|
|
4016
|
+
/**
|
|
4017
|
+
* The request failed.
|
|
4018
|
+
*/
|
|
4019
|
+
429: ProblemDetails;
|
|
4020
|
+
/**
|
|
4021
|
+
* The request failed.
|
|
4022
|
+
*/
|
|
4023
|
+
503: ProblemDetails;
|
|
4024
|
+
};
|
|
4025
|
+
export type DiffManagedSourceError = DiffManagedSourceErrors[keyof DiffManagedSourceErrors];
|
|
4026
|
+
export type DiffManagedSourceResponses = {
|
|
4027
|
+
/**
|
|
4028
|
+
* The tenant-scoped managed source result.
|
|
4029
|
+
*/
|
|
4030
|
+
200: ManagedSourceDiff;
|
|
4031
|
+
};
|
|
4032
|
+
export type DiffManagedSourceResponse = DiffManagedSourceResponses[keyof DiffManagedSourceResponses];
|
|
4033
|
+
export type ChangeManagedSourceData = {
|
|
4034
|
+
body: ManagedSourceChangesRequest;
|
|
4035
|
+
headers: {
|
|
4036
|
+
/**
|
|
4037
|
+
* Optional caller-provided correlation identifier.
|
|
4038
|
+
*/
|
|
4039
|
+
"X-Request-Id"?: string;
|
|
4040
|
+
/**
|
|
4041
|
+
* Identifies one mutation and its canonical request payload.
|
|
4042
|
+
*/
|
|
4043
|
+
"Idempotency-Key": string;
|
|
4044
|
+
};
|
|
4045
|
+
path: {
|
|
4046
|
+
/**
|
|
4047
|
+
* Project identifier.
|
|
4048
|
+
*/
|
|
4049
|
+
project_id: Ulid;
|
|
4050
|
+
};
|
|
4051
|
+
query?: never;
|
|
4052
|
+
url: "/v1/projects/{project_id}/source/changes";
|
|
4053
|
+
};
|
|
4054
|
+
export type ChangeManagedSourceErrors = {
|
|
4055
|
+
/**
|
|
4056
|
+
* The request failed.
|
|
4057
|
+
*/
|
|
4058
|
+
400: ProblemDetails;
|
|
4059
|
+
/**
|
|
4060
|
+
* The request failed.
|
|
4061
|
+
*/
|
|
4062
|
+
401: ProblemDetails;
|
|
4063
|
+
/**
|
|
4064
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4065
|
+
*/
|
|
4066
|
+
404: ProblemDetails;
|
|
4067
|
+
/**
|
|
4068
|
+
* The request failed.
|
|
4069
|
+
*/
|
|
4070
|
+
409: ProblemDetails;
|
|
4071
|
+
/**
|
|
4072
|
+
* The request failed.
|
|
4073
|
+
*/
|
|
4074
|
+
413: ProblemDetails;
|
|
4075
|
+
/**
|
|
4076
|
+
* The request failed.
|
|
4077
|
+
*/
|
|
4078
|
+
429: ProblemDetails;
|
|
4079
|
+
/**
|
|
4080
|
+
* The request failed.
|
|
4081
|
+
*/
|
|
4082
|
+
503: ProblemDetails;
|
|
4083
|
+
};
|
|
4084
|
+
export type ChangeManagedSourceError = ChangeManagedSourceErrors[keyof ChangeManagedSourceErrors];
|
|
4085
|
+
export type ChangeManagedSourceResponses = {
|
|
4086
|
+
/**
|
|
4087
|
+
* The mutation was accepted for asynchronous processing.
|
|
4088
|
+
*/
|
|
4089
|
+
202: Operation;
|
|
4090
|
+
};
|
|
4091
|
+
export type ChangeManagedSourceResponse = ChangeManagedSourceResponses[keyof ChangeManagedSourceResponses];
|
|
4092
|
+
export type RestoreManagedSourceData = {
|
|
4093
|
+
body: ManagedSourceRestoreRequest;
|
|
4094
|
+
headers: {
|
|
4095
|
+
/**
|
|
4096
|
+
* Optional caller-provided correlation identifier.
|
|
4097
|
+
*/
|
|
4098
|
+
"X-Request-Id"?: string;
|
|
4099
|
+
/**
|
|
4100
|
+
* Identifies one mutation and its canonical request payload.
|
|
4101
|
+
*/
|
|
4102
|
+
"Idempotency-Key": string;
|
|
4103
|
+
};
|
|
4104
|
+
path: {
|
|
4105
|
+
/**
|
|
4106
|
+
* Project identifier.
|
|
4107
|
+
*/
|
|
4108
|
+
project_id: Ulid;
|
|
4109
|
+
};
|
|
4110
|
+
query?: never;
|
|
4111
|
+
url: "/v1/projects/{project_id}/source:restore";
|
|
4112
|
+
};
|
|
4113
|
+
export type RestoreManagedSourceErrors = {
|
|
4114
|
+
/**
|
|
4115
|
+
* The request failed.
|
|
4116
|
+
*/
|
|
4117
|
+
400: ProblemDetails;
|
|
4118
|
+
/**
|
|
4119
|
+
* The request failed.
|
|
4120
|
+
*/
|
|
4121
|
+
401: ProblemDetails;
|
|
4122
|
+
/**
|
|
4123
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4124
|
+
*/
|
|
4125
|
+
404: ProblemDetails;
|
|
4126
|
+
/**
|
|
4127
|
+
* The request failed.
|
|
4128
|
+
*/
|
|
4129
|
+
409: ProblemDetails;
|
|
4130
|
+
/**
|
|
4131
|
+
* The request failed.
|
|
4132
|
+
*/
|
|
4133
|
+
413: ProblemDetails;
|
|
4134
|
+
/**
|
|
4135
|
+
* The request failed.
|
|
4136
|
+
*/
|
|
4137
|
+
429: ProblemDetails;
|
|
4138
|
+
/**
|
|
4139
|
+
* The request failed.
|
|
4140
|
+
*/
|
|
4141
|
+
503: ProblemDetails;
|
|
4142
|
+
};
|
|
4143
|
+
export type RestoreManagedSourceError = RestoreManagedSourceErrors[keyof RestoreManagedSourceErrors];
|
|
4144
|
+
export type RestoreManagedSourceResponses = {
|
|
4145
|
+
/**
|
|
4146
|
+
* The mutation was accepted for asynchronous processing.
|
|
4147
|
+
*/
|
|
4148
|
+
202: Operation;
|
|
4149
|
+
};
|
|
4150
|
+
export type RestoreManagedSourceResponse = RestoreManagedSourceResponses[keyof RestoreManagedSourceResponses];
|
|
4151
|
+
export type CreateManagedSourceUploadData = {
|
|
4152
|
+
body: ManagedSourceUploadRequest;
|
|
4153
|
+
headers: {
|
|
4154
|
+
/**
|
|
4155
|
+
* Optional caller-provided correlation identifier.
|
|
4156
|
+
*/
|
|
4157
|
+
"X-Request-Id"?: string;
|
|
4158
|
+
/**
|
|
4159
|
+
* Identifies one mutation and its canonical request payload.
|
|
4160
|
+
*/
|
|
4161
|
+
"Idempotency-Key": string;
|
|
4162
|
+
};
|
|
4163
|
+
path: {
|
|
4164
|
+
/**
|
|
4165
|
+
* Project identifier.
|
|
4166
|
+
*/
|
|
4167
|
+
project_id: Ulid;
|
|
4168
|
+
};
|
|
4169
|
+
query?: never;
|
|
4170
|
+
url: "/v1/projects/{project_id}/source/uploads";
|
|
4171
|
+
};
|
|
4172
|
+
export type CreateManagedSourceUploadErrors = {
|
|
4173
|
+
/**
|
|
4174
|
+
* The request failed.
|
|
4175
|
+
*/
|
|
4176
|
+
400: ProblemDetails;
|
|
4177
|
+
/**
|
|
4178
|
+
* The request failed.
|
|
4179
|
+
*/
|
|
4180
|
+
401: ProblemDetails;
|
|
4181
|
+
/**
|
|
4182
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4183
|
+
*/
|
|
4184
|
+
404: ProblemDetails;
|
|
4185
|
+
/**
|
|
4186
|
+
* The request failed.
|
|
4187
|
+
*/
|
|
4188
|
+
409: ProblemDetails;
|
|
4189
|
+
/**
|
|
4190
|
+
* The request failed.
|
|
4191
|
+
*/
|
|
4192
|
+
413: ProblemDetails;
|
|
4193
|
+
/**
|
|
4194
|
+
* The request failed.
|
|
4195
|
+
*/
|
|
4196
|
+
429: ProblemDetails;
|
|
4197
|
+
/**
|
|
4198
|
+
* The request failed.
|
|
4199
|
+
*/
|
|
4200
|
+
503: ProblemDetails;
|
|
4201
|
+
};
|
|
4202
|
+
export type CreateManagedSourceUploadError = CreateManagedSourceUploadErrors[keyof CreateManagedSourceUploadErrors];
|
|
4203
|
+
export type CreateManagedSourceUploadResponses = {
|
|
4204
|
+
/**
|
|
4205
|
+
* The mutation was accepted for asynchronous processing.
|
|
4206
|
+
*/
|
|
4207
|
+
202: Operation;
|
|
4208
|
+
};
|
|
4209
|
+
export type CreateManagedSourceUploadResponse = CreateManagedSourceUploadResponses[keyof CreateManagedSourceUploadResponses];
|
|
4210
|
+
export type GetManagedSourceUploadData = {
|
|
4211
|
+
body?: never;
|
|
4212
|
+
headers?: {
|
|
4213
|
+
/**
|
|
4214
|
+
* Optional caller-provided correlation identifier.
|
|
4215
|
+
*/
|
|
4216
|
+
"X-Request-Id"?: string;
|
|
4217
|
+
};
|
|
4218
|
+
path: {
|
|
4219
|
+
/**
|
|
4220
|
+
* Project identifier.
|
|
4221
|
+
*/
|
|
4222
|
+
project_id: Ulid;
|
|
4223
|
+
/**
|
|
4224
|
+
* Operation identifier.
|
|
4225
|
+
*/
|
|
4226
|
+
operation_id: Ulid;
|
|
4227
|
+
};
|
|
4228
|
+
query?: never;
|
|
4229
|
+
url: "/v1/projects/{project_id}/source/uploads/{operation_id}";
|
|
4230
|
+
};
|
|
4231
|
+
export type GetManagedSourceUploadErrors = {
|
|
4232
|
+
/**
|
|
4233
|
+
* The request failed.
|
|
4234
|
+
*/
|
|
4235
|
+
400: ProblemDetails;
|
|
4236
|
+
/**
|
|
4237
|
+
* The request failed.
|
|
4238
|
+
*/
|
|
4239
|
+
401: ProblemDetails;
|
|
4240
|
+
/**
|
|
4241
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4242
|
+
*/
|
|
4243
|
+
404: ProblemDetails;
|
|
4244
|
+
/**
|
|
4245
|
+
* The request failed.
|
|
4246
|
+
*/
|
|
4247
|
+
409: ProblemDetails;
|
|
4248
|
+
/**
|
|
4249
|
+
* The request failed.
|
|
4250
|
+
*/
|
|
4251
|
+
413: ProblemDetails;
|
|
4252
|
+
/**
|
|
4253
|
+
* The request failed.
|
|
4254
|
+
*/
|
|
4255
|
+
429: ProblemDetails;
|
|
4256
|
+
/**
|
|
4257
|
+
* The request failed.
|
|
4258
|
+
*/
|
|
4259
|
+
503: ProblemDetails;
|
|
4260
|
+
};
|
|
4261
|
+
export type GetManagedSourceUploadError = GetManagedSourceUploadErrors[keyof GetManagedSourceUploadErrors];
|
|
4262
|
+
export type GetManagedSourceUploadResponses = {
|
|
4263
|
+
/**
|
|
4264
|
+
* The tenant-scoped managed source result.
|
|
4265
|
+
*/
|
|
4266
|
+
200: ManagedSourceUploadReceipt;
|
|
4267
|
+
};
|
|
4268
|
+
export type GetManagedSourceUploadResponse = GetManagedSourceUploadResponses[keyof GetManagedSourceUploadResponses];
|
|
4269
|
+
export type PutManagedSourceBlobData = {
|
|
4270
|
+
body: ManagedSourceBlobRequest;
|
|
4271
|
+
headers: {
|
|
4272
|
+
/**
|
|
4273
|
+
* Optional caller-provided correlation identifier.
|
|
4274
|
+
*/
|
|
4275
|
+
"X-Request-Id"?: string;
|
|
4276
|
+
/**
|
|
4277
|
+
* Identifies one mutation and its canonical request payload.
|
|
4278
|
+
*/
|
|
4279
|
+
"Idempotency-Key": string;
|
|
4280
|
+
};
|
|
4281
|
+
path: {
|
|
4282
|
+
/**
|
|
4283
|
+
* Project identifier.
|
|
4284
|
+
*/
|
|
4285
|
+
project_id: Ulid;
|
|
4286
|
+
/**
|
|
4287
|
+
* Operation identifier.
|
|
4288
|
+
*/
|
|
4289
|
+
operation_id: Ulid;
|
|
4290
|
+
};
|
|
4291
|
+
query?: never;
|
|
4292
|
+
url: "/v1/projects/{project_id}/source/uploads/{operation_id}/files";
|
|
4293
|
+
};
|
|
4294
|
+
export type PutManagedSourceBlobErrors = {
|
|
4295
|
+
/**
|
|
4296
|
+
* The request failed.
|
|
4297
|
+
*/
|
|
4298
|
+
400: ProblemDetails;
|
|
4299
|
+
/**
|
|
4300
|
+
* The request failed.
|
|
4301
|
+
*/
|
|
4302
|
+
401: ProblemDetails;
|
|
4303
|
+
/**
|
|
4304
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4305
|
+
*/
|
|
4306
|
+
404: ProblemDetails;
|
|
4307
|
+
/**
|
|
4308
|
+
* The request failed.
|
|
4309
|
+
*/
|
|
4310
|
+
409: ProblemDetails;
|
|
4311
|
+
/**
|
|
4312
|
+
* The request failed.
|
|
4313
|
+
*/
|
|
4314
|
+
413: ProblemDetails;
|
|
4315
|
+
/**
|
|
4316
|
+
* The request failed.
|
|
4317
|
+
*/
|
|
4318
|
+
429: ProblemDetails;
|
|
4319
|
+
/**
|
|
4320
|
+
* The request failed.
|
|
4321
|
+
*/
|
|
4322
|
+
503: ProblemDetails;
|
|
4323
|
+
};
|
|
4324
|
+
export type PutManagedSourceBlobError = PutManagedSourceBlobErrors[keyof PutManagedSourceBlobErrors];
|
|
4325
|
+
export type PutManagedSourceBlobResponses = {
|
|
4326
|
+
/**
|
|
4327
|
+
* The tenant-scoped managed source result.
|
|
4328
|
+
*/
|
|
4329
|
+
200: SourceManifestFile;
|
|
4330
|
+
};
|
|
4331
|
+
export type PutManagedSourceBlobResponse = PutManagedSourceBlobResponses[keyof PutManagedSourceBlobResponses];
|
|
4332
|
+
export type CommitManagedSourceUploadData = {
|
|
4333
|
+
body: ManagedSourceFinalizeRequest;
|
|
4334
|
+
headers: {
|
|
4335
|
+
/**
|
|
4336
|
+
* Optional caller-provided correlation identifier.
|
|
4337
|
+
*/
|
|
4338
|
+
"X-Request-Id"?: string;
|
|
4339
|
+
/**
|
|
4340
|
+
* Identifies one mutation and its canonical request payload.
|
|
4341
|
+
*/
|
|
4342
|
+
"Idempotency-Key": string;
|
|
4343
|
+
};
|
|
4344
|
+
path: {
|
|
4345
|
+
/**
|
|
4346
|
+
* Project identifier.
|
|
4347
|
+
*/
|
|
4348
|
+
project_id: Ulid;
|
|
4349
|
+
/**
|
|
4350
|
+
* Operation identifier.
|
|
4351
|
+
*/
|
|
4352
|
+
operation_id: Ulid;
|
|
4353
|
+
};
|
|
4354
|
+
query?: never;
|
|
4355
|
+
url: "/v1/projects/{project_id}/source/uploads/{operation_id}:commit";
|
|
4356
|
+
};
|
|
4357
|
+
export type CommitManagedSourceUploadErrors = {
|
|
4358
|
+
/**
|
|
4359
|
+
* The request failed.
|
|
4360
|
+
*/
|
|
4361
|
+
400: ProblemDetails;
|
|
4362
|
+
/**
|
|
4363
|
+
* The request failed.
|
|
4364
|
+
*/
|
|
4365
|
+
401: ProblemDetails;
|
|
4366
|
+
/**
|
|
4367
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4368
|
+
*/
|
|
4369
|
+
404: ProblemDetails;
|
|
4370
|
+
/**
|
|
4371
|
+
* The request failed.
|
|
4372
|
+
*/
|
|
4373
|
+
409: ProblemDetails;
|
|
4374
|
+
/**
|
|
4375
|
+
* The request failed.
|
|
4376
|
+
*/
|
|
4377
|
+
413: ProblemDetails;
|
|
4378
|
+
/**
|
|
4379
|
+
* The request failed.
|
|
4380
|
+
*/
|
|
4381
|
+
429: ProblemDetails;
|
|
4382
|
+
/**
|
|
4383
|
+
* The request failed.
|
|
4384
|
+
*/
|
|
4385
|
+
503: ProblemDetails;
|
|
4386
|
+
};
|
|
4387
|
+
export type CommitManagedSourceUploadError = CommitManagedSourceUploadErrors[keyof CommitManagedSourceUploadErrors];
|
|
4388
|
+
export type CommitManagedSourceUploadResponses = {
|
|
4389
|
+
/**
|
|
4390
|
+
* The mutation was accepted for asynchronous processing.
|
|
4391
|
+
*/
|
|
4392
|
+
202: Operation;
|
|
4393
|
+
};
|
|
4394
|
+
export type CommitManagedSourceUploadResponse = CommitManagedSourceUploadResponses[keyof CommitManagedSourceUploadResponses];
|
|
4395
|
+
export type SwitchManagedSourceData = {
|
|
4396
|
+
body: ManagedSourceSwitchRequest;
|
|
4397
|
+
headers: {
|
|
4398
|
+
/**
|
|
4399
|
+
* Optional caller-provided correlation identifier.
|
|
4400
|
+
*/
|
|
4401
|
+
"X-Request-Id"?: string;
|
|
4402
|
+
/**
|
|
4403
|
+
* Identifies one mutation and its canonical request payload.
|
|
4404
|
+
*/
|
|
4405
|
+
"Idempotency-Key": string;
|
|
4406
|
+
};
|
|
4407
|
+
path: {
|
|
4408
|
+
/**
|
|
4409
|
+
* Project identifier.
|
|
4410
|
+
*/
|
|
4411
|
+
project_id: Ulid;
|
|
4412
|
+
};
|
|
4413
|
+
query?: never;
|
|
4414
|
+
url: "/v1/projects/{project_id}/source:switch";
|
|
4415
|
+
};
|
|
4416
|
+
export type SwitchManagedSourceErrors = {
|
|
4417
|
+
/**
|
|
4418
|
+
* The request failed.
|
|
4419
|
+
*/
|
|
4420
|
+
400: ProblemDetails;
|
|
4421
|
+
/**
|
|
4422
|
+
* The request failed.
|
|
4423
|
+
*/
|
|
4424
|
+
401: ProblemDetails;
|
|
4425
|
+
/**
|
|
4426
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4427
|
+
*/
|
|
4428
|
+
404: ProblemDetails;
|
|
4429
|
+
/**
|
|
4430
|
+
* The request failed.
|
|
4431
|
+
*/
|
|
4432
|
+
409: ProblemDetails;
|
|
4433
|
+
/**
|
|
4434
|
+
* The request failed.
|
|
4435
|
+
*/
|
|
4436
|
+
413: ProblemDetails;
|
|
4437
|
+
/**
|
|
4438
|
+
* The request failed.
|
|
4439
|
+
*/
|
|
4440
|
+
429: ProblemDetails;
|
|
4441
|
+
/**
|
|
4442
|
+
* The request failed.
|
|
4443
|
+
*/
|
|
4444
|
+
503: ProblemDetails;
|
|
4445
|
+
};
|
|
4446
|
+
export type SwitchManagedSourceError = SwitchManagedSourceErrors[keyof SwitchManagedSourceErrors];
|
|
4447
|
+
export type SwitchManagedSourceResponses = {
|
|
4448
|
+
/**
|
|
4449
|
+
* The mutation was accepted for asynchronous processing.
|
|
4450
|
+
*/
|
|
4451
|
+
202: Operation;
|
|
4452
|
+
};
|
|
4453
|
+
export type SwitchManagedSourceResponse = SwitchManagedSourceResponses[keyof SwitchManagedSourceResponses];
|
|
3654
4454
|
export type GetProjectSourceAutoDeployData = {
|
|
3655
4455
|
body?: never;
|
|
3656
4456
|
headers?: {
|