@techdocs/cli 0.0.0-nightly-20250116022939 → 0.0.0-nightly-20250117022919
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/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @techdocs/cli
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20250117022919
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -8,9 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
### Patch Changes
|
|
10
10
|
|
|
11
|
+
- 69f84ac: Internal update to work with dynamic imports.
|
|
11
12
|
- Updated dependencies
|
|
12
|
-
- @backstage/backend-defaults@0.0.0-nightly-
|
|
13
|
-
- @backstage/plugin-techdocs-node@0.0.0-nightly-
|
|
13
|
+
- @backstage/backend-defaults@0.0.0-nightly-20250117022919
|
|
14
|
+
- @backstage/plugin-techdocs-node@0.0.0-nightly-20250117022919
|
|
15
|
+
- @backstage/catalog-model@1.7.3
|
|
16
|
+
- @backstage/cli-common@0.1.15
|
|
17
|
+
- @backstage/config@1.3.2
|
|
14
18
|
|
|
15
19
|
## 1.8.25
|
|
16
20
|
|
package/README.md
CHANGED
|
@@ -44,7 +44,8 @@ yarn techdocs-cli:dev [...options]
|
|
|
44
44
|
|
|
45
45
|
```sh
|
|
46
46
|
# Prior to executing the techdocs-cli command
|
|
47
|
-
export
|
|
47
|
+
export GLOBAL_AGENT_HTTP_PROXY=${HTTP_PROXY}
|
|
48
|
+
export GLOBAL_AGENT_HTTPS_PROXY=${HTTPS_PROXY}
|
|
48
49
|
export GLOBAL_AGENT_NO_PROXY=${NO_PROXY}
|
|
49
50
|
```
|
|
50
51
|
|
|
@@ -46,7 +46,7 @@ function registerCommands(program) {
|
|
|
46
46
|
"--runAsDefaultUser",
|
|
47
47
|
"Bypass setting the container user as the same user and group id as host for Linux and MacOS",
|
|
48
48
|
false
|
|
49
|
-
).alias("build").action(lazy(() =>
|
|
49
|
+
).alias("build").action(lazy(() => import('./generate/generate.cjs.js'), "default"));
|
|
50
50
|
program.command("migrate").description(
|
|
51
51
|
"Migrate objects with case-sensitive entity triplets to lower-case versions."
|
|
52
52
|
).requiredOption(
|
|
@@ -90,7 +90,7 @@ function registerCommands(program) {
|
|
|
90
90
|
"--concurrency <MAX CONCURRENT REQS>",
|
|
91
91
|
"Optional Controls the number of API requests allowed to be performed simultaneously.",
|
|
92
92
|
"25"
|
|
93
|
-
).option("-v --verbose", "Enable verbose output.", false).action(lazy(() =>
|
|
93
|
+
).option("-v --verbose", "Enable verbose output.", false).action(lazy(() => import('./migrate/migrate.cjs.js'), "default"));
|
|
94
94
|
program.command("publish").description(
|
|
95
95
|
"Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc."
|
|
96
96
|
).requiredOption(
|
|
@@ -149,7 +149,7 @@ function registerCommands(program) {
|
|
|
149
149
|
"--directory <PATH>",
|
|
150
150
|
"Path of the directory containing generated files to publish",
|
|
151
151
|
"./site/"
|
|
152
|
-
).action(lazy(() =>
|
|
152
|
+
).action(lazy(() => import('./publish/publish.cjs.js'), "default"));
|
|
153
153
|
program.command("serve:mkdocs").description("Serve a documentation project locally using MkDocs serve.").option(
|
|
154
154
|
"-i, --docker-image <DOCKER_IMAGE>",
|
|
155
155
|
"The mkdocs docker container to use",
|
|
@@ -167,7 +167,7 @@ function registerCommands(program) {
|
|
|
167
167
|
"--site-name",
|
|
168
168
|
"Name for site when using default MkDocs config",
|
|
169
169
|
"Documentation Site"
|
|
170
|
-
).option("-p, --port <PORT>", "Port to serve documentation locally", "8000").option("-v --verbose", "Enable verbose output.", false).action(lazy(() =>
|
|
170
|
+
).option("-p, --port <PORT>", "Port to serve documentation locally", "8000").option("-v --verbose", "Enable verbose output.", false).action(lazy(() => import('./serve/mkdocs.cjs.js'), "default"));
|
|
171
171
|
program.command("serve").description(
|
|
172
172
|
"Serve a documentation project locally in a Backstage app-like environment"
|
|
173
173
|
).option(
|
|
@@ -215,12 +215,14 @@ function registerCommands(program) {
|
|
|
215
215
|
"--preview-app-port can only be used together with --preview-app-bundle-path"
|
|
216
216
|
);
|
|
217
217
|
}
|
|
218
|
-
}).action(lazy(() =>
|
|
218
|
+
}).action(lazy(() => import('./serve/serve.cjs.js'), "default"));
|
|
219
219
|
}
|
|
220
|
-
function lazy(
|
|
220
|
+
function lazy(moduleLoader, exportName) {
|
|
221
221
|
return async (...args) => {
|
|
222
222
|
try {
|
|
223
|
-
const
|
|
223
|
+
const mod = await moduleLoader();
|
|
224
|
+
const actualModule = mod.default;
|
|
225
|
+
const actionFunc = actualModule[exportName];
|
|
224
226
|
await actionFunc(...args);
|
|
225
227
|
process.exit(0);
|
|
226
228
|
} catch (error) {
|
|
@@ -230,5 +232,6 @@ function lazy(getActionFunc) {
|
|
|
230
232
|
};
|
|
231
233
|
}
|
|
232
234
|
|
|
235
|
+
exports.lazy = lazy;
|
|
233
236
|
exports.registerCommands = registerCommands;
|
|
234
237
|
//# sourceMappingURL=index.cjs.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs.js","sources":["../../src/commands/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Command } from 'commander';\nimport { TechdocsGenerator } from '@backstage/plugin-techdocs-node';\n\nconst defaultDockerImage = TechdocsGenerator.defaultDockerImage;\nconst defaultPreviewAppPort = '3000';\n\nexport function registerCommands(program: Command) {\n program\n .command('generate')\n .description('Generate TechDocs documentation site using MkDocs.')\n .option(\n '--source-dir <PATH>',\n 'Source directory containing mkdocs.yml and docs/ directory.',\n '.',\n )\n .option(\n '--output-dir <PATH>',\n 'Output directory containing generated TechDocs site.',\n './site/',\n )\n .option(\n '--docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option('--no-pull', 'Do not pull the latest docker image')\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable and plugins in current user environment.',\n )\n .option(\n '--techdocs-ref <HOST_TYPE:URL>',\n 'The repository hosting documentation source files e.g. url:https://ghe.mycompany.net.com/org/repo.' +\n '\\nThis value is same as the backstage.io/techdocs-ref annotation of the corresponding Backstage entity.' +\n '\\nIt is completely fine to skip this as it is only being used to set repo_url in mkdocs.yml if not found.\\n',\n )\n .option(\n '--etag <ETAG>',\n 'A unique identifier for the prepared tree e.g. commit SHA. If provided it will be stored in techdocs_metadata.json.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--omitTechdocsCoreMkdocsPlugin',\n \"Don't patch MkDocs file automatically with techdocs-core plugin.\",\n false,\n )\n .option(\n '--legacyCopyReadmeMdToIndexMd',\n 'Attempt to ensure an index.md exists falling back to using <docs-dir>/README.md or README.md in case a default <docs-dir>/index.md is not provided.',\n false,\n )\n .option(\n '--defaultPlugin [defaultPlugins...]',\n 'Plugins which should be added automatically to the mkdocs.yaml file',\n [],\n )\n .option(\n '--runAsDefaultUser',\n 'Bypass setting the container user as the same user and group id as host for Linux and MacOS',\n false,\n )\n .alias('build')\n .action(lazy(() => import('./generate/generate').then(m => m.default)));\n\n program\n .command('migrate')\n .description(\n 'Migrate objects with case-sensitive entity triplets to lower-case versions.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--removeOriginal',\n 'Optional Files are copied by default. If flag is set, files are renamed/moved instead.',\n false,\n )\n .option(\n '--concurrency <MAX CONCURRENT REQS>',\n 'Optional Controls the number of API requests allowed to be performed simultaneously.',\n '25',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./migrate/migrate').then(m => m.default)));\n\n program\n .command('publish')\n .description(\n 'Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .requiredOption(\n '--entity <NAMESPACE/KIND/NAME>',\n '(Required always) Entity uid separated by / in namespace/kind/name order (case-sensitive). Example: default/Component/myEntity ',\n )\n .option(\n '--legacyUseCaseSensitiveTripletPaths',\n 'Publishes objects with cased entity triplet prefix when set (e.g. namespace/Kind/name). Only use if your TechDocs backend is configured the same way.',\n false,\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsProxy <HTTPS Proxy>',\n 'Optional Proxy to use for AWS requests.',\n )\n .option('--awsS3sse <AWS SSE>', 'Optional AWS S3 Server Side Encryption.')\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--awsBucketRootPath <AWS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Amazon S3',\n )\n .option(\n '--awsMaxAttempts <AWS MAX ATTEMPTS>',\n 'Optional maximum number of retries for AWS S3 operations. If not specified, default value of 3 is used.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--gcsBucketRootPath <GCS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Google cloud storage',\n )\n .option(\n '--directory <PATH>',\n 'Path of the directory containing generated files to publish',\n './site/',\n )\n .action(lazy(() => import('./publish/publish').then(m => m.default)));\n\n program\n .command('serve:mkdocs')\n .description('Serve a documentation project locally using MkDocs serve.')\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, run `mkdocs serve` in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-p, --port <PORT>', 'Port to serve documentation locally', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./serve/mkdocs').then(m => m.default)));\n\n program\n .command('serve')\n .description(\n 'Serve a documentation project locally in a Backstage app-like environment',\n )\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('--mkdocs-port <PORT>', 'Port for MkDocs server to use', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--preview-app-bundle-path <PATH_TO_BUNDLE>',\n 'Preview documentation using another web app',\n )\n .option(\n '--preview-app-port <PORT>',\n 'Port for the preview app to be served on',\n defaultPreviewAppPort,\n )\n .option(\n '-c, --mkdocs-config-file-name <FILENAME>',\n 'Mkdocs config file name',\n )\n .option(\n '--mkdocs-parameter-clean',\n 'Pass \"--clean\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-dirtyreload',\n 'Pass \"--dirtyreload\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-strict',\n 'Pass \"--strict\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .hook('preAction', command => {\n if (\n command.opts().previewAppPort !== defaultPreviewAppPort &&\n !command.opts().previewAppBundlePath\n ) {\n command.error(\n '--preview-app-port can only be used together with --preview-app-bundle-path',\n );\n }\n })\n .action(lazy(() => import('./serve/serve').then(m => m.default)));\n}\n\n// Wraps an action function so that it always exits and handles errors\n// Humbly taken from backstage-cli's registerCommands\nfunction lazy(\n getActionFunc: () => Promise<(...args: any[]) => Promise<void>>,\n): (...args: any[]) => Promise<never> {\n return async (...args: any[]) => {\n try {\n const actionFunc = await getActionFunc();\n await actionFunc(...args);\n process.exit(0);\n } catch (error) {\n // eslint-disable-next-line no-console\n console.error(error.message);\n process.exit(1);\n }\n };\n}\n"],"names":["TechdocsGenerator"],"mappings":";;;;AAmBA,MAAM,qBAAqBA,oCAAkB,CAAA,kBAAA;AAC7C,MAAM,qBAAwB,GAAA,MAAA;AAEvB,SAAS,iBAAiB,OAAkB,EAAA;AACjD,EAAA,OAAA,CACG,OAAQ,CAAA,UAAU,CAClB,CAAA,WAAA,CAAY,oDAAoD,CAChE,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,6DAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,sDAAA;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C/B,IAAI,IAAA;AACF,MAAM,MAAA,UAAA,GAAa,MAAM,aAAc,EAAA;AACvC,MAAM,MAAA,UAAA,CAAW,GAAG,IAAI,CAAA;AACxB,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA,aACP,KAAO,EAAA;AAEd,MAAQ,OAAA,CAAA,KAAA,CAAM,MAAM,OAAO,CAAA;AAC3B,MAAA,OAAA,CAAQ,KAAK,CAAC,CAAA;AAAA;AAChB,GACF;AACF;;;;"}
|
|
1
|
+
{"version":3,"file":"index.cjs.js","sources":["../../src/commands/index.ts"],"sourcesContent":["/*\n * Copyright 2020 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { Command } from 'commander';\nimport { TechdocsGenerator } from '@backstage/plugin-techdocs-node';\n\nconst defaultDockerImage = TechdocsGenerator.defaultDockerImage;\nconst defaultPreviewAppPort = '3000';\n\nexport function registerCommands(program: Command) {\n program\n .command('generate')\n .description('Generate TechDocs documentation site using MkDocs.')\n .option(\n '--source-dir <PATH>',\n 'Source directory containing mkdocs.yml and docs/ directory.',\n '.',\n )\n .option(\n '--output-dir <PATH>',\n 'Output directory containing generated TechDocs site.',\n './site/',\n )\n .option(\n '--docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option('--no-pull', 'Do not pull the latest docker image')\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable and plugins in current user environment.',\n )\n .option(\n '--techdocs-ref <HOST_TYPE:URL>',\n 'The repository hosting documentation source files e.g. url:https://ghe.mycompany.net.com/org/repo.' +\n '\\nThis value is same as the backstage.io/techdocs-ref annotation of the corresponding Backstage entity.' +\n '\\nIt is completely fine to skip this as it is only being used to set repo_url in mkdocs.yml if not found.\\n',\n )\n .option(\n '--etag <ETAG>',\n 'A unique identifier for the prepared tree e.g. commit SHA. If provided it will be stored in techdocs_metadata.json.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--omitTechdocsCoreMkdocsPlugin',\n \"Don't patch MkDocs file automatically with techdocs-core plugin.\",\n false,\n )\n .option(\n '--legacyCopyReadmeMdToIndexMd',\n 'Attempt to ensure an index.md exists falling back to using <docs-dir>/README.md or README.md in case a default <docs-dir>/index.md is not provided.',\n false,\n )\n .option(\n '--defaultPlugin [defaultPlugins...]',\n 'Plugins which should be added automatically to the mkdocs.yaml file',\n [],\n )\n .option(\n '--runAsDefaultUser',\n 'Bypass setting the container user as the same user and group id as host for Linux and MacOS',\n false,\n )\n .alias('build')\n .action(lazy(() => import('./generate/generate'), 'default'));\n\n program\n .command('migrate')\n .description(\n 'Migrate objects with case-sensitive entity triplets to lower-case versions.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--removeOriginal',\n 'Optional Files are copied by default. If flag is set, files are renamed/moved instead.',\n false,\n )\n .option(\n '--concurrency <MAX CONCURRENT REQS>',\n 'Optional Controls the number of API requests allowed to be performed simultaneously.',\n '25',\n )\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./migrate/migrate'), 'default'));\n\n program\n .command('publish')\n .description(\n 'Publish generated TechDocs site to an external storage AWS S3, Google GCS, etc.',\n )\n .requiredOption(\n '--publisher-type <TYPE>',\n '(Required always) awsS3 | googleGcs | azureBlobStorage | openStackSwift - same as techdocs.publisher.type in Backstage app-config.yaml',\n )\n .requiredOption(\n '--storage-name <BUCKET/CONTAINER NAME>',\n '(Required always) In case of AWS/GCS, use the bucket name. In case of Azure, use container name. Same as techdocs.publisher.[TYPE].bucketName',\n )\n .requiredOption(\n '--entity <NAMESPACE/KIND/NAME>',\n '(Required always) Entity uid separated by / in namespace/kind/name order (case-sensitive). Example: default/Component/myEntity ',\n )\n .option(\n '--legacyUseCaseSensitiveTripletPaths',\n 'Publishes objects with cased entity triplet prefix when set (e.g. namespace/Kind/name). Only use if your TechDocs backend is configured the same way.',\n false,\n )\n .option(\n '--azureAccountName <AZURE ACCOUNT NAME>',\n '(Required for Azure) specify when --publisher-type azureBlobStorage',\n )\n .option(\n '--azureAccountKey <AZURE ACCOUNT KEY>',\n 'Azure Storage Account key to use for authentication. If not specified, you must set AZURE_TENANT_ID, AZURE_CLIENT_ID & AZURE_CLIENT_SECRET as environment variables.',\n )\n .option(\n '--awsRoleArn <AWS ROLE ARN>',\n 'Optional AWS ARN of role to be assumed.',\n )\n .option(\n '--awsEndpoint <AWS ENDPOINT>',\n 'Optional AWS endpoint to send requests to.',\n )\n .option(\n '--awsProxy <HTTPS Proxy>',\n 'Optional Proxy to use for AWS requests.',\n )\n .option('--awsS3sse <AWS SSE>', 'Optional AWS S3 Server Side Encryption.')\n .option(\n '--awsS3ForcePathStyle',\n 'Optional AWS S3 option to force path style.',\n )\n .option(\n '--awsBucketRootPath <AWS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Amazon S3',\n )\n .option(\n '--awsMaxAttempts <AWS MAX ATTEMPTS>',\n 'Optional maximum number of retries for AWS S3 operations. If not specified, default value of 3 is used.',\n )\n .option(\n '--osCredentialId <OPENSTACK SWIFT APPLICATION CREDENTIAL ID>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSecret <OPENSTACK SWIFT APPLICATION CREDENTIAL SECRET>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osAuthUrl <OPENSTACK SWIFT AUTHURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--osSwiftUrl <OPENSTACK SWIFT SWIFTURL>',\n '(Required for OpenStack) specify when --publisher-type openStackSwift',\n )\n .option(\n '--gcsBucketRootPath <GCS BUCKET ROOT PATH>',\n 'Optional sub-directory to store files in Google cloud storage',\n )\n .option(\n '--directory <PATH>',\n 'Path of the directory containing generated files to publish',\n './site/',\n )\n .action(lazy(() => import('./publish/publish'), 'default'));\n\n program\n .command('serve:mkdocs')\n .description('Serve a documentation project locally using MkDocs serve.')\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, run `mkdocs serve` in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('-p, --port <PORT>', 'Port to serve documentation locally', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .action(lazy(() => import('./serve/mkdocs'), 'default'));\n\n program\n .command('serve')\n .description(\n 'Serve a documentation project locally in a Backstage app-like environment',\n )\n .option(\n '-i, --docker-image <DOCKER_IMAGE>',\n 'The mkdocs docker container to use',\n defaultDockerImage,\n )\n .option(\n '--docker-entrypoint <DOCKER_ENTRYPOINT>',\n 'Override the image entrypoint',\n )\n .option(\n '--docker-option <DOCKER_OPTION...>',\n 'Extra options to pass to the docker run command, e.g. \"--add-host=internal.host:192.168.11.12\" (can be added multiple times).',\n )\n .option(\n '--no-docker',\n 'Do not use Docker, use MkDocs executable in current user environment.',\n )\n .option(\n '--site-name',\n 'Name for site when using default MkDocs config',\n 'Documentation Site',\n )\n .option('--mkdocs-port <PORT>', 'Port for MkDocs server to use', '8000')\n .option('-v --verbose', 'Enable verbose output.', false)\n .option(\n '--preview-app-bundle-path <PATH_TO_BUNDLE>',\n 'Preview documentation using another web app',\n )\n .option(\n '--preview-app-port <PORT>',\n 'Port for the preview app to be served on',\n defaultPreviewAppPort,\n )\n .option(\n '-c, --mkdocs-config-file-name <FILENAME>',\n 'Mkdocs config file name',\n )\n .option(\n '--mkdocs-parameter-clean',\n 'Pass \"--clean\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-dirtyreload',\n 'Pass \"--dirtyreload\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .option(\n '--mkdocs-parameter-strict',\n 'Pass \"--strict\" parameter to mkdocs server running in containerized environment',\n false,\n )\n .hook('preAction', command => {\n if (\n command.opts().previewAppPort !== defaultPreviewAppPort &&\n !command.opts().previewAppBundlePath\n ) {\n command.error(\n '--preview-app-port can only be used together with --preview-app-bundle-path',\n );\n }\n })\n .action(lazy(() => import('./serve/serve'), 'default'));\n}\n\n// Humbly taken from backstage-cli's registerCommands\ntype ActionFunc = (...args: any[]) => Promise<void>;\ntype ActionExports<TModule extends object> = {\n [KName in keyof TModule as TModule[KName] extends ActionFunc\n ? KName\n : never]: TModule[KName];\n};\n\n// Wraps an action function so that it always exits and handles errors\nexport function lazy<TModule extends object>(\n moduleLoader: () => Promise<TModule>,\n exportName: keyof ActionExports<TModule>,\n): (...args: any[]) => Promise<never> {\n return async (...args: any[]) => {\n try {\n const mod = await moduleLoader();\n const actualModule = (\n mod as unknown as { default: ActionExports<TModule> }\n ).default;\n const actionFunc = actualModule[exportName] as ActionFunc;\n await actionFunc(...args);\n\n process.exit(0);\n } catch (error) {\n console.error(error.message);\n process.exit(1);\n }\n };\n}\n"],"names":["TechdocsGenerator"],"mappings":";;;;AAmBA,MAAM,qBAAqBA,oCAAkB,CAAA,kBAAA;AAC7C,MAAM,qBAAwB,GAAA,MAAA;AAEvB,SAAS,iBAAiB,OAAkB,EAAA;AACjD,EAAA,OAAA,CACG,OAAQ,CAAA,UAAU,CAClB,CAAA,WAAA,CAAY,oDAAoD,CAChE,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,6DAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,qBAAA;AAAA,IACA,sDAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,+BAAA;AAAA,IACA,oCAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA,CAAO,WAAa,EAAA,qCAAqC,CACzD,CAAA,MAAA;AAAA,IACC,aAAA;AAAA,IACA;AAAA,GAED,CAAA,MAAA;AAAA,IACC,gCA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|
1440
1440
|
"packageName": "@backstage/plugin-auth-backend-module-guest-provider"
|
|
1441
1441
|
},
|
|
1442
1442
|
{
|
|
1443
|
-
"path": "../../node_modules/@backstage-community/plugin-
|
|
1443
|
+
"path": "../../node_modules/@backstage-community/plugin-stackstorm/node_modules/@backstage/core-components/config.d.ts",
|
|
1444
1444
|
"value": {
|
|
1445
1445
|
"type": "object",
|
|
1446
1446
|
"properties": {
|
|
@@ -3044,7 +3044,7 @@
|
|
|
3044
3044
|
"packageName": "@backstage/plugin-auth-backend-module-gcp-iap-provider"
|
|
3045
3045
|
},
|
|
3046
3046
|
{
|
|
3047
|
-
"path": "../../plugins/auth-backend-module-
|
|
3047
|
+
"path": "../../plugins/auth-backend-module-github-provider/config.d.ts",
|
|
3048
3048
|
"value": {
|
|
3049
3049
|
"type": "object",
|
|
3050
3050
|
"properties": {
|
|
@@ -3054,7 +3054,7 @@
|
|
|
3054
3054
|
"providers": {
|
|
3055
3055
|
"type": "object",
|
|
3056
3056
|
"properties": {
|
|
3057
|
-
"
|
|
3057
|
+
"github": {
|
|
3058
3058
|
"visibility": "frontend",
|
|
3059
3059
|
"type": "object",
|
|
3060
3060
|
"additionalProperties": {
|
|
@@ -3067,10 +3067,10 @@
|
|
|
3067
3067
|
"visibility": "secret",
|
|
3068
3068
|
"type": "string"
|
|
3069
3069
|
},
|
|
3070
|
-
"
|
|
3070
|
+
"callbackUrl": {
|
|
3071
3071
|
"type": "string"
|
|
3072
3072
|
},
|
|
3073
|
-
"
|
|
3073
|
+
"enterpriseInstanceUrl": {
|
|
3074
3074
|
"type": "string"
|
|
3075
3075
|
},
|
|
3076
3076
|
"additionalScopes": {
|
|
@@ -3157,21 +3157,20 @@
|
|
|
3157
3157
|
},
|
|
3158
3158
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3159
3159
|
},
|
|
3160
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3160
|
+
"packageName": "@backstage/plugin-auth-backend-module-github-provider"
|
|
3161
3161
|
},
|
|
3162
3162
|
{
|
|
3163
|
-
"path": "../../plugins/auth-backend-module-
|
|
3163
|
+
"path": "../../plugins/auth-backend-module-gitlab-provider/config.d.ts",
|
|
3164
3164
|
"value": {
|
|
3165
3165
|
"type": "object",
|
|
3166
3166
|
"properties": {
|
|
3167
3167
|
"auth": {
|
|
3168
|
-
"description": "Configuration options for the auth plugin",
|
|
3169
3168
|
"type": "object",
|
|
3170
3169
|
"properties": {
|
|
3171
3170
|
"providers": {
|
|
3172
3171
|
"type": "object",
|
|
3173
3172
|
"properties": {
|
|
3174
|
-
"
|
|
3173
|
+
"gitlab": {
|
|
3175
3174
|
"visibility": "frontend",
|
|
3176
3175
|
"type": "object",
|
|
3177
3176
|
"additionalProperties": {
|
|
@@ -3184,6 +3183,9 @@
|
|
|
3184
3183
|
"visibility": "secret",
|
|
3185
3184
|
"type": "string"
|
|
3186
3185
|
},
|
|
3186
|
+
"audience": {
|
|
3187
|
+
"type": "string"
|
|
3188
|
+
},
|
|
3187
3189
|
"callbackUrl": {
|
|
3188
3190
|
"type": "string"
|
|
3189
3191
|
},
|
|
@@ -3212,7 +3214,7 @@
|
|
|
3212
3214
|
"properties": {
|
|
3213
3215
|
"resolver": {
|
|
3214
3216
|
"type": "string",
|
|
3215
|
-
"const": "
|
|
3217
|
+
"const": "usernameMatchingUserEntityName"
|
|
3216
3218
|
}
|
|
3217
3219
|
},
|
|
3218
3220
|
"required": [
|
|
@@ -3271,20 +3273,21 @@
|
|
|
3271
3273
|
},
|
|
3272
3274
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3273
3275
|
},
|
|
3274
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3276
|
+
"packageName": "@backstage/plugin-auth-backend-module-gitlab-provider"
|
|
3275
3277
|
},
|
|
3276
3278
|
{
|
|
3277
|
-
"path": "../../plugins/auth-backend-module-
|
|
3279
|
+
"path": "../../plugins/auth-backend-module-google-provider/config.d.ts",
|
|
3278
3280
|
"value": {
|
|
3279
3281
|
"type": "object",
|
|
3280
3282
|
"properties": {
|
|
3281
3283
|
"auth": {
|
|
3284
|
+
"description": "Configuration options for the auth plugin",
|
|
3282
3285
|
"type": "object",
|
|
3283
3286
|
"properties": {
|
|
3284
3287
|
"providers": {
|
|
3285
3288
|
"type": "object",
|
|
3286
3289
|
"properties": {
|
|
3287
|
-
"
|
|
3290
|
+
"google": {
|
|
3288
3291
|
"visibility": "frontend",
|
|
3289
3292
|
"type": "object",
|
|
3290
3293
|
"additionalProperties": {
|
|
@@ -3293,16 +3296,10 @@
|
|
|
3293
3296
|
"clientId": {
|
|
3294
3297
|
"type": "string"
|
|
3295
3298
|
},
|
|
3296
|
-
"tenantId": {
|
|
3297
|
-
"type": "string"
|
|
3298
|
-
},
|
|
3299
3299
|
"clientSecret": {
|
|
3300
3300
|
"visibility": "secret",
|
|
3301
3301
|
"type": "string"
|
|
3302
3302
|
},
|
|
3303
|
-
"domainHint": {
|
|
3304
|
-
"type": "string"
|
|
3305
|
-
},
|
|
3306
3303
|
"callbackUrl": {
|
|
3307
3304
|
"type": "string"
|
|
3308
3305
|
},
|
|
@@ -3319,9 +3316,6 @@
|
|
|
3319
3316
|
}
|
|
3320
3317
|
]
|
|
3321
3318
|
},
|
|
3322
|
-
"skipUserProfile": {
|
|
3323
|
-
"type": "boolean"
|
|
3324
|
-
},
|
|
3325
3319
|
"signIn": {
|
|
3326
3320
|
"type": "object",
|
|
3327
3321
|
"properties": {
|
|
@@ -3382,8 +3376,7 @@
|
|
|
3382
3376
|
},
|
|
3383
3377
|
"required": [
|
|
3384
3378
|
"clientId",
|
|
3385
|
-
"clientSecret"
|
|
3386
|
-
"tenantId"
|
|
3379
|
+
"clientSecret"
|
|
3387
3380
|
]
|
|
3388
3381
|
}
|
|
3389
3382
|
}
|
|
@@ -3394,10 +3387,10 @@
|
|
|
3394
3387
|
},
|
|
3395
3388
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3396
3389
|
},
|
|
3397
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3390
|
+
"packageName": "@backstage/plugin-auth-backend-module-google-provider"
|
|
3398
3391
|
},
|
|
3399
3392
|
{
|
|
3400
|
-
"path": "../../plugins/auth-backend-module-
|
|
3393
|
+
"path": "../../plugins/auth-backend-module-microsoft-provider/config.d.ts",
|
|
3401
3394
|
"value": {
|
|
3402
3395
|
"type": "object",
|
|
3403
3396
|
"properties": {
|
|
@@ -3407,7 +3400,7 @@
|
|
|
3407
3400
|
"providers": {
|
|
3408
3401
|
"type": "object",
|
|
3409
3402
|
"properties": {
|
|
3410
|
-
"
|
|
3403
|
+
"microsoft": {
|
|
3411
3404
|
"visibility": "frontend",
|
|
3412
3405
|
"type": "object",
|
|
3413
3406
|
"additionalProperties": {
|
|
@@ -3416,18 +3409,17 @@
|
|
|
3416
3409
|
"clientId": {
|
|
3417
3410
|
"type": "string"
|
|
3418
3411
|
},
|
|
3419
|
-
"
|
|
3420
|
-
"visibility": "secret",
|
|
3412
|
+
"tenantId": {
|
|
3421
3413
|
"type": "string"
|
|
3422
3414
|
},
|
|
3423
|
-
"
|
|
3415
|
+
"clientSecret": {
|
|
3416
|
+
"visibility": "secret",
|
|
3424
3417
|
"type": "string"
|
|
3425
3418
|
},
|
|
3426
|
-
"
|
|
3419
|
+
"domainHint": {
|
|
3427
3420
|
"type": "string"
|
|
3428
3421
|
},
|
|
3429
|
-
"
|
|
3430
|
-
"deprecated": "use `additionalScopes` instead",
|
|
3422
|
+
"callbackUrl": {
|
|
3431
3423
|
"type": "string"
|
|
3432
3424
|
},
|
|
3433
3425
|
"additionalScopes": {
|
|
@@ -3443,10 +3435,7 @@
|
|
|
3443
3435
|
}
|
|
3444
3436
|
]
|
|
3445
3437
|
},
|
|
3446
|
-
"
|
|
3447
|
-
"type": "boolean"
|
|
3448
|
-
},
|
|
3449
|
-
"includeBasicAuth": {
|
|
3438
|
+
"skipUserProfile": {
|
|
3450
3439
|
"type": "boolean"
|
|
3451
3440
|
},
|
|
3452
3441
|
"signIn": {
|
|
@@ -3461,7 +3450,7 @@
|
|
|
3461
3450
|
"properties": {
|
|
3462
3451
|
"resolver": {
|
|
3463
3452
|
"type": "string",
|
|
3464
|
-
"const": "
|
|
3453
|
+
"const": "emailMatchingUserEntityAnnotation"
|
|
3465
3454
|
}
|
|
3466
3455
|
},
|
|
3467
3456
|
"required": [
|
|
@@ -3508,10 +3497,9 @@
|
|
|
3508
3497
|
}
|
|
3509
3498
|
},
|
|
3510
3499
|
"required": [
|
|
3511
|
-
"authorizationUrl",
|
|
3512
3500
|
"clientId",
|
|
3513
3501
|
"clientSecret",
|
|
3514
|
-
"
|
|
3502
|
+
"tenantId"
|
|
3515
3503
|
]
|
|
3516
3504
|
}
|
|
3517
3505
|
}
|
|
@@ -3522,10 +3510,10 @@
|
|
|
3522
3510
|
},
|
|
3523
3511
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3524
3512
|
},
|
|
3525
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3513
|
+
"packageName": "@backstage/plugin-auth-backend-module-microsoft-provider"
|
|
3526
3514
|
},
|
|
3527
3515
|
{
|
|
3528
|
-
"path": "../../plugins/auth-backend-module-
|
|
3516
|
+
"path": "../../plugins/auth-backend-module-oauth2-provider/config.d.ts",
|
|
3529
3517
|
"value": {
|
|
3530
3518
|
"type": "object",
|
|
3531
3519
|
"properties": {
|
|
@@ -3535,7 +3523,7 @@
|
|
|
3535
3523
|
"providers": {
|
|
3536
3524
|
"type": "object",
|
|
3537
3525
|
"properties": {
|
|
3538
|
-
"
|
|
3526
|
+
"oauth2": {
|
|
3539
3527
|
"visibility": "frontend",
|
|
3540
3528
|
"type": "object",
|
|
3541
3529
|
"additionalProperties": {
|
|
@@ -3548,16 +3536,14 @@
|
|
|
3548
3536
|
"visibility": "secret",
|
|
3549
3537
|
"type": "string"
|
|
3550
3538
|
},
|
|
3551
|
-
"
|
|
3552
|
-
"type": "string"
|
|
3553
|
-
},
|
|
3554
|
-
"callbackUrl": {
|
|
3539
|
+
"authorizationUrl": {
|
|
3555
3540
|
"type": "string"
|
|
3556
3541
|
},
|
|
3557
|
-
"
|
|
3542
|
+
"tokenUrl": {
|
|
3558
3543
|
"type": "string"
|
|
3559
3544
|
},
|
|
3560
|
-
"
|
|
3545
|
+
"scope": {
|
|
3546
|
+
"deprecated": "use `additionalScopes` instead",
|
|
3561
3547
|
"type": "string"
|
|
3562
3548
|
},
|
|
3563
3549
|
"additionalScopes": {
|
|
@@ -3573,8 +3559,11 @@
|
|
|
3573
3559
|
}
|
|
3574
3560
|
]
|
|
3575
3561
|
},
|
|
3576
|
-
"
|
|
3577
|
-
"type": "
|
|
3562
|
+
"disableRefresh": {
|
|
3563
|
+
"type": "boolean"
|
|
3564
|
+
},
|
|
3565
|
+
"includeBasicAuth": {
|
|
3566
|
+
"type": "boolean"
|
|
3578
3567
|
},
|
|
3579
3568
|
"signIn": {
|
|
3580
3569
|
"type": "object",
|
|
@@ -3583,6 +3572,18 @@
|
|
|
3583
3572
|
"type": "array",
|
|
3584
3573
|
"items": {
|
|
3585
3574
|
"anyOf": [
|
|
3575
|
+
{
|
|
3576
|
+
"type": "object",
|
|
3577
|
+
"properties": {
|
|
3578
|
+
"resolver": {
|
|
3579
|
+
"type": "string",
|
|
3580
|
+
"const": "usernameMatchingUserEntityName"
|
|
3581
|
+
}
|
|
3582
|
+
},
|
|
3583
|
+
"required": [
|
|
3584
|
+
"resolver"
|
|
3585
|
+
]
|
|
3586
|
+
},
|
|
3586
3587
|
{
|
|
3587
3588
|
"type": "object",
|
|
3588
3589
|
"properties": {
|
|
@@ -3623,9 +3624,10 @@
|
|
|
3623
3624
|
}
|
|
3624
3625
|
},
|
|
3625
3626
|
"required": [
|
|
3627
|
+
"authorizationUrl",
|
|
3626
3628
|
"clientId",
|
|
3627
3629
|
"clientSecret",
|
|
3628
|
-
"
|
|
3630
|
+
"tokenUrl"
|
|
3629
3631
|
]
|
|
3630
3632
|
}
|
|
3631
3633
|
}
|
|
@@ -3636,10 +3638,10 @@
|
|
|
3636
3638
|
},
|
|
3637
3639
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3638
3640
|
},
|
|
3639
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3641
|
+
"packageName": "@backstage/plugin-auth-backend-module-oauth2-provider"
|
|
3640
3642
|
},
|
|
3641
3643
|
{
|
|
3642
|
-
"path": "../../plugins/auth-backend-module-
|
|
3644
|
+
"path": "../../plugins/auth-backend-module-oidc-provider/config.d.ts",
|
|
3643
3645
|
"value": {
|
|
3644
3646
|
"type": "object",
|
|
3645
3647
|
"properties": {
|
|
@@ -3649,7 +3651,7 @@
|
|
|
3649
3651
|
"providers": {
|
|
3650
3652
|
"type": "object",
|
|
3651
3653
|
"properties": {
|
|
3652
|
-
"
|
|
3654
|
+
"oidc": {
|
|
3653
3655
|
"visibility": "frontend",
|
|
3654
3656
|
"type": "object",
|
|
3655
3657
|
"additionalProperties": {
|
|
@@ -3662,16 +3664,16 @@
|
|
|
3662
3664
|
"visibility": "secret",
|
|
3663
3665
|
"type": "string"
|
|
3664
3666
|
},
|
|
3665
|
-
"
|
|
3667
|
+
"metadataUrl": {
|
|
3666
3668
|
"type": "string"
|
|
3667
3669
|
},
|
|
3668
|
-
"
|
|
3670
|
+
"callbackUrl": {
|
|
3669
3671
|
"type": "string"
|
|
3670
3672
|
},
|
|
3671
|
-
"
|
|
3673
|
+
"tokenEndpointAuthMethod": {
|
|
3672
3674
|
"type": "string"
|
|
3673
3675
|
},
|
|
3674
|
-
"
|
|
3676
|
+
"tokenSignedResponseAlg": {
|
|
3675
3677
|
"type": "string"
|
|
3676
3678
|
},
|
|
3677
3679
|
"additionalScopes": {
|
|
@@ -3687,6 +3689,9 @@
|
|
|
3687
3689
|
}
|
|
3688
3690
|
]
|
|
3689
3691
|
},
|
|
3692
|
+
"prompt": {
|
|
3693
|
+
"type": "string"
|
|
3694
|
+
},
|
|
3690
3695
|
"signIn": {
|
|
3691
3696
|
"type": "object",
|
|
3692
3697
|
"properties": {
|
|
@@ -3694,18 +3699,6 @@
|
|
|
3694
3699
|
"type": "array",
|
|
3695
3700
|
"items": {
|
|
3696
3701
|
"anyOf": [
|
|
3697
|
-
{
|
|
3698
|
-
"type": "object",
|
|
3699
|
-
"properties": {
|
|
3700
|
-
"resolver": {
|
|
3701
|
-
"type": "string",
|
|
3702
|
-
"const": "emailMatchingUserEntityAnnotation"
|
|
3703
|
-
}
|
|
3704
|
-
},
|
|
3705
|
-
"required": [
|
|
3706
|
-
"resolver"
|
|
3707
|
-
]
|
|
3708
|
-
},
|
|
3709
3702
|
{
|
|
3710
3703
|
"type": "object",
|
|
3711
3704
|
"properties": {
|
|
@@ -3747,7 +3740,8 @@
|
|
|
3747
3740
|
},
|
|
3748
3741
|
"required": [
|
|
3749
3742
|
"clientId",
|
|
3750
|
-
"clientSecret"
|
|
3743
|
+
"clientSecret",
|
|
3744
|
+
"metadataUrl"
|
|
3751
3745
|
]
|
|
3752
3746
|
}
|
|
3753
3747
|
}
|
|
@@ -3758,10 +3752,10 @@
|
|
|
3758
3752
|
},
|
|
3759
3753
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3760
3754
|
},
|
|
3761
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3755
|
+
"packageName": "@backstage/plugin-auth-backend-module-oidc-provider"
|
|
3762
3756
|
},
|
|
3763
3757
|
{
|
|
3764
|
-
"path": "../../plugins/auth-backend-module-
|
|
3758
|
+
"path": "../../plugins/auth-backend-module-okta-provider/config.d.ts",
|
|
3765
3759
|
"value": {
|
|
3766
3760
|
"type": "object",
|
|
3767
3761
|
"properties": {
|
|
@@ -3771,7 +3765,7 @@
|
|
|
3771
3765
|
"providers": {
|
|
3772
3766
|
"type": "object",
|
|
3773
3767
|
"properties": {
|
|
3774
|
-
"
|
|
3768
|
+
"okta": {
|
|
3775
3769
|
"visibility": "frontend",
|
|
3776
3770
|
"type": "object",
|
|
3777
3771
|
"additionalProperties": {
|
|
@@ -3784,12 +3778,31 @@
|
|
|
3784
3778
|
"visibility": "secret",
|
|
3785
3779
|
"type": "string"
|
|
3786
3780
|
},
|
|
3787
|
-
"
|
|
3781
|
+
"audience": {
|
|
3782
|
+
"type": "string"
|
|
3783
|
+
},
|
|
3784
|
+
"authServerId": {
|
|
3785
|
+
"type": "string"
|
|
3786
|
+
},
|
|
3787
|
+
"idp": {
|
|
3788
3788
|
"type": "string"
|
|
3789
3789
|
},
|
|
3790
3790
|
"callbackUrl": {
|
|
3791
3791
|
"type": "string"
|
|
3792
3792
|
},
|
|
3793
|
+
"additionalScopes": {
|
|
3794
|
+
"anyOf": [
|
|
3795
|
+
{
|
|
3796
|
+
"type": "array",
|
|
3797
|
+
"items": {
|
|
3798
|
+
"type": "string"
|
|
3799
|
+
}
|
|
3800
|
+
},
|
|
3801
|
+
{
|
|
3802
|
+
"type": "string"
|
|
3803
|
+
}
|
|
3804
|
+
]
|
|
3805
|
+
},
|
|
3793
3806
|
"signIn": {
|
|
3794
3807
|
"type": "object",
|
|
3795
3808
|
"properties": {
|
|
@@ -3802,7 +3815,7 @@
|
|
|
3802
3815
|
"properties": {
|
|
3803
3816
|
"resolver": {
|
|
3804
3817
|
"type": "string",
|
|
3805
|
-
"const": "
|
|
3818
|
+
"const": "emailMatchingUserEntityAnnotation"
|
|
3806
3819
|
}
|
|
3807
3820
|
},
|
|
3808
3821
|
"required": [
|
|
@@ -3850,8 +3863,7 @@
|
|
|
3850
3863
|
},
|
|
3851
3864
|
"required": [
|
|
3852
3865
|
"clientId",
|
|
3853
|
-
"clientSecret"
|
|
3854
|
-
"issuer"
|
|
3866
|
+
"clientSecret"
|
|
3855
3867
|
]
|
|
3856
3868
|
}
|
|
3857
3869
|
}
|
|
@@ -3862,10 +3874,10 @@
|
|
|
3862
3874
|
},
|
|
3863
3875
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3864
3876
|
},
|
|
3865
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3877
|
+
"packageName": "@backstage/plugin-auth-backend-module-okta-provider"
|
|
3866
3878
|
},
|
|
3867
3879
|
{
|
|
3868
|
-
"path": "../../plugins/auth-backend-module-
|
|
3880
|
+
"path": "../../plugins/auth-backend-module-onelogin-provider/config.d.ts",
|
|
3869
3881
|
"value": {
|
|
3870
3882
|
"type": "object",
|
|
3871
3883
|
"properties": {
|
|
@@ -3875,7 +3887,7 @@
|
|
|
3875
3887
|
"providers": {
|
|
3876
3888
|
"type": "object",
|
|
3877
3889
|
"properties": {
|
|
3878
|
-
"
|
|
3890
|
+
"onelogin": {
|
|
3879
3891
|
"visibility": "frontend",
|
|
3880
3892
|
"type": "object",
|
|
3881
3893
|
"additionalProperties": {
|
|
@@ -3888,25 +3900,12 @@
|
|
|
3888
3900
|
"visibility": "secret",
|
|
3889
3901
|
"type": "string"
|
|
3890
3902
|
},
|
|
3891
|
-
"
|
|
3903
|
+
"issuer": {
|
|
3892
3904
|
"type": "string"
|
|
3893
3905
|
},
|
|
3894
|
-
"
|
|
3906
|
+
"callbackUrl": {
|
|
3895
3907
|
"type": "string"
|
|
3896
3908
|
},
|
|
3897
|
-
"additionalScopes": {
|
|
3898
|
-
"anyOf": [
|
|
3899
|
-
{
|
|
3900
|
-
"type": "array",
|
|
3901
|
-
"items": {
|
|
3902
|
-
"type": "string"
|
|
3903
|
-
}
|
|
3904
|
-
},
|
|
3905
|
-
{
|
|
3906
|
-
"type": "string"
|
|
3907
|
-
}
|
|
3908
|
-
]
|
|
3909
|
-
},
|
|
3910
3909
|
"signIn": {
|
|
3911
3910
|
"type": "object",
|
|
3912
3911
|
"properties": {
|
|
@@ -3967,7 +3966,8 @@
|
|
|
3967
3966
|
},
|
|
3968
3967
|
"required": [
|
|
3969
3968
|
"clientId",
|
|
3970
|
-
"clientSecret"
|
|
3969
|
+
"clientSecret",
|
|
3970
|
+
"issuer"
|
|
3971
3971
|
]
|
|
3972
3972
|
}
|
|
3973
3973
|
}
|
|
@@ -3978,7 +3978,7 @@
|
|
|
3978
3978
|
},
|
|
3979
3979
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
3980
3980
|
},
|
|
3981
|
-
"packageName": "@backstage/plugin-auth-backend-module-
|
|
3981
|
+
"packageName": "@backstage/plugin-auth-backend-module-onelogin-provider"
|
|
3982
3982
|
},
|
|
3983
3983
|
{
|
|
3984
3984
|
"path": "../integration-aws-node/config.d.ts",
|
package/dist/package.json.cjs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@techdocs/cli",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20250117022919",
|
|
4
4
|
"description": "Utility CLI for managing TechDocs sites in Backstage.",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "cli"
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"watch": "./src"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@backstage/backend-defaults": "0.0.0-nightly-
|
|
47
|
+
"@backstage/backend-defaults": "0.0.0-nightly-20250117022919",
|
|
48
48
|
"@backstage/catalog-model": "1.7.3",
|
|
49
49
|
"@backstage/cli-common": "0.1.15",
|
|
50
50
|
"@backstage/config": "1.3.2",
|
|
51
|
-
"@backstage/plugin-techdocs-node": "0.0.0-nightly-
|
|
51
|
+
"@backstage/plugin-techdocs-node": "0.0.0-nightly-20250117022919",
|
|
52
52
|
"commander": "^12.0.0",
|
|
53
53
|
"fs-extra": "^11.0.0",
|
|
54
54
|
"global-agent": "^3.0.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"winston": "^3.2.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@backstage/cli": "0.
|
|
61
|
+
"@backstage/cli": "0.0.0-nightly-20250117022919",
|
|
62
62
|
"@types/commander": "^2.12.2",
|
|
63
63
|
"@types/fs-extra": "^11.0.0",
|
|
64
64
|
"@types/http-proxy": "^1.17.4",
|