// 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; apiClientId: number; userId: number; createdByIpAddress: string; lastUsedByIpAddress: string; lastUsedAt: string; expiresAt: string; createdAt: string; updatedAt: string; ownerUuid: string; defaultOwnerUuid: string; scopes: string[]; } export const getTokenV2 = (aca: ApiClientAuthorization): string => `v2/${aca.uuid}/${aca.apiToken}`;