From 2a41be1871fd1b7f16988bbb81e39d6725a77c21 Mon Sep 17 00:00:00 2001 From: Ignacio Duart Date: Wed, 27 Sep 2023 15:17:54 +0200 Subject: [PATCH] Update typescript schemas --- typescript/package.json | 4 ++-- typescript/src/client-request.ts | 3 --- .../src/client-request/application-messages.ts | 2 -- typescript/src/client-request/authenticate.ts | 2 -- .../src/client-request/client-request-type.ts | 2 -- .../src/client-request/client-request.ts | 2 -- .../src/client-request/client-response.ts | 2 -- .../client-request/contract-request-type.ts | 2 -- .../src/client-request/contract-request.ts | 2 -- typescript/src/client-request/delegate-code.ts | 2 -- .../src/client-request/delegate-container.ts | 2 -- .../src/client-request/delegate-context.ts | 2 -- typescript/src/client-request/delegate-key.ts | 2 -- .../client-request/delegate-request-type.ts | 2 -- .../src/client-request/delegate-request.ts | 2 -- typescript/src/client-request/delegate-type.ts | 2 -- typescript/src/client-request/disconnect.ts | 2 -- .../client-request/get-secret-request-type.ts | 2 -- typescript/src/client-request/get.ts | 2 -- .../inbound-delegate-msg-type.ts | 18 ++++++------------ .../src/client-request/inbound-delegate-msg.ts | 5 +---- typescript/src/client-request/put.ts | 2 -- .../src/client-request/register-delegate.ts | 2 -- .../src/client-request/related-contract.ts | 2 -- .../src/client-request/related-contracts.ts | 2 -- typescript/src/client-request/subscribe.ts | 2 -- .../src/client-request/unregister-delegate.ts | 2 -- typescript/src/client-request/update.ts | 2 -- .../src/client-request/user-input-response.ts | 2 -- .../src/client-request/wasm-delegate-v1.ts | 2 -- typescript/src/client_request.ts | 2 -- typescript/src/common.ts | 2 -- typescript/src/common/application-message.ts | 2 -- typescript/src/common/contract-code.ts | 2 -- typescript/src/common/contract-container.ts | 2 -- typescript/src/common/contract-instance-id.ts | 2 -- typescript/src/common/contract-key.ts | 2 -- typescript/src/common/contract-type.ts | 2 -- typescript/src/common/delta-update.ts | 2 -- typescript/src/common/get-secret-request.ts | 2 -- typescript/src/common/get-secret-response.ts | 2 -- typescript/src/common/related-delta-update.ts | 2 -- .../common/related-state-and-delta-update.ts | 2 -- typescript/src/common/related-state-update.ts | 2 -- typescript/src/common/secrets-id.ts | 2 -- .../src/common/state-and-delta-update.ts | 2 -- typescript/src/common/state-update.ts | 2 -- typescript/src/common/update-data-type.ts | 2 -- typescript/src/common/update-data.ts | 2 -- typescript/src/common/wasm-contract-v1.ts | 2 -- typescript/src/host-response.ts | 3 --- .../src/host-response/client-response.ts | 2 -- .../src/host-response/context-updated.ts | 2 -- .../host-response/contract-response-type.ts | 2 -- .../src/host-response/contract-response.ts | 2 -- typescript/src/host-response/delegate-key.ts | 2 -- .../src/host-response/delegate-response.ts | 2 -- typescript/src/host-response/error.ts | 2 -- .../src/host-response/generate-rand-data.ts | 2 -- typescript/src/host-response/get-response.ts | 2 -- .../src/host-response/host-response-type.ts | 2 -- typescript/src/host-response/host-response.ts | 2 -- typescript/src/host-response/ok.ts | 2 -- .../outbound-delegate-msg-type.ts | 16 +++++----------- .../src/host-response/outbound-delegate-msg.ts | 5 +---- typescript/src/host-response/put-response.ts | 2 -- .../src/host-response/request-user-input.ts | 2 -- .../src/host-response/set-secret-request.ts | 2 -- .../src/host-response/update-notification.ts | 2 -- .../src/host-response/update-response.ts | 2 -- .../src/host-response/user-input-request.ts | 2 -- typescript/src/host_response.ts | 2 -- typescript/src/websocket-interface.ts | 14 -------------- 73 files changed, 15 insertions(+), 183 deletions(-) diff --git a/typescript/package.json b/typescript/package.json index 80db784..5cb9801 100644 --- a/typescript/package.json +++ b/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@freenetorg/freenet-stdlib", - "version": "0.0.6", + "version": "0.0.7", "description": "Freenet standard library and utils", "main": "src/index.ts", "files": [ @@ -25,7 +25,7 @@ "build": "tsc", "prod.package": "./package.prod.sh", "dev.package": "./package.dev.sh dev", - "flatc-schemas": "bash -c \"flatc --ts --gen-object-api -o ./src ../../schemas/flatbuffers/*\"" + "flatc-schemas": "bash -c \"flatc --ts --gen-object-api -o ./src ../schemas/flatbuffers/*\"" }, "license": "MIT+APACHE-2.0", "homepage": "https://github.com/freenet/freenet-core", diff --git a/typescript/src/client-request.ts b/typescript/src/client-request.ts index f8d4d39..2c9a687 100644 --- a/typescript/src/client-request.ts +++ b/typescript/src/client-request.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - export { ApplicationMessages, ApplicationMessagesT } from './client-request/application-messages.js'; export { Authenticate, AuthenticateT } from './client-request/authenticate.js'; export { ClientRequest, ClientRequestT } from './client-request/client-request.js'; @@ -22,7 +20,6 @@ export { GetSecretRequestType, GetSecretRequestTypeT } from './client-request/ge export { InboundDelegateMsg, InboundDelegateMsgT } from './client-request/inbound-delegate-msg.js'; export { InboundDelegateMsgType } from './client-request/inbound-delegate-msg-type.js'; export { Put, PutT } from './client-request/put.js'; -export { RandomBytes, RandomBytesT } from './client-request/random-bytes.js'; export { RegisterDelegate, RegisterDelegateT } from './client-request/register-delegate.js'; export { RelatedContract, RelatedContractT } from './client-request/related-contract.js'; export { RelatedContracts, RelatedContractsT } from './client-request/related-contracts.js'; diff --git a/typescript/src/client-request/application-messages.ts b/typescript/src/client-request/application-messages.ts index b517ca6..595792c 100644 --- a/typescript/src/client-request/application-messages.ts +++ b/typescript/src/client-request/application-messages.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DelegateKey, DelegateKeyT } from '../client-request/delegate-key.js'; diff --git a/typescript/src/client-request/authenticate.ts b/typescript/src/client-request/authenticate.ts index 91407a8..906b142 100644 --- a/typescript/src/client-request/authenticate.ts +++ b/typescript/src/client-request/authenticate.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/client-request/client-request-type.ts b/typescript/src/client-request/client-request-type.ts index 4ab3f2e..20a9b8f 100644 --- a/typescript/src/client-request/client-request-type.ts +++ b/typescript/src/client-request/client-request-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { Authenticate, AuthenticateT } from '../client-request/authenticate.js'; import { ContractRequest, ContractRequestT } from '../client-request/contract-request.js'; import { DelegateRequest, DelegateRequestT } from '../client-request/delegate-request.js'; diff --git a/typescript/src/client-request/client-request.ts b/typescript/src/client-request/client-request.ts index 0e4099c..99da38b 100644 --- a/typescript/src/client-request/client-request.ts +++ b/typescript/src/client-request/client-request.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { Authenticate, AuthenticateT } from '../client-request/authenticate.js'; diff --git a/typescript/src/client-request/client-response.ts b/typescript/src/client-request/client-response.ts index bd2fc62..bd56ebe 100644 --- a/typescript/src/client-request/client-response.ts +++ b/typescript/src/client-request/client-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/client-request/contract-request-type.ts b/typescript/src/client-request/contract-request-type.ts index 70bea97..f11e9d4 100644 --- a/typescript/src/client-request/contract-request-type.ts +++ b/typescript/src/client-request/contract-request-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { Get, GetT } from '../client-request/get.js'; import { Put, PutT } from '../client-request/put.js'; import { Subscribe, SubscribeT } from '../client-request/subscribe.js'; diff --git a/typescript/src/client-request/contract-request.ts b/typescript/src/client-request/contract-request.ts index a26efce..2205aa0 100644 --- a/typescript/src/client-request/contract-request.ts +++ b/typescript/src/client-request/contract-request.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractRequestType, unionToContractRequestType, unionListToContractRequestType } from '../client-request/contract-request-type.js'; diff --git a/typescript/src/client-request/delegate-code.ts b/typescript/src/client-request/delegate-code.ts index 775c3a8..bea0046 100644 --- a/typescript/src/client-request/delegate-code.ts +++ b/typescript/src/client-request/delegate-code.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/client-request/delegate-container.ts b/typescript/src/client-request/delegate-container.ts index 686df38..198276c 100644 --- a/typescript/src/client-request/delegate-container.ts +++ b/typescript/src/client-request/delegate-container.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DelegateType, unionToDelegateType, unionListToDelegateType } from '../client-request/delegate-type.js'; diff --git a/typescript/src/client-request/delegate-context.ts b/typescript/src/client-request/delegate-context.ts index 2615d7f..0b7a341 100644 --- a/typescript/src/client-request/delegate-context.ts +++ b/typescript/src/client-request/delegate-context.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/client-request/delegate-key.ts b/typescript/src/client-request/delegate-key.ts index 97c02cb..d740f53 100644 --- a/typescript/src/client-request/delegate-key.ts +++ b/typescript/src/client-request/delegate-key.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/client-request/delegate-request-type.ts b/typescript/src/client-request/delegate-request-type.ts index 44a4493..3427fbc 100644 --- a/typescript/src/client-request/delegate-request-type.ts +++ b/typescript/src/client-request/delegate-request-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { ApplicationMessages, ApplicationMessagesT } from '../client-request/application-messages.js'; import { GetSecretRequestType, GetSecretRequestTypeT } from '../client-request/get-secret-request-type.js'; import { RegisterDelegate, RegisterDelegateT } from '../client-request/register-delegate.js'; diff --git a/typescript/src/client-request/delegate-request.ts b/typescript/src/client-request/delegate-request.ts index 13250e5..83261f1 100644 --- a/typescript/src/client-request/delegate-request.ts +++ b/typescript/src/client-request/delegate-request.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ApplicationMessages, ApplicationMessagesT } from '../client-request/application-messages.js'; diff --git a/typescript/src/client-request/delegate-type.ts b/typescript/src/client-request/delegate-type.ts index 7286e91..d6290ca 100644 --- a/typescript/src/client-request/delegate-type.ts +++ b/typescript/src/client-request/delegate-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { WasmDelegateV1, WasmDelegateV1T } from '../client-request/wasm-delegate-v1.js'; diff --git a/typescript/src/client-request/disconnect.ts b/typescript/src/client-request/disconnect.ts index b640c04..757ce33 100644 --- a/typescript/src/client-request/disconnect.ts +++ b/typescript/src/client-request/disconnect.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/client-request/get-secret-request-type.ts b/typescript/src/client-request/get-secret-request-type.ts index 19c95c3..04a95c6 100644 --- a/typescript/src/client-request/get-secret-request-type.ts +++ b/typescript/src/client-request/get-secret-request-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DelegateKey, DelegateKeyT } from '../client-request/delegate-key.js'; diff --git a/typescript/src/client-request/get.ts b/typescript/src/client-request/get.ts index 8ccd42d..882919f 100644 --- a/typescript/src/client-request/get.ts +++ b/typescript/src/client-request/get.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractKey, ContractKeyT } from '../common/contract-key.js'; diff --git a/typescript/src/client-request/inbound-delegate-msg-type.ts b/typescript/src/client-request/inbound-delegate-msg-type.ts index f103791..1a18077 100644 --- a/typescript/src/client-request/inbound-delegate-msg-type.ts +++ b/typescript/src/client-request/inbound-delegate-msg-type.ts @@ -1,8 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - -import { RandomBytes, RandomBytesT } from '../client-request/random-bytes.js'; import { UserInputResponse, UserInputResponseT } from '../client-request/user-input-response.js'; import { ApplicationMessage, ApplicationMessageT } from '../common/application-message.js'; import { GetSecretRequest, GetSecretRequestT } from '../common/get-secret-request.js'; @@ -13,20 +10,18 @@ export enum InboundDelegateMsgType { NONE = 0, common_ApplicationMessage = 1, common_GetSecretResponse = 2, - RandomBytes = 3, - UserInputResponse = 4, - common_GetSecretRequest = 5 + UserInputResponse = 3, + common_GetSecretRequest = 4 } export function unionToInboundDelegateMsgType( type: InboundDelegateMsgType, - accessor: (obj:ApplicationMessage|GetSecretRequest|GetSecretResponse|RandomBytes|UserInputResponse) => ApplicationMessage|GetSecretRequest|GetSecretResponse|RandomBytes|UserInputResponse|null -): ApplicationMessage|GetSecretRequest|GetSecretResponse|RandomBytes|UserInputResponse|null { + accessor: (obj:ApplicationMessage|GetSecretRequest|GetSecretResponse|UserInputResponse) => ApplicationMessage|GetSecretRequest|GetSecretResponse|UserInputResponse|null +): ApplicationMessage|GetSecretRequest|GetSecretResponse|UserInputResponse|null { switch(InboundDelegateMsgType[type]) { case 'NONE': return null; case 'common_ApplicationMessage': return accessor(new ApplicationMessage())! as ApplicationMessage; case 'common_GetSecretResponse': return accessor(new GetSecretResponse())! as GetSecretResponse; - case 'RandomBytes': return accessor(new RandomBytes())! as RandomBytes; case 'UserInputResponse': return accessor(new UserInputResponse())! as UserInputResponse; case 'common_GetSecretRequest': return accessor(new GetSecretRequest())! as GetSecretRequest; default: return null; @@ -35,14 +30,13 @@ export function unionToInboundDelegateMsgType( export function unionListToInboundDelegateMsgType( type: InboundDelegateMsgType, - accessor: (index: number, obj:ApplicationMessage|GetSecretRequest|GetSecretResponse|RandomBytes|UserInputResponse) => ApplicationMessage|GetSecretRequest|GetSecretResponse|RandomBytes|UserInputResponse|null, + accessor: (index: number, obj:ApplicationMessage|GetSecretRequest|GetSecretResponse|UserInputResponse) => ApplicationMessage|GetSecretRequest|GetSecretResponse|UserInputResponse|null, index: number -): ApplicationMessage|GetSecretRequest|GetSecretResponse|RandomBytes|UserInputResponse|null { +): ApplicationMessage|GetSecretRequest|GetSecretResponse|UserInputResponse|null { switch(InboundDelegateMsgType[type]) { case 'NONE': return null; case 'common_ApplicationMessage': return accessor(index, new ApplicationMessage())! as ApplicationMessage; case 'common_GetSecretResponse': return accessor(index, new GetSecretResponse())! as GetSecretResponse; - case 'RandomBytes': return accessor(index, new RandomBytes())! as RandomBytes; case 'UserInputResponse': return accessor(index, new UserInputResponse())! as UserInputResponse; case 'common_GetSecretRequest': return accessor(index, new GetSecretRequest())! as GetSecretRequest; default: return null; diff --git a/typescript/src/client-request/inbound-delegate-msg.ts b/typescript/src/client-request/inbound-delegate-msg.ts index ea0877e..ee3c490 100644 --- a/typescript/src/client-request/inbound-delegate-msg.ts +++ b/typescript/src/client-request/inbound-delegate-msg.ts @@ -1,11 +1,8 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { InboundDelegateMsgType, unionToInboundDelegateMsgType, unionListToInboundDelegateMsgType } from '../client-request/inbound-delegate-msg-type.js'; -import { RandomBytes, RandomBytesT } from '../client-request/random-bytes.js'; import { UserInputResponse, UserInputResponseT } from '../client-request/user-input-response.js'; import { ApplicationMessage, ApplicationMessageT } from '../common/application-message.js'; import { GetSecretRequest, GetSecretRequestT } from '../common/get-secret-request.js'; @@ -90,7 +87,7 @@ unpackTo(_o: InboundDelegateMsgT): void { export class InboundDelegateMsgT implements flatbuffers.IGeneratedObject { constructor( public inboundType: InboundDelegateMsgType = InboundDelegateMsgType.NONE, - public inbound: ApplicationMessageT|GetSecretRequestT|GetSecretResponseT|RandomBytesT|UserInputResponseT|null = null + public inbound: ApplicationMessageT|GetSecretRequestT|GetSecretResponseT|UserInputResponseT|null = null ){} diff --git a/typescript/src/client-request/put.ts b/typescript/src/client-request/put.ts index 4672eeb..a40d413 100644 --- a/typescript/src/client-request/put.ts +++ b/typescript/src/client-request/put.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { RelatedContracts, RelatedContractsT } from '../client-request/related-contracts.js'; diff --git a/typescript/src/client-request/register-delegate.ts b/typescript/src/client-request/register-delegate.ts index 43ee0f7..ea0780c 100644 --- a/typescript/src/client-request/register-delegate.ts +++ b/typescript/src/client-request/register-delegate.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DelegateContainer, DelegateContainerT } from '../client-request/delegate-container.js'; diff --git a/typescript/src/client-request/related-contract.ts b/typescript/src/client-request/related-contract.ts index 6255598..11ab140 100644 --- a/typescript/src/client-request/related-contract.ts +++ b/typescript/src/client-request/related-contract.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractInstanceId, ContractInstanceIdT } from '../common/contract-instance-id.js'; diff --git a/typescript/src/client-request/related-contracts.ts b/typescript/src/client-request/related-contracts.ts index 146e995..3ecaab0 100644 --- a/typescript/src/client-request/related-contracts.ts +++ b/typescript/src/client-request/related-contracts.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { RelatedContract, RelatedContractT } from '../client-request/related-contract.js'; diff --git a/typescript/src/client-request/subscribe.ts b/typescript/src/client-request/subscribe.ts index b2f62b3..bfea621 100644 --- a/typescript/src/client-request/subscribe.ts +++ b/typescript/src/client-request/subscribe.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractKey, ContractKeyT } from '../common/contract-key.js'; diff --git a/typescript/src/client-request/unregister-delegate.ts b/typescript/src/client-request/unregister-delegate.ts index 748cbd3..f58890e 100644 --- a/typescript/src/client-request/unregister-delegate.ts +++ b/typescript/src/client-request/unregister-delegate.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DelegateKey, DelegateKeyT } from '../client-request/delegate-key.js'; diff --git a/typescript/src/client-request/update.ts b/typescript/src/client-request/update.ts index 77d155a..e99311d 100644 --- a/typescript/src/client-request/update.ts +++ b/typescript/src/client-request/update.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractKey, ContractKeyT } from '../common/contract-key.js'; diff --git a/typescript/src/client-request/user-input-response.ts b/typescript/src/client-request/user-input-response.ts index a9790de..0f1fe5c 100644 --- a/typescript/src/client-request/user-input-response.ts +++ b/typescript/src/client-request/user-input-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ClientResponse, ClientResponseT } from '../client-request/client-response.js'; diff --git a/typescript/src/client-request/wasm-delegate-v1.ts b/typescript/src/client-request/wasm-delegate-v1.ts index dace619..fe237e8 100644 --- a/typescript/src/client-request/wasm-delegate-v1.ts +++ b/typescript/src/client-request/wasm-delegate-v1.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DelegateCode, DelegateCodeT } from '../client-request/delegate-code.js'; diff --git a/typescript/src/client_request.ts b/typescript/src/client_request.ts index 9092b26..8092d75 100644 --- a/typescript/src/client_request.ts +++ b/typescript/src/client_request.ts @@ -1,6 +1,4 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - export * as client_request from './client-request.js'; export * as common from './common.js'; diff --git a/typescript/src/common.ts b/typescript/src/common.ts index b124126..08689c0 100644 --- a/typescript/src/common.ts +++ b/typescript/src/common.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - export { ApplicationMessage, ApplicationMessageT } from './common/application-message.js'; export { ContractCode, ContractCodeT } from './common/contract-code.js'; export { ContractContainer, ContractContainerT } from './common/contract-container.js'; diff --git a/typescript/src/common/application-message.ts b/typescript/src/common/application-message.ts index c4e9042..d84a7cd 100644 --- a/typescript/src/common/application-message.ts +++ b/typescript/src/common/application-message.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractInstanceId, ContractInstanceIdT } from '../common/contract-instance-id.js'; diff --git a/typescript/src/common/contract-code.ts b/typescript/src/common/contract-code.ts index d5a1673..31894fd 100644 --- a/typescript/src/common/contract-code.ts +++ b/typescript/src/common/contract-code.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/common/contract-container.ts b/typescript/src/common/contract-container.ts index 22fed84..5fcc470 100644 --- a/typescript/src/common/contract-container.ts +++ b/typescript/src/common/contract-container.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractType, unionToContractType, unionListToContractType } from '../common/contract-type.js'; diff --git a/typescript/src/common/contract-instance-id.ts b/typescript/src/common/contract-instance-id.ts index 559b70d..7bad458 100644 --- a/typescript/src/common/contract-instance-id.ts +++ b/typescript/src/common/contract-instance-id.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/common/contract-key.ts b/typescript/src/common/contract-key.ts index 0b12939..d5a1c12 100644 --- a/typescript/src/common/contract-key.ts +++ b/typescript/src/common/contract-key.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractInstanceId, ContractInstanceIdT } from '../common/contract-instance-id.js'; diff --git a/typescript/src/common/contract-type.ts b/typescript/src/common/contract-type.ts index f4415bc..4d02ca2 100644 --- a/typescript/src/common/contract-type.ts +++ b/typescript/src/common/contract-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { WasmContractV1, WasmContractV1T } from '../common/wasm-contract-v1.js'; diff --git a/typescript/src/common/delta-update.ts b/typescript/src/common/delta-update.ts index 6485cb3..edc7008 100644 --- a/typescript/src/common/delta-update.ts +++ b/typescript/src/common/delta-update.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/common/get-secret-request.ts b/typescript/src/common/get-secret-request.ts index eea5ed6..8870572 100644 --- a/typescript/src/common/get-secret-request.ts +++ b/typescript/src/common/get-secret-request.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { SecretsId, SecretsIdT } from '../common/secrets-id.js'; diff --git a/typescript/src/common/get-secret-response.ts b/typescript/src/common/get-secret-response.ts index f635e9d..55b5a85 100644 --- a/typescript/src/common/get-secret-response.ts +++ b/typescript/src/common/get-secret-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { SecretsId, SecretsIdT } from '../common/secrets-id.js'; diff --git a/typescript/src/common/related-delta-update.ts b/typescript/src/common/related-delta-update.ts index 2cd79aa..de8b55c 100644 --- a/typescript/src/common/related-delta-update.ts +++ b/typescript/src/common/related-delta-update.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractInstanceId, ContractInstanceIdT } from '../common/contract-instance-id.js'; diff --git a/typescript/src/common/related-state-and-delta-update.ts b/typescript/src/common/related-state-and-delta-update.ts index 429e52e..3a9cf89 100644 --- a/typescript/src/common/related-state-and-delta-update.ts +++ b/typescript/src/common/related-state-and-delta-update.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractInstanceId, ContractInstanceIdT } from '../common/contract-instance-id.js'; diff --git a/typescript/src/common/related-state-update.ts b/typescript/src/common/related-state-update.ts index 1247fa1..be900d1 100644 --- a/typescript/src/common/related-state-update.ts +++ b/typescript/src/common/related-state-update.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractInstanceId, ContractInstanceIdT } from '../common/contract-instance-id.js'; diff --git a/typescript/src/common/secrets-id.ts b/typescript/src/common/secrets-id.ts index 2f21975..41a1cfc 100644 --- a/typescript/src/common/secrets-id.ts +++ b/typescript/src/common/secrets-id.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/common/state-and-delta-update.ts b/typescript/src/common/state-and-delta-update.ts index 88140b2..518a891 100644 --- a/typescript/src/common/state-and-delta-update.ts +++ b/typescript/src/common/state-and-delta-update.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/common/state-update.ts b/typescript/src/common/state-update.ts index cef58c2..2838b4a 100644 --- a/typescript/src/common/state-update.ts +++ b/typescript/src/common/state-update.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/common/update-data-type.ts b/typescript/src/common/update-data-type.ts index beb07f6..35a6c33 100644 --- a/typescript/src/common/update-data-type.ts +++ b/typescript/src/common/update-data-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { DeltaUpdate, DeltaUpdateT } from '../common/delta-update.js'; import { RelatedDeltaUpdate, RelatedDeltaUpdateT } from '../common/related-delta-update.js'; import { RelatedStateAndDeltaUpdate, RelatedStateAndDeltaUpdateT } from '../common/related-state-and-delta-update.js'; diff --git a/typescript/src/common/update-data.ts b/typescript/src/common/update-data.ts index 0c3d408..64956f3 100644 --- a/typescript/src/common/update-data.ts +++ b/typescript/src/common/update-data.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DeltaUpdate, DeltaUpdateT } from '../common/delta-update.js'; diff --git a/typescript/src/common/wasm-contract-v1.ts b/typescript/src/common/wasm-contract-v1.ts index ee04c71..b7d4e71 100644 --- a/typescript/src/common/wasm-contract-v1.ts +++ b/typescript/src/common/wasm-contract-v1.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractCode, ContractCodeT } from '../common/contract-code.js'; diff --git a/typescript/src/host-response.ts b/typescript/src/host-response.ts index 10522ac..c6a0fbb 100644 --- a/typescript/src/host-response.ts +++ b/typescript/src/host-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - export { ClientResponse, ClientResponseT } from './host-response/client-response.js'; export { ContextUpdated, ContextUpdatedT } from './host-response/context-updated.js'; export { ContractResponse, ContractResponseT } from './host-response/contract-response.js'; @@ -17,7 +15,6 @@ export { Ok, OkT } from './host-response/ok.js'; export { OutboundDelegateMsg, OutboundDelegateMsgT } from './host-response/outbound-delegate-msg.js'; export { OutboundDelegateMsgType } from './host-response/outbound-delegate-msg-type.js'; export { PutResponse, PutResponseT } from './host-response/put-response.js'; -export { RandomBytesRequest, RandomBytesRequestT } from './host-response/random-bytes-request.js'; export { RequestUserInput, RequestUserInputT } from './host-response/request-user-input.js'; export { SetSecretRequest, SetSecretRequestT } from './host-response/set-secret-request.js'; export { UpdateNotification, UpdateNotificationT } from './host-response/update-notification.js'; diff --git a/typescript/src/host-response/client-response.ts b/typescript/src/host-response/client-response.ts index 3a123f4..91c7b4f 100644 --- a/typescript/src/host-response/client-response.ts +++ b/typescript/src/host-response/client-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/host-response/context-updated.ts b/typescript/src/host-response/context-updated.ts index 335f6f0..fd81408 100644 --- a/typescript/src/host-response/context-updated.ts +++ b/typescript/src/host-response/context-updated.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/host-response/contract-response-type.ts b/typescript/src/host-response/contract-response-type.ts index 0db6186..1a055d9 100644 --- a/typescript/src/host-response/contract-response-type.ts +++ b/typescript/src/host-response/contract-response-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { GetResponse, GetResponseT } from '../host-response/get-response.js'; import { PutResponse, PutResponseT } from '../host-response/put-response.js'; import { UpdateNotification, UpdateNotificationT } from '../host-response/update-notification.js'; diff --git a/typescript/src/host-response/contract-response.ts b/typescript/src/host-response/contract-response.ts index 6d4c850..646ba39 100644 --- a/typescript/src/host-response/contract-response.ts +++ b/typescript/src/host-response/contract-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractResponseType, unionToContractResponseType, unionListToContractResponseType } from '../host-response/contract-response-type.js'; diff --git a/typescript/src/host-response/delegate-key.ts b/typescript/src/host-response/delegate-key.ts index 97c02cb..d740f53 100644 --- a/typescript/src/host-response/delegate-key.ts +++ b/typescript/src/host-response/delegate-key.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/host-response/delegate-response.ts b/typescript/src/host-response/delegate-response.ts index cd30fb8..7cecb7f 100644 --- a/typescript/src/host-response/delegate-response.ts +++ b/typescript/src/host-response/delegate-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { DelegateKey, DelegateKeyT } from '../host-response/delegate-key.js'; diff --git a/typescript/src/host-response/error.ts b/typescript/src/host-response/error.ts index 249603f..387ff11 100644 --- a/typescript/src/host-response/error.ts +++ b/typescript/src/host-response/error.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/host-response/generate-rand-data.ts b/typescript/src/host-response/generate-rand-data.ts index 0d74901..6f4d8dc 100644 --- a/typescript/src/host-response/generate-rand-data.ts +++ b/typescript/src/host-response/generate-rand-data.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/host-response/get-response.ts b/typescript/src/host-response/get-response.ts index 4cce00e..5848c86 100644 --- a/typescript/src/host-response/get-response.ts +++ b/typescript/src/host-response/get-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractContainer, ContractContainerT } from '../common/contract-container.js'; diff --git a/typescript/src/host-response/host-response-type.ts b/typescript/src/host-response/host-response-type.ts index eb9be4c..b7fa7fe 100644 --- a/typescript/src/host-response/host-response-type.ts +++ b/typescript/src/host-response/host-response-type.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { ContractResponse, ContractResponseT } from '../host-response/contract-response.js'; import { DelegateResponse, DelegateResponseT } from '../host-response/delegate-response.js'; import { Error, ErrorT } from '../host-response/error.js'; diff --git a/typescript/src/host-response/host-response.ts b/typescript/src/host-response/host-response.ts index 1ce1ee1..d6b63e0 100644 --- a/typescript/src/host-response/host-response.ts +++ b/typescript/src/host-response/host-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractResponse, ContractResponseT } from '../host-response/contract-response.js'; diff --git a/typescript/src/host-response/ok.ts b/typescript/src/host-response/ok.ts index a4b8ec2..33f14c2 100644 --- a/typescript/src/host-response/ok.ts +++ b/typescript/src/host-response/ok.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; diff --git a/typescript/src/host-response/outbound-delegate-msg-type.ts b/typescript/src/host-response/outbound-delegate-msg-type.ts index 192146c..289bbb5 100644 --- a/typescript/src/host-response/outbound-delegate-msg-type.ts +++ b/typescript/src/host-response/outbound-delegate-msg-type.ts @@ -1,12 +1,9 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import { ApplicationMessage, ApplicationMessageT } from '../common/application-message.js'; import { GetSecretRequest, GetSecretRequestT } from '../common/get-secret-request.js'; import { GetSecretResponse, GetSecretResponseT } from '../common/get-secret-response.js'; import { ContextUpdated, ContextUpdatedT } from '../host-response/context-updated.js'; -import { RandomBytesRequest, RandomBytesRequestT } from '../host-response/random-bytes-request.js'; import { RequestUserInput, RequestUserInputT } from '../host-response/request-user-input.js'; import { SetSecretRequest, SetSecretRequestT } from '../host-response/set-secret-request.js'; @@ -18,14 +15,13 @@ export enum OutboundDelegateMsgType { ContextUpdated = 3, common_GetSecretRequest = 4, SetSecretRequest = 5, - RandomBytesRequest = 6, - common_GetSecretResponse = 7 + common_GetSecretResponse = 6 } export function unionToOutboundDelegateMsgType( type: OutboundDelegateMsgType, - accessor: (obj:ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RandomBytesRequest|RequestUserInput|SetSecretRequest) => ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RandomBytesRequest|RequestUserInput|SetSecretRequest|null -): ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RandomBytesRequest|RequestUserInput|SetSecretRequest|null { + accessor: (obj:ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RequestUserInput|SetSecretRequest) => ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RequestUserInput|SetSecretRequest|null +): ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RequestUserInput|SetSecretRequest|null { switch(OutboundDelegateMsgType[type]) { case 'NONE': return null; case 'common_ApplicationMessage': return accessor(new ApplicationMessage())! as ApplicationMessage; @@ -33,7 +29,6 @@ export function unionToOutboundDelegateMsgType( case 'ContextUpdated': return accessor(new ContextUpdated())! as ContextUpdated; case 'common_GetSecretRequest': return accessor(new GetSecretRequest())! as GetSecretRequest; case 'SetSecretRequest': return accessor(new SetSecretRequest())! as SetSecretRequest; - case 'RandomBytesRequest': return accessor(new RandomBytesRequest())! as RandomBytesRequest; case 'common_GetSecretResponse': return accessor(new GetSecretResponse())! as GetSecretResponse; default: return null; } @@ -41,9 +36,9 @@ export function unionToOutboundDelegateMsgType( export function unionListToOutboundDelegateMsgType( type: OutboundDelegateMsgType, - accessor: (index: number, obj:ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RandomBytesRequest|RequestUserInput|SetSecretRequest) => ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RandomBytesRequest|RequestUserInput|SetSecretRequest|null, + accessor: (index: number, obj:ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RequestUserInput|SetSecretRequest) => ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RequestUserInput|SetSecretRequest|null, index: number -): ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RandomBytesRequest|RequestUserInput|SetSecretRequest|null { +): ApplicationMessage|ContextUpdated|GetSecretRequest|GetSecretResponse|RequestUserInput|SetSecretRequest|null { switch(OutboundDelegateMsgType[type]) { case 'NONE': return null; case 'common_ApplicationMessage': return accessor(index, new ApplicationMessage())! as ApplicationMessage; @@ -51,7 +46,6 @@ export function unionListToOutboundDelegateMsgType( case 'ContextUpdated': return accessor(index, new ContextUpdated())! as ContextUpdated; case 'common_GetSecretRequest': return accessor(index, new GetSecretRequest())! as GetSecretRequest; case 'SetSecretRequest': return accessor(index, new SetSecretRequest())! as SetSecretRequest; - case 'RandomBytesRequest': return accessor(index, new RandomBytesRequest())! as RandomBytesRequest; case 'common_GetSecretResponse': return accessor(index, new GetSecretResponse())! as GetSecretResponse; default: return null; } diff --git a/typescript/src/host-response/outbound-delegate-msg.ts b/typescript/src/host-response/outbound-delegate-msg.ts index 21e37e3..7e099dd 100644 --- a/typescript/src/host-response/outbound-delegate-msg.ts +++ b/typescript/src/host-response/outbound-delegate-msg.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ApplicationMessage, ApplicationMessageT } from '../common/application-message.js'; @@ -9,7 +7,6 @@ import { GetSecretRequest, GetSecretRequestT } from '../common/get-secret-reques import { GetSecretResponse, GetSecretResponseT } from '../common/get-secret-response.js'; import { ContextUpdated, ContextUpdatedT } from '../host-response/context-updated.js'; import { OutboundDelegateMsgType, unionToOutboundDelegateMsgType, unionListToOutboundDelegateMsgType } from '../host-response/outbound-delegate-msg-type.js'; -import { RandomBytesRequest, RandomBytesRequestT } from '../host-response/random-bytes-request.js'; import { RequestUserInput, RequestUserInputT } from '../host-response/request-user-input.js'; import { SetSecretRequest, SetSecretRequestT } from '../host-response/set-secret-request.js'; @@ -92,7 +89,7 @@ unpackTo(_o: OutboundDelegateMsgT): void { export class OutboundDelegateMsgT implements flatbuffers.IGeneratedObject { constructor( public inboundType: OutboundDelegateMsgType = OutboundDelegateMsgType.NONE, - public inbound: ApplicationMessageT|ContextUpdatedT|GetSecretRequestT|GetSecretResponseT|RandomBytesRequestT|RequestUserInputT|SetSecretRequestT|null = null + public inbound: ApplicationMessageT|ContextUpdatedT|GetSecretRequestT|GetSecretResponseT|RequestUserInputT|SetSecretRequestT|null = null ){} diff --git a/typescript/src/host-response/put-response.ts b/typescript/src/host-response/put-response.ts index 3182a31..8014f3c 100644 --- a/typescript/src/host-response/put-response.ts +++ b/typescript/src/host-response/put-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractKey, ContractKeyT } from '../common/contract-key.js'; diff --git a/typescript/src/host-response/request-user-input.ts b/typescript/src/host-response/request-user-input.ts index 0bccc9c..c5e6721 100644 --- a/typescript/src/host-response/request-user-input.ts +++ b/typescript/src/host-response/request-user-input.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ClientResponse, ClientResponseT } from '../host-response/client-response.js'; diff --git a/typescript/src/host-response/set-secret-request.ts b/typescript/src/host-response/set-secret-request.ts index 7ad448d..fa4d27a 100644 --- a/typescript/src/host-response/set-secret-request.ts +++ b/typescript/src/host-response/set-secret-request.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { SecretsId, SecretsIdT } from '../common/secrets-id.js'; diff --git a/typescript/src/host-response/update-notification.ts b/typescript/src/host-response/update-notification.ts index b3bfc54..604ac78 100644 --- a/typescript/src/host-response/update-notification.ts +++ b/typescript/src/host-response/update-notification.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractKey, ContractKeyT } from '../common/contract-key.js'; diff --git a/typescript/src/host-response/update-response.ts b/typescript/src/host-response/update-response.ts index 433318e..4d91bf1 100644 --- a/typescript/src/host-response/update-response.ts +++ b/typescript/src/host-response/update-response.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ContractKey, ContractKeyT } from '../common/contract-key.js'; diff --git a/typescript/src/host-response/user-input-request.ts b/typescript/src/host-response/user-input-request.ts index 17cf832..edb1d79 100644 --- a/typescript/src/host-response/user-input-request.ts +++ b/typescript/src/host-response/user-input-request.ts @@ -1,7 +1,5 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - import * as flatbuffers from 'flatbuffers'; import { ClientResponse, ClientResponseT } from '../host-response/client-response.js'; diff --git a/typescript/src/host_response.ts b/typescript/src/host_response.ts index cd9a73c..7af8b2f 100644 --- a/typescript/src/host_response.ts +++ b/typescript/src/host_response.ts @@ -1,6 +1,4 @@ // automatically generated by the FlatBuffers compiler, do not modify -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, @typescript-eslint/no-non-null-assertion */ - export * as common from './common.js'; export * as host_response from './host-response.js'; diff --git a/typescript/src/websocket-interface.ts b/typescript/src/websocket-interface.ts index 09f5870..a44aee7 100644 --- a/typescript/src/websocket-interface.ts +++ b/typescript/src/websocket-interface.ts @@ -29,7 +29,6 @@ import { InboundDelegateMsgT, InboundDelegateMsgType, PutT, - RandomBytesT, RegisterDelegateT, RelatedContractsT, SubscribeT, @@ -54,7 +53,6 @@ import { HostResponseType, OutboundDelegateMsgT, OutboundDelegateMsgType, - RandomBytesRequestT, RequestUserInputT, SetSecretRequestT, } from "./host-response"; @@ -375,11 +373,6 @@ export class DisconnectRequest extends DisconnectT { } // Delegate -/** - * Representation of the RandomBytes message - * @public - */ -export type RandomBytes = RandomBytesT; /** * Representation of the UserInputResponse message * @public @@ -389,7 +382,6 @@ export type UserInputResponse = UserInputResponseT; export type InboundMessage = | ApplicationMessage | GetSecretResponse - | RandomBytes | UserInputResponse | GetSecretRequest; @@ -535,11 +527,6 @@ export class UpdateNotification extends UpdateNotificationT { * @public */ export type ContextUpdated = ContextUpdatedT; -/** - * Representation of RandomBytesRequest message - * @public - */ -export type RandomBytesRequest = RandomBytesRequestT; /** * Representation of RequestUserInput message * @public @@ -561,7 +548,6 @@ export type OutboundMessage = | ContextUpdated | GetSecretRequest | SetSecretRequest - | RandomBytesRequest | GetSecretResponse; export class OutboundDelegateMsg extends OutboundDelegateMsgT {