16583: Add "Intermediate" to collection type filters
[arvados-workbench2.git] / 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     defaultOwnerUuid: string;
20     scopes: string[];
21 }
22
23 export const getTokenV2 = (aca: ApiClientAuthorization): string =>
24     `v2/${aca.uuid}/${aca.apiToken}`;