Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion packages/protocol/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
octobot_protocol_ts
octobot_protocol_rs
89 changes: 89 additions & 0 deletions packages/protocol/octobot_protocol_ts/models/Account.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { AccountDetails } from '../models/AccountDetails';
import { AccountState } from '../models/AccountState';

/**
* Account
*/
export class Account {
'id': string;
'name': string;
'is_simulated': boolean;
'description'?: string;
'state'?: AccountState;
'created_at': string;
'updated_at': string;
'details'?: AccountDetails;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
},
{
"name": "name",
"baseName": "name",
"type": "string",
"format": ""
},
{
"name": "is_simulated",
"baseName": "is_simulated",
"type": "boolean",
"format": ""
},
{
"name": "description",
"baseName": "description",
"type": "string",
"format": ""
},
{
"name": "state",
"baseName": "state",
"type": "AccountState",
"format": ""
},
{
"name": "created_at",
"baseName": "created_at",
"type": "Date",
"format": "date-time"
},
{
"name": "updated_at",
"baseName": "updated_at",
"type": "Date",
"format": "date-time"
},
{
"name": "details",
"baseName": "details",
"type": "AccountDetails",
"format": ""
} ];

static getAttributeTypeMap() {
return Account.attributeTypeMap;
}

public constructor() {
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { AccountActionResultErrorMessage } from '../models/AccountActionResultErrorMessage';
import { UserActionResultType } from '../models/UserActionResultType';

/**
* AccountActionResult
*/
export class AccountActionResult {
'updated_at': string;
'error_message'?: AccountActionResultErrorMessage;
'error_details'?: string;
'result_type': UserActionResultType;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "updated_at",
"baseName": "updated_at",
"type": "Date",
"format": "date-time"
},
{
"name": "error_message",
"baseName": "error_message",
"type": "AccountActionResultErrorMessage",
"format": ""
},
{
"name": "error_details",
"baseName": "error_details",
"type": "string",
"format": ""
},
{
"name": "result_type",
"baseName": "result_type",
"type": "UserActionResultType",
"format": ""
} ];

static getAttributeTypeMap() {
return AccountActionResult.attributeTypeMap;
}

public constructor() {
}
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
* AccountActionResultErrorMessage
*/
export type AccountActionResultErrorMessage = 'account_not_found' | 'invalid_configuration' | 'internal_error'
38 changes: 38 additions & 0 deletions packages/protocol/octobot_protocol_ts/models/AccountDetails.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { BlockchainAccount } from '../models/BlockchainAccount';
import { ExchangeAccount } from '../models/ExchangeAccount';
import { GenericAccount } from '../models/GenericAccount';

/**
* @type AccountDetails
* Type
* @export
*/
export type AccountDetails = BlockchainAccount | ExchangeAccount | GenericAccount;

/**
* @type AccountDetailsClass
* @export
*/
export class AccountDetailsClass {
static readonly discriminator: string | undefined = "account_type";

static readonly mapping: {[index: string]: string} | undefined = {
"blockchain": "BlockchainAccount",
"exchange": "ExchangeAccount",
"generic": "GenericAccount",
};
}


Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
* AccountReference
*/
export class AccountReference {
'id': string;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "id",
"baseName": "id",
"type": "string",
"format": ""
} ];

static getAttributeTypeMap() {
return AccountReference.attributeTypeMap;
}

public constructor() {
}
}
49 changes: 49 additions & 0 deletions packages/protocol/octobot_protocol_ts/models/AccountState.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { AccountStatus } from '../models/AccountStatus';
import { AccountStatusMessage } from '../models/AccountStatusMessage';

/**
* AccountState
*/
export class AccountState {
'status': AccountStatus;
'message'?: AccountStatusMessage;

static readonly discriminator: string | undefined = undefined;

static readonly mapping: {[index: string]: string} | undefined = undefined;

static readonly attributeTypeMap: Array<{name: string, baseName: string, type: string, format: string}> = [
{
"name": "status",
"baseName": "status",
"type": "AccountStatus",
"format": ""
},
{
"name": "message",
"baseName": "message",
"type": "AccountStatusMessage",
"format": ""
} ];

static getAttributeTypeMap() {
return AccountState.attributeTypeMap;
}

public constructor() {
}
}


17 changes: 17 additions & 0 deletions packages/protocol/octobot_protocol_ts/models/AccountStatus.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
* AccountStatus
*/
export type AccountStatus = 'valid' | 'invalid' | 'unknown'
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
* AccountStatusMessage
*/
export type AccountStatusMessage = 'pending_validation' | 'valid' | 'invalid_api_keys' | 'missing_api_trading_rights' | 'revoke_api_withdrawal_rights' | 'invalid_api_ip_whitelist' | 'internal_server_error' | 'account_too_old' | 'incompatible_account_referral'
17 changes: 17 additions & 0 deletions packages/protocol/octobot_protocol_ts/models/AccountType.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* OctoBot protocol types
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/


/**
* Account category discriminator.
*/
export type AccountType = 'generic' | 'exchange' | 'blockchain'
Loading
Loading