@taskcluster/client 91.1.1 → 92.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/apis.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taskcluster/client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "92.0.1",
|
|
4
4
|
"author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
|
|
5
5
|
"description": "Client for interfacing taskcluster components",
|
|
6
6
|
"license": "MPL-2.0",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"nock": "^13.5.5"
|
|
24
24
|
},
|
|
25
25
|
"engines": {
|
|
26
|
-
"node": "24.
|
|
26
|
+
"node": "24.11.0"
|
|
27
27
|
},
|
|
28
28
|
"type": "module",
|
|
29
29
|
"files": [
|
package/src/apis.js
CHANGED
|
@@ -2772,7 +2772,7 @@ export default {
|
|
|
2772
2772
|
"name"
|
|
2773
2773
|
],
|
|
2774
2774
|
"category": "Artifacts",
|
|
2775
|
-
"description": "Get artifact by `<name>` from the last run of a task.\n\n**Artifact Access**, in order to get an artifact you need the scope\n`queue:get-artifact:<name>`, where `<name>` is the name of the artifact.\nTo allow access to fetch artifacts with a client like `curl` or a web\nbrowser, without using Taskcluster credentials, include a scope in the\n`anonymous` role. The convention is to include\n`queue:get-artifact:public/*`.\n\n**
|
|
2775
|
+
"description": "Get artifact by `<name>` from the last run of a task.\n\n**Artifact Access**, in order to get an artifact you need the scope\n`queue:get-artifact:<name>`, where `<name>` is the name of the artifact.\nTo allow access to fetch artifacts with a client like `curl` or a web\nbrowser, without using Taskcluster credentials, include a scope in the\n`anonymous` role. The convention is to include\n`queue:get-artifact:public/*`.\n\n**Response**: the HTTP response to this method is a 303 redirect to the\nURL from which the artifact can be downloaded. The body of that response\ncontains the data described in the output schema, contianing the same URL.\nCallers are encouraged to use whichever method of gathering the URL is\nmost convenient. Standard HTTP clients will follow the redirect, while\nAPI client libraries will return the JSON body.\n\nIn order to download an artifact the following must be done:\n\n1. Obtain queue url. Building a signed url with a taskcluster client is\nrecommended\n1. Make a GET request which does not follow redirects\n1. In all cases, if specified, the\nx-taskcluster-location-{content,transfer}-{sha256,length} values must be\nvalidated to be equal to the Content-Length and Sha256 checksum of the\nfinal artifact downloaded. as well as any intermediate redirects\n1. If this response is a 500-series error, retry using an exponential\nbackoff. No more than 5 retries should be attempted\n1. If this response is a 400-series error, treat it appropriately for\nyour context. This might be an error in responding to this request or\nan Error storage type body. This request should not be retried.\n1. If this response is a 200-series response, the response body is the artifact.\nIf the x-taskcluster-location-{content,transfer}-{sha256,length} and\nx-taskcluster-location-content-encoding are specified, they should match\nthis response body\n1. If the response type is a 300-series redirect, the artifact will be at the\nlocation specified by the `Location` header. There are multiple artifact storage\ntypes which use a 300-series redirect.\n1. For all redirects followed, the user must verify that the content-sha256, content-length,\ntransfer-sha256, transfer-length and content-encoding match every further request. The final\nartifact must also be validated against the values specified in the original queue response\n1. Caching of requests with an x-taskcluster-artifact-storage-type value of `reference`\nmust not occur\n\n**Headers**\nThe following important headers are set on the response to this method:\n\n* location: the url of the artifact if a redirect is to be performed\n* x-taskcluster-artifact-storage-type: the storage type. Example: s3\n\n**Remark**, this end-point is slightly slower than\n`queue.getArtifact`, so consider that if you already know the `runId` of\nthe latest run. Otherwise, just use the most convenient API end-point.",
|
|
2776
2776
|
"method": "get",
|
|
2777
2777
|
"name": "getLatestArtifact",
|
|
2778
2778
|
"output": "v1/get-artifact-response.json#",
|