Skip to content

Commit ad85d94

Browse files
Merge pull request #9 from depot/updated-sdk-tokens
Add new project token endpoints
2 parents b2a5cde + ffc8e11 commit ad85d94

File tree

2 files changed

+422
-0
lines changed

2 files changed

+422
-0
lines changed

src/gen/depot/core/v1/project_connect.ts

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,26 @@ import {
99
AddTrustPolicyResponse,
1010
CreateProjectRequest,
1111
CreateProjectResponse,
12+
CreateTokenRequest,
13+
CreateTokenResponse,
1214
DeleteProjectRequest,
1315
DeleteProjectResponse,
16+
DeleteTokenRequest,
17+
DeleteTokenResponse,
1418
GetProjectRequest,
1519
GetProjectResponse,
1620
ListProjectsRequest,
1721
ListProjectsResponse,
22+
ListTokensRequest,
23+
ListTokensResponse,
1824
ListTrustPoliciesRequest,
1925
ListTrustPoliciesResponse,
2026
RemoveTrustPolicyRequest,
2127
RemoveTrustPolicyResponse,
2228
UpdateProjectRequest,
2329
UpdateProjectResponse,
30+
UpdateTokenRequest,
31+
UpdateTokenResponse,
2432
} from './project_pb.js'
2533

2634
/**
@@ -117,5 +125,49 @@ export const ProjectService = {
117125
O: RemoveTrustPolicyResponse,
118126
kind: MethodKind.Unary,
119127
},
128+
/**
129+
* List project's API tokens.
130+
*
131+
* @generated from rpc depot.core.v1.ProjectService.ListTokens
132+
*/
133+
listTokens: {
134+
name: 'ListTokens',
135+
I: ListTokensRequest,
136+
O: ListTokensResponse,
137+
kind: MethodKind.Unary,
138+
},
139+
/**
140+
* Create a project API token.
141+
*
142+
* @generated from rpc depot.core.v1.ProjectService.CreateToken
143+
*/
144+
createToken: {
145+
name: 'CreateToken',
146+
I: CreateTokenRequest,
147+
O: CreateTokenResponse,
148+
kind: MethodKind.Unary,
149+
},
150+
/**
151+
* Create a project API token.
152+
*
153+
* @generated from rpc depot.core.v1.ProjectService.UpdateToken
154+
*/
155+
updateToken: {
156+
name: 'UpdateToken',
157+
I: UpdateTokenRequest,
158+
O: UpdateTokenResponse,
159+
kind: MethodKind.Unary,
160+
},
161+
/**
162+
* Delete project API token.
163+
*
164+
* @generated from rpc depot.core.v1.ProjectService.DeleteToken
165+
*/
166+
deleteToken: {
167+
name: 'DeleteToken',
168+
I: DeleteTokenRequest,
169+
O: DeleteTokenResponse,
170+
kind: MethodKind.Unary,
171+
},
120172
},
121173
} as const

0 commit comments

Comments
 (0)