@worldcoin/minikit-js 1.9.9 → 1.9.10
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/README.md +7 -0
- package/build/{chunk-VWX7SELF.js → chunk-XFGJKKI2.js} +1431 -1157
- package/build/index.cjs +1542 -1241
- package/build/index.d.cts +489 -527
- package/build/index.d.ts +489 -527
- package/build/index.js +63 -9
- package/build/minikit-provider.cjs +1125 -858
- package/build/minikit-provider.js +1 -1
- package/index.ts +12 -3
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AppErrorCodes,
|
|
3
|
+
COMMAND_VERSIONS,
|
|
3
4
|
ChatErrorCodes,
|
|
4
5
|
ChatErrorMessage,
|
|
5
6
|
Command,
|
|
6
7
|
GetPermissionsErrorCodes,
|
|
7
8
|
GetPermissionsErrorMessage,
|
|
8
|
-
MicrophoneErrorCodes,
|
|
9
|
-
MicrophoneErrorMessage,
|
|
10
9
|
MiniAppLaunchLocation,
|
|
11
10
|
MiniKit,
|
|
12
11
|
MiniKitInstallErrorCodes,
|
|
@@ -14,7 +13,6 @@ import {
|
|
|
14
13
|
Network,
|
|
15
14
|
PaymentErrorCodes,
|
|
16
15
|
PaymentErrorMessage,
|
|
17
|
-
PaymentValidationErrors,
|
|
18
16
|
Permission,
|
|
19
17
|
RequestPermissionErrorCodes,
|
|
20
18
|
RequestPermissionErrorMessage,
|
|
@@ -33,14 +31,43 @@ import {
|
|
|
33
31
|
SignTypedDataErrorMessage,
|
|
34
32
|
TokenDecimals,
|
|
35
33
|
Tokens,
|
|
36
|
-
VerificationErrorMessage,
|
|
37
34
|
WalletAuthErrorCodes,
|
|
38
35
|
WalletAuthErrorMessage,
|
|
36
|
+
createAsyncCommands,
|
|
37
|
+
createChatAsyncCommand,
|
|
38
|
+
createChatCommand,
|
|
39
|
+
createCommands,
|
|
40
|
+
createGetPermissionsAsyncCommand,
|
|
41
|
+
createGetPermissionsCommand,
|
|
42
|
+
createPayAsyncCommand,
|
|
43
|
+
createPayCommand,
|
|
44
|
+
createRequestPermissionAsyncCommand,
|
|
45
|
+
createRequestPermissionCommand,
|
|
46
|
+
createSendHapticFeedbackAsyncCommand,
|
|
47
|
+
createSendHapticFeedbackCommand,
|
|
48
|
+
createSendTransactionAsyncCommand,
|
|
49
|
+
createSendTransactionCommand,
|
|
50
|
+
createShareAsyncCommand,
|
|
51
|
+
createShareCommand,
|
|
52
|
+
createShareContactsAsyncCommand,
|
|
53
|
+
createShareContactsCommand,
|
|
54
|
+
createSignMessageAsyncCommand,
|
|
55
|
+
createSignMessageCommand,
|
|
56
|
+
createSignTypedDataAsyncCommand,
|
|
57
|
+
createSignTypedDataCommand,
|
|
58
|
+
createVerifyAsyncCommand,
|
|
59
|
+
createVerifyCommand,
|
|
60
|
+
createWalletAuthAsyncCommand,
|
|
61
|
+
createWalletAuthCommand,
|
|
62
|
+
isCommandAvailable,
|
|
39
63
|
mapWorldAppLaunchLocation,
|
|
40
64
|
parseSiweMessage,
|
|
65
|
+
sendMiniKitEvent,
|
|
66
|
+
setCommandAvailable,
|
|
41
67
|
tokenToDecimals,
|
|
68
|
+
validateCommands,
|
|
42
69
|
verifySiweMessage
|
|
43
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-XFGJKKI2.js";
|
|
44
71
|
|
|
45
72
|
// index.ts
|
|
46
73
|
import { VerificationLevel } from "@worldcoin/idkit-core";
|
|
@@ -100,13 +127,12 @@ var getIsUserVerified = async (walletAddress, rpcUrl) => {
|
|
|
100
127
|
}
|
|
101
128
|
};
|
|
102
129
|
export {
|
|
130
|
+
COMMAND_VERSIONS,
|
|
103
131
|
ChatErrorCodes,
|
|
104
132
|
ChatErrorMessage,
|
|
105
133
|
Command,
|
|
106
134
|
GetPermissionsErrorCodes,
|
|
107
135
|
GetPermissionsErrorMessage,
|
|
108
|
-
MicrophoneErrorCodes,
|
|
109
|
-
MicrophoneErrorMessage,
|
|
110
136
|
MiniAppLaunchLocation,
|
|
111
137
|
MiniKit,
|
|
112
138
|
MiniKitInstallErrorCodes,
|
|
@@ -114,7 +140,6 @@ export {
|
|
|
114
140
|
Network,
|
|
115
141
|
PaymentErrorCodes,
|
|
116
142
|
PaymentErrorMessage,
|
|
117
|
-
PaymentValidationErrors,
|
|
118
143
|
Permission,
|
|
119
144
|
RequestPermissionErrorCodes,
|
|
120
145
|
RequestPermissionErrorMessage,
|
|
@@ -134,14 +159,43 @@ export {
|
|
|
134
159
|
TokenDecimals,
|
|
135
160
|
Tokens,
|
|
136
161
|
AppErrorCodes as VerificationErrorCodes,
|
|
137
|
-
VerificationErrorMessage,
|
|
138
162
|
VerificationLevel,
|
|
139
163
|
WalletAuthErrorCodes,
|
|
140
164
|
WalletAuthErrorMessage,
|
|
165
|
+
createAsyncCommands,
|
|
166
|
+
createChatAsyncCommand,
|
|
167
|
+
createChatCommand,
|
|
168
|
+
createCommands,
|
|
169
|
+
createGetPermissionsAsyncCommand,
|
|
170
|
+
createGetPermissionsCommand,
|
|
171
|
+
createPayAsyncCommand,
|
|
172
|
+
createPayCommand,
|
|
173
|
+
createRequestPermissionAsyncCommand,
|
|
174
|
+
createRequestPermissionCommand,
|
|
175
|
+
createSendHapticFeedbackAsyncCommand,
|
|
176
|
+
createSendHapticFeedbackCommand,
|
|
177
|
+
createSendTransactionAsyncCommand,
|
|
178
|
+
createSendTransactionCommand,
|
|
179
|
+
createShareAsyncCommand,
|
|
180
|
+
createShareCommand,
|
|
181
|
+
createShareContactsAsyncCommand,
|
|
182
|
+
createShareContactsCommand,
|
|
183
|
+
createSignMessageAsyncCommand,
|
|
184
|
+
createSignMessageCommand,
|
|
185
|
+
createSignTypedDataAsyncCommand,
|
|
186
|
+
createSignTypedDataCommand,
|
|
187
|
+
createVerifyAsyncCommand,
|
|
188
|
+
createVerifyCommand,
|
|
189
|
+
createWalletAuthAsyncCommand,
|
|
190
|
+
createWalletAuthCommand,
|
|
141
191
|
getIsUserVerified,
|
|
192
|
+
isCommandAvailable,
|
|
142
193
|
mapWorldAppLaunchLocation,
|
|
143
194
|
parseSiweMessage,
|
|
195
|
+
sendMiniKitEvent,
|
|
196
|
+
setCommandAvailable,
|
|
144
197
|
tokenToDecimals,
|
|
198
|
+
validateCommands,
|
|
145
199
|
verifyCloudProof,
|
|
146
200
|
verifySiweMessage
|
|
147
201
|
};
|