@vonage/client-sdk 2.6.1 → 2.6.2-snapshot.20260820113314

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 (111) hide show
  1. package/api_docs/ts/assets/hierarchy.js +1 -0
  2. package/api_docs/ts/assets/highlight.css +1 -1
  3. package/api_docs/ts/assets/icons.js +17 -14
  4. package/api_docs/ts/assets/icons.svg +1 -1
  5. package/api_docs/ts/assets/main.js +5 -4
  6. package/api_docs/ts/assets/navigation.js +1 -1
  7. package/api_docs/ts/assets/search.js +1 -1
  8. package/api_docs/ts/assets/style.css +1460 -1224
  9. package/api_docs/ts/classes/ClientConfig.html +207 -16
  10. package/api_docs/ts/classes/ClientInitConfig.html +130 -14
  11. package/api_docs/ts/classes/VonageClient.html +1697 -335
  12. package/api_docs/ts/enums/CallDisconnectReason.html +54 -3
  13. package/api_docs/ts/enums/CancelReason.html +66 -6
  14. package/api_docs/ts/enums/HangupReason.html +70 -7
  15. package/api_docs/ts/enums/LegStatus.html +62 -5
  16. package/api_docs/ts/enums/LoggingLevel.html +74 -8
  17. package/api_docs/ts/enums/MemberChannelType.html +94 -13
  18. package/api_docs/ts/enums/OrderBy.html +58 -2
  19. package/api_docs/ts/enums/PresentingOrder.html +62 -8
  20. package/api_docs/ts/enums/SessionErrorReason.html +62 -5
  21. package/api_docs/ts/enums/VoiceChannelType.html +66 -6
  22. package/api_docs/ts/enums/VonageErrorType.html +70 -7
  23. package/api_docs/ts/functions/none.html +42 -2
  24. package/api_docs/ts/functions/some.html +48 -3
  25. package/api_docs/ts/hierarchy.html +30 -0
  26. package/api_docs/ts/index.html +102 -26
  27. package/api_docs/ts/interfaces/CallSayParams.html +75 -8
  28. package/api_docs/ts/interfaces/Channel.html +67 -6
  29. package/api_docs/ts/interfaces/Conversation.html +127 -20
  30. package/api_docs/ts/interfaces/ConversationProperties.html +75 -8
  31. package/api_docs/ts/interfaces/ConversationTimestamp.html +75 -5
  32. package/api_docs/ts/interfaces/ConversationsPage.html +81 -8
  33. package/api_docs/ts/interfaces/CreateConversationParameters.html +88 -15
  34. package/api_docs/ts/interfaces/EmergencyCallData.html +67 -6
  35. package/api_docs/ts/interfaces/EmergencyCallOptions.html +57 -4
  36. package/api_docs/ts/interfaces/EphemeralConversationEvent.html +81 -12
  37. package/api_docs/ts/interfaces/EventsPage.html +81 -8
  38. package/api_docs/ts/interfaces/GetCallLegsParameters.html +69 -8
  39. package/api_docs/ts/interfaces/GetConversationEventsParameters.html +87 -14
  40. package/api_docs/ts/interfaces/GetConversationMembersParameters.html +69 -8
  41. package/api_docs/ts/interfaces/GetConversationsParameters.html +81 -12
  42. package/api_docs/ts/interfaces/Leg.html +131 -21
  43. package/api_docs/ts/interfaces/LegChannel.html +75 -8
  44. package/api_docs/ts/interfaces/LegsPage.html +81 -8
  45. package/api_docs/ts/interfaces/Location.html +67 -6
  46. package/api_docs/ts/interfaces/Member.html +81 -12
  47. package/api_docs/ts/interfaces/MemberChannel.html +69 -8
  48. package/api_docs/ts/interfaces/MemberEventBody.html +75 -7
  49. package/api_docs/ts/interfaces/MemberTimestamp.html +75 -5
  50. package/api_docs/ts/interfaces/MembersPage.html +81 -8
  51. package/api_docs/ts/interfaces/MessageAudioEventBody.html +67 -5
  52. package/api_docs/ts/interfaces/MessageCustomEventBody.html +67 -5
  53. package/api_docs/ts/interfaces/MessageFileEventBody.html +67 -6
  54. package/api_docs/ts/interfaces/MessageImageEventBody.html +67 -6
  55. package/api_docs/ts/interfaces/MessageLocationEventBody.html +67 -6
  56. package/api_docs/ts/interfaces/MessageTemplateEventBody.html +93 -9
  57. package/api_docs/ts/interfaces/MessageTextEventBody.html +67 -6
  58. package/api_docs/ts/interfaces/MessageVCardEventBody.html +67 -6
  59. package/api_docs/ts/interfaces/MessageVideoEventBody.html +67 -6
  60. package/api_docs/ts/interfaces/RTCQuality.html +123 -11
  61. package/api_docs/ts/interfaces/RtcStats.html +179 -18
  62. package/api_docs/ts/interfaces/Template.html +59 -4
  63. package/api_docs/ts/interfaces/UpdateConversationParameters.html +87 -14
  64. package/api_docs/ts/interfaces/User.html +107 -16
  65. package/api_docs/ts/interfaces/UserChannels.html +139 -13
  66. package/api_docs/ts/interfaces/UserTimestamp.html +75 -5
  67. package/api_docs/ts/interfaces/VonageError.html +89 -12
  68. package/api_docs/ts/interfaces/VonageEvent.html +131 -22
  69. package/api_docs/ts/interfaces/Whatsapp.html +59 -4
  70. package/api_docs/ts/modules.html +69 -74
  71. package/api_docs/ts/types/ClientConfigObject.html +52 -5
  72. package/api_docs/ts/types/ClientInitConfigObject.html +59 -4
  73. package/api_docs/ts/types/ConfigRegion.html +34 -2
  74. package/api_docs/ts/types/ConversationEvent.html +34 -2
  75. package/api_docs/ts/types/CustomData.html +34 -2
  76. package/api_docs/ts/types/Json.html +34 -2
  77. package/api_docs/ts/types/JsonValue.html +34 -2
  78. package/api_docs/ts/types/MemberStatus.html +34 -2
  79. package/api_docs/ts/types/Option.html +38 -2
  80. package/api_docs/ts/types/PersistentConversationEvent.html +34 -2
  81. package/api_docs/ts/types/Topics.html +34 -2
  82. package/api_docs/ts/types/VonageLogger.html +59 -4
  83. package/api_docs/ts/variables/Topics.html +34 -0
  84. package/api_docs/ts/variables/VonageError.html +38 -0
  85. package/dist/client/VonageClient.d.ts +704 -704
  86. package/dist/client/index.cjs +45072 -36319
  87. package/dist/client/index.d.ts +2 -2
  88. package/dist/client/index.mjs +44700 -35947
  89. package/dist/coreExtend.d.ts +107 -107
  90. package/dist/kotlin/JsUnions.d.ts +443 -443
  91. package/dist/kotlin/clientsdk-clientcore_js.d.ts +724 -145
  92. package/dist/utils/ClientConfig.d.ts +104 -104
  93. package/dist/utils/ConversationEventBodies.d.ts +125 -125
  94. package/dist/utils/ConversationModels.d.ts +170 -170
  95. package/dist/utils/Enums.d.ts +56 -56
  96. package/dist/utils/ErrorModels.d.ts +23 -23
  97. package/dist/utils/JsonUtils.d.ts +15 -15
  98. package/dist/utils/Option.d.ts +19 -19
  99. package/dist/utils/RequestParameterModels.d.ts +134 -134
  100. package/dist/utils/index.d.ts +10 -10
  101. package/dist/utils/jsEnumToVonageObject.d.ts +10 -10
  102. package/dist/utils/logging.d.ts +53 -53
  103. package/dist/utils/vonage.d.ts +2 -2
  104. package/dist/vonageClientSDK.js +44299 -35558
  105. package/dist/vonageClientSDK.min.js +25 -25
  106. package/dist/vonageClientSDK.min.mjs +26 -26
  107. package/dist/vonageClientSDK.mjs +44299 -35558
  108. package/package.json +6 -6
  109. package/typedoc.json +3 -0
  110. package/api_docs/ts/variables/Topics-1.html +0 -2
  111. package/api_docs/ts/variables/VonageError-1.html +0 -3
