@code0-tech/tucana 0.0.73 → 0.0.75

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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shared.function_pb-BErnwHWO.cjs`),t=require(`./shared.runtime_usage_pb-CSRup69H.cjs`),n=require(`./rpc-interceptor-DOeBkZHU.cjs`);var r=new class extends e.v{constructor(){super(`aquila.ActionEvent`,[{no:1,name:`event_type`,kind:`scalar`,T:9},{no:2,name:`project_id`,kind:`scalar`,T:3,L:0},{no:3,name:`payload`,kind:`message`,T:()=>e.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.eventType=``,n.projectId=0n,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.eventType=t.string();break;case 2:a.projectId=t.int64().toBigInt();break;case 3:a.payload=e.u.internalBinaryRead(t,t.uint32(),r,a.payload);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.eventType!==``&&n.tag(1,e.C.LengthDelimited).string(t.eventType),t.projectId!==0n&&n.tag(2,e.C.Varint).int64(t.projectId),t.payload&&e.u.internalBinaryWrite(t.payload,n.tag(3,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},i=new class extends e.v{constructor(){super(`aquila.ActionLogon`,[{no:1,name:`module`,kind:`message`,T:()=>t.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.module=t.u.internalBinaryRead(n,n.uint32(),i,o.module);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.module&&t.u.internalBinaryWrite(n.module,r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},a=new class extends e.v{constructor(){super(`aquila.ActionExecutionRequest`,[{no:1,name:`execution_identifier`,kind:`scalar`,T:9},{no:2,name:`function_identifier`,kind:`scalar`,T:9},{no:3,name:`parameters`,kind:`message`,T:()=>e.l},{no:4,name:`project_id`,kind:`scalar`,T:3,L:0}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.executionIdentifier=``,n.functionIdentifier=``,n.projectId=0n,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.executionIdentifier=t.string();break;case 2:a.functionIdentifier=t.string();break;case 3:a.parameters=e.l.internalBinaryRead(t,t.uint32(),r,a.parameters);break;case 4:a.projectId=t.int64().toBigInt();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.executionIdentifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.executionIdentifier),t.functionIdentifier!==``&&n.tag(2,e.C.LengthDelimited).string(t.functionIdentifier),t.parameters&&e.l.internalBinaryWrite(t.parameters,n.tag(3,e.C.LengthDelimited).fork(),r).join(),t.projectId!==0n&&n.tag(4,e.C.Varint).int64(t.projectId);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},o=new class extends e.v{constructor(){super(`aquila.ActionExecutionResponse`,[{no:1,name:`execution_identifier`,kind:`scalar`,T:9},{no:2,name:`node_result`,kind:`message`,T:()=>t.x}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.executionIdentifier=``,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.executionIdentifier=n.string();break;case 2:o.nodeResult=t.x.internalBinaryRead(n,n.uint32(),i,o.nodeResult);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.executionIdentifier!==``&&r.tag(1,e.C.LengthDelimited).string(n.executionIdentifier),n.nodeResult&&t.x.internalBinaryWrite(n.nodeResult,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},s=new class extends e.v{constructor(){super(`aquila.ActionTransferRequest`,[{no:1,name:`logon`,kind:`message`,oneof:`data`,T:()=>i},{no:2,name:`event`,kind:`message`,oneof:`data`,T:()=>r},{no:3,name:`result`,kind:`message`,oneof:`data`,T:()=>o}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,a,s){let c=s??this.create(),l=t.pos+n;for(;t.pos<l;){let[n,s]=t.tag();switch(n){case 1:c.data={oneofKind:`logon`,logon:i.internalBinaryRead(t,t.uint32(),a,c.data.logon)};break;case 2:c.data={oneofKind:`event`,event:r.internalBinaryRead(t,t.uint32(),a,c.data.event)};break;case 3:c.data={oneofKind:`result`,result:o.internalBinaryRead(t,t.uint32(),a,c.data.result)};break;default:let l=a.readUnknownField;if(l===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${s}) for ${this.typeName}`);let u=t.skip(s);l!==!1&&(l===!0?e.S.onRead:l)(this.typeName,c,n,s,u)}}return c}internalBinaryWrite(t,n,a){t.data.oneofKind===`logon`&&i.internalBinaryWrite(t.data.logon,n.tag(1,e.C.LengthDelimited).fork(),a).join(),t.data.oneofKind===`event`&&r.internalBinaryWrite(t.data.event,n.tag(2,e.C.LengthDelimited).fork(),a).join(),t.data.oneofKind===`result`&&o.internalBinaryWrite(t.data.result,n.tag(3,e.C.LengthDelimited).fork(),a).join();let s=a.writeUnknownFields;return s!==!1&&(s==1?e.S.onWrite:s)(this.typeName,t,n),n}},c=new class extends e.v{constructor(){super(`aquila.ActionTransferResponse`,[{no:1,name:`execution`,kind:`message`,oneof:`data`,T:()=>a},{no:2,name:`module_configurations`,kind:`message`,oneof:`data`,T:()=>t.p}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,o){let s=o??this.create(),c=n.pos+r;for(;n.pos<c;){let[r,o]=n.tag();switch(r){case 1:s.data={oneofKind:`execution`,execution:a.internalBinaryRead(n,n.uint32(),i,s.data.execution)};break;case 2:s.data={oneofKind:`moduleConfigurations`,moduleConfigurations:t.p.internalBinaryRead(n,n.uint32(),i,s.data.moduleConfigurations)};break;default:let c=i.readUnknownField;if(c===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${o}) for ${this.typeName}`);let l=n.skip(o);c!==!1&&(c===!0?e.S.onRead:c)(this.typeName,s,r,o,l)}}return s}internalBinaryWrite(n,r,i){n.data.oneofKind===`execution`&&a.internalBinaryWrite(n.data.execution,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.data.oneofKind===`moduleConfigurations`&&t.p.internalBinaryWrite(n.data.moduleConfigurations,r.tag(2,e.C.LengthDelimited).fork(),i).join();let o=i.writeUnknownFields;return o!==!1&&(o==1?e.S.onWrite:o)(this.typeName,n,r),r}},l=new n.n(`aquila.ActionTransferService`,[{name:`Transfer`,serverStreaming:!0,clientStreaming:!0,options:{},I:s,O:c}]),u=class{constructor(e){this._transport=e,this.typeName=l.typeName,this.methods=l.methods,this.options=l.options}transfer(e){let t=this.methods[0],r=this._transport.mergeOptions(e);return n.t(`duplex`,this._transport,t,r)}},d=new class extends e.v{constructor(){super(`aquila.ExecutionRequest`,[{no:1,name:`execution_result`,kind:`message`,T:()=>t.b}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.executionResult=t.b.internalBinaryRead(n,n.uint32(),i,o.executionResult);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.executionResult&&t.b.internalBinaryWrite(n.executionResult,r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},f=new class extends e.v{constructor(){super(`aquila.ExecutionResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},p=new n.n(`aquila.ExecutionService`,[{name:`Update`,options:{},I:d,O:f}]),m=class{constructor(e){this._transport=e,this.typeName=p.typeName,this.methods=p.methods,this.options=p.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},h=new class extends e.v{constructor(){super(`aquila.ModuleUpdateRequest`,[{no:1,name:`modules`,kind:`message`,repeat:2,T:()=>t.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.modules=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.modules.push(t.u.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.modules.length;a++)t.u.internalBinaryWrite(n.modules[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},g=new class extends e.v{constructor(){super(`aquila.ModuleUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},_=new n.n(`aquila.ModuleService`,[{name:`Update`,options:{},I:h,O:g}]),v=class{constructor(e){this._transport=e,this.typeName=_.typeName,this.methods=_.methods,this.options=_.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},y=new class extends e.v{constructor(){super(`aquila.RuntimeStatusUpdateRequest`,[{no:1,name:`adapter_runtime_status`,kind:`message`,oneof:`status`,T:()=>t.a},{no:2,name:`execution_runtime_status`,kind:`message`,oneof:`status`,T:()=>t.c},{no:3,name:`action_status`,kind:`message`,oneof:`status`,T:()=>t.n}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.status={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.status={oneofKind:`adapterRuntimeStatus`,adapterRuntimeStatus:t.a.internalBinaryRead(n,n.uint32(),i,o.status.adapterRuntimeStatus)};break;case 2:o.status={oneofKind:`executionRuntimeStatus`,executionRuntimeStatus:t.c.internalBinaryRead(n,n.uint32(),i,o.status.executionRuntimeStatus)};break;case 3:o.status={oneofKind:`actionStatus`,actionStatus:t.n.internalBinaryRead(n,n.uint32(),i,o.status.actionStatus)};break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.status.oneofKind===`adapterRuntimeStatus`&&t.a.internalBinaryWrite(n.status.adapterRuntimeStatus,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.status.oneofKind===`executionRuntimeStatus`&&t.c.internalBinaryWrite(n.status.executionRuntimeStatus,r.tag(2,e.C.LengthDelimited).fork(),i).join(),n.status.oneofKind===`actionStatus`&&t.n.internalBinaryWrite(n.status.actionStatus,r.tag(3,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},b=new class extends e.v{constructor(){super(`aquila.RuntimeStatusUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},x=new n.n(`aquila.RuntimeStatusService`,[{name:`Update`,options:{},I:y,O:b}]),S=class{constructor(e){this._transport=e,this.typeName=x.typeName,this.methods=x.methods,this.options=x.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},C=new class extends e.v{constructor(){super(`aquila.RuntimeUsageRequest`,[{no:1,name:`runtime_usage`,kind:`message`,repeat:2,T:()=>t.t}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.runtimeUsage=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.runtimeUsage.push(t.t.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.runtimeUsage.length;a++)t.t.internalBinaryWrite(n.runtimeUsage[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},w=new class extends e.v{constructor(){super(`aquila.RuntimeUsageResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},T=new n.n(`aquila.RuntimeUsageService`,[{name:`Update`,options:{},I:C,O:w}]),E=class{constructor(e){this._transport=e,this.typeName=T.typeName,this.methods=T.methods,this.options=T.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}};exports.ActionEvent=r,exports.ActionExecutionRequest=a,exports.ActionExecutionResponse=o,exports.ActionLogon=i,exports.ActionTransferRequest=s,exports.ActionTransferResponse=c,exports.ActionTransferService=l,exports.ActionTransferServiceClient=u,exports.ExecutionRequest=d,exports.ExecutionResponse=f,exports.ExecutionService=p,exports.ExecutionServiceClient=m,exports.ModuleService=_,exports.ModuleServiceClient=v,exports.ModuleUpdateRequest=h,exports.ModuleUpdateResponse=g,exports.RuntimeStatusService=x,exports.RuntimeStatusServiceClient=S,exports.RuntimeStatusUpdateRequest=y,exports.RuntimeStatusUpdateResponse=b,exports.RuntimeUsageRequest=C,exports.RuntimeUsageResponse=w,exports.RuntimeUsageService=T,exports.RuntimeUsageServiceClient=E;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./shared.function_pb-BErnwHWO.cjs`),t=require(`./shared.runtime_usage_pb-DqB5DUDk.cjs`),n=require(`./rpc-interceptor-DOeBkZHU.cjs`);var r=new class extends e.v{constructor(){super(`aquila.ActionEvent`,[{no:1,name:`event_type`,kind:`scalar`,T:9},{no:2,name:`project_id`,kind:`scalar`,T:3,L:0},{no:3,name:`payload`,kind:`message`,T:()=>e.u}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.eventType=``,n.projectId=0n,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.eventType=t.string();break;case 2:a.projectId=t.int64().toBigInt();break;case 3:a.payload=e.u.internalBinaryRead(t,t.uint32(),r,a.payload);break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.eventType!==``&&n.tag(1,e.C.LengthDelimited).string(t.eventType),t.projectId!==0n&&n.tag(2,e.C.Varint).int64(t.projectId),t.payload&&e.u.internalBinaryWrite(t.payload,n.tag(3,e.C.LengthDelimited).fork(),r).join();let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},i=new class extends e.v{constructor(){super(`aquila.ActionLogon`,[{no:1,name:`module`,kind:`message`,T:()=>t.a}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.module=t.a.internalBinaryRead(n,n.uint32(),i,o.module);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.module&&t.a.internalBinaryWrite(n.module,r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},a=new class extends e.v{constructor(){super(`aquila.ActionExecutionRequest`,[{no:1,name:`execution_identifier`,kind:`scalar`,T:9},{no:2,name:`function_identifier`,kind:`scalar`,T:9},{no:3,name:`parameters`,kind:`message`,T:()=>e.l},{no:4,name:`project_id`,kind:`scalar`,T:3,L:0}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.executionIdentifier=``,n.functionIdentifier=``,n.projectId=0n,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.executionIdentifier=t.string();break;case 2:a.functionIdentifier=t.string();break;case 3:a.parameters=e.l.internalBinaryRead(t,t.uint32(),r,a.parameters);break;case 4:a.projectId=t.int64().toBigInt();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.executionIdentifier!==``&&n.tag(1,e.C.LengthDelimited).string(t.executionIdentifier),t.functionIdentifier!==``&&n.tag(2,e.C.LengthDelimited).string(t.functionIdentifier),t.parameters&&e.l.internalBinaryWrite(t.parameters,n.tag(3,e.C.LengthDelimited).fork(),r).join(),t.projectId!==0n&&n.tag(4,e.C.Varint).int64(t.projectId);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},o=new class extends e.v{constructor(){super(`aquila.ActionExecutionResponse`,[{no:1,name:`execution_identifier`,kind:`scalar`,T:9},{no:2,name:`node_result`,kind:`message`,T:()=>t._}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.executionIdentifier=``,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.executionIdentifier=n.string();break;case 2:o.nodeResult=t._.internalBinaryRead(n,n.uint32(),i,o.nodeResult);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.executionIdentifier!==``&&r.tag(1,e.C.LengthDelimited).string(n.executionIdentifier),n.nodeResult&&t._.internalBinaryWrite(n.nodeResult,r.tag(2,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},s=new class extends e.v{constructor(){super(`aquila.ActionTransferRequest`,[{no:1,name:`logon`,kind:`message`,oneof:`data`,T:()=>i},{no:2,name:`event`,kind:`message`,oneof:`data`,T:()=>r},{no:3,name:`result`,kind:`message`,oneof:`data`,T:()=>o}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,a,s){let c=s??this.create(),l=t.pos+n;for(;t.pos<l;){let[n,s]=t.tag();switch(n){case 1:c.data={oneofKind:`logon`,logon:i.internalBinaryRead(t,t.uint32(),a,c.data.logon)};break;case 2:c.data={oneofKind:`event`,event:r.internalBinaryRead(t,t.uint32(),a,c.data.event)};break;case 3:c.data={oneofKind:`result`,result:o.internalBinaryRead(t,t.uint32(),a,c.data.result)};break;default:let l=a.readUnknownField;if(l===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${s}) for ${this.typeName}`);let u=t.skip(s);l!==!1&&(l===!0?e.S.onRead:l)(this.typeName,c,n,s,u)}}return c}internalBinaryWrite(t,n,a){t.data.oneofKind===`logon`&&i.internalBinaryWrite(t.data.logon,n.tag(1,e.C.LengthDelimited).fork(),a).join(),t.data.oneofKind===`event`&&r.internalBinaryWrite(t.data.event,n.tag(2,e.C.LengthDelimited).fork(),a).join(),t.data.oneofKind===`result`&&o.internalBinaryWrite(t.data.result,n.tag(3,e.C.LengthDelimited).fork(),a).join();let s=a.writeUnknownFields;return s!==!1&&(s==1?e.S.onWrite:s)(this.typeName,t,n),n}},c=new class extends e.v{constructor(){super(`aquila.ActionTransferResponse`,[{no:1,name:`execution`,kind:`message`,oneof:`data`,T:()=>a},{no:2,name:`module_configurations`,kind:`message`,oneof:`data`,T:()=>t.c}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.data={oneofKind:void 0},t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,o){let s=o??this.create(),c=n.pos+r;for(;n.pos<c;){let[r,o]=n.tag();switch(r){case 1:s.data={oneofKind:`execution`,execution:a.internalBinaryRead(n,n.uint32(),i,s.data.execution)};break;case 2:s.data={oneofKind:`moduleConfigurations`,moduleConfigurations:t.c.internalBinaryRead(n,n.uint32(),i,s.data.moduleConfigurations)};break;default:let c=i.readUnknownField;if(c===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${o}) for ${this.typeName}`);let l=n.skip(o);c!==!1&&(c===!0?e.S.onRead:c)(this.typeName,s,r,o,l)}}return s}internalBinaryWrite(n,r,i){n.data.oneofKind===`execution`&&a.internalBinaryWrite(n.data.execution,r.tag(1,e.C.LengthDelimited).fork(),i).join(),n.data.oneofKind===`moduleConfigurations`&&t.c.internalBinaryWrite(n.data.moduleConfigurations,r.tag(2,e.C.LengthDelimited).fork(),i).join();let o=i.writeUnknownFields;return o!==!1&&(o==1?e.S.onWrite:o)(this.typeName,n,r),r}},l=new n.n(`aquila.ActionTransferService`,[{name:`Transfer`,serverStreaming:!0,clientStreaming:!0,options:{},I:s,O:c}]),u=class{constructor(e){this._transport=e,this.typeName=l.typeName,this.methods=l.methods,this.options=l.options}transfer(e){let t=this.methods[0],r=this._transport.mergeOptions(e);return n.t(`duplex`,this._transport,t,r)}},d=new class extends e.v{constructor(){super(`aquila.ExecutionRequest`,[{no:1,name:`execution_result`,kind:`message`,T:()=>t.g}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.executionResult=t.g.internalBinaryRead(n,n.uint32(),i,o.executionResult);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.executionResult&&t.g.internalBinaryWrite(n.executionResult,r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},f=new class extends e.v{constructor(){super(`aquila.ExecutionResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},p=new n.n(`aquila.ExecutionService`,[{name:`Update`,options:{},I:d,O:f}]),m=class{constructor(e){this._transport=e,this.typeName=p.typeName,this.methods=p.methods,this.options=p.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},h=new class extends e.v{constructor(){super(`aquila.ModuleUpdateRequest`,[{no:1,name:`modules`,kind:`message`,repeat:2,T:()=>t.a}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.modules=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.modules.push(t.a.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.modules.length;a++)t.a.internalBinaryWrite(n.modules[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},g=new class extends e.v{constructor(){super(`aquila.ModuleUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},_=new n.n(`aquila.ModuleService`,[{name:`Update`,options:{},I:h,O:g}]),v=class{constructor(e){this._transport=e,this.typeName=_.typeName,this.methods=_.methods,this.options=_.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},y=new class extends e.v{constructor(){super(`aquila.RuntimeStatusUpdateRequest`,[{no:1,name:`status`,kind:`message`,T:()=>t.n}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.status=t.n.internalBinaryRead(n,n.uint32(),i,o.status);break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){n.status&&t.n.internalBinaryWrite(n.status,r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},b=new class extends e.v{constructor(){super(`aquila.RuntimeStatusUpdateResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},x=new n.n(`aquila.RuntimeStatusService`,[{name:`Update`,options:{},I:y,O:b}]),S=class{constructor(e){this._transport=e,this.typeName=x.typeName,this.methods=x.methods,this.options=x.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}},C=new class extends e.v{constructor(){super(`aquila.RuntimeUsageRequest`,[{no:1,name:`runtime_usage`,kind:`message`,repeat:2,T:()=>t.t}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.runtimeUsage=[],t!==void 0&&e.y(this,n,t),n}internalBinaryRead(n,r,i,a){let o=a??this.create(),s=n.pos+r;for(;n.pos<s;){let[r,a]=n.tag();switch(r){case 1:o.runtimeUsage.push(t.t.internalBinaryRead(n,n.uint32(),i));break;default:let s=i.readUnknownField;if(s===`throw`)throw new globalThis.Error(`Unknown field ${r} (wire type ${a}) for ${this.typeName}`);let c=n.skip(a);s!==!1&&(s===!0?e.S.onRead:s)(this.typeName,o,r,a,c)}}return o}internalBinaryWrite(n,r,i){for(let a=0;a<n.runtimeUsage.length;a++)t.t.internalBinaryWrite(n.runtimeUsage[a],r.tag(1,e.C.LengthDelimited).fork(),i).join();let a=i.writeUnknownFields;return a!==!1&&(a==1?e.S.onWrite:a)(this.typeName,n,r),r}},w=new class extends e.v{constructor(){super(`aquila.RuntimeUsageResponse`,[{no:1,name:`success`,kind:`scalar`,T:8}])}create(t){let n=globalThis.Object.create(this.messagePrototype);return n.success=!1,t!==void 0&&e.y(this,n,t),n}internalBinaryRead(t,n,r,i){let a=i??this.create(),o=t.pos+n;for(;t.pos<o;){let[n,i]=t.tag();switch(n){case 1:a.success=t.bool();break;default:let o=r.readUnknownField;if(o===`throw`)throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);let s=t.skip(i);o!==!1&&(o===!0?e.S.onRead:o)(this.typeName,a,n,i,s)}}return a}internalBinaryWrite(t,n,r){t.success!==!1&&n.tag(1,e.C.Varint).bool(t.success);let i=r.writeUnknownFields;return i!==!1&&(i==1?e.S.onWrite:i)(this.typeName,t,n),n}},T=new n.n(`aquila.RuntimeUsageService`,[{name:`Update`,options:{},I:C,O:w}]),E=class{constructor(e){this._transport=e,this.typeName=T.typeName,this.methods=T.methods,this.options=T.options}update(e,t){let r=this.methods[0],i=this._transport.mergeOptions(t);return n.t(`unary`,this._transport,r,i,e)}};exports.ActionEvent=r,exports.ActionExecutionRequest=a,exports.ActionExecutionResponse=o,exports.ActionLogon=i,exports.ActionTransferRequest=s,exports.ActionTransferResponse=c,exports.ActionTransferService=l,exports.ActionTransferServiceClient=u,exports.ExecutionRequest=d,exports.ExecutionResponse=f,exports.ExecutionService=p,exports.ExecutionServiceClient=m,exports.ModuleService=_,exports.ModuleServiceClient=v,exports.ModuleUpdateRequest=h,exports.ModuleUpdateResponse=g,exports.RuntimeStatusService=x,exports.RuntimeStatusServiceClient=S,exports.RuntimeStatusUpdateRequest=y,exports.RuntimeStatusUpdateResponse=b,exports.RuntimeUsageRequest=C,exports.RuntimeUsageResponse=w,exports.RuntimeUsageService=T,exports.RuntimeUsageServiceClient=E;
package/dist/aquila.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { C as e, S as t, l as n, u as r, v as i, y as a } from "./shared.function_pb-e1jkWYE_.js";
2
- import { a as o, b as s, c, n as l, p as u, t as d, u as f, x as p } from "./shared.runtime_usage_pb-Hn8yNrjw.js";
3
- import { n as m, t as h } from "./rpc-interceptor-az_TTCBK.js";
4
- var g = new class extends i {
2
+ import { _ as o, a as s, c, g as l, n as u, t as d } from "./shared.runtime_usage_pb-DDUhVHjA.js";
3
+ import { n as f, t as p } from "./rpc-interceptor-az_TTCBK.js";
4
+ var m = new class extends i {
5
5
  constructor() {
6
6
  super("aquila.ActionEvent", [
7
7
  {
@@ -57,13 +57,13 @@ var g = new class extends i {
57
57
  let o = a.writeUnknownFields;
58
58
  return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, n, i), i;
59
59
  }
60
- }(), _ = new class extends i {
60
+ }(), h = new class extends i {
61
61
  constructor() {
62
62
  super("aquila.ActionLogon", [{
63
63
  no: 1,
64
64
  name: "module",
65
65
  kind: "message",
66
- T: () => f
66
+ T: () => s
67
67
  }]);
68
68
  }
69
69
  create(e) {
@@ -76,23 +76,23 @@ var g = new class extends i {
76
76
  let [n, i] = e.tag();
77
77
  switch (n) {
78
78
  case 1:
79
- a.module = f.internalBinaryRead(e, e.uint32(), r, a.module);
79
+ a.module = s.internalBinaryRead(e, e.uint32(), r, a.module);
80
80
  break;
81
81
  default:
82
82
  let o = r.readUnknownField;
83
83
  if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
84
- let s = e.skip(i);
85
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
84
+ let c = e.skip(i);
85
+ o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, c);
86
86
  }
87
87
  }
88
88
  return a;
89
89
  }
90
90
  internalBinaryWrite(n, r, i) {
91
- n.module && f.internalBinaryWrite(n.module, r.tag(1, e.LengthDelimited).fork(), i).join();
91
+ n.module && s.internalBinaryWrite(n.module, r.tag(1, e.LengthDelimited).fork(), i).join();
92
92
  let a = i.writeUnknownFields;
93
93
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
94
94
  }
95
- }(), v = new class extends i {
95
+ }(), g = new class extends i {
96
96
  constructor() {
97
97
  super("aquila.ActionExecutionRequest", [
98
98
  {
@@ -157,7 +157,7 @@ var g = new class extends i {
157
157
  let o = a.writeUnknownFields;
158
158
  return o !== !1 && (o == 1 ? t.onWrite : o)(this.typeName, r, i), i;
159
159
  }
160
- }(), y = new class extends i {
160
+ }(), _ = new class extends i {
161
161
  constructor() {
162
162
  super("aquila.ActionExecutionResponse", [{
163
163
  no: 1,
@@ -168,7 +168,7 @@ var g = new class extends i {
168
168
  no: 2,
169
169
  name: "node_result",
170
170
  kind: "message",
171
- T: () => p
171
+ T: () => o
172
172
  }]);
173
173
  }
174
174
  create(e) {
@@ -176,31 +176,31 @@ var g = new class extends i {
176
176
  return t.executionIdentifier = "", e !== void 0 && a(this, t, e), t;
177
177
  }
178
178
  internalBinaryRead(e, n, r, i) {
179
- let a = i ?? this.create(), o = e.pos + n;
180
- for (; e.pos < o;) {
179
+ let a = i ?? this.create(), s = e.pos + n;
180
+ for (; e.pos < s;) {
181
181
  let [n, i] = e.tag();
182
182
  switch (n) {
183
183
  case 1:
184
184
  a.executionIdentifier = e.string();
185
185
  break;
186
186
  case 2:
187
- a.nodeResult = p.internalBinaryRead(e, e.uint32(), r, a.nodeResult);
187
+ a.nodeResult = o.internalBinaryRead(e, e.uint32(), r, a.nodeResult);
188
188
  break;
189
189
  default:
190
- let o = r.readUnknownField;
191
- if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
192
- let s = e.skip(i);
193
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
190
+ let s = r.readUnknownField;
191
+ if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
192
+ let c = e.skip(i);
193
+ s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, a, n, i, c);
194
194
  }
195
195
  }
196
196
  return a;
197
197
  }
198
198
  internalBinaryWrite(n, r, i) {
199
- n.executionIdentifier !== "" && r.tag(1, e.LengthDelimited).string(n.executionIdentifier), n.nodeResult && p.internalBinaryWrite(n.nodeResult, r.tag(2, e.LengthDelimited).fork(), i).join();
199
+ n.executionIdentifier !== "" && r.tag(1, e.LengthDelimited).string(n.executionIdentifier), n.nodeResult && o.internalBinaryWrite(n.nodeResult, r.tag(2, e.LengthDelimited).fork(), i).join();
200
200
  let a = i.writeUnknownFields;
201
201
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
202
202
  }
203
- }(), b = new class extends i {
203
+ }(), v = new class extends i {
204
204
  constructor() {
205
205
  super("aquila.ActionTransferRequest", [
206
206
  {
@@ -208,21 +208,21 @@ var g = new class extends i {
208
208
  name: "logon",
209
209
  kind: "message",
210
210
  oneof: "data",
211
- T: () => _
211
+ T: () => h
212
212
  },
213
213
  {
214
214
  no: 2,
215
215
  name: "event",
216
216
  kind: "message",
217
217
  oneof: "data",
218
- T: () => g
218
+ T: () => m
219
219
  },
220
220
  {
221
221
  no: 3,
222
222
  name: "result",
223
223
  kind: "message",
224
224
  oneof: "data",
225
- T: () => y
225
+ T: () => _
226
226
  }
227
227
  ]);
228
228
  }
@@ -238,19 +238,19 @@ var g = new class extends i {
238
238
  case 1:
239
239
  a.data = {
240
240
  oneofKind: "logon",
241
- logon: _.internalBinaryRead(e, e.uint32(), r, a.data.logon)
241
+ logon: h.internalBinaryRead(e, e.uint32(), r, a.data.logon)
242
242
  };
243
243
  break;
244
244
  case 2:
245
245
  a.data = {
246
246
  oneofKind: "event",
247
- event: g.internalBinaryRead(e, e.uint32(), r, a.data.event)
247
+ event: m.internalBinaryRead(e, e.uint32(), r, a.data.event)
248
248
  };
249
249
  break;
250
250
  case 3:
251
251
  a.data = {
252
252
  oneofKind: "result",
253
- result: y.internalBinaryRead(e, e.uint32(), r, a.data.result)
253
+ result: _.internalBinaryRead(e, e.uint32(), r, a.data.result)
254
254
  };
255
255
  break;
256
256
  default:
@@ -263,24 +263,24 @@ var g = new class extends i {
263
263
  return a;
264
264
  }
265
265
  internalBinaryWrite(n, r, i) {
266
- n.data.oneofKind === "logon" && _.internalBinaryWrite(n.data.logon, r.tag(1, e.LengthDelimited).fork(), i).join(), n.data.oneofKind === "event" && g.internalBinaryWrite(n.data.event, r.tag(2, e.LengthDelimited).fork(), i).join(), n.data.oneofKind === "result" && y.internalBinaryWrite(n.data.result, r.tag(3, e.LengthDelimited).fork(), i).join();
266
+ n.data.oneofKind === "logon" && h.internalBinaryWrite(n.data.logon, r.tag(1, e.LengthDelimited).fork(), i).join(), n.data.oneofKind === "event" && m.internalBinaryWrite(n.data.event, r.tag(2, e.LengthDelimited).fork(), i).join(), n.data.oneofKind === "result" && _.internalBinaryWrite(n.data.result, r.tag(3, e.LengthDelimited).fork(), i).join();
267
267
  let a = i.writeUnknownFields;
268
268
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
269
269
  }
270
- }(), x = new class extends i {
270
+ }(), y = new class extends i {
271
271
  constructor() {
272
272
  super("aquila.ActionTransferResponse", [{
273
273
  no: 1,
274
274
  name: "execution",
275
275
  kind: "message",
276
276
  oneof: "data",
277
- T: () => v
277
+ T: () => g
278
278
  }, {
279
279
  no: 2,
280
280
  name: "module_configurations",
281
281
  kind: "message",
282
282
  oneof: "data",
283
- T: () => u
283
+ T: () => c
284
284
  }]);
285
285
  }
286
286
  create(e) {
@@ -295,13 +295,13 @@ var g = new class extends i {
295
295
  case 1:
296
296
  a.data = {
297
297
  oneofKind: "execution",
298
- execution: v.internalBinaryRead(e, e.uint32(), r, a.data.execution)
298
+ execution: g.internalBinaryRead(e, e.uint32(), r, a.data.execution)
299
299
  };
300
300
  break;
301
301
  case 2:
302
302
  a.data = {
303
303
  oneofKind: "moduleConfigurations",
304
- moduleConfigurations: u.internalBinaryRead(e, e.uint32(), r, a.data.moduleConfigurations)
304
+ moduleConfigurations: c.internalBinaryRead(e, e.uint32(), r, a.data.moduleConfigurations)
305
305
  };
306
306
  break;
307
307
  default:
@@ -314,32 +314,32 @@ var g = new class extends i {
314
314
  return a;
315
315
  }
316
316
  internalBinaryWrite(n, r, i) {
317
- n.data.oneofKind === "execution" && v.internalBinaryWrite(n.data.execution, r.tag(1, e.LengthDelimited).fork(), i).join(), n.data.oneofKind === "moduleConfigurations" && u.internalBinaryWrite(n.data.moduleConfigurations, r.tag(2, e.LengthDelimited).fork(), i).join();
317
+ n.data.oneofKind === "execution" && g.internalBinaryWrite(n.data.execution, r.tag(1, e.LengthDelimited).fork(), i).join(), n.data.oneofKind === "moduleConfigurations" && c.internalBinaryWrite(n.data.moduleConfigurations, r.tag(2, e.LengthDelimited).fork(), i).join();
318
318
  let a = i.writeUnknownFields;
319
319
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
320
320
  }
321
- }(), S = new m("aquila.ActionTransferService", [{
321
+ }(), b = new f("aquila.ActionTransferService", [{
322
322
  name: "Transfer",
323
323
  serverStreaming: !0,
324
324
  clientStreaming: !0,
325
325
  options: {},
326
- I: b,
327
- O: x
328
- }]), C = class {
326
+ I: v,
327
+ O: y
328
+ }]), x = class {
329
329
  constructor(e) {
330
- this._transport = e, this.typeName = S.typeName, this.methods = S.methods, this.options = S.options;
330
+ this._transport = e, this.typeName = b.typeName, this.methods = b.methods, this.options = b.options;
331
331
  }
332
332
  transfer(e) {
333
333
  let t = this.methods[0], n = this._transport.mergeOptions(e);
334
- return h("duplex", this._transport, t, n);
334
+ return p("duplex", this._transport, t, n);
335
335
  }
336
- }, w = new class extends i {
336
+ }, S = new class extends i {
337
337
  constructor() {
338
338
  super("aquila.ExecutionRequest", [{
339
339
  no: 1,
340
340
  name: "execution_result",
341
341
  kind: "message",
342
- T: () => s
342
+ T: () => l
343
343
  }]);
344
344
  }
345
345
  create(e) {
@@ -352,23 +352,23 @@ var g = new class extends i {
352
352
  let [n, i] = e.tag();
353
353
  switch (n) {
354
354
  case 1:
355
- a.executionResult = s.internalBinaryRead(e, e.uint32(), r, a.executionResult);
355
+ a.executionResult = l.internalBinaryRead(e, e.uint32(), r, a.executionResult);
356
356
  break;
357
357
  default:
358
358
  let o = r.readUnknownField;
359
359
  if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
360
- let c = e.skip(i);
361
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, c);
360
+ let s = e.skip(i);
361
+ o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
362
362
  }
363
363
  }
364
364
  return a;
365
365
  }
366
366
  internalBinaryWrite(n, r, i) {
367
- n.executionResult && s.internalBinaryWrite(n.executionResult, r.tag(1, e.LengthDelimited).fork(), i).join();
367
+ n.executionResult && l.internalBinaryWrite(n.executionResult, r.tag(1, e.LengthDelimited).fork(), i).join();
368
368
  let a = i.writeUnknownFields;
369
369
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
370
370
  }
371
- }(), T = new class extends i {
371
+ }(), C = new class extends i {
372
372
  constructor() {
373
373
  super("aquila.ExecutionResponse", [{
374
374
  no: 1,
@@ -403,27 +403,27 @@ var g = new class extends i {
403
403
  let a = i.writeUnknownFields;
404
404
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
405
405
  }
406
- }(), E = new m("aquila.ExecutionService", [{
406
+ }(), w = new f("aquila.ExecutionService", [{
407
407
  name: "Update",
408
408
  options: {},
409
- I: w,
410
- O: T
411
- }]), D = class {
409
+ I: S,
410
+ O: C
411
+ }]), T = class {
412
412
  constructor(e) {
413
- this._transport = e, this.typeName = E.typeName, this.methods = E.methods, this.options = E.options;
413
+ this._transport = e, this.typeName = w.typeName, this.methods = w.methods, this.options = w.options;
414
414
  }
415
415
  update(e, t) {
416
416
  let n = this.methods[0], r = this._transport.mergeOptions(t);
417
- return h("unary", this._transport, n, r, e);
417
+ return p("unary", this._transport, n, r, e);
418
418
  }
419
- }, O = new class extends i {
419
+ }, E = new class extends i {
420
420
  constructor() {
421
421
  super("aquila.ModuleUpdateRequest", [{
422
422
  no: 1,
423
423
  name: "modules",
424
424
  kind: "message",
425
425
  repeat: 2,
426
- T: () => f
426
+ T: () => s
427
427
  }]);
428
428
  }
429
429
  create(e) {
@@ -436,23 +436,23 @@ var g = new class extends i {
436
436
  let [n, i] = e.tag();
437
437
  switch (n) {
438
438
  case 1:
439
- a.modules.push(f.internalBinaryRead(e, e.uint32(), r));
439
+ a.modules.push(s.internalBinaryRead(e, e.uint32(), r));
440
440
  break;
441
441
  default:
442
442
  let o = r.readUnknownField;
443
443
  if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
444
- let s = e.skip(i);
445
- o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
444
+ let c = e.skip(i);
445
+ o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, c);
446
446
  }
447
447
  }
448
448
  return a;
449
449
  }
450
450
  internalBinaryWrite(n, r, i) {
451
- for (let t = 0; t < n.modules.length; t++) f.internalBinaryWrite(n.modules[t], r.tag(1, e.LengthDelimited).fork(), i).join();
451
+ for (let t = 0; t < n.modules.length; t++) s.internalBinaryWrite(n.modules[t], r.tag(1, e.LengthDelimited).fork(), i).join();
452
452
  let a = i.writeUnknownFields;
453
453
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
454
454
  }
455
- }(), k = new class extends i {
455
+ }(), D = new class extends i {
456
456
  constructor() {
457
457
  super("aquila.ModuleUpdateResponse", [{
458
458
  no: 1,
@@ -487,87 +487,55 @@ var g = new class extends i {
487
487
  let a = i.writeUnknownFields;
488
488
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
489
489
  }
490
- }(), A = new m("aquila.ModuleService", [{
490
+ }(), O = new f("aquila.ModuleService", [{
491
491
  name: "Update",
492
492
  options: {},
493
- I: O,
494
- O: k
495
- }]), j = class {
493
+ I: E,
494
+ O: D
495
+ }]), k = class {
496
496
  constructor(e) {
497
- this._transport = e, this.typeName = A.typeName, this.methods = A.methods, this.options = A.options;
497
+ this._transport = e, this.typeName = O.typeName, this.methods = O.methods, this.options = O.options;
498
498
  }
499
499
  update(e, t) {
500
500
  let n = this.methods[0], r = this._transport.mergeOptions(t);
501
- return h("unary", this._transport, n, r, e);
501
+ return p("unary", this._transport, n, r, e);
502
502
  }
503
- }, M = new class extends i {
503
+ }, A = new class extends i {
504
504
  constructor() {
505
- super("aquila.RuntimeStatusUpdateRequest", [
506
- {
507
- no: 1,
508
- name: "adapter_runtime_status",
509
- kind: "message",
510
- oneof: "status",
511
- T: () => o
512
- },
513
- {
514
- no: 2,
515
- name: "execution_runtime_status",
516
- kind: "message",
517
- oneof: "status",
518
- T: () => c
519
- },
520
- {
521
- no: 3,
522
- name: "action_status",
523
- kind: "message",
524
- oneof: "status",
525
- T: () => l
526
- }
527
- ]);
505
+ super("aquila.RuntimeStatusUpdateRequest", [{
506
+ no: 1,
507
+ name: "status",
508
+ kind: "message",
509
+ T: () => u
510
+ }]);
528
511
  }
529
512
  create(e) {
530
513
  let t = globalThis.Object.create(this.messagePrototype);
531
- return t.status = { oneofKind: void 0 }, e !== void 0 && a(this, t, e), t;
514
+ return e !== void 0 && a(this, t, e), t;
532
515
  }
533
516
  internalBinaryRead(e, n, r, i) {
534
- let a = i ?? this.create(), s = e.pos + n;
535
- for (; e.pos < s;) {
517
+ let a = i ?? this.create(), o = e.pos + n;
518
+ for (; e.pos < o;) {
536
519
  let [n, i] = e.tag();
537
520
  switch (n) {
538
521
  case 1:
539
- a.status = {
540
- oneofKind: "adapterRuntimeStatus",
541
- adapterRuntimeStatus: o.internalBinaryRead(e, e.uint32(), r, a.status.adapterRuntimeStatus)
542
- };
543
- break;
544
- case 2:
545
- a.status = {
546
- oneofKind: "executionRuntimeStatus",
547
- executionRuntimeStatus: c.internalBinaryRead(e, e.uint32(), r, a.status.executionRuntimeStatus)
548
- };
549
- break;
550
- case 3:
551
- a.status = {
552
- oneofKind: "actionStatus",
553
- actionStatus: l.internalBinaryRead(e, e.uint32(), r, a.status.actionStatus)
554
- };
522
+ a.status = u.internalBinaryRead(e, e.uint32(), r, a.status);
555
523
  break;
556
524
  default:
557
- let s = r.readUnknownField;
558
- if (s === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
559
- let u = e.skip(i);
560
- s !== !1 && (s === !0 ? t.onRead : s)(this.typeName, a, n, i, u);
525
+ let o = r.readUnknownField;
526
+ if (o === "throw") throw new globalThis.Error(`Unknown field ${n} (wire type ${i}) for ${this.typeName}`);
527
+ let s = e.skip(i);
528
+ o !== !1 && (o === !0 ? t.onRead : o)(this.typeName, a, n, i, s);
561
529
  }
562
530
  }
563
531
  return a;
564
532
  }
565
533
  internalBinaryWrite(n, r, i) {
566
- n.status.oneofKind === "adapterRuntimeStatus" && o.internalBinaryWrite(n.status.adapterRuntimeStatus, r.tag(1, e.LengthDelimited).fork(), i).join(), n.status.oneofKind === "executionRuntimeStatus" && c.internalBinaryWrite(n.status.executionRuntimeStatus, r.tag(2, e.LengthDelimited).fork(), i).join(), n.status.oneofKind === "actionStatus" && l.internalBinaryWrite(n.status.actionStatus, r.tag(3, e.LengthDelimited).fork(), i).join();
534
+ n.status && u.internalBinaryWrite(n.status, r.tag(1, e.LengthDelimited).fork(), i).join();
567
535
  let a = i.writeUnknownFields;
568
536
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
569
537
  }
570
- }(), N = new class extends i {
538
+ }(), j = new class extends i {
571
539
  constructor() {
572
540
  super("aquila.RuntimeStatusUpdateResponse", [{
573
541
  no: 1,
@@ -602,20 +570,20 @@ var g = new class extends i {
602
570
  let a = i.writeUnknownFields;
603
571
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
604
572
  }
605
- }(), P = new m("aquila.RuntimeStatusService", [{
573
+ }(), M = new f("aquila.RuntimeStatusService", [{
606
574
  name: "Update",
607
575
  options: {},
608
- I: M,
609
- O: N
610
- }]), F = class {
576
+ I: A,
577
+ O: j
578
+ }]), N = class {
611
579
  constructor(e) {
612
- this._transport = e, this.typeName = P.typeName, this.methods = P.methods, this.options = P.options;
580
+ this._transport = e, this.typeName = M.typeName, this.methods = M.methods, this.options = M.options;
613
581
  }
614
582
  update(e, t) {
615
583
  let n = this.methods[0], r = this._transport.mergeOptions(t);
616
- return h("unary", this._transport, n, r, e);
584
+ return p("unary", this._transport, n, r, e);
617
585
  }
618
- }, I = new class extends i {
586
+ }, P = new class extends i {
619
587
  constructor() {
620
588
  super("aquila.RuntimeUsageRequest", [{
621
589
  no: 1,
@@ -651,7 +619,7 @@ var g = new class extends i {
651
619
  let a = i.writeUnknownFields;
652
620
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
653
621
  }
654
- }(), L = new class extends i {
622
+ }(), F = new class extends i {
655
623
  constructor() {
656
624
  super("aquila.RuntimeUsageResponse", [{
657
625
  no: 1,
@@ -686,19 +654,19 @@ var g = new class extends i {
686
654
  let a = i.writeUnknownFields;
687
655
  return a !== !1 && (a == 1 ? t.onWrite : a)(this.typeName, n, r), r;
688
656
  }
689
- }(), R = new m("aquila.RuntimeUsageService", [{
657
+ }(), I = new f("aquila.RuntimeUsageService", [{
690
658
  name: "Update",
691
659
  options: {},
692
- I,
693
- O: L
694
- }]), z = class {
660
+ I: P,
661
+ O: F
662
+ }]), L = class {
695
663
  constructor(e) {
696
- this._transport = e, this.typeName = R.typeName, this.methods = R.methods, this.options = R.options;
664
+ this._transport = e, this.typeName = I.typeName, this.methods = I.methods, this.options = I.options;
697
665
  }
698
666
  update(e, t) {
699
667
  let n = this.methods[0], r = this._transport.mergeOptions(t);
700
- return h("unary", this._transport, n, r, e);
668
+ return p("unary", this._transport, n, r, e);
701
669
  }
702
670
  };
703
671
  //#endregion
704
- export { g as ActionEvent, v as ActionExecutionRequest, y as ActionExecutionResponse, _ as ActionLogon, b as ActionTransferRequest, x as ActionTransferResponse, S as ActionTransferService, C as ActionTransferServiceClient, w as ExecutionRequest, T as ExecutionResponse, E as ExecutionService, D as ExecutionServiceClient, A as ModuleService, j as ModuleServiceClient, O as ModuleUpdateRequest, k as ModuleUpdateResponse, P as RuntimeStatusService, F as RuntimeStatusServiceClient, M as RuntimeStatusUpdateRequest, N as RuntimeStatusUpdateResponse, I as RuntimeUsageRequest, L as RuntimeUsageResponse, R as RuntimeUsageService, z as RuntimeUsageServiceClient };
672
+ export { m as ActionEvent, g as ActionExecutionRequest, _ as ActionExecutionResponse, h as ActionLogon, v as ActionTransferRequest, y as ActionTransferResponse, b as ActionTransferService, x as ActionTransferServiceClient, S as ExecutionRequest, C as ExecutionResponse, w as ExecutionService, T as ExecutionServiceClient, O as ModuleService, k as ModuleServiceClient, E as ModuleUpdateRequest, D as ModuleUpdateResponse, M as RuntimeStatusService, N as RuntimeStatusServiceClient, A as RuntimeStatusUpdateRequest, j as RuntimeStatusUpdateResponse, P as RuntimeUsageRequest, F as RuntimeUsageResponse, I as RuntimeUsageService, L as RuntimeUsageServiceClient };
@@ -1,34 +1,14 @@
1
1
  import { ServiceType } from '@protobuf-ts/runtime-rpc';
2
2
  import { BinaryWriteOptions, IBinaryWriter, BinaryReadOptions, IBinaryReader, PartialMessage, MessageType } from '@protobuf-ts/runtime';
3
- import { ActionStatus, ExecutionRuntimeStatus, AdapterRuntimeStatus } from './shared.runtime_status_pb';
3
+ import { ModuleStatus } from './shared.runtime_status_pb';
4
4
  /**
5
5
  * @generated from protobuf message aquila.RuntimeStatusUpdateRequest
6
6
  */
7
7
  export interface RuntimeStatusUpdateRequest {
8
8
  /**
9
- * @generated from protobuf oneof: status
9
+ * @generated from protobuf field: shared.ModuleStatus status = 1
10
10
  */
11
- status: {
12
- oneofKind: "adapterRuntimeStatus";
13
- /**
14
- * @generated from protobuf field: shared.AdapterRuntimeStatus adapter_runtime_status = 1
15
- */
16
- adapterRuntimeStatus: AdapterRuntimeStatus;
17
- } | {
18
- oneofKind: "executionRuntimeStatus";
19
- /**
20
- * @generated from protobuf field: shared.ExecutionRuntimeStatus execution_runtime_status = 2
21
- */
22
- executionRuntimeStatus: ExecutionRuntimeStatus;
23
- } | {
24
- oneofKind: "actionStatus";
25
- /**
26
- * @generated from protobuf field: shared.ActionStatus action_status = 3
27
- */
28
- actionStatus: ActionStatus;
29
- } | {
30
- oneofKind: undefined;
31
- };
11
+ status?: ModuleStatus;
32
12
  }
33
13
  /**
34
14
  * @generated from protobuf message aquila.RuntimeStatusUpdateResponse