buckyos 0.7.200 → 0.7.204
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 +2 -0
- package/cli/dist/cli.mjs +42 -1
- package/cli/dist/cli.mjs.map +1 -1
- package/cli/modules/pikg.ts +7 -0
- package/cli/modules/pikg_protocol.ts +37 -0
- package/cli/version.ts +1 -1
- package/dist/{aiws_write-2f0baa6f.mjs → aiws_write-0606e098.mjs} +707 -291
- package/dist/aiws_write-0606e098.mjs.map +1 -0
- package/dist/aiws_write-7a9d71d1.js +13 -0
- package/dist/aiws_write-7a9d71d1.js.map +1 -0
- package/dist/app-frame.cjs +1 -1
- package/dist/app-frame.cjs.map +1 -1
- package/dist/app-frame.d.ts +131 -24
- package/dist/app-frame.d.ts.map +1 -1
- package/dist/app-frame.mjs +235 -70
- package/dist/app-frame.mjs.map +1 -1
- package/dist/audio.d.ts +84 -0
- package/dist/audio.d.ts.map +1 -0
- package/dist/browser.cjs +1 -1
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.ts +5 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.mjs +249 -219
- package/dist/browser.mjs.map +1 -1
- package/dist/content.cjs +1 -1
- package/dist/content.cjs.map +1 -1
- package/dist/content.mjs +357 -34
- package/dist/content.mjs.map +1 -1
- package/dist/{content_objid-0e63f1ff.js → content_objid-c69251aa.js} +2 -2
- package/dist/{content_objid-0e63f1ff.js.map → content_objid-c69251aa.js.map} +1 -1
- package/dist/{content_objid-8ebeead4.mjs → content_objid-e3fc56dd.mjs} +2 -2
- package/dist/{content_objid-8ebeead4.mjs.map → content_objid-e3fc56dd.mjs.map} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +249 -219
- package/dist/index.mjs.map +1 -1
- package/dist/msg_center_client.d.ts +37 -0
- package/dist/msg_center_client.d.ts.map +1 -1
- package/dist/node.cjs +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/node.d.ts +5 -0
- package/dist/node.d.ts.map +1 -1
- package/dist/node.mjs +246 -215
- package/dist/node.mjs.map +1 -1
- package/dist/open-app.cjs +2 -0
- package/dist/open-app.cjs.map +1 -0
- package/dist/open-app.mjs +160 -0
- package/dist/open-app.mjs.map +1 -0
- package/dist/open_app.d.ts +95 -0
- package/dist/open_app.d.ts.map +1 -0
- package/dist/provision.cjs +1 -1
- package/dist/provision.cjs.map +1 -1
- package/dist/provision.mjs +1 -3
- package/dist/provision.mjs.map +1 -1
- package/dist/provision_activate.d.ts.map +1 -1
- package/dist/runtime_env-39e4df98.mjs +44 -0
- package/dist/runtime_env-39e4df98.mjs.map +1 -0
- package/dist/runtime_env-6396e1eb.js +2 -0
- package/dist/runtime_env-6396e1eb.js.map +1 -0
- package/dist/runtime_env.d.ts +53 -0
- package/dist/runtime_env.d.ts.map +1 -0
- package/dist/sdk_core.d.ts +4 -2
- package/dist/sdk_core.d.ts.map +1 -1
- package/dist/zone_clients.d.ts +35 -0
- package/dist/zone_clients.d.ts.map +1 -0
- package/package.json +6 -1
- package/dist/aiws_write-2f0baa6f.mjs.map +0 -1
- package/dist/aiws_write-ad97b561.js +0 -13
- package/dist/aiws_write-ad97b561.js.map +0 -1
- package/dist/content_mime-dc80d960.js +0 -2
- package/dist/content_mime-dc80d960.js.map +0 -1
- package/dist/content_mime-e42d5f8d.mjs +0 -335
- package/dist/content_mime-e42d5f8d.mjs.map +0 -1
|
@@ -37,9 +37,10 @@ var __privateMethod = (obj, member, method) => {
|
|
|
37
37
|
var _listener, _listeners, _cancelled, _allowInsecure, _gzip, _headers, _method, _timeout, _url, _body, _bodyType, _creds, _preflight, _process, _retry, _signal, _throttle, _getUrlFunc, _send, send_fn, _statusCode, _statusMessage, _headers2, _body2, _request, _error, _names, _data, _dataLength, _writeData, writeData_fn, _data2, _offset, _bytesRead, _parent, _maxInflation, _incrementBytesRead, incrementBytesRead_fn, _peekBytes, peekBytes_fn, _a, _r, _s, _v, _networkV, _privateKey, _options, _type, _to, _data3, _nonce, _gasLimit, _gasPrice, _maxPriorityFeePerGas, _maxFeePerGas, _value, _chainId, _sig, _accessList, _maxFeePerBlobGas, _blobVersionedHashes, _kzg, _blobs, _auths, _blobWrapperVersion, _getSerialized, getSerialized_fn, _types, _fullTypes, _encoderCache, _getEncoder, getEncoder_fn, _offset2, _tokens, _subTokenString, subTokenString_fn, _walkAsync, walkAsync_fn, _getCoder, getCoder_fn, _errors, _events, _functions, _abiCoder, _getFunction, getFunction_fn, _getEvent, getEvent_fn, _transactions, _logs, _startBlock, _iface, _iface2, _filter, _b, _supports2544, _resolver, _fetch, fetch_fn, _getResolver, getResolver_fn, _url2, _processFunc, _name, _chainId2, _plugins, _provider, _poller, _interval, _blockNumber, _poll, poll_fn, _provider2, _poll2, _running, _tag, _lastBlock, _filter2, _hash, _provider3, _filter3, _poller2, _running2, _blockNumber2, _poll3, poll_fn2, _subs, _plugins2, _pausedState, _destroyed, _networkPromise, _anyNetwork, _performCache, _lastBlockNumber, _nextTimer, _timers, _disableCcipRead, _requestRate, _requestTimes, _options2, _getDelay, getDelay_fn, _perform, perform_fn, _call, call_fn, _checkNetwork, checkNetwork_fn, _getAccountValue, getAccountValue_fn, _getBlock, getBlock_fn, _hasSub, hasSub_fn, _getSub, getSub_fn, _throwUnsupported, throwUnsupported_fn, _provider4, _filterIdPromise, _poller3, _running3, _network, _hault, _poll4, poll_fn3, _teardown, teardown_fn, _event, _options3, _nextId, _payloads, _drainTimer, _notReady, _network2, _pendingDetectNetwork, _scheduleDrain, scheduleDrain_fn, _pollingInterval, _connect, _signingKey, _data4, _checksum, _words, _loadWords, loadWords_fn, _account, account_fn, _fromSeed, fromSeed_fn, _fromAccount, fromAccount_fn;
|
|
38
38
|
import { R as RPCError, k as kRPCClient } from "./krpc_client-673448e5.mjs";
|
|
39
39
|
import { s as DID, N as NODE_IDENTITY_SCHEMA_V2, e as isBuckyOSLocalNodeIdentityConfig, l as parseBuckyOSOwnerDocument, t as canonicalize, u as signJwtEdDSA, F as FileObject, A as ACTION_TYPE_DOWNLOAD, v as ACTION_TYPE_INSTALLED, w as ACTION_TYPE_LIKED, x as ACTION_TYPE_PURCHASED, y as ACTION_TYPE_SHARED, z as ACTION_TYPE_UNLIKED, B as ACTION_TYPE_VIEWED, C as BaseContentObject, E as CYFS_CONTENT_TYPE_NAMED_OBJECT_JSON, G as CYFS_CONTENT_TYPE_NAMED_OBJECT_JWT, H as ChunkId, I as ChunkType, J as DEFAULT_HASH_METHOD, K as DirObject, L as HashMethod, M as InclusionProof, O as KnownStandardObject, P as MSG_OBJECT_RESERVED_KEYS, Q as MSG_REACTION_KEY_MAX_BYTES, R as MSG_SESSION_ID_MAX_CHARS, S as NamedObjectBase, T as NdnError, U as OBJ_TYPE_ACTION, V as OBJ_TYPE_CHUNK_LIST, W as OBJ_TYPE_DIR, X as OBJ_TYPE_FILE, Y as OBJ_TYPE_INCLUSION_PROOF, Z as OBJ_TYPE_LIST, _ as OBJ_TYPE_MSG, $ as OBJ_TYPE_OBJMAP, a0 as OBJ_TYPE_PACK, a1 as OBJ_TYPE_PATH, a2 as OBJ_TYPE_PKG, a3 as OBJ_TYPE_RECEIPT, a4 as OBJ_TYPE_RELATION, a5 as ObjId, a6 as PathObject, a7 as RELATION_TYPE_PART_OF, a8 as RELATION_TYPE_SAME, a9 as RelationObject, aa as SimpleChunkList, ab as SimpleMapItem, ac as SimpleObjectMap, ad as actionObjectFromJson, ae as base32Decode, af as base32Encode, ag as buildNamedObjectByJson, ah as buildNamedObjectByJwt, ai as buildObjId, aj as bytesToHex$2, ak as calcPkgMetaObjId, al as canonicalizeJson, am as decodeMsgObjectJwt, an as extractObjIdByPath, ao as hexToBytes$1, ap as isCyfsNamedObjectContentType, aq as isValidMsgSessionId, ar as loadNamedObj, as as loadNamedObjAndVerify, at as loadNamedObjectFromObjStr, au as msgJwtKidDid, av as msgObjectFromJsonChecked, aw as namedObjectEncodingFromContentType, ax as normalizePackageMetaForObjId, ay as randomMsgNonce, az as receiptObjFromJson, aA as sha256Bytes, aB as sha256Utf8, aC as toCanonicalJsonString, aD as validateMsgObject, aE as varintDecode, aF as varintEncode, aG as verifyMsgObjectJwt, aH as verifyNamedObject, aI as verifyNamedObjectFromJwt, aJ as verifyNamedObjectFromStr } from "./ndn_types-0fac2499.mjs";
|
|
40
|
-
import {
|
|
40
|
+
import { sniffMagic, mediaTypeFromExtension, extensionOf, stripMediaTypeParams, heifImageSize, isoBoxes, ContentRegistryClient } from "./content.mjs";
|
|
41
41
|
import { g as getBrowserIdentityRaw, c as clearBrowserUserInfo, s as saveBrowserIdentity, a as saveBrowserUserInfo, b as getBrowserUserInfo, d as clearBrowserIdentity, h as hashPassword, e as saveLocalAccountInfo, f as cleanLocalAccountInfo } from "./account-7a7bde6f.mjs";
|
|
42
42
|
import { i as AiWorkspaceClient, A as AIWORKSPACE_SERVICE_NAME, Y as newRecordId, _ as insertRecordOp, Z as setValuesOps, $ as deleteRecordsOp, V as orderKeyBetween, g as commitOverLimit, M as AIWS_PROTOCOL_VERSION, a as AiwsFailure, h as commitWithParts } from "./aiws_bind-b851d4db.mjs";
|
|
43
|
+
import { a as getRuntimeEnvironment, g as getBuckyApi } from "./runtime_env-39e4df98.mjs";
|
|
43
44
|
import { a as objEventKey } from "./object_url-20e94b67.mjs";
|
|
44
45
|
function ensureSSOEnvironment() {
|
|
45
46
|
if (typeof window === "undefined" || typeof window.location === "undefined") {
|
|
@@ -714,11 +715,11 @@ function asRecord$4(value, what) {
|
|
|
714
715
|
return value;
|
|
715
716
|
}
|
|
716
717
|
function requiredField$1(value, field, what) {
|
|
717
|
-
const
|
|
718
|
-
if (!(field in
|
|
718
|
+
const record2 = asRecord$4(value, what);
|
|
719
|
+
if (!(field in record2)) {
|
|
719
720
|
throw new RPCError(`Expected ${field} in TaskMgr response`);
|
|
720
721
|
}
|
|
721
|
-
return
|
|
722
|
+
return record2[field];
|
|
722
723
|
}
|
|
723
724
|
function parseTaskResult(value) {
|
|
724
725
|
const task = requiredField$1(value, "task", "task result");
|
|
@@ -1127,11 +1128,11 @@ function asRecord$3(value) {
|
|
|
1127
1128
|
}
|
|
1128
1129
|
return value;
|
|
1129
1130
|
}
|
|
1130
|
-
function requiredField(
|
|
1131
|
-
if (!(field in
|
|
1131
|
+
function requiredField(record2, field) {
|
|
1132
|
+
if (!(field in record2)) {
|
|
1132
1133
|
throw new RPCError(`Expected ${field} in workflow response`);
|
|
1133
1134
|
}
|
|
1134
|
-
return
|
|
1135
|
+
return record2[field];
|
|
1135
1136
|
}
|
|
1136
1137
|
class WorkflowClient {
|
|
1137
1138
|
constructor(rpcClient) {
|
|
@@ -2194,12 +2195,12 @@ function asMessageList(value) {
|
|
|
2194
2195
|
if (!entry || typeof entry !== "object" || Array.isArray(entry)) {
|
|
2195
2196
|
throw new RPCError(`message[${idx}] is not an object`);
|
|
2196
2197
|
}
|
|
2197
|
-
const
|
|
2198
|
+
const record2 = entry;
|
|
2198
2199
|
return {
|
|
2199
|
-
index: asNumber$2(
|
|
2200
|
-
created_at: asNumber$2(
|
|
2201
|
-
payload: Array.isArray(
|
|
2202
|
-
headers:
|
|
2200
|
+
index: asNumber$2(record2.index, `message[${idx}].index`),
|
|
2201
|
+
created_at: asNumber$2(record2.created_at, `message[${idx}].created_at`),
|
|
2202
|
+
payload: Array.isArray(record2.payload) ? record2.payload : [],
|
|
2203
|
+
headers: record2.headers && typeof record2.headers === "object" && !Array.isArray(record2.headers) ? record2.headers : {}
|
|
2203
2204
|
};
|
|
2204
2205
|
});
|
|
2205
2206
|
}
|
|
@@ -2231,12 +2232,12 @@ class MsgQueueClient {
|
|
|
2231
2232
|
if (!result || typeof result !== "object") {
|
|
2232
2233
|
throw new RPCError("invalid get_queue_stats response");
|
|
2233
2234
|
}
|
|
2234
|
-
const
|
|
2235
|
+
const record2 = result;
|
|
2235
2236
|
return {
|
|
2236
|
-
message_count: asNumber$2(
|
|
2237
|
-
first_index: asNumber$2(
|
|
2238
|
-
last_index: asNumber$2(
|
|
2239
|
-
size_bytes: asNumber$2(
|
|
2237
|
+
message_count: asNumber$2(record2.message_count, "message_count"),
|
|
2238
|
+
first_index: asNumber$2(record2.first_index, "first_index"),
|
|
2239
|
+
last_index: asNumber$2(record2.last_index, "last_index"),
|
|
2240
|
+
size_bytes: asNumber$2(record2.size_bytes, "size_bytes")
|
|
2240
2241
|
};
|
|
2241
2242
|
}
|
|
2242
2243
|
async updateQueueConfig(queueUrn, config) {
|
|
@@ -2344,6 +2345,8 @@ const NOTIFY_TEXT_CONTROL_ID = "text";
|
|
|
2344
2345
|
const NOTIFY_ACTION_ANSWER = "answer";
|
|
2345
2346
|
const NOTIFY_ACTION_DISMISS = "dismiss";
|
|
2346
2347
|
const NOTIFY_LINK_PATH = "/messagehub";
|
|
2348
|
+
const NOTIFY_ERR_NOT_DECLARED = "NOTIFY_NOT_DECLARED";
|
|
2349
|
+
const NOTIFY_ERR_DISABLED = "NOTIFY_DISABLED";
|
|
2347
2350
|
function isNotifyClosed(status) {
|
|
2348
2351
|
return status !== "open" && status !== "read";
|
|
2349
2352
|
}
|
|
@@ -2441,26 +2444,26 @@ class MsgCenterClient {
|
|
|
2441
2444
|
}
|
|
2442
2445
|
async listBoxByTime(req) {
|
|
2443
2446
|
const result = await this.call("msg.list_box_by_time", compact$1({ ...req }));
|
|
2444
|
-
const
|
|
2447
|
+
const page2 = asRecord$2(result, "MailboxRecordPage");
|
|
2445
2448
|
return {
|
|
2446
|
-
...
|
|
2447
|
-
items: Array.isArray(
|
|
2449
|
+
...page2,
|
|
2450
|
+
items: Array.isArray(page2.items) ? page2.items : []
|
|
2448
2451
|
};
|
|
2449
2452
|
}
|
|
2450
2453
|
async listSessions(req) {
|
|
2451
2454
|
const result = await this.call("msg.list_sessions", compact$1({ ...req }));
|
|
2452
|
-
const
|
|
2455
|
+
const page2 = asRecord$2(result, "SessionSummaryPage");
|
|
2453
2456
|
return {
|
|
2454
|
-
...
|
|
2455
|
-
items: Array.isArray(
|
|
2457
|
+
...page2,
|
|
2458
|
+
items: Array.isArray(page2.items) ? page2.items : []
|
|
2456
2459
|
};
|
|
2457
2460
|
}
|
|
2458
2461
|
async listSession(req) {
|
|
2459
2462
|
const result = await this.call("msg.list_session", compact$1({ ...req }));
|
|
2460
|
-
const
|
|
2463
|
+
const page2 = asRecord$2(result, "SessionMessagePage");
|
|
2461
2464
|
return {
|
|
2462
|
-
...
|
|
2463
|
-
items: Array.isArray(
|
|
2465
|
+
...page2,
|
|
2466
|
+
items: Array.isArray(page2.items) ? page2.items : []
|
|
2464
2467
|
};
|
|
2465
2468
|
}
|
|
2466
2469
|
async updateRecordState(recordId, newState) {
|
|
@@ -2654,13 +2657,13 @@ class MsgCenterClient {
|
|
|
2654
2657
|
subscribers,
|
|
2655
2658
|
contact_mgr_owner: contactMgrOwner
|
|
2656
2659
|
}));
|
|
2657
|
-
const
|
|
2658
|
-
if (typeof
|
|
2660
|
+
const record2 = asRecord$2(result, "SetGroupSubscribersResult");
|
|
2661
|
+
if (typeof record2.group_id !== "string" || typeof record2.subscriber_count !== "number") {
|
|
2659
2662
|
throw new RPCError("Invalid SetGroupSubscribersResult");
|
|
2660
2663
|
}
|
|
2661
2664
|
return {
|
|
2662
|
-
group_id:
|
|
2663
|
-
subscriber_count:
|
|
2665
|
+
group_id: record2.group_id,
|
|
2666
|
+
subscriber_count: record2.subscriber_count
|
|
2664
2667
|
};
|
|
2665
2668
|
}
|
|
2666
2669
|
/** Find people and groups for raw input: name, DID, BNS name or group invite link. */
|
|
@@ -2742,6 +2745,30 @@ class MsgCenterClient {
|
|
|
2742
2745
|
items: asArrayOf(result.items, "Vec<NotifyView>").map(asNotifyView)
|
|
2743
2746
|
};
|
|
2744
2747
|
}
|
|
2748
|
+
/** Counts for badges, for the caller. */
|
|
2749
|
+
async notifySummary() {
|
|
2750
|
+
const result = asRecord$2(await this.call("notify.summary", {}), "NotifySummary");
|
|
2751
|
+
const notify = asRecord$2(result.notify, "NotifySummary.notify");
|
|
2752
|
+
const messages = asRecord$2(result.messages, "NotifySummary.messages");
|
|
2753
|
+
const count = (value) => {
|
|
2754
|
+
if (typeof value !== "number" || !Number.isFinite(value) || value < 0) {
|
|
2755
|
+
throw new RPCError("Invalid NotifySummary");
|
|
2756
|
+
}
|
|
2757
|
+
return value;
|
|
2758
|
+
};
|
|
2759
|
+
return {
|
|
2760
|
+
notify: { open: count(notify.open), todo: count(notify.todo), agent: count(notify.agent), app: count(notify.app) },
|
|
2761
|
+
messages: { unread: count(messages.unread) }
|
|
2762
|
+
};
|
|
2763
|
+
}
|
|
2764
|
+
/** The Apps that may notify the caller or did, with the caller's switches. */
|
|
2765
|
+
async notifyListApps() {
|
|
2766
|
+
const result = asRecord$2(await this.call("notify.list_apps", {}), "NotifyListAppsResult");
|
|
2767
|
+
return asArrayOf(result.apps, "Vec<NotifyApp>");
|
|
2768
|
+
}
|
|
2769
|
+
async notifySetApp(appInstanceId, enabled) {
|
|
2770
|
+
return asRecord$2(await this.call("notify.set_app", { app_instance_id: appInstanceId, enabled }), "NotifyApp");
|
|
2771
|
+
}
|
|
2745
2772
|
/** Mark a `notice` read; `onBehalf` names who acknowledges for the user. */
|
|
2746
2773
|
async notifyAck(notifyId, onBehalf) {
|
|
2747
2774
|
return asNotifyView(await this.call("notify.ack", compact$1({ notify_id: notifyId, on_behalf: onBehalf })));
|
|
@@ -3029,11 +3056,11 @@ class RepoClient {
|
|
|
3029
3056
|
);
|
|
3030
3057
|
const arr = asArray$1(result, "Vec<RepoProof>");
|
|
3031
3058
|
return arr.map((entry, idx) => {
|
|
3032
|
-
const
|
|
3033
|
-
if (
|
|
3034
|
-
throw new RPCError(`RepoProof[${idx}] has unknown kind: ${String(
|
|
3059
|
+
const record2 = asRecord$1(entry, `RepoProof[${idx}]`);
|
|
3060
|
+
if (record2.kind !== "Action" && record2.kind !== "Collection") {
|
|
3061
|
+
throw new RPCError(`RepoProof[${idx}] has unknown kind: ${String(record2.kind)}`);
|
|
3035
3062
|
}
|
|
3036
|
-
return
|
|
3063
|
+
return record2;
|
|
3037
3064
|
});
|
|
3038
3065
|
}
|
|
3039
3066
|
async resolve(contentName) {
|
|
@@ -3050,46 +3077,46 @@ class RepoClient {
|
|
|
3050
3077
|
);
|
|
3051
3078
|
const arr = asArray$1(result, "Vec<RepoRecord>");
|
|
3052
3079
|
return arr.map((entry, idx) => {
|
|
3053
|
-
const
|
|
3080
|
+
const record2 = asRecord$1(entry, `RepoRecord[${idx}]`);
|
|
3054
3081
|
return {
|
|
3055
|
-
content_id: asString$1(
|
|
3056
|
-
content_name: typeof
|
|
3057
|
-
status: asString$1(
|
|
3058
|
-
origin: asString$1(
|
|
3059
|
-
meta:
|
|
3060
|
-
owner_did: typeof
|
|
3061
|
-
author: typeof
|
|
3062
|
-
access_policy: asString$1(
|
|
3063
|
-
price: typeof
|
|
3064
|
-
content_size: typeof
|
|
3065
|
-
collected_at: typeof
|
|
3066
|
-
pinned_at: typeof
|
|
3067
|
-
updated_at: typeof
|
|
3082
|
+
content_id: asString$1(record2.content_id, `RepoRecord[${idx}].content_id`),
|
|
3083
|
+
content_name: typeof record2.content_name === "string" ? record2.content_name : void 0,
|
|
3084
|
+
status: asString$1(record2.status, `RepoRecord[${idx}].status`),
|
|
3085
|
+
origin: asString$1(record2.origin, `RepoRecord[${idx}].origin`),
|
|
3086
|
+
meta: record2.meta,
|
|
3087
|
+
owner_did: typeof record2.owner_did === "string" ? record2.owner_did : void 0,
|
|
3088
|
+
author: typeof record2.author === "string" ? record2.author : void 0,
|
|
3089
|
+
access_policy: asString$1(record2.access_policy, `RepoRecord[${idx}].access_policy`),
|
|
3090
|
+
price: typeof record2.price === "string" ? record2.price : void 0,
|
|
3091
|
+
content_size: typeof record2.content_size === "number" ? record2.content_size : void 0,
|
|
3092
|
+
collected_at: typeof record2.collected_at === "number" ? record2.collected_at : void 0,
|
|
3093
|
+
pinned_at: typeof record2.pinned_at === "number" ? record2.pinned_at : void 0,
|
|
3094
|
+
updated_at: typeof record2.updated_at === "number" ? record2.updated_at : void 0
|
|
3068
3095
|
};
|
|
3069
3096
|
});
|
|
3070
3097
|
}
|
|
3071
3098
|
async stat() {
|
|
3072
3099
|
const result = await this.rpcClient.call("stat", {});
|
|
3073
|
-
const
|
|
3100
|
+
const record2 = asRecord$1(result, "RepoStat");
|
|
3074
3101
|
return {
|
|
3075
|
-
total_objects: asNumber$1(
|
|
3076
|
-
collected_objects: asNumber$1(
|
|
3077
|
-
pinned_objects: asNumber$1(
|
|
3078
|
-
local_objects: asNumber$1(
|
|
3079
|
-
remote_objects: asNumber$1(
|
|
3080
|
-
total_content_bytes: asNumber$1(
|
|
3081
|
-
total_proofs: asNumber$1(
|
|
3102
|
+
total_objects: asNumber$1(record2.total_objects, "RepoStat.total_objects"),
|
|
3103
|
+
collected_objects: asNumber$1(record2.collected_objects, "RepoStat.collected_objects"),
|
|
3104
|
+
pinned_objects: asNumber$1(record2.pinned_objects, "RepoStat.pinned_objects"),
|
|
3105
|
+
local_objects: asNumber$1(record2.local_objects, "RepoStat.local_objects"),
|
|
3106
|
+
remote_objects: asNumber$1(record2.remote_objects, "RepoStat.remote_objects"),
|
|
3107
|
+
total_content_bytes: asNumber$1(record2.total_content_bytes, "RepoStat.total_content_bytes"),
|
|
3108
|
+
total_proofs: asNumber$1(record2.total_proofs, "RepoStat.total_proofs")
|
|
3082
3109
|
};
|
|
3083
3110
|
}
|
|
3084
3111
|
async serve(contentId, requestContext) {
|
|
3085
3112
|
const result = await this.rpcClient.call("serve", { content_id: contentId, request_context: requestContext });
|
|
3086
|
-
const
|
|
3113
|
+
const record2 = asRecord$1(result, "RepoServeResult");
|
|
3087
3114
|
return {
|
|
3088
|
-
status: asString$1(
|
|
3089
|
-
content_ref:
|
|
3090
|
-
download_proof:
|
|
3091
|
-
reject_code: typeof
|
|
3092
|
-
reject_reason: typeof
|
|
3115
|
+
status: asString$1(record2.status, "RepoServeResult.status"),
|
|
3116
|
+
content_ref: record2.content_ref && typeof record2.content_ref === "object" ? record2.content_ref : void 0,
|
|
3117
|
+
download_proof: record2.download_proof && typeof record2.download_proof === "object" ? record2.download_proof : void 0,
|
|
3118
|
+
reject_code: typeof record2.reject_code === "string" ? record2.reject_code : void 0,
|
|
3119
|
+
reject_reason: typeof record2.reject_reason === "string" ? record2.reject_reason : void 0
|
|
3093
3120
|
};
|
|
3094
3121
|
}
|
|
3095
3122
|
async announce(contentId) {
|
|
@@ -5778,7 +5805,8 @@ function createSDKModule(target) {
|
|
|
5778
5805
|
kRPCClient,
|
|
5779
5806
|
AuthClient,
|
|
5780
5807
|
...api,
|
|
5781
|
-
hashPassword
|
|
5808
|
+
hashPassword,
|
|
5809
|
+
getRuntimeEnvironment
|
|
5782
5810
|
}
|
|
5783
5811
|
};
|
|
5784
5812
|
}
|
|
@@ -6396,9 +6424,9 @@ class BnsClient {
|
|
|
6396
6424
|
async *iterNamesByAddress(address, pageSize = 100) {
|
|
6397
6425
|
let cursor = null;
|
|
6398
6426
|
do {
|
|
6399
|
-
const
|
|
6400
|
-
yield*
|
|
6401
|
-
cursor =
|
|
6427
|
+
const page2 = await this.queryNamesByAddress(address, cursor, pageSize);
|
|
6428
|
+
yield* page2.names;
|
|
6429
|
+
cursor = page2.next_cursor;
|
|
6402
6430
|
} while (cursor !== null);
|
|
6403
6431
|
}
|
|
6404
6432
|
// Execution state of a submitted TX. `not_found` only means the upstream
|
|
@@ -26371,11 +26399,11 @@ function decodeUtf8$1(bytes2) {
|
|
|
26371
26399
|
return value;
|
|
26372
26400
|
}
|
|
26373
26401
|
}
|
|
26374
|
-
function validateDnsTxtRecord(
|
|
26375
|
-
if (!
|
|
26402
|
+
function validateDnsTxtRecord(record2, path) {
|
|
26403
|
+
if (!record2 || typeof record2 !== "object" || Array.isArray(record2)) {
|
|
26376
26404
|
throw new BnsEvmTxError("INVALID_DOCUMENT", `${path} must be an object`);
|
|
26377
26405
|
}
|
|
26378
|
-
const source =
|
|
26406
|
+
const source = record2;
|
|
26379
26407
|
if (!Number.isInteger(source.ttl) || source.ttl < 0 || source.ttl > MAX_U32) {
|
|
26380
26408
|
throw new BnsEvmTxError("INVALID_DOCUMENT", `${path}.ttl must be a u32`);
|
|
26381
26409
|
}
|
|
@@ -26481,7 +26509,7 @@ class BnsEvmTxBuilder {
|
|
|
26481
26509
|
if (!Array.isArray(parsed)) {
|
|
26482
26510
|
throw new BnsEvmTxError("INVALID_DOCUMENT", "current dns_txt document must be an array");
|
|
26483
26511
|
}
|
|
26484
|
-
records = parsed.map((
|
|
26512
|
+
records = parsed.map((record2, index) => validateDnsTxtRecord(record2, `dns_txt[${index}]`));
|
|
26485
26513
|
}
|
|
26486
26514
|
switch (request.mode) {
|
|
26487
26515
|
case "add": {
|
|
@@ -26492,7 +26520,7 @@ class BnsEvmTxBuilder {
|
|
|
26492
26520
|
ttl: request.ttl ?? BNS_DNS_TXT_DEFAULT_TTL,
|
|
26493
26521
|
value: request.value
|
|
26494
26522
|
}, "dns_txt");
|
|
26495
|
-
if (!records.some((
|
|
26523
|
+
if (!records.some((record2) => record2.value === next.value)) {
|
|
26496
26524
|
records.push(next);
|
|
26497
26525
|
}
|
|
26498
26526
|
break;
|
|
@@ -26501,15 +26529,15 @@ class BnsEvmTxBuilder {
|
|
|
26501
26529
|
if (!request.value) {
|
|
26502
26530
|
throw new BnsEvmTxError("INVALID_OPERATION", "publish_dns_txt mode=remove requires value");
|
|
26503
26531
|
}
|
|
26504
|
-
records = records.filter((
|
|
26532
|
+
records = records.filter((record2) => record2.value !== request.value);
|
|
26505
26533
|
break;
|
|
26506
26534
|
case "replace":
|
|
26507
26535
|
if (!request.records) {
|
|
26508
26536
|
throw new BnsEvmTxError("INVALID_OPERATION", "publish_dns_txt mode=replace requires records");
|
|
26509
26537
|
}
|
|
26510
|
-
records = request.records.map((
|
|
26511
|
-
ttl:
|
|
26512
|
-
value:
|
|
26538
|
+
records = request.records.map((record2, index) => validateDnsTxtRecord({
|
|
26539
|
+
ttl: record2.ttl ?? BNS_DNS_TXT_DEFAULT_TTL,
|
|
26540
|
+
value: record2.value
|
|
26513
26541
|
}, `dns_txt[${index}]`));
|
|
26514
26542
|
break;
|
|
26515
26543
|
default:
|
|
@@ -27605,12 +27633,12 @@ function sanitizeInitialDocuments(docs) {
|
|
|
27605
27633
|
out.boot = docs.boot;
|
|
27606
27634
|
}
|
|
27607
27635
|
if (docs.dns_txt !== void 0) {
|
|
27608
|
-
out.dns_txt = docs.dns_txt.map((
|
|
27636
|
+
out.dns_txt = docs.dns_txt.map((record2) => ({ ttl: record2.ttl, value: record2.value }));
|
|
27609
27637
|
}
|
|
27610
27638
|
return out;
|
|
27611
27639
|
}
|
|
27612
|
-
function sanitizeDnsTxtRecord(
|
|
27613
|
-
return
|
|
27640
|
+
function sanitizeDnsTxtRecord(record2) {
|
|
27641
|
+
return record2.ttl !== void 0 ? { ttl: record2.ttl, value: record2.value } : { value: record2.value };
|
|
27614
27642
|
}
|
|
27615
27643
|
function dnsRecordParams(req) {
|
|
27616
27644
|
const params = {
|
|
@@ -31039,6 +31067,379 @@ const ndm_proxy = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
|
|
|
31039
31067
|
unpin,
|
|
31040
31068
|
unpinOwner
|
|
31041
31069
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
31070
|
+
function audioCapabilities() {
|
|
31071
|
+
const { container, capabilities } = getRuntimeEnvironment();
|
|
31072
|
+
return {
|
|
31073
|
+
background: container !== "browser" && capabilities.includes("audio.background") ? "native" : capabilities.includes("media.session") ? "media-session" : "none",
|
|
31074
|
+
record: !capabilities.includes("audio.record") ? "none" : container === "browser" ? "browser" : "native"
|
|
31075
|
+
};
|
|
31076
|
+
}
|
|
31077
|
+
const ERROR_CODES = ["unsupported", "denied", "busy", "not_found", "invalid_state", "failed"];
|
|
31078
|
+
class AudioError extends Error {
|
|
31079
|
+
constructor(code, message) {
|
|
31080
|
+
super(message ?? `Audio: ${code}`);
|
|
31081
|
+
this.code = code;
|
|
31082
|
+
this.name = "AudioError";
|
|
31083
|
+
}
|
|
31084
|
+
}
|
|
31085
|
+
async function callNative(api, name, payload) {
|
|
31086
|
+
try {
|
|
31087
|
+
return await api.call(name, payload);
|
|
31088
|
+
} catch (error) {
|
|
31089
|
+
const code = error == null ? void 0 : error.code;
|
|
31090
|
+
throw new AudioError(typeof code === "string" && ERROR_CODES.includes(code) ? code : "failed", error instanceof Error ? error.message : void 0);
|
|
31091
|
+
}
|
|
31092
|
+
}
|
|
31093
|
+
const COMMANDS = { play: "play", pause: "pause", stop: "stop", next: "nexttrack", previous: "previoustrack" };
|
|
31094
|
+
const nativeTarget = (api) => ({
|
|
31095
|
+
acquire: async (state) => {
|
|
31096
|
+
await callNative(api, "audio.background.acquire", state);
|
|
31097
|
+
},
|
|
31098
|
+
update: async (state) => {
|
|
31099
|
+
await callNative(api, "audio.background.update", state);
|
|
31100
|
+
},
|
|
31101
|
+
release: async () => {
|
|
31102
|
+
await callNative(api, "audio.background.release", {});
|
|
31103
|
+
},
|
|
31104
|
+
listen: (emit2) => api.on("audio.background.command", (payload) => {
|
|
31105
|
+
const command = payload == null ? void 0 : payload.command;
|
|
31106
|
+
if (typeof command === "string" && command in COMMANDS)
|
|
31107
|
+
emit2(command);
|
|
31108
|
+
})
|
|
31109
|
+
});
|
|
31110
|
+
function mediaSessionTarget(session) {
|
|
31111
|
+
const show = async (state) => {
|
|
31112
|
+
if (typeof MediaMetadata !== "undefined") {
|
|
31113
|
+
session.metadata = new MediaMetadata({ title: state.title, artist: state.artist ?? "", artwork: state.artwork ? [{ src: state.artwork }] : [] });
|
|
31114
|
+
}
|
|
31115
|
+
session.playbackState = state.playing ? "playing" : "paused";
|
|
31116
|
+
};
|
|
31117
|
+
const handle = (action, handler) => {
|
|
31118
|
+
try {
|
|
31119
|
+
session.setActionHandler(action, handler);
|
|
31120
|
+
} catch {
|
|
31121
|
+
}
|
|
31122
|
+
};
|
|
31123
|
+
const commands = Object.entries(COMMANDS);
|
|
31124
|
+
return {
|
|
31125
|
+
acquire: show,
|
|
31126
|
+
update: show,
|
|
31127
|
+
release: async () => {
|
|
31128
|
+
session.metadata = null;
|
|
31129
|
+
session.playbackState = "none";
|
|
31130
|
+
},
|
|
31131
|
+
listen: (emit2) => {
|
|
31132
|
+
commands.forEach(([command, action]) => handle(action, () => emit2(command)));
|
|
31133
|
+
return () => commands.forEach(([, action]) => handle(action, null));
|
|
31134
|
+
}
|
|
31135
|
+
};
|
|
31136
|
+
}
|
|
31137
|
+
const noTarget = { acquire: async () => {
|
|
31138
|
+
}, update: async () => {
|
|
31139
|
+
}, release: async () => {
|
|
31140
|
+
}, listen: () => () => {
|
|
31141
|
+
} };
|
|
31142
|
+
let holder;
|
|
31143
|
+
let queue = Promise.resolve();
|
|
31144
|
+
const inOrder = (run) => {
|
|
31145
|
+
const next = queue.then(run);
|
|
31146
|
+
queue = next.catch(() => {
|
|
31147
|
+
});
|
|
31148
|
+
return next;
|
|
31149
|
+
};
|
|
31150
|
+
class BackgroundAudio {
|
|
31151
|
+
constructor(target, state) {
|
|
31152
|
+
this.target = target;
|
|
31153
|
+
this.state = state;
|
|
31154
|
+
this.handlers = /* @__PURE__ */ new Set();
|
|
31155
|
+
}
|
|
31156
|
+
/** Another handle took over: this one no longer has any effect. */
|
|
31157
|
+
detach() {
|
|
31158
|
+
var _a2;
|
|
31159
|
+
(_a2 = this.unlisten) == null ? void 0 : _a2.call(this);
|
|
31160
|
+
this.unlisten = void 0;
|
|
31161
|
+
this.handlers.clear();
|
|
31162
|
+
}
|
|
31163
|
+
update(patch) {
|
|
31164
|
+
this.state = readState({ ...this.state, ...patch });
|
|
31165
|
+
return inOrder(async () => {
|
|
31166
|
+
if (holder === this)
|
|
31167
|
+
await this.target.update(this.state);
|
|
31168
|
+
});
|
|
31169
|
+
}
|
|
31170
|
+
release() {
|
|
31171
|
+
return inOrder(async () => {
|
|
31172
|
+
if (holder !== this)
|
|
31173
|
+
return;
|
|
31174
|
+
holder = void 0;
|
|
31175
|
+
this.detach();
|
|
31176
|
+
await this.target.release();
|
|
31177
|
+
});
|
|
31178
|
+
}
|
|
31179
|
+
onCommand(handler) {
|
|
31180
|
+
if (holder !== this)
|
|
31181
|
+
return () => {
|
|
31182
|
+
};
|
|
31183
|
+
this.handlers.add(handler);
|
|
31184
|
+
this.unlisten ?? (this.unlisten = this.target.listen((command) => this.handlers.forEach((h) => h(command))));
|
|
31185
|
+
return () => {
|
|
31186
|
+
var _a2;
|
|
31187
|
+
this.handlers.delete(handler);
|
|
31188
|
+
if (!this.handlers.size) {
|
|
31189
|
+
(_a2 = this.unlisten) == null ? void 0 : _a2.call(this);
|
|
31190
|
+
this.unlisten = void 0;
|
|
31191
|
+
}
|
|
31192
|
+
};
|
|
31193
|
+
}
|
|
31194
|
+
}
|
|
31195
|
+
function readState(info) {
|
|
31196
|
+
const state = { title: info.title, playing: info.playing !== false };
|
|
31197
|
+
if (info.artist)
|
|
31198
|
+
state.artist = info.artist;
|
|
31199
|
+
if (info.artwork) {
|
|
31200
|
+
try {
|
|
31201
|
+
state.artwork = new URL(info.artwork, window.location.href).href;
|
|
31202
|
+
} catch {
|
|
31203
|
+
}
|
|
31204
|
+
}
|
|
31205
|
+
return state;
|
|
31206
|
+
}
|
|
31207
|
+
function acquireBackgroundAudio(info) {
|
|
31208
|
+
const { background } = audioCapabilities();
|
|
31209
|
+
const target = background === "native" ? nativeTarget(getBuckyApi()) : background === "media-session" ? mediaSessionTarget(navigator.mediaSession) : noTarget;
|
|
31210
|
+
const state = readState(info);
|
|
31211
|
+
return inOrder(async () => {
|
|
31212
|
+
await target.acquire(state);
|
|
31213
|
+
holder == null ? void 0 : holder.detach();
|
|
31214
|
+
holder = new BackgroundAudio(target, state);
|
|
31215
|
+
return holder;
|
|
31216
|
+
});
|
|
31217
|
+
}
|
|
31218
|
+
const isCount = (value) => typeof value === "number" && Number.isFinite(value) && value >= 0;
|
|
31219
|
+
const record = (value) => value && typeof value === "object" ? value : {};
|
|
31220
|
+
function readRecording(value) {
|
|
31221
|
+
const v = record(value);
|
|
31222
|
+
if (typeof v.id !== "string" || !v.id || typeof v.mime !== "string" || !isCount(v.size) || !isCount(v.createdAt))
|
|
31223
|
+
throw new AudioError("failed", "Invalid recording");
|
|
31224
|
+
return { id: v.id, mime: v.mime, size: v.size, createdAt: v.createdAt, ...typeof v.title === "string" ? { title: v.title } : {}, ...isCount(v.durationMs) ? { durationMs: v.durationMs } : {} };
|
|
31225
|
+
}
|
|
31226
|
+
function readStatus(value) {
|
|
31227
|
+
const v = record(value);
|
|
31228
|
+
if (v.state !== "idle" && v.state !== "recording" && v.state !== "paused" && v.state !== "interrupted")
|
|
31229
|
+
throw new AudioError("failed", "Invalid recording status");
|
|
31230
|
+
return {
|
|
31231
|
+
state: v.state,
|
|
31232
|
+
elapsedMs: isCount(v.elapsedMs) ? v.elapsedMs : 0,
|
|
31233
|
+
...typeof v.id === "string" ? { id: v.id } : {},
|
|
31234
|
+
...isCount(v.startedAt) ? { startedAt: v.startedAt } : {},
|
|
31235
|
+
...typeof v.error === "string" ? { error: ERROR_CODES.includes(v.error) ? v.error : "failed" } : {}
|
|
31236
|
+
};
|
|
31237
|
+
}
|
|
31238
|
+
const READ_CHUNK = 512 * 1024;
|
|
31239
|
+
const nativeRecorder = (api) => {
|
|
31240
|
+
const call = (name, payload = {}) => callNative(api, `audio.record.${name}`, payload);
|
|
31241
|
+
return {
|
|
31242
|
+
start: async (options) => readStatus(await call("start", options)),
|
|
31243
|
+
pause: async () => readStatus(await call("pause")),
|
|
31244
|
+
resume: async () => readStatus(await call("resume")),
|
|
31245
|
+
stop: async () => readRecording(await call("stop")),
|
|
31246
|
+
status: async () => readStatus(await call("status")),
|
|
31247
|
+
list: async () => {
|
|
31248
|
+
const { recordings } = record(await call("list"));
|
|
31249
|
+
return Array.isArray(recordings) ? recordings.map(readRecording) : [];
|
|
31250
|
+
},
|
|
31251
|
+
get: async (id2) => {
|
|
31252
|
+
const parts = [];
|
|
31253
|
+
for (let offset = 0; ; ) {
|
|
31254
|
+
const chunk = record(await call("get", { id: id2, offset, length: READ_CHUNK }));
|
|
31255
|
+
if (typeof chunk.data !== "string")
|
|
31256
|
+
throw new AudioError("failed", "Invalid recording data");
|
|
31257
|
+
const bytes2 = Uint8Array.from(atob(chunk.data), (c) => c.charCodeAt(0));
|
|
31258
|
+
parts.push(bytes2);
|
|
31259
|
+
offset += bytes2.length;
|
|
31260
|
+
if (chunk.eof === true || !bytes2.length) {
|
|
31261
|
+
const recording = readRecording(chunk.recording);
|
|
31262
|
+
return { ...recording, blob: new Blob(parts, { type: recording.mime }) };
|
|
31263
|
+
}
|
|
31264
|
+
}
|
|
31265
|
+
},
|
|
31266
|
+
delete: async (id2) => {
|
|
31267
|
+
await call("delete", { id: id2 });
|
|
31268
|
+
},
|
|
31269
|
+
listen: (handler) => api.on("audio.record.state", (payload) => {
|
|
31270
|
+
let status;
|
|
31271
|
+
try {
|
|
31272
|
+
status = readStatus(payload);
|
|
31273
|
+
} catch {
|
|
31274
|
+
return;
|
|
31275
|
+
}
|
|
31276
|
+
handler(status);
|
|
31277
|
+
})
|
|
31278
|
+
};
|
|
31279
|
+
};
|
|
31280
|
+
const RECORDER_TYPES = ["audio/mp4;codecs=mp4a.40.2", "audio/webm;codecs=opus", "audio/mp4"];
|
|
31281
|
+
function pageRecorder() {
|
|
31282
|
+
const recordings = /* @__PURE__ */ new Map();
|
|
31283
|
+
const listeners = /* @__PURE__ */ new Set();
|
|
31284
|
+
let active;
|
|
31285
|
+
let starting = false;
|
|
31286
|
+
const elapsed = (r) => r.recorded + (r.since === void 0 ? 0 : Date.now() - r.since);
|
|
31287
|
+
const status = () => active ? { state: active.recorder.state === "paused" ? "paused" : "recording", id: active.id, startedAt: active.startedAt, elapsedMs: elapsed(active) } : { state: "idle", elapsedMs: 0 };
|
|
31288
|
+
const emit2 = (value) => {
|
|
31289
|
+
listeners.forEach((l) => l(value));
|
|
31290
|
+
return value;
|
|
31291
|
+
};
|
|
31292
|
+
const current = (...states) => {
|
|
31293
|
+
if (!active || !states.includes(active.recorder.state))
|
|
31294
|
+
throw new AudioError("invalid_state");
|
|
31295
|
+
return active;
|
|
31296
|
+
};
|
|
31297
|
+
return {
|
|
31298
|
+
start: async (options) => {
|
|
31299
|
+
if (active || starting)
|
|
31300
|
+
throw new AudioError("busy");
|
|
31301
|
+
starting = true;
|
|
31302
|
+
let stream;
|
|
31303
|
+
try {
|
|
31304
|
+
stream = await navigator.mediaDevices.getUserMedia({ audio: {
|
|
31305
|
+
...options.sampleRate ? { sampleRate: options.sampleRate } : {},
|
|
31306
|
+
...options.channels ? { channelCount: options.channels } : {}
|
|
31307
|
+
} });
|
|
31308
|
+
const mimeType = RECORDER_TYPES.find((type) => MediaRecorder.isTypeSupported(type));
|
|
31309
|
+
const recorder2 = new MediaRecorder(stream, { ...mimeType ? { mimeType } : {}, ...options.bitRate ? { audioBitsPerSecond: options.bitRate } : {} });
|
|
31310
|
+
const tracks = stream.getTracks();
|
|
31311
|
+
const chunks = [];
|
|
31312
|
+
const finished = new Promise((resolve) => {
|
|
31313
|
+
recorder2.ondataavailable = (event) => {
|
|
31314
|
+
if (event.data.size)
|
|
31315
|
+
chunks.push(event.data);
|
|
31316
|
+
};
|
|
31317
|
+
recorder2.onstop = () => {
|
|
31318
|
+
tracks.forEach((track) => track.stop());
|
|
31319
|
+
const mime = (recorder2.mimeType || mimeType || "audio/webm").split(";")[0];
|
|
31320
|
+
const blob = new Blob(chunks, { type: mime });
|
|
31321
|
+
const recording = { id: id2, mime, size: blob.size, durationMs: elapsed(own), createdAt: own.startedAt, ...options.title ? { title: options.title } : {} };
|
|
31322
|
+
recordings.set(id2, { ...recording, blob });
|
|
31323
|
+
const byItself = active === own;
|
|
31324
|
+
active = void 0;
|
|
31325
|
+
emit2(byItself ? { state: "idle", id: id2, elapsedMs: elapsed(own), error: "failed" } : { state: "idle", elapsedMs: 0 });
|
|
31326
|
+
resolve(recording);
|
|
31327
|
+
};
|
|
31328
|
+
});
|
|
31329
|
+
const id2 = crypto.randomUUID();
|
|
31330
|
+
const own = { id: id2, startedAt: Date.now(), recorded: 0, since: Date.now(), recorder: recorder2, finished };
|
|
31331
|
+
recorder2.start(1e3);
|
|
31332
|
+
active = own;
|
|
31333
|
+
return emit2(status());
|
|
31334
|
+
} catch (error) {
|
|
31335
|
+
stream == null ? void 0 : stream.getTracks().forEach((track) => track.stop());
|
|
31336
|
+
if (error instanceof AudioError)
|
|
31337
|
+
throw error;
|
|
31338
|
+
const name = error == null ? void 0 : error.name;
|
|
31339
|
+
throw new AudioError(name === "NotAllowedError" || name === "SecurityError" ? "denied" : name === "NotFoundError" ? "not_found" : "failed", error instanceof Error ? error.message : void 0);
|
|
31340
|
+
} finally {
|
|
31341
|
+
starting = false;
|
|
31342
|
+
}
|
|
31343
|
+
},
|
|
31344
|
+
pause: async () => {
|
|
31345
|
+
const own = current("recording");
|
|
31346
|
+
own.recorder.pause();
|
|
31347
|
+
own.recorded = elapsed(own);
|
|
31348
|
+
own.since = void 0;
|
|
31349
|
+
return emit2(status());
|
|
31350
|
+
},
|
|
31351
|
+
resume: async () => {
|
|
31352
|
+
const own = current("paused");
|
|
31353
|
+
own.recorder.resume();
|
|
31354
|
+
own.since = Date.now();
|
|
31355
|
+
return emit2(status());
|
|
31356
|
+
},
|
|
31357
|
+
stop: async () => {
|
|
31358
|
+
const own = current("recording", "paused");
|
|
31359
|
+
own.recorded = elapsed(own);
|
|
31360
|
+
own.since = void 0;
|
|
31361
|
+
active = void 0;
|
|
31362
|
+
own.recorder.stop();
|
|
31363
|
+
return own.finished;
|
|
31364
|
+
},
|
|
31365
|
+
status: async () => status(),
|
|
31366
|
+
list: async () => [...recordings.values()].map(({ blob: _blob, ...recording }) => recording).sort((a, b2) => b2.createdAt - a.createdAt),
|
|
31367
|
+
get: async (id2) => {
|
|
31368
|
+
const found = recordings.get(id2);
|
|
31369
|
+
if (!found)
|
|
31370
|
+
throw new AudioError("not_found");
|
|
31371
|
+
return { ...found };
|
|
31372
|
+
},
|
|
31373
|
+
delete: async (id2) => {
|
|
31374
|
+
if (!recordings.delete(id2))
|
|
31375
|
+
throw new AudioError("not_found");
|
|
31376
|
+
},
|
|
31377
|
+
listen: (handler) => {
|
|
31378
|
+
listeners.add(handler);
|
|
31379
|
+
return () => {
|
|
31380
|
+
listeners.delete(handler);
|
|
31381
|
+
};
|
|
31382
|
+
}
|
|
31383
|
+
};
|
|
31384
|
+
}
|
|
31385
|
+
let page;
|
|
31386
|
+
function recorder() {
|
|
31387
|
+
const { record: kind } = audioCapabilities();
|
|
31388
|
+
if (kind === "none")
|
|
31389
|
+
throw new AudioError("unsupported");
|
|
31390
|
+
return kind === "native" ? nativeRecorder(getBuckyApi()) : page ?? (page = pageRecorder());
|
|
31391
|
+
}
|
|
31392
|
+
async function startRecording(options = {}) {
|
|
31393
|
+
return recorder().start(options);
|
|
31394
|
+
}
|
|
31395
|
+
async function pauseRecording() {
|
|
31396
|
+
return recorder().pause();
|
|
31397
|
+
}
|
|
31398
|
+
async function resumeRecording() {
|
|
31399
|
+
return recorder().resume();
|
|
31400
|
+
}
|
|
31401
|
+
async function stopRecording() {
|
|
31402
|
+
return recorder().stop();
|
|
31403
|
+
}
|
|
31404
|
+
async function getRecordingStatus() {
|
|
31405
|
+
return recorder().status();
|
|
31406
|
+
}
|
|
31407
|
+
async function listRecordings() {
|
|
31408
|
+
return recorder().list();
|
|
31409
|
+
}
|
|
31410
|
+
async function getRecording(id2) {
|
|
31411
|
+
return recorder().get(id2);
|
|
31412
|
+
}
|
|
31413
|
+
async function deleteRecording(id2) {
|
|
31414
|
+
return recorder().delete(id2);
|
|
31415
|
+
}
|
|
31416
|
+
function onRecordingState(handler) {
|
|
31417
|
+
return audioCapabilities().record === "none" ? () => {
|
|
31418
|
+
} : recorder().listen(handler);
|
|
31419
|
+
}
|
|
31420
|
+
function createZoneClients(options) {
|
|
31421
|
+
const { zoneHost, userId, ownerDid, fetcher, sessionTokenProvider } = options;
|
|
31422
|
+
const url = (service) => `https://${zoneHost}/kapi/${service}`;
|
|
31423
|
+
const rpcOptions = { fetcher, sessionTokenProvider };
|
|
31424
|
+
const rpc = (service) => new kRPCClient(url(service), null, null, rpcOptions);
|
|
31425
|
+
const systemConfig = new SystemConfigClient(url("system_config"), null, rpcOptions);
|
|
31426
|
+
return {
|
|
31427
|
+
zoneHost,
|
|
31428
|
+
userId,
|
|
31429
|
+
ownerDid,
|
|
31430
|
+
rpc,
|
|
31431
|
+
systemConfig,
|
|
31432
|
+
msgCenter: new MsgCenterClient(rpc("msg-center")),
|
|
31433
|
+
taskManager: new TaskManagerClient(rpc("task-manager")),
|
|
31434
|
+
// Signing in and renewing carry their own credential: a session token from the provider does not belong there.
|
|
31435
|
+
verifyHub: new VerifyHubClient(new kRPCClient(url("verify-hub"), null, null, { fetcher })),
|
|
31436
|
+
contentRegistry: (user = userId) => {
|
|
31437
|
+
if (!user)
|
|
31438
|
+
throw new Error("contentRegistry requires a user id");
|
|
31439
|
+
return new ContentRegistryClient(systemConfig, user);
|
|
31440
|
+
}
|
|
31441
|
+
};
|
|
31442
|
+
}
|
|
31042
31443
|
const COMPUTER_SEMANTIC_FORMAT = "outline-v1";
|
|
31043
31444
|
const COMPUTER_ROLES = [
|
|
31044
31445
|
"window",
|
|
@@ -32041,234 +32442,249 @@ function markdownToBlocks(markdown, prefix) {
|
|
|
32041
32442
|
return blocks.length ? blocks : [b2.empty()];
|
|
32042
32443
|
}
|
|
32043
32444
|
export {
|
|
32044
|
-
|
|
32045
|
-
|
|
32445
|
+
waitNotify as $,
|
|
32446
|
+
NOTIFY_TEXT_CONTROL_ID as A,
|
|
32046
32447
|
BS_SERVICE_VERIFY_HUB as B,
|
|
32047
|
-
|
|
32048
|
-
|
|
32448
|
+
NOTIFY_ACTION_ANSWER as C,
|
|
32449
|
+
NOTIFY_ACTION_DISMISS as D,
|
|
32049
32450
|
EXTERNAL_PRINCIPAL_CLAIM as E,
|
|
32050
|
-
|
|
32051
|
-
|
|
32052
|
-
|
|
32053
|
-
|
|
32054
|
-
|
|
32055
|
-
|
|
32056
|
-
|
|
32451
|
+
NOTIFY_LINK_PATH as F,
|
|
32452
|
+
NOTIFY_ERR_NOT_DECLARED as G,
|
|
32453
|
+
NOTIFY_ERR_DISABLED as H,
|
|
32454
|
+
isNotifyClosed as I,
|
|
32455
|
+
notifyCategorySessionId as J,
|
|
32456
|
+
notifyCategoryFromSessionId as K,
|
|
32457
|
+
inputPrompt as L,
|
|
32057
32458
|
MsgQueueClient as M,
|
|
32058
32459
|
NOTIFY_INTENT as N,
|
|
32059
|
-
|
|
32060
|
-
|
|
32061
|
-
|
|
32460
|
+
promptOptions as O,
|
|
32461
|
+
notifyAnswerToTaskResult as P,
|
|
32462
|
+
validateNotifyAnswer as Q,
|
|
32062
32463
|
RuntimeType as R,
|
|
32063
32464
|
SystemConfigClient as S,
|
|
32064
|
-
|
|
32065
|
-
|
|
32465
|
+
notifyUrl as T,
|
|
32466
|
+
msgMachineData as U,
|
|
32066
32467
|
VerifyHubClient as V,
|
|
32067
32468
|
WEB3_BRIDGE_HOST as W,
|
|
32068
|
-
|
|
32069
|
-
|
|
32469
|
+
notifyMessageData as X,
|
|
32470
|
+
commitNotifyAnswer as Y,
|
|
32070
32471
|
ZONE_USER_TYPES as Z,
|
|
32071
|
-
|
|
32472
|
+
answerNotify as _,
|
|
32072
32473
|
ndm_client as a,
|
|
32073
|
-
|
|
32074
|
-
|
|
32075
|
-
|
|
32076
|
-
|
|
32077
|
-
|
|
32078
|
-
|
|
32079
|
-
|
|
32080
|
-
|
|
32081
|
-
|
|
32082
|
-
|
|
32083
|
-
|
|
32084
|
-
|
|
32085
|
-
|
|
32086
|
-
|
|
32087
|
-
|
|
32088
|
-
|
|
32089
|
-
|
|
32090
|
-
|
|
32091
|
-
|
|
32092
|
-
|
|
32093
|
-
|
|
32094
|
-
|
|
32095
|
-
|
|
32096
|
-
|
|
32097
|
-
|
|
32098
|
-
|
|
32099
|
-
|
|
32100
|
-
|
|
32101
|
-
|
|
32102
|
-
|
|
32103
|
-
|
|
32104
|
-
|
|
32105
|
-
|
|
32106
|
-
|
|
32107
|
-
|
|
32108
|
-
|
|
32109
|
-
|
|
32110
|
-
|
|
32111
|
-
|
|
32112
|
-
|
|
32113
|
-
|
|
32114
|
-
|
|
32115
|
-
|
|
32116
|
-
|
|
32117
|
-
|
|
32118
|
-
|
|
32119
|
-
|
|
32120
|
-
|
|
32121
|
-
|
|
32122
|
-
|
|
32123
|
-
|
|
32124
|
-
|
|
32125
|
-
|
|
32126
|
-
|
|
32127
|
-
|
|
32128
|
-
|
|
32129
|
-
|
|
32130
|
-
|
|
32131
|
-
|
|
32132
|
-
|
|
32133
|
-
|
|
32134
|
-
|
|
32135
|
-
|
|
32136
|
-
|
|
32474
|
+
TASK_ERR_REVISION_CONFLICT as a$,
|
|
32475
|
+
FRIEND_INTENT as a0,
|
|
32476
|
+
CONTACT_TAG_ZONE_USER as a1,
|
|
32477
|
+
CONTACT_TAG_ZONE_AGENT as a2,
|
|
32478
|
+
CONTACT_TAG_HOMESTATION_FOLLOWING as a3,
|
|
32479
|
+
CONTACT_CHANGED_EVENT_PATTERN as a4,
|
|
32480
|
+
WELL_KNOWN_CONTACT_TAGS as a5,
|
|
32481
|
+
USER_TYPE_GROUP_REF_PREFIX as a6,
|
|
32482
|
+
USER_GROUP_REF_PREFIX as a7,
|
|
32483
|
+
contactTagApp as a8,
|
|
32484
|
+
contactTagKind as a9,
|
|
32485
|
+
TASK_MANAGER_SERVICE_PORT as aA,
|
|
32486
|
+
TASK_POLICY_PRESET_COLLABORATIVE_TREE_V1 as aB,
|
|
32487
|
+
RAW_TASK_SCHEMA_ID as aC,
|
|
32488
|
+
HUMAN_APPROVAL_SCHEMA_ID as aD,
|
|
32489
|
+
DOWNLOAD_TASK_SCHEMA_ID as aE,
|
|
32490
|
+
SCHEDULER_DISPATCH_THUNK_TASK_SCHEMA_ID as aF,
|
|
32491
|
+
WORKFLOW_RUN_TREE_TASK_SCHEMA_ID as aG,
|
|
32492
|
+
WORKFLOW_STEP_TASK_SCHEMA_ID as aH,
|
|
32493
|
+
WORKFLOW_MAP_SHARD_TASK_SCHEMA_ID as aI,
|
|
32494
|
+
WORKFLOW_THUNK_TASK_SCHEMA_ID as aJ,
|
|
32495
|
+
WORKFLOW_SCHEDULE_TASK_SCHEMA_ID as aK,
|
|
32496
|
+
WORKFLOW_SEND_MESSAGE_TASK_SCHEMA_ID as aL,
|
|
32497
|
+
WORKFLOW_EXECUTE_RPC_TASK_SCHEMA_ID as aM,
|
|
32498
|
+
WORKFLOW_RUN_TARGET_TASK_SCHEMA_ID as aN,
|
|
32499
|
+
AGENT_DELEGATE_TASK_SCHEMA_ID as aO,
|
|
32500
|
+
HUMAN_INPUT_TASK_SCHEMA_ID as aP,
|
|
32501
|
+
OPENDAN_ASYNC_TOOL_TASK_SCHEMA_ID as aQ,
|
|
32502
|
+
OPENDAN_COMMAND_TASK_SCHEMA_ID as aR,
|
|
32503
|
+
TOOL_EXEC_BASH_TASK_SCHEMA_ID as aS,
|
|
32504
|
+
AICC_COMPUTE_TASK_SCHEMA_ID as aT,
|
|
32505
|
+
APP_INSTALL_TASK_SCHEMA_ID as aU,
|
|
32506
|
+
APP_UNINSTALL_TASK_SCHEMA_ID as aV,
|
|
32507
|
+
APP_START_TASK_SCHEMA_ID as aW,
|
|
32508
|
+
APP_UPDATE_TASK_SCHEMA_ID as aX,
|
|
32509
|
+
APP_UPDATE_BATCH_TASK_SCHEMA_ID as aY,
|
|
32510
|
+
TASK_ERR_NOT_FOUND as aZ,
|
|
32511
|
+
TASK_ERR_PERMISSION_DENIED as a_,
|
|
32512
|
+
isUserGroupRefTag as aa,
|
|
32513
|
+
DENY_REASONS as ab,
|
|
32514
|
+
ACCESS_DENIED_ERROR_CODE as ac,
|
|
32515
|
+
parseAccessDenial as ad,
|
|
32516
|
+
accessDenialOf as ae,
|
|
32517
|
+
ANONYMOUS_IDENTITY as af,
|
|
32518
|
+
parseCurrentIdentity as ag,
|
|
32519
|
+
identityKey as ah,
|
|
32520
|
+
identityAllows as ai,
|
|
32521
|
+
DEFAULT_JUMP_BASE_URL as aj,
|
|
32522
|
+
JUMP_ACTION_PATHS as ak,
|
|
32523
|
+
normalizeZoneHostname as al,
|
|
32524
|
+
zoneActionUrl as am,
|
|
32525
|
+
buildJumpUrl as an,
|
|
32526
|
+
APP_LOGIN_ISSUE_METHOD as ao,
|
|
32527
|
+
APP_LOGIN_EXCHANGE_METHOD as ap,
|
|
32528
|
+
APP_LOGIN_SETTINGS_GET_METHOD as aq,
|
|
32529
|
+
APP_LOGIN_SETTINGS_SET_METHOD as ar,
|
|
32530
|
+
issueAppLoginCode as as,
|
|
32531
|
+
issueAppCustomerLink as at,
|
|
32532
|
+
parseAppLoginExchangeResult as au,
|
|
32533
|
+
randomAppLoginNonce as av,
|
|
32534
|
+
loginByAppAccessToken as aw,
|
|
32535
|
+
completeAppAccessTokenLogin as ax,
|
|
32536
|
+
TASK_MANAGER_SERVICE_UNIQUE_ID as ay,
|
|
32537
|
+
TASK_MANAGER_SERVICE_NAME as az,
|
|
32137
32538
|
bns_client as b,
|
|
32138
|
-
|
|
32139
|
-
|
|
32140
|
-
|
|
32141
|
-
|
|
32142
|
-
|
|
32143
|
-
|
|
32144
|
-
|
|
32145
|
-
|
|
32146
|
-
|
|
32147
|
-
|
|
32148
|
-
|
|
32149
|
-
|
|
32150
|
-
|
|
32151
|
-
|
|
32152
|
-
|
|
32153
|
-
|
|
32154
|
-
|
|
32155
|
-
|
|
32156
|
-
|
|
32157
|
-
|
|
32158
|
-
|
|
32159
|
-
|
|
32160
|
-
|
|
32161
|
-
|
|
32162
|
-
|
|
32163
|
-
|
|
32164
|
-
|
|
32165
|
-
|
|
32166
|
-
|
|
32167
|
-
|
|
32168
|
-
|
|
32169
|
-
|
|
32170
|
-
|
|
32171
|
-
|
|
32172
|
-
|
|
32173
|
-
|
|
32174
|
-
|
|
32175
|
-
|
|
32176
|
-
|
|
32177
|
-
|
|
32178
|
-
|
|
32179
|
-
|
|
32180
|
-
|
|
32181
|
-
|
|
32182
|
-
|
|
32183
|
-
|
|
32184
|
-
|
|
32185
|
-
|
|
32186
|
-
|
|
32187
|
-
|
|
32188
|
-
|
|
32189
|
-
|
|
32190
|
-
|
|
32191
|
-
|
|
32192
|
-
|
|
32193
|
-
|
|
32194
|
-
|
|
32195
|
-
|
|
32196
|
-
|
|
32197
|
-
|
|
32198
|
-
|
|
32199
|
-
|
|
32200
|
-
|
|
32201
|
-
|
|
32539
|
+
parseVideoPrompt as b$,
|
|
32540
|
+
TASK_ERR_STALE_RUNNER_EPOCH as b0,
|
|
32541
|
+
TASK_ERR_INVALID_PHASE as b1,
|
|
32542
|
+
TASK_ERR_CONTROL_NOT_AVAILABLE as b2,
|
|
32543
|
+
TASK_ERR_CONTROL_ALREADY_PENDING as b3,
|
|
32544
|
+
TASK_ERR_ALREADY_COMPLETED as b4,
|
|
32545
|
+
TASK_ERR_INPUT_SCHEMA_MISMATCH as b5,
|
|
32546
|
+
TASK_ERR_RESULT_SCHEMA_MISMATCH as b6,
|
|
32547
|
+
TASK_ERR_IDEMPOTENCY_CONFLICT as b7,
|
|
32548
|
+
TASK_ERR_SCHEMA_NOT_FOUND as b8,
|
|
32549
|
+
TASK_MGR_ERROR_CODES as b9,
|
|
32550
|
+
WorkflowNodeRunState as bA,
|
|
32551
|
+
WorkflowHumanActionKind as bB,
|
|
32552
|
+
WorkflowScheduledTaskStatus as bC,
|
|
32553
|
+
WorkflowScheduledTaskMisfirePolicy as bD,
|
|
32554
|
+
WorkflowScheduledTaskFireStatus as bE,
|
|
32555
|
+
WorkflowClient as bF,
|
|
32556
|
+
AICC_SERVICE_UNIQUE_ID as bG,
|
|
32557
|
+
AICC_SERVICE_SERVICE_NAME as bH,
|
|
32558
|
+
AICC_SERVICE_SERVICE_PORT as bI,
|
|
32559
|
+
AICC_AI_METHODS as bJ,
|
|
32560
|
+
AICC_CORE_METHODS as bK,
|
|
32561
|
+
AICC_MANAGEMENT_METHODS as bL,
|
|
32562
|
+
AICC_QUOTA_METHODS as bM,
|
|
32563
|
+
AICC_METHODS as bN,
|
|
32564
|
+
AICC_FEATURES as bO,
|
|
32565
|
+
AICC_EXECUTION_MODES as bP,
|
|
32566
|
+
AICC_POLICY_REFUSAL_CODES as bQ,
|
|
32567
|
+
aiccRefusalOf as bR,
|
|
32568
|
+
isAiccAiMethod as bS,
|
|
32569
|
+
aiccTextMessage as bT,
|
|
32570
|
+
aiccMessageTextContent as bU,
|
|
32571
|
+
aiccMessageFirstText as bV,
|
|
32572
|
+
validateAiccMessage as bW,
|
|
32573
|
+
AiccClient as bX,
|
|
32574
|
+
decisionRequirements as bY,
|
|
32575
|
+
validateDecisionRequest as bZ,
|
|
32576
|
+
validateDecisionAnswers as b_,
|
|
32577
|
+
taskMgrTaskEventPath as ba,
|
|
32578
|
+
taskMgrTreeEventPath as bb,
|
|
32579
|
+
taskMgrErrorCode as bc,
|
|
32580
|
+
TaskExecutorKind as bd,
|
|
32581
|
+
TaskPhase as be,
|
|
32582
|
+
isTerminalTaskPhase as bf,
|
|
32583
|
+
TaskWaitReasonKind as bg,
|
|
32584
|
+
TaskOutcome as bh,
|
|
32585
|
+
TaskControlAction as bi,
|
|
32586
|
+
baselineTaskControlProfile as bj,
|
|
32587
|
+
DEFAULT_CHILD_CONTROL_POLICY as bk,
|
|
32588
|
+
TaskAction as bl,
|
|
32589
|
+
TaskGrantScope as bm,
|
|
32590
|
+
TaskDataScope as bn,
|
|
32591
|
+
StorageDomain as bo,
|
|
32592
|
+
TaskEventType as bp,
|
|
32593
|
+
TaskManagerClient as bq,
|
|
32594
|
+
WORKFLOW_SERVICE_NAME as br,
|
|
32595
|
+
WorkflowErrorCode as bs,
|
|
32596
|
+
WorkflowRequestError as bt,
|
|
32597
|
+
WorkflowStepType as bu,
|
|
32598
|
+
WorkflowOutputMode as bv,
|
|
32599
|
+
WorkflowJoinMode as bw,
|
|
32600
|
+
WorkflowRetryFallback as bx,
|
|
32601
|
+
WorkflowDefinitionStatus as by,
|
|
32602
|
+
WorkflowRunStatus as bz,
|
|
32202
32603
|
createSDKModule as c,
|
|
32203
|
-
|
|
32204
|
-
|
|
32205
|
-
|
|
32206
|
-
|
|
32207
|
-
|
|
32208
|
-
|
|
32209
|
-
|
|
32210
|
-
|
|
32211
|
-
|
|
32212
|
-
|
|
32213
|
-
|
|
32214
|
-
|
|
32215
|
-
|
|
32216
|
-
|
|
32217
|
-
|
|
32218
|
-
|
|
32219
|
-
|
|
32220
|
-
|
|
32221
|
-
|
|
32222
|
-
|
|
32223
|
-
|
|
32224
|
-
|
|
32225
|
-
|
|
32226
|
-
|
|
32227
|
-
|
|
32228
|
-
|
|
32229
|
-
|
|
32230
|
-
|
|
32231
|
-
|
|
32232
|
-
|
|
32233
|
-
|
|
32234
|
-
|
|
32235
|
-
|
|
32236
|
-
|
|
32237
|
-
|
|
32238
|
-
|
|
32239
|
-
|
|
32240
|
-
|
|
32241
|
-
|
|
32242
|
-
|
|
32243
|
-
|
|
32244
|
-
|
|
32245
|
-
|
|
32246
|
-
|
|
32247
|
-
|
|
32248
|
-
|
|
32249
|
-
|
|
32604
|
+
validateVideoOutput as c0,
|
|
32605
|
+
validateVideoGeneration as c1,
|
|
32606
|
+
validateVideoEdit as c2,
|
|
32607
|
+
videoGenerationRequirement as c3,
|
|
32608
|
+
KEventReader as c4,
|
|
32609
|
+
KEventClient as c5,
|
|
32610
|
+
appIdFromDid as c6,
|
|
32611
|
+
parseAppId as c7,
|
|
32612
|
+
appDidFromId as c8,
|
|
32613
|
+
createAppInstanceId as c9,
|
|
32614
|
+
COMPUTER_SEMANTIC_FORMAT as cA,
|
|
32615
|
+
COMPUTER_ROLES as cB,
|
|
32616
|
+
COMPUTER_ELEMENT_STATES as cC,
|
|
32617
|
+
COMPUTER_ELEMENT_ACTIONS as cD,
|
|
32618
|
+
ExecutorClient as cE,
|
|
32619
|
+
ExecutorStreamError as cF,
|
|
32620
|
+
encodeExecutorControl as cG,
|
|
32621
|
+
ExecutorCommandStream as cH,
|
|
32622
|
+
fieldNamed as cI,
|
|
32623
|
+
cellValue as cJ,
|
|
32624
|
+
tableInsert as cK,
|
|
32625
|
+
tableSet as cL,
|
|
32626
|
+
tableDelete as cM,
|
|
32627
|
+
fieldAdd as cN,
|
|
32628
|
+
optionAdd as cO,
|
|
32629
|
+
textAppend as cP,
|
|
32630
|
+
textReplaceBlock as cQ,
|
|
32631
|
+
textDeleteBlocks as cR,
|
|
32632
|
+
rename as cS,
|
|
32633
|
+
move as cT,
|
|
32634
|
+
setProps as cU,
|
|
32635
|
+
commitOps as cV,
|
|
32636
|
+
markdownToBlocks as cW,
|
|
32637
|
+
importFiles as cX,
|
|
32638
|
+
ensureUploaded as cY,
|
|
32639
|
+
releaseImportSession as cZ,
|
|
32640
|
+
parseAppInstanceId as ca,
|
|
32641
|
+
BNS_EVM_DEFAULT_GAS_LIMIT as cb,
|
|
32642
|
+
BNS_EVM_DEFAULT_MAX_FEE_PER_GAS as cc,
|
|
32643
|
+
BNS_EVM_DEFAULT_MAX_PRIORITY_FEE_PER_GAS as cd,
|
|
32644
|
+
BNS_MAX_INLINE_DOCUMENT_BYTES as ce,
|
|
32645
|
+
BNS_DNS_TXT_DEFAULT_TTL as cf,
|
|
32646
|
+
BNS_DNS_TXT_DOC_TYPE as cg,
|
|
32647
|
+
BNS_PUBLISH_DOCUMENT_ABI as ch,
|
|
32648
|
+
BnsEvmTxError as ci,
|
|
32649
|
+
BnsEvmTxBuilder as cj,
|
|
32650
|
+
decodeBnsPublishDocumentCalldata as ck,
|
|
32651
|
+
BnsTxExecutorError as cl,
|
|
32652
|
+
walletUserHasSnAccount as cm,
|
|
32653
|
+
BnsTxExecutor as cn,
|
|
32654
|
+
audioCapabilities as co,
|
|
32655
|
+
AudioError as cp,
|
|
32656
|
+
acquireBackgroundAudio as cq,
|
|
32657
|
+
startRecording as cr,
|
|
32658
|
+
pauseRecording as cs,
|
|
32659
|
+
resumeRecording as ct,
|
|
32660
|
+
stopRecording as cu,
|
|
32661
|
+
getRecordingStatus as cv,
|
|
32662
|
+
listRecordings as cw,
|
|
32663
|
+
getRecording as cx,
|
|
32664
|
+
deleteRecording as cy,
|
|
32665
|
+
onRecordingState as cz,
|
|
32250
32666
|
ndm_proxy as d,
|
|
32251
|
-
|
|
32252
|
-
|
|
32253
|
-
|
|
32254
|
-
|
|
32255
|
-
|
|
32256
|
-
|
|
32257
|
-
|
|
32258
|
-
|
|
32259
|
-
|
|
32667
|
+
createZoneClients as e,
|
|
32668
|
+
bucket_client as f,
|
|
32669
|
+
BS_SERVICE_TASK_MANAGER as g,
|
|
32670
|
+
getCurrentWalletUserFromHost as h,
|
|
32671
|
+
getActiveRuntimeType as i,
|
|
32672
|
+
getActiveZoneGatewayOrigin as j,
|
|
32673
|
+
getActiveSessionToken as k,
|
|
32674
|
+
BuckyOSSDK as l,
|
|
32675
|
+
RepoClient as m,
|
|
32260
32676
|
ndn as n,
|
|
32261
|
-
|
|
32677
|
+
parseZoneUserType as o,
|
|
32262
32678
|
parseSessionTokenClaims as p,
|
|
32263
|
-
|
|
32679
|
+
isExternalPrincipal as q,
|
|
32264
32680
|
resolveDidFromHost as r,
|
|
32265
32681
|
sn_client as s,
|
|
32266
|
-
|
|
32267
|
-
|
|
32268
|
-
|
|
32269
|
-
|
|
32270
|
-
|
|
32271
|
-
|
|
32272
|
-
|
|
32682
|
+
MsgCenterClient as t,
|
|
32683
|
+
mailboxAddress as u,
|
|
32684
|
+
mailboxResource as v,
|
|
32685
|
+
NOTIFY_DELIVERED_INTENT as w,
|
|
32686
|
+
NOTIFY_DATA_VERSION as x,
|
|
32687
|
+
NOTIFY_SESSION_PREFIX as y,
|
|
32688
|
+
NOTIFY_CHOICE_CONTROL_ID as z
|
|
32273
32689
|
};
|
|
32274
|
-
//# sourceMappingURL=aiws_write-
|
|
32690
|
+
//# sourceMappingURL=aiws_write-0606e098.mjs.map
|