@supersdk/jssdk 1.0.0 → 3.0.5-SNAPSHOT

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.
@@ -0,0 +1,93 @@
1
+ {
2
+ "version": 1,
3
+ "codec": "b64t1",
4
+ "contractAlphabetSha256Note": "encode/decode 双向必须与本表逐字一致",
5
+ "encode": [
6
+ {
7
+ "name": "empty",
8
+ "plaintext": "",
9
+ "plaintextHex": "",
10
+ "encoded": ""
11
+ },
12
+ {
13
+ "name": "ascii-json",
14
+ "plaintext": "{\"code\":\"SUCCESS\",\"data\":{\"is_premium\":true}}",
15
+ "plaintextHex": "7b22636f6465223a2253554343455353222c2264617461223a7b2269735f7072656d69756d223a747275657d7d",
16
+ "encoded": "Pf8Ex4mMuE3Sqyb5oLbUqfuHugmjvtlSp2HS1YXGQr8Mx0MyxkuRvr8ysYyC"
17
+ },
18
+ {
19
+ "name": "chinese",
20
+ "plaintext": "{\"msg\":\"操作成功\",\"name\":\"超级应用\"}",
21
+ "plaintextHex": "7b226d7367223a22e6938de4bd9ce68890e58a9f222c226e616d65223a22e8b685e7baa7e5ba94e794a8227d",
22
+ "encoded": "Pf8zQ4QSpSdg7NJ7TsAgS85MSeOSdV8Wn0yMuE3SRd1/c9F2cxFqcck3u2L="
23
+ },
24
+ {
25
+ "name": "emoji",
26
+ "plaintext": "{\"emoji\":\"🎉🚀✨\",\"mixed\":\"中文abc🎉\"}",
27
+ "plaintextHex": "7b22656d6f6a69223a22f09f8e89f09f9a80e29ca8222c226d69786564223a22e4b8ade69687616263f09f8e89227d",
28
+ "encoded": "Pf8Mx0CF1kuRuTVGE32w2cFZNef3uSwSx0MNs0oSpSd7W6JgM3vjng+w2NR8u2L="
29
+ },
30
+ {
31
+ "name": "remainder-1byte",
32
+ "plaintext": "A",
33
+ "plaintextHex": "41",
34
+ "encoded": "oo=="
35
+ },
36
+ {
37
+ "name": "remainder-2bytes",
38
+ "plaintext": "AB",
39
+ "plaintextHex": "4142",
40
+ "encoded": "oqu="
41
+ },
42
+ {
43
+ "name": "remainder-3bytes",
44
+ "plaintext": "ABC",
45
+ "plaintextHex": "414243",
46
+ "encoded": "oq85"
47
+ },
48
+ {
49
+ "name": "json-nested-unicode",
50
+ "plaintext": "{\"a\":[\"中\",1,true,null],\"b\":{\"c\":\"🙂\"}}",
51
+ "plaintextHex": "7b2261223a5b22e4b8ad222c312c747275652c6e756c6c5d2c2262223a7b2263223a22f09f9982227d7d",
52
+ "encoded": "Pf8juEexuWkNKkuHakBLQ2bMdtcyxtBvdV8SuEe9ugaSpSdw2cgVu2yC"
53
+ }
54
+ ],
55
+ "whitespaceTolerant": [
56
+ {
57
+ "name": "newlines-and-spaces-are-stripped",
58
+ "encoded": "Pf8T\n1fuR\nvr8y\nsYL=\n",
59
+ "plaintext": "{\"ok\":true}"
60
+ }
61
+ ],
62
+ "decodeErrors": [
63
+ {
64
+ "name": "invalid-char",
65
+ "encoded": "ZZ*Z",
66
+ "error": "SUENC_DECODE_FAILED"
67
+ },
68
+ {
69
+ "name": "invalid-length",
70
+ "encoded": "ZZZZZ",
71
+ "error": "SUENC_DECODE_FAILED"
72
+ },
73
+ {
74
+ "name": "padding-in-middle",
75
+ "encoded": "ZZ=Z",
76
+ "error": "SUENC_DECODE_FAILED"
77
+ },
78
+ {
79
+ "name": "too-many-padding",
80
+ "encoded": "Z===",
81
+ "error": "SUENC_DECODE_FAILED"
82
+ },
83
+ {
84
+ "name": "invalid-utf8",
85
+ "encoded": "ii9C",
86
+ "error": "SUENC_INVALID_UTF8"
87
+ }
88
+ ],
89
+ "unknownCodec": {
90
+ "codec": "b64t9",
91
+ "error": "UNSUPPORTED_SUENC_CODEC"
92
+ }
93
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "version": 1,
3
+ "defaultCodec": "b64t1",
4
+ "header": "X-Su-Enc",
5
+ "queryParam": "suenc",
6
+ "contentType": "application/vnd.suenc",
7
+ "codecs": {
8
+ "b64t1": {
9
+ "type": "custom_base64",
10
+ "alphabet": "ZIV5l/tru86daXp+omkUqb0Yns1xQvPGDjSE7Mg23eFKHzWTwBfALy4JNcR9OChi",
11
+ "padding": "=",
12
+ "charset": "utf-8"
13
+ }
14
+ },
15
+ "rules": {
16
+ "headerValuePattern": "^[a-z0-9_-]{1,32}$",
17
+ "stripAsciiWhitespaceBeforeDecode": true,
18
+ "requireLengthMultipleOfFour": true,
19
+ "maxPaddingChars": 2,
20
+ "paddingOnlyAtEnd": true,
21
+ "requireValidUtf8": true,
22
+ "maxEncodableBodyBytes": 8388608
23
+ },
24
+ "errors": [
25
+ "UNSUPPORTED_SUENC_CODEC",
26
+ "SUENC_DECODE_FAILED",
27
+ "SUENC_INVALID_UTF8",
28
+ "SUENC_DOWNGRADE",
29
+ "SUENC_RESPONSE_TOO_LARGE",
30
+ "SUENC_PROTOCOL_ERROR"
31
+ ],
32
+ "provenance": {
33
+ "alphabetSeed": "supersdk/suenc/b64t1@2026-08-30",
34
+ "alphabetAlgorithm": "fisher-yates over standard base64 alphabet, PRNG = sha256(seed + \"#\" + counter) big-endian u32, rejection sampling",
35
+ "note": "b64t1 发布后 alphabet 永不可改;新表必须使用新的 codec key。"
36
+ }
37
+ }
@@ -0,0 +1,101 @@
1
+ {
2
+ "schema": "supersdk.jsb.idl",
3
+ "protocolVersion": { "major": 1, "minor": 0 },
4
+ "manifestSchema": "supersdk.jsb.manifest",
5
+ "limits": {
6
+ "manifestBytes": 65536,
7
+ "methods": 128,
8
+ "events": 64,
9
+ "idLength": 64,
10
+ "metadataLength": 80
11
+ },
12
+ "envelopes": {
13
+ "result": "bridge.result.v1",
14
+ "stream": "bridge.stream.v1",
15
+ "event": "bridge.event.v1",
16
+ "command": "local.dispatch.v1"
17
+ },
18
+ "nativeCodeRegistry": [
19
+ { "aliases": ["INVALID_ARGUMENT", "INVALID_PARAM", "INVALID_PARAMS", "INVALID_PATH"], "code": "INVALID_ARGUMENT", "retryable": false },
20
+ { "aliases": ["CANCELLED", "USER_CANCELLED"], "code": "CANCELLED", "retryable": false },
21
+ { "aliases": ["TIMEOUT"], "code": "TIMEOUT", "retryable": true },
22
+ { "aliases": ["UNSUPPORTED", "NOT_SUPPORTED", "NOT_IMPLEMENTED", "SDK_TOO_OLD"], "code": "UNSUPPORTED", "retryable": false },
23
+ { "aliases": ["NETWORK_ERROR"], "code": "NETWORK_ERROR", "retryable": true },
24
+ { "aliases": ["UNAVAILABLE", "NO_ACTIVITY"], "code": "UNAVAILABLE", "retryable": true },
25
+ { "aliases": ["RATE_LIMITED"], "code": "RATE_LIMITED", "retryable": true },
26
+ { "aliases": ["NOT_FOUND", "NOT_FILE", "NOT_DIRECTORY", "EXISTS_AS_FILE", "DELETE_FAILED", "MOVE_FAILED", "CREATE_FAILED", "PURCHASE_FAILED", "ERROR", "FAIL"], "code": "BRIDGE_ERROR", "retryable": false }
27
+ ],
28
+ "methods": [
29
+ { "id": "addEventCommonParam", "nativeName": "addEventCommonParam", "kind": "command", "args": [{ "name": "key", "type": "string", "required": true }, { "name": "value", "type": "string", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "addEventCommonParam" } },
30
+ { "id": "callHostMethod", "nativeName": "callHostMethod", "kind": "request", "args": [{ "name": "methodName", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "callHostMethod" } },
31
+ { "id": "cancelDownload", "nativeName": "cancelDownload", "kind": "command", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "cancelDownload" } },
32
+ { "id": "closePage", "nativeName": "closePage", "kind": "command", "args": [], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "closePage" } },
33
+ { "id": "createDir", "nativeName": "createDir", "kind": "request", "args": [{ "name": "path", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "createDir" } },
34
+ { "id": "createNativeBlock", "nativeName": "createNativeBlock", "kind": "request", "args": [{ "name": "blockId", "type": "string", "required": true }, { "name": "blockType", "type": "string", "required": true }, { "name": "configJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 3 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "createNativeBlock" } },
35
+ { "id": "deleteFile", "nativeName": "deleteFile", "kind": "request", "args": [{ "name": "path", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "deleteFile" } },
36
+ { "id": "destroyAllNativeBlocks", "nativeName": "destroyAllNativeBlocks", "kind": "command", "args": [], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "destroyAllNativeBlocks" } },
37
+ { "id": "destroyNativeBlock", "nativeName": "destroyNativeBlock", "kind": "command", "args": [{ "name": "blockId", "type": "string", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "destroyNativeBlock" } },
38
+ { "id": "downloadFile", "nativeName": "downloadFile", "kind": "stream", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "url", "type": "string", "required": true }, { "name": "headersJson", "type": "json", "required": true }, { "name": "savePath", "type": "string", "required": true }], "result": "bridge.stream.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": { "nativeName": "cancelDownload", "requestIdIndex": 0 }, "legacy": { "available": true, "nativeName": "downloadFile" } },
39
+ { "id": "downloadWithCache", "nativeName": "downloadWithCache", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "fileUrl", "type": "string", "required": true }, { "name": "fileMd5", "type": "string", "required": false }, { "name": "cacheTts", "type": "number", "required": false }, { "name": "fileCacheKey", "type": "string", "required": false }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "downloadWithCache" } },
40
+ { "id": "experimentReady", "nativeName": "experimentReady", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "experimentReady" } },
41
+ { "id": "exposeExperiment", "nativeName": "exposeExperiment", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "exposeExperiment" } },
42
+ { "id": "fileExists", "nativeName": "fileExists", "kind": "request", "args": [{ "name": "path", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "fileExists" } },
43
+ { "id": "getAllExperiments", "nativeName": "getAllExperiments", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getAllExperiments" } },
44
+ { "id": "getAppIcon", "nativeName": "getAppIconBase64Async", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getAppIconBase64Async" } },
45
+ { "id": "getAppName", "nativeName": "getAppNameAsync", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getAppNameAsync" } },
46
+ { "id": "getAttribution", "nativeName": "getAttribution", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "onlyFirst", "type": "boolean", "required": false }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getAttribution" } },
47
+ { "id": "getAuthProviders", "nativeName": "getAuthProviders", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getAuthProviders" } },
48
+ { "id": "getEnv", "nativeName": "getEnvAsync", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getEnvAsync" } },
49
+ { "id": "getExperiment", "nativeName": "getExperiment", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getExperiment" } },
50
+ { "id": "getExperimentRequestVids", "nativeName": "getExperimentRequestVids", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getExperimentRequestVids" } },
51
+ { "id": "getFileMd5", "nativeName": "getFileMd5", "kind": "request", "args": [{ "name": "path", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getFileMd5" } },
52
+ { "id": "getHostSettings", "nativeName": "getHostSettingsAsync", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getHostSettingsAsync" } },
53
+ { "id": "getHostSettingsByConfigName", "nativeName": "getHostSettingsByConfigNameAsync", "kind": "request", "args": [{ "name": "configName", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getHostSettingsByConfigNameAsync" } },
54
+ { "id": "getHostSettingsByConfigNameAndKey", "nativeName": "getHostSettingsByConfigNameAndKeyAsync", "kind": "request", "args": [{ "name": "configName", "type": "string", "required": true }, { "name": "key", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getHostSettingsByConfigNameAndKeyAsync" } },
55
+ { "id": "getHostSettingsByKey", "nativeName": "getHostSettingsByKeyAsync", "kind": "request", "args": [{ "name": "key", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getHostSettingsByKeyAsync" } },
56
+ { "id": "getPayProviders", "nativeName": "getPayProviders", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "getPayProviders" } },
57
+ { "id": "hideBannerAd", "nativeName": "hideBannerAd", "kind": "request", "args": [{ "name": "adId", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "hideBannerAd" } },
58
+ { "id": "listDir", "nativeName": "listDir", "kind": "request", "args": [{ "name": "path", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "listDir" } },
59
+ { "id": "moveFile", "nativeName": "moveFile", "kind": "request", "args": [{ "name": "srcPath", "type": "string", "required": true }, { "name": "destPath", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "moveFile" } },
60
+ { "id": "nativePay", "nativeName": "nativePay", "kind": "request", "args": [{ "name": "provider", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "nativePay" } },
61
+ { "id": "onJSBridgeReady", "nativeName": "onJSBridgeReady", "kind": "command", "args": [], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "onJSBridgeReady" } },
62
+ { "id": "openBrowser", "nativeName": "openBrowser", "kind": "command", "args": [{ "name": "url", "type": "string", "required": true }, { "name": "title", "type": "string", "required": false }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "openBrowser" } },
63
+ { "id": "openExternal", "nativeName": "openExternal", "kind": "command", "args": [{ "name": "url", "type": "string", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "openExternal" } },
64
+ { "id": "openPage", "nativeName": "openPage", "kind": "command", "args": [{ "name": "url", "type": "string", "required": true }, { "name": "configJson", "type": "json", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "openPage" } },
65
+ { "id": "openWithBrowser", "nativeName": "openWithBrowser", "kind": "command", "args": [{ "name": "url", "type": "string", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "openWithBrowser" } },
66
+ { "id": "publishToWebView", "nativeName": "publishToWebView", "kind": "command", "args": [{ "name": "target", "type": "string", "required": true }, { "name": "event", "type": "string", "required": true }, { "name": "jsonContent", "type": "json", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "publishToWebView" } },
67
+ { "id": "pushGetStatus", "nativeName": "pushGetStatus", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "pushGetStatus" } },
68
+ { "id": "pushRequestPermission", "nativeName": "pushRequestPermission", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "pushRequestPermission" } },
69
+ { "id": "pushSetTags", "nativeName": "pushSetTags", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "tagsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "pushSetTags" } },
70
+ { "id": "pushSetUserId", "nativeName": "pushSetUserId", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "userId", "type": "string", "required": false }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "pushSetUserId" } },
71
+ { "id": "querySubscriptionOffers", "nativeName": "querySubscriptionOffers", "kind": "request", "args": [{ "name": "provider", "type": "string", "required": true }, { "name": "productIdsJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "querySubscriptionOffers" } },
72
+ { "id": "readFile", "nativeName": "readFile", "kind": "request", "args": [{ "name": "path", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "readFile" } },
73
+ { "id": "reportEvent", "nativeName": "reportEvent", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "eventName", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "reportEvent" } },
74
+ { "id": "requestLogin", "nativeName": "requestLogin", "kind": "request", "args": [{ "name": "provider", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "requestLogin" } },
75
+ { "id": "requestShortUrl", "nativeName": "requestShortUrl", "kind": "request", "args": [{ "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "jsonField", "argIndex": 0, "field": "callbackId" }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "requestShortUrl" } },
76
+ { "id": "requestShortUrlWithHtml", "nativeName": "requestShortUrlWithHtml", "kind": "request", "args": [{ "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "jsonField", "argIndex": 0, "field": "callbackId" }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "requestShortUrlWithHtml" } },
77
+ { "id": "restorePurchases", "nativeName": "restorePurchases", "kind": "request", "args": [{ "name": "provider", "type": "string", "required": false }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "restorePurchases" } },
78
+ { "id": "setExperimentAttributes", "nativeName": "setExperimentAttributes", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "setExperimentAttributes" } },
79
+ { "id": "setStatusBarDarkMode", "nativeName": "setStatusBarDarkMode", "kind": "command", "args": [{ "name": "isDark", "type": "boolean", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "setStatusBarDarkMode" } },
80
+ { "id": "share", "nativeName": "share", "kind": "command", "args": [{ "name": "content", "type": "string", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "share" } },
81
+ { "id": "showBannerAd", "nativeName": "showBannerAd", "kind": "request", "args": [{ "name": "optionsJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "showBannerAd" } },
82
+ { "id": "showInterstitialAd", "nativeName": "showInterstitialAd", "kind": "request", "args": [{ "name": "optionsJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "showInterstitialAd" } },
83
+ { "id": "showKeyboard", "nativeName": "showKeyboard", "kind": "command", "args": [{ "name": "selector", "type": "string", "required": false }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "showKeyboard" } },
84
+ { "id": "showRewardAd", "nativeName": "showRewardAd", "kind": "request", "args": [{ "name": "optionsJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "showRewardAd" } },
85
+ { "id": "showRewardedInterstitialAd", "nativeName": "showRewardedInterstitialAd", "kind": "request", "args": [{ "name": "optionsJson", "type": "json", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 1 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "showRewardedInterstitialAd" } },
86
+ { "id": "showToast", "nativeName": "showToast", "kind": "command", "args": [{ "name": "message", "type": "string", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "showToast" } },
87
+ { "id": "submitFeedback", "nativeName": "submitFeedback", "kind": "request", "args": [{ "name": "callbackId", "type": "string", "required": true }, { "name": "paramsJson", "type": "json", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 0 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "submitFeedback" } },
88
+ { "id": "unzipFile", "nativeName": "unzipFile", "kind": "request", "args": [{ "name": "zipPath", "type": "string", "required": true }, { "name": "destPath", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "unzipFile" } },
89
+ { "id": "updateNativeBlockPosition", "nativeName": "updateNativeBlockPosition", "kind": "command", "args": [{ "name": "blockId", "type": "string", "required": true }, { "name": "positionJson", "type": "json", "required": true }], "result": "local.dispatch.v1", "callbackBinding": null, "cancelBinding": null, "legacy": { "available": true, "nativeName": "updateNativeBlockPosition" } },
90
+ { "id": "writeFile", "nativeName": "writeFile", "kind": "request", "args": [{ "name": "path", "type": "string", "required": true }, { "name": "content", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "writeFile" } },
91
+ { "id": "zipDir", "nativeName": "zipDir", "kind": "request", "args": [{ "name": "sourcePath", "type": "string", "required": true }, { "name": "zipPath", "type": "string", "required": true }, { "name": "callbackId", "type": "string", "required": true }], "result": "bridge.result.v1", "callbackBinding": { "type": "argument", "index": 2 }, "cancelBinding": null, "legacy": { "available": true, "nativeName": "zipDir" } }
92
+ ],
93
+ "events": [
94
+ { "id": "broadcast", "wireType": "BROADCAST", "payload": "bridge.event.v1" },
95
+ { "id": "webviewMessage", "wireType": "WEBVIEW_MESSAGE", "payload": "bridge.event.v1" },
96
+ { "id": "system.onEnterForeground", "wireType": "SYSTEM", "wireKey": "onEnterForeground", "payload": "bridge.event.v1" },
97
+ { "id": "system.onEnterBackground", "wireType": "SYSTEM", "wireKey": "onEnterBackground", "payload": "bridge.event.v1" },
98
+ { "id": "push.message", "wireType": "BROADCAST", "wireKey": "push.message", "payload": "bridge.event.v1" },
99
+ { "id": "push.opened", "wireType": "BROADCAST", "wireKey": "push.opened", "payload": "bridge.event.v1" }
100
+ ]
101
+ }