@taskcluster/client 105.1.0 → 107.0.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/apis.js +27 -53
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taskcluster/client",
3
- "version": "105.1.0",
3
+ "version": "107.0.0",
4
4
  "author": "Jonas Finnemann Jensen <jopsen@gmail.com>",
5
5
  "description": "Client for interfacing taskcluster components",
6
6
  "license": "MPL-2.0",
package/src/apis.js CHANGED
@@ -605,6 +605,33 @@ export default {
605
605
  "title": "Get Temporary GCP Credentials",
606
606
  "type": "function"
607
607
  },
608
+ {
609
+ "args": [
610
+ "appName",
611
+ "owner"
612
+ ],
613
+ "category": "Github Credentials",
614
+ "description": "Get a Github application installation token scoped to the given repositories\nand permissions, using the configured app `appName`.\n\nRequesting `<permission>: <level>` on `<owner>/<repo>` requires the scope\n`auth:github-repo-token:<appName>/<owner>/<repo>:<permission>:<level>`.\nLevels and permissions are matched exactly to github token permissions\nwhich can be found at\nhttps://docs.github.com/en/rest/apps/apps?apiVersion=2026-03-10#create-an-installation-access-token-for-an-app.\nWhile token access is widened (requesting a write token will give a read+write one)\nscopes are not. Holding `:contents:write` alone only allows requesting a `write` token.\nBoth owner and repo must be in lowercase in the scope.\n\nThe token expires after an hour but this behavior is github dependent.\nYou should read the `expires` property from the response if you intend\nto maintain active credentials in your task.",
615
+ "input": "v1/github-repo-token-request.json#",
616
+ "method": "post",
617
+ "name": "githubRepoToken",
618
+ "output": "v1/github-token-response.json#",
619
+ "query": [
620
+ ],
621
+ "route": "/github/<appName>/<owner>/repo-token",
622
+ "scopes": {
623
+ "AllOf": [
624
+ {
625
+ "each": "auth:github-repo-token:<appName>/<owner>/<repoPerm>",
626
+ "for": "repoPerm",
627
+ "in": "repoPerms"
628
+ }
629
+ ]
630
+ },
631
+ "stability": "experimental",
632
+ "title": "Get a repository scoped github token",
633
+ "type": "function"
634
+ },
608
635
  {
609
636
  "args": [
610
637
  ],
@@ -2982,32 +3009,6 @@ export default {
2982
3009
  "title": "Get an active provisioner",
2983
3010
  "type": "function"
2984
3011
  },
2985
- {
2986
- "args": [
2987
- "provisionerId"
2988
- ],
2989
- "category": "Worker Metadata",
2990
- "description": "Declare a provisioner, supplying some details about it.\n\n`declareProvisioner` allows updating one or more properties of a provisioner as long as the required scopes are\npossessed. For example, a request to update the `my-provisioner`\nprovisioner with a body `{description: 'This provisioner is great'}` would require you to have the scope\n`queue:declare-provisioner:my-provisioner#description`.\n\nThe term \"provisioner\" is taken broadly to mean anything with a provisionerId.\nThis does not necessarily mean there is an associated service performing any\nprovisioning activity.",
2991
- "input": "v1/update-provisioner-request.json#",
2992
- "method": "put",
2993
- "name": "declareProvisioner",
2994
- "output": "v1/provisioner-response.json#",
2995
- "query": [
2996
- ],
2997
- "route": "/provisioners/<provisionerId>",
2998
- "scopes": {
2999
- "AllOf": [
3000
- {
3001
- "each": "queue:declare-provisioner:<provisionerId>#<property>",
3002
- "for": "property",
3003
- "in": "properties"
3004
- }
3005
- ]
3006
- },
3007
- "stability": "deprecated",
3008
- "title": "Update a provisioner",
3009
- "type": "function"
3010
- },
3011
3012
  {
3012
3013
  "args": [
3013
3014
  "taskQueueId"
@@ -3122,33 +3123,6 @@ export default {
3122
3123
  "title": "Get a worker-type",
3123
3124
  "type": "function"
3124
3125
  },
3125
- {
3126
- "args": [
3127
- "provisionerId",
3128
- "workerType"
3129
- ],
3130
- "category": "Worker Metadata",
3131
- "description": "Declare a workerType, supplying some details about it.\n\n`declareWorkerType` allows updating one or more properties of a worker-type as long as the required scopes are\npossessed. For example, a request to update the `highmem` worker-type within the `my-provisioner`\nprovisioner with a body `{description: 'This worker type is great'}` would require you to have the scope\n`queue:declare-worker-type:my-provisioner/highmem#description`.",
3132
- "input": "v1/update-workertype-request.json#",
3133
- "method": "put",
3134
- "name": "declareWorkerType",
3135
- "output": "v1/workertype-response.json#",
3136
- "query": [
3137
- ],
3138
- "route": "/provisioners/<provisionerId>/worker-types/<workerType>",
3139
- "scopes": {
3140
- "AllOf": [
3141
- {
3142
- "each": "queue:declare-worker-type:<provisionerId>/<workerType>#<property>",
3143
- "for": "property",
3144
- "in": "properties"
3145
- }
3146
- ]
3147
- },
3148
- "stability": "deprecated",
3149
- "title": "Update a worker-type",
3150
- "type": "function"
3151
- },
3152
3126
  {
3153
3127
  "args": [
3154
3128
  ],