@@ -1,104 +1,104 @@
1
- import { Nullable } from '../kotlin/clientsdk-clientcore_js';
2
- import vonage from '../utils/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 ClientInitConfigObject} or {@link ClientConfigObject}.
8
- */
9
- export type ConfigRegion = vonage.CoreClientConfigRegionJS | typeof vonage.CoreClientConfigRegionJS.prototype.name;
10
- export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
11
- /**
12
- * An convenience union for {@link ConfigObjectJS} 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 apiUrl The API URL of your chosen datacenter, if set overrides default from region
22
- * @property websocketUrl The WebSocket URL of your chosen datacenter, if set overrides default from region
23
- * @property websocketPath The Path component appended to the Websocket URL
24
- * @property rtcStatsTelemetry Allow users to enable RTCStats
25
- * @property autoReconnectMedia Allow the sdk to automatically reconnect media when network interface changes
26
- * @property emergencyPrimaryRegion The primary region URL for emergency services
27
- * @property emergencySecondaryRegion The secondary region URL for emergency services
28
- *
29
- * @example
30
- * [[include:snippet_Config.txt]]
31
- */
32
- export type ClientConfigObject = ConfigObjectJS | ({
33
- region?: ConfigRegion;
34
- } & Omit<ConfigObjectJS, 'region'>);
35
- /**
36
- * Represents the configuration object used to initialize the client.
37
- *
38
- * The `ClientInitConfig` class provides a convenient way to configure the client by specifying various properties.
39
- * These properties include all the ones in {@link ClientConfigObject} plus {@link loggingLevel}, {@link customLoggers} and {@link disableInternalLogger}.
40
- *
41
- * @property loggingLevel The Logging Level to use
42
- * @property customLoggers A List of custom loggers
43
- * @property disableInternalLogger Whether to enable the SDK internal logger
44
- * @property region The Vonage datacenter to use
45
- * @property apiUrl The API URL of your chosen datacenter, if set overrides default from region
46
- * @property websocketUrl The WebSocket URL of your chosen datacenter, if set overrides default from region
47
- * @property websocketPath The Path component appended to the Websocket URL
48
- * @property rtcStatsTelemetry Allow users to enable RTCStats
49
- * @property autoReconnectMedia Allow the sdk to automatically reconnect media when network interface changes
50
- * @property emergencyPrimaryRegion The primary region URL for emergency services
51
- * @property emergencySecondaryRegion The secondary region URL for emergency services
52
- *
53
- * @example
54
- * [[include:snippet_Logging.txt]]
55
- */
56
- export type ClientInitConfigObject = InitConfigObjectJS | ({
57
- region?: ConfigRegion;
58
- loggingLevel?: LoggingLevel;
59
- customLoggers?: VonageLogger[];
60
- } & Omit<InitConfigObjectJS, 'region' | 'loggingLevel' | 'customLoggers'>);
61
- export interface ConfigObjectJS {
62
- region?: Nullable<vonage.CoreClientConfigRegionJS>;
63
- apiUrl?: Nullable<string>;
64
- websocketUrl?: Nullable<string>;
65
- websocketPath?: Nullable<string>;
66
- rtcStatsTelemetry?: Nullable<boolean>;
67
- autoReconnectMedia?: Nullable<boolean>;
68
- emergencyPrimaryRegion?: Nullable<string>;
69
- emergencySecondaryRegion?: Nullable<string>;
70
- }
71
- export interface InitConfigObjectJS extends ConfigObjectJS {
72
- loggingLevel?: Nullable<vonage.LoggingLevelJS>;
73
- customLoggers?: Nullable<VonageLoggerJS[]>;
74
- disableInternalLogger?: Nullable<boolean>;
75
- }
76
- export declare class ClientConfig extends vonage.CoreClientConfigJS {
77
- /**
78
- * Constructs a new instance of the class.
79
- *
80
- * @param region The region where the API and WebSocket URLs should be configured.
81
- * Valid values are "EU" (Europe), "US" (United States), or "AP" (Asia Pacific).
82
- * The URLs will be automatically set based on the selected region.
83
- * Defaults to "US" if no region is specified.
84
- */
85
- constructor(region?: ConfigRegion);
86
- }
87
- export declare class ClientInitConfig implements InitConfigObjectJS {
88
- loggingLevel: vonage.LoggingLevelJS;
89
- region: vonage.CoreClientConfigRegionJS;
90
- customLoggers: VonageLoggerJS[];
91
- disableInternalLogger: boolean;
92
- apiUrl?: Nullable<string>;
93
- websocketUrl?: Nullable<string>;
94
- websocketPath?: Nullable<string>;
95
- rtcStatsTelemetry?: Nullable<boolean>;
96
- autoReconnectMedia?: Nullable<boolean>;
97
- emergencyPrimaryRegion?: Nullable<string>;
98
- emergencySecondaryRegion?: Nullable<string>;
99
- /**
100
- * Constructs a new instance of the class.
101
- */
102
- constructor(loggingLevel?: LoggingLevel, region?: ConfigRegion, customLoggers?: Array<VonageLogger | VonageLoggerJS>);
103
- }
104
- export declare const convertInitConfig: (config: ClientInitConfigObject) => InitConfigObjectJS;
1
+ import { Nullable } from '../kotlin/clientsdk-clientcore_js';
2
+ import vonage from '../utils/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 ClientInitConfigObject} or {@link ClientConfigObject}.
8
+ */
9
+ export type ConfigRegion = vonage.CoreClientConfigRegionJS | typeof vonage.CoreClientConfigRegionJS.prototype.name;
10
+ export declare const ConfigRegion: typeof vonage.CoreClientConfigRegionJS;
11
+ /**
12
+ * An convenience union for {@link ConfigObjectJS} 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 apiUrl The API URL of your chosen datacenter, if set overrides default from region
22
+ * @property websocketUrl The WebSocket URL of your chosen datacenter, if set overrides default from region
23
+ * @property websocketPath The Path component appended to the Websocket URL
24
+ * @property rtcStatsTelemetry Allow users to enable RTCStats
25
+ * @property autoReconnectMedia Allow the sdk to automatically reconnect media when network interface changes
26
+ * @property emergencyPrimaryRegion The primary region URL for emergency services
27
+ * @property emergencySecondaryRegion The secondary region URL for emergency services
28
+ *
29
+ * @example
30
+ * {@includeCode ../../examples/snippets/snippet_Config.txt}
31
+ */
32
+ export type ClientConfigObject = ConfigObjectJS | ({
33
+ region?: ConfigRegion;
34
+ } & Omit<ConfigObjectJS, 'region'>);
35
+ /**
36
+ * Represents the configuration object used to initialize the client.
37
+ *
38
+ * The `ClientInitConfig` class provides a convenient way to configure the client by specifying various properties.
39
+ * These properties include all the ones in {@link ClientConfigObject} plus {@link loggingLevel}, {@link customLoggers} and {@link disableInternalLogger}.
40
+ *
41
+ * @property loggingLevel The Logging Level to use
42
+ * @property customLoggers A List of custom loggers
43
+ * @property disableInternalLogger Whether to enable the SDK internal logger
44
+ * @property region The Vonage datacenter to use
45
+ * @property apiUrl The API URL of your chosen datacenter, if set overrides default from region
46
+ * @property websocketUrl The WebSocket URL of your chosen datacenter, if set overrides default from region
47
+ * @property websocketPath The Path component appended to the Websocket URL
48
+ * @property rtcStatsTelemetry Allow users to enable RTCStats
49
+ * @property autoReconnectMedia Allow the sdk to automatically reconnect media when network interface changes
50
+ * @property emergencyPrimaryRegion The primary region URL for emergency services
51
+ * @property emergencySecondaryRegion The secondary region URL for emergency services
52
+ *
53
+ * @example
54
+ * {@includeCode ../../examples/snippets/snippet_Logging.txt}
55
+ */
56
+ export type ClientInitConfigObject = InitConfigObjectJS | ({
57
+ region?: ConfigRegion;
58
+ loggingLevel?: LoggingLevel;
59
+ customLoggers?: VonageLogger[];
60
+ } & Omit<InitConfigObjectJS, 'region' | 'loggingLevel' | 'customLoggers'>);
61
+ export interface ConfigObjectJS {
62
+ region?: Nullable<vonage.CoreClientConfigRegionJS>;
63
+ apiUrl?: Nullable<string>;
64
+ websocketUrl?: Nullable<string>;
65
+ websocketPath?: Nullable<string>;
66
+ rtcStatsTelemetry?: Nullable<boolean>;
67
+ autoReconnectMedia?: Nullable<boolean>;
68
+ emergencyPrimaryRegion?: Nullable<string>;
69
+ emergencySecondaryRegion?: Nullable<string>;
70
+ }
71
+ export interface InitConfigObjectJS extends ConfigObjectJS {
72
+ loggingLevel?: Nullable<vonage.LoggingLevelJS>;
73
+ customLoggers?: Nullable<VonageLoggerJS[]>;
74
+ disableInternalLogger?: Nullable<boolean>;
75
+ }
76
+ export declare class ClientConfig extends vonage.CoreClientConfigJS {
77
+ /**
78
+ * Constructs a new instance of the class.
79
+ *
80
+ * @param region The region where the API and WebSocket URLs should be configured.
81
+ * Valid values are "EU" (Europe), "US" (United States), or "AP" (Asia Pacific).
82
+ * The URLs will be automatically set based on the selected region.
83
+ * Defaults to "US" if no region is specified.
84
+ */
85
+ constructor(region?: ConfigRegion);
86
+ }
87
+ export declare class ClientInitConfig implements InitConfigObjectJS {
88
+ loggingLevel: vonage.LoggingLevelJS;
89
+ region: vonage.CoreClientConfigRegionJS;
90
+ customLoggers: VonageLoggerJS[];
91
+ disableInternalLogger: boolean;
92
+ apiUrl?: Nullable<string>;
93
+ websocketUrl?: Nullable<string>;
94
+ websocketPath?: Nullable<string>;
95
+ rtcStatsTelemetry?: Nullable<boolean>;
96
+ autoReconnectMedia?: Nullable<boolean>;
97
+ emergencyPrimaryRegion?: Nullable<string>;
98
+ emergencySecondaryRegion?: Nullable<string>;
99
+ /**
100
+ * Constructs a new instance of the class.
101
+ */
102
+ constructor(loggingLevel?: LoggingLevel, region?: ConfigRegion, customLoggers?: Array<VonageLogger | VonageLoggerJS>);
103
+ }
104
+ export declare const convertInitConfig: (config: ClientInitConfigObject) => InitConfigObjectJS;
@@ -1,125 +1,125 @@
1
- import vonage from '../utils/vonage';
2
- export type EventState = Omit<vonage.EventStateJS, 'current'> & {
3
- current: Lowercase<typeof vonage.EventStateTypeJS.prototype.name>;
4
- };
5
- /**
6
- * Member status is a map of member id to {@link EventState}
7
- */
8
- export type MemberStatus = Record<string, EventState>;
9
- /**
10
- * The {@link MessageAudioEvent} Body type
11
- *
12
- * @property audio The audio URL
13
- * @property deleted The message deletion timestamp
14
- * @interface
15
- * @group Chat
16
- */
17
- export type MessageAudioEventBody = vonage.MessageAudioEventJS.MessageAudioEventBody;
18
- /**
19
- * The {@link MessageCustomEvent} Body type
20
- *
21
- * @property custom The message custom data
22
- * @property deleted The message deletion timestamp
23
- * @interface
24
- * @group Chat
25
- */
26
- export type MessageCustomEventBody = vonage.MessageCustomEventJS.MessageCustomEventBody;
27
- /**
28
- * The {@link MessageFileEvent} Body type
29
- * @property fileUrl The file URL
30
- * @property deleted The message deletion timestamp
31
- * @interface
32
- * @group Chat
33
- */
34
- export type MessageFileEventBody = vonage.MessageFileEventJS.MessageFileEventBody;
35
- /**
36
- * The {@link MessageImageEvent} Body type
37
- * @property imageUrl The image URL
38
- * @property deleted The message deletion timestamp
39
- * @interface
40
- * @group Chat
41
- */
42
- export type MessageImageEventBody = vonage.MessageImageEventJS.MessageImageEventBody;
43
- /**
44
- * The {@link MessageLocationEvent} Body type
45
- * @property location The {@link Location} object
46
- * @property deleted The message deletion timestamp
47
- * @interface
48
- * @group Chat
49
- */
50
- export type MessageLocationEventBody = vonage.MessageLocationEventJS.MessageLocationEventBody;
51
- /**
52
- * The {@link MessageTemplateEvent} Body type
53
- *
54
- * @property template The {@link Template} object
55
- * @property whatsapp The {@link Whatsapp} object
56
- * @property deleted The message deletion timestamp
57
- * @interface
58
- * @group Chat
59
- */
60
- export type MessageTemplateEventBody = vonage.MessageTemplateEventJS.MessageTemplateEventBody;
61
- /**
62
- * The {@link MessageVCardEvent} Body type
63
- *
64
- * @property vcardUrl The VCard URL
65
- * @property deleted The message deletion timestamp
66
- * @interface
67
- * @group Chat
68
- */
69
- export type MessageVCardEventBody = vonage.MessageVCardEventJS.MessageVCardEventBody;
70
- /**
71
- * The {@link MessageVideoEvent} Body type
72
- *
73
- * @property videoUrl The Video URL
74
- * @property deleted The message deletion timestamp
75
- * @interface
76
- * @group Chat
77
- */
78
- export type MessageVideoEventBody = vonage.MessageVideoEventJS.MessageVideoEventBody;
79
- /**
80
- * The {@link MessageTextEvent} Body type
81
- *
82
- * @property text The message text
83
- * @property deleted The message deletion timestamp
84
- * @interface
85
- * @group Chat
86
- */
87
- export type MessageTextEventBody = vonage.MessageTextEventJS.MessageTextEventBody;
88
- /**
89
- * The {@link MemberInvitedEvent}, {@link MemberJoinedEvent} and {@link MemberLeftEvent} Body type
90
- *
91
- * @property memberId The member id
92
- * @property user The {@link User} associated to the member
93
- * @interface
94
- * @group Chat
95
- */
96
- export type MemberEventBody = vonage.MemberEventBodyJS;
97
- /**
98
- * The Location object for a {@link MessageLocationEventBody}
99
- *
100
- * @group Chat
101
- */
102
- export interface Location {
103
- name?: string | null;
104
- address?: string | null;
105
- latitude: string;
106
- longitude: string;
107
- }
108
- /**
109
- * The Template object for a {@link MessageTemplateEventBody}
110
- *
111
- * @group Chat
112
- */
113
- export interface Template {
114
- name: string;
115
- parameters?: string[] | null;
116
- }
117
- /**
118
- * The Whatsapp object for a {@link MessageTemplateEventBody}
119
- *
120
- * @group Chat
121
- */
122
- export interface Whatsapp {
123
- policy: string;
124
- locale: string;
125
- }
1
+ import vonage from '../utils/vonage';
2
+ export type EventState = Omit<vonage.EventStateJS, 'current'> & {
3
+ current: Lowercase<typeof vonage.EventStateTypeJS.prototype.name>;
4
+ };
5
+ /**
6
+ * Member status is a map of member id to {@link EventState}
7
+ */
8
+ export type MemberStatus = Record<string, EventState>;
9
+ /**
10
+ * The {@link MessageAudioEvent} Body type
11
+ *
12
+ * @property audio The audio URL
13
+ * @property deleted The message deletion timestamp
14
+ * @interface
15
+ * @group Chat
16
+ */
17
+ export type MessageAudioEventBody = vonage.MessageAudioEventJS.MessageAudioEventBody;
18
+ /**
19
+ * The {@link MessageCustomEvent} Body type
20
+ *
21
+ * @property custom The message custom data
22
+ * @property deleted The message deletion timestamp
23
+ * @interface
24
+ * @group Chat
25
+ */
26
+ export type MessageCustomEventBody = vonage.MessageCustomEventJS.MessageCustomEventBody;
27
+ /**
28
+ * The {@link MessageFileEvent} Body type
29
+ * @property fileUrl The file URL
30
+ * @property deleted The message deletion timestamp
31
+ * @interface
32
+ * @group Chat
33
+ */
34
+ export type MessageFileEventBody = vonage.MessageFileEventJS.MessageFileEventBody;
35
+ /**
36
+ * The {@link MessageImageEvent} Body type
37
+ * @property imageUrl The image URL
38
+ * @property deleted The message deletion timestamp
39
+ * @interface
40
+ * @group Chat
41
+ */
42
+ export type MessageImageEventBody = vonage.MessageImageEventJS.MessageImageEventBody;
43
+ /**
44
+ * The {@link MessageLocationEvent} Body type
45
+ * @property location The {@link Location} object
46
+ * @property deleted The message deletion timestamp
47
+ * @interface
48
+ * @group Chat
49
+ */
50
+ export type MessageLocationEventBody = vonage.MessageLocationEventJS.MessageLocationEventBody;
51
+ /**
52
+ * The {@link MessageTemplateEvent} Body type
53
+ *
54
+ * @property template The {@link Template} object
55
+ * @property whatsapp The {@link Whatsapp} object
56
+ * @property deleted The message deletion timestamp
57
+ * @interface
58
+ * @group Chat
59
+ */
60
+ export type MessageTemplateEventBody = vonage.MessageTemplateEventJS.MessageTemplateEventBody;
61
+ /**
62
+ * The {@link MessageVCardEvent} Body type
63
+ *
64
+ * @property vcardUrl The VCard URL
65
+ * @property deleted The message deletion timestamp
66
+ * @interface
67
+ * @group Chat
68
+ */
69
+ export type MessageVCardEventBody = vonage.MessageVCardEventJS.MessageVCardEventBody;
70
+ /**
71
+ * The {@link MessageVideoEvent} Body type
72
+ *
73
+ * @property videoUrl The Video URL
74
+ * @property deleted The message deletion timestamp
75
+ * @interface
76
+ * @group Chat
77
+ */
78
+ export type MessageVideoEventBody = vonage.MessageVideoEventJS.MessageVideoEventBody;
79
+ /**
80
+ * The {@link MessageTextEvent} Body type
81
+ *
82
+ * @property text The message text
83
+ * @property deleted The message deletion timestamp
84
+ * @interface
85
+ * @group Chat
86
+ */
87
+ export type MessageTextEventBody = vonage.MessageTextEventJS.MessageTextEventBody;
88
+ /**
89
+ * The {@link MemberInvitedEvent}, {@link MemberJoinedEvent} and {@link MemberLeftEvent} Body type
90
+ *
91
+ * @property memberId The member id
92
+ * @property user The {@link User} associated to the member
93
+ * @interface
94
+ * @group Chat
95
+ */
96
+ export type MemberEventBody = vonage.MemberEventBodyJS;
97
+ /**
98
+ * The Location object for a {@link MessageLocationEventBody}
99
+ *
100
+ * @group Chat
101
+ */
102
+ export interface Location {
103
+ name?: string | null;
104
+ address?: string | null;
105
+ latitude: string;
106
+ longitude: string;
107
+ }
108
+ /**
109
+ * The Template object for a {@link MessageTemplateEventBody}
110
+ *
111
+ * @group Chat
112
+ */
113
+ export interface Template {
114
+ name: string;
115
+ parameters?: string[] | null;
116
+ }
117
+ /**
118
+ * The Whatsapp object for a {@link MessageTemplateEventBody}
119
+ *
120
+ * @group Chat
121
+ */
122
+ export interface Whatsapp {
123
+ policy: string;
124
+ locale: string;
125
+ }