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