@red-hat-developer-hub/backstage-plugin-orchestrator-common 1.28.3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/QueryParams.cjs.js +0 -2
  3. package/dist/QueryParams.cjs.js.map +1 -1
  4. package/dist/QueryParams.esm.js +1 -2
  5. package/dist/QueryParams.esm.js.map +1 -1
  6. package/dist/constants.cjs.js +0 -4
  7. package/dist/constants.cjs.js.map +1 -1
  8. package/dist/constants.esm.js +1 -3
  9. package/dist/constants.esm.js.map +1 -1
  10. package/dist/generated/api/definition.cjs.js +1 -1
  11. package/dist/generated/api/definition.cjs.js.map +1 -1
  12. package/dist/generated/api/definition.esm.js +1 -1
  13. package/dist/generated/api/definition.esm.js.map +1 -1
  14. package/dist/generated/client/api.cjs.js +0 -11
  15. package/dist/generated/client/api.cjs.js.map +1 -1
  16. package/dist/generated/client/api.esm.js +1 -10
  17. package/dist/generated/client/api.esm.js.map +1 -1
  18. package/dist/generated/client/base.cjs.js.map +1 -1
  19. package/dist/generated/client/base.esm.js.map +1 -1
  20. package/dist/generated/client/common.cjs.js.map +1 -1
  21. package/dist/generated/client/common.esm.js.map +1 -1
  22. package/dist/generated/client/configuration.cjs.js.map +1 -1
  23. package/dist/generated/client/configuration.esm.js.map +1 -1
  24. package/dist/index.cjs.js +0 -7
  25. package/dist/index.cjs.js.map +1 -1
  26. package/dist/index.d.ts +33 -77
  27. package/dist/index.esm.js +5 -5
  28. package/dist/models.cjs.js.map +1 -1
  29. package/dist/models.esm.js.map +1 -1
  30. package/dist/permissions.cjs.js.map +1 -1
  31. package/dist/permissions.esm.js.map +1 -1
  32. package/dist/types.cjs.js +0 -6
  33. package/dist/types.cjs.js.map +1 -1
  34. package/dist/types.esm.js +1 -6
  35. package/dist/types.esm.js.map +1 -1
  36. package/dist/utils/StringUtils.cjs.js.map +1 -1
  37. package/dist/utils/StringUtils.esm.js.map +1 -1
  38. package/dist/workflow.cjs.js +0 -11
  39. package/dist/workflow.cjs.js.map +1 -1
  40. package/dist/workflow.esm.js +1 -11
  41. package/dist/workflow.esm.js.map +1 -1
  42. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
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
+ ## 2.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - 66b7b7c: removing assessment code
8
+
9
+ ### Patch Changes
10
+
11
+ - e590195: Updated dependency `@openapitools/openapi-generator-cli` to `2.21.2`.
12
+ - d7d2490: enable custom auth provider for executing workflows
13
+
14
+ ## 1.28.4
15
+
16
+ ### Patch Changes
17
+
18
+ - ff0f69e: update API - fetch executionSummary field
19
+ Use execution summary for results card
20
+
3
21
  ## 1.28.3
4
22
 
5
23
  ### Patch Changes
@@ -1,8 +1,6 @@
1
1
  'use strict';
2
2
 
3
3
  const QUERY_PARAM_INSTANCE_ID = "instanceId";
4
- const QUERY_PARAM_ASSESSMENT_INSTANCE_ID = "assessmentInstanceId";
5
4
 
6
- exports.QUERY_PARAM_ASSESSMENT_INSTANCE_ID = QUERY_PARAM_ASSESSMENT_INSTANCE_ID;
7
5
  exports.QUERY_PARAM_INSTANCE_ID = QUERY_PARAM_INSTANCE_ID;
8
6
  //# sourceMappingURL=QueryParams.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryParams.cjs.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\nexport const QUERY_PARAM_ASSESSMENT_INSTANCE_ID =\n 'assessmentInstanceId' as const;\n"],"names":[],"mappings":";;AAgBO,MAAM,uBAA0B,GAAA;AAChC,MAAM,kCACX,GAAA;;;;;"}
1
+ {"version":3,"file":"QueryParams.cjs.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\n"],"names":[],"mappings":";;AAgBO,MAAM,uBAAA,GAA0B;;;;"}
@@ -1,5 +1,4 @@
1
1
  const QUERY_PARAM_INSTANCE_ID = "instanceId";
2
- const QUERY_PARAM_ASSESSMENT_INSTANCE_ID = "assessmentInstanceId";
3
2
 
4
- export { QUERY_PARAM_ASSESSMENT_INSTANCE_ID, QUERY_PARAM_INSTANCE_ID };
3
+ export { QUERY_PARAM_INSTANCE_ID };
5
4
  //# sourceMappingURL=QueryParams.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryParams.esm.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\nexport const QUERY_PARAM_ASSESSMENT_INSTANCE_ID =\n 'assessmentInstanceId' as const;\n"],"names":[],"mappings":"AAgBO,MAAM,uBAA0B,GAAA;AAChC,MAAM,kCACX,GAAA;;;;"}
1
+ {"version":3,"file":"QueryParams.esm.js","sources":["../src/QueryParams.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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\nexport const QUERY_PARAM_INSTANCE_ID = 'instanceId' as const;\n"],"names":[],"mappings":"AAgBO,MAAM,uBAAA,GAA0B;;;;"}
@@ -4,13 +4,9 @@ const DEFAULT_SONATAFLOW_CONTAINER_IMAGE = "quay.io/kubesmarts/incubator-kie-son
4
4
  const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = "/home/kogito/persistence";
5
5
  const DEFAULT_SONATAFLOW_BASE_URL = "http://localhost";
6
6
  const DEFAULT_WORKFLOWS_PATH = "workflows";
7
- const ASSESSMENT_WORKFLOW_TYPE = "workflow-type/assessment";
8
- const INFRASTRUCTURE_WORKFLOW_TYPE = "workflow-type/infrastructure";
9
7
 
10
- exports.ASSESSMENT_WORKFLOW_TYPE = ASSESSMENT_WORKFLOW_TYPE;
11
8
  exports.DEFAULT_SONATAFLOW_BASE_URL = DEFAULT_SONATAFLOW_BASE_URL;
12
9
  exports.DEFAULT_SONATAFLOW_CONTAINER_IMAGE = DEFAULT_SONATAFLOW_CONTAINER_IMAGE;
13
10
  exports.DEFAULT_SONATAFLOW_PERSISTENCE_PATH = DEFAULT_SONATAFLOW_PERSISTENCE_PATH;
