Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-11-10 09:58:06 -05:00
parent 95fc28931d
commit 9a5833c99a
8 changed files with 109 additions and 93 deletions
+27 -22
View File
@@ -14,7 +14,6 @@ import { isChildPath } from '@backstage/cli-common';
import { JsonObject } from '@backstage/types';
import { JsonValue } from '@backstage/types';
import { Knex } from 'knex';
import { Observable } from '@backstage/types';
import { Permission } from '@backstage/plugin-permission-common';
import { PermissionAttributes } from '@backstage/plugin-permission-common';
import { PermissionEvaluator } from '@backstage/plugin-permission-common';
@@ -138,14 +137,6 @@ export type BackstageCredentials<TPrincipal = unknown> = {
principal: TPrincipal;
};
// @public (undocumented)
export interface BackstageInstance {
// (undocumented)
externalUrl: string;
// (undocumented)
internalUrl: string;
}
// @public
export type BackstageNonePrincipal = {
type: 'none';
@@ -246,13 +237,11 @@ export namespace coreServices {
'root',
'singleton'
>;
const // @alpha
systemMetadataServiceRef: ServiceRef<
SystemMetadataService,
'root',
'singleton'
>;
const systemMetadata: ServiceRef<SystemMetadataService, 'root', 'singleton'>;
const rootSystemMetadata: ServiceRef<
RootSystemMetadataService,
'root',
'singleton'
>;
}
// @public
@@ -644,6 +633,28 @@ export interface RootServiceFactoryOptions<
service: ServiceRef<TService, 'root', TInstances>;
}
// @public (undocumented)
export interface RootSystemMetadataService {
// (undocumented)
getInstalledPlugins: () => Promise<
ReadonlyArray<RootSystemMetadataServicePluginInfo>
>;
}
// @public (undocumented)
export interface RootSystemMetadataServicePluginInfo {
// (undocumented)
readonly hosts: (
| string
| {
external: string;
internal: string;
}
)[];
// (undocumented)
readonly pluginId: string;
}
// @public
export interface SchedulerService {
createScheduledTaskRunner(
@@ -760,12 +771,6 @@ export interface ServiceRefOptions<
scope?: TScope;
}
// @public (undocumented)
export interface SystemMetadataService {
// (undocumented)
instances(): Observable<BackstageInstance[]>;
}
// @public
export interface UrlReaderService {
readTree(