@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,134 +1,134 @@
1
- import vonage from './vonage';
2
- import { CustomData } from './JsonUtils';
3
- import { Nullable } from '../kotlin/clientsdk-clientcore_js';
4
- import { Option } from './Option';
5
- /**
6
- * Parameters object for {@link VonageClient.createConversation}
7
- *
8
- * @property name The name to initialize the conversation with
9
- * @property displayName The displayName to initialize the conversation with
10
- * @property imageUrl The name to imageUrl the conversation with
11
- * @property ttl The time-to-live (in seconds) to initialize the conversation with
12
- * @property customSortKey The customSortKey to initialize the conversation with.
13
- * When {@link GetConversationsParameters.orderBy} is set to {@link OrderBy.CUSTOM_SORT_KEY}, conversations will be sorted according to the value of this property.
14
- * @property customData Custom data associated with the conversation
15
- * @interface
16
- * @group Chat
17
- */
18
- export type CreateConversationParameters = Omit<vonage.CreateConversationParametersJS, 'ttl' | 'customData'> & {
19
- ttl?: Nullable<number>;
20
- customData?: Nullable<CustomData>;
21
- };
22
- /**
23
- * Parameters object for {@link VonageClient.getConversations}
24
- *
25
- * @property order The order in which conversations are presented, default is {@link PresentingOrder.ASC}.
26
- * @property pageSize The maximum number of conversations to retrieve per request, default is 10.
27
- * @property cursor The cursor indicating the starting point for pagination, default is the first page.
28
- * @property includeCustomData Indicates whether to include custom data in the results, default is false.
29
- * @property orderBy The strategy for ordering the conversations, default is {@link OrderBy.CREATED}.
30
- * @interface
31
- * @group Chat
32
- */
33
- export type GetConversationsParameters = Omit<vonage.GetConversationsParametersJS, 'pageSize' | 'order' | 'orderBy'> & {
34
- pageSize?: Nullable<number>;
35
- order?: Nullable<PresentingOrder>;
36
- orderBy?: Nullable<OrderBy>;
37
- };
38
- /**
39
- * Parameters object for {@link VonageClient.getConversationEvents}
40
- *
41
- * @property order The order in which conversation events are presented, default is {@link PresentingOrder.ASC}.
42
- * @property pageSize The maximum number of conversation events to retrieve per request, default is 10.
43
- * @property cursor The cursor indicating the starting point for pagination, default is the first page.
44
- * @property eventFilter A list of strings containing the types of events to be fetched and should have maximum 5 elements, default includes all events.
45
- * @property includeDeletedEvents Indicates whether to include deleted events in the list, default is false.
46
- * @property startId Specify the starting id of the events to be returned, default includes all events.
47
- * @interface
48
- * @group Chat
49
- */
50
- export type GetConversationEventsParameters = Omit<vonage.GetConversationEventsParametersJS, 'pageSize' | 'startId' | 'order'> & {
51
- pageSize?: Nullable<number>;
52
- startId?: Nullable<number>;
53
- order?: Nullable<PresentingOrder>;
54
- };
55
- /**
56
- * Parameters object for {@link VonageClient.getConversationMembers}
57
- *
58
- * @property order The order in which conversation members are presented, default is {@link PresentingOrder.ASC}.
59
- * @property pageSize The maximum number of conversation members to retrieve per request, default is 10.
60
- * @property cursor The cursor indicating the starting point for pagination, default is the first page.
61
- * @interface
62
- * @group Chat
63
- */
64
- export type GetConversationMembersParameters = Omit<vonage.GetConversationMembersParametersJS, 'pageSize' | 'order'> & {
65
- pageSize?: Nullable<number>;
66
- order?: Nullable<PresentingOrder>;
67
- };
68
- /**
69
- * Parameters object for {@link VonageClient.getCallLegs}
70
- *
71
- * @property order The order in which call legs are presented, default is {@link PresentingOrder.ASC}.
72
- * @property pageSize The maximum number of legs to retrieve per request, default is 10.
73
- * @property cursor The cursor indicating the starting point for pagination, default is the first page.
74
- * @interface
75
- * @group Voice
76
- */
77
- export type GetCallLegsParameters = Omit<vonage.GetCallLegsParametersJS, 'pageSize' | 'order'> & {
78
- order?: Nullable<PresentingOrder>;
79
- pageSize?: Nullable<number>;
80
- };
81
- /**
82
- * Parameters object for {@link VonageClient.updateConversation}.
83
- *
84
- * Every property is an {@link Option} monad.
85
- * When set to {@link Option.Some} the property will be updated.
86
- * When set to {@link Option.None} the property will remain unchanged.
87
- *
88
- * @property name The name of the conversation.
89
- * @property displayName A display name for the conversation.
90
- * @property imageUrl The URL of an image associated with the conversation.
91
- * @property ttl The time-to-live (TTL) for the conversation in seconds.
92
- * @property customSortKey A custom sort key for the conversation.
93
- * @property customData Custom data associated with the conversation.
94
- * @interface
95
- * @group Chat
96
- */
97
- export interface UpdateConversationParameters {
98
- name?: string | Option<string>;
99
- displayName?: string | null | Option<string | null | undefined>;
100
- imageUrl?: string | null | Option<string | null | undefined>;
101
- ttl?: number | Option<number>;
102
- customSortKey?: string | null | Option<string | null | undefined>;
103
- customData?: CustomData | null | Option<CustomData | null | undefined>;
104
- }
105
- /**
106
- * The order in which paginated objects are presented.
107
- *
108
- * @group Chat
109
- */
110
- export type PresentingOrder = Lowercase<typeof vonage.PresentingOrderJS.prototype.name> | vonage.PresentingOrderJS;
111
- /**
112
- * The order in which paginated objects are presented.
113
- * @group Chat
114
- * @enum
115
- * @property ASC Ascending order
116
- * @property DESC Descending order
117
- */
118
- export declare const PresentingOrder: {
119
- [prop in typeof vonage.PresentingOrderJS.prototype.name]: Lowercase<prop>;
120
- };
121
- /**
122
- * The sorting strategy used for paginated objects.
123
- *
124
- * @group Chat
125
- */
126
- export type OrderBy = Lowercase<typeof vonage.OrderByJS.prototype.name> | vonage.OrderByJS;
127
- /**
128
- * The sorting strategy used for paginated objects.
129
- * @group Chat
130
- * @enum
131
- */
132
- export declare const OrderBy: {
133
- [prop in typeof vonage.OrderByJS.prototype.name]: Lowercase<prop>;
134
- };
1
+ import vonage from './vonage';
2
+ import { CustomData } from './JsonUtils';
3
+ import { Nullable } from '../kotlin/clientsdk-clientcore_js';
4
+ import { Option } from './Option';
5
+ /**
6
+ * Parameters object for {@link VonageClient.createConversation}
7
+ *
8
+ * @property name The name to initialize the conversation with
9
+ * @property displayName The displayName to initialize the conversation with
10
+ * @property imageUrl The name to imageUrl the conversation with
11
+ * @property ttl The time-to-live (in seconds) to initialize the conversation with
12
+ * @property customSortKey The customSortKey to initialize the conversation with.
13
+ * When {@link GetConversationsParameters.orderBy} is set to {@link OrderBy.CUSTOM_SORT_KEY}, conversations will be sorted according to the value of this property.
14
+ * @property customData Custom data associated with the conversation
15
+ * @interface
16
+ * @group Chat
17
+ */
18
+ export type CreateConversationParameters = Omit<vonage.CreateConversationParametersJS, 'ttl' | 'customData'> & {
19
+ ttl?: Nullable<number>;
20
+ customData?: Nullable<CustomData>;
21
+ };
22
+ /**
23
+ * Parameters object for {@link VonageClient.getConversations}
24
+ *
25
+ * @property order The order in which conversations are presented, default is {@link PresentingOrder.ASC}.
26
+ * @property pageSize The maximum number of conversations to retrieve per request, default is 10.
27
+ * @property cursor The cursor indicating the starting point for pagination, default is the first page.
28
+ * @property includeCustomData Indicates whether to include custom data in the results, default is false.
29
+ * @property orderBy The strategy for ordering the conversations, default is {@link OrderBy.CREATED}.
30
+ * @interface
31
+ * @group Chat
32
+ */
33
+ export type GetConversationsParameters = Omit<vonage.GetConversationsParametersJS, 'pageSize' | 'order' | 'orderBy'> & {
34
+ pageSize?: Nullable<number>;
35
+ order?: Nullable<PresentingOrder>;
36
+ orderBy?: Nullable<OrderBy>;
37
+ };
38
+ /**
39
+ * Parameters object for {@link VonageClient.getConversationEvents}
40
+ *
41
+ * @property order The order in which conversation events are presented, default is {@link PresentingOrder.ASC}.
42
+ * @property pageSize The maximum number of conversation events to retrieve per request, default is 10.
43
+ * @property cursor The cursor indicating the starting point for pagination, default is the first page.
44
+ * @property eventFilter A list of strings containing the types of events to be fetched and should have maximum 5 elements, default includes all events.
45
+ * @property includeDeletedEvents Indicates whether to include deleted events in the list, default is false.
46
+ * @property startId Specify the starting id of the events to be returned, default includes all events.
47
+ * @interface
48
+ * @group Chat
49
+ */
50
+ export type GetConversationEventsParameters = Omit<vonage.GetConversationEventsParametersJS, 'pageSize' | 'startId' | 'order'> & {
51
+ pageSize?: Nullable<number>;
52
+ startId?: Nullable<number>;
53
+ order?: Nullable<PresentingOrder>;
54
+ };
55
+ /**
56
+ * Parameters object for {@link VonageClient.getConversationMembers}
57
+ *
58
+ * @property order The order in which conversation members are presented, default is {@link PresentingOrder.ASC}.
59
+ * @property pageSize The maximum number of conversation members to retrieve per request, default is 10.
60
+ * @property cursor The cursor indicating the starting point for pagination, default is the first page.
61
+ * @interface
62
+ * @group Chat
63
+ */
64
+ export type GetConversationMembersParameters = Omit<vonage.GetConversationMembersParametersJS, 'pageSize' | 'order'> & {
65
+ pageSize?: Nullable<number>;
66
+ order?: Nullable<PresentingOrder>;
67
+ };
68
+ /**
69
+ * Parameters object for {@link VonageClient.getCallLegs}
70
+ *
71
+ * @property order The order in which call legs are presented, default is {@link PresentingOrder.ASC}.
72
+ * @property pageSize The maximum number of legs to retrieve per request, default is 10.
73
+ * @property cursor The cursor indicating the starting point for pagination, default is the first page.
74
+ * @interface
75
+ * @group Voice
76
+ */
77
+ export type GetCallLegsParameters = Omit<vonage.GetCallLegsParametersJS, 'pageSize' | 'order'> & {
78
+ order?: Nullable<PresentingOrder>;
79
+ pageSize?: Nullable<number>;
80
+ };
81
+ /**
82
+ * Parameters object for {@link VonageClient.updateConversation}.
83
+ *
84
+ * Every property is an {@link Option} monad.
85
+ * When set to {@link Option.Some} the property will be updated.
86
+ * When set to {@link Option.None} the property will remain unchanged.
87
+ *
88
+ * @property name The name of the conversation.
89
+ * @property displayName A display name for the conversation.
90
+ * @property imageUrl The URL of an image associated with the conversation.
91
+ * @property ttl The time-to-live (TTL) for the conversation in seconds.
92
+ * @property customSortKey A custom sort key for the conversation.
93
+ * @property customData Custom data associated with the conversation.
94
+ * @interface
95
+ * @group Chat
96
+ */
97
+ export interface UpdateConversationParameters {
98
+ name?: string | Option<string>;
99
+ displayName?: string | null | Option<string | null | undefined>;
100
+ imageUrl?: string | null | Option<string | null | undefined>;
101
+ ttl?: number | Option<number>;
102
+ customSortKey?: string | null | Option<string | null | undefined>;
103
+ customData?: CustomData | null | Option<CustomData | null | undefined>;
104
+ }
105
+ /**
106
+ * The order in which paginated objects are presented.
107
+ *
108
+ * @group Chat
109
+ */
110
+ export type PresentingOrder = Lowercase<typeof vonage.PresentingOrderJS.prototype.name> | vonage.PresentingOrderJS;
111
+ /**
112
+ * The order in which paginated objects are presented.
113
+ * @group Chat
114
+ * @enum
115
+ * @property ASC Ascending order
116
+ * @property DESC Descending order
117
+ */
118
+ export declare const PresentingOrder: {
119
+ [prop in typeof vonage.PresentingOrderJS.prototype.name]: Lowercase<prop>;
120
+ };
121
+ /**
122
+ * The sorting strategy used for paginated objects.
123
+ *
124
+ * @group Chat
125
+ */
126
+ export type OrderBy = Lowercase<typeof vonage.OrderByJS.prototype.name> | vonage.OrderByJS;
127
+ /**
128
+ * The sorting strategy used for paginated objects.
129
+ * @group Chat
130
+ * @enum
131
+ */
132
+ export declare const OrderBy: {
133
+ [prop in typeof vonage.OrderByJS.prototype.name]: Lowercase<prop>;
134
+ };
@@ -1,10 +1,10 @@
1
- export { ClientConfig, ClientInitConfig, ClientConfigObject, ClientInitConfigObject, ConfigRegion, convertInitConfig } from './ClientConfig';
2
- export { type Topic, type VonageLogger, LoggingLevel, Topics, createVonageLogger } from './logging';
3
- export * from './JsonUtils';
4
- export * from './ConversationModels';
5
- export * from './ErrorModels';
6
- export * from './RequestParameterModels';
7
- export * from './Option';
8
- export * from './ConversationEventBodies';
9
- export * from './Enums';
10
- export { ConversationEvent, EphemeralConversationEvent, PersistentConversationEvent } from '../kotlin/JsUnions';
1
+ export { ClientConfig, ClientInitConfig, ClientConfigObject, ClientInitConfigObject, ConfigRegion, convertInitConfig } from './ClientConfig';
2
+ export { type Topic, type VonageLogger, LoggingLevel, Topics, createVonageLogger } from './logging';
3
+ export * from './JsonUtils';
4
+ export * from './ConversationModels';
5
+ export * from './ErrorModels';
6
+ export * from './RequestParameterModels';
7
+ export * from './Option';
8
+ export * from './ConversationEventBodies';
9
+ export * from './Enums';
10
+ export { ConversationEvent, EphemeralConversationEvent, PersistentConversationEvent } from '../kotlin/JsUnions';
@@ -1,10 +1,10 @@
1
- export type KotlinClass = Function & {
2
- prototype: {
3
- name: string;
4
- };
5
- };
6
- export type KotlinEnum<T extends KotlinClass> = Lowercase<T['prototype']['name']> | {
7
- [K in keyof T]: T[K extends T['prototype']['name'] ? K : never];
8
- }[keyof T];
9
- export type KotlinEnumValue<T extends KotlinClass, V extends KotlinEnum<T> = KotlinEnum<T>> = V extends Lowercase<T['prototype']['name']> ? T[keyof T extends string ? Uppercase<V> : never] : V;
10
- export declare const jsEnumToVonageObject: <K extends KotlinClass, T extends KotlinEnum<K>, R extends KotlinEnumValue<K, T>>(kotlinType: K, value: T) => R | null | undefined;
1
+ export type KotlinClass = Function & {
2
+ prototype: {
3
+ name: string;
4
+ };
5
+ };
6
+ export type KotlinEnum<T extends KotlinClass> = Lowercase<T['prototype']['name']> | {
7
+ [K in keyof T]: T[K extends T['prototype']['name'] ? K : never];
8
+ }[keyof T];
9
+ export type KotlinEnumValue<T extends KotlinClass, V extends KotlinEnum<T> = KotlinEnum<T>> = V extends Lowercase<T['prototype']['name']> ? T[keyof T extends string ? Uppercase<V> : never] : V;
10
+ export declare const jsEnumToVonageObject: <K extends KotlinClass, T extends KotlinEnum<K>, R extends KotlinEnumValue<K, T>>(kotlinType: K, value: T) => R | null | undefined;
@@ -1,53 +1,53 @@
1
- import { Nullable } from '../kotlin/clientsdk-clientcore_js';
2
- import vonage from '../utils/vonage';
3
- /**
4
- * A group of Topics that a {@link VonageLogger} can subscribe to
5
- */
6
- export type Topics = vonage.Topics | typeof Topics.prototype.name;
7
- /**
8
- * A group of Topics that a {@link VonageLogger} can subscribe to
9
- */
10
- export declare const Topics: typeof vonage.Topics;
11
- export type Topic = vonage.TopicJS;
12
- export declare const Topic: typeof vonage.TopicJS;
13
- export type LoggingLevelName = typeof vonage.LoggingLevelJS.prototype.name;
14
- /**
15
- * The Client Logging Level.
16
- *
17
- * It can be set for the internal logger via {@link ClientInitConfigObject.loggingLevel}
18
- * as well as for a custom logger via {@link VonageLogger.minLogLevel}.
19
- *
20
- * @enum
21
- */
22
- export declare const LoggingLevel: {
23
- readonly Verbose: "Verbose";
24
- readonly Debug: "Debug";
25
- readonly Info: "Info";
26
- readonly Warn: "Warn";
27
- readonly Error: "Error";
28
- readonly Assert: "Assert";
29
- };
30
- export type LoggingLevel = vonage.LoggingLevelJS | LoggingLevelName;
31
- /**
32
- * An interface representing a client logger to be set via {@link ClientInitConfigObject.customLoggers}
33
- *
34
- * @property name The name of the logger.
35
- * @property minLogLevel The minimum log level of the logger.
36
- * @property topics The topics that the logger is subscribed to.
37
- * @property onLog The callback to be invoked when a log is emitted.
38
- *
39
- * @example
40
- * [[include: snippet_Logging.txt]]
41
- */
42
- export type VonageLogger = VonageLoggerJS | ({
43
- minLogLevel?: LoggingLevel;
44
- topics?: Topics[];
45
- } & Omit<VonageLoggerJS, 'minLogLevel' | 'topics'>);
46
- export declare const convertLogger: (logger: VonageLogger) => VonageLoggerJS;
47
- export interface VonageLoggerJS {
48
- name: string;
49
- minLogLevel?: Nullable<vonage.LoggingLevelJS>;
50
- topics?: Nullable<vonage.Topics[]>;
51
- onLog(level: LoggingLevelName, topic: Topic, message: string): void;
52
- }
53
- export declare const createVonageLogger: (name: string, onLog: (level: LoggingLevelName, topic: Topic, message: string) => void, minLogLevel?: LoggingLevel, topics?: Topics[]) => VonageLogger;
1
+ import { Nullable } from '../kotlin/clientsdk-clientcore_js';
2
+ import vonage from '../utils/vonage';
3
+ /**
4
+ * A group of Topics that a {@link VonageLogger} can subscribe to
5
+ */
6
+ export type Topics = vonage.Topics | typeof Topics.prototype.name;
7
+ /**
8
+ * A group of Topics that a {@link VonageLogger} can subscribe to
9
+ */
10
+ export declare const Topics: typeof vonage.Topics;
11
+ export type Topic = vonage.TopicJS;
12
+ export declare const Topic: typeof vonage.TopicJS;
13
+ export type LoggingLevelName = typeof vonage.LoggingLevelJS.prototype.name;
14
+ /**
15
+ * The Client Logging Level.
16
+ *
17
+ * It can be set for the internal logger via {@link ClientInitConfigObject.loggingLevel}
18
+ * as well as for a custom logger via {@link VonageLogger.minLogLevel}.
19
+ *
20
+ * @enum
21
+ */
22
+ export declare const LoggingLevel: {
23
+ readonly Verbose: "Verbose";
24
+ readonly Debug: "Debug";
25
+ readonly Info: "Info";
26
+ readonly Warn: "Warn";
27
+ readonly Error: "Error";
28
+ readonly Assert: "Assert";
29
+ };
30
+ export type LoggingLevel = vonage.LoggingLevelJS | LoggingLevelName;
31
+ /**
32
+ * An interface representing a client logger to be set via {@link ClientInitConfigObject.customLoggers}
33
+ *
34
+ * @property name The name of the logger.
35
+ * @property minLogLevel The minimum log level of the logger.
36
+ * @property topics The topics that the logger is subscribed to.
37
+ * @property onLog The callback to be invoked when a log is emitted.
38
+ *
39
+ * @example
40
+ * {@includeCode ../../examples/snippets/snippet_Logging.txt}
41
+ */
42
+ export type VonageLogger = VonageLoggerJS | ({
43
+ minLogLevel?: LoggingLevel;
44
+ topics?: Topics[];
45
+ } & Omit<VonageLoggerJS, 'minLogLevel' | 'topics'>);
46
+ export declare const convertLogger: (logger: VonageLogger) => VonageLoggerJS;
47
+ export interface VonageLoggerJS {
48
+ name: string;
49
+ minLogLevel?: Nullable<vonage.LoggingLevelJS>;
50
+ topics?: Nullable<vonage.Topics[]>;
51
+ onLog(level: LoggingLevelName, topic: Topic, message: string): void;
52
+ }
53
+ export declare const createVonageLogger: (name: string, onLog: (level: LoggingLevelName, topic: Topic, message: string) => void, minLogLevel?: LoggingLevel, topics?: Topics[]) => VonageLogger;
@@ -1,2 +1,2 @@
1
- export { vonage as default } from '../kotlin/clientsdk-clientcore_js';
2
- import '../coreExtend';
1
+ export { vonage as default } from '../kotlin/clientsdk-clientcore_js';
2
+ import '../coreExtend';