11components :
2- parameters :
3- TeamName :
4- name : teamName
5- in : path
6- required : true
7- schema :
8- type : string
9- description : Name of a team
102 responses :
113 PackageAccessLevels :
12- description : " Packages with their access levels"
4+ description : ' Packages with their access levels'
135 content :
146 application/json :
157 schema :
168 type : object
179 additionalProperties :
1810 type : string
1911 example :
20- " @npmcli/arborist " : " read-write"
21- " @npmcli/config " : " read-only"
12+ ' @npmcli/arborist ' : read-write
13+ ' @npmcli/config ' : read-only
2214 PackageVisibility :
23- description : " Packages with their visibility"
15+ description : ' Packages with their visibility'
2416 content :
2517 application/json :
2618 schema :
2719 type : object
2820 additionalProperties :
2921 type : string
3022 example :
31- " @npmcli/arborist " : " public"
32- " @npmcli/hidden " : " private"
23+ ' @npmcli/arborist ' : public
24+ ' @npmcli/hidden ' : private
3325 UserAccessLevels :
34- description : " User access levels"
26+ description : User access levels
3527 content :
3628 application/json :
3729 schema :
3830 type : object
3931 additionalProperties :
4032 type : string
4133 example :
42- " npm " : " read-write"
43- " microsoft " : " read-only"
34+ npm : read-write
35+ microsoft : read-only
4436paths :
4537 /-/team/{orgName}/{teamName}/package :
4638 parameters :
4739 - $ref : ' ./api/shared-components.yaml#/components/parameters/OrgName'
48- - $ref : ' #/components/parameters/TeamName'
49- - $ref : " ./api/shared-components.yaml#/components/parameters/RequiredBearerToken"
40+ - $ref : ' ./api/shared-components.yaml #/components/parameters/TeamName'
41+ - $ref : ' ./api/shared-components.yaml#/components/parameters/RequiredBearerToken'
5042 get :
5143 tags :
5244 - Access
5648 security :
5749 - npmSessionToken : []
5850 responses :
59- " 200 " :
51+ ' 200 ' :
6052 $ref : ' #/components/responses/PackageAccessLevels'
61- " 401 " :
53+ ' 401 ' :
6254 $ref : ' ./api/shared-components.yaml#/components/responses/Unauthorized'
6355 put :
6456 tags :
@@ -84,24 +76,24 @@ paths:
8476 security :
8577 - npmSessionToken : []
8678 responses :
87- " 201 " :
79+ ' 201 ' :
8880 $ref : ' ./api/shared-components.yaml#/components/responses/EmptySuccess'
89- " 401 " :
81+ ' 401 ' :
9082 $ref : ' ./api/shared-components.yaml#/components/responses/Unauthorized'
9183 delete :
9284 summary : Remove access to a package for a team
9385 operationId : deleteTeamPackageGrant
9486 security :
9587 - npmSessionToken : []
9688 responses :
97- " 204 " :
89+ ' 204 ' :
9890 $ref : ' ./api/shared-components.yaml#/components/responses/EmptySuccess'
99- " 401 " :
91+ ' 401 ' :
10092 $ref : ' ./api/shared-components.yaml#/components/responses/Unauthorized'
10193 /-/org/{orgName}/package :
10294 parameters :
10395 - $ref : ' ./api/shared-components.yaml#/components/parameters/OrgName'
104- - $ref : " ./api/shared-components.yaml#/components/parameters/RequiredBearerToken"
96+ - $ref : ' ./api/shared-components.yaml#/components/parameters/RequiredBearerToken'
10597 get :
10698 tags :
10799 - Access
@@ -111,14 +103,14 @@ paths:
111103 security :
112104 - npmSessionToken : []
113105 responses :
114- " 200 " :
106+ ' 200 ' :
115107 $ref : ' #/components/responses/PackageAccessLevels'
116- " 401 " :
108+ ' 401 ' :
117109 $ref : ' ./api/shared-components.yaml#/components/responses/Unauthorized'
118110 /-/package/{escapedPackageName}/collaborators :
119111 parameters :
120112 - $ref : ' ./api/shared-components.yaml#/components/parameters/EscapedPackageName'
121- - $ref : " ./api/shared-components.yaml#/components/parameters/RequiredBearerToken"
113+ - $ref : ' ./api/shared-components.yaml#/components/parameters/RequiredBearerToken'
122114 get :
123115 tags :
124116 - Access
@@ -127,14 +119,14 @@ paths:
127119 security :
128120 - npmSessionToken : []
129121 responses :
130- " 200 " :
122+ ' 200 ' :
131123 $ref : ' #/components/responses/UserAccessLevels'
132- " 401 " :
124+ ' 401 ' :
133125 $ref : ' ./api/shared-components.yaml#/components/responses/Unauthorized'
134126 /-/package/{escapedPackageName}/visibility :
135127 parameters :
136128 - $ref : ' ./api/shared-components.yaml#/components/parameters/EscapedPackageName'
137- - $ref : " ./api/shared-components.yaml#/components/parameters/RequiredBearerToken"
129+ - $ref : ' ./api/shared-components.yaml#/components/parameters/RequiredBearerToken'
138130 get :
139131 tags :
140132 - Access
@@ -143,9 +135,9 @@ paths:
143135 security :
144136 - npmSessionToken : []
145137 responses :
146- " 200 " :
138+ ' 200 ' :
147139 $ref : ' #/components/responses/PackageVisibility'
148- " 401 " :
140+ ' 401 ' :
149141 $ref : ' ./api/shared-components.yaml#/components/responses/Unauthorized'
150142 /-/package/{escapedPackageName}/access :
151143 parameters :
@@ -178,7 +170,7 @@ paths:
178170 security :
179171 - npmSessionToken : []
180172 responses :
181- " 200 " :
173+ ' 200 ' :
182174 $ref : ' ./api/shared-components.yaml#/components/responses/EmptySuccess'
183- " 401 " :
175+ ' 401 ' :
184176 $ref : ' ./api/shared-components.yaml#/components/responses/Unauthorized'
0 commit comments