@brokerize/client 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -0
- package/dist/apiCtx.d.ts +71 -0
- package/dist/apiCtx.js +86 -0
- package/dist/authorizedApiContext.d.ts +137 -0
- package/dist/authorizedApiContext.js +407 -0
- package/dist/client.d.ts +13144 -0
- package/dist/dependencyDefinitions/abortController.d.ts +16 -0
- package/dist/dependencyDefinitions/abortController.js +2 -0
- package/dist/dependencyDefinitions/abortSignal.d.ts +13 -0
- package/dist/dependencyDefinitions/abortSignal.js +2 -0
- package/dist/dependencyDefinitions/fetch.d.ts +160 -0
- package/dist/dependencyDefinitions/fetch.js +2 -0
- package/dist/dependencyDefinitions/readableStream.d.ts +68 -0
- package/dist/dependencyDefinitions/readableStream.js +1 -0
- package/dist/dependencyDefinitions/textDecoder.d.ts +39 -0
- package/dist/dependencyDefinitions/textDecoder.js +1 -0
- package/dist/dependencyDefinitions/webSocket.d.ts +182 -0
- package/dist/dependencyDefinitions/webSocket.js +2 -0
- package/dist/dependencyDefinitions/xmlHttpRequest.d.ts +245 -0
- package/dist/dependencyDefinitions/xmlHttpRequest.js +2 -0
- package/dist/errors.d.ts +67 -0
- package/dist/errors.js +25 -0
- package/dist/index.d.ts +41 -0
- package/dist/index.js +101 -0
- package/dist/modelExports.d.ts +154 -0
- package/dist/modelExports.js +21 -0
- package/dist/pollingSubscription.d.ts +14 -0
- package/dist/pollingSubscription.js +53 -0
- package/dist/swagger/apis/AdminApi.d.ts +129 -0
- package/dist/swagger/apis/AdminApi.js +389 -0
- package/dist/swagger/apis/BrokerLoginApi.d.ts +59 -0
- package/dist/swagger/apis/BrokerLoginApi.js +169 -0
- package/dist/swagger/apis/CancelOrderApi.d.ts +41 -0
- package/dist/swagger/apis/CancelOrderApi.js +100 -0
- package/dist/swagger/apis/ChangeOrderApi.d.ts +53 -0
- package/dist/swagger/apis/ChangeOrderApi.js +141 -0
- package/dist/swagger/apis/DefaultApi.d.ts +228 -0
- package/dist/swagger/apis/DefaultApi.js +787 -0
- package/dist/swagger/apis/DemobrokerApi.d.ts +58 -0
- package/dist/swagger/apis/DemobrokerApi.js +157 -0
- package/dist/swagger/apis/ExportApi.d.ts +28 -0
- package/dist/swagger/apis/ExportApi.js +57 -0
- package/dist/swagger/apis/MetaApi.d.ts +53 -0
- package/dist/swagger/apis/MetaApi.js +128 -0
- package/dist/swagger/apis/SecuritiesApi.d.ts +39 -0
- package/dist/swagger/apis/SecuritiesApi.js +91 -0
- package/dist/swagger/apis/TradeApi.d.ts +98 -0
- package/dist/swagger/apis/TradeApi.js +312 -0
- package/dist/swagger/apis/TradeDraftApi.d.ts +74 -0
- package/dist/swagger/apis/TradeDraftApi.js +203 -0
- package/dist/swagger/apis/UserApi.d.ts +51 -0
- package/dist/swagger/apis/UserApi.js +152 -0
- package/dist/swagger/apis/index.d.ts +12 -0
- package/dist/swagger/apis/index.js +14 -0
- package/dist/swagger/index.d.ts +3 -0
- package/dist/swagger/index.js +5 -0
- package/dist/swagger/models/AccessTokenItem.d.ts +45 -0
- package/dist/swagger/models/AccessTokenItem.js +43 -0
- package/dist/swagger/models/AccessTokenResult.d.ts +33 -0
- package/dist/swagger/models/AccessTokenResult.js +39 -0
- package/dist/swagger/models/AddOAuthReturnToUrlRequest.d.ts +27 -0
- package/dist/swagger/models/AddOAuthReturnToUrlRequest.js +37 -0
- package/dist/swagger/models/AddOriginRequest.d.ts +27 -0
- package/dist/swagger/models/AddOriginRequest.js +37 -0
- package/dist/swagger/models/AddSessionCompleteChallengeParams.d.ts +33 -0
- package/dist/swagger/models/AddSessionCompleteChallengeParams.js +39 -0
- package/dist/swagger/models/AddSessionParams.d.ts +45 -0
- package/dist/swagger/models/AddSessionParams.js +43 -0
- package/dist/swagger/models/Amount.d.ts +72 -0
- package/dist/swagger/models/Amount.js +50 -0
- package/dist/swagger/models/AuthInfo.d.ts +54 -0
- package/dist/swagger/models/AuthInfo.js +53 -0
- package/dist/swagger/models/AuthMethod.d.ts +28 -0
- package/dist/swagger/models/AuthMethod.js +51 -0
- package/dist/swagger/models/AuthMethodChallengeResponse.d.ts +94 -0
- package/dist/swagger/models/AuthMethodChallengeResponse.js +68 -0
- package/dist/swagger/models/AuthMethodChallengeResponseAllOf.d.ts +34 -0
- package/dist/swagger/models/AuthMethodChallengeResponseAllOf.js +44 -0
- package/dist/swagger/models/AuthMethodChallengeResponseSpecifics.d.ts +70 -0
- package/dist/swagger/models/AuthMethodChallengeResponseSpecifics.js +64 -0
- package/dist/swagger/models/AuthMethodDecoupled.d.ts +62 -0
- package/dist/swagger/models/AuthMethodDecoupled.js +56 -0
- package/dist/swagger/models/AuthMethodDecoupledAllOf.d.ts +34 -0
- package/dist/swagger/models/AuthMethodDecoupledAllOf.js +44 -0
- package/dist/swagger/models/AuthMethodDecoupledSpecifics.d.ts +46 -0
- package/dist/swagger/models/AuthMethodDecoupledSpecifics.js +48 -0
- package/dist/swagger/models/AuthMethodFlow.d.ts +23 -0
- package/dist/swagger/models/AuthMethodFlow.js +30 -0
- package/dist/swagger/models/AuthMethodTan.d.ts +67 -0
- package/dist/swagger/models/AuthMethodTan.js +58 -0
- package/dist/swagger/models/AuthMethodTanAllOf.d.ts +34 -0
- package/dist/swagger/models/AuthMethodTanAllOf.js +44 -0
- package/dist/swagger/models/AuthMethodTanSpecifics.d.ts +52 -0
- package/dist/swagger/models/AuthMethodTanSpecifics.js +52 -0
- package/dist/swagger/models/AvailablePermissionsNode.d.ts +39 -0
- package/dist/swagger/models/AvailablePermissionsNode.js +46 -0
- package/dist/swagger/models/BitpandaClientCfg.d.ts +33 -0
- package/dist/swagger/models/BitpandaClientCfg.js +44 -0
- package/dist/swagger/models/BrokerClientCfg.d.ts +28 -0
- package/dist/swagger/models/BrokerClientCfg.js +41 -0
- package/dist/swagger/models/BrokerEnvFilterType.d.ts +24 -0
- package/dist/swagger/models/BrokerEnvFilterType.js +31 -0
- package/dist/swagger/models/BrokerEnvironment.d.ts +39 -0
- package/dist/swagger/models/BrokerEnvironment.js +41 -0
- package/dist/swagger/models/BrokerLoginForm.d.ts +34 -0
- package/dist/swagger/models/BrokerLoginForm.js +40 -0
- package/dist/swagger/models/BrokerLoginFormField.d.ts +41 -0
- package/dist/swagger/models/BrokerLoginFormField.js +46 -0
- package/dist/swagger/models/BrokerMeta.d.ts +74 -0
- package/dist/swagger/models/BrokerMeta.js +60 -0
- package/dist/swagger/models/BrokerMetaFeatures.d.ts +53 -0
- package/dist/swagger/models/BrokerMetaFeatures.js +55 -0
- package/dist/swagger/models/BrokerMetaImages.d.ts +45 -0
- package/dist/swagger/models/BrokerMetaImages.js +43 -0
- package/dist/swagger/models/CancelOrderChallengeParams.d.ts +27 -0
- package/dist/swagger/models/CancelOrderChallengeParams.js +37 -0
- package/dist/swagger/models/CancelOrderChallengeResponse.d.ts +52 -0
- package/dist/swagger/models/CancelOrderChallengeResponse.js +50 -0
- package/dist/swagger/models/CancelOrderChallengeResponseAllOf.d.ts +34 -0
- package/dist/swagger/models/CancelOrderChallengeResponseAllOf.js +44 -0
- package/dist/swagger/models/CancelOrderChallengeResponseSpecifics.d.ts +39 -0
- package/dist/swagger/models/CancelOrderChallengeResponseSpecifics.js +44 -0
- package/dist/swagger/models/CancelOrderParams.d.ts +25 -0
- package/dist/swagger/models/CancelOrderParams.js +46 -0
- package/dist/swagger/models/CancelOrderParamsMode.d.ts +22 -0
- package/dist/swagger/models/CancelOrderParamsMode.js +29 -0
- package/dist/swagger/models/CashAccount.d.ts +51 -0
- package/dist/swagger/models/CashAccount.js +43 -0
- package/dist/swagger/models/CashAccountQuotes.d.ts +40 -0
- package/dist/swagger/models/CashAccountQuotes.js +49 -0
- package/dist/swagger/models/CashQuotation.d.ts +27 -0
- package/dist/swagger/models/CashQuotation.js +34 -0
- package/dist/swagger/models/Challenge.d.ts +53 -0
- package/dist/swagger/models/Challenge.js +53 -0
- package/dist/swagger/models/ChangeOrderChallengeParams.d.ts +34 -0
- package/dist/swagger/models/ChangeOrderChallengeParams.js +40 -0
- package/dist/swagger/models/ChangeOrderParams.d.ts +46 -0
- package/dist/swagger/models/ChangeOrderParams.js +47 -0
- package/dist/swagger/models/ClientConfig.d.ts +117 -0
- package/dist/swagger/models/ClientConfig.js +80 -0
- package/dist/swagger/models/ClientConfigMaintenanceStatus.d.ts +33 -0
- package/dist/swagger/models/ClientConfigMaintenanceStatus.js +44 -0
- package/dist/swagger/models/ClientConfigUpdate.d.ts +150 -0
- package/dist/swagger/models/ClientConfigUpdate.js +121 -0
- package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +69 -0
- package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.js +68 -0
- package/dist/swagger/models/ClientConfigUpdatePage.d.ts +51 -0
- package/dist/swagger/models/ClientConfigUpdatePage.js +48 -0
- package/dist/swagger/models/ClientConfigUpdateRateLimitPointsToConsume.d.ts +33 -0
- package/dist/swagger/models/ClientConfigUpdateRateLimitPointsToConsume.js +42 -0
- package/dist/swagger/models/ClientsResponseInner.d.ts +40 -0
- package/dist/swagger/models/ClientsResponseInner.js +42 -0
- package/dist/swagger/models/ConfirmOAuthParams.d.ts +33 -0
- package/dist/swagger/models/ConfirmOAuthParams.js +39 -0
- package/dist/swagger/models/ConfirmOAuthResponse.d.ts +27 -0
- package/dist/swagger/models/ConfirmOAuthResponse.js +37 -0
- package/dist/swagger/models/CostDetailsLink.d.ts +39 -0
- package/dist/swagger/models/CostDetailsLink.js +42 -0
- package/dist/swagger/models/CreateAccessTokenParams.d.ts +44 -0
- package/dist/swagger/models/CreateAccessTokenParams.js +41 -0
- package/dist/swagger/models/CreateClient200Response.d.ts +33 -0
- package/dist/swagger/models/CreateClient200Response.js +39 -0
- package/dist/swagger/models/CreateGuestUserResponse.d.ts +59 -0
- package/dist/swagger/models/CreateGuestUserResponse.js +52 -0
- package/dist/swagger/models/CreateModeSessionTan.d.ts +34 -0
- package/dist/swagger/models/CreateModeSessionTan.js +43 -0
- package/dist/swagger/models/CreateModeSessionTanAllOf.d.ts +34 -0
- package/dist/swagger/models/CreateModeSessionTanAllOf.js +44 -0
- package/dist/swagger/models/CreateOrderChallengeParams.d.ts +41 -0
- package/dist/swagger/models/CreateOrderChallengeParams.js +45 -0
- package/dist/swagger/models/CreateOrderParams.d.ts +53 -0
- package/dist/swagger/models/CreateOrderParams.js +51 -0
- package/dist/swagger/models/CreateTanChallengeParams.d.ts +27 -0
- package/dist/swagger/models/CreateTanChallengeParams.js +37 -0
- package/dist/swagger/models/CreateTradeDrafts200Response.d.ts +27 -0
- package/dist/swagger/models/CreateTradeDrafts200Response.js +37 -0
- package/dist/swagger/models/CreateTradeResponse.d.ts +27 -0
- package/dist/swagger/models/CreateTradeResponse.js +38 -0
- package/dist/swagger/models/CreatedResponseBody.d.ts +33 -0
- package/dist/swagger/models/CreatedResponseBody.js +39 -0
- package/dist/swagger/models/DecoupledOperationState.d.ts +24 -0
- package/dist/swagger/models/DecoupledOperationState.js +31 -0
- package/dist/swagger/models/DecoupledOperationStatus.d.ts +34 -0
- package/dist/swagger/models/DecoupledOperationStatus.js +41 -0
- package/dist/swagger/models/DefaultOrderValidityByOrderModel.d.ts +94 -0
- package/dist/swagger/models/DefaultOrderValidityByOrderModel.js +85 -0
- package/dist/swagger/models/DemoAccount.d.ts +40 -0
- package/dist/swagger/models/DemoAccount.js +42 -0
- package/dist/swagger/models/DemoAccountSettings.d.ts +51 -0
- package/dist/swagger/models/DemoAccountSettings.js +50 -0
- package/dist/swagger/models/DemoAccountsResponse.d.ts +28 -0
- package/dist/swagger/models/DemoAccountsResponse.js +38 -0
- package/dist/swagger/models/Direction.d.ts +22 -0
- package/dist/swagger/models/Direction.js +29 -0
- package/dist/swagger/models/EnableSessionTanParams.d.ts +28 -0
- package/dist/swagger/models/EnableSessionTanParams.js +51 -0
- package/dist/swagger/models/EnableSessionTanParamsChallengeResponse.d.ts +52 -0
- package/dist/swagger/models/EnableSessionTanParamsChallengeResponse.js +49 -0
- package/dist/swagger/models/EnableSessionTanParamsChallengeResponseAllOf.d.ts +34 -0
- package/dist/swagger/models/EnableSessionTanParamsChallengeResponseAllOf.js +44 -0
- package/dist/swagger/models/EnableSessionTanParamsChallengeResponseSpecifics.d.ts +39 -0
- package/dist/swagger/models/EnableSessionTanParamsChallengeResponseSpecifics.js +44 -0
- package/dist/swagger/models/EnableSessionTanParamsDecoupled.d.ts +40 -0
- package/dist/swagger/models/EnableSessionTanParamsDecoupled.js +45 -0
- package/dist/swagger/models/EnableSessionTanParamsDecoupledAllOf.d.ts +34 -0
- package/dist/swagger/models/EnableSessionTanParamsDecoupledAllOf.js +44 -0
- package/dist/swagger/models/EnableSessionTanParamsDecoupledSpecifics.d.ts +27 -0
- package/dist/swagger/models/EnableSessionTanParamsDecoupledSpecifics.js +38 -0
- package/dist/swagger/models/EnableSessionTanParamsKind.d.ts +23 -0
- package/dist/swagger/models/EnableSessionTanParamsKind.js +30 -0
- package/dist/swagger/models/EnableSessionTanParamsTan.d.ts +46 -0
- package/dist/swagger/models/EnableSessionTanParamsTan.js +47 -0
- package/dist/swagger/models/EnableSessionTanParamsTanAllOf.d.ts +34 -0
- package/dist/swagger/models/EnableSessionTanParamsTanAllOf.js +44 -0
- package/dist/swagger/models/EnableSessionTanParamsTanSpecifics.d.ts +33 -0
- package/dist/swagger/models/EnableSessionTanParamsTanSpecifics.js +40 -0
- package/dist/swagger/models/EnableSessionTanResponse.d.ts +33 -0
- package/dist/swagger/models/EnableSessionTanResponse.js +42 -0
- package/dist/swagger/models/EnableSessionTanResponseAnyOf.d.ts +27 -0
- package/dist/swagger/models/EnableSessionTanResponseAnyOf.js +40 -0
- package/dist/swagger/models/EndSessionTanResponse.d.ts +27 -0
- package/dist/swagger/models/EndSessionTanResponse.js +38 -0
- package/dist/swagger/models/ErrorResponse.d.ts +68 -0
- package/dist/swagger/models/ErrorResponse.js +59 -0
- package/dist/swagger/models/EstimateChangeOrderCostsParams.d.ts +28 -0
- package/dist/swagger/models/EstimateChangeOrderCostsParams.js +38 -0
- package/dist/swagger/models/Exchange.d.ts +127 -0
- package/dist/swagger/models/Exchange.js +89 -0
- package/dist/swagger/models/ExchangeMeta.d.ts +33 -0
- package/dist/swagger/models/ExchangeMeta.js +39 -0
- package/dist/swagger/models/ExchangesResponse.d.ts +28 -0
- package/dist/swagger/models/ExchangesResponse.js +38 -0
- package/dist/swagger/models/GenericTable.d.ts +41 -0
- package/dist/swagger/models/GenericTable.js +50 -0
- package/dist/swagger/models/GenericTableRow.d.ts +28 -0
- package/dist/swagger/models/GenericTableRow.js +51 -0
- package/dist/swagger/models/GenericTableRowEntry.d.ts +59 -0
- package/dist/swagger/models/GenericTableRowEntry.js +55 -0
- package/dist/swagger/models/GenericTableRowEntryAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowEntryAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowEntrySpecifics.d.ts +46 -0
- package/dist/swagger/models/GenericTableRowEntrySpecifics.js +47 -0
- package/dist/swagger/models/GenericTableRowSubheading.d.ts +40 -0
- package/dist/swagger/models/GenericTableRowSubheading.js +45 -0
- package/dist/swagger/models/GenericTableRowSubheadingAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowSubheadingAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowSubheadingSpecifics.d.ts +27 -0
- package/dist/swagger/models/GenericTableRowSubheadingSpecifics.js +38 -0
- package/dist/swagger/models/GenericTableRowText.d.ts +40 -0
- package/dist/swagger/models/GenericTableRowText.js +45 -0
- package/dist/swagger/models/GenericTableRowTextAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowTextAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowTextSpecifics.d.ts +27 -0
- package/dist/swagger/models/GenericTableRowTextSpecifics.js +38 -0
- package/dist/swagger/models/GenericTableRowType.d.ts +23 -0
- package/dist/swagger/models/GenericTableRowType.js +30 -0
- package/dist/swagger/models/GenericTableRowValue.d.ts +31 -0
- package/dist/swagger/models/GenericTableRowValue.js +56 -0
- package/dist/swagger/models/GenericTableRowValueAmount.d.ts +41 -0
- package/dist/swagger/models/GenericTableRowValueAmount.js +46 -0
- package/dist/swagger/models/GenericTableRowValueAmountAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowValueAmountAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowValueAmountSpecifics.d.ts +28 -0
- package/dist/swagger/models/GenericTableRowValueAmountSpecifics.js +39 -0
- package/dist/swagger/models/GenericTableRowValueDatetime.d.ts +40 -0
- package/dist/swagger/models/GenericTableRowValueDatetime.js +45 -0
- package/dist/swagger/models/GenericTableRowValueDatetimeAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowValueDatetimeAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowValueDatetimeSpecifics.d.ts +27 -0
- package/dist/swagger/models/GenericTableRowValueDatetimeSpecifics.js +38 -0
- package/dist/swagger/models/GenericTableRowValueLink.d.ts +41 -0
- package/dist/swagger/models/GenericTableRowValueLink.js +46 -0
- package/dist/swagger/models/GenericTableRowValueLinkAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowValueLinkAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowValueLinkPortfolio.d.ts +46 -0
- package/dist/swagger/models/GenericTableRowValueLinkPortfolio.js +47 -0
- package/dist/swagger/models/GenericTableRowValueLinkPortfolioAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowValueLinkPortfolioAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowValueLinkPortfolioSpecifics.d.ts +33 -0
- package/dist/swagger/models/GenericTableRowValueLinkPortfolioSpecifics.js +40 -0
- package/dist/swagger/models/GenericTableRowValueLinkSpecifics.d.ts +28 -0
- package/dist/swagger/models/GenericTableRowValueLinkSpecifics.js +41 -0
- package/dist/swagger/models/GenericTableRowValueLinkUrl.d.ts +46 -0
- package/dist/swagger/models/GenericTableRowValueLinkUrl.js +47 -0
- package/dist/swagger/models/GenericTableRowValueLinkUrlAllOf.d.ts +34 -0
- package/dist/swagger/models/GenericTableRowValueLinkUrlAllOf.js +44 -0
- package/dist/swagger/models/GenericTableRowValueLinkUrlSpecifics.d.ts +33 -0
- package/dist/swagger/models/GenericTableRowValueLinkUrlSpecifics.js +40 -0
- package/dist/swagger/models/GenericTableRowValueLinkValue.d.ts +25 -0
- package/dist/swagger/models/GenericTableRowValueLinkValue.js +46 -0
- package/dist/swagger/models/GenericTableRowValueLinkValueType.d.ts +22 -0
- package/dist/swagger/models/GenericTableRowValueLinkValueType.js +29 -0
- package/dist/swagger/models/GenericTableRowValueText.d.ts +40 -0
- package/dist/swagger/models/GenericTableRowValueText.js +45 -0
- package/dist/swagger/models/GenericTableRowValueTextSpecifics.d.ts +27 -0
- package/dist/swagger/models/GenericTableRowValueTextSpecifics.js +38 -0
- package/dist/swagger/models/GenericTableRowValueType.d.ts +24 -0
- package/dist/swagger/models/GenericTableRowValueType.js +31 -0
- package/dist/swagger/models/GetAccessTokensResponse.d.ts +28 -0
- package/dist/swagger/models/GetAccessTokensResponse.js +38 -0
- package/dist/swagger/models/GetAcessTokenAvailablePermissions200Response.d.ts +28 -0
- package/dist/swagger/models/GetAcessTokenAvailablePermissions200Response.js +38 -0
- package/dist/swagger/models/GetActiveTradeDraftsResponse.d.ts +34 -0
- package/dist/swagger/models/GetActiveTradeDraftsResponse.js +40 -0
- package/dist/swagger/models/GetAuthInfoResponse.d.ts +28 -0
- package/dist/swagger/models/GetAuthInfoResponse.js +38 -0
- package/dist/swagger/models/GetBrokersResponse.d.ts +28 -0
- package/dist/swagger/models/GetBrokersResponse.js +38 -0
- package/dist/swagger/models/GetCostEstimationParams.d.ts +28 -0
- package/dist/swagger/models/GetCostEstimationParams.js +38 -0
- package/dist/swagger/models/GetOrderResponse.d.ts +28 -0
- package/dist/swagger/models/GetOrderResponse.js +38 -0
- package/dist/swagger/models/GetPortfolioOrdersResponse.d.ts +34 -0
- package/dist/swagger/models/GetPortfolioOrdersResponse.js +40 -0
- package/dist/swagger/models/GetPortfolioPositionsResponse.d.ts +28 -0
- package/dist/swagger/models/GetPortfolioPositionsResponse.js +38 -0
- package/dist/swagger/models/GetPortfolioQuotesResponse.d.ts +43 -0
- package/dist/swagger/models/GetPortfolioQuotesResponse.js +52 -0
- package/dist/swagger/models/GetQuoteParams.d.ts +67 -0
- package/dist/swagger/models/GetQuoteParams.js +55 -0
- package/dist/swagger/models/GetQuoteResponse.d.ts +86 -0
- package/dist/swagger/models/GetQuoteResponse.js +68 -0
- package/dist/swagger/models/GetUserResponse.d.ts +27 -0
- package/dist/swagger/models/GetUserResponse.js +37 -0
- package/dist/swagger/models/GuestUserLifetime.d.ts +22 -0
- package/dist/swagger/models/GuestUserLifetime.js +29 -0
- package/dist/swagger/models/Hint.d.ts +33 -0
- package/dist/swagger/models/Hint.js +39 -0
- package/dist/swagger/models/LegalTermConfirmItem.d.ts +33 -0
- package/dist/swagger/models/LegalTermConfirmItem.js +39 -0
- package/dist/swagger/models/LegalTermsResponse.d.ts +41 -0
- package/dist/swagger/models/LegalTermsResponse.js +42 -0
- package/dist/swagger/models/LoginResponse.d.ts +25 -0
- package/dist/swagger/models/LoginResponse.js +46 -0
- package/dist/swagger/models/LoginResponseChallenge.d.ts +41 -0
- package/dist/swagger/models/LoginResponseChallenge.js +46 -0
- package/dist/swagger/models/LoginResponseChallengeAllOf.d.ts +34 -0
- package/dist/swagger/models/LoginResponseChallengeAllOf.js +44 -0
- package/dist/swagger/models/LoginResponseChallengeSpecifics.d.ts +28 -0
- package/dist/swagger/models/LoginResponseChallengeSpecifics.js +41 -0
- package/dist/swagger/models/LoginResponseReady.d.ts +40 -0
- package/dist/swagger/models/LoginResponseReady.js +45 -0
- package/dist/swagger/models/LoginResponseReadyAllOf.d.ts +34 -0
- package/dist/swagger/models/LoginResponseReadyAllOf.js +44 -0
- package/dist/swagger/models/LoginResponseReadySpecifics.d.ts +27 -0
- package/dist/swagger/models/LoginResponseReadySpecifics.js +38 -0
- package/dist/swagger/models/LoginResponseState.d.ts +22 -0
- package/dist/swagger/models/LoginResponseState.js +29 -0
- package/dist/swagger/models/MaintenanceStatus.d.ts +33 -0
- package/dist/swagger/models/MaintenanceStatus.js +44 -0
- package/dist/swagger/models/OAuthLoginFormConfig.d.ts +69 -0
- package/dist/swagger/models/OAuthLoginFormConfig.js +68 -0
- package/dist/swagger/models/ObtainToken200Response.d.ts +51 -0
- package/dist/swagger/models/ObtainToken200Response.js +45 -0
- package/dist/swagger/models/OkResponseBody.d.ts +27 -0
- package/dist/swagger/models/OkResponseBody.js +37 -0
- package/dist/swagger/models/Order.d.ts +415 -0
- package/dist/swagger/models/Order.js +246 -0
- package/dist/swagger/models/OrderChanges.d.ts +92 -0
- package/dist/swagger/models/OrderChanges.js +67 -0
- package/dist/swagger/models/OrderCostEstimation.d.ts +80 -0
- package/dist/swagger/models/OrderCostEstimation.js +75 -0
- package/dist/swagger/models/OrderCreate.d.ts +209 -0
- package/dist/swagger/models/OrderCreate.js +119 -0
- package/dist/swagger/models/OrderExecution.d.ts +82 -0
- package/dist/swagger/models/OrderExecution.js +69 -0
- package/dist/swagger/models/OrderExtension.d.ts +29 -0
- package/dist/swagger/models/OrderExtension.js +36 -0
- package/dist/swagger/models/OrderIntent.d.ts +23 -0
- package/dist/swagger/models/OrderIntent.js +30 -0
- package/dist/swagger/models/OrderIntentAvailability.d.ts +34 -0
- package/dist/swagger/models/OrderIntentAvailability.js +40 -0
- package/dist/swagger/models/OrderModel.d.ts +34 -0
- package/dist/swagger/models/OrderModel.js +41 -0
- package/dist/swagger/models/OrderStatus.d.ts +25 -0
- package/dist/swagger/models/OrderStatus.js +32 -0
- package/dist/swagger/models/OrderValidity.d.ts +41 -0
- package/dist/swagger/models/OrderValidity.js +43 -0
- package/dist/swagger/models/OrderValidityType.d.ts +34 -0
- package/dist/swagger/models/OrderValidityType.js +41 -0
- package/dist/swagger/models/OrderValidityTypeByOrderModel.d.ts +94 -0
- package/dist/swagger/models/OrderValidityTypeByOrderModel.js +109 -0
- package/dist/swagger/models/PageConfig.d.ts +51 -0
- package/dist/swagger/models/PageConfig.js +48 -0
- package/dist/swagger/models/PagesConfigurationResponse.d.ts +33 -0
- package/dist/swagger/models/PagesConfigurationResponse.js +39 -0
- package/dist/swagger/models/Portfolio.d.ts +87 -0
- package/dist/swagger/models/Portfolio.js +54 -0
- package/dist/swagger/models/PortfolioQuotes.d.ts +70 -0
- package/dist/swagger/models/PortfolioQuotes.js +69 -0
- package/dist/swagger/models/PortfolioSyncInfo.d.ts +31 -0
- package/dist/swagger/models/PortfolioSyncInfo.js +56 -0
- package/dist/swagger/models/PortfolioSyncInfoComplete.d.ts +40 -0
- package/dist/swagger/models/PortfolioSyncInfoComplete.js +45 -0
- package/dist/swagger/models/PortfolioSyncInfoCompleteAllOf.d.ts +34 -0
- package/dist/swagger/models/PortfolioSyncInfoCompleteAllOf.js +44 -0
- package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.d.ts +27 -0
- package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.js +40 -0
- package/dist/swagger/models/PortfolioSyncInfoError.d.ts +41 -0
- package/dist/swagger/models/PortfolioSyncInfoError.js +46 -0
- package/dist/swagger/models/PortfolioSyncInfoErrorAllOf.d.ts +34 -0
- package/dist/swagger/models/PortfolioSyncInfoErrorAllOf.js +44 -0
- package/dist/swagger/models/PortfolioSyncInfoErrorSpecifics.d.ts +28 -0
- package/dist/swagger/models/PortfolioSyncInfoErrorSpecifics.js +41 -0
- package/dist/swagger/models/PortfolioSyncInfoIncomplete.d.ts +40 -0
- package/dist/swagger/models/PortfolioSyncInfoIncomplete.js +45 -0
- package/dist/swagger/models/PortfolioSyncInfoIncompleteAllOf.d.ts +34 -0
- package/dist/swagger/models/PortfolioSyncInfoIncompleteAllOf.js +44 -0
- package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.d.ts +27 -0
- package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.js +40 -0
- package/dist/swagger/models/PortfolioSyncInfoPending.d.ts +34 -0
- package/dist/swagger/models/PortfolioSyncInfoPending.js +43 -0
- package/dist/swagger/models/PortfolioSyncInfoPendingAllOf.d.ts +34 -0
- package/dist/swagger/models/PortfolioSyncInfoPendingAllOf.js +44 -0
- package/dist/swagger/models/PortfolioSyncInfoStatus.d.ts +24 -0
- package/dist/swagger/models/PortfolioSyncInfoStatus.js +31 -0
- package/dist/swagger/models/PortfoliosResponse.d.ts +35 -0
- package/dist/swagger/models/PortfoliosResponse.js +41 -0
- package/dist/swagger/models/Position.d.ts +182 -0
- package/dist/swagger/models/Position.js +124 -0
- package/dist/swagger/models/PositionValuation.d.ts +46 -0
- package/dist/swagger/models/PositionValuation.js +49 -0
- package/dist/swagger/models/PrepareOAuthRedirectParams.d.ts +39 -0
- package/dist/swagger/models/PrepareOAuthRedirectParams.js +41 -0
- package/dist/swagger/models/PrepareOAuthRedirectResponse.d.ts +27 -0
- package/dist/swagger/models/PrepareOAuthRedirectResponse.js +37 -0
- package/dist/swagger/models/PrepareTradeResponse.d.ts +28 -0
- package/dist/swagger/models/PrepareTradeResponse.js +38 -0
- package/dist/swagger/models/PreparedTrade.d.ts +154 -0
- package/dist/swagger/models/PreparedTrade.js +103 -0
- package/dist/swagger/models/QuoteExpiration.d.ts +41 -0
- package/dist/swagger/models/QuoteExpiration.js +41 -0
- package/dist/swagger/models/RenamePortfolioRequest.d.ts +27 -0
- package/dist/swagger/models/RenamePortfolioRequest.js +37 -0
- package/dist/swagger/models/RenderGenericTableParams.d.ts +28 -0
- package/dist/swagger/models/RenderGenericTableParams.js +38 -0
- package/dist/swagger/models/RiskClassInfo.d.ts +40 -0
- package/dist/swagger/models/RiskClassInfo.js +44 -0
- package/dist/swagger/models/Security.d.ts +99 -0
- package/dist/swagger/models/Security.js +64 -0
- package/dist/swagger/models/SecurityDetailedInfo.d.ts +34 -0
- package/dist/swagger/models/SecurityDetailedInfo.js +39 -0
- package/dist/swagger/models/SecurityQuote.d.ts +33 -0
- package/dist/swagger/models/SecurityQuote.js +40 -0
- package/dist/swagger/models/SecurityQuotes.d.ts +34 -0
- package/dist/swagger/models/SecurityQuotes.js +41 -0
- package/dist/swagger/models/SecurityQuotesMeta.d.ts +39 -0
- package/dist/swagger/models/SecurityQuotesMeta.js +41 -0
- package/dist/swagger/models/SecurityQuotesResponse.d.ts +28 -0
- package/dist/swagger/models/SecurityQuotesResponse.js +38 -0
- package/dist/swagger/models/SecuritySelector.d.ts +57 -0
- package/dist/swagger/models/SecuritySelector.js +48 -0
- package/dist/swagger/models/SellPosition.d.ts +33 -0
- package/dist/swagger/models/SellPosition.js +39 -0
- package/dist/swagger/models/Session.d.ts +67 -0
- package/dist/swagger/models/Session.js +61 -0
- package/dist/swagger/models/SessionResponse.d.ts +28 -0
- package/dist/swagger/models/SessionResponse.js +38 -0
- package/dist/swagger/models/SessionSyncInfo.d.ts +28 -0
- package/dist/swagger/models/SessionSyncInfo.js +51 -0
- package/dist/swagger/models/SessionSyncInfoError.d.ts +41 -0
- package/dist/swagger/models/SessionSyncInfoError.js +46 -0
- package/dist/swagger/models/SessionSyncInfoErrorSpecifics.d.ts +28 -0
- package/dist/swagger/models/SessionSyncInfoErrorSpecifics.js +41 -0
- package/dist/swagger/models/SessionSyncInfoPending.d.ts +34 -0
- package/dist/swagger/models/SessionSyncInfoPending.js +43 -0
- package/dist/swagger/models/SessionSyncInfoStatus.d.ts +23 -0
- package/dist/swagger/models/SessionSyncInfoStatus.js +30 -0
- package/dist/swagger/models/SessionSyncInfoSynced.d.ts +40 -0
- package/dist/swagger/models/SessionSyncInfoSynced.js +45 -0
- package/dist/swagger/models/SessionSyncInfoSyncedAllOf.d.ts +34 -0
- package/dist/swagger/models/SessionSyncInfoSyncedAllOf.js +44 -0
- package/dist/swagger/models/SessionSyncInfoSyncedSpecifics.d.ts +27 -0
- package/dist/swagger/models/SessionSyncInfoSyncedSpecifics.js +40 -0
- package/dist/swagger/models/SetClientConfigRequest.d.ts +28 -0
- package/dist/swagger/models/SetClientConfigRequest.js +38 -0
- package/dist/swagger/models/SizeUnitConstraint.d.ts +46 -0
- package/dist/swagger/models/SizeUnitConstraint.js +51 -0
- package/dist/swagger/models/StringMapByOrderModel.d.ts +93 -0
- package/dist/swagger/models/StringMapByOrderModel.js +68 -0
- package/dist/swagger/models/SyncError.d.ts +33 -0
- package/dist/swagger/models/SyncError.js +39 -0
- package/dist/swagger/models/TakeProfitStopLossCapabilites.d.ts +42 -0
- package/dist/swagger/models/TakeProfitStopLossCapabilites.js +42 -0
- package/dist/swagger/models/TakeProfitStopLossDetail.d.ts +35 -0
- package/dist/swagger/models/TakeProfitStopLossDetail.js +41 -0
- package/dist/swagger/models/TradeDraft.d.ts +64 -0
- package/dist/swagger/models/TradeDraft.js +50 -0
- package/dist/swagger/models/TradeDraftCreateParams.d.ts +34 -0
- package/dist/swagger/models/TradeDraftCreateParams.js +41 -0
- package/dist/swagger/models/TradeDraftOrderCreate.d.ts +122 -0
- package/dist/swagger/models/TradeDraftOrderCreate.js +79 -0
- package/dist/swagger/models/TradeDraftUpdateParams.d.ts +40 -0
- package/dist/swagger/models/TradeDraftUpdateParams.js +45 -0
- package/dist/swagger/models/TradeDraftUpdateParamsOrderId.d.ts +21 -0
- package/dist/swagger/models/TradeDraftUpdateParamsOrderId.js +24 -0
- package/dist/swagger/models/TrailingDistance.d.ts +42 -0
- package/dist/swagger/models/TrailingDistance.js +46 -0
- package/dist/swagger/models/ValidationDetail.d.ts +33 -0
- package/dist/swagger/models/ValidationDetail.js +39 -0
- package/dist/swagger/models/index.d.ts +222 -0
- package/dist/swagger/models/index.js +224 -0
- package/dist/swagger/runtime.d.ts +156 -0
- package/dist/swagger/runtime.js +257 -0
- package/dist/tsdoc-metadata.json +11 -0
- package/dist/utils.d.ts +9 -0
- package/dist/utils.js +24 -0
- package/dist/websocketClient.d.ts +59 -0
- package/dist/websocketClient.js +316 -0
- package/dist/websocketTypes.d.ts +71 -0
- package/dist/websocketTypes.js +1 -0
- package/package.json +66 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* brokerize
|
|
3
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
8
|
+
* https://openapi-generator.tech
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import * as runtime from "../runtime";
|
|
12
|
+
import { Challenge, CreateGuestUserResponse, CreateTanChallengeParams, DecoupledOperationStatus, EnableSessionTanParams, EnableSessionTanResponse, EndSessionTanResponse, GetAuthInfoResponse, GetOrderResponse, GetPortfolioOrdersResponse, GetPortfolioPositionsResponse, GetPortfolioQuotesResponse, GetUserResponse, ObtainToken200Response, OkResponseBody, PortfoliosResponse, RenamePortfolioRequest, SessionResponse } from "../models";
|
|
13
|
+
export interface CancelDecoupledOperationRequest {
|
|
14
|
+
sessionId: string;
|
|
15
|
+
decoupledOperationId: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CreateSessionTanChallengeRequest {
|
|
18
|
+
sessionId: string;
|
|
19
|
+
createTanChallengeParams: CreateTanChallengeParams;
|
|
20
|
+
}
|
|
21
|
+
export interface DeletePortfolioRequest {
|
|
22
|
+
portfolioId: string;
|
|
23
|
+
}
|
|
24
|
+
export interface EnableSessionTanRequest {
|
|
25
|
+
sessionId: string;
|
|
26
|
+
enableSessionTanParams: EnableSessionTanParams;
|
|
27
|
+
}
|
|
28
|
+
export interface EndSessionTanRequest {
|
|
29
|
+
sessionId: string;
|
|
30
|
+
}
|
|
31
|
+
export interface GetAuthInfoRequest {
|
|
32
|
+
portfolioId: string;
|
|
33
|
+
}
|
|
34
|
+
export interface GetDecoupledOperationStatusRequest {
|
|
35
|
+
sessionId: string;
|
|
36
|
+
decoupledOperationId: string;
|
|
37
|
+
}
|
|
38
|
+
export interface GetOrderRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
export interface GetPortfolioOrdersRequest {
|
|
42
|
+
portfolioId: string;
|
|
43
|
+
take?: number;
|
|
44
|
+
skip?: number;
|
|
45
|
+
search?: string;
|
|
46
|
+
statuses?: string;
|
|
47
|
+
orderBy?: string;
|
|
48
|
+
isin?: string;
|
|
49
|
+
wkn?: string;
|
|
50
|
+
sinoTicker?: string;
|
|
51
|
+
usTicker?: string;
|
|
52
|
+
cryptoCode?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface GetPortfolioPositionsRequest {
|
|
55
|
+
portfolioId: string;
|
|
56
|
+
}
|
|
57
|
+
export interface GetPortfolioQuotesRequest {
|
|
58
|
+
portfolioId: string;
|
|
59
|
+
}
|
|
60
|
+
export interface LogoutSessionRequest {
|
|
61
|
+
sessionId: string;
|
|
62
|
+
}
|
|
63
|
+
export interface ObtainTokenRequest {
|
|
64
|
+
grantType: string;
|
|
65
|
+
refreshToken: string;
|
|
66
|
+
}
|
|
67
|
+
export interface RenamePortfolioOperationRequest {
|
|
68
|
+
portfolioId: string;
|
|
69
|
+
renamePortfolioRequest: RenamePortfolioRequest;
|
|
70
|
+
}
|
|
71
|
+
export interface TriggerSessionSyncRequest {
|
|
72
|
+
sessionId: string;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
export declare class DefaultApi extends runtime.BaseAPI {
|
|
78
|
+
/**
|
|
79
|
+
*/
|
|
80
|
+
cancelDecoupledOperationRaw(requestParameters: CancelDecoupledOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
81
|
+
/**
|
|
82
|
+
*/
|
|
83
|
+
cancelDecoupledOperation(requestParameters: CancelDecoupledOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Create a guest user and return a token which can be used to access resources. The lifetime of the generated temporary user as well as the returned `access_token` depend on the client configuration. It is usually around 24 hours. For some clients, tokens can be expired earlier based on inactivity. If the client has configured a longer lifetime for their guest users, a `refresh_token` is included in the response. This token can be used to renew the `access_token` after it has expired. The `refresh_token` can be used to obtain a new `access_token` after the original token has expired using the `/user/token` endpoint.
|
|
86
|
+
*/
|
|
87
|
+
createGuestUserRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<CreateGuestUserResponse>>;
|
|
88
|
+
/**
|
|
89
|
+
* Create a guest user and return a token which can be used to access resources. The lifetime of the generated temporary user as well as the returned `access_token` depend on the client configuration. It is usually around 24 hours. For some clients, tokens can be expired earlier based on inactivity. If the client has configured a longer lifetime for their guest users, a `refresh_token` is included in the response. This token can be used to renew the `access_token` after it has expired. The `refresh_token` can be used to obtain a new `access_token` after the original token has expired using the `/user/token` endpoint.
|
|
90
|
+
*/
|
|
91
|
+
createGuestUser(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<CreateGuestUserResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before enabling session TAN, a challenge must be requested first.
|
|
94
|
+
*/
|
|
95
|
+
createSessionTanChallengeRaw(requestParameters: CreateSessionTanChallengeRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<Challenge>>;
|
|
96
|
+
/**
|
|
97
|
+
* If the user chose an auth method from `GetAuthInfo` with the flow `CHALLENGE_RESPONSE`, before enabling session TAN, a challenge must be requested first.
|
|
98
|
+
*/
|
|
99
|
+
createSessionTanChallenge(requestParameters: CreateSessionTanChallengeRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<Challenge>;
|
|
100
|
+
/**
|
|
101
|
+
* Delete the current user (only allowed if it is a guest account). Also logs out all active broker sessions attached to the user.
|
|
102
|
+
*/
|
|
103
|
+
deleteGuestUserRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
104
|
+
/**
|
|
105
|
+
* Delete the current user (only allowed if it is a guest account). Also logs out all active broker sessions attached to the user.
|
|
106
|
+
*/
|
|
107
|
+
deleteGuestUser(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
*/
|
|
110
|
+
deletePortfolioRaw(requestParameters: DeletePortfolioRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<OkResponseBody>>;
|
|
111
|
+
/**
|
|
112
|
+
*/
|
|
113
|
+
deletePortfolio(requestParameters: DeletePortfolioRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<OkResponseBody>;
|
|
114
|
+
/**
|
|
115
|
+
*/
|
|
116
|
+
enableSessionTanRaw(requestParameters: EnableSessionTanRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<EnableSessionTanResponse>>;
|
|
117
|
+
/**
|
|
118
|
+
*/
|
|
119
|
+
enableSessionTan(requestParameters: EnableSessionTanRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<EnableSessionTanResponse>;
|
|
120
|
+
/**
|
|
121
|
+
* End Session TAN for the given broker session. If applicable, the broker may return a message with a confirmation code which can be looked up in the initial activation SMS. If message is present in the response, it should be displayed to the user.
|
|
122
|
+
*/
|
|
123
|
+
endSessionTanRaw(requestParameters: EndSessionTanRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<EndSessionTanResponse>>;
|
|
124
|
+
/**
|
|
125
|
+
* End Session TAN for the given broker session. If applicable, the broker may return a message with a confirmation code which can be looked up in the initial activation SMS. If message is present in the response, it should be displayed to the user.
|
|
126
|
+
*/
|
|
127
|
+
endSessionTan(requestParameters: EndSessionTanRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<EndSessionTanResponse>;
|
|
128
|
+
/**
|
|
129
|
+
* Get the AuthInfo for the given portfolio. If the portfolio does not have an online session, this will return a 400 status code. If it does, the response describes whether session TAN is available or active and which auth methods are available for the given portfolio (this information depends on the broker and the user\'s account settings). The response determines which of the following operations can be used and which are required to successfully perform an operation in a portfolio: - Session TAN handling (for performing other actions in portfolios without further per-case authorization) - [CreateSessionTanChallenge](#operation/CreateSessionTanChallenge) to request a challenge for s TAN activation. - [EnableSessionTan](#operation/EnableSessionTan) to enable the session TAN. - [EndSessionTan](#operation/EndSessionTan) to end the session TAN. - Create a trade - [PrepareTrade](#operation/PrepareTrade) to figure out how a given security can be traded in a portfolio. - [CreateTradeChallenge](#operation/CreateTradeChallenge) to (for example) request a TAN for a trade. - [CreateTrade](#operation/CreateTrade) to perform the trade. - Edit an order - [CreateChangeOrderChallenge](#operation/CreateChangeOrderChallenge) to request a challenge for an order change. - [ChangeOrder](#operation/ChangeOrder) to change an order. - Cancel an order - [CreateCancelOrderChallenge](#operation/CreateCancelOrderChallenge) to request a Challenge for an order cancellation. - [CancelOrder](#operation/CancelOrder) to cancel an order. The list of available AuthMethods should only be presented to the user if session TAN is not active (yet). The list and names are defined by our partner brokers. All auth methods are generally categorized using the `flow` attribute: | `flow` | requires challenge? | Description | | -------------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `TAN` | no | the simplest flow: no challenge is required to perform the operation. the TAN is simply sent as parameter `tan` | | `CHALLENGE_RESPONSE` | yes | a challenge must be created using the `createXYZChallenge` operations and the challenge must be presented to the user. The user can then execute the action using the `challengeId` and `challengeResponse` parameters. If the auth method has `challengeResponseIsOnlyConfirmation=true`, that challengeResponse is always an empty string and users do not enter a TAN. Otherwise, a text field labelled with `tanFieldLabel` must be displayed where the user enteirs their challengeResponse. | | `DECOUPLED` | no | the operation is executed without any TAN, but returns a `decoupledOperationId` which can be used to read the action\'s status. Users will authorize the action in another frontend (usually in their broker\'s app). Note that currently `DECOUPLED` auth methods only work for enabling session TAN. | - If `sessionTanActive` is `true`: Session TAN has been enabled for the session that currently backs the portfolio. In this case, all operations like `CreateTrade` can be executed right away without an `authMethod`. The UI should *not* show a dropdown with the auth methods in this case. - If `sessionTanActive` is `false` but `sessionTanSupported` is `true`: the user can enable session TAN using `CreateSessionTanChallenge` / `EnableSessionTan`. - If `allOperationsRequireSessionTan` is `true`, the auth methods can *ONLY* be used for enabling session TAN. - Otherwise, the `authMethods` can be used to perform individual operations. | sessionTanActive | sessionTanSupported | allOperationsRequireSessionTan | Description | | ---------------- | ------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `true` | `true` | - | Session TAN has been enabled for the session that currently backs the portfolio. In this case, all operations like `CreateTrade`, `ChangeOrder`, `CancelOrder` can be executed right away without an `authMethod`. The UI should _not_ show a dropdown with the auth methods in this case. | | `false` | `true` | `true` | the user can enable session TAN using the provided auth methods via `CreateSessionTanChallenge` / `EnableSessionTan`. All other operations can only take place after session TAN has been enabled. | | `false` | `true` | `false` | the user can enable any operation (enable session tan, create trade, cancel order, change order) using the provided auth methods | Note that it is possible that brokers only reveal all details about the available auth methods *TOGETHER* with the first `GetChallenge` request. This special behavior can be simulated with our demo broker when the flag `lazyAuthMethods=true` is specified upon creation of a demo account. In those accounts, the `GetAuthInfo` endpoint will initially return a single \"placeholder\" method with `{flow: \"CHALLENGE_RESPONSE\", isDefaultMethod: true, ...}`. In the situation where there is *exactly one* auth method like this, frontends may immediately request the challenge for the desired operation without waiting for the user to click the get challenge button (for Session TAN, this means that as soon as the user opens the dialog for enabling session TAN, `CreateSessionTanChallenge` can be called). In the case described here, `AuthInfo` will be populated with the actual list of auth methods when the create challenge request returns (also, the corresponding WebSocket event is published to notify about this change). `GetAuthInfo` must be called again in this case and repopulate the corresponding frontend (e.g. the name of the auth method will become available etc.). So what is done in this case is: request a challenge for the *unknown* default method in order to get both a challenge and an update of the auth methods. Note that usually challenges have effects like an SMS or some broker app notification for the end user, so it is important to keep the requested challenge info, *even when auth info is refreshed*. For example, if there is a select box with the auth method list, that box must keep its selected `id` while updating the now-available `label`. This way, the user can use the first requested challenge, as the frontend will still be in the right state.
|
|
130
|
+
*/
|
|
131
|
+
getAuthInfoRaw(requestParameters: GetAuthInfoRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetAuthInfoResponse>>;
|
|
132
|
+
/**
|
|
133
|
+
* Get the AuthInfo for the given portfolio. If the portfolio does not have an online session, this will return a 400 status code. If it does, the response describes whether session TAN is available or active and which auth methods are available for the given portfolio (this information depends on the broker and the user\'s account settings). The response determines which of the following operations can be used and which are required to successfully perform an operation in a portfolio: - Session TAN handling (for performing other actions in portfolios without further per-case authorization) - [CreateSessionTanChallenge](#operation/CreateSessionTanChallenge) to request a challenge for s TAN activation. - [EnableSessionTan](#operation/EnableSessionTan) to enable the session TAN. - [EndSessionTan](#operation/EndSessionTan) to end the session TAN. - Create a trade - [PrepareTrade](#operation/PrepareTrade) to figure out how a given security can be traded in a portfolio. - [CreateTradeChallenge](#operation/CreateTradeChallenge) to (for example) request a TAN for a trade. - [CreateTrade](#operation/CreateTrade) to perform the trade. - Edit an order - [CreateChangeOrderChallenge](#operation/CreateChangeOrderChallenge) to request a challenge for an order change. - [ChangeOrder](#operation/ChangeOrder) to change an order. - Cancel an order - [CreateCancelOrderChallenge](#operation/CreateCancelOrderChallenge) to request a Challenge for an order cancellation. - [CancelOrder](#operation/CancelOrder) to cancel an order. The list of available AuthMethods should only be presented to the user if session TAN is not active (yet). The list and names are defined by our partner brokers. All auth methods are generally categorized using the `flow` attribute: | `flow` | requires challenge? | Description | | -------------------- | ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `TAN` | no | the simplest flow: no challenge is required to perform the operation. the TAN is simply sent as parameter `tan` | | `CHALLENGE_RESPONSE` | yes | a challenge must be created using the `createXYZChallenge` operations and the challenge must be presented to the user. The user can then execute the action using the `challengeId` and `challengeResponse` parameters. If the auth method has `challengeResponseIsOnlyConfirmation=true`, that challengeResponse is always an empty string and users do not enter a TAN. Otherwise, a text field labelled with `tanFieldLabel` must be displayed where the user enteirs their challengeResponse. | | `DECOUPLED` | no | the operation is executed without any TAN, but returns a `decoupledOperationId` which can be used to read the action\'s status. Users will authorize the action in another frontend (usually in their broker\'s app). Note that currently `DECOUPLED` auth methods only work for enabling session TAN. | - If `sessionTanActive` is `true`: Session TAN has been enabled for the session that currently backs the portfolio. In this case, all operations like `CreateTrade` can be executed right away without an `authMethod`. The UI should *not* show a dropdown with the auth methods in this case. - If `sessionTanActive` is `false` but `sessionTanSupported` is `true`: the user can enable session TAN using `CreateSessionTanChallenge` / `EnableSessionTan`. - If `allOperationsRequireSessionTan` is `true`, the auth methods can *ONLY* be used for enabling session TAN. - Otherwise, the `authMethods` can be used to perform individual operations. | sessionTanActive | sessionTanSupported | allOperationsRequireSessionTan | Description | | ---------------- | ------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `true` | `true` | - | Session TAN has been enabled for the session that currently backs the portfolio. In this case, all operations like `CreateTrade`, `ChangeOrder`, `CancelOrder` can be executed right away without an `authMethod`. The UI should _not_ show a dropdown with the auth methods in this case. | | `false` | `true` | `true` | the user can enable session TAN using the provided auth methods via `CreateSessionTanChallenge` / `EnableSessionTan`. All other operations can only take place after session TAN has been enabled. | | `false` | `true` | `false` | the user can enable any operation (enable session tan, create trade, cancel order, change order) using the provided auth methods | Note that it is possible that brokers only reveal all details about the available auth methods *TOGETHER* with the first `GetChallenge` request. This special behavior can be simulated with our demo broker when the flag `lazyAuthMethods=true` is specified upon creation of a demo account. In those accounts, the `GetAuthInfo` endpoint will initially return a single \"placeholder\" method with `{flow: \"CHALLENGE_RESPONSE\", isDefaultMethod: true, ...}`. In the situation where there is *exactly one* auth method like this, frontends may immediately request the challenge for the desired operation without waiting for the user to click the get challenge button (for Session TAN, this means that as soon as the user opens the dialog for enabling session TAN, `CreateSessionTanChallenge` can be called). In the case described here, `AuthInfo` will be populated with the actual list of auth methods when the create challenge request returns (also, the corresponding WebSocket event is published to notify about this change). `GetAuthInfo` must be called again in this case and repopulate the corresponding frontend (e.g. the name of the auth method will become available etc.). So what is done in this case is: request a challenge for the *unknown* default method in order to get both a challenge and an update of the auth methods. Note that usually challenges have effects like an SMS or some broker app notification for the end user, so it is important to keep the requested challenge info, *even when auth info is refreshed*. For example, if there is a select box with the auth method list, that box must keep its selected `id` while updating the now-available `label`. This way, the user can use the first requested challenge, as the frontend will still be in the right state.
|
|
134
|
+
*/
|
|
135
|
+
getAuthInfo(requestParameters: GetAuthInfoRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GetAuthInfoResponse>;
|
|
136
|
+
/**
|
|
137
|
+
*/
|
|
138
|
+
getDecoupledOperationStatusRaw(requestParameters: GetDecoupledOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<DecoupledOperationStatus>>;
|
|
139
|
+
/**
|
|
140
|
+
*/
|
|
141
|
+
getDecoupledOperationStatus(requestParameters: GetDecoupledOperationStatusRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<DecoupledOperationStatus>;
|
|
142
|
+
/**
|
|
143
|
+
*/
|
|
144
|
+
getOrderRaw(requestParameters: GetOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetOrderResponse>>;
|
|
145
|
+
/**
|
|
146
|
+
*/
|
|
147
|
+
getOrder(requestParameters: GetOrderRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GetOrderResponse>;
|
|
148
|
+
/**
|
|
149
|
+
*/
|
|
150
|
+
getPortfolioOrdersRaw(requestParameters: GetPortfolioOrdersRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetPortfolioOrdersResponse>>;
|
|
151
|
+
/**
|
|
152
|
+
*/
|
|
153
|
+
getPortfolioOrders(requestParameters: GetPortfolioOrdersRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GetPortfolioOrdersResponse>;
|
|
154
|
+
/**
|
|
155
|
+
*/
|
|
156
|
+
getPortfolioPositionsRaw(requestParameters: GetPortfolioPositionsRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetPortfolioPositionsResponse>>;
|
|
157
|
+
/**
|
|
158
|
+
*/
|
|
159
|
+
getPortfolioPositions(requestParameters: GetPortfolioPositionsRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GetPortfolioPositionsResponse>;
|
|
160
|
+
/**
|
|
161
|
+
*/
|
|
162
|
+
getPortfolioQuotesRaw(requestParameters: GetPortfolioQuotesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetPortfolioQuotesResponse>>;
|
|
163
|
+
/**
|
|
164
|
+
*/
|
|
165
|
+
getPortfolioQuotes(requestParameters: GetPortfolioQuotesRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GetPortfolioQuotesResponse>;
|
|
166
|
+
/**
|
|
167
|
+
*/
|
|
168
|
+
getPortfoliosRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PortfoliosResponse>>;
|
|
169
|
+
/**
|
|
170
|
+
*/
|
|
171
|
+
getPortfolios(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PortfoliosResponse>;
|
|
172
|
+
/**
|
|
173
|
+
* Get the currently active broker sessions of the user\'s account.
|
|
174
|
+
*/
|
|
175
|
+
getSessionsRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<SessionResponse>>;
|
|
176
|
+
/**
|
|
177
|
+
* Get the currently active broker sessions of the user\'s account.
|
|
178
|
+
*/
|
|
179
|
+
getSessions(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<SessionResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* Checks the provided authentication and returns the logged-in user.
|
|
182
|
+
*/
|
|
183
|
+
getUserRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<GetUserResponse>>;
|
|
184
|
+
/**
|
|
185
|
+
* Checks the provided authentication and returns the logged-in user.
|
|
186
|
+
*/
|
|
187
|
+
getUser(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<GetUserResponse>;
|
|
188
|
+
/**
|
|
189
|
+
* Log out from the given broker session.
|
|
190
|
+
*/
|
|
191
|
+
logoutSessionRaw(requestParameters: LogoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<OkResponseBody>>;
|
|
192
|
+
/**
|
|
193
|
+
* Log out from the given broker session.
|
|
194
|
+
*/
|
|
195
|
+
logoutSession(requestParameters: LogoutSessionRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<OkResponseBody>;
|
|
196
|
+
/**
|
|
197
|
+
* Obtain a new access token using a refresh token as specified in https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4. If `CreateGuestUser` has provided a `refresh_token`, this endpoint may be used to obtain a new `access_token` after the original token has expired.
|
|
198
|
+
*/
|
|
199
|
+
obtainTokenRaw(requestParameters: ObtainTokenRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<ObtainToken200Response>>;
|
|
200
|
+
/**
|
|
201
|
+
* Obtain a new access token using a refresh token as specified in https://datatracker.ietf.org/doc/html/rfc6749#section-4.1.4. If `CreateGuestUser` has provided a `refresh_token`, this endpoint may be used to obtain a new `access_token` after the original token has expired.
|
|
202
|
+
*/
|
|
203
|
+
obtainToken(requestParameters: ObtainTokenRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<ObtainToken200Response>;
|
|
204
|
+
/**
|
|
205
|
+
* This endpoint can be used to rename the display name of a specified portfolio. To restore the original portfolio name, send a rename request with an empty string as the new name. **Note**: This does not change the original portfolio name at your broker.
|
|
206
|
+
*/
|
|
207
|
+
renamePortfolioRaw(requestParameters: RenamePortfolioOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
208
|
+
/**
|
|
209
|
+
* This endpoint can be used to rename the display name of a specified portfolio. To restore the original portfolio name, send a rename request with an empty string as the new name. **Note**: This does not change the original portfolio name at your broker.
|
|
210
|
+
*/
|
|
211
|
+
renamePortfolio(requestParameters: RenamePortfolioOperationRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
212
|
+
/**
|
|
213
|
+
* Trigger a background sync process for the given broker session. This means that a sync will be scheduled as soon as possible. All data related to the portfolio (e.g. positions and orders) will be loaded into the brokerize database.
|
|
214
|
+
*/
|
|
215
|
+
triggerSessionSyncRaw(requestParameters: TriggerSessionSyncRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<OkResponseBody>>;
|
|
216
|
+
/**
|
|
217
|
+
* Trigger a background sync process for the given broker session. This means that a sync will be scheduled as soon as possible. All data related to the portfolio (e.g. positions and orders) will be loaded into the brokerize database.
|
|
218
|
+
*/
|
|
219
|
+
triggerSessionSync(requestParameters: TriggerSessionSyncRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<OkResponseBody>;
|
|
220
|
+
/**
|
|
221
|
+
* Most operations at brokerize have asynchronous effects. For example, consider the flow of an order: when the user creates an order, it will not immediately appear in order list endpoints, because usually brokers take a few seconds until they are retrievable in those lists. Also, after a while, the order may be executed or cancelled asynchronously by the stock exchange. A common solution for frontends would be to reload the order list regularly. However data is then either delayed or there will be many more requests than needed. The brokerize websocket endpoint allows getting updates via web sockets. Generally speaking, clients can subscribe by assigning a subscription id and will then receive updates on that subscription. In this documentation, ⬆️ denotes messages from the client to the server, whereas messages from server to client are marked with ⬇️. ## authentication When using cookies for authorization, the WebSocket connection is authenticated with the HTTP upgrade request. If token headers are used, the _first_ message from client to server must be: ``` ⬆️ { \"cmd\": \"authorize\", \"idToken\": <string> } ``` In all cases, clients must wait for the welcome message before sending other messages: ``` ⬇️ { \"cmd\": \"authenticated\" } ``` ## ping After 1 minute of inactivity of a client, the WebSocket connection will be considered stale and will automatically terminated. To prevent this, a ping message can be sent: ``` ⬆️ {\"cmd\": \"ping\"} ``` The server also sends this message regularly. If no message has been received on a WebSocket connection for more than 1 minute, it should be terminated by the client. ``` ⬇️ {\"cmd\": \"ping\"} ``` ## subscriptions Subscriptions can be used to get invalidate events or updates for selected resources. ### invalidate subscriptions Invalidation events can be used for the frontend to know when reload requests via the HTTP endpoints are appropriate. Currently only invalidate events can be subscribed, the actual data must then be reloaded using the HTTP endpoints. To set up a subscription for an invalidate event, use: ``` ⬆️ { \"cmd\": \"subscribe\", \"type\": \"invalidate\", \"subscriptionId\": 1, \"entity: \"brokersessions\" /_* \"positions\" | \"orders\" *_/, \"portfolioId\": 42 /_* required for \"positions\" or \"orders\" *_/ } ``` If the subscription failed to be set up on the server, an error will be sent for the subscription. This also automatically ends the subscription on the server side: ``` ⬇️ { \"subscriptionId\": 1, \"error\": { \"message\": \"Could not set up invalidation event due to...\" } } ``` If an invalid `subscriptionId` is provided (or the subscription id is already in use by the connection), an error like this will be sent: ``` ⬇️ { \"error\": { \"message\": \"Could not add subscription due to invalid subscriptionId\" } } ``` ⚠️ _the connection will then be terminated immediately_. If the subscription is sucessfuly set up, whenever an invalidation happens, the server will send a message like this: ``` ⬇️ { \"cmd\": \"invalidate\", \"subscriptionId\": 1 } ``` When that invalidation event is received, the client should reload the data using the corresponding endpoints. Clients can end their subscription with the `unsubscribe` command: ``` ⬆️ { \"cmd\": \"unsubscribe\", \"subscriptionId\": 1 } ``` ### subscribe to the state of a decoupled operation For decoupled operations (e.g. authorizing a session TAN using a second factor device), the state of the operation can be subscribed: ``` ⬆️ { \"cmd\": \"subscribe\", \"type\": \"decoupledOperationStatus\", \"subscriptionId\": 1, \"sessionId\": string, \"decoupledOperationId\": string } ``` Error handling as well as unsubscribing works as described for invalidate subscriptions. Example message from the server for updating the state: ``` ⬇️ { \"cmd\": \"updateDecoupledOperationStatus\", \"subscriptionId\": number, \"state\": <DecoupledOperationStatus> } ```
|
|
222
|
+
*/
|
|
223
|
+
websocketRaw(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<void>>;
|
|
224
|
+
/**
|
|
225
|
+
* Most operations at brokerize have asynchronous effects. For example, consider the flow of an order: when the user creates an order, it will not immediately appear in order list endpoints, because usually brokers take a few seconds until they are retrievable in those lists. Also, after a while, the order may be executed or cancelled asynchronously by the stock exchange. A common solution for frontends would be to reload the order list regularly. However data is then either delayed or there will be many more requests than needed. The brokerize websocket endpoint allows getting updates via web sockets. Generally speaking, clients can subscribe by assigning a subscription id and will then receive updates on that subscription. In this documentation, ⬆️ denotes messages from the client to the server, whereas messages from server to client are marked with ⬇️. ## authentication When using cookies for authorization, the WebSocket connection is authenticated with the HTTP upgrade request. If token headers are used, the _first_ message from client to server must be: ``` ⬆️ { \"cmd\": \"authorize\", \"idToken\": <string> } ``` In all cases, clients must wait for the welcome message before sending other messages: ``` ⬇️ { \"cmd\": \"authenticated\" } ``` ## ping After 1 minute of inactivity of a client, the WebSocket connection will be considered stale and will automatically terminated. To prevent this, a ping message can be sent: ``` ⬆️ {\"cmd\": \"ping\"} ``` The server also sends this message regularly. If no message has been received on a WebSocket connection for more than 1 minute, it should be terminated by the client. ``` ⬇️ {\"cmd\": \"ping\"} ``` ## subscriptions Subscriptions can be used to get invalidate events or updates for selected resources. ### invalidate subscriptions Invalidation events can be used for the frontend to know when reload requests via the HTTP endpoints are appropriate. Currently only invalidate events can be subscribed, the actual data must then be reloaded using the HTTP endpoints. To set up a subscription for an invalidate event, use: ``` ⬆️ { \"cmd\": \"subscribe\", \"type\": \"invalidate\", \"subscriptionId\": 1, \"entity: \"brokersessions\" /_* \"positions\" | \"orders\" *_/, \"portfolioId\": 42 /_* required for \"positions\" or \"orders\" *_/ } ``` If the subscription failed to be set up on the server, an error will be sent for the subscription. This also automatically ends the subscription on the server side: ``` ⬇️ { \"subscriptionId\": 1, \"error\": { \"message\": \"Could not set up invalidation event due to...\" } } ``` If an invalid `subscriptionId` is provided (or the subscription id is already in use by the connection), an error like this will be sent: ``` ⬇️ { \"error\": { \"message\": \"Could not add subscription due to invalid subscriptionId\" } } ``` ⚠️ _the connection will then be terminated immediately_. If the subscription is sucessfuly set up, whenever an invalidation happens, the server will send a message like this: ``` ⬇️ { \"cmd\": \"invalidate\", \"subscriptionId\": 1 } ``` When that invalidation event is received, the client should reload the data using the corresponding endpoints. Clients can end their subscription with the `unsubscribe` command: ``` ⬆️ { \"cmd\": \"unsubscribe\", \"subscriptionId\": 1 } ``` ### subscribe to the state of a decoupled operation For decoupled operations (e.g. authorizing a session TAN using a second factor device), the state of the operation can be subscribed: ``` ⬆️ { \"cmd\": \"subscribe\", \"type\": \"decoupledOperationStatus\", \"subscriptionId\": 1, \"sessionId\": string, \"decoupledOperationId\": string } ``` Error handling as well as unsubscribing works as described for invalidate subscriptions. Example message from the server for updating the state: ``` ⬇️ { \"cmd\": \"updateDecoupledOperationStatus\", \"subscriptionId\": number, \"state\": <DecoupledOperationStatus> } ```
|
|
226
|
+
*/
|
|
227
|
+
websocket(initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<void>;
|
|
228
|
+
}
|