@dcloudio/uni-app-x 0.7.58 → 0.7.59
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.
- package/package.json +6 -2
- package/types/index.d.ts +1 -0
- package/types/native/CSSStyleDeclaration.d.ts +31 -6
- package/types/native/DOMRect.d.ts +60 -10
- package/types/native/IUniElement.d.ts +459 -0
- package/types/native/UniElement.d.ts +3 -2
- package/types/native/UniPage.d.ts +2 -2
- package/types/native/UniWebViewContentHeightChangeEvent.d.ts +31 -0
- package/types/native/UniWebViewElement.d.ts +3 -1
- package/types/native/global.d.ts +8 -0
- package/types/native/index.d.ts +1 -0
- package/types/uni/env/index.d.ts +5 -5
- package/types/uni/uts-plugin-api/.temp/uni-actionSheet/utssdk/interface.uts +554 -0
- package/types/uni/uts-plugin-api/.temp/uni-addPhoneContact/utssdk/interface.uts +224 -0
- package/types/uni/uts-plugin-api/.temp/uni-arrayBufferToBase64/utssdk/interface.uts +77 -0
- package/types/uni/uts-plugin-api/.temp/uni-authentication/utssdk/interface.uts +365 -0
- package/types/uni/uts-plugin-api/.temp/uni-base64ToArrayBuffer/utssdk/interface.uts +77 -0
- package/types/uni/uts-plugin-api/.temp/uni-canvas/utssdk/interface.uts +972 -0
- package/types/uni/uts-plugin-api/.temp/uni-chooseLocation/utssdk/interface.uts +410 -0
- package/types/uni/uts-plugin-api/.temp/uni-chooseMedia/utssdk/interface.uts +459 -0
- package/types/uni/uts-plugin-api/.temp/uni-clipboard/utssdk/interface.uts +203 -0
- package/types/uni/uts-plugin-api/.temp/uni-createInnerAudioContext/utssdk/interface.uts +2613 -0
- package/types/uni/uts-plugin-api/.temp/uni-createIntersectionObserver/utssdk/interface.uts +152 -0
- package/types/uni/uts-plugin-api/.temp/uni-createRequestPermissionListener/utssdk/interface.uts +61 -0
- package/types/uni/uts-plugin-api/.temp/uni-createSelectorQuery/utssdk/interface.uts +548 -0
- package/types/uni/uts-plugin-api/.temp/uni-createWebviewContext/utssdk/interface.uts +137 -0
- package/types/uni/uts-plugin-api/.temp/uni-dialogPage/utssdk/interface.uts +1380 -0
- package/types/uni/uts-plugin-api/.temp/uni-document/utssdk/interface.uts +76 -0
- package/types/uni/uts-plugin-api/.temp/uni-event/utssdk/interface.uts +338 -0
- package/types/uni/uts-plugin-api/.temp/uni-exit/utssdk/interface.uts +102 -0
- package/types/uni/uts-plugin-api/.temp/uni-file/utssdk/interface.uts +384 -0
- package/types/uni/uts-plugin-api/.temp/uni-fileSystemManager/utssdk/interface.uts +5316 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAccessibilityInfo/utssdk/interface.uts +35 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAppAuthorizeSetting/utssdk/interface.uts +616 -0
- package/types/uni/uts-plugin-api/.temp/uni-getAppBaseInfo/utssdk/interface.uts +2157 -0
- package/types/uni/uts-plugin-api/.temp/uni-getBackgroundAudioManager/utssdk/interface.uts +895 -0
- package/types/uni/uts-plugin-api/.temp/uni-getDeviceInfo/utssdk/interface.uts +1755 -0
- package/types/uni/uts-plugin-api/.temp/uni-getElementById/utssdk/interface.uts +82 -0
- package/types/uni/uts-plugin-api/.temp/uni-getEnterOptionsSync/utssdk/interface.uts +295 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLaunchOptionsSync/utssdk/interface.uts +299 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation/utssdk/interface.uts +1764 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-system/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-getLocation-tencent-uni1/utssdk/interface.uts +736 -0
- package/types/uni/uts-plugin-api/.temp/uni-getNetworkType/utssdk/interface.uts +274 -0
- package/types/uni/uts-plugin-api/.temp/uni-getPerformance/utssdk/interface.uts +198 -0
- package/types/uni/uts-plugin-api/.temp/uni-getProvider/utssdk/interface.uts +634 -0
- package/types/uni/uts-plugin-api/.temp/uni-getRecorderManager/utssdk/interface.uts +980 -0
- package/types/uni/uts-plugin-api/.temp/uni-getSystemInfo/utssdk/interface.uts +5550 -0
- package/types/uni/uts-plugin-api/.temp/uni-getSystemSetting/utssdk/interface.uts +501 -0
- package/types/uni/uts-plugin-api/.temp/uni-installApk/utssdk/interface.uts +83 -0
- package/types/uni/uts-plugin-api/.temp/uni-interceptor/utssdk/interface.uts +169 -0
- package/types/uni/uts-plugin-api/.temp/uni-keyboard/utssdk/interface.uts +102 -0
- package/types/uni/uts-plugin-api/.temp/uni-loadFontFace/utssdk/interface.uts +580 -0
- package/types/uni/uts-plugin-api/.temp/uni-makePhoneCall/utssdk/interface.uts +100 -0
- package/types/uni/uts-plugin-api/.temp/uni-media/utssdk/interface.uts +2980 -0
- package/types/uni/uts-plugin-api/.temp/uni-modal/utssdk/interface.uts +190 -0
- package/types/uni/uts-plugin-api/.temp/uni-navigationBar/utssdk/interface.uts +1002 -0
- package/types/uni/uts-plugin-api/.temp/uni-network/utssdk/interface.uts +3620 -0
- package/types/uni/uts-plugin-api/.temp/uni-oauth/utssdk/interface.uts +1592 -0
- package/types/uni/uts-plugin-api/.temp/uni-oauth-huawei/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-openAppAuthorizeSetting/utssdk/interface.uts +254 -0
- package/types/uni/uts-plugin-api/.temp/uni-openDocument/utssdk/interface.uts +112 -0
- package/types/uni/uts-plugin-api/.temp/uni-pageScrollTo/utssdk/interface.uts +153 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment/utssdk/interface.uts +833 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-alipay/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-huawei/utssdk/interface.uts +1 -0
- package/types/uni/uts-plugin-api/.temp/uni-payment-wxpay/utssdk/interface.uts +3 -0
- package/types/uni/uts-plugin-api/.temp/uni-previewImage/utssdk/interface.uts +518 -0
- package/types/uni/uts-plugin-api/.temp/uni-privacy/utssdk/interface.uts +560 -0
- package/types/uni/uts-plugin-api/.temp/uni-prompt/utssdk/interface.uts +2607 -0
- package/types/uni/uts-plugin-api/.temp/uni-pullDownRefresh/utssdk/interface.uts +189 -0
- package/types/uni/uts-plugin-api/.temp/uni-requestMerchantTransfer/utssdk/interface.uts +710 -0
- package/types/uni/uts-plugin-api/.temp/uni-route/utssdk/interface.uts +2695 -0
- package/types/uni/uts-plugin-api/.temp/uni-rpx2px/utssdk/interface.uts +80 -0
- package/types/uni/uts-plugin-api/.temp/uni-scanCode/utssdk/interface.uts +130 -0
- package/types/uni/uts-plugin-api/.temp/uni-shareWithSystem/utssdk/interface.uts +719 -0
- package/types/uni/uts-plugin-api/.temp/uni-sse/utssdk/interface.uts +277 -0
- package/types/uni/uts-plugin-api/.temp/uni-storage/utssdk/interface.uts +1020 -0
- package/types/uni/uts-plugin-api/.temp/uni-tabBar/utssdk/interface.uts +1148 -0
- package/types/uni/uts-plugin-api/.temp/uni-theme/utssdk/interface.uts +1059 -0
- package/types/uni/uts-plugin-api/.temp/uni-virtualPayment/utssdk/interface.uts +1660 -0
- package/types/uni/uts-plugin-api/.temp/uni-websocket/utssdk/interface.uts +1941 -0
- package/types/uni/uts-plugin-api/global.d.ts +3 -0
- package/types/uni/uts-plugin-api/index.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-barcode-scanning/utssdk/interface.d.ts +0 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-clipboard/utssdk/interface.d.ts +16 -6
- package/types/uni/uts-plugin-api/lib/uni-createInnerAudioContext/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/global.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/index.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-createWebviewContext/utssdk/interface.d.ts +45 -0
- package/types/uni/uts-plugin-api/lib/uni-file/utssdk/interface.d.ts +3 -0
- package/types/uni/uts-plugin-api/lib/uni-fileSystemManager/utssdk/interface.d.ts +238 -233
- package/types/uni/uts-plugin-api/lib/uni-getBackgroundAudioManager/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-getProvider/utssdk/interface.d.ts +28 -1
- package/types/uni/uts-plugin-api/lib/uni-getSystemInfo/utssdk/interface.d.ts +0 -9
- package/types/uni/uts-plugin-api/lib/uni-keyboard/utssdk/interface.d.ts +67 -239
- package/types/uni/uts-plugin-api/lib/uni-loadFontFace/utssdk/interface.d.ts +24 -4
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-makePhoneCall/utssdk/interface.d.ts +293 -179
- package/types/uni/uts-plugin-api/lib/uni-media/utssdk/interface.d.ts +118 -78
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-network/utssdk/interface.d.ts +3932 -3514
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-openDocument/utssdk/interface.d.ts +778 -290
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/global.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/index.d.ts +2 -0
- package/types/uni/uts-plugin-api/lib/uni-recorder/utssdk/interface.d.ts +2254 -1281
- package/types/uni/uts-plugin-api/lib/uni-scanCode/utssdk/interface.d.ts +1 -1
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/global.d.ts +36 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/index.d.ts +17 -0
- package/types/uni/uts-plugin-api/lib/uni-share/utssdk/interface.d.ts +180 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/global.d.ts +8 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/index.d.ts +4 -0
- package/types/uni/uts-plugin-api/lib/uni-share-weixin/utssdk/interface.d.ts +1 -0
- package/types/uni/uts-plugin-api/lib/uni-sse/utssdk/interface.d.ts +2 -2
- package/types/uni/uts-plugin-api/lib/uni-theme/utssdk/interface.d.ts +126 -67
- package/types/uni/uts-plugin-biz/.temp/uni-ad/utssdk/interface.uts +726 -0
- package/types/uni/uts-plugin-biz/.temp/uni-crash/utssdk/interface.uts +89 -0
- package/types/uni/uts-plugin-biz/.temp/uni-facialRecognitionVerify/utssdk/interface.uts +212 -0
- package/types/uni/uts-plugin-biz/.temp/uni-map-tencent/utssdk/interface.uts +2359 -0
- package/types/uni/uts-plugin-biz/.temp/uni-push/utssdk/interface.uts +960 -0
- package/types/uni/uts-plugin-biz/.temp/uni-secure-network/utssdk/interface.uts +204 -0
- package/types/uni/uts-plugin-biz/.temp/uni-verify/utssdk/interface.uts +730 -0
- package/types/uni/uts-plugin-component/.temp/uni-camera/utssdk/interface.uts +221 -0
- package/types/uni/uts-plugin-component/.temp/uni-video/utssdk/interface.uts +935 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/global.d.ts +16 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/index.d.ts +8 -0
- package/types/uni/uts-plugin-component/lib/uni-camera/utssdk/interface.d.ts +203 -1
- package/types/uni-cloud/interface.d.ts +229 -0
- package/types/vite.d.ts +269 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
export interface Uni {
|
|
2
|
+
__getSecureNetworkManager(): SecureNetworkManager;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
export interface SecureNetworkManager {
|
|
6
|
+
/**
|
|
7
|
+
* 是否有client key
|
|
8
|
+
*/
|
|
9
|
+
hasClientKey(options: HasClientKeyOptions): void;
|
|
10
|
+
/**
|
|
11
|
+
* 在setClientKey之前,使用appKey加密一些基础数据,这些数据包含js层传入和客户端信息appid、deviceid、时间戳等
|
|
12
|
+
*/
|
|
13
|
+
encryptGetClientKeyPayload(options: EncryptGetClientKeyPayloadOptions): void;
|
|
14
|
+
/**
|
|
15
|
+
* 设置client key
|
|
16
|
+
*/
|
|
17
|
+
setClientKey(options: SetClientKeyOptions): void;
|
|
18
|
+
/**
|
|
19
|
+
* 加密
|
|
20
|
+
*/
|
|
21
|
+
encrypt(options: EncryptOptions): void;
|
|
22
|
+
/**
|
|
23
|
+
* 解密
|
|
24
|
+
*/
|
|
25
|
+
decrypt(options: DecryptOptions): void;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* 错误码
|
|
30
|
+
*/
|
|
31
|
+
export type SecureNetworkErrorCode =
|
|
32
|
+
/**
|
|
33
|
+
* 小程序或者基座不支持安全网络
|
|
34
|
+
*/
|
|
35
|
+
10001 |
|
|
36
|
+
/**
|
|
37
|
+
* 参数缺失
|
|
38
|
+
*/
|
|
39
|
+
10002 |
|
|
40
|
+
/**
|
|
41
|
+
* 缺少app key
|
|
42
|
+
*/
|
|
43
|
+
10003 |
|
|
44
|
+
/**
|
|
45
|
+
* 加密client key 和 payload失败
|
|
46
|
+
*/
|
|
47
|
+
10004 |
|
|
48
|
+
/**
|
|
49
|
+
* C层json解析失败
|
|
50
|
+
*/
|
|
51
|
+
10005 |
|
|
52
|
+
/**
|
|
53
|
+
* 原生层json解析失败
|
|
54
|
+
*/
|
|
55
|
+
10006 |
|
|
56
|
+
/**
|
|
57
|
+
* client key 数据不合法
|
|
58
|
+
*/
|
|
59
|
+
10007 |
|
|
60
|
+
/**
|
|
61
|
+
* 缺少client key
|
|
62
|
+
*/
|
|
63
|
+
10008 |
|
|
64
|
+
/**
|
|
65
|
+
* 加密失败
|
|
66
|
+
*/
|
|
67
|
+
10009 |
|
|
68
|
+
/**
|
|
69
|
+
* 解密失败
|
|
70
|
+
*/
|
|
71
|
+
100010 |
|
|
72
|
+
/**
|
|
73
|
+
* 安全网络异常
|
|
74
|
+
*/
|
|
75
|
+
100011;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* SecureNetwork失败
|
|
79
|
+
*/
|
|
80
|
+
export interface SecureNetworkFail extends IUniError {
|
|
81
|
+
errCode : SecureNetworkErrorCode
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type HasClientKeyOptions = {
|
|
85
|
+
/**
|
|
86
|
+
* 云空间id
|
|
87
|
+
*/
|
|
88
|
+
spaceId: string,
|
|
89
|
+
/**
|
|
90
|
+
* 供应商
|
|
91
|
+
*/
|
|
92
|
+
provider: string,
|
|
93
|
+
/**
|
|
94
|
+
* 接口调用成功的回调函数
|
|
95
|
+
* @defaultValue null
|
|
96
|
+
*/
|
|
97
|
+
success ?: ((result : boolean) => void) | null;
|
|
98
|
+
/**
|
|
99
|
+
* 接口调用失败的回调函数
|
|
100
|
+
* @defaultValue null
|
|
101
|
+
*/
|
|
102
|
+
fail ?: ((result : SecureNetworkFail) => void) | null;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type EncryptGetClientKeyPayloadOptions = {
|
|
106
|
+
/**
|
|
107
|
+
* 需要加密的数据
|
|
108
|
+
*/
|
|
109
|
+
data: UTSJSONObject,
|
|
110
|
+
/**
|
|
111
|
+
* 接口调用成功的回调函数
|
|
112
|
+
* @defaultValue null
|
|
113
|
+
*/
|
|
114
|
+
success ?: ((result : UTSJSONObject) => void) | null;
|
|
115
|
+
/**
|
|
116
|
+
* 接口调用失败的回调函数
|
|
117
|
+
* @defaultValue null
|
|
118
|
+
*/
|
|
119
|
+
fail ?: ((result : SecureNetworkFail) => void) | null;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
export type SetClientKeyOptions = {
|
|
124
|
+
/**
|
|
125
|
+
* 云空间id
|
|
126
|
+
*/
|
|
127
|
+
spaceId: string,
|
|
128
|
+
/**
|
|
129
|
+
* 供应商
|
|
130
|
+
*/
|
|
131
|
+
provider: string,
|
|
132
|
+
/**
|
|
133
|
+
* aes加密后的clientKey
|
|
134
|
+
*/
|
|
135
|
+
clientKey: string,
|
|
136
|
+
/**
|
|
137
|
+
* appKey加密后的aesKey
|
|
138
|
+
*/
|
|
139
|
+
key: string,
|
|
140
|
+
/**
|
|
141
|
+
* 接口调用成功的回调函数
|
|
142
|
+
* @defaultValue null
|
|
143
|
+
*/
|
|
144
|
+
success ?: ((result : boolean) => void) | null;
|
|
145
|
+
/**
|
|
146
|
+
* 接口调用失败的回调函数
|
|
147
|
+
* @defaultValue null
|
|
148
|
+
*/
|
|
149
|
+
fail ?: ((result : SecureNetworkFail) => void) | null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export type EncryptOptions = {
|
|
153
|
+
/**
|
|
154
|
+
* 待加密数据
|
|
155
|
+
*/
|
|
156
|
+
data: string,
|
|
157
|
+
/**
|
|
158
|
+
* 云空间id
|
|
159
|
+
*/
|
|
160
|
+
spaceId: string,
|
|
161
|
+
/**
|
|
162
|
+
* 供应商
|
|
163
|
+
*/
|
|
164
|
+
provider: string,
|
|
165
|
+
/**
|
|
166
|
+
* 接口调用成功的回调函数
|
|
167
|
+
* @defaultValue null
|
|
168
|
+
*/
|
|
169
|
+
success ?: ((result : UTSJSONObject) => void) | null;
|
|
170
|
+
/**
|
|
171
|
+
* 接口调用失败的回调函数
|
|
172
|
+
* @defaultValue null
|
|
173
|
+
*/
|
|
174
|
+
fail ?: ((result : SecureNetworkFail) => void) | null;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type DecryptOptions = {
|
|
178
|
+
/**
|
|
179
|
+
* 待解密数据
|
|
180
|
+
*/
|
|
181
|
+
data: string,
|
|
182
|
+
/**
|
|
183
|
+
* clientKey加密的aesKey ,解密后格式为{key:string,iv:string}
|
|
184
|
+
*/
|
|
185
|
+
key: string,
|
|
186
|
+
/**
|
|
187
|
+
* 云空间id
|
|
188
|
+
*/
|
|
189
|
+
spaceId: string,
|
|
190
|
+
/**
|
|
191
|
+
* 供应商
|
|
192
|
+
*/
|
|
193
|
+
provider: string,
|
|
194
|
+
/**
|
|
195
|
+
* 接口调用成功的回调函数
|
|
196
|
+
* @defaultValue null
|
|
197
|
+
*/
|
|
198
|
+
success ?: ((result : UTSJSONObject) => void) | null;
|
|
199
|
+
/**
|
|
200
|
+
* 接口调用失败的回调函数
|
|
201
|
+
* @defaultValue null
|
|
202
|
+
*/
|
|
203
|
+
fail ?: ((result : SecureNetworkFail) => void) | null;
|
|
204
|
+
}
|