@vonage/client-sdk 1.1.1 → 1.1.2-alpha.0

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