@brokerize/client 1.3.8 → 1.3.10
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/dist/authorizedApiContext.d.ts +21 -22
- package/dist/authorizedApiContext.js +36 -41
- package/dist/client.d.ts +746 -393
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/modelExports.d.ts +1 -0
- package/dist/swagger/apis/DecoupledOperationsApi.d.ts +35 -0
- package/dist/swagger/apis/DecoupledOperationsApi.js +86 -0
- package/dist/swagger/apis/DemobrokerApi.d.ts +2 -2
- package/dist/swagger/apis/DemobrokerApi.js +2 -2
- package/dist/swagger/apis/{ChangeOrderApi.d.ts → OrderApi.d.ts} +35 -2
- package/dist/swagger/apis/{ChangeOrderApi.js → OrderApi.js} +117 -2
- package/dist/swagger/apis/{DefaultApi.d.ts → PortfolioApi.d.ts} +2 -160
- package/dist/swagger/apis/{DefaultApi.js → PortfolioApi.js} +2 -568
- package/dist/swagger/apis/SessionApi.d.ts +146 -0
- package/dist/swagger/apis/SessionApi.js +474 -0
- package/dist/swagger/apis/UserApi.d.ts +89 -1
- package/dist/swagger/apis/UserApi.js +309 -1
- package/dist/swagger/apis/WebsocketApi.d.ts +24 -0
- package/dist/swagger/apis/WebsocketApi.js +38 -0
- package/dist/swagger/apis/index.d.ts +5 -4
- package/dist/swagger/apis/index.js +5 -4
- package/dist/swagger/models/CheckRecoveryPhrase200Response.d.ts +27 -0
- package/dist/swagger/models/CheckRecoveryPhrase200Response.js +37 -0
- package/dist/swagger/models/CreateRecoveryPhraseParams.d.ts +28 -0
- package/dist/swagger/models/CreateRecoveryPhraseParams.js +37 -0
- package/dist/swagger/models/CreateRecoveryPhraseResult.d.ts +27 -0
- package/dist/swagger/models/CreateRecoveryPhraseResult.js +37 -0
- package/dist/swagger/models/GetRecoveryPhrasesResponse.d.ts +28 -0
- package/dist/swagger/models/GetRecoveryPhrasesResponse.js +38 -0
- package/dist/swagger/models/GetUserResponse.d.ts +6 -0
- package/dist/swagger/models/GetUserResponse.js +2 -0
- package/dist/swagger/models/LogoutOkResponseBody.d.ts +33 -0
- package/dist/swagger/models/LogoutOkResponseBody.js +42 -0
- package/dist/swagger/models/ObtainTokenByRecoveryPhraseParams.d.ts +27 -0
- package/dist/swagger/models/ObtainTokenByRecoveryPhraseParams.js +37 -0
- package/dist/swagger/models/RecoveryPhraseItem.d.ts +51 -0
- package/dist/swagger/models/RecoveryPhraseItem.js +45 -0
- package/dist/swagger/models/index.d.ts +7 -0
- package/dist/swagger/models/index.js +7 -0
- package/package.json +1 -1
- package/dist/swagger/apis/BrokerLoginApi.d.ts +0 -59
- package/dist/swagger/apis/BrokerLoginApi.js +0 -169
- package/dist/swagger/apis/CancelOrderApi.d.ts +0 -41
- package/dist/swagger/apis/CancelOrderApi.js +0 -101
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* brokerize
|
|
5
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
export function CheckRecoveryPhrase200ResponseFromJSON(json) {
|
|
14
|
+
return CheckRecoveryPhrase200ResponseFromJSONTyped(json, false);
|
|
15
|
+
}
|
|
16
|
+
export function CheckRecoveryPhrase200ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if (json === undefined || json === null) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
expiresAt: new Date(json["expiresAt"]),
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function CheckRecoveryPhrase200ResponseToJSONRecursive(value, ignoreParent = false) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
expiresAt: value.expiresAt.toISOString(),
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function CheckRecoveryPhrase200ResponseToJSON(value) {
|
|
36
|
+
return CheckRecoveryPhrase200ResponseToJSONRecursive(value, false);
|
|
37
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface CreateRecoveryPhraseParams
|
|
15
|
+
*/
|
|
16
|
+
export interface CreateRecoveryPhraseParams {
|
|
17
|
+
/**
|
|
18
|
+
* A name for the RecoveryPhrase. Must be unique for the user so that they can identify it in the list
|
|
19
|
+
* of RecoveryPhrases.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreateRecoveryPhraseParams
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function CreateRecoveryPhraseParamsFromJSON(json: any): CreateRecoveryPhraseParams;
|
|
26
|
+
export declare function CreateRecoveryPhraseParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRecoveryPhraseParams;
|
|
27
|
+
export declare function CreateRecoveryPhraseParamsToJSONRecursive(value?: CreateRecoveryPhraseParams | null, ignoreParent?: boolean): any;
|
|
28
|
+
export declare function CreateRecoveryPhraseParamsToJSON(value?: CreateRecoveryPhraseParams | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* brokerize
|
|
5
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
export function CreateRecoveryPhraseParamsFromJSON(json) {
|
|
14
|
+
return CreateRecoveryPhraseParamsFromJSONTyped(json, false);
|
|
15
|
+
}
|
|
16
|
+
export function CreateRecoveryPhraseParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if (json === undefined || json === null) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
name: json["name"],
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function CreateRecoveryPhraseParamsToJSONRecursive(value, ignoreParent = false) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
name: value.name,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function CreateRecoveryPhraseParamsToJSON(value) {
|
|
36
|
+
return CreateRecoveryPhraseParamsToJSONRecursive(value, false);
|
|
37
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface CreateRecoveryPhraseResult
|
|
15
|
+
*/
|
|
16
|
+
export interface CreateRecoveryPhraseResult {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof CreateRecoveryPhraseResult
|
|
21
|
+
*/
|
|
22
|
+
recoveryPhrase: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function CreateRecoveryPhraseResultFromJSON(json: any): CreateRecoveryPhraseResult;
|
|
25
|
+
export declare function CreateRecoveryPhraseResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateRecoveryPhraseResult;
|
|
26
|
+
export declare function CreateRecoveryPhraseResultToJSONRecursive(value?: CreateRecoveryPhraseResult | null, ignoreParent?: boolean): any;
|
|
27
|
+
export declare function CreateRecoveryPhraseResultToJSON(value?: CreateRecoveryPhraseResult | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* brokerize
|
|
5
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
export function CreateRecoveryPhraseResultFromJSON(json) {
|
|
14
|
+
return CreateRecoveryPhraseResultFromJSONTyped(json, false);
|
|
15
|
+
}
|
|
16
|
+
export function CreateRecoveryPhraseResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if (json === undefined || json === null) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
recoveryPhrase: json["recoveryPhrase"],
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function CreateRecoveryPhraseResultToJSONRecursive(value, ignoreParent = false) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
recoveryPhrase: value.recoveryPhrase,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function CreateRecoveryPhraseResultToJSON(value) {
|
|
36
|
+
return CreateRecoveryPhraseResultToJSONRecursive(value, false);
|
|
37
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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 { RecoveryPhraseItem } from "./RecoveryPhraseItem";
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface GetRecoveryPhrasesResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface GetRecoveryPhrasesResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Array<RecoveryPhraseItem>}
|
|
21
|
+
* @memberof GetRecoveryPhrasesResponse
|
|
22
|
+
*/
|
|
23
|
+
recoveryPhrases: Array<RecoveryPhraseItem>;
|
|
24
|
+
}
|
|
25
|
+
export declare function GetRecoveryPhrasesResponseFromJSON(json: any): GetRecoveryPhrasesResponse;
|
|
26
|
+
export declare function GetRecoveryPhrasesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetRecoveryPhrasesResponse;
|
|
27
|
+
export declare function GetRecoveryPhrasesResponseToJSONRecursive(value?: GetRecoveryPhrasesResponse | null, ignoreParent?: boolean): any;
|
|
28
|
+
export declare function GetRecoveryPhrasesResponseToJSON(value?: GetRecoveryPhrasesResponse | null): any;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* brokerize
|
|
5
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
import { RecoveryPhraseItemFromJSON, RecoveryPhraseItemToJSON, } from "./RecoveryPhraseItem";
|
|
14
|
+
export function GetRecoveryPhrasesResponseFromJSON(json) {
|
|
15
|
+
return GetRecoveryPhrasesResponseFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function GetRecoveryPhrasesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if (json === undefined || json === null) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
recoveryPhrases: json["recoveryPhrases"].map(RecoveryPhraseItemFromJSON),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function GetRecoveryPhrasesResponseToJSONRecursive(value, ignoreParent = false) {
|
|
26
|
+
if (value === undefined) {
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
if (value === null) {
|
|
30
|
+
return null;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
recoveryPhrases: value.recoveryPhrases.map(RecoveryPhraseItemToJSON),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function GetRecoveryPhrasesResponseToJSON(value) {
|
|
37
|
+
return GetRecoveryPhrasesResponseToJSONRecursive(value, false);
|
|
38
|
+
}
|
|
@@ -18,6 +18,7 @@ export function GetUserResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18
18
|
return json;
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
|
+
createdAt: new Date(json["createdAt"]),
|
|
21
22
|
isGuest: json["isGuest"],
|
|
22
23
|
userId: json["userId"],
|
|
23
24
|
};
|
|
@@ -30,6 +31,7 @@ export function GetUserResponseToJSONRecursive(value, ignoreParent = false) {
|
|
|
30
31
|
return null;
|
|
31
32
|
}
|
|
32
33
|
return {
|
|
34
|
+
createdAt: value.createdAt.toISOString(),
|
|
33
35
|
isGuest: value.isGuest,
|
|
34
36
|
userId: value.userId,
|
|
35
37
|
};
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface LogoutOkResponseBody
|
|
15
|
+
*/
|
|
16
|
+
export interface LogoutOkResponseBody {
|
|
17
|
+
/**
|
|
18
|
+
* If this is returned, the logout must be completed in the frontend (e.g. when the broker sets cookies for use in their OAuth flow).
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof LogoutOkResponseBody
|
|
21
|
+
*/
|
|
22
|
+
frontendLogoutUrl?: string;
|
|
23
|
+
/**
|
|
24
|
+
* A success message to display to the user.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof LogoutOkResponseBody
|
|
27
|
+
*/
|
|
28
|
+
msg: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function LogoutOkResponseBodyFromJSON(json: any): LogoutOkResponseBody;
|
|
31
|
+
export declare function LogoutOkResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): LogoutOkResponseBody;
|
|
32
|
+
export declare function LogoutOkResponseBodyToJSONRecursive(value?: LogoutOkResponseBody | null, ignoreParent?: boolean): any;
|
|
33
|
+
export declare function LogoutOkResponseBodyToJSON(value?: LogoutOkResponseBody | null): any;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* brokerize
|
|
5
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
import { exists } from "../runtime";
|
|
14
|
+
export function LogoutOkResponseBodyFromJSON(json) {
|
|
15
|
+
return LogoutOkResponseBodyFromJSONTyped(json, false);
|
|
16
|
+
}
|
|
17
|
+
export function LogoutOkResponseBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
18
|
+
if (json === undefined || json === null) {
|
|
19
|
+
return json;
|
|
20
|
+
}
|
|
21
|
+
return {
|
|
22
|
+
frontendLogoutUrl: !exists(json, "frontendLogoutUrl")
|
|
23
|
+
? undefined
|
|
24
|
+
: json["frontendLogoutUrl"],
|
|
25
|
+
msg: json["msg"],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function LogoutOkResponseBodyToJSONRecursive(value, ignoreParent = false) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
frontendLogoutUrl: value.frontendLogoutUrl,
|
|
37
|
+
msg: value.msg,
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
export function LogoutOkResponseBodyToJSON(value) {
|
|
41
|
+
return LogoutOkResponseBodyToJSONRecursive(value, false);
|
|
42
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface ObtainTokenByRecoveryPhraseParams
|
|
15
|
+
*/
|
|
16
|
+
export interface ObtainTokenByRecoveryPhraseParams {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {string}
|
|
20
|
+
* @memberof ObtainTokenByRecoveryPhraseParams
|
|
21
|
+
*/
|
|
22
|
+
recoveryPhrase: string;
|
|
23
|
+
}
|
|
24
|
+
export declare function ObtainTokenByRecoveryPhraseParamsFromJSON(json: any): ObtainTokenByRecoveryPhraseParams;
|
|
25
|
+
export declare function ObtainTokenByRecoveryPhraseParamsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObtainTokenByRecoveryPhraseParams;
|
|
26
|
+
export declare function ObtainTokenByRecoveryPhraseParamsToJSONRecursive(value?: ObtainTokenByRecoveryPhraseParams | null, ignoreParent?: boolean): any;
|
|
27
|
+
export declare function ObtainTokenByRecoveryPhraseParamsToJSON(value?: ObtainTokenByRecoveryPhraseParams | null): any;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* brokerize
|
|
5
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
export function ObtainTokenByRecoveryPhraseParamsFromJSON(json) {
|
|
14
|
+
return ObtainTokenByRecoveryPhraseParamsFromJSONTyped(json, false);
|
|
15
|
+
}
|
|
16
|
+
export function ObtainTokenByRecoveryPhraseParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if (json === undefined || json === null) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
recoveryPhrase: json["recoveryPhrase"],
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export function ObtainTokenByRecoveryPhraseParamsToJSONRecursive(value, ignoreParent = false) {
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
recoveryPhrase: value.recoveryPhrase,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
export function ObtainTokenByRecoveryPhraseParamsToJSON(value) {
|
|
36
|
+
return ObtainTokenByRecoveryPhraseParamsToJSONRecursive(value, false);
|
|
37
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
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
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @export
|
|
14
|
+
* @interface RecoveryPhraseItem
|
|
15
|
+
*/
|
|
16
|
+
export interface RecoveryPhraseItem {
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @type {Date}
|
|
20
|
+
* @memberof RecoveryPhraseItem
|
|
21
|
+
*/
|
|
22
|
+
createdAt: Date;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {Date}
|
|
26
|
+
* @memberof RecoveryPhraseItem
|
|
27
|
+
*/
|
|
28
|
+
expiresAt: Date;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RecoveryPhraseItem
|
|
33
|
+
*/
|
|
34
|
+
id: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Date}
|
|
38
|
+
* @memberof RecoveryPhraseItem
|
|
39
|
+
*/
|
|
40
|
+
lastUsedAt: Date;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof RecoveryPhraseItem
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
export declare function RecoveryPhraseItemFromJSON(json: any): RecoveryPhraseItem;
|
|
49
|
+
export declare function RecoveryPhraseItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecoveryPhraseItem;
|
|
50
|
+
export declare function RecoveryPhraseItemToJSONRecursive(value?: RecoveryPhraseItem | null, ignoreParent?: boolean): any;
|
|
51
|
+
export declare function RecoveryPhraseItemToJSON(value?: RecoveryPhraseItem | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* brokerize
|
|
5
|
+
* The brokerize API allows clients to implement multi-brokerage with a unified interface. For more information, visit brokerize.com
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
export function RecoveryPhraseItemFromJSON(json) {
|
|
14
|
+
return RecoveryPhraseItemFromJSONTyped(json, false);
|
|
15
|
+
}
|
|
16
|
+
export function RecoveryPhraseItemFromJSONTyped(json, ignoreDiscriminator) {
|
|
17
|
+
if (json === undefined || json === null) {
|
|
18
|
+
return json;
|
|
19
|
+
}
|
|
20
|
+
return {
|
|
21
|
+
createdAt: new Date(json["createdAt"]),
|
|
22
|
+
expiresAt: new Date(json["expiresAt"]),
|
|
23
|
+
id: json["id"],
|
|
24
|
+
lastUsedAt: new Date(json["lastUsedAt"]),
|
|
25
|
+
name: json["name"],
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
export function RecoveryPhraseItemToJSONRecursive(value, ignoreParent = false) {
|
|
29
|
+
if (value === undefined) {
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
32
|
+
if (value === null) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
createdAt: value.createdAt.toISOString(),
|
|
37
|
+
expiresAt: value.expiresAt.toISOString(),
|
|
38
|
+
id: value.id,
|
|
39
|
+
lastUsedAt: value.lastUsedAt.toISOString(),
|
|
40
|
+
name: value.name,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function RecoveryPhraseItemToJSON(value) {
|
|
44
|
+
return RecoveryPhraseItemToJSONRecursive(value, false);
|
|
45
|
+
}
|
|
@@ -44,6 +44,7 @@ export * from "./Challenge";
|
|
|
44
44
|
export * from "./ChangeOrderChallengeParams";
|
|
45
45
|
export * from "./ChangeOrderParams";
|
|
46
46
|
export * from "./ChangeOrderResponse";
|
|
47
|
+
export * from "./CheckRecoveryPhrase200Response";
|
|
47
48
|
export * from "./ClientConfig";
|
|
48
49
|
export * from "./ClientConfigMaintenanceStatus";
|
|
49
50
|
export * from "./ClientConfigUpdate";
|
|
@@ -63,6 +64,8 @@ export * from "./CreateModeSessionTanAllOf";
|
|
|
63
64
|
export * from "./CreateModeSessionTanSpecifics";
|
|
64
65
|
export * from "./CreateOrderChallengeParams";
|
|
65
66
|
export * from "./CreateOrderParams";
|
|
67
|
+
export * from "./CreateRecoveryPhraseParams";
|
|
68
|
+
export * from "./CreateRecoveryPhraseResult";
|
|
66
69
|
export * from "./CreateTanChallengeParams";
|
|
67
70
|
export * from "./CreateTradeDrafts200Response";
|
|
68
71
|
export * from "./CreateTradeResponse";
|
|
@@ -141,6 +144,7 @@ export * from "./GetPortfolioTradeStatisticsResponse";
|
|
|
141
144
|
export * from "./GetPortfolioTradesResponse";
|
|
142
145
|
export * from "./GetQuoteParams";
|
|
143
146
|
export * from "./GetQuoteResponse";
|
|
147
|
+
export * from "./GetRecoveryPhrasesResponse";
|
|
144
148
|
export * from "./GetUserResponse";
|
|
145
149
|
export * from "./GuestUserLifetime";
|
|
146
150
|
export * from "./Hint";
|
|
@@ -154,8 +158,10 @@ export * from "./LoginResponseReady";
|
|
|
154
158
|
export * from "./LoginResponseReadyAllOf";
|
|
155
159
|
export * from "./LoginResponseReadySpecifics";
|
|
156
160
|
export * from "./LoginResponseState";
|
|
161
|
+
export * from "./LogoutOkResponseBody";
|
|
157
162
|
export * from "./MaintenanceStatus";
|
|
158
163
|
export * from "./OAuthLoginFormConfig";
|
|
164
|
+
export * from "./ObtainTokenByRecoveryPhraseParams";
|
|
159
165
|
export * from "./OkResponseBody";
|
|
160
166
|
export * from "./Order";
|
|
161
167
|
export * from "./OrderChanges";
|
|
@@ -197,6 +203,7 @@ export * from "./PrepareOAuthRedirectResponse";
|
|
|
197
203
|
export * from "./PrepareTradeResponse";
|
|
198
204
|
export * from "./PreparedTrade";
|
|
199
205
|
export * from "./QuoteExpiration";
|
|
206
|
+
export * from "./RecoveryPhraseItem";
|
|
200
207
|
export * from "./RenamePortfolioRequest";
|
|
201
208
|
export * from "./RenderGenericTableParams";
|
|
202
209
|
export * from "./RiskClassInfo";
|
|
@@ -46,6 +46,7 @@ export * from "./Challenge";
|
|
|
46
46
|
export * from "./ChangeOrderChallengeParams";
|
|
47
47
|
export * from "./ChangeOrderParams";
|
|
48
48
|
export * from "./ChangeOrderResponse";
|
|
49
|
+
export * from "./CheckRecoveryPhrase200Response";
|
|
49
50
|
export * from "./ClientConfig";
|
|
50
51
|
export * from "./ClientConfigMaintenanceStatus";
|
|
51
52
|
export * from "./ClientConfigUpdate";
|
|
@@ -65,6 +66,8 @@ export * from "./CreateModeSessionTanAllOf";
|
|
|
65
66
|
export * from "./CreateModeSessionTanSpecifics";
|
|
66
67
|
export * from "./CreateOrderChallengeParams";
|
|
67
68
|
export * from "./CreateOrderParams";
|
|
69
|
+
export * from "./CreateRecoveryPhraseParams";
|
|
70
|
+
export * from "./CreateRecoveryPhraseResult";
|
|
68
71
|
export * from "./CreateTanChallengeParams";
|
|
69
72
|
export * from "./CreateTradeDrafts200Response";
|
|
70
73
|
export * from "./CreateTradeResponse";
|
|
@@ -143,6 +146,7 @@ export * from "./GetPortfolioTradeStatisticsResponse";
|
|
|
143
146
|
export * from "./GetPortfolioTradesResponse";
|
|
144
147
|
export * from "./GetQuoteParams";
|
|
145
148
|
export * from "./GetQuoteResponse";
|
|
149
|
+
export * from "./GetRecoveryPhrasesResponse";
|
|
146
150
|
export * from "./GetUserResponse";
|
|
147
151
|
export * from "./GuestUserLifetime";
|
|
148
152
|
export * from "./Hint";
|
|
@@ -156,8 +160,10 @@ export * from "./LoginResponseReady";
|
|
|
156
160
|
export * from "./LoginResponseReadyAllOf";
|
|
157
161
|
export * from "./LoginResponseReadySpecifics";
|
|
158
162
|
export * from "./LoginResponseState";
|
|
163
|
+
export * from "./LogoutOkResponseBody";
|
|
159
164
|
export * from "./MaintenanceStatus";
|
|
160
165
|
export * from "./OAuthLoginFormConfig";
|
|
166
|
+
export * from "./ObtainTokenByRecoveryPhraseParams";
|
|
161
167
|
export * from "./OkResponseBody";
|
|
162
168
|
export * from "./Order";
|
|
163
169
|
export * from "./OrderChanges";
|
|
@@ -199,6 +205,7 @@ export * from "./PrepareOAuthRedirectResponse";
|
|
|
199
205
|
export * from "./PrepareTradeResponse";
|
|
200
206
|
export * from "./PreparedTrade";
|
|
201
207
|
export * from "./QuoteExpiration";
|
|
208
|
+
export * from "./RecoveryPhraseItem";
|
|
202
209
|
export * from "./RenamePortfolioRequest";
|
|
203
210
|
export * from "./RenderGenericTableParams";
|
|
204
211
|
export * from "./RiskClassInfo";
|
package/package.json
CHANGED
|
@@ -1,59 +0,0 @@
|
|
|
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 { AddSessionCompleteChallengeParams, AddSessionParams, ConfirmOAuthParams, ConfirmOAuthResponse, LoginResponse, LoginResponseReady, PrepareOAuthRedirectParams, PrepareOAuthRedirectResponse } from "../models";
|
|
13
|
-
export interface AddSessionRequest {
|
|
14
|
-
addSessionParams: AddSessionParams;
|
|
15
|
-
}
|
|
16
|
-
export interface AddSessionCompleteChallengeRequest {
|
|
17
|
-
addSessionCompleteChallengeParams: AddSessionCompleteChallengeParams;
|
|
18
|
-
}
|
|
19
|
-
export interface ConfirmOAuthRequest {
|
|
20
|
-
confirmOAuthParams: ConfirmOAuthParams;
|
|
21
|
-
}
|
|
22
|
-
export interface PrepareOAuthRedirectRequest {
|
|
23
|
-
prepareOAuthRedirectParams: PrepareOAuthRedirectParams;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
export declare class BrokerLoginApi extends runtime.BaseAPI {
|
|
29
|
-
/**
|
|
30
|
-
*/
|
|
31
|
-
addSessionRaw(requestParameters: AddSessionRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<LoginResponse>>;
|
|
32
|
-
/**
|
|
33
|
-
*/
|
|
34
|
-
addSession(requestParameters: AddSessionRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LoginResponse>;
|
|
35
|
-
/**
|
|
36
|
-
* If login returns the state `challenge`, the login must be completed by providing a challenge response first.
|
|
37
|
-
*/
|
|
38
|
-
addSessionCompleteChallengeRaw(requestParameters: AddSessionCompleteChallengeRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<LoginResponseReady>>;
|
|
39
|
-
/**
|
|
40
|
-
* If login returns the state `challenge`, the login must be completed by providing a challenge response first.
|
|
41
|
-
*/
|
|
42
|
-
addSessionCompleteChallenge(requestParameters: AddSessionCompleteChallengeRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<LoginResponseReady>;
|
|
43
|
-
/**
|
|
44
|
-
* For brokers with OAuth login processes, this adds the session to the user\'s account after redirects happen. Only the user that is redirected from the broker login in the browser will receive the `code`. This step ensures that the logged-in user at brokerize is actually the one that has gone through the broker OAuth steps.
|
|
45
|
-
*/
|
|
46
|
-
confirmOAuthRaw(requestParameters: ConfirmOAuthRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<ConfirmOAuthResponse>>;
|
|
47
|
-
/**
|
|
48
|
-
* For brokers with OAuth login processes, this adds the session to the user\'s account after redirects happen. Only the user that is redirected from the broker login in the browser will receive the `code`. This step ensures that the logged-in user at brokerize is actually the one that has gone through the broker OAuth steps.
|
|
49
|
-
*/
|
|
50
|
-
confirmOAuth(requestParameters: ConfirmOAuthRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<ConfirmOAuthResponse>;
|
|
51
|
-
/**
|
|
52
|
-
* For brokers with `isOAuth`, sessions can not be created using `AddSession`. This is how a session can be added for an OAuth-based login process: 1. use `prepareOAuthRedirect` to obtain a URL to redirect to. You can provide a `returnTo` URL which will be redirected to later. Note that a list of allowed URLs has to be configured for the client. 2. redirect the user\'s browser to the `redirectTo` URL 3. after the user has logged in at the broker\'s interface, a redirect to `returnTo` with the URL query parameters `verifysession=1`, `code` and `ticketId` will happen 4. the `returnTo` page must call `confirmOAuth` with the given `ticketId` and `code` to finally add the session to the user\'s account
|
|
53
|
-
*/
|
|
54
|
-
prepareOAuthRedirectRaw(requestParameters: PrepareOAuthRedirectRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<runtime.ApiResponse<PrepareOAuthRedirectResponse>>;
|
|
55
|
-
/**
|
|
56
|
-
* For brokers with `isOAuth`, sessions can not be created using `AddSession`. This is how a session can be added for an OAuth-based login process: 1. use `prepareOAuthRedirect` to obtain a URL to redirect to. You can provide a `returnTo` URL which will be redirected to later. Note that a list of allowed URLs has to be configured for the client. 2. redirect the user\'s browser to the `redirectTo` URL 3. after the user has logged in at the broker\'s interface, a redirect to `returnTo` with the URL query parameters `verifysession=1`, `code` and `ticketId` will happen 4. the `returnTo` page must call `confirmOAuth` with the given `ticketId` and `code` to finally add the session to the user\'s account
|
|
57
|
-
*/
|
|
58
|
-
prepareOAuthRedirect(requestParameters: PrepareOAuthRedirectRequest, initOverrides?: RequestInit | runtime.InitOverideFunction): Promise<PrepareOAuthRedirectResponse>;
|
|
59
|
-
}
|