import * as _m0 from 'protobufjs/minimal'; import { MoneyValue, Quotation } from './common'; export declare const protobufPackage = "tinkoff.public.invest.api.contract.v1"; export declare enum AccountType { ACCOUNT_TYPE_UNSPECIFIED = 0, ACCOUNT_TYPE_TINKOFF = 1, ACCOUNT_TYPE_TINKOFF_IIS = 2, ACCOUNT_TYPE_INVEST_BOX = 3, ACCOUNT_TYPE_INVEST_FUND = 4, ACCOUNT_TYPE_DEBIT = 5, ACCOUNT_TYPE_SAVING = 6, ACCOUNT_TYPE_DFA = 7, UNRECOGNIZED = -1 } export declare function accountTypeFromJSON(object: any): AccountType; export declare function accountTypeToJSON(object: AccountType): string; export declare enum AccountStatus { ACCOUNT_STATUS_UNSPECIFIED = 0, ACCOUNT_STATUS_NEW = 1, ACCOUNT_STATUS_OPEN = 2, ACCOUNT_STATUS_CLOSED = 3, ACCOUNT_STATUS_ALL = 4, UNRECOGNIZED = -1 } export declare function accountStatusFromJSON(object: any): AccountStatus; export declare function accountStatusToJSON(object: AccountStatus): string; export declare enum AccessLevel { ACCOUNT_ACCESS_LEVEL_UNSPECIFIED = 0, ACCOUNT_ACCESS_LEVEL_FULL_ACCESS = 1, ACCOUNT_ACCESS_LEVEL_READ_ONLY = 2, ACCOUNT_ACCESS_LEVEL_NO_ACCESS = 3, UNRECOGNIZED = -1 } export declare function accessLevelFromJSON(object: any): AccessLevel; export declare function accessLevelToJSON(object: AccessLevel): string; export declare enum AccountValue { ACCOUNT_VALUE_UNSPECIFIED = 0, ACCOUNT_VALUE_MARGIN_FEE = 1, ACCOUNT_VALUE_AMOUNT_WITHOUT_EXTRA_FEE = 2, UNRECOGNIZED = -1 } export declare function accountValueFromJSON(object: any): AccountValue; export declare function accountValueToJSON(object: AccountValue): string; export interface GetAccountsRequest { status?: AccountStatus | undefined; } export interface GetAccountsResponse { accounts: Account[]; } export interface Account { id: string; type: AccountType; name: string; status: AccountStatus; openedDate: Date | undefined; closedDate: Date | undefined; accessLevel: AccessLevel; } export interface GetMarginAttributesRequest { accountId: string; } export interface GetMarginAttributesResponse { liquidPortfolio: MoneyValue | undefined; startingMargin: MoneyValue | undefined; minimalMargin: MoneyValue | undefined; fundsSufficiencyLevel: Quotation | undefined; amountOfMissingFunds: MoneyValue | undefined; correctedMargin: MoneyValue | undefined; guaranteeForFutures: MoneyValue | undefined; } export interface GetUserTariffRequest { } export interface GetUserTariffResponse { unaryLimits: UnaryLimit[]; streamLimits: StreamLimit[]; } export interface UnaryLimit { limitPerMinute: number; methods: string[]; limitPerSecond?: number | undefined; } export interface StreamLimit { limit: number; streams: string[]; open: number; } export interface GetInfoRequest { } export interface GetInfoResponse { premStatus: boolean; qualStatus: boolean; qualifiedForWorkWith: string[]; tariff: string; userId: string; riskLevelCode: string; } export interface GetBankAccountsRequest { } export interface GetBankAccountsResponse { bankAccounts: BankAccount[]; } export interface BankAccount { id: string; name: string; money: MoneyValue[]; openedDate: Date | undefined; type: AccountType; } export interface CurrencyTransferRequest { fromAccountId: string; toAccountId: string; amount: MoneyValue | undefined; transactionId: string; } export interface CurrencyTransferResponse { } export interface PayInRequest { fromAccountId: string; toAccountId: string; amount: MoneyValue | undefined; } export interface PayInResponse { } export interface GetAccountValuesRequest { accounts: string[]; values: AccountValue[]; } export interface GetAccountValuesResponse { accounts: AccountValuesWithParameters[]; } export interface AccountValuesWithParameters { accountId: string; values: InstrumentParameter[]; } export interface InstrumentParameter { name: AccountValue; value: MoneyValue | undefined; } export declare const GetAccountsRequest: { encode(message: GetAccountsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountsRequest; fromJSON(object: any): GetAccountsRequest; toJSON(message: GetAccountsRequest): unknown; fromPartial(object: DeepPartial): GetAccountsRequest; }; export declare const GetAccountsResponse: { encode(message: GetAccountsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountsResponse; fromJSON(object: any): GetAccountsResponse; toJSON(message: GetAccountsResponse): unknown; fromPartial(object: DeepPartial): GetAccountsResponse; }; export declare const Account: { encode(message: Account, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Account; fromJSON(object: any): Account; toJSON(message: Account): unknown; fromPartial(object: DeepPartial): Account; }; export declare const GetMarginAttributesRequest: { encode(message: GetMarginAttributesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMarginAttributesRequest; fromJSON(object: any): GetMarginAttributesRequest; toJSON(message: GetMarginAttributesRequest): unknown; fromPartial(object: DeepPartial): GetMarginAttributesRequest; }; export declare const GetMarginAttributesResponse: { encode(message: GetMarginAttributesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMarginAttributesResponse; fromJSON(object: any): GetMarginAttributesResponse; toJSON(message: GetMarginAttributesResponse): unknown; fromPartial(object: DeepPartial): GetMarginAttributesResponse; }; export declare const GetUserTariffRequest: { encode(_: GetUserTariffRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetUserTariffRequest; fromJSON(_: any): GetUserTariffRequest; toJSON(_: GetUserTariffRequest): unknown; fromPartial(_: DeepPartial): GetUserTariffRequest; }; export declare const GetUserTariffResponse: { encode(message: GetUserTariffResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetUserTariffResponse; fromJSON(object: any): GetUserTariffResponse; toJSON(message: GetUserTariffResponse): unknown; fromPartial(object: DeepPartial): GetUserTariffResponse; }; export declare const UnaryLimit: { encode(message: UnaryLimit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UnaryLimit; fromJSON(object: any): UnaryLimit; toJSON(message: UnaryLimit): unknown; fromPartial(object: DeepPartial): UnaryLimit; }; export declare const StreamLimit: { encode(message: StreamLimit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): StreamLimit; fromJSON(object: any): StreamLimit; toJSON(message: StreamLimit): unknown; fromPartial(object: DeepPartial): StreamLimit; }; export declare const GetInfoRequest: { encode(_: GetInfoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetInfoRequest; fromJSON(_: any): GetInfoRequest; toJSON(_: GetInfoRequest): unknown; fromPartial(_: DeepPartial): GetInfoRequest; }; export declare const GetInfoResponse: { encode(message: GetInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetInfoResponse; fromJSON(object: any): GetInfoResponse; toJSON(message: GetInfoResponse): unknown; fromPartial(object: DeepPartial): GetInfoResponse; }; export declare const GetBankAccountsRequest: { encode(_: GetBankAccountsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetBankAccountsRequest; fromJSON(_: any): GetBankAccountsRequest; toJSON(_: GetBankAccountsRequest): unknown; fromPartial(_: DeepPartial): GetBankAccountsRequest; }; export declare const GetBankAccountsResponse: { encode(message: GetBankAccountsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetBankAccountsResponse; fromJSON(object: any): GetBankAccountsResponse; toJSON(message: GetBankAccountsResponse): unknown; fromPartial(object: DeepPartial): GetBankAccountsResponse; }; export declare const BankAccount: { encode(message: BankAccount, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): BankAccount; fromJSON(object: any): BankAccount; toJSON(message: BankAccount): unknown; fromPartial(object: DeepPartial): BankAccount; }; export declare const CurrencyTransferRequest: { encode(message: CurrencyTransferRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CurrencyTransferRequest; fromJSON(object: any): CurrencyTransferRequest; toJSON(message: CurrencyTransferRequest): unknown; fromPartial(object: DeepPartial): CurrencyTransferRequest; }; export declare const CurrencyTransferResponse: { encode(_: CurrencyTransferResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CurrencyTransferResponse; fromJSON(_: any): CurrencyTransferResponse; toJSON(_: CurrencyTransferResponse): unknown; fromPartial(_: DeepPartial): CurrencyTransferResponse; }; export declare const PayInRequest: { encode(message: PayInRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PayInRequest; fromJSON(object: any): PayInRequest; toJSON(message: PayInRequest): unknown; fromPartial(object: DeepPartial): PayInRequest; }; export declare const PayInResponse: { encode(_: PayInResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PayInResponse; fromJSON(_: any): PayInResponse; toJSON(_: PayInResponse): unknown; fromPartial(_: DeepPartial): PayInResponse; }; export declare const GetAccountValuesRequest: { encode(message: GetAccountValuesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountValuesRequest; fromJSON(object: any): GetAccountValuesRequest; toJSON(message: GetAccountValuesRequest): unknown; fromPartial(object: DeepPartial): GetAccountValuesRequest; }; export declare const GetAccountValuesResponse: { encode(message: GetAccountValuesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountValuesResponse; fromJSON(object: any): GetAccountValuesResponse; toJSON(message: GetAccountValuesResponse): unknown; fromPartial(object: DeepPartial): GetAccountValuesResponse; }; export declare const AccountValuesWithParameters: { encode(message: AccountValuesWithParameters, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AccountValuesWithParameters; fromJSON(object: any): AccountValuesWithParameters; toJSON(message: AccountValuesWithParameters): unknown; fromPartial(object: DeepPartial): AccountValuesWithParameters; }; export declare const InstrumentParameter: { encode(message: InstrumentParameter, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): InstrumentParameter; fromJSON(object: any): InstrumentParameter; toJSON(message: InstrumentParameter): unknown; fromPartial(object: DeepPartial): InstrumentParameter; }; export type UsersServiceDefinition = typeof UsersServiceDefinition; export declare const UsersServiceDefinition: { readonly name: "UsersService"; readonly fullName: "tinkoff.public.invest.api.contract.v1.UsersService"; readonly methods: { readonly getAccounts: { readonly name: "GetAccounts"; readonly requestType: { encode(message: GetAccountsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountsRequest; fromJSON(object: any): GetAccountsRequest; toJSON(message: GetAccountsRequest): unknown; fromPartial(object: DeepPartial): GetAccountsRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetAccountsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountsResponse; fromJSON(object: any): GetAccountsResponse; toJSON(message: GetAccountsResponse): unknown; fromPartial(object: DeepPartial): GetAccountsResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getMarginAttributes: { readonly name: "GetMarginAttributes"; readonly requestType: { encode(message: GetMarginAttributesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMarginAttributesRequest; fromJSON(object: any): GetMarginAttributesRequest; toJSON(message: GetMarginAttributesRequest): unknown; fromPartial(object: DeepPartial): GetMarginAttributesRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetMarginAttributesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetMarginAttributesResponse; fromJSON(object: any): GetMarginAttributesResponse; toJSON(message: GetMarginAttributesResponse): unknown; fromPartial(object: DeepPartial): GetMarginAttributesResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getUserTariff: { readonly name: "GetUserTariff"; readonly requestType: { encode(_: GetUserTariffRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetUserTariffRequest; fromJSON(_: any): GetUserTariffRequest; toJSON(_: GetUserTariffRequest): unknown; fromPartial(_: DeepPartial): GetUserTariffRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetUserTariffResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetUserTariffResponse; fromJSON(object: any): GetUserTariffResponse; toJSON(message: GetUserTariffResponse): unknown; fromPartial(object: DeepPartial): GetUserTariffResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getInfo: { readonly name: "GetInfo"; readonly requestType: { encode(_: GetInfoRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetInfoRequest; fromJSON(_: any): GetInfoRequest; toJSON(_: GetInfoRequest): unknown; fromPartial(_: DeepPartial): GetInfoRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetInfoResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetInfoResponse; fromJSON(object: any): GetInfoResponse; toJSON(message: GetInfoResponse): unknown; fromPartial(object: DeepPartial): GetInfoResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getBankAccounts: { readonly name: "GetBankAccounts"; readonly requestType: { encode(_: GetBankAccountsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetBankAccountsRequest; fromJSON(_: any): GetBankAccountsRequest; toJSON(_: GetBankAccountsRequest): unknown; fromPartial(_: DeepPartial): GetBankAccountsRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetBankAccountsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetBankAccountsResponse; fromJSON(object: any): GetBankAccountsResponse; toJSON(message: GetBankAccountsResponse): unknown; fromPartial(object: DeepPartial): GetBankAccountsResponse; }; readonly responseStream: false; readonly options: {}; }; readonly currencyTransfer: { readonly name: "CurrencyTransfer"; readonly requestType: { encode(message: CurrencyTransferRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CurrencyTransferRequest; fromJSON(object: any): CurrencyTransferRequest; toJSON(message: CurrencyTransferRequest): unknown; fromPartial(object: DeepPartial): CurrencyTransferRequest; }; readonly requestStream: false; readonly responseType: { encode(_: CurrencyTransferResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CurrencyTransferResponse; fromJSON(_: any): CurrencyTransferResponse; toJSON(_: CurrencyTransferResponse): unknown; fromPartial(_: DeepPartial): CurrencyTransferResponse; }; readonly responseStream: false; readonly options: {}; }; readonly payIn: { readonly name: "PayIn"; readonly requestType: { encode(message: PayInRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PayInRequest; fromJSON(object: any): PayInRequest; toJSON(message: PayInRequest): unknown; fromPartial(object: DeepPartial): PayInRequest; }; readonly requestStream: false; readonly responseType: { encode(_: PayInResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PayInResponse; fromJSON(_: any): PayInResponse; toJSON(_: PayInResponse): unknown; fromPartial(_: DeepPartial): PayInResponse; }; readonly responseStream: false; readonly options: {}; }; readonly getAccountValues: { readonly name: "GetAccountValues"; readonly requestType: { encode(message: GetAccountValuesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountValuesRequest; fromJSON(object: any): GetAccountValuesRequest; toJSON(message: GetAccountValuesRequest): unknown; fromPartial(object: DeepPartial): GetAccountValuesRequest; }; readonly requestStream: false; readonly responseType: { encode(message: GetAccountValuesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAccountValuesResponse; fromJSON(object: any): GetAccountValuesResponse; toJSON(message: GetAccountValuesResponse): unknown; fromPartial(object: DeepPartial): GetAccountValuesResponse; }; readonly responseStream: false; readonly options: {}; }; }; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export {};