14
11
  exports.DEFAULT_WORKFLOWS_PATH = DEFAULT_WORKFLOWS_PATH;
15
- exports.INFRASTRUCTURE_WORKFLOW_TYPE = INFRASTRUCTURE_WORKFLOW_TYPE;
16
12
  //# sourceMappingURL=constants.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.cjs.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 * @public\n * DEFAULT_SONATAFLOW_CONTAINER_IMAGE\n * This container image is an upstream build of sonata 1.36 used for dev mode.\n * We will continue maintaining this constant to include the image that is compatible with the plugin code at any given time.\n * This approach will enable a more smooth dev mode experience, as opposed to using nightly or dayly builds.\n */\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:9.103.x-prod';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n\nexport const ASSESSMENT_WORKFLOW_TYPE = 'workflow-type/assessment';\nexport const INFRASTRUCTURE_WORKFLOW_TYPE = 'workflow-type/infrastructure';\n"],"names":[],"mappings":";;AAuBO,MAAM,kCACX,GAAA;AACK,MAAM,mCAAsC,GAAA;AAC5C,MAAM,2BAA8B,GAAA;AAEpC,MAAM,sBAAyB,GAAA;AAE/B,MAAM,wBAA2B,GAAA;AACjC,MAAM,4BAA+B,GAAA;;;;;;;;;"}
1
+ {"version":3,"file":"constants.cjs.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 * @public\n * DEFAULT_SONATAFLOW_CONTAINER_IMAGE\n * This container image is an upstream build of sonata 1.36 used for dev mode.\n * We will continue maintaining this constant to include the image that is compatible with the plugin code at any given time.\n * This approach will enable a more smooth dev mode experience, as opposed to using nightly or dayly builds.\n */\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:9.103.x-prod';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n"],"names":[],"mappings":";;AAuBO,MAAM,kCAAA,GACX;AACK,MAAM,mCAAA,GAAsC;AAC5C,MAAM,2BAAA,GAA8B;AAEpC,MAAM,sBAAA,GAAyB;;;;;;;"}
@@ -2,8 +2,6 @@ const DEFAULT_SONATAFLOW_CONTAINER_IMAGE = "quay.io/kubesmarts/incubator-kie-son
2
2
  const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = "/home/kogito/persistence";
3
3
  const DEFAULT_SONATAFLOW_BASE_URL = "http://localhost";
4
4
  const DEFAULT_WORKFLOWS_PATH = "workflows";
5
- const ASSESSMENT_WORKFLOW_TYPE = "workflow-type/assessment";
6
- const INFRASTRUCTURE_WORKFLOW_TYPE = "workflow-type/infrastructure";
7
5
 
8
- export { ASSESSMENT_WORKFLOW_TYPE, DEFAULT_SONATAFLOW_BASE_URL, DEFAULT_SONATAFLOW_CONTAINER_IMAGE, DEFAULT_SONATAFLOW_PERSISTENCE_PATH, DEFAULT_WORKFLOWS_PATH, INFRASTRUCTURE_WORKFLOW_TYPE };
6
+ export { DEFAULT_SONATAFLOW_BASE_URL, DEFAULT_SONATAFLOW_CONTAINER_IMAGE, DEFAULT_SONATAFLOW_PERSISTENCE_PATH, DEFAULT_WORKFLOWS_PATH };
9
7
  //# sourceMappingURL=constants.esm.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.esm.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 * @public\n * DEFAULT_SONATAFLOW_CONTAINER_IMAGE\n * This container image is an upstream build of sonata 1.36 used for dev mode.\n * We will continue maintaining this constant to include the image that is compatible with the plugin code at any given time.\n * This approach will enable a more smooth dev mode experience, as opposed to using nightly or dayly builds.\n */\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:9.103.x-prod';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n\nexport const ASSESSMENT_WORKFLOW_TYPE = 'workflow-type/assessment';\nexport const INFRASTRUCTURE_WORKFLOW_TYPE = 'workflow-type/infrastructure';\n"],"names":[],"mappings":"AAuBO,MAAM,kCACX,GAAA;AACK,MAAM,mCAAsC,GAAA;AAC5C,MAAM,2BAA8B,GAAA;AAEpC,MAAM,sBAAyB,GAAA;AAE/B,MAAM,wBAA2B,GAAA;AACjC,MAAM,4BAA+B,GAAA;;;;"}
