// Copyright (C) The Arvados Authors. All rights reserved. // // SPDX-License-Identifier: AGPL-3.0 import { Resource } from 'models/resource'; export interface ApiClientAuthorization extends Resource { uuid: string; apiToken: string; userId: number; createdByIpAddress: string; lastUsedByIpAddress: string; lastUsedAt: string; expiresAt: string; createdAt: string; updatedAt: string; ownerUuid: string; scopes: string[]; } export const getTokenV2 = (aca: ApiClientAuthorization): string => `v2/${aca.uuid}/${aca.apiToken}`;