@red-hat-developer-hub/backstage-plugin-orchestrator-common 3.5.3 → 3.6.1

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,21 @@
1
1
  ## @red-hat-developer-hub/backstage-plugin-orchestrator-common [1.13.1](https://github.com/janus-idp/backstage-plugins/compare/@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.13.0...@red-hat-developer-hub/backstage-plugin-orchestrator-common@1.13.1) (2024-08-02)
2
2
 
3
+ ## 3.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 16d41c2: Add Run as Event when `orchestrator.kafka` is configured: send `isEvent` with execute input, redirect to workflow runs with a notice when the response id is `kafkaEvent`.
8
+
9
+ ## 3.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2212e8d: Backstage version bump to v1.49.3
14
+
15
+ ### Patch Changes
16
+
17
+ - 665a75c: fix: update axios for CVE-2026-40175
18
+
3
19
  ## 3.5.3
4
20
 
5
21
  ### Patch Changes
package/config.d.ts CHANGED
@@ -78,6 +78,30 @@ export interface Config {
78
78
  */
79
79
  url: string;
80
80
  };
81
+ /**
82
+ * Kafka configuration for event-triggered workflows (KafkaJS-style).
83
+ * When present, the UI can show actions such as "Run as Event".
84
+ * @visibility frontend
85
+ */
86
+ kafka?: {
87
+ /**
88
+ * Logical identifier of the Kafka client application.
89
+ * @see https://kafka.js.org/docs/configuration#client-id
90
+ * @visibility frontend
91
+ */
92
+ clientId: string;
93
+ /**
94
+ * Kafka broker addresses (`host:port`).
95
+ * @visibility frontend
96
+ */
97
+ brokers: string[];
98
+ /**
99
+ * Log level for orchestrator Kafka services. Defaults to INFO (4); e.g. use 5 for DEBUG.
100
+ * @see https://kafka.js.org/docs/configuration#logging
101
+ * @visibility frontend
102
+ */
103
+ logLevel?: number;
104
+ };
81
105
  /**
82
106
  * Configuration for the workflow log provider.
83
107
  * If configured, the "View Logs" button will be shown in the workflow instance results.
@@ -16,6 +16,8 @@ class BaseAPI {
16
16
  this.basePath = configuration.basePath ?? basePath;
17
17
  }
18
18
  }
19
+ basePath;
20
+ axios;
19
21
  configuration;
20
22
  }
21
23
  class RequiredError extends Error {
@@ -24,6 +26,7 @@ class RequiredError extends Error {
24
26
  this.field = field;
25
27
  this.name = "RequiredError";
26
28
  }
29
+ field;
27
30
  }
28
31
  const operationServerMap = {};
29
32
 
@@ -1 +1 @@
1
- {"version":3,"file":"base.cjs.js","sources":["../../../src/generated/client/base.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Orchestrator plugin\n * API to interact with orchestrator plugin\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n"],"names":["globalAxios"],"mappings":";;;;;;;;AAqBO,MAAM,SAAA,GAAY,kBAAA,CAAmB,OAAA,CAAQ,MAAA,EAAQ,EAAE;AA4BvD,MAAM,OAAA,CAAQ;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqB,QAAuBA,4BAAA,EAAa;AAA5E,IAAA,IAAA,CAAA,QAAA,GAAA,QAAA;AAAwC,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AACzF,IAAA,IAAI,aAAA,EAAe;AACf,MAAA,IAAA,CAAK,aAAA,GAAgB,aAAA;AACrB,MAAA,IAAA,CAAK,QAAA,GAAW,cAAc,QAAA,IAAY,QAAA;AAAA,IAC9C;AAAA,EACJ;AAAA,EAPU,aAAA;AAQd;AAQO,MAAM,sBAAsB,KAAA,CAAM;AAAA,EACrC,WAAA,CAAmB,OAAe,GAAA,EAAc;AAC5C,IAAA,KAAA,CAAM,GAAG,CAAA;AADM,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AAEf,IAAA,IAAA,CAAK,IAAA,GAAO,eAAA;AAAA,EAChB;AACJ;AAaO,MAAM,qBAAgC;;;;;;;"}
1
+ {"version":3,"file":"base.cjs.js","sources":["../../../src/generated/client/base.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Orchestrator plugin\n * API to interact with orchestrator plugin\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n"],"names":["globalAxios"],"mappings":";;;;;;;;AAqBO,MAAM,SAAA,GAAY,kBAAA,CAAmB,OAAA,CAAQ,MAAA,EAAQ,EAAE;AA4BvD,MAAM,OAAA,CAAQ;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqB,QAAuBA,4BAAA,EAAa;AAA5E,IAAA,IAAA,CAAA,QAAA,GAAA,QAAA;AAAwC,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AACzF,IAAA,IAAI,aAAA,EAAe;AACf,MAAA,IAAA,CAAK,aAAA,GAAgB,aAAA;AACrB,MAAA,IAAA,CAAK,QAAA,GAAW,cAAc,QAAA,IAAY,QAAA;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD,QAAA;AAAA,EAAwC,KAAA;AAAA,EAFnF,aAAA;AAQd;AAQO,MAAM,sBAAsB,KAAA,CAAM;AAAA,EACrC,WAAA,CAAmB,OAAe,GAAA,EAAc;AAC5C,IAAA,KAAA,CAAM,GAAG,CAAA;AADM,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AAEf,IAAA,IAAA,CAAK,IAAA,GAAO,eAAA;AAAA,EAChB;AAAA,EAHmB,KAAA;AAIvB;AAaO,MAAM,qBAAgC;;;;;;;"}
@@ -10,6 +10,8 @@ class BaseAPI {
10
10
  this.basePath = configuration.basePath ?? basePath;
11
11
  }
12
12
  }
13
+ basePath;
14
+ axios;
13
15
  configuration;
14
16
  }
15
17
  class RequiredError extends Error {
@@ -18,6 +20,7 @@ class RequiredError extends Error {
18
20
  this.field = field;
19
21
  this.name = "RequiredError";
20
22
  }
23
+ field;
21
24
  }
22
25
  const operationServerMap = {};
23
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"base.esm.js","sources":["../../../src/generated/client/base.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Orchestrator plugin\n * API to interact with orchestrator plugin\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n"],"names":[],"mappings":";;AAqBO,MAAM,SAAA,GAAY,kBAAA,CAAmB,OAAA,CAAQ,MAAA,EAAQ,EAAE;AA4BvD,MAAM,OAAA,CAAQ;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqB,QAAuB,WAAA,EAAa;AAA5E,IAAA,IAAA,CAAA,QAAA,GAAA,QAAA;AAAwC,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AACzF,IAAA,IAAI,aAAA,EAAe;AACf,MAAA,IAAA,CAAK,aAAA,GAAgB,aAAA;AACrB,MAAA,IAAA,CAAK,QAAA,GAAW,cAAc,QAAA,IAAY,QAAA;AAAA,IAC9C;AAAA,EACJ;AAAA,EAPU,aAAA;AAQd;AAQO,MAAM,sBAAsB,KAAA,CAAM;AAAA,EACrC,WAAA,CAAmB,OAAe,GAAA,EAAc;AAC5C,IAAA,KAAA,CAAM,GAAG,CAAA;AADM,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AAEf,IAAA,IAAA,CAAK,IAAA,GAAO,eAAA;AAAA,EAChB;AACJ;AAaO,MAAM,qBAAgC;;;;"}
1
+ {"version":3,"file":"base.esm.js","sources":["../../../src/generated/client/base.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * Orchestrator plugin\n * API to interact with orchestrator plugin\n *\n * The version of the OpenAPI document: 0.0.1\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"http://localhost\".replace(/\\/+$/, \"\");\n\n/**\n *\n * @export\n */\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\n/**\n *\n * @export\n * @interface RequestArgs\n */\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\n/**\n *\n * @export\n * @class BaseAPI\n */\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\n/**\n *\n * @export\n * @class RequiredError\n * @extends {Error}\n */\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\n/**\n *\n * @export\n */\nexport const operationServerMap: ServerMap = {\n}\n"],"names":[],"mappings":";;AAqBO,MAAM,SAAA,GAAY,kBAAA,CAAmB,OAAA,CAAQ,MAAA,EAAQ,EAAE;AA4BvD,MAAM,OAAA,CAAQ;AAAA,EAGjB,WAAA,CAAY,aAAA,EAAyC,QAAA,GAAmB,SAAA,EAAqB,QAAuB,WAAA,EAAa;AAA5E,IAAA,IAAA,CAAA,QAAA,GAAA,QAAA;AAAwC,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AACzF,IAAA,IAAI,aAAA,EAAe;AACf,MAAA,IAAA,CAAK,aAAA,GAAgB,aAAA;AACrB,MAAA,IAAA,CAAK,QAAA,GAAW,cAAc,QAAA,IAAY,QAAA;AAAA,IAC9C;AAAA,EACJ;AAAA,EALqD,QAAA;AAAA,EAAwC,KAAA;AAAA,EAFnF,aAAA;AAQd;AAQO,MAAM,sBAAsB,KAAA,CAAM;AAAA,EACrC,WAAA,CAAmB,OAAe,GAAA,EAAc;AAC5C,IAAA,KAAA,CAAM,GAAG,CAAA;AADM,IAAA,IAAA,CAAA,KAAA,GAAA,KAAA;AAEf,IAAA,IAAA,CAAK,IAAA,GAAO,eAAA;AAAA,EAChB;AAAA,EAHmB,KAAA;AAIvB;AAaO,MAAM,qBAAgC;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@red-hat-developer-hub/backstage-plugin-orchestrator-common",
3
- "version": "3.5.3",
3
+ "version": "3.6.1",
4
4
  "license": "Apache-2.0",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,15 +55,15 @@
55
55
  "openapi:check": "./scripts/openapi.sh check"
56
56
  },
57
57
  "dependencies": {
58
- "@backstage/core-plugin-api": "^1.12.2",
59
- "@backstage/plugin-permission-common": "^0.9.5",
58
+ "@backstage/core-plugin-api": "^1.12.4",
59
+ "@backstage/plugin-permission-common": "^0.9.7",
60
60
  "@backstage/types": "^1.2.2",
61
61
  "@serverlessworkflow/sdk-typescript": "^0.8.4",
62
- "axios": "^1.11.0",
62
+ "axios": "^1.15.0",
63
63
  "js-yaml": "^4.1.0"
64
64
  },
65
65
  "devDependencies": {
66
- "@backstage/cli": "^0.35.3",
66
+ "@backstage/cli": "^0.36.0",
67
67
  "@openapitools/openapi-generator-cli": "2.30.2",
68
68
  "@types/js-yaml": "^4.0.0",
69
69
  "@types/json-schema": "7.0.15",