1
+ {"version":3,"file":"constants.esm.js","sources":["../src/constants.ts"],"sourcesContent":["/*\n * Copyright Red Hat, Inc.\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 * @public\n * DEFAULT_SONATAFLOW_CONTAINER_IMAGE\n * This container image is an upstream build of sonata 1.36 used for dev mode.\n * We will continue maintaining this constant to include the image that is compatible with the plugin code at any given time.\n * This approach will enable a more smooth dev mode experience, as opposed to using nightly or dayly builds.\n */\nexport const DEFAULT_SONATAFLOW_CONTAINER_IMAGE =\n 'quay.io/kubesmarts/incubator-kie-sonataflow-devmode:9.103.x-prod';\nexport const DEFAULT_SONATAFLOW_PERSISTENCE_PATH = '/home/kogito/persistence';\nexport const DEFAULT_SONATAFLOW_BASE_URL = 'http://localhost';\n\nexport const DEFAULT_WORKFLOWS_PATH = 'workflows';\n"],"names":[],"mappings":"AAuBO,MAAM,kCAAA,GACX;AACK,MAAM,mCAAA,GAAsC;AAC5C,MAAM,2BAAA,GAA8B;AAEpC,MAAM,sBAAA,GAAyB;;;;"}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/pingWorkflowService":{"get":{"operationId":"pingWorkflowServiceById","description":"ReturnstrueiftheworkflowserviceisupforthegivenworkflowID.","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"boolean"}}}},"500":{"description":"Errorpingingworkflowservicebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessedProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowCategoryDTO":{"type":"string","description":"Categoryoftheworkflow","enum":["assessment","infrastructure"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","category","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"AssessedProcessInstanceDTO":{"type":"object","properties":{"instance":{"$ref":"#/components/schemas/ProcessInstanceDTO"},"assessedBy":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"required":["instance"]},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"initiatorEntity":{"type":"string"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true},"authTokens":{"type":"array","items":{"$ref":"#/components/schemas/AuthToken"},"minItems":0,"additionalProperties":true}}},"AuthToken":{"type":"object","properties":{"provider":{"description":"Theauthtokenprovidername","type":"string","enum":["github","gitlab","microsoft"]},"token":{"description":"Theauthtokenitselfretrievedfromtheabovespecifiedprovidername","type":"string"}},"required":["provider","token"],"additionalProperties":false},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]},"NestedFilter":{"type":"object","required":["field","nested"],"properties":{"field":{"type":"string"},"nested":{"oneOf":[{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]}}},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
3
+ const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/pingWorkflowService":{"get":{"operationId":"pingWorkflowServiceById","description":"ReturnstrueiftheworkflowserviceisupforthegivenworkflowID.","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"boolean"}}}},"500":{"description":"Errorpingingworkflowservicebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"initiatorEntity":{"type":"string"},"executionSummary":{"type":"array","items":{"type":"string"}},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true},"authTokens":{"type":"array","items":{"$ref":"#/components/schemas/AuthToken"},"minItems":0,"additionalProperties":true}}},"AuthToken":{"type":"object","properties":{"provider":{"description":"Theauthtokenprovidername","type":"string"},"token":{"description":"Theauthtokenitselfretrievedfromtheabovespecifiedprovidername","type":"string"}},"required":["provider","token"],"additionalProperties":false},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]},"NestedFilter":{"type":"object","required":["field","nested"],"properties":{"field":{"type":"string"},"nested":{"oneOf":[{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]}}},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
4
4
  const openApiDocument = JSON.parse(OPENAPI);
5
5
 
6
6
  exports.openApiDocument = openApiDocument;
@@ -1 +1 @@
1
- {"version":3,"file":"definition.cjs.js","sources":["../../../src/generated/api/definition.ts"],"sourcesContent":["/* eslint-disable */\n/* prettier-ignore */\n// GENERATED FILE DO NOT EDIT.\nconst OPENAPI = `{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Orchestratorplugin\",\"description\":\"APItointeractwithorchestratorplugin\",\"license\":{\"name\":\"Apache2.0\",\"url\":\"http://www.apache.org/licenses/LICENSE-2.0.html\"},\"version\":\"0.0.1\"},\"servers\":[{\"url\":\"/\"}],\"paths\":{\"/v2/workflows/overview\":{\"post\":{\"operationId\":\"getWorkflowsOverview\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"requestBody\":{\"required\":false,\"description\":\"Paginationandfilters\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverviews\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/overview\":{\"get\":{\"operationId\":\"getWorkflowOverviewById\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"Uniqueidentifieroftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverview\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/source\":{\"get\":{\"operationId\":\"getWorkflowSourceById\",\"description\":\"Gettheworkflow'sdefinition\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowsourcebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/inputSchema\":{\"get\":{\"operationId\":\"getWorkflowInputSchemaById\",\"description\":\"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"query\",\"description\":\"IDofinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/InputSchemaResponseDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowinputschemabyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/pingWorkflowService\":{\"get\":{\"operationId\":\"pingWorkflowServiceById\",\"description\":\"ReturnstrueiftheworkflowserviceisupforthegivenworkflowID.\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"boolean\"}}}},\"500\":{\"description\":\"Errorpingingworkflowservicebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances\":{\"post\":{\"operationId\":\"getInstances\",\"summary\":\"Getinstances\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)\",\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/instances\":{\"post\":{\"operationId\":\"getWorkflowInstances\",\"summary\":\"Getinstancesforaspecificworkflow\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievingworkflowinstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}\":{\"get\":{\"summary\":\"GetWorkflowInstancebyID\",\"description\":\"Getaworkflowexecution/run(instance)\",\"operationId\":\"getInstanceById\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflowinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfulresponse\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/AssessedProcessInstanceDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstance\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/statuses\":{\"get\":{\"operationId\":\"getWorkflowStatuses\",\"summary\":\"Getworkflowstatuslist\",\"description\":\"Retrievearraywiththestatusofallinstances\",\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowRunStatusDTO\"}}}}},\"500\":{\"description\":\"Errorfetchingworkflowstatuses\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/execute\":{\"post\":{\"summary\":\"Executeaworkflow\",\"description\":\"Executeaworkflow\",\"operationId\":\"executeWorkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtoexecute\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowRequestDTO\"}}}},\"responses\":{\"200\":{\"description\":\"Successfulexecution\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowResponseDTO\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/{instanceId}/retrigger\":{\"post\":{\"summary\":\"Retriggeraninstance\",\"description\":\"Retriggeraninstance\",\"operationId\":\"retriggerInstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflow\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"path\",\"description\":\"IDoftheinstancetoretrigger\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}/abort\":{\"delete\":{\"summary\":\"Abortaworkflowinstance\",\"operationId\":\"abortWorkflow\",\"description\":\"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"Theidentifieroftheworkflowinstancetoabort.\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfuloperation\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorabortingworkflow\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}}},\"components\":{\"schemas\":{\"ErrorResponse\":{\"description\":\"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.\",\"type\":\"string\",\"default\":\"internalservererror\"},\"additionalInfo\":{\"description\":\"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.\",\"type\":\"string\"}},\"required\":[\"message\"]},\"GetOverviewsRequestParams\":{\"type\":\"object\",\"properties\":{\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"},\"filters\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}},\"WorkflowOverviewListResultDTO\":{\"type\":\"object\",\"properties\":{\"overviews\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"},\"minItems\":0},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"WorkflowOverviewDTO\":{\"type\":\"object\",\"properties\":{\"workflowId\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"lastRunId\":{\"type\":\"string\"},\"lastTriggeredMs\":{\"type\":\"number\",\"minimum\":0},\"lastRunStatus\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"isAvailable\":{\"type\":\"boolean\"}},\"required\":[\"workflowId\",\"format\"]},\"PaginationInfoDTO\":{\"type\":\"object\",\"properties\":{\"pageSize\":{\"type\":\"number\"},\"offset\":{\"type\":\"number\"},\"orderDirection\":{\"enum\":[\"ASC\",\"DESC\"]},\"orderBy\":{\"type\":\"string\"}},\"additionalProperties\":false},\"WorkflowFormatDTO\":{\"type\":\"string\",\"description\":\"Formatoftheworkflowdefinition\",\"enum\":[\"yaml\",\"json\"]},\"WorkflowCategoryDTO\":{\"type\":\"string\",\"description\":\"Categoryoftheworkflow\",\"enum\":[\"assessment\",\"infrastructure\"]},\"WorkflowListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}},\"required\":[\"items\",\"paginationInfo\"]},\"WorkflowDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\",\"description\":\"Descriptionoftheworkflow\"},\"annotations\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"id\",\"category\",\"format\"]},\"ProcessInstanceListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"AssessedProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"instance\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"},\"assessedBy\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"required\":[\"instance\"]},\"ProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"processId\":{\"type\":\"string\"},\"processName\":{\"type\":\"string\"},\"state\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"endpoint\":{\"type\":\"string\"},\"serviceUrl\":{\"type\":\"string\"},\"start\":{\"type\":\"string\"},\"end\":{\"type\":\"string\"},\"duration\":{\"type\":\"string\"},\"category\":{\"$ref\":\"#/components/schemas/WorkflowCategoryDTO\"},\"description\":{\"type\":\"string\"},\"workflowdata\":{\"$ref\":\"#/components/schemas/WorkflowDataDTO\"},\"initiatorEntity\":{\"type\":\"string\"},\"nodes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"}},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}},\"required\":[\"id\",\"processId\",\"nodes\"]},\"WorkflowDataDTO\":{\"type\":\"object\",\"properties\":{\"result\":{\"$ref\":\"#/components/schemas/WorkflowResultDTO\"}},\"additionalProperties\":true},\"WorkflowResultDTO\":{\"description\":\"Resultofaworkflowexecution\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.\",\"type\":\"string\"},\"nextWorkflows\":{\"description\":\"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Workflowidentifier\",\"type\":\"string\"},\"name\":{\"description\":\"Humanreadabletitledescribingtheworkflow.\",\"type\":\"string\"}},\"required\":[\"id\",\"name\"]}},\"outputs\":{\"description\":\"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"key\":{\"description\":\"Uniqueidentifieroftheoption.Preferablyhuman-readable.\",\"type\":\"string\"},\"value\":{\"description\":\"Freeformvalueoftheoption.\",\"anyOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"format\":{\"description\":\"Moredetailedtypeofthe'value'property.Defaultsto'text'.\",\"enum\":[\"text\",\"number\",\"link\"]}},\"required\":[\"key\",\"value\"]}}}},\"ProcessInstanceStatusDTO\":{\"type\":\"string\",\"description\":\"Statusoftheworkflowrun\",\"enum\":[\"ACTIVE\",\"ERROR\",\"COMPLETED\",\"ABORTED\",\"SUSPENDED\",\"PENDING\"]},\"WorkflowRunStatusDTO\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}},\"ExecuteWorkflowRequestDTO\":{\"type\":\"object\",\"properties\":{\"inputData\":{\"type\":\"object\",\"additionalProperties\":true},\"authTokens\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/AuthToken\"},\"minItems\":0,\"additionalProperties\":true}}},\"AuthToken\":{\"type\":\"object\",\"properties\":{\"provider\":{\"description\":\"Theauthtokenprovidername\",\"type\":\"string\",\"enum\":[\"github\",\"gitlab\",\"microsoft\"]},\"token\":{\"description\":\"Theauthtokenitselfretrievedfromtheabovespecifiedprovidername\",\"type\":\"string\"}},\"required\":[\"provider\",\"token\"],\"additionalProperties\":false},\"ExecuteWorkflowResponseDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]},\"WorkflowProgressDTO\":{\"allOf\":[{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"},{\"type\":\"object\",\"properties\":{\"status\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}}}]},\"NodeInstanceDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"NodeInstance\",\"description\":\"Typename\"},\"id\":{\"type\":\"string\",\"description\":\"NodeinstanceID\"},\"name\":{\"type\":\"string\",\"description\":\"Nodename\"},\"type\":{\"type\":\"string\",\"description\":\"Nodetype\"},\"enter\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasentered\"},\"exit\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasexited(optional)\"},\"definitionId\":{\"type\":\"string\",\"description\":\"DefinitionID\"},\"nodeId\":{\"type\":\"string\",\"description\":\"NodeID\"}},\"required\":[\"id\"]},\"ProcessInstanceErrorDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"ProcessInstanceError\",\"description\":\"Typename\"},\"nodeDefinitionId\":{\"type\":\"string\",\"description\":\"NodedefinitionID\"},\"message\":{\"type\":\"string\",\"description\":\"Errormessage(optional)\"}},\"required\":[\"nodeDefinitionId\"]},\"SearchRequest\":{\"type\":\"object\",\"properties\":{\"filters\":{\"$ref\":\"#/components/schemas/Filter\"},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"Filter\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/LogicalFilter\"},{\"$ref\":\"#/components/schemas/FieldFilter\"},{\"$ref\":\"#/components/schemas/NestedFilter\"}]},\"NestedFilter\":{\"type\":\"object\",\"required\":[\"field\",\"nested\"],\"properties\":{\"field\":{\"type\":\"string\"},\"nested\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/FieldFilter\"},{\"$ref\":\"#/components/schemas/NestedFilter\"}]}}},\"LogicalFilter\":{\"type\":\"object\",\"required\":[\"operator\",\"filters\"],\"properties\":{\"operator\":{\"type\":\"string\",\"enum\":[\"AND\",\"OR\",\"NOT\"]},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Filter\"}}}},\"FieldFilter\":{\"type\":\"object\",\"required\":[\"field\",\"operator\",\"value\"],\"properties\":{\"field\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"enum\":[\"EQ\",\"GT\",\"GTE\",\"LT\",\"LTE\",\"IN\",\"IS_NULL\",\"LIKE\",\"BETWEEN\"]},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"},{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"}]}}]}}},\"InputSchemaResponseDTO\":{\"type\":\"object\",\"properties\":{\"inputSchema\":{\"type\":\"object\"},\"data\":{\"type\":\"object\"}}}}}}`;\nexport const openApiDocument = JSON.parse(OPENAPI);\n"],"names":[],"mappings":";;AAGA,MAAM,OAAU,GAAA,CAAA,2tfAAA,CAAA;AACH,MAAA,eAAA,GAAkB,IAAK,CAAA,KAAA,CAAM,OAAO;;;;"}
1
+ {"version":3,"file":"definition.cjs.js","sources":["../../../src/generated/api/definition.ts"],"sourcesContent":["/* eslint-disable */\n/* prettier-ignore */\n// GENERATED FILE DO NOT EDIT.\nconst OPENAPI = `{\"openapi\":\"3.1.0\",\"info\":{\"title\":\"Orchestratorplugin\",\"description\":\"APItointeractwithorchestratorplugin\",\"license\":{\"name\":\"Apache2.0\",\"url\":\"http://www.apache.org/licenses/LICENSE-2.0.html\"},\"version\":\"0.0.1\"},\"servers\":[{\"url\":\"/\"}],\"paths\":{\"/v2/workflows/overview\":{\"post\":{\"operationId\":\"getWorkflowsOverview\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"requestBody\":{\"required\":false,\"description\":\"Paginationandfilters\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverviews\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/overview\":{\"get\":{\"operationId\":\"getWorkflowOverviewById\",\"description\":\"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"Uniqueidentifieroftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowoverview\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/source\":{\"get\":{\"operationId\":\"getWorkflowSourceById\",\"description\":\"Gettheworkflow'sdefinition\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowsourcebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/inputSchema\":{\"get\":{\"operationId\":\"getWorkflowInputSchemaById\",\"description\":\"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"query\",\"description\":\"IDofinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/InputSchemaResponseDTO\"}}}},\"500\":{\"description\":\"Errorfetchingworkflowinputschemabyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/pingWorkflowService\":{\"get\":{\"operationId\":\"pingWorkflowServiceById\",\"description\":\"ReturnstrueiftheworkflowserviceisupforthegivenworkflowID.\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtofetch\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"boolean\"}}}},\"500\":{\"description\":\"Errorpingingworkflowservicebyid\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances\":{\"post\":{\"operationId\":\"getInstances\",\"summary\":\"Getinstances\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)\",\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/instances\":{\"post\":{\"operationId\":\"getWorkflowInstances\",\"summary\":\"Getinstancesforaspecificworkflow\",\"description\":\"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflow\",\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":false,\"description\":\"Parametersforretrievingworkflowinstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}}},\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceListResultDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstances\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}\":{\"get\":{\"summary\":\"GetWorkflowInstancebyID\",\"description\":\"Getaworkflowexecution/run(instance)\",\"operationId\":\"getInstanceById\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"IDoftheworkflowinstance\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfulresponse\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}}}},\"500\":{\"description\":\"Errorfetchinginstance\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/statuses\":{\"get\":{\"operationId\":\"getWorkflowStatuses\",\"summary\":\"Getworkflowstatuslist\",\"description\":\"Retrievearraywiththestatusofallinstances\",\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowRunStatusDTO\"}}}}},\"500\":{\"description\":\"Errorfetchingworkflowstatuses\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/execute\":{\"post\":{\"summary\":\"Executeaworkflow\",\"description\":\"Executeaworkflow\",\"operationId\":\"executeWorkflow\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflowtoexecute\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"requestBody\":{\"required\":true,\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowRequestDTO\"}}}},\"responses\":{\"200\":{\"description\":\"Successfulexecution\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ExecuteWorkflowResponseDTO\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/{workflowId}/{instanceId}/retrigger\":{\"post\":{\"summary\":\"Retriggeraninstance\",\"description\":\"Retriggeraninstance\",\"operationId\":\"retriggerInstance\",\"parameters\":[{\"name\":\"workflowId\",\"in\":\"path\",\"description\":\"IDoftheworkflow\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"instanceId\",\"in\":\"path\",\"description\":\"IDoftheinstancetoretrigger\",\"required\":true,\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Success\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\"}}}},\"500\":{\"description\":\"InternalServerError\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}},\"/v2/workflows/instances/{instanceId}/abort\":{\"delete\":{\"summary\":\"Abortaworkflowinstance\",\"operationId\":\"abortWorkflow\",\"description\":\"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.\",\"parameters\":[{\"name\":\"instanceId\",\"in\":\"path\",\"required\":true,\"description\":\"Theidentifieroftheworkflowinstancetoabort.\",\"schema\":{\"type\":\"string\"}}],\"responses\":{\"200\":{\"description\":\"Successfuloperation\",\"content\":{\"text/plain\":{\"schema\":{\"type\":\"string\"}}}},\"500\":{\"description\":\"Errorabortingworkflow\",\"content\":{\"application/json\":{\"schema\":{\"$ref\":\"#/components/schemas/ErrorResponse\"}}}}}}}},\"components\":{\"schemas\":{\"ErrorResponse\":{\"description\":\"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.\",\"type\":\"string\",\"default\":\"internalservererror\"},\"additionalInfo\":{\"description\":\"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.\",\"type\":\"string\"}},\"required\":[\"message\"]},\"GetOverviewsRequestParams\":{\"type\":\"object\",\"properties\":{\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"},\"filters\":{\"$ref\":\"#/components/schemas/SearchRequest\"}}},\"WorkflowOverviewListResultDTO\":{\"type\":\"object\",\"properties\":{\"overviews\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowOverviewDTO\"},\"minItems\":0},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"WorkflowOverviewDTO\":{\"type\":\"object\",\"properties\":{\"workflowId\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"lastRunId\":{\"type\":\"string\"},\"lastTriggeredMs\":{\"type\":\"number\",\"minimum\":0},\"lastRunStatus\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"description\":{\"type\":\"string\"},\"isAvailable\":{\"type\":\"boolean\"}},\"required\":[\"workflowId\",\"format\"]},\"PaginationInfoDTO\":{\"type\":\"object\",\"properties\":{\"pageSize\":{\"type\":\"number\"},\"offset\":{\"type\":\"number\"},\"orderDirection\":{\"enum\":[\"ASC\",\"DESC\"]},\"orderBy\":{\"type\":\"string\"}},\"additionalProperties\":false},\"WorkflowFormatDTO\":{\"type\":\"string\",\"description\":\"Formatoftheworkflowdefinition\",\"enum\":[\"yaml\",\"json\"]},\"WorkflowListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/WorkflowDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}},\"required\":[\"items\",\"paginationInfo\"]},\"WorkflowDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"Workflowuniqueidentifier\",\"minLength\":1},\"name\":{\"type\":\"string\",\"description\":\"Workflowname\",\"minLength\":1},\"format\":{\"$ref\":\"#/components/schemas/WorkflowFormatDTO\"},\"description\":{\"type\":\"string\",\"description\":\"Descriptionoftheworkflow\"},\"annotations\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}}},\"required\":[\"id\",\"format\"]},\"ProcessInstanceListResultDTO\":{\"type\":\"object\",\"properties\":{\"items\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/ProcessInstanceDTO\"}},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"ProcessInstanceDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"},\"processId\":{\"type\":\"string\"},\"processName\":{\"type\":\"string\"},\"state\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"endpoint\":{\"type\":\"string\"},\"serviceUrl\":{\"type\":\"string\"},\"start\":{\"type\":\"string\"},\"end\":{\"type\":\"string\"},\"duration\":{\"type\":\"string\"},\"description\":{\"type\":\"string\"},\"workflowdata\":{\"$ref\":\"#/components/schemas/WorkflowDataDTO\"},\"initiatorEntity\":{\"type\":\"string\"},\"executionSummary\":{\"type\":\"array\",\"items\":{\"type\":\"string\"}},\"nodes\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"}},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}},\"required\":[\"id\",\"processId\",\"nodes\"]},\"WorkflowDataDTO\":{\"type\":\"object\",\"properties\":{\"result\":{\"$ref\":\"#/components/schemas/WorkflowResultDTO\"}},\"additionalProperties\":true},\"WorkflowResultDTO\":{\"description\":\"Resultofaworkflowexecution\",\"type\":\"object\",\"properties\":{\"message\":{\"description\":\"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.\",\"type\":\"string\"},\"nextWorkflows\":{\"description\":\"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"id\":{\"description\":\"Workflowidentifier\",\"type\":\"string\"},\"name\":{\"description\":\"Humanreadabletitledescribingtheworkflow.\",\"type\":\"string\"}},\"required\":[\"id\",\"name\"]}},\"outputs\":{\"description\":\"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.\",\"type\":\"array\",\"items\":{\"type\":\"object\",\"properties\":{\"key\":{\"description\":\"Uniqueidentifieroftheoption.Preferablyhuman-readable.\",\"type\":\"string\"},\"value\":{\"description\":\"Freeformvalueoftheoption.\",\"anyOf\":[{\"type\":\"string\"},{\"type\":\"number\"}]},\"format\":{\"description\":\"Moredetailedtypeofthe'value'property.Defaultsto'text'.\",\"enum\":[\"text\",\"number\",\"link\"]}},\"required\":[\"key\",\"value\"]}}}},\"ProcessInstanceStatusDTO\":{\"type\":\"string\",\"description\":\"Statusoftheworkflowrun\",\"enum\":[\"ACTIVE\",\"ERROR\",\"COMPLETED\",\"ABORTED\",\"SUSPENDED\",\"PENDING\"]},\"WorkflowRunStatusDTO\":{\"type\":\"object\",\"properties\":{\"key\":{\"type\":\"string\"},\"value\":{\"type\":\"string\"}}},\"ExecuteWorkflowRequestDTO\":{\"type\":\"object\",\"properties\":{\"inputData\":{\"type\":\"object\",\"additionalProperties\":true},\"authTokens\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/AuthToken\"},\"minItems\":0,\"additionalProperties\":true}}},\"AuthToken\":{\"type\":\"object\",\"properties\":{\"provider\":{\"description\":\"Theauthtokenprovidername\",\"type\":\"string\"},\"token\":{\"description\":\"Theauthtokenitselfretrievedfromtheabovespecifiedprovidername\",\"type\":\"string\"}},\"required\":[\"provider\",\"token\"],\"additionalProperties\":false},\"ExecuteWorkflowResponseDTO\":{\"type\":\"object\",\"properties\":{\"id\":{\"type\":\"string\"}},\"required\":[\"id\"]},\"WorkflowProgressDTO\":{\"allOf\":[{\"$ref\":\"#/components/schemas/NodeInstanceDTO\"},{\"type\":\"object\",\"properties\":{\"status\":{\"$ref\":\"#/components/schemas/ProcessInstanceStatusDTO\"},\"error\":{\"$ref\":\"#/components/schemas/ProcessInstanceErrorDTO\"}}}]},\"NodeInstanceDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"NodeInstance\",\"description\":\"Typename\"},\"id\":{\"type\":\"string\",\"description\":\"NodeinstanceID\"},\"name\":{\"type\":\"string\",\"description\":\"Nodename\"},\"type\":{\"type\":\"string\",\"description\":\"Nodetype\"},\"enter\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasentered\"},\"exit\":{\"type\":\"string\",\"description\":\"Datewhenthenodewasexited(optional)\"},\"definitionId\":{\"type\":\"string\",\"description\":\"DefinitionID\"},\"nodeId\":{\"type\":\"string\",\"description\":\"NodeID\"}},\"required\":[\"id\"]},\"ProcessInstanceErrorDTO\":{\"type\":\"object\",\"properties\":{\"__typename\":{\"type\":\"string\",\"default\":\"ProcessInstanceError\",\"description\":\"Typename\"},\"nodeDefinitionId\":{\"type\":\"string\",\"description\":\"NodedefinitionID\"},\"message\":{\"type\":\"string\",\"description\":\"Errormessage(optional)\"}},\"required\":[\"nodeDefinitionId\"]},\"SearchRequest\":{\"type\":\"object\",\"properties\":{\"filters\":{\"$ref\":\"#/components/schemas/Filter\"},\"paginationInfo\":{\"$ref\":\"#/components/schemas/PaginationInfoDTO\"}}},\"Filter\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/LogicalFilter\"},{\"$ref\":\"#/components/schemas/FieldFilter\"},{\"$ref\":\"#/components/schemas/NestedFilter\"}]},\"NestedFilter\":{\"type\":\"object\",\"required\":[\"field\",\"nested\"],\"properties\":{\"field\":{\"type\":\"string\"},\"nested\":{\"oneOf\":[{\"$ref\":\"#/components/schemas/FieldFilter\"},{\"$ref\":\"#/components/schemas/NestedFilter\"}]}}},\"LogicalFilter\":{\"type\":\"object\",\"required\":[\"operator\",\"filters\"],\"properties\":{\"operator\":{\"type\":\"string\",\"enum\":[\"AND\",\"OR\",\"NOT\"]},\"filters\":{\"type\":\"array\",\"items\":{\"$ref\":\"#/components/schemas/Filter\"}}}},\"FieldFilter\":{\"type\":\"object\",\"required\":[\"field\",\"operator\",\"value\"],\"properties\":{\"field\":{\"type\":\"string\"},\"operator\":{\"type\":\"string\",\"enum\":[\"EQ\",\"GT\",\"GTE\",\"LT\",\"LTE\",\"IN\",\"IS_NULL\",\"LIKE\",\"BETWEEN\"]},\"value\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"},{\"type\":\"array\",\"items\":{\"oneOf\":[{\"type\":\"string\"},{\"type\":\"number\"},{\"type\":\"boolean\"}]}}]}}},\"InputSchemaResponseDTO\":{\"type\":\"object\",\"properties\":{\"inputSchema\":{\"type\":\"object\"},\"data\":{\"type\":\"object\"}}}}}}`;\nexport const openApiDocument = JSON.parse(OPENAPI);\n"],"names":[],"mappings":";;AAGA,MAAM,OAAA,GAAU,CAAA,yteAAA,CAAA;AACT,MAAM,eAAA,GAAkB,IAAA,CAAK,KAAA,CAAM,OAAO;;;;"}
@@ -1,4 +1,4 @@
1
- const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/pingWorkflowService":{"get":{"operationId":"pingWorkflowServiceById","description":"ReturnstrueiftheworkflowserviceisupforthegivenworkflowID.","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"boolean"}}}},"500":{"description":"Errorpingingworkflowservicebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssessedProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowCategoryDTO":{"type":"string","description":"Categoryoftheworkflow","enum":["assessment","infrastructure"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","category","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"AssessedProcessInstanceDTO":{"type":"object","properties":{"instance":{"$ref":"#/components/schemas/ProcessInstanceDTO"},"assessedBy":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"required":["instance"]},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"category":{"$ref":"#/components/schemas/WorkflowCategoryDTO"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"initiatorEntity":{"type":"string"},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true},"authTokens":{"type":"array","items":{"$ref":"#/components/schemas/AuthToken"},"minItems":0,"additionalProperties":true}}},"AuthToken":{"type":"object","properties":{"provider":{"description":"Theauthtokenprovidername","type":"string","enum":["github","gitlab","microsoft"]},"token":{"description":"Theauthtokenitselfretrievedfromtheabovespecifiedprovidername","type":"string"}},"required":["provider","token"],"additionalProperties":false},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]},"NestedFilter":{"type":"object","required":["field","nested"],"properties":{"field":{"type":"string"},"nested":{"oneOf":[{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]}}},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
1
+ const OPENAPI = `{"openapi":"3.1.0","info":{"title":"Orchestratorplugin","description":"APItointeractwithorchestratorplugin","license":{"name":"Apache2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"},"version":"0.0.1"},"servers":[{"url":"/"}],"paths":{"/v2/workflows/overview":{"post":{"operationId":"getWorkflowsOverview","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","requestBody":{"required":false,"description":"Paginationandfilters","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewListResultDTO"}}}},"500":{"description":"Errorfetchingworkflowoverviews","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/overview":{"get":{"operationId":"getWorkflowOverviewById","description":"Returnsthekeyfieldsoftheworkflowincludingdataonthelastruninstance","parameters":[{"name":"workflowId","in":"path","required":true,"description":"Uniqueidentifieroftheworkflow","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkflowOverviewDTO"}}}},"500":{"description":"Errorfetchingworkflowoverview","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/source":{"get":{"operationId":"getWorkflowSourceById","description":"Gettheworkflow'sdefinition","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorfetchingworkflowsourcebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/inputSchema":{"get":{"operationId":"getWorkflowInputSchemaById","description":"Gettheworkflowinputschema.Itdefinestheinputfieldsoftheworkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"query","description":"IDofinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InputSchemaResponseDTO"}}}},"500":{"description":"Errorfetchingworkflowinputschemabyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/pingWorkflowService":{"get":{"operationId":"pingWorkflowServiceById","description":"ReturnstrueiftheworkflowserviceisupforthegivenworkflowID.","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtofetch","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"boolean"}}}},"500":{"description":"Errorpingingworkflowservicebyid","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances":{"post":{"operationId":"getInstances","summary":"Getinstances","description":"Retrieveanarrayofworkflowexecutions(instances)","requestBody":{"required":false,"description":"Parametersforretrievinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/instances":{"post":{"operationId":"getWorkflowInstances","summary":"Getinstancesforaspecificworkflow","description":"Retrieveanarrayofworkflowexecutions(instances)forthegivenworkflow","parameters":[{"name":"workflowId","in":"path","required":true,"description":"IDoftheworkflow","schema":{"type":"string"}}],"requestBody":{"required":false,"description":"Parametersforretrievingworkflowinstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceListResultDTO"}}}},"500":{"description":"Errorfetchinginstances","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}":{"get":{"summary":"GetWorkflowInstancebyID","description":"Getaworkflowexecution/run(instance)","operationId":"getInstanceById","parameters":[{"name":"instanceId","in":"path","required":true,"description":"IDoftheworkflowinstance","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfulresponse","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProcessInstanceDTO"}}}},"500":{"description":"Errorfetchinginstance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/statuses":{"get":{"operationId":"getWorkflowStatuses","summary":"Getworkflowstatuslist","description":"Retrievearraywiththestatusofallinstances","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowRunStatusDTO"}}}}},"500":{"description":"Errorfetchingworkflowstatuses","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/execute":{"post":{"summary":"Executeaworkflow","description":"Executeaworkflow","operationId":"executeWorkflow","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflowtoexecute","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowRequestDTO"}}}},"responses":{"200":{"description":"Successfulexecution","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExecuteWorkflowResponseDTO"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/{workflowId}/{instanceId}/retrigger":{"post":{"summary":"Retriggeraninstance","description":"Retriggeraninstance","operationId":"retriggerInstance","parameters":[{"name":"workflowId","in":"path","description":"IDoftheworkflow","required":true,"schema":{"type":"string"}},{"name":"instanceId","in":"path","description":"IDoftheinstancetoretrigger","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"500":{"description":"InternalServerError","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/v2/workflows/instances/{instanceId}/abort":{"delete":{"summary":"Abortaworkflowinstance","operationId":"abortWorkflow","description":"AbortsaworkflowinstanceidentifiedbytheprovidedinstanceId.","parameters":[{"name":"instanceId","in":"path","required":true,"description":"Theidentifieroftheworkflowinstancetoabort.","schema":{"type":"string"}}],"responses":{"200":{"description":"Successfuloperation","content":{"text/plain":{"schema":{"type":"string"}}}},"500":{"description":"Errorabortingworkflow","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ErrorResponse":{"description":"TheErrorResponseobjectrepresentsacommonstructureforhandlingerrorsinAPIresponses.Itincludesessentialinformationabouttheerror,suchastheerrormessageandadditionaloptionaldetails.","type":"object","properties":{"message":{"description":"Astringprovidingaconciseandhuman-readabledescriptionoftheencounterederror.ThisfieldisrequiredintheErrorResponseobject.","type":"string","default":"internalservererror"},"additionalInfo":{"description":"Anoptionalfieldthatcancontainadditionalinformationorcontextabouttheerror.Itprovidesflexibilityforincludingextradetailsbasedonspecificerrorscenarios.","type":"string"}},"required":["message"]},"GetOverviewsRequestParams":{"type":"object","properties":{"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"},"filters":{"$ref":"#/components/schemas/SearchRequest"}}},"WorkflowOverviewListResultDTO":{"type":"object","properties":{"overviews":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowOverviewDTO"},"minItems":0},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"WorkflowOverviewDTO":{"type":"object","properties":{"workflowId":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"lastRunId":{"type":"string"},"lastTriggeredMs":{"type":"number","minimum":0},"lastRunStatus":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"description":{"type":"string"},"isAvailable":{"type":"boolean"}},"required":["workflowId","format"]},"PaginationInfoDTO":{"type":"object","properties":{"pageSize":{"type":"number"},"offset":{"type":"number"},"orderDirection":{"enum":["ASC","DESC"]},"orderBy":{"type":"string"}},"additionalProperties":false},"WorkflowFormatDTO":{"type":"string","description":"Formatoftheworkflowdefinition","enum":["yaml","json"]},"WorkflowListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/WorkflowDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}},"required":["items","paginationInfo"]},"WorkflowDTO":{"type":"object","properties":{"id":{"type":"string","description":"Workflowuniqueidentifier","minLength":1},"name":{"type":"string","description":"Workflowname","minLength":1},"format":{"$ref":"#/components/schemas/WorkflowFormatDTO"},"description":{"type":"string","description":"Descriptionoftheworkflow"},"annotations":{"type":"array","items":{"type":"string"}}},"required":["id","format"]},"ProcessInstanceListResultDTO":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/ProcessInstanceDTO"}},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"ProcessInstanceDTO":{"type":"object","properties":{"id":{"type":"string"},"processId":{"type":"string"},"processName":{"type":"string"},"state":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"endpoint":{"type":"string"},"serviceUrl":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"},"duration":{"type":"string"},"description":{"type":"string"},"workflowdata":{"$ref":"#/components/schemas/WorkflowDataDTO"},"initiatorEntity":{"type":"string"},"executionSummary":{"type":"array","items":{"type":"string"}},"nodes":{"type":"array","items":{"$ref":"#/components/schemas/NodeInstanceDTO"}},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}},"required":["id","processId","nodes"]},"WorkflowDataDTO":{"type":"object","properties":{"result":{"$ref":"#/components/schemas/WorkflowResultDTO"}},"additionalProperties":true},"WorkflowResultDTO":{"description":"Resultofaworkflowexecution","type":"object","properties":{"message":{"description":"High-levelsummaryofthecurrentstatus,free-formtext,humanreadable.","type":"string"},"nextWorkflows":{"description":"Listofworkflowssuggestedtorunnext.Itemsatlowerindexesareofhigherpriority.","type":"array","items":{"type":"object","properties":{"id":{"description":"Workflowidentifier","type":"string"},"name":{"description":"Humanreadabletitledescribingtheworkflow.","type":"string"}},"required":["id","name"]}},"outputs":{"description":"Additionalstructuredoutputofworkflowprocessing.Thiscancontainidentifiersofcreatedresources,linkstoresources,logsorotheroutput.","type":"array","items":{"type":"object","properties":{"key":{"description":"Uniqueidentifieroftheoption.Preferablyhuman-readable.","type":"string"},"value":{"description":"Freeformvalueoftheoption.","anyOf":[{"type":"string"},{"type":"number"}]},"format":{"description":"Moredetailedtypeofthe'value'property.Defaultsto'text'.","enum":["text","number","link"]}},"required":["key","value"]}}}},"ProcessInstanceStatusDTO":{"type":"string","description":"Statusoftheworkflowrun","enum":["ACTIVE","ERROR","COMPLETED","ABORTED","SUSPENDED","PENDING"]},"WorkflowRunStatusDTO":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}},"ExecuteWorkflowRequestDTO":{"type":"object","properties":{"inputData":{"type":"object","additionalProperties":true},"authTokens":{"type":"array","items":{"$ref":"#/components/schemas/AuthToken"},"minItems":0,"additionalProperties":true}}},"AuthToken":{"type":"object","properties":{"provider":{"description":"Theauthtokenprovidername","type":"string"},"token":{"description":"Theauthtokenitselfretrievedfromtheabovespecifiedprovidername","type":"string"}},"required":["provider","token"],"additionalProperties":false},"ExecuteWorkflowResponseDTO":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]},"WorkflowProgressDTO":{"allOf":[{"$ref":"#/components/schemas/NodeInstanceDTO"},{"type":"object","properties":{"status":{"$ref":"#/components/schemas/ProcessInstanceStatusDTO"},"error":{"$ref":"#/components/schemas/ProcessInstanceErrorDTO"}}}]},"NodeInstanceDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"NodeInstance","description":"Typename"},"id":{"type":"string","description":"NodeinstanceID"},"name":{"type":"string","description":"Nodename"},"type":{"type":"string","description":"Nodetype"},"enter":{"type":"string","description":"Datewhenthenodewasentered"},"exit":{"type":"string","description":"Datewhenthenodewasexited(optional)"},"definitionId":{"type":"string","description":"DefinitionID"},"nodeId":{"type":"string","description":"NodeID"}},"required":["id"]},"ProcessInstanceErrorDTO":{"type":"object","properties":{"__typename":{"type":"string","default":"ProcessInstanceError","description":"Typename"},"nodeDefinitionId":{"type":"string","description":"NodedefinitionID"},"message":{"type":"string","description":"Errormessage(optional)"}},"required":["nodeDefinitionId"]},"SearchRequest":{"type":"object","properties":{"filters":{"$ref":"#/components/schemas/Filter"},"paginationInfo":{"$ref":"#/components/schemas/PaginationInfoDTO"}}},"Filter":{"oneOf":[{"$ref":"#/components/schemas/LogicalFilter"},{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]},"NestedFilter":{"type":"object","required":["field","nested"],"properties":{"field":{"type":"string"},"nested":{"oneOf":[{"$ref":"#/components/schemas/FieldFilter"},{"$ref":"#/components/schemas/NestedFilter"}]}}},"LogicalFilter":{"type":"object","required":["operator","filters"],"properties":{"operator":{"type":"string","enum":["AND","OR","NOT"]},"filters":{"type":"array","items":{"$ref":"#/components/schemas/Filter"}}}},"FieldFilter":{"type":"object","required":["field","operator","value"],"properties":{"field":{"type":"string"},"operator":{"type":"string","enum":["EQ","GT","GTE","LT","LTE","IN","IS_NULL","LIKE","BETWEEN"]},"value":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"oneOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]}}]}}},"InputSchemaResponseDTO":{"type":"object","properties":{"inputSchema":{"type":"object"},"data":{"type":"object"}}}}}}`;
2
2
  const openApiDocument = JSON.parse(OPENAPI);
3
3
 
4
4
  export { openApiDocument };