@backstage/backend-app-api 0.5.13 → 0.6.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import * as _backstage_backend_plugin_api from '@backstage/backend-plugin-api';
3
- import { LoggerService, RootConfigService, RootLoggerService, BackendFeature, ServiceFactoryOrFunction, DiscoveryService, LifecycleService, RootHttpRouterService, RootLifecycleService } from '@backstage/backend-plugin-api';
3
+ import { LoggerService, RootConfigService, RootLoggerService, BackendFeature, ServiceFactoryOrFunction, AuthService, DiscoveryService, HttpAuthService, LifecycleService, RootHttpRouterService, RootLifecycleService, UserInfoService } from '@backstage/backend-plugin-api';
4
4
  import { ConfigSchema, LoadConfigOptionsRemote, RemoteConfigSourceOptions } from '@backstage/config-loader';
5
5
  import { Config, AppConfig } from '@backstage/config';
6
6
  import * as http from 'http';
@@ -309,6 +309,9 @@ interface CreateSpecializedBackendOptions {
309
309
  */
310
310
  declare function createSpecializedBackend(options: CreateSpecializedBackendOptions): Backend;
311
311
 
312
+ /** @public */
313
+ declare const authServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<AuthService, "plugin">;
314
+
312
315
  /** @public */
313
316
  declare const cacheServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.CacheClient, "plugin">;
314
317
 
@@ -379,6 +382,9 @@ declare class HostDiscovery implements DiscoveryService {
379
382
  getExternalBaseUrl(pluginId: string): Promise<string>;
380
383
  }
381
384
 
385
+ /** @public */
386
+ declare const httpAuthServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<HttpAuthService, "plugin">;
387
+
382
388
  /**
383
389
  * @public
384
390
  */
@@ -516,4 +522,7 @@ declare const tokenManagerServiceFactory: () => _backstage_backend_plugin_api.Se
516
522
  /** @public */
517
523
  declare const urlReaderServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<_backstage_backend_common.UrlReader, "plugin">;
518
524
 
519
- export { Backend, CreateSpecializedBackendOptions, DefaultRootHttpRouter, DefaultRootHttpRouterOptions, ExtendedHttpServer, HostDiscovery, HttpRouterFactoryOptions, HttpServerCertificateOptions, HttpServerOptions, IdentityFactoryOptions, LifecycleMiddlewareOptions, MiddlewareFactory, MiddlewareFactoryErrorOptions, MiddlewareFactoryOptions, RootConfigFactoryOptions, RootHttpRouterConfigureContext, RootHttpRouterFactoryOptions, WinstonLogger, WinstonLoggerOptions, cacheServiceFactory, createConfigSecretEnumerator, createHttpServer, createLifecycleMiddleware, createSpecializedBackend, databaseServiceFactory, discoveryServiceFactory, httpRouterServiceFactory, identityServiceFactory, lifecycleServiceFactory, loadBackendConfig, loggerServiceFactory, permissionsServiceFactory, readCorsOptions, readHelmetOptions, readHttpServerOptions, rootConfigServiceFactory, rootHttpRouterServiceFactory, rootLifecycleServiceFactory, rootLoggerServiceFactory, schedulerServiceFactory, tokenManagerServiceFactory, urlReaderServiceFactory };
525
+ /** @public */
526
+ declare const userInfoServiceFactory: () => _backstage_backend_plugin_api.ServiceFactory<UserInfoService, "plugin">;
527
+
528
+ export { Backend, CreateSpecializedBackendOptions, DefaultRootHttpRouter, DefaultRootHttpRouterOptions, ExtendedHttpServer, HostDiscovery, HttpRouterFactoryOptions, HttpServerCertificateOptions, HttpServerOptions, IdentityFactoryOptions, LifecycleMiddlewareOptions, MiddlewareFactory, MiddlewareFactoryErrorOptions, MiddlewareFactoryOptions, RootConfigFactoryOptions, RootHttpRouterConfigureContext, RootHttpRouterFactoryOptions, WinstonLogger, WinstonLoggerOptions, authServiceFactory, cacheServiceFactory, createConfigSecretEnumerator, createHttpServer, createLifecycleMiddleware, createSpecializedBackend, databaseServiceFactory, discoveryServiceFactory, httpAuthServiceFactory, httpRouterServiceFactory, identityServiceFactory, lifecycleServiceFactory, loadBackendConfig, loggerServiceFactory, permissionsServiceFactory, readCorsOptions, readHelmetOptions, readHttpServerOptions, rootConfigServiceFactory, rootHttpRouterServiceFactory, rootLifecycleServiceFactory, rootLoggerServiceFactory, schedulerServiceFactory, tokenManagerServiceFactory, urlReaderServiceFactory, userInfoServiceFactory };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/backend-app-api",
3
3
  "description": "Core API used by Backstage backend apps",
4
- "version": "0.5.13",
4
+ "version": "0.6.0-next.0",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "publishConfig": {
@@ -43,40 +43,43 @@
43
43
  "start": "backstage-cli package start"
44
44
  },
45
45
  "dependencies": {
46
- "@backstage/backend-common": "^0.21.2",
47
- "@backstage/backend-plugin-api": "^0.6.12",
48
- "@backstage/backend-tasks": "^0.5.17",
46
+ "@backstage/backend-common": "^0.21.3-next.0",
47
+ "@backstage/backend-plugin-api": "^0.6.13-next.0",
48
+ "@backstage/backend-tasks": "^0.5.18-next.0",
49
49
  "@backstage/cli-common": "^0.1.13",
50
- "@backstage/cli-node": "^0.2.3",
51
- "@backstage/config": "^1.1.1",
52
- "@backstage/config-loader": "^1.6.2",
53
- "@backstage/errors": "^1.2.3",
54
- "@backstage/plugin-auth-node": "^0.4.7",
55
- "@backstage/plugin-permission-node": "^0.7.23",
50
+ "@backstage/cli-node": "^0.2.4-next.0",
51
+ "@backstage/config": "^1.1.2-next.0",
52
+ "@backstage/config-loader": "^1.6.3-next.0",
53
+ "@backstage/errors": "^1.2.4-next.0",
54
+ "@backstage/plugin-auth-node": "^0.4.8-next.0",
55
+ "@backstage/plugin-permission-node": "^0.7.24-next.0",
56
56
  "@backstage/types": "^1.1.1",
57
57
  "@manypkg/get-packages": "^1.1.3",
58
58
  "@types/cors": "^2.8.6",
59
59
  "@types/express": "^4.17.6",
60
60
  "compression": "^1.7.4",
61
+ "cookie": "^0.6.0",
61
62
  "cors": "^2.8.5",
62
63
  "express": "^4.17.1",
63
64
  "express-promise-router": "^4.1.0",
64
65
  "fs-extra": "^11.2.0",
65
66
  "helmet": "^6.0.0",
67
+ "jose": "^5.0.0",
66
68
  "lodash": "^4.17.21",
67
69
  "logform": "^2.3.2",
68
- "minimatch": "^5.0.0",
70
+ "minimatch": "^9.0.0",
69
71
  "minimist": "^1.2.5",
70
72
  "morgan": "^1.10.0",
71
73
  "node-forge": "^1.3.1",
74
+ "path-to-regexp": "^6.2.1",
72
75
  "selfsigned": "^2.0.0",
73
76
  "stoppable": "^1.1.0",
74
77
  "winston": "^3.2.1",
75
78
  "winston-transport": "^4.5.0"
76
79
  },
77
80
  "devDependencies": {
78
- "@backstage/backend-test-utils": "^0.3.2",
79
- "@backstage/cli": "^0.25.2",
81
+ "@backstage/backend-test-utils": "^0.3.3-next.0",
82
+ "@backstage/cli": "^0.25.3-next.0",
80
83
  "@types/compression": "^1.7.0",
81
84
  "@types/fs-extra": "^11.0.0",
82
85
  "@types/http-errors": "^2.0.0",