@vonage/client-sdk 1.1.0-alpha.14 → 1.1.0-alpha.16

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,5 +1,7 @@
1
1
  type Nullable<T> = T | null | undefined
2
- export declare namespace vonage {
2
+ declare const __doNotImplementIt: unique symbol
3
+ type __doNotImplementIt = typeof __doNotImplementIt
4
+ export namespace vonage {
3
5
  interface CombinedEvents extends vonage.VoiceEvents, vonage.ChatEvents {
4
6
  callInvite(callId: string, from: string, channelType: string): void;
5
7
  callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
@@ -15,7 +17,7 @@ export declare namespace vonage {
15
17
  conversationEvent(event: vonage.ConversationEventJS): void;
16
18
  }
17
19
  }
18
- export declare namespace vonage {
20
+ export namespace vonage {
19
21
  class CombinedClientJS implements vonage.IChatClientJS, vonage.IVoiceClientJS {
20
22
  constructor(http: vonage.HttpClientJS, socket: vonage.SocketClientJS, media: vonage.MediaClientJS);
21
23
  get media(): vonage.MediaClientJS;
@@ -52,10 +54,10 @@ export declare namespace vonage {
52
54
  enableEarmuff(callId: string): Promise<any>;
53
55
  disableEarmuff(callId: string): Promise<any>;
54
56
  sendDTMF(callId: string, digits: string): Promise<any>;
55
- readonly __doNotUseOrImplementIt: vonage.IChatClientJS["__doNotUseOrImplementIt"] & vonage.IVoiceClientJS["__doNotUseOrImplementIt"];
57
+ readonly __doNotUseIt: __doNotImplementIt;
56
58
  }
57
59
  }
58
- export declare namespace vonage {
60
+ export namespace vonage {
59
61
  class EventsPageJS {
60
62
  private constructor();
61
63
  get events(): Array<vonage.ConversationEventJS>;
@@ -67,9 +69,7 @@ export declare namespace vonage {
67
69
  readonly timestamp: string;
68
70
  readonly conversationId: string;
69
71
  readonly from: Nullable<string>;
70
- readonly __doNotUseOrImplementIt: {
71
- readonly "vonage.ConversationEventJS": unique symbol;
72
- };
72
+ readonly __doNotUseIt: __doNotImplementIt;
73
73
  }
74
74
  class MemberInvitedEventJS implements vonage.ConversationEventJS {
75
75
  private constructor();
@@ -78,7 +78,7 @@ export declare namespace vonage {
78
78
  get conversationId(): string;
79
79
  get from(): string;
80
80
  get body(): vonage.MemberInvitedEventJS.Body;
81
- readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
81
+ readonly __doNotUseIt: __doNotImplementIt;
82
82
  }
83
83
  namespace MemberInvitedEventJS {
84
84
  class Body {
@@ -94,7 +94,7 @@ export declare namespace vonage {
94
94
  get conversationId(): string;
95
95
  get from(): string;
96
96
  get body(): vonage.MemberJoinedEventJS.Body;
97
- readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
97
+ readonly __doNotUseIt: __doNotImplementIt;
98
98
  }
99
99
  namespace MemberJoinedEventJS {
100
100
  class Body {
@@ -109,7 +109,7 @@ export declare namespace vonage {
109
109
  get conversationId(): string;
110
110
  get from(): string;
111
111
  get body(): vonage.MemberLeftEventJS.Body;
112
- readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
112
+ readonly __doNotUseIt: __doNotImplementIt;
113
113
  }
114
114
  namespace MemberLeftEventJS {
115
115
  class Body {
@@ -124,25 +124,21 @@ export declare namespace vonage {
124
124
  get timestamp(): string;
125
125
  get conversationId(): string;
126
126
  get from(): Nullable<string>;
127
- readonly __doNotUseOrImplementIt: vonage.ConversationEventJS["__doNotUseOrImplementIt"];
127
+ readonly __doNotUseIt: __doNotImplementIt;
128
128
  }
129
129
  }
130
- export declare namespace vonage {
130
+ export namespace vonage {
131
131
  interface MessageEventJS extends vonage.ConversationEventJS {
132
132
  readonly id: number;
133
133
  readonly body: vonage.MessageEventBodyJS;
134
134
  readonly timestamp: string;
135
135
  readonly conversationId: string;
136
136
  readonly from: Nullable<string>;
137
- readonly __doNotUseOrImplementIt: {
138
- readonly "vonage.MessageEventJS": unique symbol;
139
- } & vonage.ConversationEventJS["__doNotUseOrImplementIt"];
137
+ readonly __doNotUseIt: __doNotImplementIt;
140
138
  }
141
139
  interface MessageEventBodyJS {
142
140
  readonly sender: vonage.UserJS;
143
- readonly __doNotUseOrImplementIt: {
144
- readonly "vonage.MessageEventBodyJS": unique symbol;
145
- };
141
+ readonly __doNotUseIt: __doNotImplementIt;
146
142
  }
147
143
  class TextMessageEventJS implements vonage.MessageEventJS {
148
144
  private constructor();
@@ -151,14 +147,14 @@ export declare namespace vonage {
151
147
  get conversationId(): string;
152
148
  get from(): string;
153
149
  get body(): vonage.TextMessageEventJS.Body;
154
- readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
150
+ readonly __doNotUseIt: __doNotImplementIt;
155
151
  }
156
152
  namespace TextMessageEventJS {
157
153
  class Body implements vonage.MessageEventBodyJS {
158
154
  private constructor();
159
155
  get sender(): vonage.UserJS;
160
156
  get text(): string;
161
- readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
157
+ readonly __doNotUseIt: __doNotImplementIt;
162
158
  }
163
159
  }
164
160
  class CustomMessageEventJS implements vonage.MessageEventJS {
@@ -168,18 +164,18 @@ export declare namespace vonage {
168
164
  get conversationId(): string;
169
165
  get from(): string;
170
166
  get body(): vonage.CustomMessageEventJS.Body;
171
- readonly __doNotUseOrImplementIt: vonage.MessageEventJS["__doNotUseOrImplementIt"];
167
+ readonly __doNotUseIt: __doNotImplementIt;
172
168
  }
173
169
  namespace CustomMessageEventJS {
174
170
  class Body implements vonage.MessageEventBodyJS {
175
171
  private constructor();
176
172
  get sender(): vonage.UserJS;
177
173
  get customData(): string;
178
- readonly __doNotUseOrImplementIt: vonage.MessageEventBodyJS["__doNotUseOrImplementIt"];
174
+ readonly __doNotUseIt: __doNotImplementIt;
179
175
  }
180
176
  }
181
177
  }
182
- export declare namespace vonage {
178
+ export namespace vonage {
183
179
  abstract class PresentingOrderJS {
184
180
  private constructor();
185
181
  get corePresentingOrder(): any/* com.vonage.clientcore.core.api.models.PresentingOrder */;
@@ -393,7 +389,7 @@ export declare namespace vonage {
393
389
  get ordinal(): 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10;
394
390
  }
395
391
  }
396
- export declare namespace vonage {
392
+ export namespace vonage {
397
393
  const CSErrorCodesJS: {
398
394
  get CONVERSATION_DUPLICATE_NAME(): string;
399
395
  get MEMBER_ALREADY_JOINED(): string;
@@ -424,7 +420,7 @@ export declare namespace vonage {
424
420
  get TRANSPORT_CLOSED_DISCONNECT(): string;
425
421
  };
426
422
  }
427
- export declare namespace vonage {
423
+ export namespace vonage {
428
424
  class VonageErrorJS extends Error {
429
425
  private constructor();
430
426
  get type(): vonage.VonageErrorTypeJS;
@@ -459,7 +455,7 @@ export declare namespace vonage {
459
455
  get ordinal(): 0 | 1 | 2 | 3 | 4;
460
456
  }
461
457
  }
462
- export declare namespace vonage {
458
+ export namespace vonage {
463
459
  interface ChatEvents extends vonage.CoreClientEvents {
464
460
  conversationEvent(event: vonage.ConversationEventJS): void;
465
461
  reconnecting(): void;
@@ -467,7 +463,7 @@ export declare namespace vonage {
467
463
  sessionError(reason: vonage.SessionErrorReasonJS): void;
468
464
  }
469
465
  }
470
- export declare namespace vonage {
466
+ export namespace vonage {
471
467
  interface IChatClientJS extends vonage.ICoreClientJS {
472
468
  readonly core: any/* com.vonage.clientcore.core.CoreClient */;
473
469
  createConversation(name: Nullable<string>, displayName: Nullable<string>): Promise<string>;
@@ -487,19 +483,17 @@ export declare namespace vonage {
487
483
  refreshSession(token: string): Promise<any>;
488
484
  getConversation(conversationId: string): Promise<vonage.ConversationJS>;
489
485
  getUser(userIdOrName: string): Promise<vonage.UserJS>;
490
- readonly __doNotUseOrImplementIt: {
491
- readonly "vonage.IChatClientJS": unique symbol;
492
- } & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
486
+ readonly __doNotUseIt: __doNotImplementIt;
493
487
  }
494
488
  }
495
- export declare namespace vonage {
489
+ export namespace vonage {
496
490
  interface CoreClientEvents {
497
491
  reconnecting(): void;
498
492
  reconnection(): void;
499
493
  sessionError(reason: vonage.SessionErrorReasonJS): void;
500
494
  }
501
495
  }
502
- export declare namespace vonage {
496
+ export namespace vonage {
503
497
  abstract class CoreClientConfigRegionJS {
504
498
  private constructor();
505
499
  get coreRegion(): any/* com.vonage.clientcore.core.api.ClientConfigRegion */;
@@ -596,12 +590,10 @@ export declare namespace vonage {
596
590
  refreshSession(token: string): Promise<any>;
597
591
  getConversation(conversationId: string): Promise<vonage.ConversationJS>;
598
592
  getUser(userIdOrName: string): Promise<vonage.UserJS>;
599
- readonly __doNotUseOrImplementIt: {
600
- readonly "vonage.ICoreClientJS": unique symbol;
601
- };
593
+ readonly __doNotUseIt: __doNotImplementIt;
602
594
  }
603
595
  }
604
- export declare namespace vonage {
596
+ export namespace vonage {
605
597
  interface VoiceEvents extends vonage.CoreClientEvents {
606
598
  callInvite(callId: string, from: string, channelType: string): void;
607
599
  callInviteCancel(callId: string, reason: vonage.CancelReasonJS): void;
@@ -617,14 +609,14 @@ export declare namespace vonage {
617
609
  }
618
610
  interface CallSayParams {
619
611
  readonly text: string;
620
- readonly level?: Nullable<number>;
621
- readonly loop?: Nullable<number>;
622
- readonly queue?: Nullable<boolean>;
623
- readonly voiceName?: Nullable<string>;
624
- readonly ssml?: Nullable<boolean>;
612
+ readonly level: Nullable<number>;
613
+ readonly loop: Nullable<number>;
614
+ readonly queue: Nullable<boolean>;
615
+ readonly voiceName: Nullable<string>;
616
+ readonly ssml: Nullable<boolean>;
625
617
  }
626
618
  }
627
- export declare namespace vonage {
619
+ export namespace vonage {
628
620
  abstract class LegStatusJS {
629
621
  private constructor();
630
622
  static get RINGING(): vonage.LegStatusJS & {
@@ -699,26 +691,26 @@ export declare namespace vonage {
699
691
  refreshSession(token: string): Promise<any>;
700
692
  getConversation(conversationId: string): Promise<vonage.ConversationJS>;
701
693
  getUser(userIdOrName: string): Promise<vonage.UserJS>;
702
- readonly __doNotUseOrImplementIt: {
703
- readonly "vonage.IVoiceClientJS": unique symbol;
704
- } & vonage.ICoreClientJS["__doNotUseOrImplementIt"];
694
+ readonly __doNotUseIt: __doNotImplementIt;
705
695
  }
706
696
  class VoiceInviteFromInfoJS {
707
697
  constructor(id: Nullable<string>, type: string);
708
698
  get id(): Nullable<string>;
709
699
  get type(): string;
700
+ component1(): Nullable<string>;
701
+ component2(): string;
710
702
  copy(id?: Nullable<string>, type?: string): vonage.VoiceInviteFromInfoJS;
711
703
  toString(): string;
712
704
  hashCode(): number;
713
705
  equals(other: Nullable<any>): boolean;
714
706
  }
715
707
  }
716
- export declare namespace vonage {
708
+ export namespace vonage {
717
709
  interface HttpClientJS {
718
710
  request(verb: string, url: string, headers: Json, body: Nullable<string>, callback: (p0: Nullable<vonage.HttpClientErrorJS>, p1: Nullable<vonage.HttpClientResponseJS>) => void): void;
719
711
  }
720
712
  interface SocketClientJS {
721
- delegate?: Nullable<vonage.SocketClientDelegateJS>;
713
+ delegate: Nullable<vonage.SocketClientDelegateJS>;
722
714
  emit(type: string, msg: Nullable<Json>, callback: (p0: Nullable<Error>, p1: Nullable<string>) => void): void;
723
715
  connect(host: string, path: string, reconnectionAttempts: any/* kotlin.Number */, reconnectionDelay: any/* kotlin.Number */, randomizationFactor: any/* kotlin.Number */, query: string): void;
724
716
  disconnect(): void;
@@ -730,7 +722,7 @@ export declare namespace vonage {
730
722
  didReceiveNewSocketConnectionStatusEvent(type: string, reason: Nullable<string>, timestamp: any/* kotlin.Number */, retryNumber: Nullable<number>): void;
731
723
  }
732
724
  interface MediaClientJS {
733
- delegate?: Nullable<vonage.MediaClientDelegateJS>;
725
+ delegate: Nullable<vonage.MediaClientDelegateJS>;
734
726
  enableMediaOutbound(closure: (p0: any, p1: Nullable<string>, p2: (p0: string) => void) => void): void;
735
727
  enableMediaInbound(closure: (p0: any, p1: Nullable<string>) => void, offerSDP: string, rtcId: string): void;
736
728
  processAnswer(id: string, sdp: string): void;
@@ -745,10 +737,12 @@ export declare namespace vonage {
745
737
  onConnectionChange(id: string, status: string): void;
746
738
  }
747
739
  }
748
- export declare namespace vonage {
740
+ export namespace vonage {
749
741
  class HttpClientErrorJS extends Error {
750
742
  constructor(message?: Nullable<string>, cause?: Nullable<Error>);
751
743
  get coreError(): any/* com.vonage.clientcore.core.middlewares.http.HTTPClientError */;
744
+ component1(): Nullable<string>;
745
+ component2(): Nullable<Error>;
752
746
  copy(message?: Nullable<string>, cause?: Nullable<Error>): vonage.HttpClientErrorJS;
753
747
  toString(): string;
754
748
  hashCode(): number;
@@ -758,6 +752,8 @@ export declare namespace vonage {
758
752
  constructor(statusCode: number, body?: Nullable<string>);
759
753
  get statusCode(): number;
760
754
  get body(): Nullable<string>;
755
+ component1(): number;
756
+ component2(): Nullable<string>;
761
757
  copy(statusCode?: number, body?: Nullable<string>): vonage.HttpClientResponseJS;
762
758
  toString(): string;
763
759
  hashCode(): number;
@@ -811,18 +807,28 @@ export declare namespace vonage {
811
807
  equals(other: Nullable<any>): boolean;
812
808
  }
813
809
  class RTCStatsJS {
814
- constructor(audioRecvPackets: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvPacketsLost: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvBytes: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvJitter: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPackets: Nullable<any>/* Nullable<kotlin.Number> */, audioSentBytes: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPacketsLost: Nullable<any>/* Nullable<kotlin.Number> */, audioRtt: Nullable<any>/* Nullable<kotlin.Number> */, audioSentJitter: Nullable<any>/* Nullable<kotlin.Number> */, legId: string);
815
- get audioRecvPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
816
- get audioRecvPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
817
- get audioRecvBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
818
- get audioRecvJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
819
- get audioSentPackets(): Nullable<any>/* Nullable<kotlin.Number> */;
820
- get audioSentBytes(): Nullable<any>/* Nullable<kotlin.Number> */;
821
- get audioSentPacketsLost(): Nullable<any>/* Nullable<kotlin.Number> */;
822
- get audioRtt(): Nullable<any>/* Nullable<kotlin.Number> */;
823
- get audioSentJitter(): Nullable<any>/* Nullable<kotlin.Number> */;
810
+ constructor(audioRecvPackets: any/* Nullable<kotlin.Number> */, audioRecvPacketsLost: any/* Nullable<kotlin.Number> */, audioRecvBytes: any/* Nullable<kotlin.Number> */, audioRecvJitter: any/* Nullable<kotlin.Number> */, audioSentPackets: any/* Nullable<kotlin.Number> */, audioSentBytes: any/* Nullable<kotlin.Number> */, audioSentPacketsLost: any/* Nullable<kotlin.Number> */, audioRtt: any/* Nullable<kotlin.Number> */, audioSentJitter: any/* Nullable<kotlin.Number> */, legId: string);
811
+ get audioRecvPackets(): any/* Nullable<kotlin.Number> */;
812
+ get audioRecvPacketsLost(): any/* Nullable<kotlin.Number> */;
813
+ get audioRecvBytes(): any/* Nullable<kotlin.Number> */;
814
+ get audioRecvJitter(): any/* Nullable<kotlin.Number> */;
815
+ get audioSentPackets(): any/* Nullable<kotlin.Number> */;
816
+ get audioSentBytes(): any/* Nullable<kotlin.Number> */;
817
+ get audioSentPacketsLost(): any/* Nullable<kotlin.Number> */;
818
+ get audioRtt(): any/* Nullable<kotlin.Number> */;
819
+ get audioSentJitter(): any/* Nullable<kotlin.Number> */;
824
820
  get legId(): string;
825
- copy(audioRecvPackets?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvPacketsLost?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvBytes?: Nullable<any>/* Nullable<kotlin.Number> */, audioRecvJitter?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPackets?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentBytes?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentPacketsLost?: Nullable<any>/* Nullable<kotlin.Number> */, audioRtt?: Nullable<any>/* Nullable<kotlin.Number> */, audioSentJitter?: Nullable<any>/* Nullable<kotlin.Number> */, legId?: string): vonage.RTCStatsJS;
821
+ component1(): any/* Nullable<kotlin.Number> */;
822
+ component2(): any/* Nullable<kotlin.Number> */;
823
+ component3(): any/* Nullable<kotlin.Number> */;
824
+ component4(): any/* Nullable<kotlin.Number> */;
825
+ component5(): any/* Nullable<kotlin.Number> */;
826
+ component6(): any/* Nullable<kotlin.Number> */;
827
+ component7(): any/* Nullable<kotlin.Number> */;
828
+ component8(): any/* Nullable<kotlin.Number> */;
829
+ component9(): any/* Nullable<kotlin.Number> */;
830
+ component10(): string;
831
+ copy(audioRecvPackets?: any/* Nullable<kotlin.Number> */, audioRecvPacketsLost?: any/* Nullable<kotlin.Number> */, audioRecvBytes?: any/* Nullable<kotlin.Number> */, audioRecvJitter?: any/* Nullable<kotlin.Number> */, audioSentPackets?: any/* Nullable<kotlin.Number> */, audioSentBytes?: any/* Nullable<kotlin.Number> */, audioSentPacketsLost?: any/* Nullable<kotlin.Number> */, audioRtt?: any/* Nullable<kotlin.Number> */, audioSentJitter?: any/* Nullable<kotlin.Number> */, legId?: string): vonage.RTCStatsJS;
826
832
  toString(): string;
827
833
  hashCode(): number;
828
834
  equals(other: Nullable<any>): boolean;