@tarunzyraclavis/zyra-twilio-wrapper 1.0.0 → 1.0.9

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.
@@ -1,7 +1,8 @@
1
1
  export interface Config {
2
2
  serverUrl: string,
3
3
  identity: string,
4
- waitUrl ?: string
4
+ waitUrl ?: string,
5
+ sdkToken: string
5
6
  }
6
7
 
7
8
  export interface TwilioConferenceParticipant {
@@ -47,9 +48,11 @@ export interface TwilioConferenceDetails {
47
48
  }
48
49
 
49
50
  export interface TokenRequestPayload {
51
+ json: {
50
52
  identity: string;
51
53
  ttl: number;
52
54
  incomingAllow: boolean;
55
+ };
53
56
  }
54
57
 
55
58
  export interface TokenResponse {
@@ -121,42 +124,3 @@ export interface RemoveParticipantResult extends CallResult {
121
124
  export type CallResponse<T = void> =
122
125
  | { success: true; message: string; data: T }
123
126
  | { success: false; error: Error };
124
-
125
-
126
-
127
-
128
-
129
-
130
-
131
-
132
- // const data = {
133
- // Called: '+14159643849',
134
- // ToState: 'CA',
135
- // DialCallStatus: 'completed',
136
- // CallerCountry: 'US',
137
- // Direction: 'inbound',
138
- // CallerState: '',
139
- // ToZip: '94965',
140
- // DialCallSid: 'CA825f011a791f34a69f1296ba692feccd',
141
- // CallSid: 'CA97818ba8ca7429801a6079c41244f461',
142
- // To: '+14159643849',
143
- // CallerZip: '',
144
- // ToCountry: 'US',
145
- // CalledZip: '94965',
146
- // ApiVersion: '2010-04-01',
147
- // CalledCity: 'SAUSALITO',
148
- // CallStatus: 'completed',
149
- // From: '+18884359109',
150
- // DialBridged: 'true',
151
- // AccountSid: 'ACb1589cdb0710cb771f48b3414b62f9d3',
152
- // DialCallDuration: '14',
153
- // CalledCountry: 'US',
154
- // CallerCity: '',
155
- // ToCity: 'SAUSALITO',
156
- // FromCountry: 'US',
157
- // Caller: '+18884359109',
158
- // FromCity: '',
159
- // CalledState: 'CA',
160
- // FromZip: '',
161
- // FromState: ''
162
- // }