@brokerize/client 1.10.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/README.md +45 -0
  2. package/dist/apiCtx.d.ts +10 -2
  3. package/dist/apiCtx.js +4 -4
  4. package/dist/authorizedApiContext.d.ts +5 -0
  5. package/dist/authorizedApiContext.js +12 -4
  6. package/dist/cjs/apiCtx.d.ts +10 -2
  7. package/dist/cjs/apiCtx.js +4 -4
  8. package/dist/cjs/authorizedApiContext.d.ts +5 -0
  9. package/dist/cjs/authorizedApiContext.js +11 -3
  10. package/dist/cjs/errors.d.ts +74 -0
  11. package/dist/cjs/errors.js +95 -1
  12. package/dist/cjs/index.d.ts +4 -4
  13. package/dist/cjs/index.js +6 -4
  14. package/dist/cjs/modelExports.d.ts +3 -0
  15. package/dist/cjs/modelExports.js +5 -1
  16. package/dist/cjs/swagger/models/BrokerClientCfg.d.ts +7 -0
  17. package/dist/cjs/swagger/models/BrokerClientCfg.js +5 -0
  18. package/dist/cjs/swagger/models/BrokerMeta.d.ts +15 -0
  19. package/dist/cjs/swagger/models/BrokerMeta.js +2 -0
  20. package/dist/cjs/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +12 -1
  21. package/dist/cjs/swagger/models/ClientConfigUpdateOAuthLoginForm.js +2 -0
  22. package/dist/cjs/swagger/models/OAuthLoginFormConfig.d.ts +12 -1
  23. package/dist/cjs/swagger/models/OAuthLoginFormConfig.js +2 -0
  24. package/dist/cjs/swagger/models/Order.d.ts +9 -1
  25. package/dist/cjs/swagger/models/OrderCreate.d.ts +2 -1
  26. package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfo.d.ts +60 -0
  27. package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfo.js +51 -0
  28. package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfoStatus.d.ts +22 -0
  29. package/dist/cjs/swagger/models/PortfolioOrderDetailsSyncInfoStatus.js +35 -0
  30. package/dist/cjs/swagger/models/PortfolioSyncInfoComplete.d.ts +7 -0
  31. package/dist/cjs/swagger/models/PortfolioSyncInfoComplete.js +6 -0
  32. package/dist/cjs/swagger/models/PortfolioSyncInfoCompleteSpecifics.d.ts +7 -0
  33. package/dist/cjs/swagger/models/PortfolioSyncInfoCompleteSpecifics.js +5 -0
  34. package/dist/cjs/swagger/models/PortfolioSyncInfoIncomplete.d.ts +7 -0
  35. package/dist/cjs/swagger/models/PortfolioSyncInfoIncomplete.js +6 -0
  36. package/dist/cjs/swagger/models/PortfolioSyncInfoIncompleteSpecifics.d.ts +7 -0
  37. package/dist/cjs/swagger/models/PortfolioSyncInfoIncompleteSpecifics.js +5 -0
  38. package/dist/cjs/swagger/models/SmartbrokerClientCfg.d.ts +27 -0
  39. package/dist/cjs/swagger/models/SmartbrokerClientCfg.js +46 -0
  40. package/dist/cjs/swagger/models/SummarizedTrade.d.ts +14 -0
  41. package/dist/cjs/swagger/models/SummarizedTrade.js +4 -0
  42. package/dist/cjs/swagger/models/TradeWarning.d.ts +31 -1
  43. package/dist/cjs/swagger/models/TradeWarning.js +13 -0
  44. package/dist/cjs/swagger/models/TradeWarningReason.d.ts +46 -0
  45. package/dist/cjs/swagger/models/TradeWarningReason.js +59 -0
  46. package/dist/cjs/swagger/models/index.d.ts +4 -0
  47. package/dist/cjs/swagger/models/index.js +4 -0
  48. package/dist/cjs/websocketClient.d.ts +109 -2
  49. package/dist/cjs/websocketClient.js +416 -74
  50. package/dist/cjs/websocketTypes.d.ts +10 -0
  51. package/dist/client.d.ts +437 -61
  52. package/dist/errors.d.ts +74 -0
  53. package/dist/errors.js +89 -0
  54. package/dist/index.d.ts +4 -4
  55. package/dist/index.js +3 -5
  56. package/dist/modelExports.d.ts +3 -0
  57. package/dist/modelExports.js +2 -0
  58. package/dist/swagger/models/BrokerClientCfg.d.ts +7 -0
  59. package/dist/swagger/models/BrokerClientCfg.js +5 -0
  60. package/dist/swagger/models/BrokerMeta.d.ts +15 -0
  61. package/dist/swagger/models/BrokerMeta.js +2 -0
  62. package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.d.ts +12 -1
  63. package/dist/swagger/models/ClientConfigUpdateOAuthLoginForm.js +2 -0
  64. package/dist/swagger/models/OAuthLoginFormConfig.d.ts +12 -1
  65. package/dist/swagger/models/OAuthLoginFormConfig.js +2 -0
  66. package/dist/swagger/models/Order.d.ts +9 -1
  67. package/dist/swagger/models/OrderCreate.d.ts +2 -1
  68. package/dist/swagger/models/PortfolioOrderDetailsSyncInfo.d.ts +60 -0
  69. package/dist/swagger/models/PortfolioOrderDetailsSyncInfo.js +45 -0
  70. package/dist/swagger/models/PortfolioOrderDetailsSyncInfoStatus.d.ts +22 -0
  71. package/dist/swagger/models/PortfolioOrderDetailsSyncInfoStatus.js +29 -0
  72. package/dist/swagger/models/PortfolioSyncInfoComplete.d.ts +7 -0
  73. package/dist/swagger/models/PortfolioSyncInfoComplete.js +6 -0
  74. package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.d.ts +7 -0
  75. package/dist/swagger/models/PortfolioSyncInfoCompleteSpecifics.js +5 -0
  76. package/dist/swagger/models/PortfolioSyncInfoIncomplete.d.ts +7 -0
  77. package/dist/swagger/models/PortfolioSyncInfoIncomplete.js +6 -0
  78. package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.d.ts +7 -0
  79. package/dist/swagger/models/PortfolioSyncInfoIncompleteSpecifics.js +5 -0
  80. package/dist/swagger/models/SmartbrokerClientCfg.d.ts +27 -0
  81. package/dist/swagger/models/SmartbrokerClientCfg.js +40 -0
  82. package/dist/swagger/models/SummarizedTrade.d.ts +14 -0
  83. package/dist/swagger/models/SummarizedTrade.js +4 -0
  84. package/dist/swagger/models/TradeWarning.d.ts +31 -1
  85. package/dist/swagger/models/TradeWarning.js +13 -0
  86. package/dist/swagger/models/TradeWarningReason.d.ts +46 -0
  87. package/dist/swagger/models/TradeWarningReason.js +53 -0
  88. package/dist/swagger/models/index.d.ts +4 -0
  89. package/dist/swagger/models/index.js +4 -0
  90. package/dist/tsdoc-metadata.json +1 -1
  91. package/dist/websocketClient.d.ts +109 -2
  92. package/dist/websocketClient.js +416 -74
  93. package/dist/websocketTypes.d.ts +10 -0
  94. package/package.json +11 -10
