cmd-control-client-lib 3.0.32 → 3.0.36

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.
@@ -11,7 +11,7 @@ export declare type DurationInstruction = {
11
11
  max: string;
12
12
  pick: string[];
13
13
  };
14
- export declare type TicketPriceDauer = {
14
+ export declare type TicketPriceDuration = {
15
15
  price: PriceInstruction;
16
16
  /**dauer in seconds */
17
17
  duration: DurationInstruction;
@@ -20,7 +20,7 @@ export declare type MediaPrices = {
20
20
  imagePrices: PriceInstruction;
21
21
  audioPrices: PriceInstruction;
22
22
  videoPrices: PriceInstruction;
23
- ticketPrices?: Map<EnumTicketType, TicketPriceDauer>;
23
+ ticketPrices?: Record<EnumTicketType, TicketPriceDuration>;
24
24
  };
25
25
  /**
26
26
  * Command for get prices for media. Will be forwarded to B2B backend.
@@ -1,12 +1,14 @@
1
1
  import { ACTION, baseParamsType, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
2
2
  import { channelIdType } from "./channel";
3
- import { CMDC_CMSG, MediaFile, MediaPrice } from "./message";
3
+ import { CMDC_CMSG, MediaFile, MediaOffer } from "./message";
4
4
  /**
5
5
  * Frontent command for offer media.
6
6
  */
7
7
  export declare class CMDP_SOPENMEDIAOFFER implements ICOMMAND {
8
8
  action: ACTION;
9
- params: baseParamsType & channelIdType & MediaPrice & MediaFile;
9
+ params: baseParamsType & channelIdType & MediaOffer & MediaFile & {
10
+ text?: string;
11
+ };
10
12
  }
11
13
  /**
12
14
  * Response command for CMDP_SOPENMEDIAOFFER.
@@ -1,17 +1,90 @@
1
1
  /** messageKey for msgTyp="sys" */
2
2
  export declare enum SystemMessageKey {
3
3
  bonusCodeRedemption = "bonusCodeRedemption",
4
+ h_vcall_code = "h_vcall_code",
5
+ categories = "categories",
6
+ category = "category",
7
+ exit_code_1 = "exit_code_1",
8
+ exit_code_100 = "exit_code_100",
9
+ exit_code_101 = "exit_code_101",
10
+ exit_code_102 = "exit_code_102",
11
+ exit_code_103 = "exit_code_103",
12
+ exit_code_104 = "exit_code_104",
13
+ exit_code_105 = "exit_code_105",
14
+ exit_code_106 = "exit_code_106",
15
+ exit_code_107 = "exit_code_107",
16
+ exit_code_108 = "exit_code_108",
17
+ exit_code_201 = "exit_code_201",
18
+ exit_code_202 = "exit_code_202",
19
+ exit_code_203 = "exit_code_203",
20
+ exit_code_204 = "exit_code_204",
21
+ exit_code_205 = "exit_code_205",
22
+ exit_code_206 = "exit_code_206",
23
+ exit_code_207 = "exit_code_207",
24
+ exit_code_208 = "exit_code_208",
25
+ exit_code_210 = "exit_code_210",
26
+ exit_code_211 = "exit_code_211",
27
+ exit_code_212 = "exit_code_212",
28
+ exit_code_213 = "exit_code_213",
29
+ exit_code_214 = "exit_code_214",
30
+ exit_code_215 = "exit_code_215",
31
+ exit_code_216 = "exit_code_216",
32
+ exit_code_301 = "exit_code_301",
33
+ exit_code_302 = "exit_code_302",
34
+ exit_code_303 = "exit_code_303",
35
+ exit_code_304 = "exit_code_304",
36
+ exit_code_305 = "exit_code_305",
37
+ exit_code_306 = "exit_code_306",
38
+ exit_code_401 = "exit_code_401",
39
+ exit_code_402 = "exit_code_402",
40
+ exit_code_403 = "exit_code_403",
41
+ exit_code_404 = "exit_code_404",
42
+ exit_code_405 = "exit_code_405",
43
+ exit_code_406 = "exit_code_406",
44
+ exit_code_407 = "exit_code_407",
45
+ exit_code_501 = "exit_code_501",
46
+ exit_code_502 = "exit_code_502",
47
+ exit_code_503 = "exit_code_503",
48
+ exit_code_601 = "exit_code_601",
49
+ exit_code_602 = "exit_code_602",
50
+ exit_code_901 = "exit_code_901",
51
+ exit_code_902 = "exit_code_902",
52
+ exit_code_903 = "exit_code_903",
53
+ exit_code_904 = "exit_code_904",
54
+ exit_code_905 = "exit_code_905",
55
+ exit_code_906 = "exit_code_906",
56
+ exit_code_907 = "exit_code_907",
57
+ exit_code_908 = "exit_code_908",
58
+ exit_code_910 = "exit_code_910",
59
+ exit_code_911 = "exit_code_911",
60
+ exit_code_913 = "exit_code_913",
61
+ exit_code_914 = "exit_code_914",
62
+ exit_code_920 = "exit_code_920",
63
+ exit_code_921 = "exit_code_921",
64
+ exit_code_990 = "exit_code_990",
65
+ exit_code_991 = "exit_code_991",
66
+ exit_code_995 = "exit_code_995",
67
+ exit_code_996 = "exit_code_996",
68
+ exit_code_997 = "exit_code_997",
69
+ exit_code_998 = "exit_code_998",
70
+ exit_code_999 = "exit_code_999",
4
71
  g_chat_auto_charged = "g_chat_auto_charged",
5
72
  g_chat_host_micro_off = "g_chat_host_micro_off",
6
73
  g_chat_host_micro_on = "g_chat_host_micro_on",
7
74
  g_discount_client = "g_discount_client",
8
75
  g_discount_client_once = "g_discount_client_once",
9
76
  g_single_not_started = "g_single_not_started",
77
+ g_single_query = "g_single_query",
78
+ g_single_query_contenpartner = "g_single_query_contenpartner",
79
+ g_single_query_start = "g_single_query_start",
80
+ g_single_query_start1 = "g_single_query_start1",
10
81
  g_single_rejected = "g_single_rejected",
11
82
  g_single_started = "g_single_started",
12
83
  g_video_cancel = "g_video_cancel",
13
84
  g_video_delayed = "g_video_delayed",
14
85
  g_video_delerror = "g_video_delerror",
86
+ g_video_reconnect = "g_video_reconnect",
87
+ host_speaks = "host_speaks",
15
88
  h_chat_admin_start = "h_chat_admin_start",
16
89
  h_chat_admin_stop = "h_chat_admin_stop",
17
90
  h_chat_audio_start = "h_chat_audio_start",
@@ -22,38 +95,54 @@ export declare enum SystemMessageKey {
22
95
  h_chat_cam2cam_start = "h_chat_cam2cam_start",
23
96
  h_chat_cam2cam_stop = "h_chat_cam2cam_stop",
24
97
  h_chat_category_from = "h_chat_category_from",
98
+ h_chat_chat_closed = "h_chat_chat_closed",
99
+ h_chat_chat_created = "h_chat_chat_created",
25
100
  h_chat_client_software = "h_chat_client_software",
26
101
  h_chat_conversion_info_has_top_up = "h_chat_conversion_info_has_top_up",
27
102
  h_chat_conversion_info_no_top_up = "h_chat_conversion_info_no_top_up",
28
103
  h_chat_conversion_start = "h_chat_conversion_start",
29
104
  h_chat_duration = "h_chat_duration",
30
- h_chat_free_mode_converted = "h_chat_free_mode_converted",
31
105
  h_chat_freeuserconv = "h_chat_freeuserconv",
106
+ h_chat_free_mode_converted = "h_chat_free_mode_converted",
32
107
  h_chat_fsk_attention = "h_chat_fsk_attention",
33
108
  h_chat_fsk_denied = "h_chat_fsk_denied",
34
109
  h_chat_fsk_text_warn = "h_chat_fsk_text_warn",
110
+ h_chat_fsk_wait = "h_chat_fsk_wait",
35
111
  h_chat_guest_mobile = "h_chat_guest_mobile",
112
+ h_chat_guest_preview_start = "h_chat_guest_preview_start",
113
+ h_chat_guest_preview_start2 = "h_chat_guest_preview_start2",
36
114
  h_chat_guest_sound_off = "h_chat_guest_sound_off",
37
115
  h_chat_guest_sound_on = "h_chat_guest_sound_on",
116
+ h_chat_guest_video_start = "h_chat_guest_video_start",
117
+ h_chat_guest_video_start_price = "h_chat_guest_video_start_price",
38
118
  h_chat_guest_visit = "h_chat_guest_visit",
39
119
  h_chat_guest_visit_first = "h_chat_guest_visit_first",
120
+ h_chat_guest_voyeur_shown = "h_chat_guest_voyeur_shown",
121
+ h_chat_guest_voyeur_start = "h_chat_guest_voyeur_start",
122
+ h_chat_guest_voyuer_start_info = "h_chat_guest_voyuer_start_info",
123
+ h_chat_guest_voyuer_start_info_price = "h_chat_guest_voyuer_start_info_price",
124
+ h_chat_guest_voyuer_start_price = "h_chat_guest_voyuer_start_price",
40
125
  h_chat_info_about = "h_chat_info_about",
41
126
  h_chat_kicked = "h_chat_kicked",
42
127
  h_chat_lovense_not_available = "h_chat_lovense_not_available",
43
- h_chat_no_history = "h_chat_no_history",
44
- h_chat_not_visitx_guest = "h_chat_not_visitx_guest",
128
+ h_chat_name_preview = "h_chat_name_preview",
129
+ h_chat_name_video = "h_chat_name_video",
130
+ h_chat_name_voyeur = "h_chat_name_voyeur",
45
131
  h_chat_note_caption = "h_chat_note_caption",
46
132
  h_chat_note_create = "h_chat_note_create",
47
133
  h_chat_note_edit = "h_chat_note_edit",
48
134
  h_chat_note_not_available = "h_chat_note_not_available",
135
+ h_chat_not_visitx_guest = "h_chat_not_visitx_guest",
136
+ h_chat_no_history = "h_chat_no_history",
49
137
  h_chat_party_mode_converted = "h_chat_party_mode_converted",
50
138
  h_chat_paused_4107 = "h_chat_paused_4107",
51
139
  h_chat_please_micro_on = "h_chat_please_micro_on",
140
+ h_chat_preview_chat = "h_chat_preview_chat",
141
+ h_chat_preview_live = "h_chat_preview_live",
52
142
  h_chat_preview_start = "h_chat_preview_start",
53
143
  h_chat_preview_stop = "h_chat_preview_stop",
144
+ h_chat_preview_vip = "h_chat_preview_vip",
54
145
  h_chat_pseudo_user = "h_chat_pseudo_user",
55
- h_chat_quest_voyeur_shown = "h_chat_quest_voyeur_shown",
56
- h_chat_quest_voyeur_start = "h_chat_quest_voyeur_start",
57
146
  h_chat_rectuited_guest = "h_chat_rectuited_guest",
58
147
  h_chat_single_available = "h_chat_single_available",
59
148
  h_chat_single_not_available = "h_chat_single_not_available",
@@ -67,6 +156,8 @@ export declare enum SystemMessageKey {
67
156
  h_chat_text_to_video = "h_chat_text_to_video",
68
157
  h_chat_text_unmuted = "h_chat_text_unmuted",
69
158
  h_chat_tip = "h_chat_tip",
159
+ h_chat_tip_no_price = "h_chat_tip_no_price",
160
+ h_chat_unban_ok = "h_chat_unban_ok",
70
161
  h_chat_url_blocked = "h_chat_url_blocked",
71
162
  h_chat_userisnovip = "h_chat_userisnovip",
72
163
  h_chat_userisvip = "h_chat_userisvip",
@@ -79,21 +170,62 @@ export declare enum SystemMessageKey {
79
170
  h_chat_voyeur2single_video_warn = "h_chat_voyeur2single_video_warn",
80
171
  h_chat_voyeur_shown = "h_chat_voyeur_shown",
81
172
  h_chat_voyuer = "h_chat_voyuer",
82
- h_chat_voyuer_shown = "h_chat_voyuer_shown",
173
+ h_code_4002 = "h_code_4002",
174
+ h_code_4003 = "h_code_4003",
175
+ h_code_4004 = "h_code_4004",
176
+ h_code_4006 = "h_code_4006",
83
177
  h_discount_available = "h_discount_available",
84
178
  h_discount_current = "h_discount_current",
85
179
  h_discount_invalid = "h_discount_invalid",
86
180
  h_discount_not_available = "h_discount_not_available",
87
- h_discount_set_ok = "h_discount_set_ok",
88
181
  h_discount_setforinfo = "h_discount_setforinfo",
182
+ h_discount_set_ok = "h_discount_set_ok",
183
+ h_error_2000 = "h_error_2000",
184
+ h_error_4002 = "h_error_4002",
185
+ h_error_4003 = "h_error_4003",
186
+ h_error_4004 = "h_error_4004",
187
+ h_error_4006 = "h_error_4006",
188
+ h_error_4008 = "h_error_4008",
189
+ h_error_4009 = "h_error_4009",
190
+ h_error_4010 = "h_error_4010",
191
+ h_error_4011 = "h_error_4011",
192
+ h_error_4012 = "h_error_4012",
193
+ h_error_4013 = "h_error_4013",
194
+ h_error_4014 = "h_error_4014",
195
+ h_error_4015 = "h_error_4015",
196
+ h_error_4016 = "h_error_4016",
197
+ h_error_4020 = "h_error_4020",
198
+ h_error_4104 = "h_error_4104",
199
+ h_error_4141 = "h_error_4141",
200
+ h_error_5001 = "h_error_5001",
201
+ h_error_5004 = "h_error_5004",
202
+ h_error_5005 = "h_error_5005",
203
+ h_error_dberror = "h_error_dberror",
204
+ h_error_login4002 = "h_error_login4002",
205
+ h_error_login4003 = "h_error_login4003",
206
+ h_error_login4006 = "h_error_login4006",
207
+ h_error_login4007 = "h_error_login4007",
208
+ h_error_login4008 = "h_error_login4008",
89
209
  h_error_video_send_failed = "h_error_video_send_failed",
90
210
  h_instant_start = "h_instant_start",
91
211
  h_instant_stop = "h_instant_stop",
92
212
  h_media_audio_error = "h_media_audio_error",
93
213
  h_media_audio_informuploaded = "h_media_audio_informuploaded",
214
+ h_media_audio_purchased = "h_media_audio_purchased",
94
215
  h_media_bitmap_error = "h_media_bitmap_error",
216
+ h_media_bitmap_purchased = "h_media_bitmap_purchased",
217
+ h_media_cam2cam_purchased = "h_media_cam2cam_purchased",
218
+ h_media_sold = "h_media_sold",
219
+ h_media_ticket_purchased = "h_media_ticket_purchased",
95
220
  h_media_video_error = "h_media_video_error",
96
221
  h_media_video_informuploaded = "h_media_video_informuploaded",
222
+ h_media_video_purchased = "h_media_video_purchased",
223
+ h_queryfsk_btn0 = "h_queryfsk_btn0",
224
+ h_queryfsk_btn1 = "h_queryfsk_btn1",
225
+ h_queryfsk_button_caption = "h_queryfsk_button_caption",
226
+ h_queryfsk_caption = "h_queryfsk_caption",
227
+ h_queryfsk_text = "h_queryfsk_text",
228
+ h_queryfsk_text_kick = "h_queryfsk_text_kick",
97
229
  h_session_appear_offline = "h_session_appear_offline",
98
230
  h_session_audio_device_error = "h_session_audio_device_error",
99
231
  h_session_audio_device_frozen = "h_session_audio_device_frozen",
@@ -111,26 +243,34 @@ export declare enum SystemMessageKey {
111
243
  h_session_fsk_mixed_profile = "h_session_fsk_mixed_profile",
112
244
  h_session_livepreview_off = "h_session_livepreview_off",
113
245
  h_session_livepreview_on = "h_session_livepreview_on",
246
+ h_session_logout_by_you = "h_session_logout_by_you",
247
+ h_session_media_purchased = "h_session_media_purchased",
114
248
  h_session_mixed_profile_auto_off = "h_session_mixed_profile_auto_off",
115
249
  h_session_mixed_profile_no = "h_session_mixed_profile_no",
116
250
  h_session_mixed_profile_not_available = "h_session_mixed_profile_not_available",
117
251
  h_session_mixed_profile_off = "h_session_mixed_profile_off",
118
252
  h_session_mixed_profile_on = "h_session_mixed_profile_on",
119
253
  h_session_mixed_profile_reminder = "h_session_mixed_profile_reminder",
254
+ h_session_msg_blocked = "h_session_msg_blocked",
120
255
  h_session_no_video_allowed = "h_session_no_video_allowed",
121
256
  h_session_offline = "h_session_offline",
122
257
  h_session_offline_title = "h_session_offline_title",
123
258
  h_session_old_ssw = "h_session_old_ssw",
124
259
  h_session_online = "h_session_online",
125
260
  h_session_online_today = "h_session_online_today",
261
+ h_session_partner_blocked = "h_session_partner_blocked",
126
262
  h_session_party_mode_off = "h_session_party_mode_off",
127
263
  h_session_party_mode_on = "h_session_party_mode_on",
128
264
  h_session_preview_picture_missed = "h_session_preview_picture_missed",
129
265
  h_session_preview_picture_upload = "h_session_preview_picture_upload",
130
266
  h_session_service0900state_turnoff = "h_session_service0900state_turnoff",
131
267
  h_session_service0900state_turnon = "h_session_service0900state_turnon",
268
+ h_session_stream_error = "h_session_stream_error",
269
+ h_session_stream_missed = "h_session_stream_missed",
132
270
  h_session_stream_not_found = "h_session_stream_not_found",
133
271
  h_session_stream_restart = "h_session_stream_restart",
272
+ h_session_stream_server_down = "h_session_stream_server_down",
273
+ h_session_stream_stop = "h_session_stream_stop",
134
274
  h_session_stream_wait = "h_session_stream_wait",
135
275
  h_session_toy_start = "h_session_toy_start",
136
276
  h_session_toy_stop = "h_session_toy_stop",
@@ -146,12 +286,27 @@ export declare enum SystemMessageKey {
146
286
  h_single_request_90s = "h_single_request_90s",
147
287
  h_single_started = "h_single_started",
148
288
  h_single_timeout = "h_single_timeout",
289
+ h_test_0 = "h_test_0",
290
+ h_test_100 = "h_test_100",
291
+ h_test_101 = "h_test_101",
292
+ h_test_102 = "h_test_102",
293
+ h_test_103 = "h_test_103",
294
+ h_test_104 = "h_test_104",
295
+ h_test_105 = "h_test_105",
296
+ h_test_106 = "h_test_106",
297
+ h_test_107 = "h_test_107",
298
+ h_test_109 = "h_test_109",
299
+ h_test_110 = "h_test_110",
300
+ h_test_200 = "h_test_200",
301
+ h_test_201 = "h_test_201",
302
+ h_test_202 = "h_test_202",
303
+ h_test_203 = "h_test_203",
304
+ h_test_204 = "h_test_204",
305
+ h_test_205 = "h_test_205",
306
+ h_test_206 = "h_test_206",
307
+ h_test_207 = "h_test_207",
308
+ h_test_50 = "h_test_50",
149
309
  h_video_cancel = "h_video_cancel",
150
310
  h_video_delayed = "h_video_delayed",
151
- h_video_reconnect = "h_video_reconnect",
152
- h_vcall_code = "h_vcall_code",
153
- h_session_media_purchased = "h_session_media_purchased",
154
- h_media_bitmap_purchased = "h_media_bitmap_purchased",
155
- h_media_video_purchased = "h_media_video_purchased",
156
- h_media_audio_purchased = "h_media_audio_purchased"
311
+ h_video_reconnect = "h_video_reconnect"
157
312
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cmd-control-client-lib",
3
3
  "description": "Cmd-Client-Library",
4
- "version": "3.0.32",
4
+ "version": "3.0.36",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },