From d0c0ca4fddfd8ff34e8b602895809f7a4a51de7b Mon Sep 17 00:00:00 2001 From: Tiago Barbosa Date: Fri, 12 Jul 2024 23:44:13 +0100 Subject: [PATCH] chore: update plugin config schema Signed-off-by: Tiago Barbosa --- config.d.ts | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/config.d.ts b/config.d.ts index ffb3ffc..fce94d3 100644 --- a/config.d.ts +++ b/config.d.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -import { PagerDutyOAuthConfig } from "@pagerduty/backstage-plugin-common"; +import { PagerDutyAccountConfig, PagerDutyOAuthConfig } from '@pagerduty/backstage-plugin-common'; export interface Config { /** @@ -28,9 +28,24 @@ export interface Config { */ eventsBaseUrl?: string; /** - * Optional API Base URL to override the default. - * @visibility frontend - */ + * Optional API Base URL to override the default. + * @visibility frontend + */ apiBaseUrl?: string; + /** + * Optional PagerDuty API Token used in API calls from the backend component. + * @visibility secret + */ + apiToken?: string; + /** + * Optional PagerDuty Scoped OAuth Token used in API calls from the backend component. + * @deepVisibility secret + */ + oauth?: PagerDutyOAuthConfig; + /** + * Optional PagerDuty multi-account configuration + * @deepVisibility secret + */ + accounts?: PagerDutyAccountConfig[]; }; }