package/dist/client.d.ts CHANGED
@@ -433,7 +433,7 @@ declare interface ApiResponse<T> {
433
433
  }
434
434
 
435
435
  export declare interface Auth {
436
- getToken: () => Promise<{
436
+ getToken: (opts?: GetTokenOptions) => Promise<{
437
437
  idToken: string;
438
438
  }>;
439
439
  }
@@ -1090,6 +1090,11 @@ export declare class AuthorizedApiContext {
1090
1090
  private readonly _orderApiCryptoService;
1091
1091
  private readonly _logoutSubject;
1092
1092
  private readonly _wsClient;
1093
+ /**
1094
+ * `true` if this context created the websocket client itself and therefore has to destroy it.
1095
+ * A client passed in by the application is owned by the application.
1096
+ */
1097
+ private readonly _ownsWsClient;
1093
1098
  private readonly _cache;
1094
1099
  private readonly _exportApi;
1095
1100
  private readonly _adminApi;
@@ -1370,6 +1375,12 @@ declare interface BrokerClientCfg {
1370
1375
  * @memberof BrokerClientCfg
1371
1376
  */
1372
1377
  coinbase?: CoinbaseClientCfg;
1378
+ /**
1379
+ *
1380
+ * @type {SmartbrokerClientCfg}
1381
+ * @memberof BrokerClientCfg
1382
+ */
1383
+ smartbroker?: SmartbrokerClientCfg;
1373
1384
  }
1374
1385
 
1375
1386
  declare function BrokerClientCfgFromJSON(json: any): BrokerClientCfg;
@@ -1491,6 +1502,18 @@ export declare class Brokerize {
1491
1502
  }): BrokerizeWebSocketClient;
1492
1503
  }
1493
1504
 
