@aepstore-dev/contracts 1.104.0 → 1.105.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/gen/auth.d.ts +25 -0
- package/gen/auth.js +2 -0
- package/gen/auth.ts +46 -0
- package/package.json +1 -1
- package/proto/auth.proto +28 -0
package/gen/auth.d.ts
CHANGED
|
@@ -178,6 +178,27 @@ export interface OAuthProduct {
|
|
|
178
178
|
export interface OAuthProductsResponse {
|
|
179
179
|
items: OAuthProduct[];
|
|
180
180
|
}
|
|
181
|
+
export interface ListOAuthAuthorizationsRequest {
|
|
182
|
+
userId: string;
|
|
183
|
+
}
|
|
184
|
+
export interface OAuthAuthorization {
|
|
185
|
+
clientId: string;
|
|
186
|
+
clientName: string;
|
|
187
|
+
scopes: string[];
|
|
188
|
+
grantedAt: string;
|
|
189
|
+
lastUsedAt: string;
|
|
190
|
+
}
|
|
191
|
+
export interface ListOAuthAuthorizationsResponse {
|
|
192
|
+
items: OAuthAuthorization[];
|
|
193
|
+
}
|
|
194
|
+
export interface RevokeOAuthAuthorizationRequest {
|
|
195
|
+
userId: string;
|
|
196
|
+
clientId: string;
|
|
197
|
+
}
|
|
198
|
+
export interface RevokeOAuthAuthorizationResponse {
|
|
199
|
+
revoked: boolean;
|
|
200
|
+
revokedTokens: number;
|
|
201
|
+
}
|
|
181
202
|
export interface AuthUser {
|
|
182
203
|
id: string;
|
|
183
204
|
username: string;
|
|
@@ -337,6 +358,8 @@ export interface AuthServiceClient {
|
|
|
337
358
|
exchangeOAuthToken(request: ExchangeOAuthTokenRequest): Observable<OAuthTokenResponse>;
|
|
338
359
|
getOAuthUserInfo(request: OAuthResourceRequest): Observable<OAuthUserInfoResponse>;
|
|
339
360
|
listOAuthProducts(request: OAuthResourceRequest): Observable<OAuthProductsResponse>;
|
|
361
|
+
listOAuthAuthorizations(request: ListOAuthAuthorizationsRequest): Observable<ListOAuthAuthorizationsResponse>;
|
|
362
|
+
revokeOAuthAuthorization(request: RevokeOAuthAuthorizationRequest): Observable<RevokeOAuthAuthorizationResponse>;
|
|
340
363
|
/**
|
|
341
364
|
* Logout — kill refresh tokens. LogoutCurrent kills only the one whose
|
|
342
365
|
* HMAC matches; LogoutAll wipes every row for the user.
|
|
@@ -389,6 +412,8 @@ export interface AuthServiceController {
|
|
|
389
412
|
exchangeOAuthToken(request: ExchangeOAuthTokenRequest): Promise<OAuthTokenResponse> | Observable<OAuthTokenResponse> | OAuthTokenResponse;
|
|
390
413
|
getOAuthUserInfo(request: OAuthResourceRequest): Promise<OAuthUserInfoResponse> | Observable<OAuthUserInfoResponse> | OAuthUserInfoResponse;
|
|
391
414
|
listOAuthProducts(request: OAuthResourceRequest): Promise<OAuthProductsResponse> | Observable<OAuthProductsResponse> | OAuthProductsResponse;
|
|
415
|
+
listOAuthAuthorizations(request: ListOAuthAuthorizationsRequest): Promise<ListOAuthAuthorizationsResponse> | Observable<ListOAuthAuthorizationsResponse> | ListOAuthAuthorizationsResponse;
|
|
416
|
+
revokeOAuthAuthorization(request: RevokeOAuthAuthorizationRequest): Promise<RevokeOAuthAuthorizationResponse> | Observable<RevokeOAuthAuthorizationResponse> | RevokeOAuthAuthorizationResponse;
|
|
392
417
|
/**
|
|
393
418
|
* Logout — kill refresh tokens. LogoutCurrent kills only the one whose
|
|
394
419
|
* HMAC matches; LogoutAll wipes every row for the user.
|
package/gen/auth.js
CHANGED
package/gen/auth.ts
CHANGED
|
@@ -215,6 +215,32 @@ export interface OAuthProductsResponse {
|
|
|
215
215
|
items: OAuthProduct[];
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
export interface ListOAuthAuthorizationsRequest {
|
|
219
|
+
userId: string;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
export interface OAuthAuthorization {
|
|
223
|
+
clientId: string;
|
|
224
|
+
clientName: string;
|
|
225
|
+
scopes: string[];
|
|
226
|
+
grantedAt: string;
|
|
227
|
+
lastUsedAt: string;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
export interface ListOAuthAuthorizationsResponse {
|
|
231
|
+
items: OAuthAuthorization[];
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface RevokeOAuthAuthorizationRequest {
|
|
235
|
+
userId: string;
|
|
236
|
+
clientId: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export interface RevokeOAuthAuthorizationResponse {
|
|
240
|
+
revoked: boolean;
|
|
241
|
+
revokedTokens: number;
|
|
242
|
+
}
|
|
243
|
+
|
|
218
244
|
export interface AuthUser {
|
|
219
245
|
id: string;
|
|
220
246
|
username: string;
|
|
@@ -423,6 +449,10 @@ export interface AuthServiceClient {
|
|
|
423
449
|
|
|
424
450
|
listOAuthProducts(request: OAuthResourceRequest): Observable<OAuthProductsResponse>;
|
|
425
451
|
|
|
452
|
+
listOAuthAuthorizations(request: ListOAuthAuthorizationsRequest): Observable<ListOAuthAuthorizationsResponse>;
|
|
453
|
+
|
|
454
|
+
revokeOAuthAuthorization(request: RevokeOAuthAuthorizationRequest): Observable<RevokeOAuthAuthorizationResponse>;
|
|
455
|
+
|
|
426
456
|
/**
|
|
427
457
|
* Logout — kill refresh tokens. LogoutCurrent kills only the one whose
|
|
428
458
|
* HMAC matches; LogoutAll wipes every row for the user.
|
|
@@ -534,6 +564,20 @@ export interface AuthServiceController {
|
|
|
534
564
|
request: OAuthResourceRequest,
|
|
535
565
|
): Promise<OAuthProductsResponse> | Observable<OAuthProductsResponse> | OAuthProductsResponse;
|
|
536
566
|
|
|
567
|
+
listOAuthAuthorizations(
|
|
568
|
+
request: ListOAuthAuthorizationsRequest,
|
|
569
|
+
):
|
|
570
|
+
| Promise<ListOAuthAuthorizationsResponse>
|
|
571
|
+
| Observable<ListOAuthAuthorizationsResponse>
|
|
572
|
+
| ListOAuthAuthorizationsResponse;
|
|
573
|
+
|
|
574
|
+
revokeOAuthAuthorization(
|
|
575
|
+
request: RevokeOAuthAuthorizationRequest,
|
|
576
|
+
):
|
|
577
|
+
| Promise<RevokeOAuthAuthorizationResponse>
|
|
578
|
+
| Observable<RevokeOAuthAuthorizationResponse>
|
|
579
|
+
| RevokeOAuthAuthorizationResponse;
|
|
580
|
+
|
|
537
581
|
/**
|
|
538
582
|
* Logout — kill refresh tokens. LogoutCurrent kills only the one whose
|
|
539
583
|
* HMAC matches; LogoutAll wipes every row for the user.
|
|
@@ -585,6 +629,8 @@ export function AuthServiceControllerMethods() {
|
|
|
585
629
|
"exchangeOAuthToken",
|
|
586
630
|
"getOAuthUserInfo",
|
|
587
631
|
"listOAuthProducts",
|
|
632
|
+
"listOAuthAuthorizations",
|
|
633
|
+
"revokeOAuthAuthorization",
|
|
588
634
|
"logoutCurrent",
|
|
589
635
|
"logoutAll",
|
|
590
636
|
"restoreLogin",
|
package/package.json
CHANGED
package/proto/auth.proto
CHANGED
|
@@ -33,6 +33,8 @@ service AuthService {
|
|
|
33
33
|
rpc ExchangeOAuthToken(ExchangeOAuthTokenRequest) returns (OAuthTokenResponse);
|
|
34
34
|
rpc GetOAuthUserInfo(OAuthResourceRequest) returns (OAuthUserInfoResponse);
|
|
35
35
|
rpc ListOAuthProducts(OAuthResourceRequest) returns (OAuthProductsResponse);
|
|
36
|
+
rpc ListOAuthAuthorizations(ListOAuthAuthorizationsRequest) returns (ListOAuthAuthorizationsResponse);
|
|
37
|
+
rpc RevokeOAuthAuthorization(RevokeOAuthAuthorizationRequest) returns (RevokeOAuthAuthorizationResponse);
|
|
36
38
|
|
|
37
39
|
// Logout — kill refresh tokens. LogoutCurrent kills only the one whose
|
|
38
40
|
// HMAC matches; LogoutAll wipes every row for the user.
|
|
@@ -247,6 +249,32 @@ message OAuthProductsResponse {
|
|
|
247
249
|
repeated OAuthProduct items = 1;
|
|
248
250
|
}
|
|
249
251
|
|
|
252
|
+
message ListOAuthAuthorizationsRequest {
|
|
253
|
+
string user_id = 1;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
message OAuthAuthorization {
|
|
257
|
+
string client_id = 1;
|
|
258
|
+
string client_name = 2;
|
|
259
|
+
repeated string scopes = 3;
|
|
260
|
+
string granted_at = 4;
|
|
261
|
+
string last_used_at = 5;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
message ListOAuthAuthorizationsResponse {
|
|
265
|
+
repeated OAuthAuthorization items = 1;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
message RevokeOAuthAuthorizationRequest {
|
|
269
|
+
string user_id = 1;
|
|
270
|
+
string client_id = 2;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
message RevokeOAuthAuthorizationResponse {
|
|
274
|
+
bool revoked = 1;
|
|
275
|
+
int32 revoked_tokens = 2;
|
|
276
|
+
}
|
|
277
|
+
|
|
250
278
|
// ---------------------------------------------------------------------------
|
|
251
279
|
// Responses
|
|
252
280
|
// ---------------------------------------------------------------------------
|