UNPKG

dt-app

Version:

The Dynatrace App Toolkit is a tool you can use from your command line to create, develop, and deploy apps on your Dynatrace environment.

17 lines (16 loc) 781 B
import type { OAuthScope, ResolvedCliOptions } from './config/cli-options'; export type EffectivePermission = { permission: string; granted: 'true' | 'false' | 'condition'; context?: Record<string, unknown>; }; /** * Get the permissions to provided scopes. Either granted true or false */ export declare function getEffectivePermissions(environmentUrl: string, appScopes: OAuthScope[], token: string): Promise<EffectivePermission[]>; /** * Logs a warning if some permissions are missing */ export declare function missingPermissionsWarning(options: ResolvedCliOptions): Promise<void>; /** Prints a warning showing all the missing and the conditional permissions */ export declare function showEffectivePermissionWarning(permissions: EffectivePermission[]): void;