1505
+ /**
1506
+ * Thrown when a request is made on an `AuthorizedApiContext` that was already destroyed.
1507
+ *
1508
+ * `destroy()` aborts the context's `AbortController`, so a request that is already in flight
1509
+ * rejects with a `DOMException` named `AbortError`. This error carries the same `name`, so that
1510
+ * both cases can be handled with a single check (`err.name === "AbortError"`), the way `fetch`
1511
+ * itself rejects when handed an already-aborted signal.
1512
+ */
1513
+ export declare class BrokerizeAbortError extends Error {
1514
+ constructor(msg: string);
1515
+ }
1516
+
1494
1517
  export declare interface BrokerizeConfig {
1495
1518
  fetch?: WhatWgFetch;
1496
1519
  createAbortController?: () => AbortController;
@@ -1562,13 +1585,95 @@ export declare class BrokerizeError extends Error {
1562
1585
  constructor(statusCode: number, body: ErrorResponse);
1563
1586
  }
1564
1587
 
1588
+ /**
1589
+ * Thrown if a request to the brokerize API timed out (HTTP status 504). This is typically sent by
1590
+ * a load balancer or gateway in front of the API, so the response body usually is not a regular
1591
+ * `ErrorResponse`.
1592
+ */
1593
+ export declare class BrokerizeTimeoutError extends BrokerizeError {
1594
+ constructor(body: ErrorResponse);
1595
+ }
1596
+
1565
1597
  export declare interface BrokerizeWebSocketClient {
1566
1598
  subscribeInvalidate: (subscribe: SubscribeInvalidateDetails, callback: Callback) => Subscription;
1567
1599
  subscribeDecoupledOperation: (subscribe: Pick<SubscribeDecoupledOperation, "sessionId" | "decoupledOperationId">, callback: Callback) => Subscription;
1600
+ subscribeConnectionState: (callback: ConnectionStateCallback) => Subscription;
1601
+ getConnectionState: () => WebSocketConnectionState;
1602
+ reconnect: () => void;
1603
+ }
1604
+
1605
+ /**
1606
+ * Optional behavior of `BrokerizeWebSocketClientImpl`. The defaults are what an application
1607
+ * wants; this exists for the rare case that they have to be tightened.
1608
+ */
1609
+ export declare type BrokerizeWebSocketClientOptions = {
1610
+ /**
1611
+ * How often in a row the server may reject our token before the client gives up and goes
1612
+ * `fatal`. Defaults to 10, which together with the backoff spans several minutes. Mainly here so
1613
+ * that tests do not have to wait that long.
1614
+ */
1615
+ maxConsecutiveAuthFailures?: number;
1616
+ };
1617
+
1618
+ /**
1619
+ * Every error reported by the websocket client is an instance of this class, so applications can
1620
+ * handle it like any other error (`instanceof Error`, `err.message`, stack trace) and can use the
1621
+ * same error handling as for the REST API, which reports `BrokerizeError`.
1622
+ */
1623
+ export declare class BrokerizeWebSocketError extends BrokerizeError {
1624
+ /**
1625
+ * If `true`, the affected subscription is over and will not receive any further data. Errors
1626
+ * that are passed to a subscription callback are always terminal; non-terminal errors are only
1627
+ * reported via `BrokerizeWebSocketClient.subscribeConnectionState`, because the client
1628
+ * recovers from them on its own.
1629
+ */
1630
+ readonly terminal: boolean;
1631
+ /**
1632
+ * The underlying error or event, if any.
1633
+ */
1634
+ readonly cause?: unknown;
1635
+ constructor({ msg, code, httpStatusCode, terminal, cause, }: BrokerizeWebSocketErrorParams);
1568
1636
  }
1569
1637
 
1570
- declare type BrokerizeWebSocketError = {
1638
+ /**
1639
+ * The error payload as it is sent over the websocket. Applications do not see this type: the
1640
+ * websocket client converts it into a `BrokerizeWebSocketError` (the exported error class) before
1641
+ * passing it on.
1642
+ */
1643
+ declare type BrokerizeWebSocketError_2 = {
1571
1644
  message: string;
1645
+ /**
1646
+ * A stable error code, if the server sends one. Preferred over matching `message`, which is
1647
+ * meant to be human-readable and may change.
1648
+ */
1649
+ code?: string;
1650
+ };
1651
+
1652
+ /**
1653
+ * Error codes used by {@link BrokerizeWebSocketError}.
1654
+ *
1655
+ * - `AUTH`: the websocket connection could not be authenticated. Same code as a failed token
1656
+ * refresh on the REST API, so applications can treat both identically.
1657
+ * - `WEBSOCKET_CONNECTION_FAILED`: the connection could not be established or was lost
1658
+ * (network error, failed handshake, closed socket). The client retries these automatically.
1659
+ * - `WEBSOCKET_PROTOCOL_ERROR`: a message from the server could not be parsed.
1660
+ * - `WEBSOCKET_ERROR`: any other error reported by the server.
1661
+ */
1662
+ export declare type BrokerizeWebSocketErrorCode = "AUTH" | "WEBSOCKET_CONNECTION_FAILED" | "WEBSOCKET_PROTOCOL_ERROR" | "WEBSOCKET_ERROR";
1663
+
1664
+ export declare type BrokerizeWebSocketErrorParams = {
1665
+ msg: string;
1666
+ code: BrokerizeWebSocketErrorCode;
1667
+ httpStatusCode?: number;
1668
+ /**
1669
+ * See {@link BrokerizeWebSocketError.terminal}.
1670
+ */
1671
+ terminal?: boolean;
1672
+ /**
1673
+ * The underlying error or event, if any (e.g. the rejection of `Auth.getToken` or the
1674
+ * `error` event of the websocket).
1675
+ */
1676
+ cause?: unknown;
1572
1677
  };
1573
1678
 
1574
1679
  /**
@@ -1696,6 +1801,21 @@ declare interface BrokerMeta {
1696
1801
  * @memberof BrokerMeta
1697
1802
  */
1698
1803
  loginForm?: BrokerLoginForm;
1804
+ /**
1805
+ * All brokerize exchange ids this broker's exchanges are mapped to, ascending. Use it to tell
1806
+ * upfront which brokers may be relevant for a given exchange, e.g. to preselect brokers for a
1807
+ * security that is traded there.
1808
+ *
1809
+ * This is a static, broker-wide list: it means that brokerize knows how to translate between
1810
+ * this broker's exchanges and the listed ids, not that every security can be traded at every
1811
+ * one of them. The authoritative, security-specific list of tradable exchanges remains the
1812
+ * `exchanges` field of a prepared trade.
1813
+ *
1814
+ * Every id is contained in the `GetExchanges` response, so it can always be resolved to a name.
1815
+ * @type {Array<number>}
1816
+ * @memberof BrokerMeta
1817
+ */
1818
+ supportedExchangeIds: Array<number>;
1699
1819
  /**
1700
1820
  * If true, the user can login at the broker via OAuth (this involves browser redirects). Use `prepareOAuthRedirect` to obtain a URL to redirect to.
1701
1821
  * @type {boolean}
@@ -1809,6 +1929,11 @@ declare function BrokerMetaToJSON(value?: BrokerMeta | null): any;
1809
1929
 
1810
1930
  declare function BrokerMetaToJSONRecursive(value?: BrokerMeta | null, ignoreParent?: boolean): any;
1811
1931
 
1932
+ /**
1933
+ * Callback of a subscription. `err` is always a `BrokerizeWebSocketError` with
1934
+ * `terminal === true`: the subscription is over and will not receive any further data. Errors the
1935
+ * client recovers from on its own are reported via `subscribeConnectionState` instead.
1936
+ */
1812
1937
  export declare type Callback<T = any> = (err: any, data: T) => void;
1813
1938
 
1814
1939
  declare interface CancelDecoupledOperationLegacyRequest {
@@ -2978,13 +3103,22 @@ declare interface ClientConfigUpdateOAuthLoginForm {
2978
3103
  */
2979
3104
  logoUrlLight?: string;
2980
3105
  /**
3106
+ * How the browser is sent back to the `returnTo` URL after a successful broker login.
3107
+ *
3108
+ * `meta`, `js` and `link` render the interstitial callback screen and redirect from there (via a
3109
+ * meta refresh, via JavaScript, or by revealing a link the user clicks). `http` skips the screen
3110
+ * and answers the callback with a plain HTTP 302 instead.
2981
3111
  *
3112
+ * `http` only applies to `http`/`https` `returnTo` URLs. A `returnTo` in a custom app scheme
3113
+ * still gets the interstitial, because browsers handle a 302 into an app scheme inconsistently.
3114
+ *
3115
+ * Default is `meta`.
2982
3116
  * @type {string}
2983
3117
  * @memberof ClientConfigUpdateOAuthLoginForm
2984
3118
  */
2985
3119
  redirectStyle?: ClientConfigUpdateOAuthLoginFormRedirectStyleEnum;
2986
3120
  /**
2987
- *
3121
+ * Overrides `redirectStyle` for logins at bitpanda.
2988
3122
  * @type {string}
2989
3123
  * @memberof ClientConfigUpdateOAuthLoginForm
2990
3124
  */
@@ -3002,6 +3136,7 @@ declare const ClientConfigUpdateOAuthLoginFormRedirectStyleBitpandaEnum: {
3002
3136
  readonly Meta: "meta";
3003
3137
  readonly Js: "js";
3004
3138
  readonly Link: "link";
3139
+ readonly Http: "http";
3005
3140
  };
3006
3141
 
3007
3142
  declare type ClientConfigUpdateOAuthLoginFormRedirectStyleBitpandaEnum = (typeof ClientConfigUpdateOAuthLoginFormRedirectStyleBitpandaEnum)[keyof typeof ClientConfigUpdateOAuthLoginFormRedirectStyleBitpandaEnum];
@@ -3013,6 +3148,7 @@ declare const ClientConfigUpdateOAuthLoginFormRedirectStyleEnum: {
3013
3148
  readonly Meta: "meta";
3014
3149
  readonly Js: "js";
3015
3150
  readonly Link: "link";
3151
+ readonly Http: "http";
3016
3152
  };
3017
3153
 
3018
3154
  declare type ClientConfigUpdateOAuthLoginFormRedirectStyleEnum = (typeof ClientConfigUpdateOAuthLoginFormRedirectStyleEnum)[keyof typeof ClientConfigUpdateOAuthLoginFormRedirectStyleEnum];
@@ -3176,7 +3312,7 @@ export declare type CognitoConfig = {
3176
3312
 
3177
3313
  export declare type CognitoFacade = {
3178
3314
  createSession: (cognitoPoolConfig: CognitoPoolConfig, authCfg: RegisteredUserAuthContextConfiguration) => {
3179
- getToken: () => Promise<{
3315
+ getToken: (opts?: GetTokenOptions) => Promise<{
3180
3316
  idToken: string;
3181
3317
  }>;
3182
3318
  };
@@ -3342,6 +3478,8 @@ declare function ConfirmOAuthResponseToJSON(value?: ConfirmOAuthResponse | null)
3342
3478
 
3343
3479
  declare function ConfirmOAuthResponseToJSONRecursive(value?: ConfirmOAuthResponse | null, ignoreParent?: boolean): any;
3344
3480
 
3481
+ export declare type ConnectionStateCallback = (state: WebSocketConnectionState) => void;
3482
+
3345
3483
  declare interface Consume {
3346
3484
  contentType: string;
3347
3485
  }
@@ -7113,6 +7251,15 @@ declare interface GetSecurityQuotesRequest {
7113
7251
  */
7114
7252
  declare function getSizeUnitsFromConstraints(preparedTrade: PreparedTrade, orderModel: OrderModel, direction: Direction, cashAccountId: string): string[];
7115
7253
 
7254
+ export declare type GetTokenOptions = {
7255
+ /**
7256
+ * Request a fresh token even if the currently known one is not expired yet. Used by the
7257
+ * websocket client to retry once after the server rejected a token, before giving up.
7258
+ * Implementations that cannot refresh on demand may ignore this.
7259
+ */
7260
+ forceRefresh?: boolean;
7261
+ };
7262
+
7116
7263
  declare interface GetTradeDraftsRequest {
7117
7264
  take?: number;
7118
7265
  skip?: number;
@@ -7287,6 +7434,12 @@ declare type InvalidateMessage = {
7287
7434
  subscriptionId: number;
7288
7435
  };
7289
7436
 
7437
+ /**
7438
+ * Check whether the given value is a `BrokerizeWebSocketError`. Prefer this over `instanceof`,
7439
+ * which fails if more than one copy of this package ends up in a dependency tree.
7440
+ */
7441
+ export declare function isBrokerizeWebSocketError(x: unknown): x is BrokerizeWebSocketError;
7442
+
7290
7443
  declare type Json = any;
7291
7444
 
7292
7445
  declare class JSONApiResponse<T> {
@@ -7856,6 +8009,8 @@ declare namespace Models {
7856
8009
  GetCostEstimationParams,
7857
8010
  GetOrderResponse,
7858
8011
  GetPortfolioOrdersResponse,
8012
+ PortfolioOrderDetailsSyncInfo,
8013
+ PortfolioOrderDetailsSyncInfoStatus,
7859
8014
  GetPortfolioPositionsResponse,
7860
8015
  GetPortfolioQuotesResponse,
7861
8016
  GetQuoteParams,
@@ -7928,6 +8083,7 @@ declare namespace Models {
7928
8083
  OrderIntentAvailability,
7929
8084
  SummarizedTrade,
7930
8085
  TradeWarning,
8086
+ TradeWarningReason,
7931
8087
  GetPortfolioTradesResponse,
7932
8088
  GetPortfolioTradeStatisticsResponse,
7933
8089
  TradeStatisticsItem,
@@ -7982,13 +8138,22 @@ declare interface OAuthLoginFormConfig {
7982
8138
  */
7983
8139
  logoUrlLight?: string;
7984
8140
  /**
8141
+ * How the browser is sent back to the `returnTo` URL after a successful broker login.
8142
+ *
8143
+ * `meta`, `js` and `link` render the interstitial callback screen and redirect from there (via a
8144
+ * meta refresh, via JavaScript, or by revealing a link the user clicks). `http` skips the screen
8145
+ * and answers the callback with a plain HTTP 302 instead.
7985
8146
  *
8147
+ * `http` only applies to `http`/`https` `returnTo` URLs. A `returnTo` in a custom app scheme
8148
+ * still gets the interstitial, because browsers handle a 302 into an app scheme inconsistently.
8149
+ *
8150
+ * Default is `meta`.
7986
8151
  * @type {string}
7987
8152
  * @memberof OAuthLoginFormConfig
7988
8153
  */
7989
8154
  redirectStyle?: OAuthLoginFormConfigRedirectStyleEnum;
7990
8155
  /**
7991
- *
8156
+ * Overrides `redirectStyle` for logins at bitpanda.
7992
8157
  * @type {string}
7993
8158
  * @memberof OAuthLoginFormConfig
7994
8159
  */
@@ -8006,6 +8171,7 @@ declare const OAuthLoginFormConfigRedirectStyleBitpandaEnum: {
8006
8171
  readonly Meta: "meta";
8007
8172
  readonly Js: "js";
8008
8173
  readonly Link: "link";
8174
+ readonly Http: "http";
8009
8175
  };
8010
8176
 
8011
8177
  declare type OAuthLoginFormConfigRedirectStyleBitpandaEnum = (typeof OAuthLoginFormConfigRedirectStyleBitpandaEnum)[keyof typeof OAuthLoginFormConfigRedirectStyleBitpandaEnum];
@@ -8017,6 +8183,7 @@ declare const OAuthLoginFormConfigRedirectStyleEnum: {
8017
8183
  readonly Meta: "meta";
8018
8184
  readonly Js: "js";
8019
8185
  readonly Link: "link";
8186
+ readonly Http: "http";
8020
8187
  };
8021
8188
 
8022
8189
  declare type OAuthLoginFormConfigRedirectStyleEnum = (typeof OAuthLoginFormConfigRedirectStyleEnum)[keyof typeof OAuthLoginFormConfigRedirectStyleEnum];
@@ -9159,6 +9326,15 @@ declare namespace openApiClient {
9159
9326
  PortfolioCalendarItemToJSONRecursive,
9160
9327
  PortfolioCalendarItemToJSON,
9161
9328
  PortfolioCalendarItem,
9329
+ PortfolioOrderDetailsSyncInfoFromJSON,
9330
+ PortfolioOrderDetailsSyncInfoFromJSONTyped,
9331
+ PortfolioOrderDetailsSyncInfoToJSONRecursive,
9332
+ PortfolioOrderDetailsSyncInfoToJSON,
9333
+ PortfolioOrderDetailsSyncInfo,
9334
+ PortfolioOrderDetailsSyncInfoStatusFromJSON,
9335
+ PortfolioOrderDetailsSyncInfoStatusFromJSONTyped,
9336
+ PortfolioOrderDetailsSyncInfoStatusToJSON,
9337
+ PortfolioOrderDetailsSyncInfoStatus,
9162
9338
  PortfolioQuotesFromJSON,
9163
9339
  PortfolioQuotesFromJSONTyped,
9164
9340
  PortfolioQuotesToJSONRecursive,
@@ -9404,6 +9580,11 @@ declare namespace openApiClient {
9404
9580
  SizeUnitConstraintToJSONRecursive,
9405
9581
  SizeUnitConstraintToJSON,
9406
9582
  SizeUnitConstraint,
9583
+ SmartbrokerClientCfgFromJSON,
9584
+ SmartbrokerClientCfgFromJSONTyped,
9585
+ SmartbrokerClientCfgToJSONRecursive,
9586
+ SmartbrokerClientCfgToJSON,
9587
+ SmartbrokerClientCfg,
9407
9588
  StringMapByOrderModelFromJSON,
9408
9589
  StringMapByOrderModelFromJSONTyped,
9409
9590
  StringMapByOrderModelToJSONRecursive,
@@ -9538,6 +9719,10 @@ declare namespace openApiClient {
9538
9719
  TradeWarningToJSONRecursive,
9539
9720
  TradeWarningToJSON,
9540
9721
  TradeWarning,
9722
+ TradeWarningReasonFromJSON,
9723
+ TradeWarningReasonFromJSONTyped,
9724
+ TradeWarningReasonToJSON,
9725
+ TradeWarningReason,
9541
9726
  TradingSessionLifetimeFromJSON,
9542
9727
  TradingSessionLifetimeFromJSONTyped,
9543
9728
  TradingSessionLifetimeToJSON,
@@ -9639,7 +9824,14 @@ declare interface Order {
9639
9824
  */
9640
9825
  bondCurrencyIso?: string;
9641
9826
  /**
9827
+ * The id of the exchange, as defined by the *broker*.
9642
9828
  *
9829
+ * When reading an order this **can be an empty string**: not every order is traded on an exchange -- a securities
9830
+ * account transfer, for example, is booked into or out of the custody account and has no trading venue, so the
9831
+ * broker reports no exchange for it. Clients must handle the empty string.
9832
+ *
9833
+ * Note that this field will become optional in a future version of the API, so clients should not rely on it
9834
+ * being present at all. For creating an order it stays required, see `OrderCreate`.
9643
9835
  * @type {string}
9644
9836
  * @memberof Order
9645
9837
  */
@@ -9723,7 +9915,8 @@ declare interface Order {
9723
9915
  */
9724
9916
  exchangeName?: string;
9725
9917
  /**
9726
- * For fully executed orders: the timestamp of the *latest* execution.
9918
+ * For orders with at least one execution (`executed`, `open_executed`, `canceled_executed`):
9919
+ * the timestamp of the *latest* execution.
9727
9920
  * @type {Date}
9728
9921
  * @memberof Order
9729
9922
  */
@@ -10188,7 +10381,8 @@ declare function OrderCostEstimationToJSONRecursive(value?: OrderCostEstimation
10188
10381
  */
10189
10382
  declare interface OrderCreate {
10190
10383
  /**
10191
- *
10384
+ * The id of the exchange, as defined by the *broker*. Always required to create an order, and never empty --
10385
+ * unlike when reading an order, where the broker may report no exchange (see `OrderBase.brokerExchangeId`).
10192
10386
  * @type {string}
10193
10387
  * @memberof OrderCreate
10194
10388
  */
@@ -11152,6 +11346,77 @@ declare function PortfolioFromJSON(json: any): Portfolio;
11152
11346
 
11153
11347
  declare function PortfolioFromJSONTyped(json: any, ignoreDiscriminator: boolean): Portfolio;
11154
11348
 
11349
+ /**
11350
+ * Whether the *details* of the synced orders are already known — the executions, and with them the
11351
+ * execution prices and the fees.
11352
+ *
11353
+ * This is a second, independent axis next to the sync status: a portfolio counts as `COMPLETE` as
11354
+ * soon as every order has been loaded, but some brokers (flatex) report an order's executions only
11355
+ * when that single order is fetched individually, which happens during the sync for recent orders
11356
+ * only. The remaining ones are fetched in the background afterwards.
11357
+ *
11358
+ * It matters because every evaluation that reconstructs the past — the trade list, the trade
11359
+ * statistics, the value history — is built from executions alone. An order whose details are still
11360
+ * missing contributes nothing at all to them.
11361
+ *
11362
+ * Not reported on every endpoint; absent means "no statement", not "complete".
11363
+ * @export
11364
+ * @interface PortfolioOrderDetailsSyncInfo
11365
+ */
11366
+ declare interface PortfolioOrderDetailsSyncInfo {
11367
+ /**
11368
+ * Set while `status` is `PENDING`, absent once it is `COMPLETE`.
11369
+ *
11370
+ * Evaluations are complete for everything that happened after this point in time; before it,
11371
+ * executions may still be missing. It is the timestamp of the newest order whose details are
11372
+ * still outstanding — and it is that order, not the oldest one, because the reconstruction is
11373
+ * anchored at the current holdings and works backwards: a gap only affects what lies before it.
11374
+ *
11375
+ * The boundary moves backwards as the background fetch works through the backlog, newest first.
11376
+ * It is not a progress bar for the *amount* that is still missing: details fetched out of order
11377
+ * (a user opening an old order in the app fetches it right away) close a gap behind the
11378
+ * boundary and leave it where it is.
11379
+ *
11380
+ * Caveat: for an order whose details are missing, the broker has usually only told us when it
11381
+ * was *created*, not when it executed — an order that executed considerably later than it was
11382
+ * created can therefore sit slightly after this boundary.
11383
+ * @type {Date}
11384
+ * @memberof PortfolioOrderDetailsSyncInfo
11385
+ */
11386
+ completeFrom?: Date;
11387
+ /**
11388
+ *
11389
+ * @type {PortfolioOrderDetailsSyncInfoStatus}
11390
+ * @memberof PortfolioOrderDetailsSyncInfo
11391
+ */
11392
+ status: PortfolioOrderDetailsSyncInfoStatus;
11393
+ }
11394
+
11395
+ declare function PortfolioOrderDetailsSyncInfoFromJSON(json: any): PortfolioOrderDetailsSyncInfo;
11396
+
11397
+ declare function PortfolioOrderDetailsSyncInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortfolioOrderDetailsSyncInfo;
11398
+
11399
+ /**
11400
+ *
11401
+ * @export
11402
+ */
11403
+ declare const PortfolioOrderDetailsSyncInfoStatus: {
11404
+ readonly Complete: "COMPLETE";
11405
+ readonly Pending: "PENDING";
11406
+ };
11407
+
11408
+ declare type PortfolioOrderDetailsSyncInfoStatus = (typeof PortfolioOrderDetailsSyncInfoStatus)[keyof typeof PortfolioOrderDetailsSyncInfoStatus];
11409
+
11410
+ declare function PortfolioOrderDetailsSyncInfoStatusFromJSON(json: any): PortfolioOrderDetailsSyncInfoStatus;
11411
+
11412
+ declare function PortfolioOrderDetailsSyncInfoStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortfolioOrderDetailsSyncInfoStatus;
11413
+
11414
+ declare function PortfolioOrderDetailsSyncInfoStatusToJSON(value?: PortfolioOrderDetailsSyncInfoStatus | null): any;
11415
+
11416
+ declare function PortfolioOrderDetailsSyncInfoToJSON(value?: PortfolioOrderDetailsSyncInfo | null): any;
11417
+
11418
+ declare function PortfolioOrderDetailsSyncInfoToJSONRecursive(value?: PortfolioOrderDetailsSyncInfo | null, ignoreParent?: boolean): any;
11419
+
11155
11420
  /**
11156
11421
  *
11157
11422
  * @export
@@ -11259,16 +11524,6 @@ declare type PortfolioSyncInfo = ({
11259
11524
  status: "PENDING";
11260
11525
  } & PortfolioSyncInfoPending);
11261
11526
 
11262
- /**
11263
- * brokerize
11264
- * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
11265
- *
11266
- *
11267
- *
11268
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11269
- * https://openapi-generator.tech
11270
- * Do not edit the class manually.
11271
- */
11272
11527
  /**
11273
11528
  *
11274
11529
  * @export
@@ -11287,6 +11542,12 @@ declare interface PortfolioSyncInfoComplete {
11287
11542
  * @memberof PortfolioSyncInfoComplete
11288
11543
  */
11289
11544
  lastSync: Date;
11545
+ /**
11546
+ *
11547
+ * @type {PortfolioOrderDetailsSyncInfo}
11548
+ * @memberof PortfolioSyncInfoComplete
11549
+ */
11550
+ orderDetails?: PortfolioOrderDetailsSyncInfo;
11290
11551
  }
11291
11552
 
11292
11553
  /**
@@ -11334,16 +11595,6 @@ declare function PortfolioSyncInfoCompleteFromJSON(json: any): PortfolioSyncInfo
11334
11595
 
11335
11596
  declare function PortfolioSyncInfoCompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortfolioSyncInfoComplete;
11336
11597
 
11337
- /**
11338
- * brokerize
11339
- * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
11340
- *
11341
- *
11342
- *
11343
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11344
- * https://openapi-generator.tech
11345
- * Do not edit the class manually.
11346
- */
11347
11598
  /**
11348
11599
  *
11349
11600
  * @export
@@ -11356,6 +11607,12 @@ declare interface PortfolioSyncInfoCompleteSpecifics {
11356
11607
  * @memberof PortfolioSyncInfoCompleteSpecifics
11357
11608
  */
11358
11609
  lastSync?: Date;
11610
+ /**
11611
+ *
11612
+ * @type {PortfolioOrderDetailsSyncInfo}
11613
+ * @memberof PortfolioSyncInfoCompleteSpecifics
11614
+ */
11615
+ orderDetails?: PortfolioOrderDetailsSyncInfo;
11359
11616
  }
11360
11617
 
11361
11618
  declare function PortfolioSyncInfoCompleteSpecificsFromJSON(json: any): PortfolioSyncInfoCompleteSpecifics;
@@ -11483,16 +11740,6 @@ declare function PortfolioSyncInfoFromJSON(json: any): PortfolioSyncInfo;
11483
11740
 
11484
11741
  declare function PortfolioSyncInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortfolioSyncInfo;
11485
11742
 
11486
- /**
11487
- * brokerize
11488
- * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
11489
- *
11490
- *
11491
- *
11492
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11493
- * https://openapi-generator.tech
11494
- * Do not edit the class manually.
11495
- */
11496
11743
  /**
11497
11744
  *
11498
11745
  * @export
@@ -11511,6 +11758,12 @@ declare interface PortfolioSyncInfoIncomplete {
11511
11758
  * @memberof PortfolioSyncInfoIncomplete
11512
11759
  */
11513
11760
  lastSync: Date;
11761
+ /**
11762
+ *
11763
+ * @type {PortfolioOrderDetailsSyncInfo}
11764
+ * @memberof PortfolioSyncInfoIncomplete
11765
+ */
11766
+ orderDetails?: PortfolioOrderDetailsSyncInfo;
11514
11767
  }
11515
11768
 
11516
11769
  /**
@@ -11558,16 +11811,6 @@ declare function PortfolioSyncInfoIncompleteFromJSON(json: any): PortfolioSyncIn
11558
11811
 
11559
11812
  declare function PortfolioSyncInfoIncompleteFromJSONTyped(json: any, ignoreDiscriminator: boolean): PortfolioSyncInfoIncomplete;
11560
11813
 
11561
- /**
11562
- * brokerize
11563
- * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
11564
- *
11565
- *
11566
- *
11567
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11568
- * https://openapi-generator.tech
11569
- * Do not edit the class manually.
11570
- */
11571
11814
  /**
11572
11815
  *
11573
11816
  * @export
@@ -11580,6 +11823,12 @@ declare interface PortfolioSyncInfoIncompleteSpecifics {
11580
11823
  * @memberof PortfolioSyncInfoIncompleteSpecifics
11581
11824
  */
11582
11825
  lastSync?: Date;
11826
+ /**
11827
+ *
11828
+ * @type {PortfolioOrderDetailsSyncInfo}
11829
+ * @memberof PortfolioSyncInfoIncompleteSpecifics
11830
+ */
11831
+ orderDetails?: PortfolioOrderDetailsSyncInfo;
11583
11832
  }
11584
11833
 
11585
11834
  declare function PortfolioSyncInfoIncompleteSpecificsFromJSON(json: any): PortfolioSyncInfoIncompleteSpecifics;
@@ -13609,6 +13858,38 @@ declare function SizeUnitConstraintToJSON(value?: SizeUnitConstraint | null): an
13609
13858
 
13610
13859
  declare function SizeUnitConstraintToJSONRecursive(value?: SizeUnitConstraint | null, ignoreParent?: boolean): any;
13611
13860
 
13861
+ /**
13862
+ * brokerize
13863
+ * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
13864
+ *
13865
+ *
13866
+ *
13867
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
13868
+ * https://openapi-generator.tech
13869
+ * Do not edit the class manually.
13870
+ */
13871
+ /**
13872
+ *
13873
+ * @export
13874
+ * @interface SmartbrokerClientCfg
13875
+ */
13876
+ declare interface SmartbrokerClientCfg {
13877
+ /**
13878
+ * If the client must use a different broker-provided clientId, it can be configured here.
13879
+ * @type {string}
13880
+ * @memberof SmartbrokerClientCfg
13881
+ */
13882
+ clientIdProd?: string;
13883
+ }
13884
+
13885
+ declare function SmartbrokerClientCfgFromJSON(json: any): SmartbrokerClientCfg;
13886
+
13887
+ declare function SmartbrokerClientCfgFromJSONTyped(json: any, ignoreDiscriminator: boolean): SmartbrokerClientCfg;
13888
+
13889
+ declare function SmartbrokerClientCfgToJSON(value?: SmartbrokerClientCfg | null): any;
13890
+
13891
+ declare function SmartbrokerClientCfgToJSONRecursive(value?: SmartbrokerClientCfg | null, ignoreParent?: boolean): any;
13892
+
13612
13893
  /**
13613
13894
  * brokerize
13614
13895
  * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
@@ -13753,6 +14034,20 @@ declare interface SummarizedTrade {
13753
14034
  * @memberof SummarizedTrade
13754
14035
  */
13755
14036
  closeDateTime: Date;
14037
+ /**
14038
+ * True if this trade was not closed by a sale but by the instrument being booked out — it knocked
14039
+ * out or expired, and the issuer removed the position from the depot without a sell order ever
14040
+ * reaching the order archive.
14041
+ *
14042
+ * The closing execution is therefore synthetic: brokerize derives it from the knock-out date and
14043
+ * prices it with the instrument's closing price on that day (0 where none is known, which is the
14044
+ * floor rather than a claim — the issuer's buy-back, if there was one, is not in the archive). The
14045
+ * P/L is otherwise computed exactly like any other trade's, FIFO-matched against the position's own
14046
+ * buys. Absent on an ordinary trade.
14047
+ * @type {boolean}
14048
+ * @memberof SummarizedTrade
14049
+ */
14050
+ closedByKnockOut?: boolean;
13756
14051
  /**
13757
14052
  *
13758
14053
  * @type {string}
@@ -15033,16 +15328,6 @@ declare function TradeStatisticsToJSON(value?: TradeStatistics | null): any;
15033
15328
 
15034
15329
  declare function TradeStatisticsToJSONRecursive(value?: TradeStatistics | null, ignoreParent?: boolean): any;
15035
15330
 
15036
- /**
15037
- * brokerize
15038
- * The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
15039
- *
15040
- *
15041
- *
15042
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15043
- * https://openapi-generator.tech
15044
- * Do not edit the class manually.
15045
- */
15046
15331
  /**
15047
15332
  *
15048
15333
  * @export
@@ -15050,17 +15335,86 @@ declare function TradeStatisticsToJSONRecursive(value?: TradeStatistics | null,
15050
15335
  */
15051
15336
  declare interface TradeWarning {
15052
15337
  /**
15053
- *
15338
+ * Date in the format YYYY-MM-DD for validityType: 'GTD'
15339
+ * Date in the format Date ISO string YYYY-MM-DDThh:mm:ss.fffZ for validityType: 'GTDT'
15340
+ * @type {string}
15341
+ * @memberof TradeWarning
15342
+ */
15343
+ fromDate?: string;
15344
+ /**
15345
+ * Human-readable description, currently German or English depending on where it originates. Meant
15346
+ * as a fallback for displaying something at all — a client that knows `reason` should build its
15347
+ * own text from the structured fields instead.
15054
15348
  * @type {string}
15055
15349
  * @memberof TradeWarning
15056
15350
  */
15057
15351
  message: string;
15352
+ /**
15353
+ *
15354
+ * @type {TradeWarningReason}
15355
+ * @memberof TradeWarning
15356
+ */
15357
+ reason: TradeWarningReason;
15358
+ /**
15359
+ *
15360
+ * @type {Security}
15361
+ * @memberof TradeWarning
15362
+ */
15363
+ security?: Security;
15364
+ /**
15365
+ * Date in the format YYYY-MM-DD for validityType: 'GTD'
15366
+ * Date in the format Date ISO string YYYY-MM-DDThh:mm:ss.fffZ for validityType: 'GTDT'
15367
+ * @type {string}
15368
+ * @memberof TradeWarning
15369
+ */
15370
+ toDate?: string;
15058
15371
  }
15059
15372
 
15060
15373
  declare function TradeWarningFromJSON(json: any): TradeWarning;
15061
15374
 
15062
15375
  declare function TradeWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeWarning;
15063
15376
 
15377
+ /**
15378
+ * Why a trade or portfolio-history computation could not give a complete answer. Clients switch on
15379
+ * this instead of parsing `TradeWarning.message`, which is free text and may change at any time.
15380
+ *
15381
+ * - `executionsWithoutTimestamp`: order executions carry no execution time, so they cannot be placed
15382
+ * on a timeline and were ignored altogether.
15383
+ * - `inconsistentOrderHistory`: the executions of one security contradict each other or the reported
15384
+ * holding (more sold than ever bought, a quantity that goes negative). Nothing can be reconstructed
15385
+ * from them, so the security is left out of the value history and its trades are not reported.
15386
+ * - `positionNotFullyExplained`: the order archive covers only part of a position — typical for
15387
+ * brokers that return just the most recent weeks. What is held today is known, but its history
15388
+ * reaches further back than the executions do.
15389
+ * - `missingEodPrice`: no closing price was available for the security on some days; it was valued
15390
+ * with the last price known before them.
15391
+ * - `missingFxRate`: no exchange rate to the portfolio currency exists for the security's currency, so
15392
+ * its amounts are *not* converted and the totals they enter are off by the conversion.
15393
+ * - `unknownBuyPrice`: no purchase price could be determined for a position, so it is missing from the
15394
+ * buy value (and from the profit it implies).
15395
+ * - `realizedPnlUnavailable`: the completed trades could not be computed at all, which leaves the
15396
+ * realized profit/loss empty rather than wrong.
15397
+ * @export
15398
+ */
15399
+ declare const TradeWarningReason: {
15400
+ readonly ExecutionsWithoutTimestamp: "executionsWithoutTimestamp";
15401
+ readonly InconsistentOrderHistory: "inconsistentOrderHistory";
15402
+ readonly OrderDetailsIncomplete: "orderDetailsIncomplete";
15403
+ readonly PositionNotFullyExplained: "positionNotFullyExplained";
15404
+ readonly MissingEodPrice: "missingEodPrice";
15405
+ readonly MissingFxRate: "missingFxRate";
15406
+ readonly UnknownBuyPrice: "unknownBuyPrice";
15407
+ readonly RealizedPnlUnavailable: "realizedPnlUnavailable";
15408
+ };
15409
+
15410
+ declare type TradeWarningReason = (typeof TradeWarningReason)[keyof typeof TradeWarningReason];
15411
+
15412
+ declare function TradeWarningReasonFromJSON(json: any): TradeWarningReason;
15413
+
15414
+ declare function TradeWarningReasonFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeWarningReason;
15415
+
15416
+ declare function TradeWarningReasonToJSON(value?: TradeWarningReason | null): any;
15417
+
15064
15418
  declare function TradeWarningToJSON(value?: TradeWarning | null): any;
15065
15419
 
15066
15420
  declare function TradeWarningToJSONRecursive(value?: TradeWarning | null, ignoreParent?: boolean): any;
@@ -15451,8 +15805,30 @@ declare type WebSocketCommandUnsubscribe = {
15451
15805
  subscriptionId: number;
15452
15806
  };
15453
15807
 
15808
+ export declare type WebSocketConnectionState = {
15809
+ status: WebSocketConnectionStatus;
15810
+ error?: BrokerizeWebSocketError;
15811
+ };
15812
+
15813
+ /**
15814
+ * - `closed`: not connected, because nothing is subscribed.
15815
+ * - `connecting`: the first connection attempt is in progress.
15816
+ * - `open`: connected and authenticated, live updates are being delivered.
15817
+ * - `reconnecting`: the connection failed or was lost and the client is retrying. `error` holds
15818
+ * the error that caused it. Subscriptions stay alive and receive a synthetic invalidate once
15819
+ * the connection is back.
15820
+ *
15821
+ * A rejected token lands here too, so an application can show that live updates are currently
15822
+ * unavailable - and why - while the client works on getting back in, instead of having to
15823
+ * rebuild everything over a token that expired in flight.
15824
+ * - `fatal`: the client gave up and is unusable. All subscriptions were terminated with `error`.
15825
+ * This only happens after the token has been rejected over and over for several minutes, i.e.
15826
+ * when the session is gone rather than stale. Call `reconnect()` or create a new client.
15827
+ */
15828
+ export declare type WebSocketConnectionStatus = "closed" | "connecting" | "open" | "reconnecting" | "fatal";
15829
+
15454
15830
  declare type WebSocketError = {
15455
- error: BrokerizeWebSocketError;
15831
+ error: BrokerizeWebSocketError_2;
15456
15832
  };
15457
15833
 
15458
15834
  declare interface WebSocketEventMap_2 {
@@ -15466,7 +15842,7 @@ declare type WebSocketMessage = WebSocketSubscriptionMessage | WebSocketError |
15466
15842
 
15467
15843
  declare type WebSocketMessageErrorOnSubscription = {
15468
15844
  subscriptionId: number;
15469
- error: BrokerizeWebSocketError;
15845
+ error: BrokerizeWebSocketError_2;
15470
15846
  };
15471
15847
 
15472
15848
  declare type WebSocketPingMessage = {
@@ -15493,7 +15869,7 @@ declare namespace WebSocketTypes {
15493
15869
  WebSocketMessageErrorOnSubscription,
15494
15870
  InvalidateMessage,
15495
15871
  UpdateDecoupledOperationMessage,
15496
- BrokerizeWebSocketError,
15872
+ BrokerizeWebSocketError_2 as BrokerizeWebSocketError,
15497
15873
  WebSocketError,
15498
15874
  DecoupledOperationState_2 as DecoupledOperationState,
15499
15875
  DecoupledOperationStatus_2 as DecoupledOperationStatus