@transai/connector-runner-otto-fleet-manager-v2 0.20.0 → 0.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,57 @@
1
+ ## 0.25.1 (2026-10-02)
2
+
3
+ ### 🧱 Updated Dependencies
4
+
5
+ - Updated @transai/connector-runtime-sdk to 0.22.1
6
+
7
+ ## 0.25.0 (2026-09-14)
8
+
9
+ ### 🧱 Updated Dependencies
10
+
11
+ - Updated @transai/connector-runtime-sdk to 0.22.0
12
+
13
+ ## 0.24.0 (2026-08-13)
14
+
15
+ ### 🧱 Updated Dependencies
16
+
17
+ - Updated @transai/connector-runtime-sdk to 0.21.0
18
+
19
+ ## 0.23.1 (2026-08-12)
20
+
21
+ ### 🧱 Updated Dependencies
22
+
23
+ - Updated @transai/connector-runtime-sdk to 0.20.1
24
+
25
+ ## 0.23.0 (2026-08-05)
26
+
27
+ ### 🧱 Updated Dependencies
28
+
29
+ - Updated @transai/connector-runtime-sdk to 0.20.0
30
+
31
+ ## 0.22.1 (2026-07-20)
32
+
33
+ ### 🧱 Updated Dependencies
34
+
35
+ - Updated @transai/connector-runtime-sdk to 0.19.1
36
+
37
+ ## 0.22.0 (2026-06-22)
38
+
39
+ ### 🧱 Updated Dependencies
40
+
41
+ - Updated @transai/connector-runtime-sdk to 0.19.0
42
+
43
+ ## 0.21.0 (2026-06-01)
44
+
45
+ ### 🧱 Updated Dependencies
46
+
47
+ - Updated @transai/connector-runtime-sdk to 0.18.0
48
+
49
+ ## 0.20.0 (2026-05-12)
50
+
51
+ ### 🧱 Updated Dependencies
52
+
53
+ - Updated @transai/connector-runtime-sdk to 0.17.0
54
+
1
55
  ## 0.19.0 (2026-05-06)
2
56
 
3
57
  ### 🧱 Updated Dependencies
