-
Notifications
You must be signed in to change notification settings - Fork 62
/
client.d.ts
67 lines (67 loc) · 3.35 KB
/
client.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
export function Response(): any;
export function validateV3Signature(method: string, uri: string, nonce: string, auth_token: string, v3_signature: string, params?: {}): Boolean;
export function validateSignature(uri: string, nonce: string, signature: string, auth_token: string): Boolean;
/**
* Plivo API client which can be used to access the Plivo APIs.
* To set a proxy or timeout, pass in options.proxy (url) or options.timeout (number in ms)
* You can also pass in additional parameters accepted by the node requests module.
*/
export class Client {
constructor(authId?: string, authToken?: string, options?: string);
calls: CallInterface;
token: TokenInterface;
accounts: AccountInterface;
subaccounts: SubaccountInterface;
subAccounts: SubaccountInterface;
applications: ApplicationInterface;
conferences: ConferenceInterface;
endpoints: EndpointInterface;
messages: MessageInterface;
lookup: LookupInterface;
powerpacks: PowerpackInterface;
numbers: NumberInterface;
pricings: PricingInterface;
recordings: RecordingInterface;
callFeedback: CallFeedbackInterface;
media: MediaInterface;
endUsers: EndUserInterface;
complianceDocumentTypes: ComplianceDocumentTypeInterface;
complianceDocuments: ComplianceDocumentInterface;
complianceRequirements: ComplianceRequirementInterface;
complianceApplications: ComplianceApplicationInterface;
loa: LOAInterface;
hostedMessagingNumber: HostedMessagingNumberInterface;
toJSON(...args: any[]): any;
}
/**
* Plivo API client which can be used to access the Plivo APIs.
* To set a proxy or timeout, pass in options.proxy (url) or options.timeout (number in ms)
* 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;
}
import { CallInterface } from "../resources/call.js";
import { TokenInterface } from "../resources/token.js";
import { AccountInterface } from "../resources/accounts.js";
import { SubaccountInterface } from "../resources/accounts.js";
import { ApplicationInterface } from "../resources/applications.js";
import { ConferenceInterface } from "../resources/conferences.js";
import { EndpointInterface } from "../resources/endpoints.js";
import { MessageInterface } from "../resources/messages.js";
import { LookupInterface } from "../resources/lookup.js";
import { PowerpackInterface } from "../resources/powerpacks.js";
import { NumberInterface } from "../resources/numbers.js";
import { PricingInterface } from "../resources/pricings.js";
import { RecordingInterface } from "../resources/recordings.js";
import { CallFeedbackInterface } from "../resources/callFeedback.js";
import { MediaInterface } from "../resources/media.js";
import { Phlo } from "../resources/phlo.js";
import { EndUserInterface } from "../resources/endUsers";
import { ComplianceDocumentTypeInterface } from "../resources/complianceDocumentTypes";
import { ComplianceDocumentInterface} from "../resources/complianceDocuments";
import { ComplianceRequirementInterface } from "../resources/complianceRequirements";
import { ComplianceApplicationInterface } from "../resources/complianceApplications";
import { LOAInterface } from "../resources/loa";
import { HostedMessagingNumberInterface } from "../resources/hostedMessagingNumber";