@vonage/client-sdk 2.1.0 → 2.1.1-snapshot.100.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.
Files changed (94) hide show
  1. package/api_docs/ts/assets/navigation.js +1 -1
  2. package/api_docs/ts/assets/search.js +1 -1
  3. package/api_docs/ts/classes/ClientConfig.html +1 -1
  4. package/api_docs/ts/classes/ClientInitConfig.html +1 -1
  5. package/api_docs/ts/classes/EmergencyClient.html +44 -0
  6. package/api_docs/ts/classes/EmergencyClientConfig.html +14 -0
  7. package/api_docs/ts/classes/EmergencyClientInitConfig.html +9 -0
  8. package/api_docs/ts/classes/VonageClient.html +1 -1
  9. package/api_docs/ts/enums/CallDisconnectReason.html +1 -1
  10. package/api_docs/ts/enums/CancelReason.html +1 -1
  11. package/api_docs/ts/enums/HangupReason.html +1 -1
  12. package/api_docs/ts/enums/LegStatus.html +1 -1
  13. package/api_docs/ts/enums/LoggingLevel.html +1 -1
  14. package/api_docs/ts/enums/MemberChannelType.html +1 -1
  15. package/api_docs/ts/enums/OrderBy.html +1 -1
  16. package/api_docs/ts/enums/PresentingOrder.html +1 -1
  17. package/api_docs/ts/enums/SessionErrorReason.html +1 -1
  18. package/api_docs/ts/enums/VoiceChannelType.html +1 -1
  19. package/api_docs/ts/enums/VonageErrorType.html +1 -1
  20. package/api_docs/ts/functions/none.html +1 -1
  21. package/api_docs/ts/functions/some.html +1 -1
  22. package/api_docs/ts/index.html +1 -1
  23. package/api_docs/ts/interfaces/CallSayParams.html +1 -1
  24. package/api_docs/ts/interfaces/Channel.html +1 -1
  25. package/api_docs/ts/interfaces/Conversation.html +1 -1
  26. package/api_docs/ts/interfaces/ConversationProperties.html +1 -1
  27. package/api_docs/ts/interfaces/ConversationTimestamp.html +1 -1
  28. package/api_docs/ts/interfaces/ConversationsPage.html +1 -1
  29. package/api_docs/ts/interfaces/CreateConversationParameters.html +1 -1
  30. package/api_docs/ts/interfaces/EmergencyEvent.html +5 -0
  31. package/api_docs/ts/interfaces/EphemeralConversationEvent.html +1 -1
  32. package/api_docs/ts/interfaces/EventsPage.html +1 -1
  33. package/api_docs/ts/interfaces/GetCallLegsParameters.html +1 -1
  34. package/api_docs/ts/interfaces/GetConversationEventsParameters.html +1 -1
  35. package/api_docs/ts/interfaces/GetConversationMembersParameters.html +1 -1
  36. package/api_docs/ts/interfaces/GetConversationsParameters.html +1 -1
  37. package/api_docs/ts/interfaces/Leg.html +1 -1
  38. package/api_docs/ts/interfaces/LegChannel.html +1 -1
  39. package/api_docs/ts/interfaces/LegsPage.html +1 -1
  40. package/api_docs/ts/interfaces/Location.html +1 -1
  41. package/api_docs/ts/interfaces/Member.html +1 -1
  42. package/api_docs/ts/interfaces/MemberChannel.html +1 -1
  43. package/api_docs/ts/interfaces/MemberEventBody.html +1 -1
  44. package/api_docs/ts/interfaces/MemberTimestamp.html +1 -1
  45. package/api_docs/ts/interfaces/MembersPage.html +1 -1
  46. package/api_docs/ts/interfaces/MessageAudioEventBody.html +1 -1
  47. package/api_docs/ts/interfaces/MessageCustomEventBody.html +1 -1
  48. package/api_docs/ts/interfaces/MessageFileEventBody.html +1 -1
  49. package/api_docs/ts/interfaces/MessageImageEventBody.html +1 -1
  50. package/api_docs/ts/interfaces/MessageLocationEventBody.html +1 -1
  51. package/api_docs/ts/interfaces/MessageTemplateEventBody.html +1 -1
  52. package/api_docs/ts/interfaces/MessageTextEventBody.html +1 -1
  53. package/api_docs/ts/interfaces/MessageVCardEventBody.html +1 -1
  54. package/api_docs/ts/interfaces/MessageVideoEventBody.html +1 -1
  55. package/api_docs/ts/interfaces/RTCQuality.html +1 -1
  56. package/api_docs/ts/interfaces/RtcStats.html +1 -1
  57. package/api_docs/ts/interfaces/Template.html +1 -1
  58. package/api_docs/ts/interfaces/UpdateConversationParameters.html +1 -1
  59. package/api_docs/ts/interfaces/User.html +1 -1
  60. package/api_docs/ts/interfaces/UserChannels.html +1 -1
  61. package/api_docs/ts/interfaces/UserTimestamp.html +1 -1
  62. package/api_docs/ts/interfaces/VonageError.html +1 -1
  63. package/api_docs/ts/interfaces/VonageEvent.html +1 -1
  64. package/api_docs/ts/interfaces/Whatsapp.html +1 -1
  65. package/api_docs/ts/modules.html +8 -1
  66. package/api_docs/ts/types/ClientConfigObject.html +1 -1
  67. package/api_docs/ts/types/ClientInitConfigObject.html +1 -1
  68. package/api_docs/ts/types/ConfigRegion.html +1 -1
  69. package/api_docs/ts/types/ConversationEvent.html +1 -1
  70. package/api_docs/ts/types/CustomData.html +1 -1
  71. package/api_docs/ts/types/EmergencyClientConfigObject.html +6 -0
  72. package/api_docs/ts/types/EmergencyClientInitConfigObject.html +6 -0
  73. package/api_docs/ts/types/EmergencyConfigRegion.html +3 -0
  74. package/api_docs/ts/types/Json.html +1 -1
  75. package/api_docs/ts/types/JsonValue.html +1 -1
  76. package/api_docs/ts/types/MemberStatus.html +1 -1
  77. package/api_docs/ts/types/Option.html +1 -1
  78. package/api_docs/ts/types/PersistentConversationEvent.html +1 -1
  79. package/api_docs/ts/types/Topics.html +1 -1
  80. package/api_docs/ts/types/VonageLogger.html +1 -1
  81. package/api_docs/ts/variables/Topics-1.html +1 -1
  82. package/api_docs/ts/variables/VonageError-1.html +1 -1
  83. package/dist/client/EmergencyClient.d.ts +117 -0
  84. package/dist/client/index.cjs +16439 -13975
  85. package/dist/client/index.d.ts +2 -0
  86. package/dist/client/index.mjs +16435 -13976
  87. package/dist/kotlin/clientsdk-clientcore_js.d.ts +76 -0
  88. package/dist/utils/EmergencyClientConfig.d.ts +84 -0
  89. package/dist/utils/index.d.ts +1 -0
  90. package/dist/vonageClientSDK.js +19642 -17218
  91. package/dist/vonageClientSDK.min.js +22 -22
  92. package/dist/vonageClientSDK.min.mjs +23 -23
  93. package/dist/vonageClientSDK.mjs +19638 -17219
  94. package/package.json +2 -2
