vercel-api-js 1.8.2 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components.cjs +520 -11
- package/dist/components.d.mts +343 -10
- package/dist/components.d.mts.map +1 -1
- package/dist/components.mjs +503 -11
- package/dist/effect.cjs +465 -5
- package/dist/effect.d.mts +331 -5
- package/dist/effect.d.mts.map +1 -1
- package/dist/effect.mjs +465 -5
- package/dist/index.cjs +1735 -91
- package/dist/index.d.ts +3443 -120
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1504 -76
- package/dist/schemas.cjs +1074 -72
- package/dist/schemas.d.mts +631 -41
- package/dist/schemas.d.mts.map +1 -1
- package/dist/schemas.mjs +849 -57
- package/dist/types.cjs +159 -9
- package/dist/types.d.mts +2453 -70
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +154 -10
- package/package.json +1 -1
package/dist/effect.cjs
CHANGED
|
@@ -5196,7 +5196,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
5196
5196
|
* @summary Create a named sandbox
|
|
5197
5197
|
* @description Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown.
|
|
5198
5198
|
* @link /v2/sandboxes
|
|
5199
|
-
*/ async function
|
|
5199
|
+
*/ async function createSandboxesV2({ queryParams, config } = {}) {
|
|
5200
5200
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
5201
5201
|
const data = await request({
|
|
5202
5202
|
method: "POST",
|
|
@@ -5690,6 +5690,23 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
5690
5690
|
});
|
|
5691
5691
|
return data;
|
|
5692
5692
|
}
|
|
5693
|
+
/**
|
|
5694
|
+
* @summary Create a named sandbox
|
|
5695
|
+
* @description Creates a named sandbox environment. Named sandboxes have a unique name within a project and support automatic snapshotting on shutdown. Unlike v2, this version has no `runtime` parameter: when no `image` is provided (and the sandbox is not restored from a snapshot), the sandbox is created from the default universal image.
|
|
5696
|
+
* @link /v3/sandboxes
|
|
5697
|
+
*/ async function createSandboxesV3({ queryParams, config } = {}) {
|
|
5698
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
5699
|
+
const data = await request({
|
|
5700
|
+
method: "POST",
|
|
5701
|
+
url: `/v3/sandboxes`,
|
|
5702
|
+
queryParams,
|
|
5703
|
+
...requestConfig,
|
|
5704
|
+
headers: {
|
|
5705
|
+
...requestConfig.headers
|
|
5706
|
+
}
|
|
5707
|
+
});
|
|
5708
|
+
return data;
|
|
5709
|
+
}
|
|
5693
5710
|
/**
|
|
5694
5711
|
* @summary Update Attack Challenge mode
|
|
5695
5712
|
* @description Update the setting for determining if the project has Attack Challenge mode enabled.
|
|
@@ -5933,6 +5950,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
5933
5950
|
return data;
|
|
5934
5951
|
}
|
|
5935
5952
|
/**
|
|
5953
|
+
* @summary Get a store
|
|
5936
5954
|
* @link /storage/stores/{id}
|
|
5937
5955
|
*/ async function getStorageStoresById({ pathParams, queryParams, config } = {}) {
|
|
5938
5956
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
@@ -5951,6 +5969,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
5951
5969
|
return data;
|
|
5952
5970
|
}
|
|
5953
5971
|
/**
|
|
5972
|
+
* @summary Create a Blob store
|
|
5954
5973
|
* @link /storage/stores/blob
|
|
5955
5974
|
*/ async function createStorageStoresBlob({ config } = {}) {
|
|
5956
5975
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
@@ -5965,6 +5984,7 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
5965
5984
|
return data;
|
|
5966
5985
|
}
|
|
5967
5986
|
/**
|
|
5987
|
+
* @summary Delete a Blob store
|
|
5968
5988
|
* @link /storage/stores/blob/{id}
|
|
5969
5989
|
*/ async function deleteStorageStoresBlobById({ pathParams, config } = {}) {
|
|
5970
5990
|
const { client: request = client, ...requestConfig } = config ?? {};
|
|
@@ -6539,6 +6559,86 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
6539
6559
|
});
|
|
6540
6560
|
return data;
|
|
6541
6561
|
}
|
|
6562
|
+
/**
|
|
6563
|
+
* @summary Add a repository permission
|
|
6564
|
+
* @description Grant a team access to a VCR repository. Sharing applies to the whole repository.
|
|
6565
|
+
* @link /v1/vcr/repository/{idOrName}/permissions
|
|
6566
|
+
*/ async function addRepositoryPermission({ pathParams, queryParams, config } = {}) {
|
|
6567
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6568
|
+
if (!pathParams.idOrName) {
|
|
6569
|
+
throw new Error(`Missing required path parameter: idOrName`);
|
|
6570
|
+
}
|
|
6571
|
+
const data = await request({
|
|
6572
|
+
method: "POST",
|
|
6573
|
+
url: `/v1/vcr/repository/${pathParams.idOrName}/permissions`,
|
|
6574
|
+
queryParams,
|
|
6575
|
+
...requestConfig,
|
|
6576
|
+
headers: {
|
|
6577
|
+
...requestConfig.headers
|
|
6578
|
+
}
|
|
6579
|
+
});
|
|
6580
|
+
return data;
|
|
6581
|
+
}
|
|
6582
|
+
/**
|
|
6583
|
+
* @summary Remove a repository permission
|
|
6584
|
+
* @description Revoke a team's access to a VCR repository.
|
|
6585
|
+
* @link /v1/vcr/repository/{idOrName}/permissions
|
|
6586
|
+
*/ async function removeRepositoryPermission({ pathParams, queryParams, config } = {}) {
|
|
6587
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6588
|
+
if (!pathParams.idOrName) {
|
|
6589
|
+
throw new Error(`Missing required path parameter: idOrName`);
|
|
6590
|
+
}
|
|
6591
|
+
const data = await request({
|
|
6592
|
+
method: "DELETE",
|
|
6593
|
+
url: `/v1/vcr/repository/${pathParams.idOrName}/permissions`,
|
|
6594
|
+
queryParams,
|
|
6595
|
+
...requestConfig,
|
|
6596
|
+
headers: {
|
|
6597
|
+
...requestConfig.headers
|
|
6598
|
+
}
|
|
6599
|
+
});
|
|
6600
|
+
return data;
|
|
6601
|
+
}
|
|
6602
|
+
/**
|
|
6603
|
+
* @summary List repository permissions
|
|
6604
|
+
* @description List the teams a VCR repository is shared with.
|
|
6605
|
+
* @link /v1/vcr/repository/{idOrName}/permissions
|
|
6606
|
+
*/ async function listRepositoryPermissions({ pathParams, queryParams, config } = {}) {
|
|
6607
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6608
|
+
if (!pathParams.idOrName) {
|
|
6609
|
+
throw new Error(`Missing required path parameter: idOrName`);
|
|
6610
|
+
}
|
|
6611
|
+
const data = await request({
|
|
6612
|
+
method: "GET",
|
|
6613
|
+
url: `/v1/vcr/repository/${pathParams.idOrName}/permissions`,
|
|
6614
|
+
queryParams,
|
|
6615
|
+
...requestConfig,
|
|
6616
|
+
headers: {
|
|
6617
|
+
...requestConfig.headers
|
|
6618
|
+
}
|
|
6619
|
+
});
|
|
6620
|
+
return data;
|
|
6621
|
+
}
|
|
6622
|
+
/**
|
|
6623
|
+
* @summary Clear all repository permissions
|
|
6624
|
+
* @description Revoke every team's access to a VCR repository. Clearing an unshared repository is a no-op.
|
|
6625
|
+
* @link /v1/vcr/repository/{idOrName}/permissions/all
|
|
6626
|
+
*/ async function clearRepositoryPermissions({ pathParams, queryParams, config } = {}) {
|
|
6627
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6628
|
+
if (!pathParams.idOrName) {
|
|
6629
|
+
throw new Error(`Missing required path parameter: idOrName`);
|
|
6630
|
+
}
|
|
6631
|
+
const data = await request({
|
|
6632
|
+
method: "DELETE",
|
|
6633
|
+
url: `/v1/vcr/repository/${pathParams.idOrName}/permissions/all`,
|
|
6634
|
+
queryParams,
|
|
6635
|
+
...requestConfig,
|
|
6636
|
+
headers: {
|
|
6637
|
+
...requestConfig.headers
|
|
6638
|
+
}
|
|
6639
|
+
});
|
|
6640
|
+
return data;
|
|
6641
|
+
}
|
|
6542
6642
|
/**
|
|
6543
6643
|
* @summary List repository tags
|
|
6544
6644
|
* @description List a repository's tags.
|
|
@@ -6628,6 +6728,327 @@ const resolveUrl = (url, queryParams = {})=>{
|
|
|
6628
6728
|
});
|
|
6629
6729
|
return data;
|
|
6630
6730
|
}
|
|
6731
|
+
/**
|
|
6732
|
+
* @summary Check registry API version support
|
|
6733
|
+
* @description GET /v2/ Docker Registry v2 version check. Returns a 401 challenge when no credentials are provided, prompting the Docker client to send auth. With valid credentials, returns 200 so the client can proceed.
|
|
6734
|
+
* @link /v2/
|
|
6735
|
+
*/ async function getRoot({ config } = {}) {
|
|
6736
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6737
|
+
const data = await request({
|
|
6738
|
+
method: "GET",
|
|
6739
|
+
url: `/v2/`,
|
|
6740
|
+
...requestConfig,
|
|
6741
|
+
headers: {
|
|
6742
|
+
...requestConfig.headers
|
|
6743
|
+
}
|
|
6744
|
+
});
|
|
6745
|
+
return data;
|
|
6746
|
+
}
|
|
6747
|
+
/**
|
|
6748
|
+
* @summary Download a blob
|
|
6749
|
+
* @description GET /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Fetch a blob by digest.
|
|
6750
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/{digest}
|
|
6751
|
+
*/ async function getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest({ pathParams, config } = {}) {
|
|
6752
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6753
|
+
if (!pathParams.teamSlug) {
|
|
6754
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6755
|
+
}
|
|
6756
|
+
if (!pathParams.projectSlug) {
|
|
6757
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6758
|
+
}
|
|
6759
|
+
if (!pathParams.repositoryName) {
|
|
6760
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6761
|
+
}
|
|
6762
|
+
if (!pathParams.digest) {
|
|
6763
|
+
throw new Error(`Missing required path parameter: digest`);
|
|
6764
|
+
}
|
|
6765
|
+
const data = await request({
|
|
6766
|
+
method: "GET",
|
|
6767
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/blobs/${pathParams.digest}`,
|
|
6768
|
+
...requestConfig,
|
|
6769
|
+
headers: {
|
|
6770
|
+
...requestConfig.headers
|
|
6771
|
+
}
|
|
6772
|
+
});
|
|
6773
|
+
return data;
|
|
6774
|
+
}
|
|
6775
|
+
/**
|
|
6776
|
+
* @summary Delete a blob
|
|
6777
|
+
* @description DELETE /v2/:teamSlug/:projectSlug/:repositoryName/blobs/:digest Blob deletion is intentionally not supported. Matches the behaviour of most public registries.
|
|
6778
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/{digest}
|
|
6779
|
+
*/ async function deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest({ pathParams, config } = {}) {
|
|
6780
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6781
|
+
if (!pathParams.teamSlug) {
|
|
6782
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6783
|
+
}
|
|
6784
|
+
if (!pathParams.projectSlug) {
|
|
6785
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6786
|
+
}
|
|
6787
|
+
if (!pathParams.repositoryName) {
|
|
6788
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6789
|
+
}
|
|
6790
|
+
if (!pathParams.digest) {
|
|
6791
|
+
throw new Error(`Missing required path parameter: digest`);
|
|
6792
|
+
}
|
|
6793
|
+
const data = await request({
|
|
6794
|
+
method: "DELETE",
|
|
6795
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/blobs/${pathParams.digest}`,
|
|
6796
|
+
...requestConfig,
|
|
6797
|
+
headers: {
|
|
6798
|
+
...requestConfig.headers
|
|
6799
|
+
}
|
|
6800
|
+
});
|
|
6801
|
+
return data;
|
|
6802
|
+
}
|
|
6803
|
+
/**
|
|
6804
|
+
* @summary Get blob upload status
|
|
6805
|
+
* @description GET /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Query the status of an in-progress blob upload. Used by clients to resume a partial upload after an interruption.
|
|
6806
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}
|
|
6807
|
+
*/ async function getByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({ pathParams, config } = {}) {
|
|
6808
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6809
|
+
if (!pathParams.teamSlug) {
|
|
6810
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6811
|
+
}
|
|
6812
|
+
if (!pathParams.projectSlug) {
|
|
6813
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6814
|
+
}
|
|
6815
|
+
if (!pathParams.repositoryName) {
|
|
6816
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6817
|
+
}
|
|
6818
|
+
if (!pathParams.uuid) {
|
|
6819
|
+
throw new Error(`Missing required path parameter: uuid`);
|
|
6820
|
+
}
|
|
6821
|
+
const data = await request({
|
|
6822
|
+
method: "GET",
|
|
6823
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/blobs/uploads/${pathParams.uuid}`,
|
|
6824
|
+
...requestConfig,
|
|
6825
|
+
headers: {
|
|
6826
|
+
...requestConfig.headers
|
|
6827
|
+
}
|
|
6828
|
+
});
|
|
6829
|
+
return data;
|
|
6830
|
+
}
|
|
6831
|
+
/**
|
|
6832
|
+
* @summary Cancel a blob upload
|
|
6833
|
+
* @description DELETE /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Cancel an in-flight blob upload. Aborts the underlying S3 multipart upload (if one was started) and discards the session.
|
|
6834
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}
|
|
6835
|
+
*/ async function deleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({ pathParams, config } = {}) {
|
|
6836
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6837
|
+
if (!pathParams.teamSlug) {
|
|
6838
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6839
|
+
}
|
|
6840
|
+
if (!pathParams.projectSlug) {
|
|
6841
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6842
|
+
}
|
|
6843
|
+
if (!pathParams.repositoryName) {
|
|
6844
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6845
|
+
}
|
|
6846
|
+
if (!pathParams.uuid) {
|
|
6847
|
+
throw new Error(`Missing required path parameter: uuid`);
|
|
6848
|
+
}
|
|
6849
|
+
const data = await request({
|
|
6850
|
+
method: "DELETE",
|
|
6851
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/blobs/uploads/${pathParams.uuid}`,
|
|
6852
|
+
...requestConfig,
|
|
6853
|
+
headers: {
|
|
6854
|
+
...requestConfig.headers
|
|
6855
|
+
}
|
|
6856
|
+
});
|
|
6857
|
+
return data;
|
|
6858
|
+
}
|
|
6859
|
+
/**
|
|
6860
|
+
* @summary Upload a blob chunk
|
|
6861
|
+
* @description PATCH /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid Upload a chunk of blob data. The request body is streamed directly to S3 as a multipart upload part while hashing incrementally. The client may call this multiple times for chunked uploads.
|
|
6862
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}
|
|
6863
|
+
*/ async function updateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({ pathParams, config } = {}) {
|
|
6864
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6865
|
+
if (!pathParams.teamSlug) {
|
|
6866
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6867
|
+
}
|
|
6868
|
+
if (!pathParams.projectSlug) {
|
|
6869
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6870
|
+
}
|
|
6871
|
+
if (!pathParams.repositoryName) {
|
|
6872
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6873
|
+
}
|
|
6874
|
+
if (!pathParams.uuid) {
|
|
6875
|
+
throw new Error(`Missing required path parameter: uuid`);
|
|
6876
|
+
}
|
|
6877
|
+
const data = await request({
|
|
6878
|
+
method: "PATCH",
|
|
6879
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/blobs/uploads/${pathParams.uuid}`,
|
|
6880
|
+
...requestConfig,
|
|
6881
|
+
headers: {
|
|
6882
|
+
...requestConfig.headers
|
|
6883
|
+
}
|
|
6884
|
+
});
|
|
6885
|
+
return data;
|
|
6886
|
+
}
|
|
6887
|
+
/**
|
|
6888
|
+
* @summary Complete a blob upload
|
|
6889
|
+
* @description PUT /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/:uuid?digest=<digest> Complete the blob upload. This may include a final chunk of data in the request body (monolithic upload) or just finalize a previous chunked upload.
|
|
6890
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}
|
|
6891
|
+
*/ async function replaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid({ pathParams, queryParams, config } = {}) {
|
|
6892
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6893
|
+
if (!pathParams.teamSlug) {
|
|
6894
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6895
|
+
}
|
|
6896
|
+
if (!pathParams.projectSlug) {
|
|
6897
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6898
|
+
}
|
|
6899
|
+
if (!pathParams.repositoryName) {
|
|
6900
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6901
|
+
}
|
|
6902
|
+
if (!pathParams.uuid) {
|
|
6903
|
+
throw new Error(`Missing required path parameter: uuid`);
|
|
6904
|
+
}
|
|
6905
|
+
const data = await request({
|
|
6906
|
+
method: "PUT",
|
|
6907
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/blobs/uploads/${pathParams.uuid}`,
|
|
6908
|
+
queryParams,
|
|
6909
|
+
...requestConfig,
|
|
6910
|
+
headers: {
|
|
6911
|
+
...requestConfig.headers
|
|
6912
|
+
}
|
|
6913
|
+
});
|
|
6914
|
+
return data;
|
|
6915
|
+
}
|
|
6916
|
+
/**
|
|
6917
|
+
* @summary Start a blob upload
|
|
6918
|
+
* @description POST /v2/:teamSlug/:projectSlug/:repositoryName/blobs/uploads/[?mount=<digest>&from=<repo>] Initiate a blob upload. Returns a UUID in the Location header that the client uses for subsequent PATCH (chunk) and PUT (complete) requests.
|
|
6919
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/
|
|
6920
|
+
*/ async function createByTeamSlugByProjectSlugByRepositoryNameBlobsUploads({ pathParams, queryParams, config } = {}) {
|
|
6921
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6922
|
+
if (!pathParams.teamSlug) {
|
|
6923
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6924
|
+
}
|
|
6925
|
+
if (!pathParams.projectSlug) {
|
|
6926
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6927
|
+
}
|
|
6928
|
+
if (!pathParams.repositoryName) {
|
|
6929
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6930
|
+
}
|
|
6931
|
+
const data = await request({
|
|
6932
|
+
method: "POST",
|
|
6933
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/blobs/uploads/`,
|
|
6934
|
+
queryParams,
|
|
6935
|
+
...requestConfig,
|
|
6936
|
+
headers: {
|
|
6937
|
+
...requestConfig.headers
|
|
6938
|
+
}
|
|
6939
|
+
});
|
|
6940
|
+
return data;
|
|
6941
|
+
}
|
|
6942
|
+
/**
|
|
6943
|
+
* @summary Push an image manifest
|
|
6944
|
+
* @description PUT /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Upload an image manifest. The digest is computed from the body and returned in the Docker-Content-Digest header.
|
|
6945
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}
|
|
6946
|
+
*/ async function replaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference({ pathParams, config } = {}) {
|
|
6947
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6948
|
+
if (!pathParams.teamSlug) {
|
|
6949
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6950
|
+
}
|
|
6951
|
+
if (!pathParams.projectSlug) {
|
|
6952
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6953
|
+
}
|
|
6954
|
+
if (!pathParams.repositoryName) {
|
|
6955
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6956
|
+
}
|
|
6957
|
+
if (!pathParams.reference) {
|
|
6958
|
+
throw new Error(`Missing required path parameter: reference`);
|
|
6959
|
+
}
|
|
6960
|
+
const data = await request({
|
|
6961
|
+
method: "PUT",
|
|
6962
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/manifests/${pathParams.reference}`,
|
|
6963
|
+
...requestConfig,
|
|
6964
|
+
headers: {
|
|
6965
|
+
...requestConfig.headers
|
|
6966
|
+
}
|
|
6967
|
+
});
|
|
6968
|
+
return data;
|
|
6969
|
+
}
|
|
6970
|
+
/**
|
|
6971
|
+
* @summary Pull an image manifest
|
|
6972
|
+
* @description GET /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Fetch a manifest by tag or digest.
|
|
6973
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}
|
|
6974
|
+
*/ async function getByTeamSlugByProjectSlugByRepositoryNameManifestsByReference({ pathParams, config } = {}) {
|
|
6975
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
6976
|
+
if (!pathParams.teamSlug) {
|
|
6977
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
6978
|
+
}
|
|
6979
|
+
if (!pathParams.projectSlug) {
|
|
6980
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
6981
|
+
}
|
|
6982
|
+
if (!pathParams.repositoryName) {
|
|
6983
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
6984
|
+
}
|
|
6985
|
+
if (!pathParams.reference) {
|
|
6986
|
+
throw new Error(`Missing required path parameter: reference`);
|
|
6987
|
+
}
|
|
6988
|
+
const data = await request({
|
|
6989
|
+
method: "GET",
|
|
6990
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/manifests/${pathParams.reference}`,
|
|
6991
|
+
...requestConfig,
|
|
6992
|
+
headers: {
|
|
6993
|
+
...requestConfig.headers
|
|
6994
|
+
}
|
|
6995
|
+
});
|
|
6996
|
+
return data;
|
|
6997
|
+
}
|
|
6998
|
+
/**
|
|
6999
|
+
* @summary Delete an image manifest
|
|
7000
|
+
* @description DELETE /v2/:teamSlug/:projectSlug/:repositoryName/manifests/:reference Reference must be a digest.
|
|
7001
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}
|
|
7002
|
+
*/ async function deleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference({ pathParams, config } = {}) {
|
|
7003
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
7004
|
+
if (!pathParams.teamSlug) {
|
|
7005
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
7006
|
+
}
|
|
7007
|
+
if (!pathParams.projectSlug) {
|
|
7008
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
7009
|
+
}
|
|
7010
|
+
if (!pathParams.repositoryName) {
|
|
7011
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
7012
|
+
}
|
|
7013
|
+
if (!pathParams.reference) {
|
|
7014
|
+
throw new Error(`Missing required path parameter: reference`);
|
|
7015
|
+
}
|
|
7016
|
+
const data = await request({
|
|
7017
|
+
method: "DELETE",
|
|
7018
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/manifests/${pathParams.reference}`,
|
|
7019
|
+
...requestConfig,
|
|
7020
|
+
headers: {
|
|
7021
|
+
...requestConfig.headers
|
|
7022
|
+
}
|
|
7023
|
+
});
|
|
7024
|
+
return data;
|
|
7025
|
+
}
|
|
7026
|
+
/**
|
|
7027
|
+
* @summary List image tags
|
|
7028
|
+
* @description GET /v2/:teamSlug/:projectSlug/:repositoryName/tags/list List the tags in a repository.
|
|
7029
|
+
* @link /v2/{teamSlug}/{projectSlug}/{repositoryName}/tags/list
|
|
7030
|
+
*/ async function getByTeamSlugByProjectSlugByRepositoryNameTagsList({ pathParams, queryParams, config } = {}) {
|
|
7031
|
+
const { client: request = client, ...requestConfig } = config ?? {};
|
|
7032
|
+
if (!pathParams.teamSlug) {
|
|
7033
|
+
throw new Error(`Missing required path parameter: teamSlug`);
|
|
7034
|
+
}
|
|
7035
|
+
if (!pathParams.projectSlug) {
|
|
7036
|
+
throw new Error(`Missing required path parameter: projectSlug`);
|
|
7037
|
+
}
|
|
7038
|
+
if (!pathParams.repositoryName) {
|
|
7039
|
+
throw new Error(`Missing required path parameter: repositoryName`);
|
|
7040
|
+
}
|
|
7041
|
+
const data = await request({
|
|
7042
|
+
method: "GET",
|
|
7043
|
+
url: `/v2/${pathParams.teamSlug}/${pathParams.projectSlug}/${pathParams.repositoryName}/tags/list`,
|
|
7044
|
+
queryParams,
|
|
7045
|
+
...requestConfig,
|
|
7046
|
+
headers: {
|
|
7047
|
+
...requestConfig.headers
|
|
7048
|
+
}
|
|
7049
|
+
});
|
|
7050
|
+
return data;
|
|
7051
|
+
}
|
|
6631
7052
|
/**
|
|
6632
7053
|
* @link /web/insights/toggle
|
|
6633
7054
|
*/ async function createWebInsightsToggle({ queryParams, config } = {}) {
|
|
@@ -7332,7 +7753,7 @@ const operationsByPath = {
|
|
|
7332
7753
|
"POST /v1/projects/{projectId}/pause": pauseProject,
|
|
7333
7754
|
"POST /v1/projects/{projectId}/unpause": unpauseProject,
|
|
7334
7755
|
"GET /v2/sandboxes": listSandboxes,
|
|
7335
|
-
"POST /v2/sandboxes":
|
|
7756
|
+
"POST /v2/sandboxes": createSandboxesV2,
|
|
7336
7757
|
"GET /v2/sandboxes/drives": listDrives,
|
|
7337
7758
|
"POST /v2/sandboxes/drives/{name}": getOrCreateDrive,
|
|
7338
7759
|
"DELETE /v2/sandboxes/drives/{name}": deleteDrive,
|
|
@@ -7357,6 +7778,7 @@ const operationsByPath = {
|
|
|
7357
7778
|
"POST /v2/sandboxes/sessions/{sessionId}/fs/write": writeSessionFiles,
|
|
7358
7779
|
"POST /v2/sandboxes/sessions/{sessionId}/snapshot": createSessionSnapshot,
|
|
7359
7780
|
"POST /v2/sandboxes/{name}/fork": createSandboxesByNameFork,
|
|
7781
|
+
"POST /v3/sandboxes": createSandboxesV3,
|
|
7360
7782
|
"POST /v1/security/attack-mode": updateAttackChallengeMode,
|
|
7361
7783
|
"GET /v1/security/firewall/config": getSecurityFirewallConfig,
|
|
7362
7784
|
"PUT /v1/security/firewall/config": putFirewallConfig,
|
|
@@ -7403,10 +7825,26 @@ const operationsByPath = {
|
|
|
7403
7825
|
"GET /v1/vcr/repository/{idOrName}": getRepository,
|
|
7404
7826
|
"DELETE /v1/vcr/repository/{idOrName}": deleteRepository,
|
|
7405
7827
|
"GET /v1/vcr/repository/{idOrName}/images": listRepositoryImages,
|
|
7828
|
+
"POST /v1/vcr/repository/{idOrName}/permissions": addRepositoryPermission,
|
|
7829
|
+
"DELETE /v1/vcr/repository/{idOrName}/permissions": removeRepositoryPermission,
|
|
7830
|
+
"GET /v1/vcr/repository/{idOrName}/permissions": listRepositoryPermissions,
|
|
7831
|
+
"DELETE /v1/vcr/repository/{idOrName}/permissions/all": clearRepositoryPermissions,
|
|
7406
7832
|
"GET /v1/vcr/repository/{idOrName}/tags": listRepositoryTags,
|
|
7407
7833
|
"GET /v1/vcr/repository/{idOrName}/tags/{tag}": getRepositoryTag,
|
|
7408
7834
|
"GET /v1/vcr/repository/{idOrName}/images/{imageIdOrDigest}": getRepositoryImage,
|
|
7409
7835
|
"DELETE /v1/vcr/repository/{idOrName}/images/{imageId}": deleteRepositoryImage,
|
|
7836
|
+
"GET /v2/": getRoot,
|
|
7837
|
+
"GET /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/{digest}": getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest,
|
|
7838
|
+
"DELETE /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/{digest}": deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest,
|
|
7839
|
+
"GET /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}": getByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
7840
|
+
"DELETE /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}": deleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
7841
|
+
"PATCH /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}": updateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
7842
|
+
"PUT /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/{uuid}": replaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
7843
|
+
"POST /v2/{teamSlug}/{projectSlug}/{repositoryName}/blobs/uploads/": createByTeamSlugByProjectSlugByRepositoryNameBlobsUploads,
|
|
7844
|
+
"PUT /v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}": replaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference,
|
|
7845
|
+
"GET /v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}": getByTeamSlugByProjectSlugByRepositoryNameManifestsByReference,
|
|
7846
|
+
"DELETE /v2/{teamSlug}/{projectSlug}/{repositoryName}/manifests/{reference}": deleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference,
|
|
7847
|
+
"GET /v2/{teamSlug}/{projectSlug}/{repositoryName}/tags/list": getByTeamSlugByProjectSlugByRepositoryNameTagsList,
|
|
7410
7848
|
"POST /web/insights/toggle": createWebInsightsToggle,
|
|
7411
7849
|
"GET /v1/query/web-analytics/visits/aggregate": aggregatePageviews,
|
|
7412
7850
|
"GET /v1/query/web-analytics/events/aggregate": aggregateEvents,
|
|
@@ -7763,7 +8201,7 @@ const operationsByTag = {
|
|
|
7763
8201
|
},
|
|
7764
8202
|
sandboxes: {
|
|
7765
8203
|
listSandboxes,
|
|
7766
|
-
|
|
8204
|
+
createSandboxesV2,
|
|
7767
8205
|
listDrives,
|
|
7768
8206
|
getOrCreateDrive,
|
|
7769
8207
|
deleteDrive,
|
|
@@ -7787,7 +8225,8 @@ const operationsByTag = {
|
|
|
7787
8225
|
createSessionDirectory,
|
|
7788
8226
|
writeSessionFiles,
|
|
7789
8227
|
createSessionSnapshot,
|
|
7790
|
-
createSandboxesByNameFork
|
|
8228
|
+
createSandboxesByNameFork,
|
|
8229
|
+
createSandboxesV3
|
|
7791
8230
|
},
|
|
7792
8231
|
security: {
|
|
7793
8232
|
updateAttackChallengeMode,
|
|
@@ -7804,6 +8243,11 @@ const operationsByTag = {
|
|
|
7804
8243
|
getSecurityFirewallEvents,
|
|
7805
8244
|
generateFirewallRule
|
|
7806
8245
|
},
|
|
8246
|
+
storage: {
|
|
8247
|
+
getStorageStoresById,
|
|
8248
|
+
createStorageStoresBlob,
|
|
8249
|
+
deleteStorageStoresBlobById
|
|
8250
|
+
},
|
|
7807
8251
|
teams: {
|
|
7808
8252
|
getTeamMembers,
|
|
7809
8253
|
inviteUserToTeam,
|
|
@@ -7828,10 +8272,26 @@ const operationsByTag = {
|
|
|
7828
8272
|
getRepository,
|
|
7829
8273
|
deleteRepository,
|
|
7830
8274
|
listRepositoryImages,
|
|
8275
|
+
addRepositoryPermission,
|
|
8276
|
+
removeRepositoryPermission,
|
|
8277
|
+
listRepositoryPermissions,
|
|
8278
|
+
clearRepositoryPermissions,
|
|
7831
8279
|
listRepositoryTags,
|
|
7832
8280
|
getRepositoryTag,
|
|
7833
8281
|
getRepositoryImage,
|
|
7834
|
-
deleteRepositoryImage
|
|
8282
|
+
deleteRepositoryImage,
|
|
8283
|
+
getRoot,
|
|
8284
|
+
getByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest,
|
|
8285
|
+
deleteByTeamSlugByProjectSlugByRepositoryNameBlobsByDigest,
|
|
8286
|
+
getByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
8287
|
+
deleteByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
8288
|
+
updateByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
8289
|
+
replaceByTeamSlugByProjectSlugByRepositoryNameBlobsUploadsByUuid,
|
|
8290
|
+
createByTeamSlugByProjectSlugByRepositoryNameBlobsUploads,
|
|
8291
|
+
replaceByTeamSlugByProjectSlugByRepositoryNameManifestsByReference,
|
|
8292
|
+
getByTeamSlugByProjectSlugByRepositoryNameManifestsByReference,
|
|
8293
|
+
deleteByTeamSlugByProjectSlugByRepositoryNameManifestsByReference,
|
|
8294
|
+
getByTeamSlugByProjectSlugByRepositoryNameTagsList
|
|
7835
8295
|
},
|
|
7836
8296
|
webAnalytics: {
|
|
7837
8297
|
aggregatePageviews,
|