Fix integration tests and add output_glob to wb2 API Details, refs #9964
[arvados.git] / services / workbench2 / src / models / api-client-authorization.ts
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5 import { Resource } from 'models/resource';
6
7 export interface ApiClientAuthorization extends Resource {
8     uuid: string;
9     apiToken: string;
10     apiClientId: number;
11     userId: number;
12     createdByIpAddress: string;
13     lastUsedByIpAddress: string;
14     lastUsedAt: string;
15     expiresAt: string;
16     createdAt: string;
17     updatedAt: string;
18     ownerUuid: string;
19     scopes: string[];
20 }
21
22 export const getTokenV2 = (aca: ApiClientAuthorization): string =>
23     `v2/${aca.uuid}/${aca.apiToken}`;