@amerged/ohmyhost-mcp 0.1.28 → 0.1.29
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/THIRD_PARTY_NOTICES.md +1419 -0
- package/dist/{chunk-GIP4M4CK.js → chunk-BWVBJWRR.js} +67 -21
- package/dist/index.js +1 -1
- package/dist/stdio-main.js +24152 -2353
- package/package.json +1 -1
- package/src/apps/mcp/package.json +1 -1
- package/src/apps/mcp/src/local-client.ts +12 -2
- package/src/apps/mcp/src/local-server.ts +333 -4
- package/src/apps/product-cli/package.json +4 -2
- package/src/apps/product-cli/src/cli.ts +312 -2
- package/src/apps/product-cli/src/command.ts +261 -0
- package/src/apps/product-cli/src/composition.ts +74 -4
- package/src/apps/product-cli/src/index.ts +6 -0
- package/src/apps/product-cli/src/product-api.ts +5 -0
- package/src/apps/product-cli/src/project-link-store.ts +92 -1
- package/src/apps/product-cli/src/runtime-contract.ts +34 -1
- package/src/apps/product-cli/src/source-managed-client.ts +189 -0
- package/src/apps/product-cli/src/source-publication-store.ts +563 -0
- package/src/apps/product-cli/src/source-publisher.ts +195 -0
- package/src/apps/product-cli/src/source-workspace.ts +552 -0
- package/src/packages/agent-skills/src/generated-skill-resources.ts +18 -8
- package/src/packages/contracts/package.json +10 -0
- package/src/packages/contracts/src/managed-sources.ts +582 -0
- package/src/packages/contracts/src/mcp-source-codec.ts +150 -0
- package/src/packages/contracts/src/operation-failure.ts +22 -6
- package/src/packages/contracts/src/problem-policy.ts +61 -14
- 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
- package/src/packages/workos-auth-contracts/src/tokens.ts +61 -4
|
@@ -533,7 +533,28 @@ export type GithubSourceAuthorization = {
|
|
|
533
533
|
repository_name: string;
|
|
534
534
|
};
|
|
535
535
|
|
|
536
|
-
export type ProjectSource =
|
|
536
|
+
export type ProjectSource = GithubProjectSource | ManagedProjectSource;
|
|
537
|
+
|
|
538
|
+
export type ProjectSourceBinding = GithubSourceBinding | ManagedProjectSource;
|
|
539
|
+
|
|
540
|
+
export type ProjectSourceResponse =
|
|
541
|
+
| GithubProjectSource
|
|
542
|
+
| GithubSourceBinding
|
|
543
|
+
| ManagedProjectSource;
|
|
544
|
+
|
|
545
|
+
export type GithubProjectSource = {
|
|
546
|
+
provider: "github";
|
|
547
|
+
installation_id: string;
|
|
548
|
+
repository_full_name: string;
|
|
549
|
+
status: "pending" | "ready" | "failed" | "revoked";
|
|
550
|
+
linked_at: string;
|
|
551
|
+
updated_at: string;
|
|
552
|
+
failure_summary?: string;
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
export type GithubSourceBinding = {
|
|
556
|
+
source_connection_id: Ulid;
|
|
557
|
+
source_generation: number;
|
|
537
558
|
provider: "github";
|
|
538
559
|
installation_id: string;
|
|
539
560
|
repository_full_name: string;
|
|
@@ -543,6 +564,151 @@ export type ProjectSource = {
|
|
|
543
564
|
failure_summary?: string;
|
|
544
565
|
};
|
|
545
566
|
|
|
567
|
+
export type CommitSha = string;
|
|
568
|
+
|
|
569
|
+
export type NullableCommitSha = string | null;
|
|
570
|
+
|
|
571
|
+
export type SourceGeneration = number;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* 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.
|
|
575
|
+
*/
|
|
576
|
+
export type ManagedSourcePath = string;
|
|
577
|
+
|
|
578
|
+
export type SourceContentBase64 = string;
|
|
579
|
+
|
|
580
|
+
export type SourceMessage = string;
|
|
581
|
+
|
|
582
|
+
export type SourceManifestFile = {
|
|
583
|
+
path: ManagedSourcePath;
|
|
584
|
+
sha256: string;
|
|
585
|
+
byte_length: number;
|
|
586
|
+
executable: boolean;
|
|
587
|
+
};
|
|
588
|
+
|
|
589
|
+
export type SourceManifest = Array<SourceManifestFile>;
|
|
590
|
+
|
|
591
|
+
export type ManagedProjectSource = {
|
|
592
|
+
/**
|
|
593
|
+
* Actual source initialization child operation, when one exists; present only while pending or failed.
|
|
594
|
+
*/
|
|
595
|
+
initialization_operation_id?: Ulid;
|
|
596
|
+
/**
|
|
597
|
+
* Canonical public operation failure code for failed initialization; never a provider error.
|
|
598
|
+
*/
|
|
599
|
+
initialization_error_code?: string;
|
|
600
|
+
provider: "managed";
|
|
601
|
+
source_connection_id: Ulid;
|
|
602
|
+
source_generation: SourceGeneration;
|
|
603
|
+
namespace: string;
|
|
604
|
+
repository_name: string;
|
|
605
|
+
branch: "main";
|
|
606
|
+
current_commit_sha: NullableCommitSha;
|
|
607
|
+
status: "pending" | "ready" | "failed" | "revoked";
|
|
608
|
+
linked_at: string;
|
|
609
|
+
updated_at: string;
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
export type ManagedSourceInitializeRequest = {
|
|
613
|
+
template: "vite-react" | "empty";
|
|
614
|
+
expected_source_generation: SourceGeneration;
|
|
615
|
+
};
|
|
616
|
+
|
|
617
|
+
export type ManagedSourceUploadRequest = {
|
|
618
|
+
mode: "initialize" | "commit" | "switch";
|
|
619
|
+
expected_source_generation: SourceGeneration;
|
|
620
|
+
expected_source_connection_id: string | null;
|
|
621
|
+
expected_commit_sha: NullableCommitSha;
|
|
622
|
+
message: SourceMessage;
|
|
623
|
+
};
|
|
624
|
+
|
|
625
|
+
export type ManagedSourceBlobRequest = {
|
|
626
|
+
path: ManagedSourcePath;
|
|
627
|
+
content_base64: SourceContentBase64;
|
|
628
|
+
executable: boolean;
|
|
629
|
+
sha256: string;
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
export type ManagedSourceFinalizeRequest = {
|
|
633
|
+
files: SourceManifest;
|
|
634
|
+
expected_source_generation: SourceGeneration;
|
|
635
|
+
};
|
|
636
|
+
|
|
637
|
+
export type ManagedSourceSwitchRequest = {
|
|
638
|
+
upload_operation_id: Ulid;
|
|
639
|
+
files: SourceManifest;
|
|
640
|
+
expected_source_generation: SourceGeneration;
|
|
641
|
+
expected_source_connection_id: Ulid;
|
|
642
|
+
};
|
|
643
|
+
|
|
644
|
+
export type ManagedSourceChangesRequest = {
|
|
645
|
+
expected_source_generation: SourceGeneration;
|
|
646
|
+
expected_commit_sha: NullableCommitSha;
|
|
647
|
+
message: SourceMessage;
|
|
648
|
+
changes: Array<{
|
|
649
|
+
path: ManagedSourcePath;
|
|
650
|
+
executable: boolean;
|
|
651
|
+
content_base64: string | null;
|
|
652
|
+
}>;
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
export type ManagedSourceRestoreRequest = {
|
|
656
|
+
expected_source_generation: SourceGeneration;
|
|
657
|
+
expected_commit_sha: NullableCommitSha;
|
|
658
|
+
restore_commit_sha: CommitSha;
|
|
659
|
+
message: SourceMessage;
|
|
660
|
+
};
|
|
661
|
+
|
|
662
|
+
export type ManagedSourceUploadReceipt = {
|
|
663
|
+
operation_id: Ulid;
|
|
664
|
+
state: "staging" | "sealed" | "committed" | "failed";
|
|
665
|
+
expected_source_generation: SourceGeneration;
|
|
666
|
+
expected_commit_sha: NullableCommitSha;
|
|
667
|
+
commit_sha: NullableCommitSha;
|
|
668
|
+
expires_at: string;
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
export type ManagedSourceFilesResponse = ManagedSourceFiles | ManagedSourceFileResponse;
|
|
672
|
+
|
|
673
|
+
export type ManagedSourceFiles = {
|
|
674
|
+
commit_sha: CommitSha;
|
|
675
|
+
files: SourceManifest;
|
|
676
|
+
};
|
|
677
|
+
|
|
678
|
+
export type ManagedSourceFileResponse = {
|
|
679
|
+
commit_sha: CommitSha;
|
|
680
|
+
file: {
|
|
681
|
+
path: ManagedSourcePath;
|
|
682
|
+
sha256: string;
|
|
683
|
+
byte_length: number;
|
|
684
|
+
executable: boolean;
|
|
685
|
+
content_base64: SourceContentBase64;
|
|
686
|
+
};
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
export type ManagedSourceVersions = {
|
|
690
|
+
next_commit_sha: NullableCommitSha;
|
|
691
|
+
versions: Array<{
|
|
692
|
+
commit_sha: CommitSha;
|
|
693
|
+
parent_commit_sha: NullableCommitSha;
|
|
694
|
+
message: string;
|
|
695
|
+
created_at: string;
|
|
696
|
+
}>;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
export type ManagedSourceDiff = {
|
|
700
|
+
from_commit_sha: CommitSha;
|
|
701
|
+
to_commit_sha: CommitSha;
|
|
702
|
+
changes: Array<{
|
|
703
|
+
path: ManagedSourcePath;
|
|
704
|
+
change: "added" | "modified" | "deleted";
|
|
705
|
+
before_sha256: string | null;
|
|
706
|
+
after_sha256: string | null;
|
|
707
|
+
before_executable: boolean | null;
|
|
708
|
+
after_executable: boolean | null;
|
|
709
|
+
}>;
|
|
710
|
+
};
|
|
711
|
+
|
|
546
712
|
export type FunctionRun = {
|
|
547
713
|
id: Ulid;
|
|
548
714
|
deployment_id: Ulid;
|
|
@@ -923,6 +1089,10 @@ export type FeedbackUpdate = {
|
|
|
923
1089
|
* Phase 1 project creation request. The server assigns resource identifiers.
|
|
924
1090
|
*/
|
|
925
1091
|
export type CreateProjectRequest = {
|
|
1092
|
+
source?: {
|
|
1093
|
+
provider: "managed";
|
|
1094
|
+
template: "vite-react" | "empty";
|
|
1095
|
+
};
|
|
926
1096
|
organization_id: Ulid;
|
|
927
1097
|
data_mode?: ProjectDataMode;
|
|
928
1098
|
dev_access_mode?: "protected" | "public";
|
|
@@ -1280,6 +1450,10 @@ export type OperationFailure = {
|
|
|
1280
1450
|
code:
|
|
1281
1451
|
| "operation_failed"
|
|
1282
1452
|
| "operation_abandoned"
|
|
1453
|
+
| "authorization_changed"
|
|
1454
|
+
| "source_commit_conflict"
|
|
1455
|
+
| "source_snapshot_invalid"
|
|
1456
|
+
| "source_upload_expired"
|
|
1283
1457
|
| "recovery_dispatch_failed"
|
|
1284
1458
|
| "recovery_job_failed"
|
|
1285
1459
|
| "recovery_input_expired"
|
|
@@ -4207,7 +4381,12 @@ export type GetProjectSourceData = {
|
|
|
4207
4381
|
*/
|
|
4208
4382
|
project_id: Ulid;
|
|
4209
4383
|
};
|
|
4210
|
-
query?:
|
|
4384
|
+
query?: {
|
|
4385
|
+
/**
|
|
4386
|
+
* Return exact source binding metadata for GitHub; managed sources are always full.
|
|
4387
|
+
*/
|
|
4388
|
+
include_binding?: boolean;
|
|
4389
|
+
};
|
|
4211
4390
|
url: "/v1/projects/{project_id}/source";
|
|
4212
4391
|
};
|
|
4213
4392
|
|
|
@@ -4242,13 +4421,741 @@ export type GetProjectSourceError = GetProjectSourceErrors[keyof GetProjectSourc
|
|
|
4242
4421
|
|
|
4243
4422
|
export type GetProjectSourceResponses = {
|
|
4244
4423
|
/**
|
|
4245
|
-
* The current
|
|
4424
|
+
* The current source, using the default or explicitly requested binding projection.
|
|
4246
4425
|
*/
|
|
4247
|
-
200:
|
|
4426
|
+
200: ProjectSourceResponse;
|
|
4248
4427
|
};
|
|
4249
4428
|
|
|
4250
4429
|
export type GetProjectSourceResponse = GetProjectSourceResponses[keyof GetProjectSourceResponses];
|
|
4251
4430
|
|
|
4431
|
+
export type InitializeManagedSourceData = {
|
|
4432
|
+
body: ManagedSourceInitializeRequest;
|
|
4433
|
+
headers: {
|
|
4434
|
+
/**
|
|
4435
|
+
* Optional caller-provided correlation identifier.
|
|
4436
|
+
*/
|
|
4437
|
+
"X-Request-Id"?: string;
|
|
4438
|
+
/**
|
|
4439
|
+
* Identifies one mutation and its canonical request payload.
|
|
4440
|
+
*/
|
|
4441
|
+
"Idempotency-Key": string;
|
|
4442
|
+
};
|
|
4443
|
+
path: {
|
|
4444
|
+
/**
|
|
4445
|
+
* Project identifier.
|
|
4446
|
+
*/
|
|
4447
|
+
project_id: Ulid;
|
|
4448
|
+
};
|
|
4449
|
+
query?: never;
|
|
4450
|
+
url: "/v1/projects/{project_id}/source:initialize";
|
|
4451
|
+
};
|
|
4452
|
+
|
|
4453
|
+
export type InitializeManagedSourceErrors = {
|
|
4454
|
+
/**
|
|
4455
|
+
* The request failed.
|
|
4456
|
+
*/
|
|
4457
|
+
400: ProblemDetails;
|
|
4458
|
+
/**
|
|
4459
|
+
* The request failed.
|
|
4460
|
+
*/
|
|
4461
|
+
401: ProblemDetails;
|
|
4462
|
+
/**
|
|
4463
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4464
|
+
*/
|
|
4465
|
+
404: ProblemDetails;
|
|
4466
|
+
/**
|
|
4467
|
+
* The request failed.
|
|
4468
|
+
*/
|
|
4469
|
+
409: ProblemDetails;
|
|
4470
|
+
/**
|
|
4471
|
+
* The request failed.
|
|
4472
|
+
*/
|
|
4473
|
+
413: ProblemDetails;
|
|
4474
|
+
/**
|
|
4475
|
+
* The request failed.
|
|
4476
|
+
*/
|
|
4477
|
+
429: ProblemDetails;
|
|
4478
|
+
/**
|
|
4479
|
+
* The request failed.
|
|
4480
|
+
*/
|
|
4481
|
+
503: ProblemDetails;
|
|
4482
|
+
};
|
|
4483
|
+
|
|
4484
|
+
export type InitializeManagedSourceError =
|
|
4485
|
+
InitializeManagedSourceErrors[keyof InitializeManagedSourceErrors];
|
|
4486
|
+
|
|
4487
|
+
export type InitializeManagedSourceResponses = {
|
|
4488
|
+
/**
|
|
4489
|
+
* The mutation was accepted for asynchronous processing.
|
|
4490
|
+
*/
|
|
4491
|
+
202: Operation;
|
|
4492
|
+
};
|
|
4493
|
+
|
|
4494
|
+
export type InitializeManagedSourceResponse =
|
|
4495
|
+
InitializeManagedSourceResponses[keyof InitializeManagedSourceResponses];
|
|
4496
|
+
|
|
4497
|
+
export type ListManagedSourceFilesData = {
|
|
4498
|
+
body?: never;
|
|
4499
|
+
headers?: {
|
|
4500
|
+
/**
|
|
4501
|
+
* Optional caller-provided correlation identifier.
|
|
4502
|
+
*/
|
|
4503
|
+
"X-Request-Id"?: string;
|
|
4504
|
+
};
|
|
4505
|
+
path: {
|
|
4506
|
+
/**
|
|
4507
|
+
* Project identifier.
|
|
4508
|
+
*/
|
|
4509
|
+
project_id: Ulid;
|
|
4510
|
+
};
|
|
4511
|
+
query?: {
|
|
4512
|
+
commit_sha?: CommitSha;
|
|
4513
|
+
path?: ManagedSourcePath;
|
|
4514
|
+
};
|
|
4515
|
+
url: "/v1/projects/{project_id}/source/files";
|
|
4516
|
+
};
|
|
4517
|
+
|
|
4518
|
+
export type ListManagedSourceFilesErrors = {
|
|
4519
|
+
/**
|
|
4520
|
+
* The request failed.
|
|
4521
|
+
*/
|
|
4522
|
+
400: ProblemDetails;
|
|
4523
|
+
/**
|
|
4524
|
+
* The request failed.
|
|
4525
|
+
*/
|
|
4526
|
+
401: ProblemDetails;
|
|
4527
|
+
/**
|
|
4528
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4529
|
+
*/
|
|
4530
|
+
404: ProblemDetails;
|
|
4531
|
+
/**
|
|
4532
|
+
* The request failed.
|
|
4533
|
+
*/
|
|
4534
|
+
409: ProblemDetails;
|
|
4535
|
+
/**
|
|
4536
|
+
* The request failed.
|
|
4537
|
+
*/
|
|
4538
|
+
413: ProblemDetails;
|
|
4539
|
+
/**
|
|
4540
|
+
* The request failed.
|
|
4541
|
+
*/
|
|
4542
|
+
429: ProblemDetails;
|
|
4543
|
+
/**
|
|
4544
|
+
* The request failed.
|
|
4545
|
+
*/
|
|
4546
|
+
503: ProblemDetails;
|
|
4547
|
+
};
|
|
4548
|
+
|
|
4549
|
+
export type ListManagedSourceFilesError =
|
|
4550
|
+
ListManagedSourceFilesErrors[keyof ListManagedSourceFilesErrors];
|
|
4551
|
+
|
|
4552
|
+
export type ListManagedSourceFilesResponses = {
|
|
4553
|
+
/**
|
|
4554
|
+
* The tenant-scoped managed source result.
|
|
4555
|
+
*/
|
|
4556
|
+
200: ManagedSourceFilesResponse;
|
|
4557
|
+
};
|
|
4558
|
+
|
|
4559
|
+
export type ListManagedSourceFilesResponse =
|
|
4560
|
+
ListManagedSourceFilesResponses[keyof ListManagedSourceFilesResponses];
|
|
4561
|
+
|
|
4562
|
+
export type ListManagedSourceVersionsData = {
|
|
4563
|
+
body?: never;
|
|
4564
|
+
headers?: {
|
|
4565
|
+
/**
|
|
4566
|
+
* Optional caller-provided correlation identifier.
|
|
4567
|
+
*/
|
|
4568
|
+
"X-Request-Id"?: string;
|
|
4569
|
+
};
|
|
4570
|
+
path: {
|
|
4571
|
+
/**
|
|
4572
|
+
* Project identifier.
|
|
4573
|
+
*/
|
|
4574
|
+
project_id: Ulid;
|
|
4575
|
+
};
|
|
4576
|
+
query?: {
|
|
4577
|
+
limit?: number;
|
|
4578
|
+
before_commit_sha?: CommitSha;
|
|
4579
|
+
};
|
|
4580
|
+
url: "/v1/projects/{project_id}/source/versions";
|
|
4581
|
+
};
|
|
4582
|
+
|
|
4583
|
+
export type ListManagedSourceVersionsErrors = {
|
|
4584
|
+
/**
|
|
4585
|
+
* The request failed.
|
|
4586
|
+
*/
|
|
4587
|
+
400: ProblemDetails;
|
|
4588
|
+
/**
|
|
4589
|
+
* The request failed.
|
|
4590
|
+
*/
|
|
4591
|
+
401: ProblemDetails;
|
|
4592
|
+
/**
|
|
4593
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4594
|
+
*/
|
|
4595
|
+
404: ProblemDetails;
|
|
4596
|
+
/**
|
|
4597
|
+
* The request failed.
|
|
4598
|
+
*/
|
|
4599
|
+
409: ProblemDetails;
|
|
4600
|
+
/**
|
|
4601
|
+
* The request failed.
|
|
4602
|
+
*/
|
|
4603
|
+
413: ProblemDetails;
|
|
4604
|
+
/**
|
|
4605
|
+
* The request failed.
|
|
4606
|
+
*/
|
|
4607
|
+
429: ProblemDetails;
|
|
4608
|
+
/**
|
|
4609
|
+
* The request failed.
|
|
4610
|
+
*/
|
|
4611
|
+
503: ProblemDetails;
|
|
4612
|
+
};
|
|
4613
|
+
|
|
4614
|
+
export type ListManagedSourceVersionsError =
|
|
4615
|
+
ListManagedSourceVersionsErrors[keyof ListManagedSourceVersionsErrors];
|
|
4616
|
+
|
|
4617
|
+
export type ListManagedSourceVersionsResponses = {
|
|
4618
|
+
/**
|
|
4619
|
+
* The tenant-scoped managed source result.
|
|
4620
|
+
*/
|
|
4621
|
+
200: ManagedSourceVersions;
|
|
4622
|
+
};
|
|
4623
|
+
|
|
4624
|
+
export type ListManagedSourceVersionsResponse =
|
|
4625
|
+
ListManagedSourceVersionsResponses[keyof ListManagedSourceVersionsResponses];
|
|
4626
|
+
|
|
4627
|
+
export type DiffManagedSourceData = {
|
|
4628
|
+
body?: never;
|
|
4629
|
+
headers?: {
|
|
4630
|
+
/**
|
|
4631
|
+
* Optional caller-provided correlation identifier.
|
|
4632
|
+
*/
|
|
4633
|
+
"X-Request-Id"?: string;
|
|
4634
|
+
};
|
|
4635
|
+
path: {
|
|
4636
|
+
/**
|
|
4637
|
+
* Project identifier.
|
|
4638
|
+
*/
|
|
4639
|
+
project_id: Ulid;
|
|
4640
|
+
};
|
|
4641
|
+
query: {
|
|
4642
|
+
from_commit_sha: CommitSha;
|
|
4643
|
+
to_commit_sha: CommitSha;
|
|
4644
|
+
};
|
|
4645
|
+
url: "/v1/projects/{project_id}/source/diff";
|
|
4646
|
+
};
|
|
4647
|
+
|
|
4648
|
+
export type DiffManagedSourceErrors = {
|
|
4649
|
+
/**
|
|
4650
|
+
* The request failed.
|
|
4651
|
+
*/
|
|
4652
|
+
400: ProblemDetails;
|
|
4653
|
+
/**
|
|
4654
|
+
* The request failed.
|
|
4655
|
+
*/
|
|
4656
|
+
401: ProblemDetails;
|
|
4657
|
+
/**
|
|
4658
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4659
|
+
*/
|
|
4660
|
+
404: ProblemDetails;
|
|
4661
|
+
/**
|
|
4662
|
+
* The request failed.
|
|
4663
|
+
*/
|
|
4664
|
+
409: ProblemDetails;
|
|
4665
|
+
/**
|
|
4666
|
+
* The request failed.
|
|
4667
|
+
*/
|
|
4668
|
+
413: ProblemDetails;
|
|
4669
|
+
/**
|
|
4670
|
+
* The request failed.
|
|
4671
|
+
*/
|
|
4672
|
+
429: ProblemDetails;
|
|
4673
|
+
/**
|
|
4674
|
+
* The request failed.
|
|
4675
|
+
*/
|
|
4676
|
+
503: ProblemDetails;
|
|
4677
|
+
};
|
|
4678
|
+
|
|
4679
|
+
export type DiffManagedSourceError = DiffManagedSourceErrors[keyof DiffManagedSourceErrors];
|
|
4680
|
+
|
|
4681
|
+
export type DiffManagedSourceResponses = {
|
|
4682
|
+
/**
|
|
4683
|
+
* The tenant-scoped managed source result.
|
|
4684
|
+
*/
|
|
4685
|
+
200: ManagedSourceDiff;
|
|
4686
|
+
};
|
|
4687
|
+
|
|
4688
|
+
export type DiffManagedSourceResponse =
|
|
4689
|
+
DiffManagedSourceResponses[keyof DiffManagedSourceResponses];
|
|
4690
|
+
|
|
4691
|
+
export type ChangeManagedSourceData = {
|
|
4692
|
+
body: ManagedSourceChangesRequest;
|
|
4693
|
+
headers: {
|
|
4694
|
+
/**
|
|
4695
|
+
* Optional caller-provided correlation identifier.
|
|
4696
|
+
*/
|
|
4697
|
+
"X-Request-Id"?: string;
|
|
4698
|
+
/**
|
|
4699
|
+
* Identifies one mutation and its canonical request payload.
|
|
4700
|
+
*/
|
|
4701
|
+
"Idempotency-Key": string;
|
|
4702
|
+
};
|
|
4703
|
+
path: {
|
|
4704
|
+
/**
|
|
4705
|
+
* Project identifier.
|
|
4706
|
+
*/
|
|
4707
|
+
project_id: Ulid;
|
|
4708
|
+
};
|
|
4709
|
+
query?: never;
|
|
4710
|
+
url: "/v1/projects/{project_id}/source/changes";
|
|
4711
|
+
};
|
|
4712
|
+
|
|
4713
|
+
export type ChangeManagedSourceErrors = {
|
|
4714
|
+
/**
|
|
4715
|
+
* The request failed.
|
|
4716
|
+
*/
|
|
4717
|
+
400: ProblemDetails;
|
|
4718
|
+
/**
|
|
4719
|
+
* The request failed.
|
|
4720
|
+
*/
|
|
4721
|
+
401: ProblemDetails;
|
|
4722
|
+
/**
|
|
4723
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4724
|
+
*/
|
|
4725
|
+
404: ProblemDetails;
|
|
4726
|
+
/**
|
|
4727
|
+
* The request failed.
|
|
4728
|
+
*/
|
|
4729
|
+
409: ProblemDetails;
|
|
4730
|
+
/**
|
|
4731
|
+
* The request failed.
|
|
4732
|
+
*/
|
|
4733
|
+
413: ProblemDetails;
|
|
4734
|
+
/**
|
|
4735
|
+
* The request failed.
|
|
4736
|
+
*/
|
|
4737
|
+
429: ProblemDetails;
|
|
4738
|
+
/**
|
|
4739
|
+
* The request failed.
|
|
4740
|
+
*/
|
|
4741
|
+
503: ProblemDetails;
|
|
4742
|
+
};
|
|
4743
|
+
|
|
4744
|
+
export type ChangeManagedSourceError = ChangeManagedSourceErrors[keyof ChangeManagedSourceErrors];
|
|
4745
|
+
|
|
4746
|
+
export type ChangeManagedSourceResponses = {
|
|
4747
|
+
/**
|
|
4748
|
+
* The mutation was accepted for asynchronous processing.
|
|
4749
|
+
*/
|
|
4750
|
+
202: Operation;
|
|
4751
|
+
};
|
|
4752
|
+
|
|
4753
|
+
export type ChangeManagedSourceResponse =
|
|
4754
|
+
ChangeManagedSourceResponses[keyof ChangeManagedSourceResponses];
|
|
4755
|
+
|
|
4756
|
+
export type RestoreManagedSourceData = {
|
|
4757
|
+
body: ManagedSourceRestoreRequest;
|
|
4758
|
+
headers: {
|
|
4759
|
+
/**
|
|
4760
|
+
* Optional caller-provided correlation identifier.
|
|
4761
|
+
*/
|
|
4762
|
+
"X-Request-Id"?: string;
|
|
4763
|
+
/**
|
|
4764
|
+
* Identifies one mutation and its canonical request payload.
|
|
4765
|
+
*/
|
|
4766
|
+
"Idempotency-Key": string;
|
|
4767
|
+
};
|
|
4768
|
+
path: {
|
|
4769
|
+
/**
|
|
4770
|
+
* Project identifier.
|
|
4771
|
+
*/
|
|
4772
|
+
project_id: Ulid;
|
|
4773
|
+
};
|
|
4774
|
+
query?: never;
|
|
4775
|
+
url: "/v1/projects/{project_id}/source:restore";
|
|
4776
|
+
};
|
|
4777
|
+
|
|
4778
|
+
export type RestoreManagedSourceErrors = {
|
|
4779
|
+
/**
|
|
4780
|
+
* The request failed.
|
|
4781
|
+
*/
|
|
4782
|
+
400: ProblemDetails;
|
|
4783
|
+
/**
|
|
4784
|
+
* The request failed.
|
|
4785
|
+
*/
|
|
4786
|
+
401: ProblemDetails;
|
|
4787
|
+
/**
|
|
4788
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4789
|
+
*/
|
|
4790
|
+
404: ProblemDetails;
|
|
4791
|
+
/**
|
|
4792
|
+
* The request failed.
|
|
4793
|
+
*/
|
|
4794
|
+
409: ProblemDetails;
|
|
4795
|
+
/**
|
|
4796
|
+
* The request failed.
|
|
4797
|
+
*/
|
|
4798
|
+
413: ProblemDetails;
|
|
4799
|
+
/**
|
|
4800
|
+
* The request failed.
|
|
4801
|
+
*/
|
|
4802
|
+
429: ProblemDetails;
|
|
4803
|
+
/**
|
|
4804
|
+
* The request failed.
|
|
4805
|
+
*/
|
|
4806
|
+
503: ProblemDetails;
|
|
4807
|
+
};
|
|
4808
|
+
|
|
4809
|
+
export type RestoreManagedSourceError =
|
|
4810
|
+
RestoreManagedSourceErrors[keyof RestoreManagedSourceErrors];
|
|
4811
|
+
|
|
4812
|
+
export type RestoreManagedSourceResponses = {
|
|
4813
|
+
/**
|
|
4814
|
+
* The mutation was accepted for asynchronous processing.
|
|
4815
|
+
*/
|
|
4816
|
+
202: Operation;
|
|
4817
|
+
};
|
|
4818
|
+
|
|
4819
|
+
export type RestoreManagedSourceResponse =
|
|
4820
|
+
RestoreManagedSourceResponses[keyof RestoreManagedSourceResponses];
|
|
4821
|
+
|
|
4822
|
+
export type CreateManagedSourceUploadData = {
|
|
4823
|
+
body: ManagedSourceUploadRequest;
|
|
4824
|
+
headers: {
|
|
4825
|
+
/**
|
|
4826
|
+
* Optional caller-provided correlation identifier.
|
|
4827
|
+
*/
|
|
4828
|
+
"X-Request-Id"?: string;
|
|
4829
|
+
/**
|
|
4830
|
+
* Identifies one mutation and its canonical request payload.
|
|
4831
|
+
*/
|
|
4832
|
+
"Idempotency-Key": string;
|
|
4833
|
+
};
|
|
4834
|
+
path: {
|
|
4835
|
+
/**
|
|
4836
|
+
* Project identifier.
|
|
4837
|
+
*/
|
|
4838
|
+
project_id: Ulid;
|
|
4839
|
+
};
|
|
4840
|
+
query?: never;
|
|
4841
|
+
url: "/v1/projects/{project_id}/source/uploads";
|
|
4842
|
+
};
|
|
4843
|
+
|
|
4844
|
+
export type CreateManagedSourceUploadErrors = {
|
|
4845
|
+
/**
|
|
4846
|
+
* The request failed.
|
|
4847
|
+
*/
|
|
4848
|
+
400: ProblemDetails;
|
|
4849
|
+
/**
|
|
4850
|
+
* The request failed.
|
|
4851
|
+
*/
|
|
4852
|
+
401: ProblemDetails;
|
|
4853
|
+
/**
|
|
4854
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4855
|
+
*/
|
|
4856
|
+
404: ProblemDetails;
|
|
4857
|
+
/**
|
|
4858
|
+
* The request failed.
|
|
4859
|
+
*/
|
|
4860
|
+
409: ProblemDetails;
|
|
4861
|
+
/**
|
|
4862
|
+
* The request failed.
|
|
4863
|
+
*/
|
|
4864
|
+
413: ProblemDetails;
|
|
4865
|
+
/**
|
|
4866
|
+
* The request failed.
|
|
4867
|
+
*/
|
|
4868
|
+
429: ProblemDetails;
|
|
4869
|
+
/**
|
|
4870
|
+
* The request failed.
|
|
4871
|
+
*/
|
|
4872
|
+
503: ProblemDetails;
|
|
4873
|
+
};
|
|
4874
|
+
|
|
4875
|
+
export type CreateManagedSourceUploadError =
|
|
4876
|
+
CreateManagedSourceUploadErrors[keyof CreateManagedSourceUploadErrors];
|
|
4877
|
+
|
|
4878
|
+
export type CreateManagedSourceUploadResponses = {
|
|
4879
|
+
/**
|
|
4880
|
+
* The mutation was accepted for asynchronous processing.
|
|
4881
|
+
*/
|
|
4882
|
+
202: Operation;
|
|
4883
|
+
};
|
|
4884
|
+
|
|
4885
|
+
export type CreateManagedSourceUploadResponse =
|
|
4886
|
+
CreateManagedSourceUploadResponses[keyof CreateManagedSourceUploadResponses];
|
|
4887
|
+
|
|
4888
|
+
export type GetManagedSourceUploadData = {
|
|
4889
|
+
body?: never;
|
|
4890
|
+
headers?: {
|
|
4891
|
+
/**
|
|
4892
|
+
* Optional caller-provided correlation identifier.
|
|
4893
|
+
*/
|
|
4894
|
+
"X-Request-Id"?: string;
|
|
4895
|
+
};
|
|
4896
|
+
path: {
|
|
4897
|
+
/**
|
|
4898
|
+
* Project identifier.
|
|
4899
|
+
*/
|
|
4900
|
+
project_id: Ulid;
|
|
4901
|
+
/**
|
|
4902
|
+
* Operation identifier.
|
|
4903
|
+
*/
|
|
4904
|
+
operation_id: Ulid;
|
|
4905
|
+
};
|
|
4906
|
+
query?: never;
|
|
4907
|
+
url: "/v1/projects/{project_id}/source/uploads/{operation_id}";
|
|
4908
|
+
};
|
|
4909
|
+
|
|
4910
|
+
export type GetManagedSourceUploadErrors = {
|
|
4911
|
+
/**
|
|
4912
|
+
* The request failed.
|
|
4913
|
+
*/
|
|
4914
|
+
400: ProblemDetails;
|
|
4915
|
+
/**
|
|
4916
|
+
* The request failed.
|
|
4917
|
+
*/
|
|
4918
|
+
401: ProblemDetails;
|
|
4919
|
+
/**
|
|
4920
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4921
|
+
*/
|
|
4922
|
+
404: ProblemDetails;
|
|
4923
|
+
/**
|
|
4924
|
+
* The request failed.
|
|
4925
|
+
*/
|
|
4926
|
+
409: ProblemDetails;
|
|
4927
|
+
/**
|
|
4928
|
+
* The request failed.
|
|
4929
|
+
*/
|
|
4930
|
+
413: ProblemDetails;
|
|
4931
|
+
/**
|
|
4932
|
+
* The request failed.
|
|
4933
|
+
*/
|
|
4934
|
+
429: ProblemDetails;
|
|
4935
|
+
/**
|
|
4936
|
+
* The request failed.
|
|
4937
|
+
*/
|
|
4938
|
+
503: ProblemDetails;
|
|
4939
|
+
};
|
|
4940
|
+
|
|
4941
|
+
export type GetManagedSourceUploadError =
|
|
4942
|
+
GetManagedSourceUploadErrors[keyof GetManagedSourceUploadErrors];
|
|
4943
|
+
|
|
4944
|
+
export type GetManagedSourceUploadResponses = {
|
|
4945
|
+
/**
|
|
4946
|
+
* The tenant-scoped managed source result.
|
|
4947
|
+
*/
|
|
4948
|
+
200: ManagedSourceUploadReceipt;
|
|
4949
|
+
};
|
|
4950
|
+
|
|
4951
|
+
export type GetManagedSourceUploadResponse =
|
|
4952
|
+
GetManagedSourceUploadResponses[keyof GetManagedSourceUploadResponses];
|
|
4953
|
+
|
|
4954
|
+
export type PutManagedSourceBlobData = {
|
|
4955
|
+
body: ManagedSourceBlobRequest;
|
|
4956
|
+
headers: {
|
|
4957
|
+
/**
|
|
4958
|
+
* Optional caller-provided correlation identifier.
|
|
4959
|
+
*/
|
|
4960
|
+
"X-Request-Id"?: string;
|
|
4961
|
+
/**
|
|
4962
|
+
* Identifies one mutation and its canonical request payload.
|
|
4963
|
+
*/
|
|
4964
|
+
"Idempotency-Key": string;
|
|
4965
|
+
};
|
|
4966
|
+
path: {
|
|
4967
|
+
/**
|
|
4968
|
+
* Project identifier.
|
|
4969
|
+
*/
|
|
4970
|
+
project_id: Ulid;
|
|
4971
|
+
/**
|
|
4972
|
+
* Operation identifier.
|
|
4973
|
+
*/
|
|
4974
|
+
operation_id: Ulid;
|
|
4975
|
+
};
|
|
4976
|
+
query?: never;
|
|
4977
|
+
url: "/v1/projects/{project_id}/source/uploads/{operation_id}/files";
|
|
4978
|
+
};
|
|
4979
|
+
|
|
4980
|
+
export type PutManagedSourceBlobErrors = {
|
|
4981
|
+
/**
|
|
4982
|
+
* The request failed.
|
|
4983
|
+
*/
|
|
4984
|
+
400: ProblemDetails;
|
|
4985
|
+
/**
|
|
4986
|
+
* The request failed.
|
|
4987
|
+
*/
|
|
4988
|
+
401: ProblemDetails;
|
|
4989
|
+
/**
|
|
4990
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
4991
|
+
*/
|
|
4992
|
+
404: ProblemDetails;
|
|
4993
|
+
/**
|
|
4994
|
+
* The request failed.
|
|
4995
|
+
*/
|
|
4996
|
+
409: ProblemDetails;
|
|
4997
|
+
/**
|
|
4998
|
+
* The request failed.
|
|
4999
|
+
*/
|
|
5000
|
+
413: ProblemDetails;
|
|
5001
|
+
/**
|
|
5002
|
+
* The request failed.
|
|
5003
|
+
*/
|
|
5004
|
+
429: ProblemDetails;
|
|
5005
|
+
/**
|
|
5006
|
+
* The request failed.
|
|
5007
|
+
*/
|
|
5008
|
+
503: ProblemDetails;
|
|
5009
|
+
};
|
|
5010
|
+
|
|
5011
|
+
export type PutManagedSourceBlobError =
|
|
5012
|
+
PutManagedSourceBlobErrors[keyof PutManagedSourceBlobErrors];
|
|
5013
|
+
|
|
5014
|
+
export type PutManagedSourceBlobResponses = {
|
|
5015
|
+
/**
|
|
5016
|
+
* The tenant-scoped managed source result.
|
|
5017
|
+
*/
|
|
5018
|
+
200: SourceManifestFile;
|
|
5019
|
+
};
|
|
5020
|
+
|
|
5021
|
+
export type PutManagedSourceBlobResponse =
|
|
5022
|
+
PutManagedSourceBlobResponses[keyof PutManagedSourceBlobResponses];
|
|
5023
|
+
|
|
5024
|
+
export type CommitManagedSourceUploadData = {
|
|
5025
|
+
body: ManagedSourceFinalizeRequest;
|
|
5026
|
+
headers: {
|
|
5027
|
+
/**
|
|
5028
|
+
* Optional caller-provided correlation identifier.
|
|
5029
|
+
*/
|
|
5030
|
+
"X-Request-Id"?: string;
|
|
5031
|
+
/**
|
|
5032
|
+
* Identifies one mutation and its canonical request payload.
|
|
5033
|
+
*/
|
|
5034
|
+
"Idempotency-Key": string;
|
|
5035
|
+
};
|
|
5036
|
+
path: {
|
|
5037
|
+
/**
|
|
5038
|
+
* Project identifier.
|
|
5039
|
+
*/
|
|
5040
|
+
project_id: Ulid;
|
|
5041
|
+
/**
|
|
5042
|
+
* Operation identifier.
|
|
5043
|
+
*/
|
|
5044
|
+
operation_id: Ulid;
|
|
5045
|
+
};
|
|
5046
|
+
query?: never;
|
|
5047
|
+
url: "/v1/projects/{project_id}/source/uploads/{operation_id}:commit";
|
|
5048
|
+
};
|
|
5049
|
+
|
|
5050
|
+
export type CommitManagedSourceUploadErrors = {
|
|
5051
|
+
/**
|
|
5052
|
+
* The request failed.
|
|
5053
|
+
*/
|
|
5054
|
+
400: ProblemDetails;
|
|
5055
|
+
/**
|
|
5056
|
+
* The request failed.
|
|
5057
|
+
*/
|
|
5058
|
+
401: ProblemDetails;
|
|
5059
|
+
/**
|
|
5060
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
5061
|
+
*/
|
|
5062
|
+
404: ProblemDetails;
|
|
5063
|
+
/**
|
|
5064
|
+
* The request failed.
|
|
5065
|
+
*/
|
|
5066
|
+
409: ProblemDetails;
|
|
5067
|
+
/**
|
|
5068
|
+
* The request failed.
|
|
5069
|
+
*/
|
|
5070
|
+
413: ProblemDetails;
|
|
5071
|
+
/**
|
|
5072
|
+
* The request failed.
|
|
5073
|
+
*/
|
|
5074
|
+
429: ProblemDetails;
|
|
5075
|
+
/**
|
|
5076
|
+
* The request failed.
|
|
5077
|
+
*/
|
|
5078
|
+
503: ProblemDetails;
|
|
5079
|
+
};
|
|
5080
|
+
|
|
5081
|
+
export type CommitManagedSourceUploadError =
|
|
5082
|
+
CommitManagedSourceUploadErrors[keyof CommitManagedSourceUploadErrors];
|
|
5083
|
+
|
|
5084
|
+
export type CommitManagedSourceUploadResponses = {
|
|
5085
|
+
/**
|
|
5086
|
+
* The mutation was accepted for asynchronous processing.
|
|
5087
|
+
*/
|
|
5088
|
+
202: Operation;
|
|
5089
|
+
};
|
|
5090
|
+
|
|
5091
|
+
export type CommitManagedSourceUploadResponse =
|
|
5092
|
+
CommitManagedSourceUploadResponses[keyof CommitManagedSourceUploadResponses];
|
|
5093
|
+
|
|
5094
|
+
export type SwitchManagedSourceData = {
|
|
5095
|
+
body: ManagedSourceSwitchRequest;
|
|
5096
|
+
headers: {
|
|
5097
|
+
/**
|
|
5098
|
+
* Optional caller-provided correlation identifier.
|
|
5099
|
+
*/
|
|
5100
|
+
"X-Request-Id"?: string;
|
|
5101
|
+
/**
|
|
5102
|
+
* Identifies one mutation and its canonical request payload.
|
|
5103
|
+
*/
|
|
5104
|
+
"Idempotency-Key": string;
|
|
5105
|
+
};
|
|
5106
|
+
path: {
|
|
5107
|
+
/**
|
|
5108
|
+
* Project identifier.
|
|
5109
|
+
*/
|
|
5110
|
+
project_id: Ulid;
|
|
5111
|
+
};
|
|
5112
|
+
query?: never;
|
|
5113
|
+
url: "/v1/projects/{project_id}/source:switch";
|
|
5114
|
+
};
|
|
5115
|
+
|
|
5116
|
+
export type SwitchManagedSourceErrors = {
|
|
5117
|
+
/**
|
|
5118
|
+
* The request failed.
|
|
5119
|
+
*/
|
|
5120
|
+
400: ProblemDetails;
|
|
5121
|
+
/**
|
|
5122
|
+
* The request failed.
|
|
5123
|
+
*/
|
|
5124
|
+
401: ProblemDetails;
|
|
5125
|
+
/**
|
|
5126
|
+
* The resource does not exist or is not visible to the authenticated principal.
|
|
5127
|
+
*/
|
|
5128
|
+
404: ProblemDetails;
|
|
5129
|
+
/**
|
|
5130
|
+
* The request failed.
|
|
5131
|
+
*/
|
|
5132
|
+
409: ProblemDetails;
|
|
5133
|
+
/**
|
|
5134
|
+
* The request failed.
|
|
5135
|
+
*/
|
|
5136
|
+
413: ProblemDetails;
|
|
5137
|
+
/**
|
|
5138
|
+
* The request failed.
|
|
5139
|
+
*/
|
|
5140
|
+
429: ProblemDetails;
|
|
5141
|
+
/**
|
|
5142
|
+
* The request failed.
|
|
5143
|
+
*/
|
|
5144
|
+
503: ProblemDetails;
|
|
5145
|
+
};
|
|
5146
|
+
|
|
5147
|
+
export type SwitchManagedSourceError = SwitchManagedSourceErrors[keyof SwitchManagedSourceErrors];
|
|
5148
|
+
|
|
5149
|
+
export type SwitchManagedSourceResponses = {
|
|
5150
|
+
/**
|
|
5151
|
+
* The mutation was accepted for asynchronous processing.
|
|
5152
|
+
*/
|
|
5153
|
+
202: Operation;
|
|
5154
|
+
};
|
|
5155
|
+
|
|
5156
|
+
export type SwitchManagedSourceResponse =
|
|
5157
|
+
SwitchManagedSourceResponses[keyof SwitchManagedSourceResponses];
|
|
5158
|
+
|
|
4252
5159
|
export type GetProjectSourceAutoDeployData = {
|
|
4253
5160
|
body?: never;
|
|
4254
5161
|
headers?: {
|