cmd-control-client-lib 3.0.28 → 3.0.33

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.
@@ -32,6 +32,7 @@ export * from "./protocol/live/products-config";
32
32
  export * from "./protocol/live/streamstate";
33
33
  export * from "./protocol/live/onlinesummary";
34
34
  export * from "./protocol/live/usersettings";
35
+ export * from "./protocol/live/testchat";
35
36
  export * from "./protocol/messenger/expo";
36
37
  export * from "./protocol/messenger/signup";
37
38
  export * from "./protocol/single-c2c";
@@ -30,6 +30,7 @@ interface IUserInfo extends IKeyValue {
30
30
  canReceiveAudio?: EnumBooleanStringified;
31
31
  canSendVideo?: EnumBooleanStringified;
32
32
  canReceiveVideo?: EnumBooleanStringified;
33
+ canReceiveTicket?: EnumBooleanStringified;
33
34
  canOfferMedia?: EnumBooleanStringified;
34
35
  canPurchaseMedia?: EnumBooleanStringified;
35
36
  }
@@ -175,6 +175,15 @@ export declare type getChannelsParamsType = {
175
175
  filterProductId?: EnumProductId;
176
176
  /** filter by banned */
177
177
  filterBanned?: EnumChannelFilterValues;
178
+ /** filter has ticket */
179
+ filterTicket?: EnumChannelFilterValues;
180
+ /** media filter */
181
+ filterCanReceiveImage?: EnumChannelFilterValues;
182
+ filterCanReceiveAudio?: EnumChannelFilterValues;
183
+ filterCanReceiveVideo?: EnumChannelFilterValues;
184
+ filterCanReceiveTicket?: EnumChannelFilterValues;
185
+ /** media purchasing filter */
186
+ filterCanPurchaseMedia?: EnumChannelFilterValues;
178
187
  };
179
188
  /**
180
189
  * Query for ChannelList
@@ -117,5 +117,9 @@ export declare enum ACTION {
117
117
  CMDP_RESETPASSWORD = "CMDP_RESETPASSWORD",
118
118
  CMDP_SQUERYSTARTSINGLEC2C = "CMDP_SQUERYSTARTSINGLEC2C",
119
119
  CMDP_SOPENMEDIAOFFER = "CMDP_SOPENMEDIAOFFER",
120
- CMDP_SCLOSEMEDIAOFFER = "CMDP_SCLOSEMEDIAOFFER"
120
+ CMDP_SCLOSEMEDIAOFFER = "CMDP_SCLOSEMEDIAOFFER",
121
+ CMDP_SSTARTTESTVIDEOCHAT = "CMDP_SSTARTTESTVIDEOCHAT",
122
+ CMDP_SGETTICKETS = "CMDP_SGETTICKETS",
123
+ CMDP_SCHECKUPLOADEDMEDIA = "CMDP_SCHECKUPLOADEDMEDIA",
124
+ CMDP_SGETUPLOADEDMEDIA = "CMDP_SGETUPLOADEDMEDIA"
121
125
  }
@@ -0,0 +1,38 @@
1
+ import { ACTION, baseParamsType, ICOMMAND, IRESPONSE, RESULT, StringBasedType } from "../../cmd-protocol";
2
+ /**
3
+ * 8320 only
4
+ */
5
+ export declare class CMDP_SSTARTTESTVIDEOCHAT implements ICOMMAND {
6
+ action: ACTION;
7
+ /** login params */
8
+ params: baseParamsType & {
9
+ ualias?: string;
10
+ tlimit?: string;
11
+ lang?: string;
12
+ userKey?: string;
13
+ voyeur?: string;
14
+ fsk?: string;
15
+ canSingle?: string;
16
+ canTip?: string;
17
+ canCam2Cam?: string;
18
+ tlimitNotify?: string;
19
+ publicText?: string;
20
+ guestAvatar?: string;
21
+ modelAvatar?: string;
22
+ formatsIncluded?: string;
23
+ formatsExcluded?: string;
24
+ formatsPriority?: string;
25
+ };
26
+ }
27
+ /**
28
+ * response for CMDP_SSTARTTESTVIDEOCHAT
29
+ */
30
+ export declare class CMDP_SSTARTTESTVIDEOCHAT_RESPONSE extends CMDP_SSTARTTESTVIDEOCHAT implements IRESPONSE {
31
+ result: RESULT;
32
+ commands: ICOMMAND[];
33
+ values: {
34
+ [key: string]: StringBasedType;
35
+ clientID?: string;
36
+ server?: string;
37
+ };
38
+ }
@@ -6,7 +6,7 @@ export declare type PriceInstruction = {
6
6
  max: string;
7
7
  pick: string[];
8
8
  };
