@backstage/plugin-catalog-backend 3.4.0-next.1 → 3.4.0-next.2

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,5 +1,18 @@
1
1
  # @backstage/plugin-catalog-backend
2
2
 
3
+ ## 3.4.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 08a5813: Fixed O(n²) performance bottleneck in `buildEntitySearch` `traverse()` by replacing `Array.some()` linear scan with a `Set` for O(1) duplicate path key detection.
8
+ - Updated dependencies
9
+ - @backstage/integration@1.20.0-next.2
10
+ - @backstage/plugin-catalog-node@2.0.0-next.1
11
+ - @backstage/catalog-client@1.12.2-next.0
12
+ - @backstage/backend-plugin-api@1.7.0-next.1
13
+ - @backstage/plugin-events-node@0.4.19-next.0
14
+ - @backstage/plugin-permission-node@0.10.10-next.0
15
+
3
16
  ## 3.4.0-next.1
4
17
 
5
18
  ### Patch Changes
@@ -16,6 +16,7 @@ const MAX_KEY_LENGTH = 200;
16
16
  const MAX_VALUE_LENGTH = 200;
17
17
  function traverse(root) {
18
18
  const output = [];
19
+ const seenPathKeys = /* @__PURE__ */ new Set();
19
20
  function visit(path, current) {
20
21
  if (SPECIAL_KEYS.includes(path)) {
21
22
  return;
@@ -32,9 +33,9 @@ function traverse(root) {
32
33
  visit(path, item);
33
34
  if (typeof item === "string") {
34
35
  const pathKey = `${path}.${item}`;
35
- if (!output.some(
36
- (kv) => kv.key.toLocaleLowerCase("en-US") === pathKey.toLocaleLowerCase("en-US")
37
- )) {
36
+ const lowerKey = pathKey.toLocaleLowerCase("en-US");
37
+ if (!seenPathKeys.has(lowerKey)) {
38
+ seenPathKeys.add(lowerKey);
38
39
  output.push({ key: pathKey, value: true });
39
40
  }
40
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"buildEntitySearch.cjs.js","sources":["../../../../src/database/operations/stitcher/buildEntitySearch.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 { DEFAULT_NAMESPACE, Entity } from '@backstage/catalog-model';\nimport { InputError } from '@backstage/errors';\nimport { DbSearchRow } from '../../tables';\n\n// These are excluded in the generic loop, either because they do not make sense\n// to index, or because they are special-case always inserted whether they are\n// null or not\nconst SPECIAL_KEYS = [\n 'attachments',\n 'relations',\n 'status',\n 'metadata.name',\n 'metadata.namespace',\n 'metadata.uid',\n 'metadata.etag',\n];\n\n// The maximum length allowed for search values. These columns are indexed, and\n// database engines do not like to index on massive values. For example,\n// postgres will balk after 8191 byte line sizes.\nconst MAX_KEY_LENGTH = 200;\nconst MAX_VALUE_LENGTH = 200;\n\ntype Kv = {\n key: string;\n value: unknown;\n};\n\n// Helper for traversing through a nested structure and outputting a list of\n// path->value entries of the leaves.\n//\n// For example, this yaml structure\n//\n// a: 1\n// b:\n// c: null\n// e: [f, g]\n// h:\n// - i: 1\n// j: k\n// - i: 2\n// j: l\n//\n// will result in\n//\n// \"a\", 1\n// \"b.c\", null\n// \"b.e\": \"f\"\n// \"b.e.f\": true\n// \"b.e\": \"g\"\n// \"b.e.g\": true\n// \"h.i\": 1\n// \"h.j\": \"k\"\n// \"h.i\": 2\n// \"h.j\": \"l\"\nexport function traverse(root: unknown): Kv[] {\n const output: Kv[] = [];\n\n function visit(path: string, current: unknown) {\n if (SPECIAL_KEYS.includes(path)) {\n return;\n }\n\n // empty or scalar\n if (\n current === undefined ||\n current === null ||\n ['string', 'number', 'boolean'].includes(typeof current)\n ) {\n output.push({ key: path, value: current });\n return;\n }\n\n // unknown\n if (typeof current !== 'object') {\n return;\n }\n\n // array\n if (Array.isArray(current)) {\n for (const item of current) {\n // NOTE(freben): The reason that these are output in two different ways,\n // is to support use cases where you want to express that MORE than one\n // tag is present in a list. Since the EntityFilters structure is a\n // record, you can't have several entries of the same key. Therefore\n // you will have to match on\n //\n // { \"a.b\": [\"true\"], \"a.c\": [\"true\"] }\n //\n // rather than\n //\n // { \"a\": [\"b\", \"c\"] }\n //\n // because the latter means EITHER b or c has to be present.\n visit(path, item);\n if (typeof item === 'string') {\n const pathKey = `${path}.${item}`;\n if (\n !output.some(\n kv =>\n kv.key.toLocaleLowerCase('en-US') ===\n pathKey.toLocaleLowerCase('en-US'),\n )\n ) {\n output.push({ key: pathKey, value: true });\n }\n }\n }\n return;\n }\n\n // object\n for (const [key, value] of Object.entries(current!)) {\n visit(path ? `${path}.${key}` : key, value);\n }\n }\n\n visit('', root);\n\n return output;\n}\n\n// Translates a number of raw data rows to search table rows\nexport function mapToRows(input: Kv[], entityId: string): DbSearchRow[] {\n const result: DbSearchRow[] = [];\n\n for (const { key: rawKey, value: rawValue } of input) {\n const key = rawKey.toLocaleLowerCase('en-US');\n if (key.length > MAX_KEY_LENGTH) {\n continue;\n }\n if (rawValue === undefined || rawValue === null) {\n result.push({\n entity_id: entityId,\n key,\n original_value: null,\n value: null,\n });\n } else {\n const value = String(rawValue).toLocaleLowerCase('en-US');\n if (value.length <= MAX_VALUE_LENGTH) {\n result.push({\n entity_id: entityId,\n key,\n original_value: String(rawValue),\n value: value,\n });\n } else {\n result.push({\n entity_id: entityId,\n key,\n original_value: null,\n value: null,\n });\n }\n }\n }\n\n return result;\n}\n\n/**\n * Generates all of the search rows that are relevant for this entity.\n *\n * @param entityId - The uid of the entity\n * @param entity - The entity\n * @returns A list of entity search rows\n */\nexport function buildEntitySearch(\n entityId: string,\n entity: Entity,\n): DbSearchRow[] {\n // Visit the base structure recursively\n const raw = traverse(entity);\n\n // Start with some special keys that are always present because you want to\n // be able to easily search for null specifically\n raw.push({ key: 'metadata.name', value: entity.metadata.name });\n raw.push({ key: 'metadata.namespace', value: entity.metadata.namespace });\n raw.push({ key: 'metadata.uid', value: entity.metadata.uid });\n\n // Namespace not specified has the default value \"default\", so we want to\n // match on that as well\n if (!entity.metadata.namespace) {\n raw.push({ key: 'metadata.namespace', value: DEFAULT_NAMESPACE });\n }\n\n // Visit relations\n for (const relation of entity.relations ?? []) {\n raw.push({\n key: `relations.${relation.type}`,\n value: relation.targetRef,\n });\n }\n\n // This validates that there are no keys that vary only in casing, such\n // as `spec.foo` and `spec.Foo`.\n const keys = new Set(raw.map(r => r.key));\n const lowerKeys = new Set(raw.map(r => r.key.toLocaleLowerCase('en-US')));\n if (keys.size !== lowerKeys.size) {\n const difference = [];\n for (const key of keys) {\n const lower = key.toLocaleLowerCase('en-US');\n if (!lowerKeys.delete(lower)) {\n difference.push(lower);\n }\n }\n const badKeys = `'${difference.join(\"', '\")}'`;\n throw new InputError(\n `Entity has duplicate keys that vary only in casing, ${badKeys}`,\n );\n }\n\n return mapToRows(raw, entityId);\n}\n"],"names":["DEFAULT_NAMESPACE","InputError"],"mappings":";;;;;AAuBA,MAAM,YAAA,GAAe;AAAA,EACnB,aAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,eAAA;AAAA,EACA,oBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA;AAKA,MAAM,cAAA,GAAiB,GAAA;AACvB,MAAM,gBAAA,GAAmB,GAAA;AAkClB,SAAS,SAAS,IAAA,EAAqB;AAC5C,EAAA,MAAM,SAAe,EAAC;AAEtB,EAAA,SAAS,KAAA,CAAM,MAAc,OAAA,EAAkB;AAC7C,IAAA,IAAI,YAAA,CAAa,QAAA,CAAS,IAAI,CAAA,EAAG;AAC/B,MAAA;AAAA,IACF;AAGA,IAAA,IACE,OAAA,KAAY,MAAA,IACZ,OAAA,KAAY,IAAA,IACZ,CAAC,QAAA,EAAU,QAAA,EAAU,SAAS,CAAA,CAAE,QAAA,CAAS,OAAO,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,iBAAA;AAAA,MACR,uDAAuD,OAAO,CAAA;AAAA,KAChE;AAAA,EACF;AAEA,EAAA,OAAO,SAAA,CAAU,KAAK,QAAQ,CAAA;AAChC;;;;;;"}
1
+ {"version":3,"file":"buildEntitySearch.cjs.js","sources":["../../../../src/database/operations/stitcher/buildEntitySearch.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 { DEFAULT_NAMESPACE, Entity } from '@backstage/catalog-model';\nimport { InputError } from '@backstage/errors';\nimport { DbSearchRow } from '../../tables';\n\n// These are excluded in the generic loop, either because they do not make sense\n// to index, or because they are special-case always inserted whether they are\n// null or not\nconst SPECIAL_KEYS = [\n 'attachments',\n 'relations',\n 'status',\n 'metadata.name',\n 'metadata.namespace',\n 'metadata.uid',\n 'metadata.etag',\n];\n\n// The maximum length allowed for search values. These columns are indexed, and\n// database engines do not like to index on massive values. For example,\n// postgres will balk after 8191 byte line sizes.\nconst MAX_KEY_LENGTH = 200;\nconst MAX_VALUE_LENGTH = 200;\n\ntype Kv = {\n key: string;\n value: unknown;\n};\n\n// Helper for traversing through a nested structure and outputting a list of\n// path->value entries of the leaves.\n//\n// For example, this yaml structure\n//\n// a: 1\n// b:\n// c: null\n// e: [f, g]\n// h:\n// - i: 1\n// j: k\n// - i: 2\n// j: l\n//\n// will result in\n//\n// \"a\", 1\n// \"b.c\", null\n// \"b.e\": \"f\"\n// \"b.e.f\": true\n// \"b.e\": \"g\"\n// \"b.e.g\": true\n// \"h.i\": 1\n// \"h.j\": \"k\"\n// \"h.i\": 2\n// \"h.j\": \"l\"\nexport function traverse(root: unknown): Kv[] {\n const output: Kv[] = [];\n // Use a Set for O(1) case-insensitive duplicate detection of synthetic\n // boolean path keys (e.g. \"metadata.tags.java\"), instead of the previous\n // O(n) Array.some() linear scan which caused O(n²) overall complexity\n // and severe event loop blocking for entities with large arrays.\n const seenPathKeys = new Set<string>();\n\n function visit(path: string, current: unknown) {\n if (SPECIAL_KEYS.includes(path)) {\n return;\n }\n\n // empty or scalar\n if (\n current === undefined ||\n current === null ||\n ['string', 'number', 'boolean'].includes(typeof current)\n ) {\n output.push({ key: path, value: current });\n return;\n }\n\n // unknown\n if (typeof current !== 'object') {\n return;\n }\n\n // array\n if (Array.isArray(current)) {\n for (const item of current) {\n // NOTE(freben): The reason that these are output in two different ways,\n // is to support use cases where you want to express that MORE than one\n // tag is present in a list. Since the EntityFilters structure is a\n // record, you can't have several entries of the same key. Therefore\n // you will have to match on\n //\n // { \"a.b\": [\"true\"], \"a.c\": [\"true\"] }\n //\n // rather than\n //\n // { \"a\": [\"b\", \"c\"] }\n //\n // because the latter means EITHER b or c has to be present.\n visit(path, item);\n if (typeof item === 'string') {\n const pathKey = `${path}.${item}`;\n const lowerKey = pathKey.toLocaleLowerCase('en-US');\n if (!seenPathKeys.has(lowerKey)) {\n seenPathKeys.add(lowerKey);\n output.push({ key: pathKey, value: true });\n }\n }\n }\n return;\n }\n\n // object\n for (const [key, value] of Object.entries(current!)) {\n visit(path ? `${path}.${key}` : key, value);\n }\n }\n\n visit('', root);\n\n return output;\n}\n\n// Translates a number of raw data rows to search table rows\nexport function mapToRows(input: Kv[], entityId: string): DbSearchRow[] {\n const result: DbSearchRow[] = [];\n\n for (const { key: rawKey, value: rawValue } of input) {\n const key = rawKey.toLocaleLowerCase('en-US');\n if (key.length > MAX_KEY_LENGTH) {\n continue;\n }\n if (rawValue === undefined || rawValue === null) {\n result.push({\n entity_id: entityId,\n key,\n original_value: null,\n value: null,\n });\n } else {\n const value = String(rawValue).toLocaleLowerCase('en-US');\n if (value.length <= MAX_VALUE_LENGTH) {\n result.push({\n entity_id: entityId,\n key,\n original_value: String(rawValue),\n value: value,\n });\n } else {\n result.push({\n entity_id: entityId,\n key,\n original_value: null,\n value: null,\n });\n }\n }\n }\n\n return result;\n}\n\n/**\n * Generates all of the search rows that are relevant for this entity.\n *\n * @param entityId - The uid of the entity\n * @param entity - The entity\n * @returns A list of entity search rows\n */\nexport function buildEntitySearch(\n entityId: string,\n entity: Entity,\n): DbSearchRow[] {\n // Visit the base structure recursively\n const raw = traverse(entity);\n\n // Start with some special keys that are always present because you want to\n // be able to easily search for null specifically\n raw.push({ key: 'metadata.name', value: entity.metadata.name });\n raw.push({ key: 'metadata.namespace', value: entity.metadata.namespace });\n raw.push({ key: 'metadata.uid', value: entity.metadata.uid });\n\n // Namespace not specified has the default value \"default\", so we want to\n // match on that as well\n if (!entity.metadata.namespace) {\n raw.push({ key: 'metadata.namespace', value: DEFAULT_NAMESPACE });\n }\n\n // Visit relations\n for (const relation of entity.relations ?? []) {\n raw.push({\n key: `relations.${relation.type}`,\n value: relation.targetRef,\n });\n }\n\n // This validates that there are no keys that vary only in casing, such\n // as `spec.foo` and `spec.Foo`.\n const keys = new Set(raw.map(r => r.key));\n const lowerKeys = new Set(raw.map(r => r.key.toLocaleLowerCase('en-US')));\n if (keys.size !== lowerKeys.size) {\n const difference = [];\n for (const key of keys) {\n const lower = key.toLocaleLowerCase('en-US');\n if (!lowerKeys.delete(lower)) {\n difference.push(lower);\n }\n }\n const badKeys = `'${difference.join(\"', '\")}'`;\n throw new InputError(\n `Entity has duplicate keys that vary only in casing, ${badKeys}`,\n );\n }\n\n return mapToRows(raw, entityId);\n}\n"],"names":["DEFAULT_NAMESPACE","InputError"],"mappings":";;;;;AAuBA,MAAM,YAAA,GAAe;AAAA,EACnB,aAAA;AAAA,EACA,WAAA;AAAA,EACA,QAAA;AAAA,EACA,eAAA;AAAA,EACA,oBAAA;AAAA,EACA,cAAA;AAAA,EACA;AACF,CAAA;AAKA,MAAM,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A,CAAK,IAAA,KAAS,SAAA,CAAU,IAAA,EAAM;AAChC,IAAA,MAAM,aAAa,EAAC;AACpB,IAAA,KAAA,MAAW,OAAO,IAAA,EAAM;AACtB,MAAA,MAAM,KAAA,GAAQ,GAAA,CAAI,iBAAA,CAAkB,OAAO,CAAA;AAC3C,MAAA,IAAI,CAAC,SAAA,CAAU,MAAA,CAAO,KAAK,CAAA,EAAG;AAC5B,QAAA,UAAA,CAAW,KAAK,KAAK,CAAA;AAAA,MACvB;AAAA,IACF;AACA,IAAA,MAAM,OAAA,GAAU,CAAA,CAAA,EAAI,UAAA,CAAW,IAAA,CAAK,MAAM,CAAC,CAAA,CAAA,CAAA;AAC3C,IAAA,MAAM,IAAIC,iBAAA;AAAA,MACR,uDAAuD,OAAO,CAAA;AAAA,KAChE;AAAA,EACF;AAEA,EAAA,OAAO,SAAA,CAAU,KAAK,QAAQ,CAAA;AAChC;;;;;;"}
@@ -7,7 +7,7 @@ const spec = {
7
7
  info: {
8
8
  title: "catalog",
9
9
  version: "1",
10
- description: "The API surface consists of a few distinct groups of functionality. Each has a\ndedicated section below.\n\n:::note Note \n This page only describes some of the most commonly used parts of the API, and is a work in progress.\n:::\n\nAll of the URL paths in this article are assumed to be on top of some base URL\npointing at your catalog installation. For example, if the path given in a\nsection below is `/entities`, and the catalog is located at\n`http://localhost:7007/api/catalog` during local development, the full URL would\nbe `http://localhost:7007/api/catalog/entities`. The actual URL may vary from\none organization to the other, especially in production, but is commonly your\n`backend.baseUrl` in your app config, plus `/api/catalog` at the end.\n\nSome or all of the endpoints may accept or require an `Authorization` header\nwith a `Bearer` token, which should then be the Backstage token returned by the\n[`identity API`](https://backstage.io/docs/reference/core-plugin-api.identityapiref).\n",
10
+ description: "The API surface consists of a few distinct groups of functionality. Each has a\ndedicated section below.\n\n:::note Note\n This page only describes some of the most commonly used parts of the API, and is a work in progress.\n:::\n\nAll of the URL paths in this article are assumed to be on top of some base URL\npointing at your catalog installation. For example, if the path given in a\nsection below is `/entities`, and the catalog is located at\n`http://localhost:7007/api/catalog` during local development, the full URL would\nbe `http://localhost:7007/api/catalog/entities`. The actual URL may vary from\none organization to the other, especially in production, but is commonly your\n`backend.baseUrl` in your app config, plus `/api/catalog` at the end.\n\nSome or all of the endpoints may accept or require an `Authorization` header\nwith a `Bearer` token, which should then be the Backstage token returned by the\n[`identity API`](https://backstage.io/api/stable/variables/_backstage_core-plugin-api.index.identityApiRef.html).\n",
11
11
  license: {
12
12
  name: "Apache-2.0",
13
13
  url: "http://www.apache.org/licenses/LICENSE-2.0.html"
@@ -1 +1 @@
1
- {"version":3,"file":"router.cjs.js","sources":["../../../../src/schema/openapi/generated/router.ts"],"sourcesContent":["/*\n * Copyright 2025 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\n// ******************************************************************\n// * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. *\n// ******************************************************************\nimport { createValidatedOpenApiRouterFromGeneratedEndpointMap } from '@backstage/backend-openapi-utils';\nimport { EndpointMap } from './apis';\n\nexport const spec = {\n openapi: '3.0.3',\n info: {\n title: 'catalog',\n version: '1',\n description:\n 'The API surface consists of a few distinct groups of functionality. Each has a\\ndedicated section below.\\n\\n:::note Note \\n This page only describes some of the most commonly used parts of the API, and is a work in progress.\\n:::\\n\\nAll of the URL paths in this article are assumed to be on top of some base URL\\npointing at your catalog installation. For example, if the path given in a\\nsection below is `/entities`, and the catalog is located at\\n`http://localhost:7007/api/catalog` during local development, the full URL would\\nbe `http://localhost:7007/api/catalog/entities`. The actual URL may vary from\\none organization to the other, especially in production, but is commonly your\\n`backend.baseUrl` in your app config, plus `/api/catalog` at the end.\\n\\nSome or all of the endpoints may accept or require an `Authorization` header\\nwith a `Bearer` token, which should then be the Backstage token returned by the\\n[`identity API`](https://backstage.io/docs/reference/core-plugin-api.identityapiref).\\n',\n license: {\n name: 'Apache-2.0',\n url: 'http://www.apache.org/licenses/LICENSE-2.0.html',\n },\n contact: {},\n },\n servers: [\n {\n url: '/',\n },\n ],\n components: {\n examples: {},\n headers: {},\n parameters: {\n kind: {\n name: 'kind',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n namespace: {\n name: 'namespace',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n name: {\n name: 'name',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n uid: {\n name: 'uid',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n cursor: {\n name: 'cursor',\n in: 'query',\n description:\n 'You may pass the `cursor` query parameters to perform cursor based pagination\\nthrough the set of entities. The value of `cursor` will be returned in the response, under the `pageInfo` property:\\n\\n```json\\n \"pageInfo\": {\\n \"nextCursor\": \"a-cursor\",\\n \"prevCursor\": \"another-cursor\"\\n }\\n```\\n\\nIf `nextCursor` exists, it can be used to retrieve the next batch of entities. Following the same approach,\\nif `prevCursor` exists, it can be used to retrieve the previous batch of entities.\\n\\n- [`filter`](#filtering), for selecting only a subset of all entities\\n- [`fields`](#field-selection), for selecting only parts of the full data\\n structure of each entity\\n- `limit` for limiting the number of entities returned (20 is the default)\\n- [`orderField`](#ordering), for deciding the order of the entities\\n- `fullTextFilter`\\n **NOTE**: [`filter`, `orderField`, `fullTextFilter`] and `cursor` are mutually exclusive. This means that,\\n it isn\\'t possible to change any of [`filter`, `orderField`, `fullTextFilter`] when passing `cursor` as query parameters,\\n as changing any of these properties will affect pagination. If any of `filter`, `orderField`, `fullTextFilter` is specified together with `cursor`, only the latter is taken into consideration.\\n',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n minLength: 1,\n },\n },\n after: {\n name: 'after',\n in: 'query',\n description: 'Pointer to the previous page of results.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n minLength: 1,\n },\n },\n fields: {\n name: 'fields',\n in: 'query',\n description:\n \"By default the full entities are returned, but you can pass in a `fields` query\\nparameter which selects what parts of the entity data to retain. This makes the\\nresponse smaller and faster to transfer, and may allow the catalog to perform\\nmore efficient queries.\\n\\nThe query parameter value is a comma separated list of simplified JSON paths\\nlike above. Each path corresponds to the key of either a value, or of a subtree\\nroot that you want to keep in the output. The rest is pruned away. For example,\\nspecifying `?fields=metadata.name,metadata.annotations,spec` retains only the\\n`name` and `annotations` fields of the `metadata` of each entity (it'll be an\\nobject with at most two keys), keeps the entire `spec` unchanged, and cuts out\\nall other roots such as `relations`.\\n\\nSome more real world usable examples:\\n\\n- Return only enough data to form the full ref of each entity:\\n\\n `/entities/by-query?fields=kind,metadata.namespace,metadata.name`\\n\",\n required: false,\n allowReserved: true,\n explode: false,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n examples: {\n 'Get name and the entire relations collection': {\n value: ['metadata.name', 'relations'],\n },\n 'Get kind, name and namespace': {\n value: ['kind', 'metadata.name', 'metadata.namespace'],\n },\n },\n },\n filter: {\n name: 'filter',\n in: 'query',\n description:\n 'You can pass in one or more filter sets that get matched against each entity.\\nEach filter set is a number of conditions that all have to match for the\\ncondition to be true (conditions effectively have an AND between them). At least\\none filter set has to be true for the entity to be part of the result set\\n(filter sets effectively have an OR between them).\\n\\nExample:\\n\\n```text\\n/entities/by-query?filter=kind=user,metadata.namespace=default&filter=kind=group,spec.type\\n\\n Return entities that match\\n\\n Filter set 1:\\n Condition 1: kind = user\\n AND\\n Condition 2: metadata.namespace = default\\n\\n OR\\n\\n Filter set 2:\\n Condition 1: kind = group\\n AND\\n Condition 2: spec.type exists\\n```\\n\\nEach condition is either on the form `<key>`, or on the form `<key>=<value>`.\\nThe first form asserts on the existence of a certain key (with any value), and\\nthe second asserts that the key exists and has a certain value. All checks are\\nalways case _insensitive_.\\n\\nIn all cases, the key is a simplified JSON path in a given piece of entity data.\\nEach part of the path is a key of an object, and the traversal also descends\\nthrough arrays. There are two special forms:\\n\\n- Array items that are simple value types (such as strings) match on a key-value\\n pair where the key is the item as a string, and the value is the string `true`\\n- Relations can be matched on a `relations.<type>=<targetRef>` form\\n\\nLet\\'s look at a simplified example to illustrate the concept:\\n\\n```json\\n{\\n \"a\": {\\n \"b\": [\"c\", { \"d\": 1 }],\\n \"e\": 7\\n }\\n}\\n```\\n\\nThis would match any one of the following conditions:\\n\\n- `a`\\n- `a.b`\\n- `a.b.c`\\n- `a.b.c=true`\\n- `a.b.d`\\n- `a.b.d=1`\\n- `a.e`\\n- `a.e=7`\\n\\nSome more real world usable examples:\\n\\n- Return all orphaned entities:\\n\\n `/entities/by-query?filter=metadata.annotations.backstage.io/orphan=true`\\n\\n- Return all users and groups:\\n\\n `/entities/by-query?filter=kind=user&filter=kind=group`\\n\\n- Return all service components:\\n\\n `/entities/by-query?filter=kind=component,spec.type=service`\\n\\n- Return all entities with the `java` tag:\\n\\n `/entities/by-query?filter=metadata.tags.java`\\n\\n- Return all users who are members of the `ops` group (note that the full\\n [reference](references.md) of the group is used):\\n\\n `/entities/by-query?filter=kind=user,relations.memberof=group:default/ops`\\n',\n required: false,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n examples: {\n 'Get groups': {\n value: ['kind=group'],\n },\n 'Get orphaned components': {\n value: [\n 'kind=component,metadata.annotations.backstage.io/orphan=true',\n ],\n },\n },\n },\n offset: {\n name: 'offset',\n in: 'query',\n description: 'Number of records to skip in the query page.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'integer',\n minimum: 0,\n },\n },\n limit: {\n name: 'limit',\n in: 'query',\n description: 'Number of records to return in the response.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'integer',\n minimum: 0,\n },\n },\n orderField: {\n name: 'orderField',\n in: 'query',\n description:\n 'By default the entities are returned ordered by their internal uid. You can\\ncustomize the `orderField` query parameters to affect that ordering.\\n\\nFor example, to return entities by their name:\\n\\n`/entities/by-query?orderField=metadata.name,asc`\\n\\nEach parameter can be followed by `asc` for ascending lexicographical order or\\n`desc` for descending (reverse) lexicographical order.\\n',\n required: false,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n description: 'A two-item tuple of [field, order].',\n },\n },\n explode: true,\n style: 'form',\n examples: {\n 'Order ascending by name': {\n value: ['metadata.name,asc'],\n },\n 'Order descending by owner': {\n value: ['spec.owner,desc'],\n },\n },\n },\n },\n requestBodies: {},\n responses: {\n ErrorResponse: {\n description: 'An error response from the backend.',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Error',\n },\n },\n },\n },\n },\n schemas: {\n Error: {\n type: 'object',\n properties: {\n error: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n },\n message: {\n type: 'string',\n },\n stack: {\n type: 'string',\n },\n code: {\n type: 'string',\n },\n },\n required: ['name', 'message'],\n },\n request: {\n type: 'object',\n properties: {\n method: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n },\n required: ['method', 'url'],\n },\n response: {\n type: 'object',\n properties: {\n statusCode: {\n type: 'number',\n },\n },\n required: ['statusCode'],\n },\n },\n required: ['error', 'response'],\n additionalProperties: {},\n },\n JsonObject: {\n type: 'object',\n properties: {},\n description: 'A type representing all allowed JSON object values.',\n additionalProperties: {},\n },\n MapStringString: {\n type: 'object',\n properties: {},\n additionalProperties: {\n type: 'string',\n },\n description: 'Construct a type with a set of properties K of type T',\n },\n EntityLink: {\n type: 'object',\n properties: {\n type: {\n type: 'string',\n description:\n 'An optional value to categorize links into specific groups',\n },\n icon: {\n type: 'string',\n description:\n 'An optional semantic key that represents a visual icon.',\n },\n title: {\n type: 'string',\n description: 'An optional descriptive title for the link.',\n },\n url: {\n type: 'string',\n description: 'The url to the external site, document, etc.',\n },\n },\n required: ['url'],\n description:\n 'A link to external information that is related to the entity.',\n additionalProperties: false,\n },\n EntityMeta: {\n type: 'object',\n properties: {\n links: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityLink',\n },\n description: 'A list of external hyperlinks related to the entity.',\n },\n tags: {\n type: 'array',\n items: {\n type: 'string',\n },\n description:\n 'A list of single-valued strings, to for example classify catalog entities in\\nvarious ways.',\n },\n annotations: {\n $ref: '#/components/schemas/MapStringString',\n },\n labels: {\n $ref: '#/components/schemas/MapStringString',\n },\n description: {\n type: 'string',\n description:\n 'A short (typically relatively few words, on one line) description of the\\nentity.',\n },\n title: {\n type: 'string',\n description:\n 'A display name of the entity, to be presented in user interfaces instead\\nof the `name` property above, when available.\\nThis field is sometimes useful when the `name` is cumbersome or ends up\\nbeing perceived as overly technical. The title generally does not have\\nas stringent format requirements on it, so it may contain special\\ncharacters and be more explanatory. Do keep it very short though, and\\navoid situations where a title can be confused with the name of another\\nentity, or where two entities share a title.\\nNote that this is only for display purposes, and may be ignored by some\\nparts of the code. Entity references still always make use of the `name`\\nproperty, not the title.',\n },\n namespace: {\n type: 'string',\n description: 'The namespace that the entity belongs to.',\n },\n name: {\n type: 'string',\n description:\n 'The name of the entity.\\nMust be unique within the catalog at any given point in time, for any\\ngiven namespace + kind pair. This value is part of the technical\\nidentifier of the entity, and as such it will appear in URLs, database\\ntables, entity references, and similar. It is subject to restrictions\\nregarding what characters are allowed.\\nIf you want to use a different, more human readable string with fewer\\nrestrictions on it in user interfaces, see the `title` field below.',\n },\n etag: {\n type: 'string',\n description:\n 'An opaque string that changes for each update operation to any part of\\nthe entity, including metadata.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, and the server will then reject the\\noperation if it does not match the current stored value.',\n },\n uid: {\n type: 'string',\n description:\n 'A globally unique ID for the entity.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, but the server is free to reject requests\\nthat do so in such a way that it breaks semantics.',\n },\n },\n required: ['name'],\n description: 'Metadata fields common to all versions/kinds of entity.',\n additionalProperties: {},\n },\n EntityRelation: {\n type: 'object',\n properties: {\n targetRef: {\n type: 'string',\n description: 'The entity ref of the target of this relation.',\n },\n type: {\n type: 'string',\n description: 'The type of the relation.',\n },\n },\n required: ['targetRef', 'type'],\n description:\n 'A relation of a specific type to another entity in the catalog.',\n additionalProperties: false,\n },\n Entity: {\n type: 'object',\n properties: {\n relations: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityRelation',\n },\n description:\n 'The relations that this entity has with other entities.',\n },\n spec: {\n $ref: '#/components/schemas/JsonObject',\n },\n metadata: {\n $ref: '#/components/schemas/EntityMeta',\n },\n kind: {\n type: 'string',\n description: 'The high level entity type being described.',\n },\n apiVersion: {\n type: 'string',\n description:\n 'The version of specification format for this particular entity that\\nthis is written against.',\n },\n },\n required: ['metadata', 'kind', 'apiVersion'],\n description:\n \"The parts of the format that's common to all versions/kinds of entity.\",\n },\n NullableEntity: {\n type: 'object',\n properties: {\n relations: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityRelation',\n },\n description:\n 'The relations that this entity has with other entities.',\n },\n spec: {\n $ref: '#/components/schemas/JsonObject',\n },\n metadata: {\n $ref: '#/components/schemas/EntityMeta',\n },\n kind: {\n type: 'string',\n description: 'The high level entity type being described.',\n },\n apiVersion: {\n type: 'string',\n description:\n 'The version of specification format for this particular entity that\\nthis is written against.',\n },\n },\n required: ['metadata', 'kind', 'apiVersion'],\n description:\n \"The parts of the format that's common to all versions/kinds of entity.\",\n nullable: true,\n },\n EntityAncestryResponse: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n parentEntityRefs: {\n items: {\n type: 'string',\n },\n type: 'array',\n },\n entity: {\n $ref: '#/components/schemas/Entity',\n },\n },\n required: ['parentEntityRefs', 'entity'],\n },\n },\n rootEntityRef: {\n type: 'string',\n },\n },\n required: ['items', 'rootEntityRef'],\n additionalProperties: false,\n },\n EntitiesBatchResponse: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/NullableEntity',\n },\n description:\n 'The list of entities, in the same order as the refs in the request. Entries\\nthat are null signify that no entity existed with that ref.',\n },\n },\n required: ['items'],\n additionalProperties: false,\n },\n EntityFacet: {\n type: 'object',\n properties: {\n value: {\n type: 'string',\n },\n count: {\n type: 'number',\n },\n },\n required: ['value', 'count'],\n additionalProperties: false,\n },\n EntityFacetsResponse: {\n type: 'object',\n properties: {\n facets: {\n type: 'object',\n additionalProperties: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityFacet',\n },\n },\n },\n },\n required: ['facets'],\n additionalProperties: false,\n },\n Location: {\n type: 'object',\n properties: {\n target: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n id: {\n type: 'string',\n },\n },\n required: ['target', 'type', 'id'],\n description: 'Entity location for a specific entity.',\n additionalProperties: false,\n },\n LocationSpec: {\n type: 'object',\n properties: {\n target: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n },\n required: ['target', 'type'],\n description: 'Holds the entity location information.',\n additionalProperties: false,\n },\n AnalyzeLocationExistingEntity: {\n type: 'object',\n properties: {\n entity: {\n $ref: '#/components/schemas/Entity',\n },\n isRegistered: {\n type: 'boolean',\n },\n location: {\n $ref: '#/components/schemas/LocationSpec',\n },\n },\n required: ['entity', 'isRegistered', 'location'],\n description:\n \"If the folder pointed to already contained catalog info yaml files, they are\\nread and emitted like this so that the frontend can inform the user that it\\nlocated them and can make sure to register them as well if they weren't\\nalready\",\n additionalProperties: false,\n },\n RecursivePartialEntityRelation: {\n type: 'object',\n properties: {\n targetRef: {\n type: 'string',\n description: 'The entity ref of the target of this relation.',\n },\n type: {\n type: 'string',\n description: 'The type of the relation.',\n },\n },\n description:\n 'A relation of a specific type to another entity in the catalog.',\n additionalProperties: false,\n },\n RecursivePartialEntityMeta: {\n allOf: [\n {\n $ref: '#/components/schemas/JsonObject',\n },\n {\n type: 'object',\n properties: {\n links: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityLink',\n },\n description:\n 'A list of external hyperlinks related to the entity.',\n },\n tags: {\n type: 'array',\n items: {\n type: 'string',\n },\n description:\n 'A list of single-valued strings, to for example classify catalog entities in\\nvarious ways.',\n },\n annotations: {\n $ref: '#/components/schemas/MapStringString',\n },\n labels: {\n $ref: '#/components/schemas/MapStringString',\n },\n description: {\n type: 'string',\n description:\n 'A short (typically relatively few words, on one line) description of the\\nentity.',\n },\n title: {\n type: 'string',\n description:\n 'A display name of the entity, to be presented in user interfaces instead\\nof the `name` property above, when available.\\nThis field is sometimes useful when the `name` is cumbersome or ends up\\nbeing perceived as overly technical. The title generally does not have\\nas stringent format requirements on it, so it may contain special\\ncharacters and be more explanatory. Do keep it very short though, and\\navoid situations where a title can be confused with the name of another\\nentity, or where two entities share a title.\\nNote that this is only for display purposes, and may be ignored by some\\nparts of the code. Entity references still always make use of the `name`\\nproperty, not the title.',\n },\n namespace: {\n type: 'string',\n description: 'The namespace that the entity belongs to.',\n },\n name: {\n type: 'string',\n description:\n 'The name of the entity.\\nMust be unique within the catalog at any given point in time, for any\\ngiven namespace + kind pair. This value is part of the technical\\nidentifier of the entity, and as such it will appear in URLs, database\\ntables, entity references, and similar. It is subject to restrictions\\nregarding what characters are allowed.\\nIf you want to use a different, more human readable string with fewer\\nrestrictions on it in user interfaces, see the `title` field below.',\n },\n etag: {\n type: 'string',\n description:\n 'An opaque string that changes for each update operation to any part of\\nthe entity, including metadata.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, and the server will then reject the\\noperation if it does not match the current stored value.',\n },\n uid: {\n type: 'string',\n description:\n 'A globally unique ID for the entity.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, but the server is free to reject requests\\nthat do so in such a way that it breaks semantics.',\n },\n },\n description:\n 'Metadata fields common to all versions/kinds of entity.',\n },\n ],\n additionalProperties: false,\n },\n RecursivePartialEntity: {\n type: 'object',\n properties: {\n apiVersion: {\n type: 'string',\n description:\n 'The version of specification format for this particular entity that\\nthis is written against.',\n },\n kind: {\n type: 'string',\n description: 'The high level entity type being described.',\n },\n metadata: {\n $ref: '#/components/schemas/RecursivePartialEntityMeta',\n },\n spec: {\n $ref: '#/components/schemas/JsonObject',\n },\n relations: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/RecursivePartialEntityRelation',\n },\n description:\n 'The relations that this entity has with other entities.',\n },\n },\n description: 'Makes all keys of an entire hierarchy optional.',\n additionalProperties: false,\n },\n AnalyzeLocationEntityField: {\n type: 'object',\n properties: {\n description: {\n type: 'string',\n description:\n 'A text to show to the user to inform about the choices made. Like, it could say\\n\"Found a CODEOWNERS file that covers this target, so we suggest leaving this\\nfield empty; which would currently make it owned by X\" where X is taken from the\\ncodeowners file.',\n },\n value: {\n type: 'string',\n nullable: true,\n },\n state: {\n type: 'string',\n enum: [\n 'analysisSuggestedValue',\n 'analysisSuggestedNoValue',\n 'needsUserInput',\n ],\n description:\n 'The outcome of the analysis for this particular field',\n },\n field: {\n type: 'string',\n description:\n 'e.g. \"spec.owner\"? The frontend needs to know how to \"inject\" the field into the\\nentity again if the user wants to change it',\n },\n },\n required: ['description', 'value', 'state', 'field'],\n additionalProperties: false,\n },\n AnalyzeLocationGenerateEntity: {\n type: 'object',\n properties: {\n fields: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/AnalyzeLocationEntityField',\n },\n },\n entity: {\n $ref: '#/components/schemas/RecursivePartialEntity',\n },\n },\n required: ['fields', 'entity'],\n description:\n \"This is some form of representation of what the analyzer could deduce.\\nWe should probably have a chat about how this can best be conveyed to\\nthe frontend. It'll probably contain a (possibly incomplete) entity, plus\\nenough info for the frontend to know what form data to show to the user\\nfor overriding/completing the info.\",\n additionalProperties: false,\n },\n AnalyzeLocationResponse: {\n type: 'object',\n properties: {\n generateEntities: {\n items: {\n $ref: '#/components/schemas/AnalyzeLocationGenerateEntity',\n },\n type: 'array',\n },\n existingEntityFiles: {\n items: {\n $ref: '#/components/schemas/AnalyzeLocationExistingEntity',\n },\n type: 'array',\n },\n },\n required: ['generateEntities', 'existingEntityFiles'],\n additionalProperties: false,\n },\n LocationInput: {\n type: 'object',\n properties: {\n type: {\n type: 'string',\n },\n target: {\n type: 'string',\n },\n },\n required: ['type', 'target'],\n additionalProperties: false,\n },\n EntitiesQueryResponse: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/Entity',\n },\n description: 'The list of entities paginated by a specific filter.',\n },\n totalItems: {\n type: 'number',\n },\n pageInfo: {\n type: 'object',\n properties: {\n nextCursor: {\n type: 'string',\n description: 'The cursor for the next batch of entities.',\n },\n prevCursor: {\n type: 'string',\n description: 'The cursor for the previous batch of entities.',\n },\n },\n },\n },\n required: ['items', 'totalItems', 'pageInfo'],\n additionalProperties: false,\n },\n },\n securitySchemes: {\n JWT: {\n type: 'http',\n scheme: 'bearer',\n bearerFormat: 'JWT',\n },\n },\n },\n paths: {\n '/refresh': {\n post: {\n operationId: 'RefreshEntity',\n tags: ['Entity'],\n description: 'Refresh the entity related to entityRef.',\n responses: {\n '200': {\n description: 'Refreshed',\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n authorizationToken: {\n type: 'string',\n },\n entityRef: {\n type: 'string',\n description:\n 'The reference to a single entity that should be refreshed',\n },\n },\n required: ['entityRef'],\n description:\n 'Options for requesting a refresh of entities in the catalog.',\n additionalProperties: false,\n },\n },\n },\n },\n },\n },\n '/entities': {\n get: {\n operationId: 'GetEntities',\n tags: ['Entity'],\n description: 'Get all entities matching a given filter.',\n responses: {\n '200': {\n description: '',\n content: {\n 'application/json': {\n schema: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/Entity',\n },\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/fields',\n },\n {\n $ref: '#/components/parameters/limit',\n },\n {\n $ref: '#/components/parameters/filter',\n },\n {\n $ref: '#/components/parameters/offset',\n },\n {\n $ref: '#/components/parameters/after',\n },\n {\n name: 'order',\n in: 'query',\n allowReserved: true,\n required: false,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n ],\n },\n },\n '/entities/by-uid/{uid}': {\n get: {\n operationId: 'GetEntityByUid',\n tags: ['Entity'],\n description: 'Get a single entity by the UID.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Entity',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/uid',\n },\n ],\n },\n delete: {\n operationId: 'DeleteEntityByUid',\n tags: ['Entity'],\n description: 'Delete a single entity by UID.',\n responses: {\n '204': {\n description: 'Deleted successfully.',\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/uid',\n },\n ],\n },\n },\n '/entities/by-name/{kind}/{namespace}/{name}': {\n get: {\n operationId: 'GetEntityByName',\n tags: ['Entity'],\n description: 'Get an entity by an entity ref.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Entity',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/kind',\n },\n {\n $ref: '#/components/parameters/namespace',\n },\n {\n $ref: '#/components/parameters/name',\n },\n ],\n },\n },\n '/entities/by-name/{kind}/{namespace}/{name}/ancestry': {\n get: {\n operationId: 'GetEntityAncestryByName',\n tags: ['Entity'],\n description: \"Get an entity's ancestry by entity ref.\",\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntityAncestryResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/kind',\n },\n {\n $ref: '#/components/parameters/namespace',\n },\n {\n $ref: '#/components/parameters/name',\n },\n ],\n },\n },\n '/entities/by-refs': {\n post: {\n operationId: 'GetEntitiesByRefs',\n tags: ['Entity'],\n description:\n 'Get a batch set of entities given an array of entityRefs.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntitiesBatchResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n requestBody: {\n required: false,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n required: ['entityRefs'],\n properties: {\n entityRefs: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n fields: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n },\n examples: {\n 'Fetch Backstage entities': {\n value: {\n entityRefs: [\n 'component:default/backstage',\n 'api:default/backstage',\n ],\n },\n },\n 'Fetch annotations for backstage entity': {\n value: {\n entityRefs: ['component:default/backstage'],\n fields: ['metadata.annotations'],\n },\n },\n },\n },\n },\n },\n parameters: [\n {\n $ref: '#/components/parameters/filter',\n },\n ],\n },\n },\n '/entities/by-query': {\n get: {\n operationId: 'GetEntitiesByQuery',\n tags: ['Entity'],\n description: 'Search for entities by a given query.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntitiesQueryResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/fields',\n },\n {\n $ref: '#/components/parameters/limit',\n },\n {\n $ref: '#/components/parameters/offset',\n },\n {\n $ref: '#/components/parameters/orderField',\n },\n {\n $ref: '#/components/parameters/cursor',\n },\n {\n $ref: '#/components/parameters/filter',\n },\n {\n name: 'fullTextFilterTerm',\n in: 'query',\n description: 'Text search term.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'fullTextFilterFields',\n in: 'query',\n description:\n 'A comma separated list of fields to sort returned results by.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n explode: false,\n style: 'form',\n },\n ],\n },\n },\n '/entity-facets': {\n get: {\n operationId: 'GetEntityFacets',\n tags: ['Entity'],\n description: 'Get all entity facets that match the given filters.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntityFacetsResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'query',\n name: 'facet',\n required: true,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n examples: {\n 'Entities by kind': {\n value: ['kind'],\n },\n 'Entities by spec type': {\n value: ['spec.type'],\n },\n },\n },\n {\n $ref: '#/components/parameters/filter',\n },\n ],\n },\n },\n '/locations': {\n post: {\n operationId: 'CreateLocation',\n tags: ['Locations'],\n description: 'Create a location for a given target.',\n responses: {\n '201': {\n description: 'Created',\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n exists: {\n type: 'boolean',\n },\n entities: {\n items: {\n $ref: '#/components/schemas/Entity',\n },\n type: 'array',\n },\n location: {\n $ref: '#/components/schemas/Location',\n },\n },\n required: ['entities', 'location'],\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'query',\n name: 'dryRun',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n target: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n },\n required: ['target', 'type'],\n },\n },\n },\n },\n },\n get: {\n operationId: 'GetLocations',\n tags: ['Locations'],\n description: 'Get all locations',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/components/schemas/Location',\n },\n },\n required: ['data'],\n },\n },\n },\n },\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n },\n },\n '/locations/{id}': {\n get: {\n operationId: 'GetLocation',\n tags: ['Locations'],\n description: 'Get a location by id.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Location',\n },\n },\n },\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'path',\n name: 'id',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n },\n delete: {\n operationId: 'DeleteLocation',\n tags: ['Locations'],\n description: 'Delete a location by id.',\n responses: {\n '204': {\n description: 'No content',\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'path',\n name: 'id',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n },\n },\n '/locations/by-entity/{kind}/{namespace}/{name}': {\n get: {\n operationId: 'getLocationByEntity',\n tags: ['Locations'],\n description: 'Get a location for entity.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Location',\n },\n },\n },\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'path',\n name: 'kind',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n {\n in: 'path',\n name: 'namespace',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n {\n in: 'path',\n name: 'name',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n },\n },\n '/analyze-location': {\n post: {\n operationId: 'AnalyzeLocation',\n tags: ['Locations'],\n description: 'Validate a given location.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/AnalyzeLocationResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n catalogFileName: {\n type: 'string',\n },\n location: {\n $ref: '#/components/schemas/LocationInput',\n },\n },\n required: ['location'],\n },\n },\n },\n },\n },\n },\n '/validate-entity': {\n post: {\n operationId: 'ValidateEntity',\n tags: ['Entity'],\n description:\n 'Validate that a passed in entity has no errors in schema.',\n responses: {\n '200': {\n description: 'Ok',\n },\n '400': {\n description: 'Validation errors.',\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n errors: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n },\n message: {\n type: 'string',\n },\n },\n required: ['name', 'message'],\n additionalProperties: {},\n },\n },\n },\n required: ['errors'],\n },\n },\n },\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n location: {\n type: 'string',\n },\n entity: {\n type: 'object',\n additionalProperties: {},\n },\n },\n required: ['location', 'entity'],\n },\n },\n },\n },\n },\n },\n },\n} as const;\nexport const createOpenApiRouter = async (\n options?: Parameters<\n typeof createValidatedOpenApiRouterFromGeneratedEndpointMap\n >['1'],\n) =>\n createValidatedOpenApiRouterFromGeneratedEndpointMap<EndpointMap>(\n spec,\n options,\n );\n"],"names":["createValidatedOpenApiRouterFromGeneratedEndpointMap"],"mappings":";;;;AAsBO,MAAM,IAAA,GAAO;AAAA,EAClB,OAAA,EAAS,OAAA;AAAA,EACT,IAAA,EAAM;AAAA,IACJ,KAAA,EAAO,SAAA;AAAA,IACP,OAAA,EAAS,GAAA;AAAA,IACT,WAAA,EACE,o/BAAA;AAAA,IACF,OAAA,EAAS;AAAA,MACP,IAAA,EAAM,YAAA;AAAA,MACN,GAAA,EAAK;AAAA,KACP;AAAA,IACA,SAAS;AAAC,GACZ;AAAA,EACA,OAAA,EAAS;AAAA,IACP;AAAA,MACE,GAAA,EAAK;AAAA;AACP,GACF;AAAA,EACA,UAAA,EAAY;AAAA,IACV,UAAU,EAAC;AAAA,IACX,SAA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,QAAA;AAAA,oBACN,sBAAsB;AAAC;AACzB,iBACF;AAAA,gBACA,QAAA,EAAU,CAAC,UAAA,EAAY,QAAQ;AAAA;AACjC;AACF;AACF;AACF;AACF;AACF;AAEJ;AACO,MAAM,mBAAA,GAAsB,OACjC,OAAA,KAIAA,wEAAA;AAAA,EACE,IAAA;AAAA,EACA;AACF;;;;;"}
1
+ {"version":3,"file":"router.cjs.js","sources":["../../../../src/schema/openapi/generated/router.ts"],"sourcesContent":["/*\n * Copyright 2026 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\n// ******************************************************************\n// * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. *\n// ******************************************************************\nimport { createValidatedOpenApiRouterFromGeneratedEndpointMap } from '@backstage/backend-openapi-utils';\nimport { EndpointMap } from './apis';\n\nexport const spec = {\n openapi: '3.0.3',\n info: {\n title: 'catalog',\n version: '1',\n description:\n 'The API surface consists of a few distinct groups of functionality. Each has a\\ndedicated section below.\\n\\n:::note Note\\n This page only describes some of the most commonly used parts of the API, and is a work in progress.\\n:::\\n\\nAll of the URL paths in this article are assumed to be on top of some base URL\\npointing at your catalog installation. For example, if the path given in a\\nsection below is `/entities`, and the catalog is located at\\n`http://localhost:7007/api/catalog` during local development, the full URL would\\nbe `http://localhost:7007/api/catalog/entities`. The actual URL may vary from\\none organization to the other, especially in production, but is commonly your\\n`backend.baseUrl` in your app config, plus `/api/catalog` at the end.\\n\\nSome or all of the endpoints may accept or require an `Authorization` header\\nwith a `Bearer` token, which should then be the Backstage token returned by the\\n[`identity API`](https://backstage.io/api/stable/variables/_backstage_core-plugin-api.index.identityApiRef.html).\\n',\n license: {\n name: 'Apache-2.0',\n url: 'http://www.apache.org/licenses/LICENSE-2.0.html',\n },\n contact: {},\n },\n servers: [\n {\n url: '/',\n },\n ],\n components: {\n examples: {},\n headers: {},\n parameters: {\n kind: {\n name: 'kind',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n namespace: {\n name: 'namespace',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n name: {\n name: 'name',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n uid: {\n name: 'uid',\n in: 'path',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n cursor: {\n name: 'cursor',\n in: 'query',\n description:\n 'You may pass the `cursor` query parameters to perform cursor based pagination\\nthrough the set of entities. The value of `cursor` will be returned in the response, under the `pageInfo` property:\\n\\n```json\\n \"pageInfo\": {\\n \"nextCursor\": \"a-cursor\",\\n \"prevCursor\": \"another-cursor\"\\n }\\n```\\n\\nIf `nextCursor` exists, it can be used to retrieve the next batch of entities. Following the same approach,\\nif `prevCursor` exists, it can be used to retrieve the previous batch of entities.\\n\\n- [`filter`](#filtering), for selecting only a subset of all entities\\n- [`fields`](#field-selection), for selecting only parts of the full data\\n structure of each entity\\n- `limit` for limiting the number of entities returned (20 is the default)\\n- [`orderField`](#ordering), for deciding the order of the entities\\n- `fullTextFilter`\\n **NOTE**: [`filter`, `orderField`, `fullTextFilter`] and `cursor` are mutually exclusive. This means that,\\n it isn\\'t possible to change any of [`filter`, `orderField`, `fullTextFilter`] when passing `cursor` as query parameters,\\n as changing any of these properties will affect pagination. If any of `filter`, `orderField`, `fullTextFilter` is specified together with `cursor`, only the latter is taken into consideration.\\n',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n minLength: 1,\n },\n },\n after: {\n name: 'after',\n in: 'query',\n description: 'Pointer to the previous page of results.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n minLength: 1,\n },\n },\n fields: {\n name: 'fields',\n in: 'query',\n description:\n \"By default the full entities are returned, but you can pass in a `fields` query\\nparameter which selects what parts of the entity data to retain. This makes the\\nresponse smaller and faster to transfer, and may allow the catalog to perform\\nmore efficient queries.\\n\\nThe query parameter value is a comma separated list of simplified JSON paths\\nlike above. Each path corresponds to the key of either a value, or of a subtree\\nroot that you want to keep in the output. The rest is pruned away. For example,\\nspecifying `?fields=metadata.name,metadata.annotations,spec` retains only the\\n`name` and `annotations` fields of the `metadata` of each entity (it'll be an\\nobject with at most two keys), keeps the entire `spec` unchanged, and cuts out\\nall other roots such as `relations`.\\n\\nSome more real world usable examples:\\n\\n- Return only enough data to form the full ref of each entity:\\n\\n `/entities/by-query?fields=kind,metadata.namespace,metadata.name`\\n\",\n required: false,\n allowReserved: true,\n explode: false,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n examples: {\n 'Get name and the entire relations collection': {\n value: ['metadata.name', 'relations'],\n },\n 'Get kind, name and namespace': {\n value: ['kind', 'metadata.name', 'metadata.namespace'],\n },\n },\n },\n filter: {\n name: 'filter',\n in: 'query',\n description:\n 'You can pass in one or more filter sets that get matched against each entity.\\nEach filter set is a number of conditions that all have to match for the\\ncondition to be true (conditions effectively have an AND between them). At least\\none filter set has to be true for the entity to be part of the result set\\n(filter sets effectively have an OR between them).\\n\\nExample:\\n\\n```text\\n/entities/by-query?filter=kind=user,metadata.namespace=default&filter=kind=group,spec.type\\n\\n Return entities that match\\n\\n Filter set 1:\\n Condition 1: kind = user\\n AND\\n Condition 2: metadata.namespace = default\\n\\n OR\\n\\n Filter set 2:\\n Condition 1: kind = group\\n AND\\n Condition 2: spec.type exists\\n```\\n\\nEach condition is either on the form `<key>`, or on the form `<key>=<value>`.\\nThe first form asserts on the existence of a certain key (with any value), and\\nthe second asserts that the key exists and has a certain value. All checks are\\nalways case _insensitive_.\\n\\nIn all cases, the key is a simplified JSON path in a given piece of entity data.\\nEach part of the path is a key of an object, and the traversal also descends\\nthrough arrays. There are two special forms:\\n\\n- Array items that are simple value types (such as strings) match on a key-value\\n pair where the key is the item as a string, and the value is the string `true`\\n- Relations can be matched on a `relations.<type>=<targetRef>` form\\n\\nLet\\'s look at a simplified example to illustrate the concept:\\n\\n```json\\n{\\n \"a\": {\\n \"b\": [\"c\", { \"d\": 1 }],\\n \"e\": 7\\n }\\n}\\n```\\n\\nThis would match any one of the following conditions:\\n\\n- `a`\\n- `a.b`\\n- `a.b.c`\\n- `a.b.c=true`\\n- `a.b.d`\\n- `a.b.d=1`\\n- `a.e`\\n- `a.e=7`\\n\\nSome more real world usable examples:\\n\\n- Return all orphaned entities:\\n\\n `/entities/by-query?filter=metadata.annotations.backstage.io/orphan=true`\\n\\n- Return all users and groups:\\n\\n `/entities/by-query?filter=kind=user&filter=kind=group`\\n\\n- Return all service components:\\n\\n `/entities/by-query?filter=kind=component,spec.type=service`\\n\\n- Return all entities with the `java` tag:\\n\\n `/entities/by-query?filter=metadata.tags.java`\\n\\n- Return all users who are members of the `ops` group (note that the full\\n [reference](references.md) of the group is used):\\n\\n `/entities/by-query?filter=kind=user,relations.memberof=group:default/ops`\\n',\n required: false,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n examples: {\n 'Get groups': {\n value: ['kind=group'],\n },\n 'Get orphaned components': {\n value: [\n 'kind=component,metadata.annotations.backstage.io/orphan=true',\n ],\n },\n },\n },\n offset: {\n name: 'offset',\n in: 'query',\n description: 'Number of records to skip in the query page.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'integer',\n minimum: 0,\n },\n },\n limit: {\n name: 'limit',\n in: 'query',\n description: 'Number of records to return in the response.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'integer',\n minimum: 0,\n },\n },\n orderField: {\n name: 'orderField',\n in: 'query',\n description:\n 'By default the entities are returned ordered by their internal uid. You can\\ncustomize the `orderField` query parameters to affect that ordering.\\n\\nFor example, to return entities by their name:\\n\\n`/entities/by-query?orderField=metadata.name,asc`\\n\\nEach parameter can be followed by `asc` for ascending lexicographical order or\\n`desc` for descending (reverse) lexicographical order.\\n',\n required: false,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n description: 'A two-item tuple of [field, order].',\n },\n },\n explode: true,\n style: 'form',\n examples: {\n 'Order ascending by name': {\n value: ['metadata.name,asc'],\n },\n 'Order descending by owner': {\n value: ['spec.owner,desc'],\n },\n },\n },\n },\n requestBodies: {},\n responses: {\n ErrorResponse: {\n description: 'An error response from the backend.',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Error',\n },\n },\n },\n },\n },\n schemas: {\n Error: {\n type: 'object',\n properties: {\n error: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n },\n message: {\n type: 'string',\n },\n stack: {\n type: 'string',\n },\n code: {\n type: 'string',\n },\n },\n required: ['name', 'message'],\n },\n request: {\n type: 'object',\n properties: {\n method: {\n type: 'string',\n },\n url: {\n type: 'string',\n },\n },\n required: ['method', 'url'],\n },\n response: {\n type: 'object',\n properties: {\n statusCode: {\n type: 'number',\n },\n },\n required: ['statusCode'],\n },\n },\n required: ['error', 'response'],\n additionalProperties: {},\n },\n JsonObject: {\n type: 'object',\n properties: {},\n description: 'A type representing all allowed JSON object values.',\n additionalProperties: {},\n },\n MapStringString: {\n type: 'object',\n properties: {},\n additionalProperties: {\n type: 'string',\n },\n description: 'Construct a type with a set of properties K of type T',\n },\n EntityLink: {\n type: 'object',\n properties: {\n type: {\n type: 'string',\n description:\n 'An optional value to categorize links into specific groups',\n },\n icon: {\n type: 'string',\n description:\n 'An optional semantic key that represents a visual icon.',\n },\n title: {\n type: 'string',\n description: 'An optional descriptive title for the link.',\n },\n url: {\n type: 'string',\n description: 'The url to the external site, document, etc.',\n },\n },\n required: ['url'],\n description:\n 'A link to external information that is related to the entity.',\n additionalProperties: false,\n },\n EntityMeta: {\n type: 'object',\n properties: {\n links: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityLink',\n },\n description: 'A list of external hyperlinks related to the entity.',\n },\n tags: {\n type: 'array',\n items: {\n type: 'string',\n },\n description:\n 'A list of single-valued strings, to for example classify catalog entities in\\nvarious ways.',\n },\n annotations: {\n $ref: '#/components/schemas/MapStringString',\n },\n labels: {\n $ref: '#/components/schemas/MapStringString',\n },\n description: {\n type: 'string',\n description:\n 'A short (typically relatively few words, on one line) description of the\\nentity.',\n },\n title: {\n type: 'string',\n description:\n 'A display name of the entity, to be presented in user interfaces instead\\nof the `name` property above, when available.\\nThis field is sometimes useful when the `name` is cumbersome or ends up\\nbeing perceived as overly technical. The title generally does not have\\nas stringent format requirements on it, so it may contain special\\ncharacters and be more explanatory. Do keep it very short though, and\\navoid situations where a title can be confused with the name of another\\nentity, or where two entities share a title.\\nNote that this is only for display purposes, and may be ignored by some\\nparts of the code. Entity references still always make use of the `name`\\nproperty, not the title.',\n },\n namespace: {\n type: 'string',\n description: 'The namespace that the entity belongs to.',\n },\n name: {\n type: 'string',\n description:\n 'The name of the entity.\\nMust be unique within the catalog at any given point in time, for any\\ngiven namespace + kind pair. This value is part of the technical\\nidentifier of the entity, and as such it will appear in URLs, database\\ntables, entity references, and similar. It is subject to restrictions\\nregarding what characters are allowed.\\nIf you want to use a different, more human readable string with fewer\\nrestrictions on it in user interfaces, see the `title` field below.',\n },\n etag: {\n type: 'string',\n description:\n 'An opaque string that changes for each update operation to any part of\\nthe entity, including metadata.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, and the server will then reject the\\noperation if it does not match the current stored value.',\n },\n uid: {\n type: 'string',\n description:\n 'A globally unique ID for the entity.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, but the server is free to reject requests\\nthat do so in such a way that it breaks semantics.',\n },\n },\n required: ['name'],\n description: 'Metadata fields common to all versions/kinds of entity.',\n additionalProperties: {},\n },\n EntityRelation: {\n type: 'object',\n properties: {\n targetRef: {\n type: 'string',\n description: 'The entity ref of the target of this relation.',\n },\n type: {\n type: 'string',\n description: 'The type of the relation.',\n },\n },\n required: ['targetRef', 'type'],\n description:\n 'A relation of a specific type to another entity in the catalog.',\n additionalProperties: false,\n },\n Entity: {\n type: 'object',\n properties: {\n relations: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityRelation',\n },\n description:\n 'The relations that this entity has with other entities.',\n },\n spec: {\n $ref: '#/components/schemas/JsonObject',\n },\n metadata: {\n $ref: '#/components/schemas/EntityMeta',\n },\n kind: {\n type: 'string',\n description: 'The high level entity type being described.',\n },\n apiVersion: {\n type: 'string',\n description:\n 'The version of specification format for this particular entity that\\nthis is written against.',\n },\n },\n required: ['metadata', 'kind', 'apiVersion'],\n description:\n \"The parts of the format that's common to all versions/kinds of entity.\",\n },\n NullableEntity: {\n type: 'object',\n properties: {\n relations: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityRelation',\n },\n description:\n 'The relations that this entity has with other entities.',\n },\n spec: {\n $ref: '#/components/schemas/JsonObject',\n },\n metadata: {\n $ref: '#/components/schemas/EntityMeta',\n },\n kind: {\n type: 'string',\n description: 'The high level entity type being described.',\n },\n apiVersion: {\n type: 'string',\n description:\n 'The version of specification format for this particular entity that\\nthis is written against.',\n },\n },\n required: ['metadata', 'kind', 'apiVersion'],\n description:\n \"The parts of the format that's common to all versions/kinds of entity.\",\n nullable: true,\n },\n EntityAncestryResponse: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n parentEntityRefs: {\n items: {\n type: 'string',\n },\n type: 'array',\n },\n entity: {\n $ref: '#/components/schemas/Entity',\n },\n },\n required: ['parentEntityRefs', 'entity'],\n },\n },\n rootEntityRef: {\n type: 'string',\n },\n },\n required: ['items', 'rootEntityRef'],\n additionalProperties: false,\n },\n EntitiesBatchResponse: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/NullableEntity',\n },\n description:\n 'The list of entities, in the same order as the refs in the request. Entries\\nthat are null signify that no entity existed with that ref.',\n },\n },\n required: ['items'],\n additionalProperties: false,\n },\n EntityFacet: {\n type: 'object',\n properties: {\n value: {\n type: 'string',\n },\n count: {\n type: 'number',\n },\n },\n required: ['value', 'count'],\n additionalProperties: false,\n },\n EntityFacetsResponse: {\n type: 'object',\n properties: {\n facets: {\n type: 'object',\n additionalProperties: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityFacet',\n },\n },\n },\n },\n required: ['facets'],\n additionalProperties: false,\n },\n Location: {\n type: 'object',\n properties: {\n target: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n id: {\n type: 'string',\n },\n },\n required: ['target', 'type', 'id'],\n description: 'Entity location for a specific entity.',\n additionalProperties: false,\n },\n LocationSpec: {\n type: 'object',\n properties: {\n target: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n },\n required: ['target', 'type'],\n description: 'Holds the entity location information.',\n additionalProperties: false,\n },\n AnalyzeLocationExistingEntity: {\n type: 'object',\n properties: {\n entity: {\n $ref: '#/components/schemas/Entity',\n },\n isRegistered: {\n type: 'boolean',\n },\n location: {\n $ref: '#/components/schemas/LocationSpec',\n },\n },\n required: ['entity', 'isRegistered', 'location'],\n description:\n \"If the folder pointed to already contained catalog info yaml files, they are\\nread and emitted like this so that the frontend can inform the user that it\\nlocated them and can make sure to register them as well if they weren't\\nalready\",\n additionalProperties: false,\n },\n RecursivePartialEntityRelation: {\n type: 'object',\n properties: {\n targetRef: {\n type: 'string',\n description: 'The entity ref of the target of this relation.',\n },\n type: {\n type: 'string',\n description: 'The type of the relation.',\n },\n },\n description:\n 'A relation of a specific type to another entity in the catalog.',\n additionalProperties: false,\n },\n RecursivePartialEntityMeta: {\n allOf: [\n {\n $ref: '#/components/schemas/JsonObject',\n },\n {\n type: 'object',\n properties: {\n links: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/EntityLink',\n },\n description:\n 'A list of external hyperlinks related to the entity.',\n },\n tags: {\n type: 'array',\n items: {\n type: 'string',\n },\n description:\n 'A list of single-valued strings, to for example classify catalog entities in\\nvarious ways.',\n },\n annotations: {\n $ref: '#/components/schemas/MapStringString',\n },\n labels: {\n $ref: '#/components/schemas/MapStringString',\n },\n description: {\n type: 'string',\n description:\n 'A short (typically relatively few words, on one line) description of the\\nentity.',\n },\n title: {\n type: 'string',\n description:\n 'A display name of the entity, to be presented in user interfaces instead\\nof the `name` property above, when available.\\nThis field is sometimes useful when the `name` is cumbersome or ends up\\nbeing perceived as overly technical. The title generally does not have\\nas stringent format requirements on it, so it may contain special\\ncharacters and be more explanatory. Do keep it very short though, and\\navoid situations where a title can be confused with the name of another\\nentity, or where two entities share a title.\\nNote that this is only for display purposes, and may be ignored by some\\nparts of the code. Entity references still always make use of the `name`\\nproperty, not the title.',\n },\n namespace: {\n type: 'string',\n description: 'The namespace that the entity belongs to.',\n },\n name: {\n type: 'string',\n description:\n 'The name of the entity.\\nMust be unique within the catalog at any given point in time, for any\\ngiven namespace + kind pair. This value is part of the technical\\nidentifier of the entity, and as such it will appear in URLs, database\\ntables, entity references, and similar. It is subject to restrictions\\nregarding what characters are allowed.\\nIf you want to use a different, more human readable string with fewer\\nrestrictions on it in user interfaces, see the `title` field below.',\n },\n etag: {\n type: 'string',\n description:\n 'An opaque string that changes for each update operation to any part of\\nthe entity, including metadata.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, and the server will then reject the\\noperation if it does not match the current stored value.',\n },\n uid: {\n type: 'string',\n description:\n 'A globally unique ID for the entity.\\nThis field can not be set by the user at creation time, and the server\\nwill reject an attempt to do so. The field will be populated in read\\noperations. The field can (optionally) be specified when performing\\nupdate or delete operations, but the server is free to reject requests\\nthat do so in such a way that it breaks semantics.',\n },\n },\n description:\n 'Metadata fields common to all versions/kinds of entity.',\n },\n ],\n additionalProperties: false,\n },\n RecursivePartialEntity: {\n type: 'object',\n properties: {\n apiVersion: {\n type: 'string',\n description:\n 'The version of specification format for this particular entity that\\nthis is written against.',\n },\n kind: {\n type: 'string',\n description: 'The high level entity type being described.',\n },\n metadata: {\n $ref: '#/components/schemas/RecursivePartialEntityMeta',\n },\n spec: {\n $ref: '#/components/schemas/JsonObject',\n },\n relations: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/RecursivePartialEntityRelation',\n },\n description:\n 'The relations that this entity has with other entities.',\n },\n },\n description: 'Makes all keys of an entire hierarchy optional.',\n additionalProperties: false,\n },\n AnalyzeLocationEntityField: {\n type: 'object',\n properties: {\n description: {\n type: 'string',\n description:\n 'A text to show to the user to inform about the choices made. Like, it could say\\n\"Found a CODEOWNERS file that covers this target, so we suggest leaving this\\nfield empty; which would currently make it owned by X\" where X is taken from the\\ncodeowners file.',\n },\n value: {\n type: 'string',\n nullable: true,\n },\n state: {\n type: 'string',\n enum: [\n 'analysisSuggestedValue',\n 'analysisSuggestedNoValue',\n 'needsUserInput',\n ],\n description:\n 'The outcome of the analysis for this particular field',\n },\n field: {\n type: 'string',\n description:\n 'e.g. \"spec.owner\"? The frontend needs to know how to \"inject\" the field into the\\nentity again if the user wants to change it',\n },\n },\n required: ['description', 'value', 'state', 'field'],\n additionalProperties: false,\n },\n AnalyzeLocationGenerateEntity: {\n type: 'object',\n properties: {\n fields: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/AnalyzeLocationEntityField',\n },\n },\n entity: {\n $ref: '#/components/schemas/RecursivePartialEntity',\n },\n },\n required: ['fields', 'entity'],\n description:\n \"This is some form of representation of what the analyzer could deduce.\\nWe should probably have a chat about how this can best be conveyed to\\nthe frontend. It'll probably contain a (possibly incomplete) entity, plus\\nenough info for the frontend to know what form data to show to the user\\nfor overriding/completing the info.\",\n additionalProperties: false,\n },\n AnalyzeLocationResponse: {\n type: 'object',\n properties: {\n generateEntities: {\n items: {\n $ref: '#/components/schemas/AnalyzeLocationGenerateEntity',\n },\n type: 'array',\n },\n existingEntityFiles: {\n items: {\n $ref: '#/components/schemas/AnalyzeLocationExistingEntity',\n },\n type: 'array',\n },\n },\n required: ['generateEntities', 'existingEntityFiles'],\n additionalProperties: false,\n },\n LocationInput: {\n type: 'object',\n properties: {\n type: {\n type: 'string',\n },\n target: {\n type: 'string',\n },\n },\n required: ['type', 'target'],\n additionalProperties: false,\n },\n EntitiesQueryResponse: {\n type: 'object',\n properties: {\n items: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/Entity',\n },\n description: 'The list of entities paginated by a specific filter.',\n },\n totalItems: {\n type: 'number',\n },\n pageInfo: {\n type: 'object',\n properties: {\n nextCursor: {\n type: 'string',\n description: 'The cursor for the next batch of entities.',\n },\n prevCursor: {\n type: 'string',\n description: 'The cursor for the previous batch of entities.',\n },\n },\n },\n },\n required: ['items', 'totalItems', 'pageInfo'],\n additionalProperties: false,\n },\n },\n securitySchemes: {\n JWT: {\n type: 'http',\n scheme: 'bearer',\n bearerFormat: 'JWT',\n },\n },\n },\n paths: {\n '/refresh': {\n post: {\n operationId: 'RefreshEntity',\n tags: ['Entity'],\n description: 'Refresh the entity related to entityRef.',\n responses: {\n '200': {\n description: 'Refreshed',\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n authorizationToken: {\n type: 'string',\n },\n entityRef: {\n type: 'string',\n description:\n 'The reference to a single entity that should be refreshed',\n },\n },\n required: ['entityRef'],\n description:\n 'Options for requesting a refresh of entities in the catalog.',\n additionalProperties: false,\n },\n },\n },\n },\n },\n },\n '/entities': {\n get: {\n operationId: 'GetEntities',\n tags: ['Entity'],\n description: 'Get all entities matching a given filter.',\n responses: {\n '200': {\n description: '',\n content: {\n 'application/json': {\n schema: {\n type: 'array',\n items: {\n $ref: '#/components/schemas/Entity',\n },\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/fields',\n },\n {\n $ref: '#/components/parameters/limit',\n },\n {\n $ref: '#/components/parameters/filter',\n },\n {\n $ref: '#/components/parameters/offset',\n },\n {\n $ref: '#/components/parameters/after',\n },\n {\n name: 'order',\n in: 'query',\n allowReserved: true,\n required: false,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n ],\n },\n },\n '/entities/by-uid/{uid}': {\n get: {\n operationId: 'GetEntityByUid',\n tags: ['Entity'],\n description: 'Get a single entity by the UID.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Entity',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/uid',\n },\n ],\n },\n delete: {\n operationId: 'DeleteEntityByUid',\n tags: ['Entity'],\n description: 'Delete a single entity by UID.',\n responses: {\n '204': {\n description: 'Deleted successfully.',\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/uid',\n },\n ],\n },\n },\n '/entities/by-name/{kind}/{namespace}/{name}': {\n get: {\n operationId: 'GetEntityByName',\n tags: ['Entity'],\n description: 'Get an entity by an entity ref.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Entity',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/kind',\n },\n {\n $ref: '#/components/parameters/namespace',\n },\n {\n $ref: '#/components/parameters/name',\n },\n ],\n },\n },\n '/entities/by-name/{kind}/{namespace}/{name}/ancestry': {\n get: {\n operationId: 'GetEntityAncestryByName',\n tags: ['Entity'],\n description: \"Get an entity's ancestry by entity ref.\",\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntityAncestryResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/kind',\n },\n {\n $ref: '#/components/parameters/namespace',\n },\n {\n $ref: '#/components/parameters/name',\n },\n ],\n },\n },\n '/entities/by-refs': {\n post: {\n operationId: 'GetEntitiesByRefs',\n tags: ['Entity'],\n description:\n 'Get a batch set of entities given an array of entityRefs.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntitiesBatchResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n requestBody: {\n required: false,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n required: ['entityRefs'],\n properties: {\n entityRefs: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n fields: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n },\n },\n examples: {\n 'Fetch Backstage entities': {\n value: {\n entityRefs: [\n 'component:default/backstage',\n 'api:default/backstage',\n ],\n },\n },\n 'Fetch annotations for backstage entity': {\n value: {\n entityRefs: ['component:default/backstage'],\n fields: ['metadata.annotations'],\n },\n },\n },\n },\n },\n },\n parameters: [\n {\n $ref: '#/components/parameters/filter',\n },\n ],\n },\n },\n '/entities/by-query': {\n get: {\n operationId: 'GetEntitiesByQuery',\n tags: ['Entity'],\n description: 'Search for entities by a given query.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntitiesQueryResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n $ref: '#/components/parameters/fields',\n },\n {\n $ref: '#/components/parameters/limit',\n },\n {\n $ref: '#/components/parameters/offset',\n },\n {\n $ref: '#/components/parameters/orderField',\n },\n {\n $ref: '#/components/parameters/cursor',\n },\n {\n $ref: '#/components/parameters/filter',\n },\n {\n name: 'fullTextFilterTerm',\n in: 'query',\n description: 'Text search term.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n {\n name: 'fullTextFilterFields',\n in: 'query',\n description:\n 'A comma separated list of fields to sort returned results by.',\n required: false,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n explode: false,\n style: 'form',\n },\n ],\n },\n },\n '/entity-facets': {\n get: {\n operationId: 'GetEntityFacets',\n tags: ['Entity'],\n description: 'Get all entity facets that match the given filters.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/EntityFacetsResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'query',\n name: 'facet',\n required: true,\n allowReserved: true,\n schema: {\n type: 'array',\n items: {\n type: 'string',\n },\n },\n examples: {\n 'Entities by kind': {\n value: ['kind'],\n },\n 'Entities by spec type': {\n value: ['spec.type'],\n },\n },\n },\n {\n $ref: '#/components/parameters/filter',\n },\n ],\n },\n },\n '/locations': {\n post: {\n operationId: 'CreateLocation',\n tags: ['Locations'],\n description: 'Create a location for a given target.',\n responses: {\n '201': {\n description: 'Created',\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n exists: {\n type: 'boolean',\n },\n entities: {\n items: {\n $ref: '#/components/schemas/Entity',\n },\n type: 'array',\n },\n location: {\n $ref: '#/components/schemas/Location',\n },\n },\n required: ['entities', 'location'],\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'query',\n name: 'dryRun',\n required: false,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n target: {\n type: 'string',\n },\n type: {\n type: 'string',\n },\n },\n required: ['target', 'type'],\n },\n },\n },\n },\n },\n get: {\n operationId: 'GetLocations',\n tags: ['Locations'],\n description: 'Get all locations',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n data: {\n $ref: '#/components/schemas/Location',\n },\n },\n required: ['data'],\n },\n },\n },\n },\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n },\n },\n '/locations/{id}': {\n get: {\n operationId: 'GetLocation',\n tags: ['Locations'],\n description: 'Get a location by id.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Location',\n },\n },\n },\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'path',\n name: 'id',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n },\n delete: {\n operationId: 'DeleteLocation',\n tags: ['Locations'],\n description: 'Delete a location by id.',\n responses: {\n '204': {\n description: 'No content',\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'path',\n name: 'id',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n },\n },\n '/locations/by-entity/{kind}/{namespace}/{name}': {\n get: {\n operationId: 'getLocationByEntity',\n tags: ['Locations'],\n description: 'Get a location for entity.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/Location',\n },\n },\n },\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [\n {\n in: 'path',\n name: 'kind',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n {\n in: 'path',\n name: 'namespace',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n {\n in: 'path',\n name: 'name',\n required: true,\n allowReserved: true,\n schema: {\n type: 'string',\n },\n },\n ],\n },\n },\n '/analyze-location': {\n post: {\n operationId: 'AnalyzeLocation',\n tags: ['Locations'],\n description: 'Validate a given location.',\n responses: {\n '200': {\n description: 'Ok',\n content: {\n 'application/json': {\n schema: {\n $ref: '#/components/schemas/AnalyzeLocationResponse',\n },\n },\n },\n },\n '400': {\n $ref: '#/components/responses/ErrorResponse',\n },\n default: {\n $ref: '#/components/responses/ErrorResponse',\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n catalogFileName: {\n type: 'string',\n },\n location: {\n $ref: '#/components/schemas/LocationInput',\n },\n },\n required: ['location'],\n },\n },\n },\n },\n },\n },\n '/validate-entity': {\n post: {\n operationId: 'ValidateEntity',\n tags: ['Entity'],\n description:\n 'Validate that a passed in entity has no errors in schema.',\n responses: {\n '200': {\n description: 'Ok',\n },\n '400': {\n description: 'Validation errors.',\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n errors: {\n type: 'array',\n items: {\n type: 'object',\n properties: {\n name: {\n type: 'string',\n },\n message: {\n type: 'string',\n },\n },\n required: ['name', 'message'],\n additionalProperties: {},\n },\n },\n },\n required: ['errors'],\n },\n },\n },\n },\n },\n security: [\n {},\n {\n JWT: [],\n },\n ],\n parameters: [],\n requestBody: {\n required: true,\n content: {\n 'application/json': {\n schema: {\n type: 'object',\n properties: {\n location: {\n type: 'string',\n },\n entity: {\n type: 'object',\n additionalProperties: {},\n },\n },\n required: ['location', 'entity'],\n },\n },\n },\n },\n },\n },\n },\n} as const;\nexport const createOpenApiRouter = async (\n options?: Parameters<\n typeof createValidatedOpenApiRouterFromGeneratedEndpointMap\n >['1'],\n) =>\n createValidatedOpenApiRouterFromGeneratedEndpointMap<EndpointMap>(\n spec,\n options,\n );\n"],"names":["createValidatedOpenApiRouterFromGeneratedEndpointMap"],"mappings":";;;;AAsBO,MAAM,IAAA,GAAO;AAAA,EAClB,OAAA,EAAS,OAAA;AAAA,EACT,IAAA,EAAM;AAAA,IACJ,KAAA,EAAO,SAAA;AAAA,IACP,OAAA,EAAS,GAAA;AAAA,IACT,WAAA,EACE,+gCAAA;AAAA,IACF,OAAA,EAAS;AAAA,MACP,IAAA,EAAM,YAAA;AAAA,MACN,GAAA,EAAK;AAAA,KACP;AAAA,IACA,SAAS;AAAC,GACZ;AAAA,EACA,OAAA,EAAS;AAAA,IACP;AAAA,MACE,GAAA,EAAK;AAAA;AACP,GACF;AAAA,EACA,UAAA,EAAY;AAAA,IACV,UAAU,EAAC;AAAA,IACX,SAAS,EAAC;AAAA,IACV,UAAA,EAAY;AAAA,MACV,IAAA,EAAM;AAAA,QACJ,IAAA,EAAM,MAAA;AAAA,QACN,EAAA,EAAI,MAAA;AA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;AACF;AACF;AACF;AAEJ;AACO,MAAM,mBAAA,GAAsB,OACjC,OAAA,KAIAA,wEAAA;AAAA,EACE,IAAA;AAAA,EACA;AACF;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "3.4.0-next.1",
3
+ "version": "3.4.0-next.2",
4
4
  "description": "The Backstage backend plugin that provides the Backstage catalog",
5
5
  "backstage": {
6
6
  "role": "backend-plugin",
@@ -78,13 +78,13 @@
78
78
  "dependencies": {
79
79
  "@backstage/backend-openapi-utils": "0.6.6-next.0",
80
80
  "@backstage/backend-plugin-api": "1.7.0-next.1",
81
- "@backstage/catalog-client": "1.12.1",
81
+ "@backstage/catalog-client": "1.12.2-next.0",
82
82
  "@backstage/catalog-model": "1.7.6",
83
83
  "@backstage/config": "1.3.6",
84
84
  "@backstage/errors": "1.2.7",
85
- "@backstage/integration": "1.20.0-next.1",
85
+ "@backstage/integration": "1.20.0-next.2",
86
86
  "@backstage/plugin-catalog-common": "1.1.8-next.0",
87
- "@backstage/plugin-catalog-node": "1.21.0-next.0",
87
+ "@backstage/plugin-catalog-node": "2.0.0-next.1",
88
88
  "@backstage/plugin-events-node": "0.4.19-next.0",
89
89
  "@backstage/plugin-permission-common": "0.9.6-next.0",
90
90
  "@backstage/plugin-permission-node": "0.10.10-next.0",
@@ -110,10 +110,10 @@
110
110
  },
111
111
  "devDependencies": {
112
112
  "@backstage/backend-defaults": "0.15.2-next.1",
113
- "@backstage/backend-test-utils": "1.10.5-next.0",
114
- "@backstage/cli": "0.35.4-next.1",
113
+ "@backstage/backend-test-utils": "1.11.0-next.1",
114
+ "@backstage/cli": "0.35.4-next.2",
115
115
  "@backstage/plugin-permission-common": "0.9.6-next.0",
116
- "@backstage/repo-tools": "0.16.4-next.1",
116
+ "@backstage/repo-tools": "0.16.4-next.2",
117
117
  "@types/core-js": "^2.5.4",
118
118
  "@types/express": "^4.17.6",
119
119
  "@types/git-url-parse": "^9.0.0",