@@ -1154,6 +1154,82 @@ export declare namespace vonage {
1154
1154
  readonly cursor?: Nullable<string>;
1155
1155
  }
1156
1156
  }
1157
+ export declare namespace vonage.emergency {
1158
+ class EmergencyClientJS implements vonage.emergency.IEmergencyClientJS {
1159
+ constructor(config: vonage.InitConfigObjectJS, http: vonage.HttpClientJS, media: vonage.MediaClientJS);
1160
+ get http(): vonage.HttpClientJS;
1161
+ get media(): vonage.MediaClientJS;
1162
+ get client(): any/* com.vonage.client.emergency.EmergencyClientImpl */;
1163
+ get emitter(): Nullable<vonage.emergency.EmergencyClientEvents>;
1164
+ set emitter(value: Nullable<vonage.emergency.EmergencyClientEvents>);
1165
+ setConfig(config: vonage.emergency.EmergencyConfigObjectJS): void;
1166
+ emergencyCall(token: string, from: string, to: string): Promise<string>;
1167
+ hangUpEmergencyCall(callId: string): Promise<any>;
1168
+ muteEmergencyCall(callId: string): Promise<any>;
1169
+ unmuteEmergencyCall(callId: string): Promise<any>;
1170
+ enableEarmuffEmergencyCall(callId: string): Promise<any>;
1171
+ disableEarmuffEmergencyCall(callId: string): Promise<any>;
1172
+ }
1173
+ }
1174
+ export declare namespace vonage.emergency {
1175
+ interface EmergencyClientEvents {
1176
+ connected(callId: string): void;
1177
+ disconnected(callId: string): void;
1178
+ hangup(callId: string, reason: string): void;
1179
+ }
1180
+ interface EmergencyConfigObjectJS {
1181
+ readonly region?: Nullable<vonage.emergency.EmergencyClientConfigRegionJS>;
1182
+ readonly primaryRegion?: Nullable<string>;
1183
+ readonly secondaryRegion?: Nullable<string>;
1184
+ }
1185
+ interface InitEmergencyConfigObjectJS extends vonage.emergency.EmergencyConfigObjectJS {
1186
+ readonly loggingLevel?: Nullable<vonage.LoggingLevelJS>;
1187
+ readonly customLoggers?: Nullable<Array<vonage.VonageLoggerJS>>;
1188
+ readonly disableInternalLogger?: Nullable<boolean>;
1189
+ }
1190
+ }
1191
+ export declare namespace vonage.emergency {
1192
+ const DEFAULT_REGION: vonage.emergency.EmergencyClientConfigRegionJS;
1193
+ const DEFAULT_LOGGING_LEVEL: vonage.LoggingLevelJS;
1194
+ interface IEmergencyClientJS {
1195
+ readonly client: any/* com.vonage.client.emergency.EmergencyClient */;
1196
+ readonly media: vonage.MediaClientJS;
1197
+ readonly http: vonage.HttpClientJS;
1198
+ setConfig(config: vonage.emergency.EmergencyConfigObjectJS): void;
1199
+ emergencyCall(token: string, from: string, to: string): Promise<string>;
1200
+ hangUpEmergencyCall(callId: string): Promise<any>;
1201
+ muteEmergencyCall(callId: string): Promise<any>;
1202
+ unmuteEmergencyCall(callId: string): Promise<any>;
1203
+ enableEarmuffEmergencyCall(callId: string): Promise<any>;
1204
+ disableEarmuffEmergencyCall(callId: string): Promise<any>;
1205
+ }
1206
+ abstract class EmergencyClientConfigRegionJS {
1207
+ private constructor();
1208
+ static get AP(): vonage.emergency.EmergencyClientConfigRegionJS & {
1209
+ get name(): "AP";
1210
+ get ordinal(): 0;
1211
+ };
1212
+ static get EU(): vonage.emergency.EmergencyClientConfigRegionJS & {
1213
+ get name(): "EU";
1214
+ get ordinal(): 1;
1215
+ };
1216
+ static get US(): vonage.emergency.EmergencyClientConfigRegionJS & {
1217
+ get name(): "US";
1218
+ get ordinal(): 2;
1219
+ };
1220
+ get name(): "AP" | "EU" | "US";
1221
+ get ordinal(): 0 | 1 | 2;
1222
+ get coreRegion(): any/* com.vonage.client.emergency.EmergencyClientConfigRegion */;
1223
+ static values(): Array<vonage.emergency.EmergencyClientConfigRegionJS>;
1224
+ static valueOf(value: string): vonage.emergency.EmergencyClientConfigRegionJS;
1225
+ }
1226
+ class EmergencyClientConfigJS implements vonage.emergency.EmergencyConfigObjectJS {
1227
+ constructor(region?: vonage.emergency.EmergencyClientConfigRegionJS, primaryRegion?: string, secondaryRegion?: string);
1228
+ get region(): vonage.emergency.EmergencyClientConfigRegionJS;
1229
+ get primaryRegion(): string;
1230
+ get secondaryRegion(): string;
1231
+ }
1232
+ }
1157
1233
  export declare namespace vonage.utils {
1158
1234
  abstract class OptionJS<T> {
1159
1235
  protected constructor();
@@ -0,0 +1,84 @@
1
+ import { Nullable } from '../kotlin/clientsdk-clientcore_js';
2
+ import vonage from './vonage';
3
+ import { LoggingLevel, VonageLogger, VonageLoggerJS } from './logging';
4
+ /**
5
+ * The datacenter region for the Client.
6
+ *
7
+ * It can be set either via {@link EmergencyClientInitConfigObject} or {@link EmergencyClientConfigObject}.
8
+ */
9
+ export type EmergencyConfigRegion = vonage.emergency.EmergencyClientConfigRegionJS | typeof vonage.emergency.EmergencyClientConfigRegionJS.prototype.name;
10
+ export declare const EmergencyConfigRegion: typeof vonage.emergency.EmergencyClientConfigRegionJS;
11
+ /**
12
+ * An convenience union for {@link EmergencyConfigObjectJS} allowing to pass strings for enum properties.
13
+ */
14
+ /**
15
+ * Represents the configuration object for the client.
16
+ *
17
+ * The `ClientConfig` class provides a convenient way to configure the client by specifying various properties.
18
+ * These properties control different aspects of the client's behavior, such as API URLs, media reoffer, and WebSocket settings.
19
+ *
20
+ * @property region The Vonage datacenter to use
21
+ * @property primaryRegion The API URL of your chosen primary datacenter, if set overrides default from region
22
+ * @property secondaryRegion The API URL of your chosen secondary datacenter, if set overrides default from region
23
+ * @example
24
+ * [[include:snippet_SetClientConfig.txt]]
25
+ */
26
+ export type EmergencyClientConfigObject = EmergencyConfigObjectJS | ({
27
+ region?: EmergencyConfigRegion;
28
+ } & Omit<EmergencyConfigObjectJS, 'region'>);
29
+ /**
30
+ * Represents the configuration object used to initialize the client.
31
+ *
32
+ * The `EmergencyClientInitConfig` class provides a convenient way to configure the client by specifying various properties.
33
+ * These properties include all the ones in {@link EmergencyClientConfigObject} plus {@link loggingLevel}, {@link customLoggers} and {@link disableInternalLogger}.
34
+ *
35
+ * @property loggingLevel The Logging Level to use
36
+ * @property customLoggers A List of custom loggers
37
+ * @property disableInternalLogger Whether to enable the SDK internal logger
38
+ * @property region The Vonage datacenter to use
39
+ * @property primaryRegion The API URL of your chosen primary datacenter, if set overrides default from region
40
+ * @property secondaryRegion The API URL of your chosen secondary datacenter, if set overrides default from region
41
+ *
42
+ * @example
43
+ * [[include:snippet_Logging.txt]]
44
+ */
45
+ export type EmergencyClientInitConfigObject = EmergencyInitConfigObjectJS | ({
46
+ region?: EmergencyConfigRegion;
47
+ loggingLevel?: LoggingLevel;
48
+ customLoggers?: VonageLogger[];
49
+ } & Omit<EmergencyInitConfigObjectJS, 'region' | 'loggingLevel' | 'customLoggers'>);
50
+ export interface EmergencyConfigObjectJS {
51
+ region?: Nullable<vonage.emergency.EmergencyClientConfigRegionJS>;
52
+ primaryRegion?: Nullable<string>;
53
+ secondaryRegion?: Nullable<string>;
54
+ }
55
+ export interface EmergencyInitConfigObjectJS extends EmergencyConfigObjectJS {
56
+ loggingLevel?: Nullable<vonage.LoggingLevelJS>;
57
+ customLoggers?: Nullable<VonageLoggerJS[]>;
58
+ disableInternalLogger?: Nullable<boolean>;
59
+ }
60
+ export declare class EmergencyClientConfig extends vonage.emergency
61
+ .EmergencyClientConfigJS {
62
+ /**
63
+ * Constructs a new instance of the class.
64
+ *
65
+ * @param region The region where the API and WebSocket URLs should be configured.
66
+ * Valid values are "EU" (Europe), "US" (United States), or "AP" (Asia Pacific).
67
+ * The URLs will be automatically set based on the selected region.
68
+ * Defaults to "US" if no region is specified.
69
+ */
70
+ constructor(region?: EmergencyConfigRegion);
71
+ }
72
+ export declare class EmergencyClientInitConfig implements EmergencyInitConfigObjectJS {
73
+ loggingLevel: vonage.LoggingLevelJS;
74
+ region: vonage.CoreClientConfigRegionJS;
75
+ primaryRegion?: Nullable<string>;
76
+ secondaryRegion?: Nullable<string>;
77
+ customLoggers: VonageLoggerJS[];
78
+ disableInternalLogger: boolean;
79
+ /**
80
+ * Constructs a new instance of the class.
81
+ */
82
+ constructor(loggingLevel?: LoggingLevel, region?: EmergencyConfigRegion, customLoggers?: Array<VonageLogger | VonageLoggerJS>);
83
+ }
84
+ export declare const convertEmergencyInitConfig: (config: EmergencyClientInitConfigObject) => EmergencyInitConfigObjectJS;
@@ -8,3 +8,4 @@ export * from './Option';
8
8
  export * from './ConversationEventBodies';
9
9
  export * from './Enums';
10
10
  export { ConversationEvent, EphemeralConversationEvent, PersistentConversationEvent } from '../kotlin/JsUnions';
11
+ export { EmergencyClientConfig, EmergencyClientInitConfig, EmergencyClientConfigObject, EmergencyClientInitConfigObject, EmergencyConfigRegion, convertEmergencyInitConfig } from './EmergencyClientConfig';