9
- export declare type DauerInstruction = {
9
+ export declare type DurationInstruction = {
10
10
  min: string;
11
11
  max: string;
12
12
  pick: string[];
@@ -14,7 +14,7 @@ export declare type DauerInstruction = {
14
14
  export declare type TicketPriceDauer = {
15
15
  price: PriceInstruction;
16
16
  /**dauer in seconds */
17
- dauer: DauerInstruction;
17
+ duration: DurationInstruction;
18
18
  };
19
19
  export declare type MediaPrices = {
20
20
  imagePrices: PriceInstruction;
@@ -1,12 +1,12 @@
1
1
  import { ACTION, baseParamsType, ICOMMAND, IKeyMaybeValue, IRESPONSE, RESULT } from "../cmd-protocol";
2
2
  import { channelIdType } from "./channel";
3
- import { 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
10
  }
11
11
  /**
12
12
  * Response command for CMDP_SOPENMEDIAOFFER.
@@ -31,3 +31,18 @@ export declare class CMDP_SCLOSEMEDIAOFFER_PRESPONSE extends CMDP_SCLOSEMEDIAOFF
31
31
  commands: ICOMMAND[];
32
32
  values: IKeyMaybeValue;
33
33
  }
34
+ /** gett all opened tickets */
35
+ export declare class CMDP_SGETTICKETS implements ICOMMAND {
36
+ action: ACTION;
37
+ /** channelId is comaseparated channelId list */
38
+ params: baseParamsType & channelIdType;
39
+ }
40
+ /**
41
+ * Response command for CMDP_SGETTICKETS.
42
+ */
43
+ export declare class CMDP_SGETTICKETS_PRESPONSE extends CMDP_SGETTICKETS implements IRESPONSE {
44
+ result: RESULT;
45
+ /** the ticketinfos per channel */
46
+ commands: CMDC_CMSG[];
47
+ values: IKeyMaybeValue;
48
+ }
@@ -55,14 +55,26 @@ export declare class CMDP_SUPLOADMEDIA_RESPONSE extends CMDP_SUPLOADMEDIA implem
55
55
  * Get the Media Cache state.
56
56
  * md5 - is filemd5
57
57
  */
58
- export declare class CMDP_SGETMEDIAINFO implements ICOMMAND {
58
+ export declare class CMDP_SCHECKUPLOADEDMEDIA implements ICOMMAND {
59
59
  action: ACTION;
60
60
  params: baseParamsType & MediaMd5;
61
61
  }
62
62
  /**
63
63
  * Media Info, if found in cache, or CHAT_NOT_FOUND, if not.
64
64
  */
65
- export declare class CMDP_SGETMEDIAINFO_RESPONSE extends CMDP_SGETMEDIAINFO {
65
+ export declare class CMDP_SCHECKUPLOADEDMEDIA_RESPONSE extends CMDP_SCHECKUPLOADEDMEDIA {
66
+ commands: ICOMMAND[];
67
+ values: MediaFile;
68
+ }
69
+ /** get list of uploaded media */
70
+ export declare class CMDP_SGETUPLOADEDMEDIA implements ICOMMAND {
71
+ action: ACTION;
72
+ params: baseParamsType & MediaMd5;
73
+ }
74
+ /**
75
+ * Media Info, if found in cache, or CHAT_NOT_FOUND, if not.
76
+ */
77
+ export declare class CMDP_SGETUPLOADEDMEDIA_RESPONSE extends CMDP_SGETUPLOADEDMEDIA {
66
78
  commands: ICOMMAND[];
67
79
  values: MediaFile;
68
80
  }
@@ -72,7 +84,7 @@ export declare class CMDP_SGETMEDIAINFO_RESPONSE extends CMDP_SGETMEDIAINFO {
72
84
  export declare class CMDP_SFORWARDMEDIA implements ICOMMAND {
73
85
  action: ACTION;
74
86
  params: baseParamsType & {
75
- md5: string;
87
+ mediaMd5: string;
76
88
  } & channelIdType & MediaOffer;
77
89
  }
78
90
  export declare class CMDP_SFORWARDMEDIA_RESPONSE extends CMDP_SFORWARDMEDIA {
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.28",
4
+ "version": "3.0.33",
5
5
  "directories": {
6
6
  "lib": "./dist"
7
7
  },