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.

21 lines (20 loc) 837 B
export type Token = `Bearer ${string}` | `Token ${string}`; /** Uploads an app to the hub manager */ export declare function uploadHubManagerExtension(options: { appId: string; /** The authentication token issued by the hub manager */ token: Token; /** Optional hub channels */ channels?: string[]; /** The app archive (ZIP) */ archive: Buffer; /** The version of the app */ version: string; /** Buffer containing the release notes */ releaseNotes: Buffer | undefined; }): Promise<string>; /** * Depending on the token it will return the proper endpoint for publishing an app. * If the token string starts with 'Token' it will return the legacy path and otherwise it will return the new path. */ export declare function getHubManagerEndpointForPublish(token: Token, appId: string): string;