From b5fd78f526e4d778173d55d89fe66626577d34d7 Mon Sep 17 00:00:00 2001 From: huzaif Date: Tue, 5 Jan 2021 22:46:55 +0530 Subject: [PATCH] updated types --- lib/resources/accounts.js | 2 -- types/base.d.ts | 6 ++-- types/resources/accounts.d.ts | 18 ++++++------ types/resources/applications.d.ts | 6 ++-- types/resources/call.d.ts | 28 +++++++++---------- types/resources/callFeedback.d.ts | 6 ++-- types/resources/conferences.d.ts | 6 ++-- types/resources/endpoints.d.ts | 8 +++--- types/resources/lookup.d.ts | 4 +-- types/resources/media.d.ts | 6 ++-- types/resources/messages.d.ts | 8 +++--- types/resources/numbers.d.ts | 12 ++++---- types/resources/phlo.d.ts | 16 +++++------ types/resources/phloMultiPartyCallMember.d.ts | 8 +++--- types/resources/phloMultipartyCall.d.ts | 6 ++-- types/resources/powerpacks.d.ts | 24 ++++++++-------- types/resources/pricings.d.ts | 4 +-- types/resources/recordings.d.ts | 6 ++-- types/rest/client-test.d.ts | 6 ++-- types/rest/client.d.ts | 6 ++-- types/utils/jwt.d.ts | 2 +- types/utils/security.d.ts | 6 ++-- 22 files changed, 96 insertions(+), 98 deletions(-) diff --git a/lib/resources/accounts.js b/lib/resources/accounts.js index da8a22c..6446c8b 100644 --- a/lib/resources/accounts.js +++ b/lib/resources/accounts.js @@ -1,8 +1,6 @@ import {PlivoResource, PlivoResourceInterface} from '../base'; import {extend, validate} from '../utils/common.js'; -import { PlivoGenericResponse } from '../../dist/base'; - const clientKey = Symbol(); const action = 'Subaccount/'; const idField = 'authId'; diff --git a/types/base.d.ts b/types/base.d.ts index 1beb4c8..6f598a8 100644 --- a/types/base.d.ts +++ b/types/base.d.ts @@ -1,10 +1,10 @@ export class PlivoGenericResponse { constructor(params: any, idString: any); - id: any; + id: string; } export class PlivoResource { constructor(action: any, klass: any, idField: any, request: any); - update(params: any, id: any): Promise; + update(params: any, id: string): Promise; delete(params: any): Promise; executeAction(task: string, method: string, params: {}, action: any): Promise; customexecuteAction(url: any, method?: string, params?: {}): Promise; @@ -13,7 +13,7 @@ export class PlivoResource { } export class PlivoResourceInterface { constructor(action: any, klass: any, idField: any, request: any); - get(id: any, params?: {}): Promise; + get(id: string, params?: {}): Promise; list(params: any): Promise; create(params: any): Promise; } diff --git a/types/resources/accounts.d.ts b/types/resources/accounts.d.ts index a907f4e..a1a69bb 100644 --- a/types/resources/accounts.d.ts +++ b/types/resources/accounts.d.ts @@ -27,7 +27,7 @@ export class CreateSubAccountResponse { } export class UpdateSubAccountDetails { constructor(params: object); - apiId: stringy; + apiId: string; message: string; } export class UpdateAccountDetailsResponse { @@ -48,8 +48,8 @@ export class GetSubAccountDetails { resourceUri: string; } export class Subaccount extends PlivoResource { - constructor(client: any, data?: {}); - id: any; + constructor(client: function, data?: {}); + id: string; /** * update subaccount * @method @@ -76,7 +76,7 @@ export class Subaccount extends PlivoResource { * @param {object} [data] - data of call */ export class SubaccountInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); /** * get subaccount by id * @method @@ -103,7 +103,7 @@ export class SubaccountInterface extends PlivoResourceInterface { * @promise {Subaccount} return object of subaccount * @fail {Error} return Error */ - update(id: any, name: string, enabled: boolean): Promise; + update(id: string, name: string, enabled: boolean): Promise; /** * delete subaccount * @method @@ -112,7 +112,7 @@ export class SubaccountInterface extends PlivoResourceInterface { * @promise {boolean} return true if subaccount deleted * @fail {Error} return Error */ - delete(id: any, cascade: boolean): Promise; + delete(id: string, cascade: boolean): Promise; [clientKey]: any; } /** @@ -122,8 +122,8 @@ export class SubaccountInterface extends PlivoResourceInterface { * @param {object} [data] - data of call */ export class Account extends PlivoResource { - constructor(client: any, data?: {}); - id: any; + constructor(client: function, data?: {}); + id: string; /** * get account detail * @method @@ -141,7 +141,7 @@ export class Account extends PlivoResource { * @param {object} [data] - data of call */ export class AccountInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); /** * get account detail * @method diff --git a/types/resources/applications.d.ts b/types/resources/applications.d.ts index 26245a8..053951f 100644 --- a/types/resources/applications.d.ts +++ b/types/resources/applications.d.ts @@ -55,8 +55,8 @@ export class ListAllApplicationResponse { subAccount: string; } export class Application extends PlivoResource { - constructor(client: any, data?: {}); - id: any; + constructor(client: function, data?: {}); + id: string; [clientKey]: any; } /** @@ -66,7 +66,7 @@ export class Application extends PlivoResource { * @param {object} [data] - data of call */ export class ApplicationInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); /** * get application by given id * @method diff --git a/types/resources/call.d.ts b/types/resources/call.d.ts index 2a9d67d..24995fa 100644 --- a/types/resources/call.d.ts +++ b/types/resources/call.d.ts @@ -118,8 +118,8 @@ export class RecordCallResponse { * @param {object} [data] - data of call */ export class Call extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; /** * hangup call * @method @@ -145,7 +145,7 @@ export class Call extends PlivoResource { alegMethod: string; blegUrl: string; blegMethod: string; - }, callUUID: any): Promise < CallTransferResponse > ; + }, callUUid: string): Promise < CallTransferResponse > ; /** * record call * @method @@ -245,7 +245,7 @@ export class Call extends PlivoResource { * @param {object} [data] - data of call */ export class CallInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); /** * Get A Call Detail * @method @@ -392,23 +392,23 @@ export class CallInterface extends PlivoResourceInterface { * @promise {object} returns PlivoGenericResponse Object * @fail {Error} returns Error */ - cancel(id: any): Promise < any > ; + cancel(id: string): Promise < any > ; listLiveCalls(params: any): Promise < any > ; - getLiveCall(id: any): Promise < any > ; + getLiveCall(id: string): Promise < any > ; listQueuedCalls(): Promise < any > ; - getQueuedCall(id: any): Promise < any > ; + getQueuedCall(id: string): Promise < any > ; [clientKey]: any; [liveCallInterfaceKey]: LiveCallInterface; [queuedCallInterfaceKey]: QueuedCallInterface; } export class LiveCallResource extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; [clientKey]: any; } export class QueuedCallResource extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; [clientKey]: any; } import { @@ -426,7 +426,7 @@ declare const liveCallInterfaceKey: unique symbol; * @param {object} [data] - data of call */ declare class LiveCallInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); [clientKey]: any; } declare const queuedCallInterfaceKey: unique symbol; @@ -438,8 +438,8 @@ declare const queuedCallInterfaceKey: unique symbol; */ declare class QueuedCallInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); - get(id: any): Promise < GetQueuedCallResponse > ; + constructor(client: function, data ? : {}); + get(id: string): Promise < GetQueuedCallResponse > ; list(): Promise < ListAllQueuedCalls > ; [clientKey]: any; } diff --git a/types/resources/callFeedback.d.ts b/types/resources/callFeedback.d.ts index e2635d7..2b8df48 100644 --- a/types/resources/callFeedback.d.ts +++ b/types/resources/callFeedback.d.ts @@ -5,8 +5,8 @@ export class CallFeedbackResponse { status: string; } export class CallFeedback extends PlivoResource { - constructor(client: any, data?: {}); - id: any; + constructor(client: function, data?: {}); + id: string; [clientKey]: any; } /** @@ -16,7 +16,7 @@ export class CallFeedback extends PlivoResource { * @param {object} [data] - data of call */ export class CallFeedbackInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); create(callUUID: string, rating: string, issues?: never[], notes?: string): Promise; [clientKey]: any; } diff --git a/types/resources/conferences.d.ts b/types/resources/conferences.d.ts index 1eb9f1d..739355a 100644 --- a/types/resources/conferences.d.ts +++ b/types/resources/conferences.d.ts @@ -49,8 +49,8 @@ export class DeafMemberResponse { message: string; } export class Conference extends PlivoResource { - constructor(client: any, data?: {}); - id: any; + constructor(client: function, data?: {}); + id: string; /** * hangup conference * @method @@ -208,7 +208,7 @@ export class Conference extends PlivoResource { * @param {object} [data] - data of call */ export class ConferenceInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); /** * get conference by id diff --git a/types/resources/endpoints.d.ts b/types/resources/endpoints.d.ts index d40fd8c..bf8f063 100644 --- a/types/resources/endpoints.d.ts +++ b/types/resources/endpoints.d.ts @@ -45,8 +45,8 @@ export class CreateEndpointResponse { * @param {object} [data] - data of call */ export class Endpoint extends PlivoResource { - constructor(client: any, data?: {}); - id: any; + constructor(client: function, data?: {}); + id: string; /** * update Endpoint * @method @@ -75,7 +75,7 @@ export class Endpoint extends PlivoResource { * @param {object} [data] - data of call */ export class EndpointInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); /** * Get Endpoint by given id * @method @@ -116,7 +116,7 @@ export class EndpointInterface extends PlivoResourceInterface { * @promise {boolean} return true if success * @fail {Error} return Error */ - delete(id: any): any; + delete(id: string): any; [clientKey]: any; } import { PlivoResource } from "../base"; diff --git a/types/resources/lookup.d.ts b/types/resources/lookup.d.ts index 04c6610..14c5831 100644 --- a/types/resources/lookup.d.ts +++ b/types/resources/lookup.d.ts @@ -8,11 +8,11 @@ export class LookupResponse { resourceUri: string; } export class Number extends PlivoResource { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); [clientKey]: any; } export class LookupInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); get(number: string, type?: string): Promise; [clientKey]: any; } diff --git a/types/resources/media.d.ts b/types/resources/media.d.ts index da86885..a451af1 100644 --- a/types/resources/media.d.ts +++ b/types/resources/media.d.ts @@ -26,8 +26,8 @@ export class ListMediaResponse { * @param {object} [data] - data of call */ export class Media extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; } /** * Represents a Media Interface @@ -36,7 +36,7 @@ export class Media extends PlivoResource { * @param {object} [data] - data of call */ export class MediaInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); /** * Upload Media * @method diff --git a/types/resources/messages.d.ts b/types/resources/messages.d.ts index 235a835..891058f 100644 --- a/types/resources/messages.d.ts +++ b/types/resources/messages.d.ts @@ -37,7 +37,7 @@ export class MessageListResponse { } export class MMSMediaResponse { constructor(params: object); - apiId: any; + apiid: string; objects: MMSMedia[]; } export class MMSMedia { @@ -57,8 +57,8 @@ export class MMSMedia { * @param {object} [data] - data of call */ export class Message extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; listMedia(): Promise < any > ; } /** @@ -68,7 +68,7 @@ export class Message extends PlivoResource { * @param {object} [data] - data of call */ export class MessageInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data?: {}); /** * Send Message * @method diff --git a/types/resources/numbers.d.ts b/types/resources/numbers.d.ts index 25fc5d6..c320cb8 100644 --- a/types/resources/numbers.d.ts +++ b/types/resources/numbers.d.ts @@ -16,8 +16,8 @@ export class UpdateNumberResponse { * @param {object} [data] - data of call */ export class PhoneNumber extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; /** * Buy Phone Number * @method @@ -36,7 +36,7 @@ export class PhoneNumber extends PlivoResource { * @param {string} [data.test] - test data */ export class PhoneNumberInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); /** * Buy Phone Number * @method @@ -54,8 +54,8 @@ export class PhoneNumberInterface extends PlivoResourceInterface { * @param {object} [data] - data of call */ export class NumberResource extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; /** * Unrent Number * @method @@ -72,7 +72,7 @@ export class NumberResource extends PlivoResource { * @param {object} [data] - data of call */ export class NumberInterface extends PlivoResourceInterface { - constructor(client: any); + constructor(client: function); /** * Buy Phone Number * @method diff --git a/types/resources/phlo.d.ts b/types/resources/phlo.d.ts index c7b449b..3ddb7bc 100644 --- a/types/resources/phlo.d.ts +++ b/types/resources/phlo.d.ts @@ -1,13 +1,13 @@ export class RunPHLOResponse { constructor(params: any); - apiId: any; - phloId: any; + apiid: string; + phloid: string; message: any; } export class RetrievePHLOResponse { constructor(params: any); - apiId: any; - phloId: any; + apiid: string; + phloid: string; name: any; createdOn: any; } @@ -18,9 +18,9 @@ export class RetrievePHLOResponse { * @param {object} [data] - data of phlo */ export class Phlo extends PlivoResource { - constructor(client: any, data ? : {}); - client: any; - multiPartyCall: (nodeId: any) => PhloMultiPartyCall; + constructor(client: function, data ? : {}); + client: function; + multiPartyCall: (nodeid: string) => PhloMultiPartyCall; /** * run phlo * @method @@ -37,7 +37,7 @@ export class Phlo extends PlivoResource { * @param {object} [data] - data of call */ export class PhloInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); get(id: string): Promise; [clientKey]: any; } diff --git a/types/resources/phloMultiPartyCallMember.d.ts b/types/resources/phloMultiPartyCallMember.d.ts index de765d9..43fe788 100644 --- a/types/resources/phloMultiPartyCallMember.d.ts +++ b/types/resources/phloMultiPartyCallMember.d.ts @@ -10,9 +10,9 @@ export class UpdateMemberResponse { error: string; } export class PhloMultiPartyCallMember extends PlivoResource { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); action: string; - client: any; + client: function; resumeCall(): Promise < any > ; voicemailDrop(): Promise < any > ; hangup(): Promise < any > ; @@ -21,9 +21,9 @@ export class PhloMultiPartyCallMember extends PlivoResource { update(action: object): Promise; } export class PhloMultiPartyCallMemberInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); action: string; - client: any; + client: function; get(phloId: string, nodeId: string, memberAddress: string): any; } import { diff --git a/types/resources/phloMultipartyCall.d.ts b/types/resources/phloMultipartyCall.d.ts index c5dabc9..b3915fc 100644 --- a/types/resources/phloMultipartyCall.d.ts +++ b/types/resources/phloMultipartyCall.d.ts @@ -13,9 +13,9 @@ export class RetrieveMultipartyCallResponse { createdOn: string; } export class PhloMultiPartyCall extends PlivoResource { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); action: string; - client: any; + client: function; member: (memberAddress: any) => PhloMultiPartyCallMember; call(triggerSource: any, to: any, role: any): Promise < any > ; warmTransfer(triggerSource: any, to: any, role: any): Promise < UpdateMultipartyCallResponse > ; @@ -25,7 +25,7 @@ export class PhloMultiPartyCall extends PlivoResource { [clientKey]: any; } export class PhloMultiPartyCallInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); get(phloId: string, id: string): Promise; [clientKey]: any; } diff --git a/types/resources/powerpacks.d.ts b/types/resources/powerpacks.d.ts index 4fabcab..90520fb 100644 --- a/types/resources/powerpacks.d.ts +++ b/types/resources/powerpacks.d.ts @@ -59,12 +59,12 @@ export class RemoveNumberResponse { } export class RemoveTollFreeNumberResponse { constructor(params: object); - apiId: any; + apiid: string; response: string; } export class RemoveShortCodeResponse { constructor(params: any); - apiId: any; + apiid: string; response: string; } export class AddTollFreeNumberresponse { @@ -113,9 +113,9 @@ export class RetrieveShortCodeResponse { * @param {object} [data] - data of call */ export class Powerpack extends PlivoResource { - constructor(client: any, data ? : {}); - uuid: any; - number_pool_id: any; + constructor(client: function, data ? : {}); + uuid: string; + number_pool_id: string; number_pool: NumberPool; list_numbers(params: object): Promise < ListAllNumbersResponse > ; search_query(params: object): string; @@ -134,13 +134,13 @@ export class Powerpack extends PlivoResource { [clientKey]: any; } export class NumberPool extends PlivoResource { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); numbers: Numbers; shortcodes: Shortcode; tollfree: Tollfree; } export class Numbers extends PlivoResource { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); buy_add_number(params: object): any; list(params: object): Promise < any > ; count(params: object): Promise < any > ; @@ -150,15 +150,15 @@ export class Numbers extends PlivoResource { remove(number: string, unrent ? : boolean): Promise < any > ; } export class Shortcode extends PlivoResource { - constructor(client: any, data ? : {}); - number_pool_id: any; + constructor(client: function, data ? : {}); + number_pool_id: string; list(params: object): Promise < any > ; find(shortcode: object): Promise < any > ; remove(shortcode: object): Promise < any > ; } export class Tollfree extends PlivoResource { - constructor(client: any, data ? : {}); - number_pool_id: any; + constructor(client: function, data ? : {}); + number_pool_id: string; add(tollfree: string): Promise < any > ; remove(tollfree: string, unrent ? : boolean): Promise < any > ; list(params: object): Promise < any > ; @@ -171,7 +171,7 @@ export class Tollfree extends PlivoResource { * @param {object} [data] - data of call */ export class PowerpackInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); /** * get Powerpack by given id * @method diff --git a/types/resources/pricings.d.ts b/types/resources/pricings.d.ts index dfcf9d3..5e5683b 100644 --- a/types/resources/pricings.d.ts +++ b/types/resources/pricings.d.ts @@ -16,7 +16,7 @@ export class PricingResponse { voice: object; } export class Pricing extends PlivoResource { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); /** * Get pricings by country * @method @@ -33,7 +33,7 @@ export class Pricing extends PlivoResource { * @param {object} [data] - data of call */ export class PricingInterface extends PlivoResourceInterface { - constructor(client: any, data?: {}); + constructor(client: function, data?: {}); [clientKey]: any; } import { PlivoResource } from "../base"; diff --git a/types/resources/recordings.d.ts b/types/resources/recordings.d.ts index fa51f2a..b47f077 100644 --- a/types/resources/recordings.d.ts +++ b/types/resources/recordings.d.ts @@ -35,8 +35,8 @@ export class ListRecordingResponse { * @param {object} [data] - data of call */ export class Recording extends PlivoResource { - constructor(client: any, data ? : {}); - id: any; + constructor(client: function, data ? : {}); + id: string; [clientKey]: any; } /** @@ -46,7 +46,7 @@ export class Recording extends PlivoResource { * @param {object} [data] - data of call */ export class RecordingInterface extends PlivoResourceInterface { - constructor(client: any, data ? : {}); + constructor(client: function, data ? : {}); /** * Delete recording by id * @method diff --git a/types/rest/client-test.d.ts b/types/rest/client-test.d.ts index bbf1693..15f2b17 100644 --- a/types/rest/client-test.d.ts +++ b/types/rest/client-test.d.ts @@ -1,5 +1,5 @@ export class Client { - constructor(authId: any, authToken: any, proxy: any); + constructor(authid: string, authToken: any, proxy: any); calls: CallInterface; accounts: AccountInterface; subAccounts: SubaccountInterface; @@ -20,8 +20,8 @@ export class Client { * You can also pass in additional parameters accepted by the node requests module. */ export class PhloClient { - constructor(authId: any, authToken: any, options: any); - phlo: (phloId: any) => Phlo; + constructor(authid: string, authToken: any, options: any); + phlo: (phloid: string) => Phlo; } import { CallInterface } from "../resources/call.js"; import { AccountInterface } from "../resources/accounts.js"; diff --git a/types/rest/client.d.ts b/types/rest/client.d.ts index 8723574..59c30c2 100644 --- a/types/rest/client.d.ts +++ b/types/rest/client.d.ts @@ -4,7 +4,7 @@ * You can also pass in additional parameters accepted by the node requests module. */ export class Client { - constructor(authId: any, authToken: any, options?: any); + constructor(authid: string, authToken: any, options?: any); calls: CallInterface; accounts: AccountInterface; subaccounts: SubaccountInterface; @@ -28,8 +28,8 @@ export class Client { * You can also pass in additional parameters accepted by the node requests module. */ export class PhloClient { - constructor(authId: any, authToken: any, options: any); - phlo: (phloId: any) => Phlo; + constructor(authid: string, authToken: any, options: any); + phlo: (phloid: string) => Phlo; } import { CallInterface } from "../resources/call.js"; import { AccountInterface } from "../resources/accounts.js"; diff --git a/types/utils/jwt.d.ts b/types/utils/jwt.d.ts index ad12cfd..5f54522 100644 --- a/types/utils/jwt.d.ts +++ b/types/utils/jwt.d.ts @@ -1,4 +1,4 @@ -export function AccessToken(authId: any, authToken: any, username: any, validityOptions?: {}, uid?: any): void; +export function AccessToken(authid: string, authToken: any, username: any, validityOptions?: {}, uid?: any): void; export class AccessToken { constructor(authId: string, authToken: string, username: string, validityOptions?: {}, uid?: any); authId: string; diff --git a/types/utils/security.d.ts b/types/utils/security.d.ts index fd33bb2..2755e7c 100644 --- a/types/utils/security.d.ts +++ b/types/utils/security.d.ts @@ -1,3 +1,3 @@ -export function computeOldSignature(authId: any, uri: any, params: any): any; -export function verifyOldSignature(authId: any, uri: any, params: any, signature: any): boolean; -export function validateSignature(uri: any, nonce: any, signature: any, auth_token: any): boolean; +export function computeOldSignature(authid: string, uri: any, params: any): any; +export function verifyOldSignature(authid: string, uri: any, params: any, signature: any): boolean; +export function validateSignature(uri: string, nonce: string, signature: string, auth_token: string): boolean;