@band-ai/band-sdk-core 1.2.0 → 1.2.1
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/band_sdk_core.js +32 -4
- package/band_sdk_core_bg.wasm +0 -0
- package/index.d.ts +5 -2
- package/package.json +1 -1
package/band_sdk_core.js
CHANGED
|
@@ -791,6 +791,13 @@ class SubscriptionTracker {
|
|
|
791
791
|
}
|
|
792
792
|
return ret[0] !== 0;
|
|
793
793
|
}
|
|
794
|
+
/**
|
|
795
|
+
* @returns {Array<any>}
|
|
796
|
+
*/
|
|
797
|
+
agentTopicRejoinCandidates() {
|
|
798
|
+
const ret = wasm.subscriptiontracker_agentTopicRejoinCandidates(this.__wbg_ptr);
|
|
799
|
+
return ret;
|
|
800
|
+
}
|
|
794
801
|
/**
|
|
795
802
|
* @param {any} topic
|
|
796
803
|
* @returns {string}
|
|
@@ -908,10 +915,11 @@ class SubscriptionTracker {
|
|
|
908
915
|
}
|
|
909
916
|
/**
|
|
910
917
|
* @param {any} topic
|
|
918
|
+
* @param {bigint} ticket
|
|
911
919
|
* @returns {boolean}
|
|
912
920
|
*/
|
|
913
|
-
markAgentTopicRejoinFailed(topic) {
|
|
914
|
-
const ret = wasm.subscriptiontracker_markAgentTopicRejoinFailed(this.__wbg_ptr, topic);
|
|
921
|
+
markAgentTopicRejoinFailed(topic, ticket) {
|
|
922
|
+
const ret = wasm.subscriptiontracker_markAgentTopicRejoinFailed(this.__wbg_ptr, topic, ticket);
|
|
915
923
|
if (ret[2]) {
|
|
916
924
|
throw takeFromExternrefTable0(ret[1]);
|
|
917
925
|
}
|
|
@@ -932,10 +940,11 @@ class SubscriptionTracker {
|
|
|
932
940
|
}
|
|
933
941
|
/**
|
|
934
942
|
* @param {any} room_id
|
|
943
|
+
* @param {bigint} ticket
|
|
935
944
|
* @returns {boolean}
|
|
936
945
|
*/
|
|
937
|
-
markRoomRejoinFailed(room_id) {
|
|
938
|
-
const ret = wasm.subscriptiontracker_markRoomRejoinFailed(this.__wbg_ptr, room_id);
|
|
946
|
+
markRoomRejoinFailed(room_id, ticket) {
|
|
947
|
+
const ret = wasm.subscriptiontracker_markRoomRejoinFailed(this.__wbg_ptr, room_id, ticket);
|
|
939
948
|
if (ret[2]) {
|
|
940
949
|
throw takeFromExternrefTable0(ret[1]);
|
|
941
950
|
}
|
|
@@ -963,6 +972,18 @@ class SubscriptionTracker {
|
|
|
963
972
|
}
|
|
964
973
|
return ret[0] !== 0;
|
|
965
974
|
}
|
|
975
|
+
/**
|
|
976
|
+
* @param {any} topic
|
|
977
|
+
* @param {bigint} ticket
|
|
978
|
+
* @returns {boolean}
|
|
979
|
+
*/
|
|
980
|
+
recordAgentTopicJoinAmbiguous(topic, ticket) {
|
|
981
|
+
const ret = wasm.subscriptiontracker_recordAgentTopicJoinAmbiguous(this.__wbg_ptr, topic, ticket);
|
|
982
|
+
if (ret[2]) {
|
|
983
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
984
|
+
}
|
|
985
|
+
return ret[0] !== 0;
|
|
986
|
+
}
|
|
966
987
|
/**
|
|
967
988
|
* @param {any} room_id
|
|
968
989
|
* @param {bigint} ticket
|
|
@@ -1000,6 +1021,13 @@ class SubscriptionTracker {
|
|
|
1000
1021
|
}
|
|
1001
1022
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
1002
1023
|
}
|
|
1024
|
+
/**
|
|
1025
|
+
* @returns {Array<any>}
|
|
1026
|
+
*/
|
|
1027
|
+
roomRejoinCandidates() {
|
|
1028
|
+
const ret = wasm.subscriptiontracker_roomRejoinCandidates(this.__wbg_ptr);
|
|
1029
|
+
return ret;
|
|
1030
|
+
}
|
|
1003
1031
|
/**
|
|
1004
1032
|
* @param {any} room_id
|
|
1005
1033
|
* @returns {string}
|
package/band_sdk_core_bg.wasm
CHANGED
|
Binary file
|
package/index.d.ts
CHANGED
|
@@ -309,19 +309,22 @@ export class SubscriptionTracker {
|
|
|
309
309
|
unsubscribeRoom(roomId: string): bigint | undefined;
|
|
310
310
|
markRoomLeaveComplete(roomId: string, ticket: bigint, outcome: LeaveOutcome): boolean;
|
|
311
311
|
acknowledgeRoomReconciled(roomId: string): boolean;
|
|
312
|
-
|
|
312
|
+
roomRejoinCandidates(): Array<[string, bigint]>;
|
|
313
|
+
markRoomRejoinFailed(roomId: string, ticket: bigint): boolean;
|
|
313
314
|
subscribedRoomIds(): string[];
|
|
314
315
|
onReconnected(): void;
|
|
315
316
|
endSession(): void;
|
|
316
317
|
beginAgentTopicJoin(topic: string): bigint | undefined;
|
|
317
318
|
recordAgentTopicJoin(topic: string, ticket: bigint, joined: boolean): boolean;
|
|
319
|
+
recordAgentTopicJoinAmbiguous(topic: string, ticket: bigint): boolean;
|
|
318
320
|
isAgentTopicJoined(topic: string): boolean;
|
|
319
321
|
isAgentTopicClaimCurrent(topic: string, ticket: bigint): boolean;
|
|
320
322
|
agentTopicStatus(topic: string): AgentTopicStatus;
|
|
321
323
|
leaveAgentTopic(topic: string): bigint | undefined;
|
|
322
324
|
markAgentTopicLeaveComplete(topic: string, ticket: bigint, outcome: LeaveOutcome): boolean;
|
|
323
325
|
acknowledgeAgentTopicReconciled(topic: string): boolean;
|
|
324
|
-
|
|
326
|
+
agentTopicRejoinCandidates(): Array<[string, bigint]>;
|
|
327
|
+
markAgentTopicRejoinFailed(topic: string, ticket: bigint): boolean;
|
|
325
328
|
joinedAgentTopics(): string[];
|
|
326
329
|
}
|
|
327
330
|
|