@@ -0,0 +1,36 @@
1
+ ---
2
+ logo: logo.png
3
+ ---
4
+
5
+ # OTTO Fleet Manager v2
6
+
7
+ The OTTO Fleet Manager connector synchronizes fleet missions and creates
8
+ missions through the OTTO Fleet Manager v2 API.
9
+
10
+ ## Configuration
11
+
12
+ ```json
13
+ {
14
+ "hostname": "fleet.example.com"
15
+ }
16
+ ```
17
+
18
+ `hostname` is required and defines the API base URL
19
+ `https://<hostname>/api/fleet/v2`. This runner does not define connector-level
20
+ authentication fields.
21
+
22
+ ## Mission synchronization
23
+
24
+ The connector retrieves missions every 60 seconds using paginated API requests.
25
+ Mission documents are emitted to the `missions` collection with `id` as the key
26
+ field. Output includes mission status, due state, metadata, and timestamps.
27
+
28
+ ## Create mission action
29
+
30
+ Use `create-mission` with an OTTO mission definition and optional task array.
31
+ The connector creates an operation and returns its resource ID.
32
+
33
+ ## Failure behavior
34
+
35
+ Unsupported action types return a bad-request response. HTTP/API failures are
36
+ propagated by the runtime and should be investigated through connector logs.
package/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";var y=Object.create;var m=Object.defineProperty;var P=Object.getOwnPropertyDescriptor;var b=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var A=(r,t)=>{for(var e in t)m(r,e,{get:t[e],enumerable:!0})},I=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of b(t))!h.call(r,o)&&o!==e&&m(r,o,{get:()=>t[o],enumerable:!(n=P(t,o))||n.enumerable});return r};var v=(r,t,e)=>(e=r!=null?y(x(r)):{},I(t||!r||!r.__esModule?m(e,"default",{value:r,enumerable:!0}):e,r)),k=r=>I(m({},"__esModule",{value:!0}),r);var O={};A(O,{ConnectorRunnerOttoFleetManagerV2:()=>g});module.exports=k(O);var i=v(require("node:process")),f=class{#e="connector-runtime";#t;constructor(t,e){this.#t=e,i.default.on?i.default.on("message",n=>{n.cmd===this.#e&&e.logger.verbose(`${i.default.pid} Received message from parent process:`,n)}):e.logger.warn("IPC channel is not available. process.on is undefined."),i.default.send||e.logger.warn("IPC channel is not available. process.send is undefined."),t.actions?.forEach(n=>{if(n.config.templates===void 0)return;let o={};Object.entries(n.config.templates).forEach(([a,p])=>{try{o[a]=e.templating.compile(p)}catch(u){e.logger.error(`Error compiling template ${a} for action ${n.identifier}`,u)}}),n.config.parsedTemplates=o})}init=()=>Promise.resolve();start=()=>Promise.resolve();stop=()=>Promise.resolve();set callbackFunction(t){this.connectorSDK.receiver.registerCallback(this.#r(t))}get connectorSDK(){return this.#t}#r(t){return async e=>{let n=await this.#t.receiver.getActionConfig(e);return n?t(e,n):this.#t.receiver.responses.badRequest("Action not found")(e)}}};var l=class{#e;constructor(t){this.#e=t}jsonrpc="2.0";async execute(t){let e=Math.floor(1e7+Math.random()*9e7);return(await this.#e.post("/operations",{id:e,jsonrpc:this.jsonrpc,method:this.method,params:t})).data.result.id}};var s=class extends l{static TYPE="create-mission";method="createMission"};var d=class{#e;#t;constructor(t,e){this.#e=t,this.#t={[s.TYPE]:new s(e)}}get callbackFunctionChain(){return this.#r(this.#e.receiver.emitEventType(this.#e.receiver.responses.created()))}#r(t){return async(e,n)=>{let o=n.config.parsedTemplates,a=o.action({inputs:e.payload}).trim(),p=this.#t[a];if(!p)return this.#e.receiver.responses.badRequest(`Action ${a} does not exist.`)(e);let u=o.params({inputs:e.payload}).trim(),C=await p.execute(JSON.parse(u));return this.#e.logger.info(`Action ${a} executed successfully with id: ${C}`),t(e)}}};var c=class r{static NAME="otto-fleet-manager-v2-extractor-missions";static INTERVAL=60;#e;#t;constructor(t,e){this.#e=t,this.#t=e}get name(){return r.NAME}async onRun(){let t=new URLSearchParams({limit:"100",offset:"0"});for(;;){let e=await this.#t.get(`/missions?${t.toString()}`);if(await this.#e.sender.documents(e.data.results,{collection:"missions",keyField:"id"}),!e.data.next)break;let n=new URL(e.data.next);if(!n.searchParams.get("offset"))break;t.set("offset",n.searchParams.get("offset")||"0")}}};var g=class extends f{#e;constructor(t,e){super(t,e);let{config:n}=this.connectorSDK;this.#e=this.connectorSDK.httpClient({baseUrl:`https://${n.hostname}/api/fleet/v2`});let o=new d(this.connectorSDK,this.#e);this.callbackFunction=o.callbackFunctionChain}init=async()=>{await Promise.all([this.connectorSDK.processing.registerInterval(c.INTERVAL,new c(this.connectorSDK,this.#e))])}};0&&(module.exports={ConnectorRunnerOttoFleetManagerV2});
1
+ "use strict";var y=Object.create;var m=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var x=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty;var A=(r,t)=>{for(var e in t)m(r,e,{get:t[e],enumerable:!0})},I=(r,t,e,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of P(t))!h.call(r,o)&&o!==e&&m(r,o,{get:()=>t[o],enumerable:!(n=b(t,o))||n.enumerable});return r};var v=(r,t,e)=>(e=r!=null?y(x(r)):{},I(t||!r||!r.__esModule?m(e,"default",{value:r,enumerable:!0}):e,r)),k=r=>I(m({},"__esModule",{value:!0}),r);var O={};A(O,{ConnectorRunnerOttoFleetManagerV2:()=>g});module.exports=k(O);var i=v(require("node:process")),f=class{#e="connector-runtime";#t;constructor(t,e){this.#t=e,i.default.on?i.default.on("message",n=>{n.cmd===this.#e&&e.logger.verbose(`${i.default.pid} Received message from parent process:`,n)}):e.logger.warn("IPC channel is not available. process.on is undefined."),i.default.send||e.logger.warn("IPC channel is not available. process.send is undefined."),t.actions?.forEach(n=>{if(n.config.templates===void 0)return;let o={};Object.entries(n.config.templates).forEach(([a,p])=>{try{o[a]=e.templating.compile(p)}catch(d){e.logger.error(`Error compiling template ${a} for action ${n.identifier}`,d)}}),n.config.parsedTemplates=o})}init=()=>Promise.resolve();start=()=>Promise.resolve();stop=()=>Promise.resolve();set callbackFunction(t){this.connectorSDK.receiver.registerCallback(this.#r(t))}get connectorSDK(){return this.#t}#r(t){return async e=>{let n=await this.#t.receiver.getActionConfig(e);return n?t(e,n):this.#t.receiver.responses.badRequest("Action not found")(e)}}};var l=class{#e;constructor(t){this.#e=t}jsonrpc="2.0";async execute(t){let e=Math.floor(1e7+Math.random()*9e7);return(await this.#e.post("/operations",{id:e,jsonrpc:this.jsonrpc,method:this.method,params:t})).data.result.id}};var s=class extends l{static TYPE="create-mission";method="createMission"};var u=class{#e;#t;constructor(t,e){this.#e=t,this.#t={[s.TYPE]:new s(e)}}get callbackFunctionChain(){return this.#r(this.#e.receiver.emitEventType(this.#e.receiver.responses.created()))}#r(t){return async(e,n)=>{let o=n.config.parsedTemplates,a=o.action({inputs:e.payload}).trim(),p=this.#t[a];if(!p)return this.#e.receiver.responses.badRequest(`Action ${a} does not exist.`)(e);let d=o.params({inputs:e.payload}).trim(),C=await p.execute(JSON.parse(d));return this.#e.logger.info(`Action ${a} executed successfully with id: ${C}`),t(e)}}};var c=class r{static NAME="otto-fleet-manager-v2-extractor-missions";static INTERVAL=60;#e;#t;constructor(t,e){this.#e=t,this.#t=e}get name(){return r.NAME}async onRun(){let t=new URLSearchParams({limit:"100",offset:"0"});for(;;){let e=await this.#t.get(`/missions?${t.toString()}`);if(await this.#e.sender.documents(e.data.results,{collection:"missions",keyField:"id"}),!e.data.next)break;let n=new URL(e.data.next);if(!n.searchParams.get("offset"))break;t.set("offset",n.searchParams.get("offset")||"0")}}};var g=class extends f{#e;constructor(t,e){super(t,e);let{config:n}=this.connectorSDK;this.#e=this.connectorSDK.httpClient({baseUrl:`https://${n.hostname}/api/fleet/v2`});let o=new u(this.connectorSDK,this.#e);this.callbackFunction=o.callbackFunctionChain}init=async()=>{await Promise.all([this.connectorSDK.processing.registerInterval(c.INTERVAL,new c(this.connectorSDK,this.#e))])}};0&&(module.exports={ConnectorRunnerOttoFleetManagerV2});
2
2
  //# sourceMappingURL=index.cjs.map
package/index.cjs.map CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../../libs/connector-runner-otto-fleet-manager-v2/src/index.ts", "../../../libs/connector-runtime-sdk/src/lib/connector-runtime.ts", "../../../libs/connector-runner-otto-fleet-manager-v2/src/lib/actions/base-action.ts", "../../../libs/connector-runner-otto-fleet-manager-v2/src/lib/actions/create-mission.action.ts", "../../../libs/connector-runner-otto-fleet-manager-v2/src/lib/actions/actions-handler.ts", "../../../libs/connector-runner-otto-fleet-manager-v2/src/lib/extractors/missions.extractor.ts", "../../../libs/connector-runner-otto-fleet-manager-v2/src/lib/connector-runner-otto-fleet-manager-v2.ts"],
3
+ "sources": ["../../../integrations/connector-runner-otto-fleet-manager-v2/src/index.ts", "../../../libs/connector-runtime-sdk/src/lib/connector-runtime.ts", "../../../integrations/connector-runner-otto-fleet-manager-v2/src/lib/actions/base-action.ts", "../../../integrations/connector-runner-otto-fleet-manager-v2/src/lib/actions/create-mission.action.ts", "../../../integrations/connector-runner-otto-fleet-manager-v2/src/lib/actions/actions-handler.ts", "../../../integrations/connector-runner-otto-fleet-manager-v2/src/lib/extractors/missions.extractor.ts", "../../../integrations/connector-runner-otto-fleet-manager-v2/src/lib/connector-runner-otto-fleet-manager-v2.ts"],
4
4
  "sourcesContent": ["export * from './lib/connector-runner-otto-fleet-manager-v2';\n", "import process from 'node:process';\n\nimport { ConnectorRuntimeInterface } from './connector-runtime.interface';\nimport { CompileDelegate, ConnectorSDKInterface } from './sdk';\nimport {\n ActionInterface,\n BaseConnectorConfig,\n ConnectorInterface,\n KafkaCallbackResponse,\n XodJobType,\n} from './types';\n\nexport interface IpcMessage {\n cmd: string;\n message: string;\n}\n\nexport abstract class ConnectorRuntimeSDK<\n T extends BaseConnectorConfig = BaseConnectorConfig,\n> implements ConnectorRuntimeInterface {\n readonly #IPC_CHANNEL = 'connector-runtime';\n\n readonly #connectorSDK: ConnectorSDKInterface<T>;\n\n constructor(\n connector: ConnectorInterface,\n connectorSDK: ConnectorSDKInterface,\n ) {\n this.#connectorSDK = connectorSDK as ConnectorSDKInterface<T>;\n\n if (process.on) {\n process.on('message', (message: IpcMessage) => {\n if (message.cmd === this.#IPC_CHANNEL) {\n connectorSDK.logger.verbose(\n `${process.pid} Received message from parent process:`,\n message,\n );\n }\n });\n } else {\n connectorSDK.logger.warn(\n 'IPC channel is not available. process.on is undefined.',\n );\n }\n\n if (!process.send) {\n // Check if process.send is available\n connectorSDK.logger.warn(\n 'IPC channel is not available. process.send is undefined.',\n );\n }\n\n // eslint-disable-next-line no-restricted-syntax\n connector.actions?.forEach((action: ActionInterface) => {\n if (action.config['templates'] === undefined) {\n return;\n }\n\n const containers: {\n [key: string]: CompileDelegate;\n } = {};\n\n Object.entries(action.config['templates']).forEach(([key, value]) => {\n try {\n // eslint-disable-next-line security/detect-object-injection\n containers[key] = connectorSDK.templating.compile(value);\n } catch (error: unknown) {\n connectorSDK.logger.error(\n `Error compiling template ${key} for action ${action.identifier}`,\n error,\n );\n }\n });\n\n // eslint-disable-next-line no-param-reassign\n action.config['parsedTemplates'] = containers;\n });\n }\n\n public init: () => Promise<void> = () => Promise.resolve();\n\n public start: () => Promise<void> = () => Promise.resolve();\n\n public stop: () => Promise<void> = () => Promise.resolve();\n\n set callbackFunction(\n callback: (\n message: XodJobType,\n action: ActionInterface,\n ) => Promise<KafkaCallbackResponse>,\n ) {\n this.connectorSDK.receiver.registerCallback(\n this.#enrichWithActionConfig(callback),\n );\n }\n\n protected get connectorSDK(): ConnectorSDKInterface<T> {\n return this.#connectorSDK;\n }\n\n #enrichWithActionConfig(\n callbackFunction: (\n message: XodJobType,\n action: ActionInterface,\n ) => Promise<KafkaCallbackResponse>,\n ): (message: XodJobType) => Promise<KafkaCallbackResponse> {\n return async (message: XodJobType) => {\n const action = await this.#connectorSDK.receiver.getActionConfig(message);\n if (!action) {\n return this.#connectorSDK.receiver.responses.badRequest(\n 'Action not found',\n )(message);\n }\n return callbackFunction(message, action);\n };\n }\n}\n", "import { HttpClientSDKInterface } from '@transai/connector-runtime-sdk';\n\nimport { OttoFleetManagerApiAction } from '../types';\n\nexport abstract class BaseAction<\n T = Record<string, string | number | unknown>,\n R = string,\n> implements OttoFleetManagerApiAction<T, R> {\n readonly #httpClient: HttpClientSDKInterface;\n\n constructor(httpClient: HttpClientSDKInterface) {\n this.#httpClient = httpClient;\n }\n\n readonly jsonrpc: string = '2.0';\n\n abstract get method(): string;\n\n async execute(params: T): Promise<R> {\n // 8 digits random id\n const id = Math.floor(10000000 + Math.random() * 90000000);\n\n const response = await this.#httpClient.post<\n { id: number; result: { id: string } },\n {\n id: number;\n jsonrpc: string;\n method: string;\n params: T;\n }\n >('/operations', {\n id,\n jsonrpc: this.jsonrpc,\n method: this.method,\n params,\n });\n\n return response.data.result.id as R;\n }\n}\n", "import { OttoFleetManagerApiMission, OttoFleetManagerApiTask } from '../types';\n\nimport { BaseAction } from './base-action';\n\ntype CreateMissionParams = {\n mission: OttoFleetManagerApiMission;\n tasks?: Array<OttoFleetManagerApiTask>;\n};\n\nexport class CreateMissionAction extends BaseAction<CreateMissionParams> {\n static readonly TYPE = 'create-mission';\n\n readonly method: string = 'createMission';\n}\n", "import {\n CompileDelegate,\n ConnectorSDKInterface,\n HttpClientSDKInterface,\n ActionInterface,\n KafkaCallbackResponse,\n XodJobType,\n} from '@transai/connector-runtime-sdk';\n\nimport { OttoFleetManagerApiAction, OttoFleetManagerV2Config } from '../types';\n\nimport { CreateMissionAction } from './create-mission.action';\n\nexport class ActionsHandler {\n readonly #sdk: ConnectorSDKInterface<OttoFleetManagerV2Config>;\n\n readonly #actionsMap: Record<string, OttoFleetManagerApiAction>;\n\n constructor(\n sdk: ConnectorSDKInterface<OttoFleetManagerV2Config>,\n httpClient: HttpClientSDKInterface,\n ) {\n this.#sdk = sdk;\n this.#actionsMap = {\n [CreateMissionAction.TYPE]: new CreateMissionAction(httpClient),\n };\n }\n\n get callbackFunctionChain(): (\n message: XodJobType,\n action: ActionInterface,\n ) => Promise<KafkaCallbackResponse> {\n return this.#actionCallbackFunction(\n this.#sdk.receiver.emitEventType(this.#sdk.receiver.responses.created()),\n );\n }\n\n #actionCallbackFunction(\n callbackFunction: (message: XodJobType) => Promise<KafkaCallbackResponse>,\n ) {\n return async (\n message: XodJobType,\n action: ActionInterface,\n ): Promise<KafkaCallbackResponse> => {\n const handleBars = action.config['parsedTemplates'] as {\n action: CompileDelegate;\n params: CompileDelegate;\n };\n\n const parsedAction = handleBars\n .action({\n inputs: message.payload,\n })\n .trim();\n\n // eslint-disable-next-line security/detect-object-injection\n const actionInstance = this.#actionsMap[parsedAction];\n if (!actionInstance) {\n return this.#sdk.receiver.responses.badRequest(\n `Action ${parsedAction} does not exist.`,\n )(message);\n }\n\n const parsedParams = handleBars\n .params({\n inputs: message.payload,\n })\n .trim();\n\n const id = await actionInstance.execute(JSON.parse(parsedParams));\n this.#sdk.logger.info(\n `Action ${parsedAction} executed successfully with id: ${id}`,\n );\n\n return callbackFunction(message);\n };\n }\n}\n", "import {\n ConnectorSDKInterface,\n HttpClientSDKInterface,\n IntervalHandler,\n} from '@transai/connector-runtime-sdk';\n\nimport {\n OttoFleetManagerApiMission,\n OttoFleetManagerApiResponse,\n OttoFleetManagerV2Config,\n} from '../types';\n\nexport class MissionsExtractor implements IntervalHandler {\n static readonly NAME = 'otto-fleet-manager-v2-extractor-missions';\n\n static readonly INTERVAL = 60;\n\n readonly #sdk: ConnectorSDKInterface<OttoFleetManagerV2Config>;\n\n readonly #httpClient: HttpClientSDKInterface;\n\n constructor(\n sdk: ConnectorSDKInterface<OttoFleetManagerV2Config>,\n httpClient: HttpClientSDKInterface,\n ) {\n this.#sdk = sdk;\n this.#httpClient = httpClient;\n }\n\n get name(): string {\n return MissionsExtractor.NAME;\n }\n\n async onRun(): Promise<void> {\n const searchParams = new URLSearchParams({\n limit: '100',\n offset: '0',\n });\n\n while (true) {\n const missions =\n // eslint-disable-next-line no-await-in-loop\n await this.#httpClient.get<\n OttoFleetManagerApiResponse<OttoFleetManagerApiMission>\n >(`/missions?${searchParams.toString()}`);\n\n // eslint-disable-next-line no-await-in-loop\n await this.#sdk.sender.documents<OttoFleetManagerApiMission>(\n missions.data.results,\n {\n collection: 'missions',\n keyField: 'id',\n },\n );\n\n if (!missions.data.next) {\n break;\n }\n\n const url = new URL(missions.data.next);\n if (!url.searchParams.get('offset')) {\n break;\n }\n\n searchParams.set('offset', url.searchParams.get('offset') || '0');\n }\n }\n}\n", "import {\n ConnectorRuntimeSDK,\n ConnectorSDKInterface,\n HttpClientSDKInterface,\n ConnectorInterface,\n} from '@transai/connector-runtime-sdk';\n\nimport { ActionsHandler } from './actions/actions-handler';\nimport { MissionsExtractor } from './extractors/missions.extractor';\nimport { OttoFleetManagerV2Config } from './types';\n\nexport class ConnectorRunnerOttoFleetManagerV2 extends ConnectorRuntimeSDK<OttoFleetManagerV2Config> {\n readonly #httpClient: HttpClientSDKInterface;\n\n constructor(\n connector: ConnectorInterface,\n connectorSDK: ConnectorSDKInterface,\n ) {\n super(connector, connectorSDK);\n\n const { config } = this.connectorSDK;\n this.#httpClient = this.connectorSDK.httpClient({\n baseUrl: `https://${config.hostname}/api/fleet/v2`,\n });\n\n const actionsHandler = new ActionsHandler(\n this.connectorSDK,\n this.#httpClient,\n );\n\n this.callbackFunction = actionsHandler.callbackFunctionChain;\n }\n\n override init = async (): Promise<void> => {\n await Promise.all([\n this.connectorSDK.processing.registerInterval(\n MissionsExtractor.INTERVAL,\n new MissionsExtractor(this.connectorSDK, this.#httpClient),\n ),\n ]);\n };\n}\n"],
5
5
  "mappings": "0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uCAAAE,IAAA,eAAAC,EAAAH,GCAA,IAAAI,EAAoB,2BAiBEC,EAAf,KAEgC,CAC5BC,GAAe,oBAEfC,GAET,YACEC,EACAC,EACA,CACA,KAAKF,GAAgBE,EAEjB,EAAAC,QAAQ,GACV,EAAAA,QAAQ,GAAG,UAAYC,GAAwB,CACzCA,EAAQ,MAAQ,KAAKL,IACvBG,EAAa,OAAO,QAClB,GAAG,EAAAC,QAAQ,GAAG,yCACdC,CACF,CAEJ,CAAC,EAEDF,EAAa,OAAO,KAClB,wDACF,EAGG,EAAAC,QAAQ,MAEXD,EAAa,OAAO,KAClB,0DACF,EAIFD,EAAU,SAAS,QAASI,GA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K,EAAS,KAAK,QACd,CACE,WAAY,WACZ,SAAU,IACZ,CACF,EAEI,CAACA,EAAS,KAAK,KACjB,MAGF,IAAMC,EAAM,IAAI,IAAID,EAAS,KAAK,IAAI,EACtC,GAAI,CAACC,EAAI,aAAa,IAAI,QAAQ,EAChC,MAGFF,EAAa,IAAI,SAAUE,EAAI,aAAa,IAAI,QAAQ,GAAK,GAAG,CAClE,CACF,CACF,ECxDO,IAAMC,EAAN,cAAgDC,CAA8C,CAC1FC,GAET,YACEC,EACAC,EACA,CACA,MAAMD,EAAWC,CAAY,EAE7B,GAAM,CAAE,OAAAC,CAAO,EAAI,KAAK,aACxB,KAAKH,GAAc,KAAK,aAAa,WAAW,CAC9C,QAAS,WAAWG,EAAO,QAAQ,eACrC,CAAC,EAED,IAAMC,EAAiB,IAAIC,EACzB,KAAK,aACL,KAAKL,EACP,EAEA,KAAK,iBAAmBI,EAAe,qBACzC,CAES,KAAO,SAA2B,CACzC,MAAM,QAAQ,IAAI,CAChB,KAAK,aAAa,WAAW,iBAC3BE,EAAkB,SAClB,IAAIA,EAAkB,KAAK,aAAc,KAAKN,EAAW,CAC3D,CACF,CAAC,CACH,CACF",
6
6
  "names": ["index_exports", "__export", "ConnectorRunnerOttoFleetManagerV2", "__toCommonJS", "import_node_process", "ConnectorRuntimeSDK", "#IPC_CHANNEL", "#connectorSDK", "connector", "connectorSDK", "process", "message", "action", "containers", "key", "value", "error", "callback", "#enrichWithActionConfig", "callbackFunction", "BaseAction", "#httpClient", "httpClient", "params", "id", "CreateMissionAction", "BaseAction", "ActionsHandler", "#sdk", "#actionsMap", "sdk", "httpClient", "CreateMissionAction", "#actionCallbackFunction", "callbackFunction", "message", "action", "handleBars", "parsedAction", "actionInstance", "parsedParams", "id", "MissionsExtractor", "_MissionsExtractor", "#sdk", "#httpClient", "sdk", "httpClient", "searchParams", "missions", "url", "ConnectorRunnerOttoFleetManagerV2", "ConnectorRuntimeSDK", "#httpClient", "connector", "connectorSDK", "config", "actionsHandler", "ActionsHandler", "MissionsExtractor"]
@@ -2,6 +2,7 @@ export interface HttpConfig {
2
2
  baseUrl?: string;
3
3
  contentType?: string;
4
4
  timeout?: number;
5
+ insecure?: boolean;
5
6
  }
6
7
  export type HttpRequestOptions<D = string | object> = {
7
8
  headers?: Record<string, string>;
@@ -28,6 +29,7 @@ export type HttpResponse<D = unknown> = {
28
29
  export type HttpError = {
29
30
  status: number;
30
31
  error?: string;
32
+ headers?: Record<string, HttpResponseHeader>;
31
33
  };
32
34
  interface PromiseWithReason<T = unknown, R = unknown> extends Promise<T> {
33
35
  then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: R) => TResult2 | PromiseLike<TResult2>) | undefined | null): Promise<TResult1 | TResult2>;
@@ -52,8 +52,8 @@ export interface ActionInterface {
52
52
  connectorIdentifier: string;
53
53
  config: {
54
54
  [key: string]: {
55
- [key: string]: string | object;
56
- } | string | object;
55
+ [key: string]: string | number | object;
56
+ } | string | number | object;
57
57
  };
58
58
  inputParameters: Array<InputParameterInterface>;
59
59
  outputParameters: LegacyOutputParameterInterface | OutputParameterInterface;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transai/connector-runner-otto-fleet-manager-v2",
3
- "version": "0.20.0",
3
+ "version": "0.25.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -13,4 +13,4 @@
13
13
  "type": "commonjs",
14
14
  "main": "./index.cjs",
15
15
  "typings": "./index.d.ts"
16
- }
16
+ }