@vonage/client-sdk 1.1.0-alpha.12 → 1.1.0-alpha.13

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