@hyext/types-ext-sdk-hy 3.17.0-beta.4 → 3.17.0-beta.5

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 (2) hide show
  1. package/index.d.ts +46 -6
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -474,7 +474,7 @@ type DestroyAdReq = {
474
474
 
475
475
  /**
476
476
  * 关闭信息
477
- * @property isEnded - 是否看完
477
+ * @property isEnded - 是否看完, 1-看完, 0-未看完
478
478
  */
479
479
  type CloseInfo = {
480
480
  isEnded: boolean;
@@ -2608,6 +2608,7 @@ type ContextInfo = {
2608
2608
  * @property liveCompany - 交友陪玩直播间, 1-为交友陪玩直播间, 0-为非交友陪玩直播间
2609
2609
  * @property liveMode - 开播模式, kGame-【PC主播端】端游直播, kEntertainment-【PC主播端】娱乐直播, kMobile-【PC主播端】手游直播, kMakeFriends-【PC主播端】交友直播, kThirdParty-【PC主播端】第三方推流, kScreenCAP-【助手APP】录屏直播, kCamera-【助手APP】摄像头直播, kVoice-【助手APP】语音直播,
2610
2610
  * @property liveSubMode - 开播子模式, process-【PC主播端】端游直播-捕捉游戏画面, desktop-【PC主播端】端游直播-全屏捕捉, area-【PC主播端】端游直播-截取屏幕, window-【PC主播端】端游直播-窗口捕捉, adr-【PC主播端】手游直播-安卓手机, ios-【PC主播端】手游直播-苹果手机, audio-【PC主播端】交友直播-语音开播, video-【PC主播端】交友直播-视频开播, multiPlayersVideo-【PC主播端】派对模式,
2611
+ * @property liveId - 直播ID
2611
2612
  */
2612
2613
  type RespLiveInfo = {
2613
2614
  gameName: string;
@@ -2623,6 +2624,7 @@ type RespLiveInfo = {
2623
2624
  liveCompany: number;
2624
2625
  liveMode: string;
2625
2626
  liveSubMode: string;
2627
+ liveId: string;
2626
2628
  };
2627
2629
 
2628
2630
  /**
@@ -4005,6 +4007,12 @@ namespace feedback {
4005
4007
  * @returns 返回结果
4006
4008
  */
4007
4009
  function openFeedbackForm(params: FeedbackParams): Promise<void>;
4010
+ /**
4011
+ * 反馈
4012
+ * @param params - 请求参数
4013
+ * @returns 返回结果
4014
+ */
4015
+ function sendFeedback(params: SendFeedbackReq): Promise<SendFeedbackRsp>;
4008
4016
  }
4009
4017
 
4010
4018
  /**
@@ -4032,6 +4040,24 @@ type FeedbackParams = {
4032
4040
  param: string;
4033
4041
  };
4034
4042
 
4043
+ /**
4044
+ * 反馈请求参数
4045
+ * @property fbType - 反馈类型
4046
+ * @property fbContent - 反馈详情
4047
+ */
4048
+ type SendFeedbackReq = {
4049
+ fbType: string;
4050
+ fbContent: string;
4051
+ };
4052
+
4053
+ /**
4054
+ * 反馈结果
4055
+ * @property feedbackId - 反馈日志id
4056
+ */
4057
+ type SendFeedbackRsp = {
4058
+ feedbackId: string;
4059
+ };
4060
+
4035
4061
  /**
4036
4062
  * 文件系统
4037
4063
  */
@@ -4579,14 +4605,14 @@ type SaveFileInfo = {
4579
4605
  * @property fileList - 要保留的资源md5列表,至少传入一个
4580
4606
  * @property [authKeys] - 需要授权的场景值
4581
4607
  * @property callback - 单个文件保存结果回调
4582
- * @property progressCallback - 单个文件保存进度回调
4608
+ * @property [progressCallback] - 单个文件保存进度回调
4583
4609
  */
4584
4610
  type SaveFilesReq = {
4585
4611
  type: string;
4586
4612
  fileList: SaveFileInfo[];
4587
4613
  authKeys?: string[];
4588
4614
  callback: SaveFileCallback;
4589
- progressCallback: SaveFileProgressCallback;
4615
+ progressCallback?: SaveFileProgressCallback;
4590
4616
  };
4591
4617
 
4592
4618
  /**
@@ -4743,11 +4769,13 @@ type AccessReq = {
4743
4769
  * 在文件结尾追加内容参数
4744
4770
  * @property filePath - 要追加内容的文件路径 (本地路径)
4745
4771
  * @property data - 要追加的文本或二进制数据
4772
+ * @property dataType - 追加数据类型, string-string, ArrayBuffer-ArrayBuffer
4746
4773
  * @property [encoding] - 指定读取文件的字符编码, base64-base64, utf8-utf8
4747
4774
  */
4748
4775
  type AppendFileReq = {
4749
4776
  filePath: string;
4750
4777
  data: string;
4778
+ dataType: string;
4751
4779
  encoding?: string;
4752
4780
  };
4753
4781
 
@@ -4874,9 +4902,11 @@ type ReadCompressedFileRsp = {
4874
4902
  /**
4875
4903
  * 读取指定压缩类型的本地文件内容参数
4876
4904
  * @property filePath - 要读取的文件的路径 (本地用户文件或代码包文件)
4905
+ * @property compressionAlgorithm - 文件压缩类型, br-brotli压缩文件
4877
4906
  */
4878
4907
  type ReadCompressedFileReq = {
4879
4908
  filePath: string;
4909
+ compressionAlgorithm: string;
4880
4910
  };
4881
4911
 
4882
4912
  /**
@@ -4998,7 +5028,7 @@ type SaveFileReq = {
4998
5028
  * @property stats - 当recursive为false时,res.stats是一个Stats对象。当recursive为true且path是一个目录的路径时,res.stats是一个Array,数组的每一项是一个对象,每个对象包含path和stats
4999
5029
  */
5000
5030
  type StatRsp = {
5001
- stats: any;
5031
+ stats: FileStats | FileStats[];
5002
5032
  };
5003
5033
 
5004
5034
  /**
@@ -5033,6 +5063,7 @@ type UnlinkReq = {
5033
5063
  * 写文件参数
5034
5064
  * @property fd - 文件描述符
5035
5065
  * @property data - 要写入的文本或二进制数据
5066
+ * @property dataType - 追加数据类型, string-string, ArrayBuffer-ArrayBuffer
5036
5067
  * @property [offset] - 在 data 是 ArrayBuffer 时要写入的 arrayBuffer 中的索引,默认0
5037
5068
  * @property [length] - 在 data 是 ArrayBuffer 时指定要写入的字节数
5038
5069
  * @property [encoding] - 指定写入文件的字符编码, base64-base64, utf8-utf8
@@ -5041,6 +5072,7 @@ type UnlinkReq = {
5041
5072
  type WriteReq = {
5042
5073
  fd: string;
5043
5074
  data: string;
5075
+ dataType: string;
5044
5076
  offset?: number;
5045
5077
  length?: number;
5046
5078
  encoding?: string;
@@ -5051,11 +5083,13 @@ type WriteReq = {
5051
5083
  * 写文件参数
5052
5084
  * @property filePath - 要写入的文件路径 (本地路径)
5053
5085
  * @property data - 要写入的文本或二进制数据
5086
+ * @property dataType - 追加数据类型, string-string, ArrayBuffer-ArrayBuffer
5054
5087
  * @property [encoding] - 指定写入文件的字符编码, base64-base64, utf8-utf8
5055
5088
  */
5056
5089
  type WriteFileReq = {
5057
5090
  filePath: string;
5058
5091
  data: string;
5092
+ dataType: string;
5059
5093
  encoding?: string;
5060
5094
  };
5061
5095
 
@@ -9602,8 +9636,11 @@ type LaunchYYBCloudGameReq = {
9602
9636
  * @property cloudGameSource - 游戏来源
9603
9637
  * @property cloudGamePackageName - 游戏包名
9604
9638
  * @property entranceId - 游戏ID
9605
- * @property needShowFloatingWindow - 是否需要显示悬浮球
9639
+ * @property needShowFloatingWindow - 是否需要显示悬浮球, 1-显示, 0-不显示
9606
9640
  * @property gameIconUrl - 游戏图标链接
9641
+ * @property [needUseCustomLoadingUI] - 是否使用自定义加载页面, 1-是, 0-否
9642
+ * @property [loadBgUrl] - 加载过程的背景url
9643
+ * @property [loadMsg] - 加载过程的文案
9607
9644
  */
9608
9645
  type StartYYBCloudGameReq = {
9609
9646
  bizIdDev: string;
@@ -9611,8 +9648,11 @@ type StartYYBCloudGameReq = {
9611
9648
  cloudGameSource: string;
9612
9649
  cloudGamePackageName: string;
9613
9650
  entranceId: string;
9614
- needShowFloatingWindow: boolean;
9651
+ needShowFloatingWindow: number;
9615
9652
  gameIconUrl: string;
9653
+ needUseCustomLoadingUI?: number;
9654
+ loadBgUrl?: string;
9655
+ loadMsg?: string;
9616
9656
  };
9617
9657
 
9618
9658
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyext/types-ext-sdk-hy",
3
- "version": "3.17.0-beta.4",
3
+ "version": "3.17.0-beta.5",
4
4
  "description": "TypeScript definitions for sdk",
5
5
  "types": "./index.d.ts",
6
6
  "main": "",