@brokerize/client 1.3.9 → 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 +20 -21
- package/dist/authorizedApiContext.js +36 -41
- package/dist/client.d.ts +689 -386
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/swagger/apis/DecoupledOperationsApi.d.ts +35 -0
- package/dist/swagger/apis/DecoupledOperationsApi.js +86 -0
- 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/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 +6 -0
- package/dist/swagger/models/index.js +6 -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
|
+
}
|
|
@@ -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";
|
|
@@ -157,6 +161,7 @@ export * from "./LoginResponseState";
|
|
|
157
161
|
export * from "./LogoutOkResponseBody";
|
|
158
162
|
export * from "./MaintenanceStatus";
|
|
159
163
|
export * from "./OAuthLoginFormConfig";
|
|
164
|
+
export * from "./ObtainTokenByRecoveryPhraseParams";
|
|
160
165
|
export * from "./OkResponseBody";
|
|
161
166
|
export * from "./Order";
|
|
162
167
|
export * from "./OrderChanges";
|
|
@@ -198,6 +203,7 @@ export * from "./PrepareOAuthRedirectResponse";
|
|
|
198
203
|
export * from "./PrepareTradeResponse";
|
|
199
204
|
export * from "./PreparedTrade";
|
|
200
205
|
export * from "./QuoteExpiration";
|
|
206
|
+
export * from "./RecoveryPhraseItem";
|
|
201
207
|
export * from "./RenamePortfolioRequest";
|
|
202
208
|
export * from "./RenderGenericTableParams";
|
|
203
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";
|
|
@@ -159,6 +163,7 @@ export * from "./LoginResponseState";
|
|
|
159
163
|
export * from "./LogoutOkResponseBody";
|
|
160
164
|
export * from "./MaintenanceStatus";
|
|
161
165
|
export * from "./OAuthLoginFormConfig";
|
|
166
|
+
export * from "./ObtainTokenByRecoveryPhraseParams";
|
|
162
167
|
export * from "./OkResponseBody";
|
|
163
168
|
export * from "./Order";
|
|
164
169
|
export * from "./OrderChanges";
|
|
@@ -200,6 +205,7 @@ export * from "./PrepareOAuthRedirectResponse";
|
|
|
200
205
|
export * from "./PrepareTradeResponse";
|
|
201
206
|
export * from "./PreparedTrade";
|
|
202
207
|
export * from "./QuoteExpiration";
|
|
208
|
+
export * from "./RecoveryPhraseItem";
|
|
203
209
|
export * from "./RenamePortfolioRequest";
|
|
204
210
|
export * from "./RenderGenericTableParams";
|
|
205
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
|
-
}
|