fix api reports

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-10-22 13:35:47 -04:00
parent 5e93cfcff2
commit ef642fffbe
9 changed files with 77 additions and 41 deletions
@@ -103,5 +103,30 @@ export const actionsServiceRef: ServiceRef<
'singleton'
>;
// @alpha (undocumented)
export type BackendFeatureMeta =
| {
type: 'plugin';
pluginId: string;
}
| {
type: 'module';
pluginId: string;
moduleId: string;
};
// @alpha (undocumented)
export interface InstanceMetadataService {
// (undocumented)
getInstalledFeatures: () => BackendFeatureMeta[];
}
// @alpha (undocumented)
export const instanceMetadataServiceRef: ServiceRef<
InstanceMetadataService,
'plugin',
'singleton'
>;
// (No @packageDocumentation comment for this package)
```
+20 -20
View File
@@ -232,8 +232,8 @@ export namespace coreServices {
const rootLogger: ServiceRef<RootLoggerService, 'root', 'singleton'>;
const scheduler: ServiceRef<SchedulerService, 'plugin', 'singleton'>;
const urlReader: ServiceRef<UrlReaderService, 'plugin', 'singleton'>;
const instanceMetadata: ServiceRef<
InstanceMetadataService,
const rootInstanceMetadata: ServiceRef<
RootInstanceMetadataService,
'plugin',
'singleton'
>;
@@ -421,24 +421,6 @@ export interface HttpRouterServiceAuthPolicy {
path: string;
}
// @public (undocumented)
export interface InstanceMetadataService {
// (undocumented)
getInstalledPlugins: () => Promise<
ReadonlyArray<InstanceMetadataServicePluginInfo>
>;
}
// @public (undocumented)
export interface InstanceMetadataServicePluginInfo {
// (undocumented)
readonly modules: ReadonlyArray<{
moduleId: string;
}>;
// (undocumented)
readonly pluginId: string;
}
export { isChildPath };
// @public
@@ -601,6 +583,24 @@ export interface RootHttpRouterService {
use(path: string, handler: Handler): void;
}
// @public (undocumented)
export interface RootInstanceMetadataService {
// (undocumented)
getInstalledPlugins: () => Promise<
ReadonlyArray<RootInstanceMetadataServicePluginInfo>
>;
}
// @public (undocumented)
export interface RootInstanceMetadataServicePluginInfo {
// (undocumented)
readonly modules: ReadonlyArray<{
moduleId: string;
}>;
// (undocumented)
readonly pluginId: string;
}
// @public
export interface RootLifecycleService extends LifecycleService {
// (undocumented)