@webex/plugin-meetings 3.12.0-llmrefactor.5 → 3.12.0-llmrefactor.7
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/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/hashTree/hashTreeParser.js +37 -29
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +4 -0
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js +2 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/meeting/index.js +13 -2
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/types/hashTree/hashTreeParser.d.ts +1 -0
- package/dist/types/locus-info/types.d.ts +1 -0
- package/dist/types/meeting/index.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +9 -9
- package/src/hashTree/hashTreeParser.ts +17 -3
- package/src/locus-info/index.ts +1 -0
- package/src/locus-info/types.ts +1 -0
- package/src/meeting/index.ts +11 -3
- package/src/meeting/voicea-meeting.ts +1 -1
- package/test/unit/spec/breakouts/index.ts +12 -7
- package/test/unit/spec/hashTree/hashTreeParser.ts +64 -1
- package/test/unit/spec/locus-info/index.js +32 -0
- package/test/unit/spec/meeting/index.js +72 -0
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
package/dist/locus-info/types.js
CHANGED
|
@@ -21,6 +21,7 @@ var EndMeetingReason = exports.EndMeetingReason = {
|
|
|
21
21
|
breakoutEnded: 'BREAKOUT_ENDED' // indicates that only a breakout session ended, not the whole meeting
|
|
22
22
|
};
|
|
23
23
|
var LocusErrorCodes = exports.LocusErrorCodes = {
|
|
24
|
-
LOCUS_INACTIVE: 2403004
|
|
24
|
+
LOCUS_INACTIVE: 2403004,
|
|
25
|
+
LOCUS_USER_FULL: 2423001
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EndMeetingReason","exports","maxMeetingDuration","allParticipantsLeft","sipHostLeft","noHost","waitingForMpsEndMeetingTimeout","fraudDetection","meetingEndedByHost","meetingUpdated","meetingCancelled","autoEndWithSingleParticipant","breakoutEnded","LocusErrorCodes","LOCUS_INACTIVE"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\nimport {HtMeta} from '../hashTree/types';\n\nexport const EndMeetingReason = {\n maxMeetingDuration: 'MAX_MEETING_DURATION',\n allParticipantsLeft: 'ALL_PARTICIPANTS_LEFT',\n sipHostLeft: 'SIP_HOST_LEFT',\n noHost: 'NO_HOST',\n waitingForMpsEndMeetingTimeout: 'WAITING_FOR_MPS_END_MEETING_TIMEOUT',\n fraudDetection: 'FRAUD_DETECTION',\n meetingEndedByHost: 'MEETING_ENDED_BY_HOST',\n meetingUpdated: 'MEETING_UPDATED', // Locus code has comment about EndMeetingIfPossible reason for this one\n meetingCancelled: 'MEETING_CANCELLED', // Locus code has comment about EndMeetingIfPossible reason for this one\n autoEndWithSingleParticipant: 'AUTO_END_WITH_SINGLE_PARTICIPANT',\n breakoutEnded: 'BREAKOUT_ENDED', // indicates that only a breakout session ended, not the whole meeting\n} as const;\n\nexport type EndMeetingReason = Enum<typeof EndMeetingReason>;\n\nexport type LocusFullState = {\n active: boolean;\n count: number;\n lastActive: string;\n locked: boolean;\n sessionId: string;\n sessionIds: string[];\n startTime: number;\n state: string;\n type: string;\n endMeetingReason?: EndMeetingReason;\n};\n\nexport type Links = {\n services: Record<'breakout' | 'record', {url: string}>; // there exist also other services, but these are the ones we currently use\n resources: Record<'webcastInstance' | 'visibleDataSets', {url: string}>; // there exist also other resources, but these are the ones we currently use\n};\n\nexport type LocusDTO = {\n controls?: any;\n embeddedApps?: any[];\n fullState?: LocusFullState;\n host?: {\n id: string;\n incomingCallProtocols: any[];\n isExternal: boolean;\n name: string;\n orgId: string;\n };\n htMeta?: HtMeta;\n info?: any;\n jsSdkMeta?: {\n removedParticipantIds: string[]; // list of ids of participants that are removed in the last update\n forceReplaceMembers?: boolean; // when true, forces a full replacement of meeting members (e.g. when switching to a new hash tree parser - when moving between breakouts)\n };\n links?: Links;\n mediaShares?: any[];\n meetings?: any[];\n participants: any[];\n replaces?: any[];\n self?: any;\n sequence?: {\n dirtyParticipants: number;\n entries: number[];\n rangeEnd: number;\n rangeStart: number;\n sequenceHash: number;\n sessionToken: string;\n since: string;\n totalParticipants: number;\n };\n syncUrl?: string;\n url?: string;\n};\n\nexport type ReplacesInfo = {\n locusUrl: string;\n replacedAt: string;\n sessionId: string;\n};\n\nexport const LocusErrorCodes = {\n LOCUS_INACTIVE: 2403004,\n} as const;\n\nexport type LocusErrorCodes = Enum<typeof LocusErrorCodes>;\n"],"mappings":";;;;;;;AAGO,IAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC9BE,kBAAkB,EAAE,sBAAsB;EAC1CC,mBAAmB,EAAE,uBAAuB;EAC5CC,WAAW,EAAE,eAAe;EAC5BC,MAAM,EAAE,SAAS;EACjBC,8BAA8B,EAAE,qCAAqC;EACrEC,cAAc,EAAE,iBAAiB;EACjCC,kBAAkB,EAAE,uBAAuB;EAC3CC,cAAc,EAAE,iBAAiB;EAAE;EACnCC,gBAAgB,EAAE,mBAAmB;EAAE;EACvCC,4BAA4B,EAAE,kCAAkC;EAChEC,aAAa,EAAE,gBAAgB,CAAE;AACnC,CAAU;AAiEH,IAAMC,eAAe,GAAAZ,OAAA,CAAAY,eAAA,GAAG;EAC7BC,cAAc,EAAE;
|
|
1
|
+
{"version":3,"names":["EndMeetingReason","exports","maxMeetingDuration","allParticipantsLeft","sipHostLeft","noHost","waitingForMpsEndMeetingTimeout","fraudDetection","meetingEndedByHost","meetingUpdated","meetingCancelled","autoEndWithSingleParticipant","breakoutEnded","LocusErrorCodes","LOCUS_INACTIVE","LOCUS_USER_FULL"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\nimport {HtMeta} from '../hashTree/types';\n\nexport const EndMeetingReason = {\n maxMeetingDuration: 'MAX_MEETING_DURATION',\n allParticipantsLeft: 'ALL_PARTICIPANTS_LEFT',\n sipHostLeft: 'SIP_HOST_LEFT',\n noHost: 'NO_HOST',\n waitingForMpsEndMeetingTimeout: 'WAITING_FOR_MPS_END_MEETING_TIMEOUT',\n fraudDetection: 'FRAUD_DETECTION',\n meetingEndedByHost: 'MEETING_ENDED_BY_HOST',\n meetingUpdated: 'MEETING_UPDATED', // Locus code has comment about EndMeetingIfPossible reason for this one\n meetingCancelled: 'MEETING_CANCELLED', // Locus code has comment about EndMeetingIfPossible reason for this one\n autoEndWithSingleParticipant: 'AUTO_END_WITH_SINGLE_PARTICIPANT',\n breakoutEnded: 'BREAKOUT_ENDED', // indicates that only a breakout session ended, not the whole meeting\n} as const;\n\nexport type EndMeetingReason = Enum<typeof EndMeetingReason>;\n\nexport type LocusFullState = {\n active: boolean;\n count: number;\n lastActive: string;\n locked: boolean;\n sessionId: string;\n sessionIds: string[];\n startTime: number;\n state: string;\n type: string;\n endMeetingReason?: EndMeetingReason;\n};\n\nexport type Links = {\n services: Record<'breakout' | 'record', {url: string}>; // there exist also other services, but these are the ones we currently use\n resources: Record<'webcastInstance' | 'visibleDataSets', {url: string}>; // there exist also other resources, but these are the ones we currently use\n};\n\nexport type LocusDTO = {\n controls?: any;\n embeddedApps?: any[];\n fullState?: LocusFullState;\n host?: {\n id: string;\n incomingCallProtocols: any[];\n isExternal: boolean;\n name: string;\n orgId: string;\n };\n htMeta?: HtMeta;\n info?: any;\n jsSdkMeta?: {\n removedParticipantIds: string[]; // list of ids of participants that are removed in the last update\n forceReplaceMembers?: boolean; // when true, forces a full replacement of meeting members (e.g. when switching to a new hash tree parser - when moving between breakouts)\n };\n links?: Links;\n mediaShares?: any[];\n meetings?: any[];\n participants: any[];\n replaces?: any[];\n self?: any;\n sequence?: {\n dirtyParticipants: number;\n entries: number[];\n rangeEnd: number;\n rangeStart: number;\n sequenceHash: number;\n sessionToken: string;\n since: string;\n totalParticipants: number;\n };\n syncUrl?: string;\n url?: string;\n};\n\nexport type ReplacesInfo = {\n locusUrl: string;\n replacedAt: string;\n sessionId: string;\n};\n\nexport const LocusErrorCodes = {\n LOCUS_INACTIVE: 2403004,\n LOCUS_USER_FULL: 2423001,\n} as const;\n\nexport type LocusErrorCodes = Enum<typeof LocusErrorCodes>;\n"],"mappings":";;;;;;;AAGO,IAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC9BE,kBAAkB,EAAE,sBAAsB;EAC1CC,mBAAmB,EAAE,uBAAuB;EAC5CC,WAAW,EAAE,eAAe;EAC5BC,MAAM,EAAE,SAAS;EACjBC,8BAA8B,EAAE,qCAAqC;EACrEC,cAAc,EAAE,iBAAiB;EACjCC,kBAAkB,EAAE,uBAAuB;EAC3CC,cAAc,EAAE,iBAAiB;EAAE;EACnCC,gBAAgB,EAAE,mBAAmB;EAAE;EACvCC,4BAA4B,EAAE,kCAAkC;EAChEC,aAAa,EAAE,gBAAgB,CAAE;AACnC,CAAU;AAiEH,IAAMC,eAAe,GAAAZ,OAAA,CAAAY,eAAA,GAAG;EAC7BC,cAAc,EAAE,OAAO;EACvBC,eAAe,EAAE;AACnB,CAAU","ignoreList":[]}
|
package/dist/meeting/index.js
CHANGED
|
@@ -94,6 +94,7 @@ var _joinWebinarError = _interopRequireDefault(require("../common/errors/join-we
|
|
|
94
94
|
var _brbState = require("./brbState");
|
|
95
95
|
var _multistreamNotSupportedError = _interopRequireDefault(require("../common/errors/multistream-not-supported-error"));
|
|
96
96
|
var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
|
|
97
|
+
var _types = require("../locus-info/types");
|
|
97
98
|
var _aiEnableRequest = _interopRequireDefault(require("../aiEnableRequest"));
|
|
98
99
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof _Symbol && r[_Symbol$iterator] || r["@@iterator"]; if (!t) { if (_Array$isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
99
100
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? _Array$from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -6464,9 +6465,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6464
6465
|
|
|
6465
6466
|
// let's do a retry (but not on 1-1 calls, because the flow would get too complicated)
|
|
6466
6467
|
shouldRetry = !_util3.default.isOneOnOneCall(this.locusInfo.parsedLocus) && (retryCount < 1 || (_t10 instanceof _webexErrors.UserNotJoinedError || this.isErrorMeaningLocusDroppedUs(_t10)) && retryCount < JOIN_WITH_MEDIA_RETRY_MAX_COUNT);
|
|
6467
|
-
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10)) {
|
|
6468
|
+
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10) || this.isLocusUserFullError(_t10)) {
|
|
6468
6469
|
// errors related to offer creation (for example missing H264 codec) will happen again no matter how many times we try,
|
|
6469
6470
|
// so there is no point doing a retry
|
|
6471
|
+
// when the locus is full, we also don't want to retry, because it will just fail again
|
|
6470
6472
|
shouldRetry = false;
|
|
6471
6473
|
}
|
|
6472
6474
|
if (_internalPluginMetrics.CallDiagnosticUtils.isBrowserMediaError(_t10)) {
|
|
@@ -6535,7 +6537,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6535
6537
|
prevError: undefined
|
|
6536
6538
|
};
|
|
6537
6539
|
this.locusInfo.suspendDestroyMeeting(false);
|
|
6538
|
-
|
|
6540
|
+
|
|
6541
|
+
// LOCUS_USER_FULL is a definitive capacity error the client must surface, so it takes
|
|
6542
|
+
// precedence over any earlier retryable error stored in firstError.
|
|
6543
|
+
throw this.isLocusUserFullError(_t10) ? _t10 : firstError !== null && firstError !== void 0 ? firstError : _t10;
|
|
6539
6544
|
case 18:
|
|
6540
6545
|
case "end":
|
|
6541
6546
|
return _context17.stop();
|
|
@@ -7848,6 +7853,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7848
7853
|
var causeStatusCode = error === null || error === void 0 ? void 0 : (_cause = error.cause) === null || _cause === void 0 ? void 0 : _cause.statusCode;
|
|
7849
7854
|
return statusCode === 409 || statusCode === 403 || causeStatusCode === 409 || causeStatusCode === 403;
|
|
7850
7855
|
}
|
|
7856
|
+
}, {
|
|
7857
|
+
key: "isLocusUserFullError",
|
|
7858
|
+
value: function isLocusUserFullError(error) {
|
|
7859
|
+
var _error6, _error6$body;
|
|
7860
|
+
return (error === null || error === void 0 ? void 0 : (_error6 = error.error) === null || _error6 === void 0 ? void 0 : (_error6$body = _error6.body) === null || _error6$body === void 0 ? void 0 : _error6$body.errorCode) === _types.LocusErrorCodes.LOCUS_USER_FULL;
|
|
7861
|
+
}
|
|
7851
7862
|
|
|
7852
7863
|
/**
|
|
7853
7864
|
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|