@ckeditor/ckeditor-cloud-services-collaboration 53.0.1 → 53.0.3

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.
Files changed (107) hide show
  1. package/dist/index.js +20 -20
  2. package/dist/index.js.map +1 -1
  3. package/package.json +4 -4
  4. package/src/ckeditorcloudserviceserror.js +2 -2
  5. package/src/ckeditorcloudservicesservererror.js +2 -2
  6. package/src/collaborativeeditingservice/collaborativeeditingservice.js +3 -3
  7. package/src/collaborativeeditingservice/descriptors/operationmetadatadescriptor.js +2 -2
  8. package/src/collaborativeeditingservice/helpers/operationmetadatahelpers.js +2 -2
  9. package/src/collaborativeeditingservice/messages/collaborativeeditingconnectmessage.js +2 -2
  10. package/src/collaborativeeditingservice/messages/collaborativeeditingreconnectmessage.js +2 -2
  11. package/src/collaborativeeditingservice/messages/collaborativeeditingupdatemessage.js +2 -2
  12. package/src/collaborativeeditingservice/messages/getdocumentdetailsmessage.js +2 -2
  13. package/src/collaborativeeditingservice/responses/collaborativeeditingconnectresponse.js +2 -2
  14. package/src/collaborativeeditingservice/responses/collaborativeeditingresponse.js +2 -2
  15. package/src/collaborativeeditingservice/responses/getdocumentdetailsresponse.js +2 -2
  16. package/src/comments-v2/commentsservice.js +3 -3
  17. package/src/comments-v2/descriptors/commentdescriptor.js +2 -2
  18. package/src/comments-v2/descriptors/commentsthreaddescriptor.js +2 -2
  19. package/src/comments-v2/descriptors/commentthreadaddedcomment.js +2 -2
  20. package/src/comments-v2/messages/addcommentmessage.js +2 -2
  21. package/src/comments-v2/messages/comment-threads/addcommentthreadmessage.js +2 -2
  22. package/src/comments-v2/messages/comment-threads/reopencommentthreadmessage.js +2 -2
  23. package/src/comments-v2/messages/comment-threads/resolvecommentthreadmessage.js +2 -2
  24. package/src/comments-v2/messages/comment-threads/updatecommentthreadmessage.js +2 -2
  25. package/src/comments-v2/messages/connectmessage.js +2 -2
  26. package/src/comments-v2/messages/getcommentthreadmessage.js +2 -2
  27. package/src/comments-v2/messages/getdocumentthreadsmessage.js +2 -2
  28. package/src/comments-v2/messages/removecommentmessage.js +2 -2
  29. package/src/comments-v2/messages/removecommentthreadmessage.js +2 -2
  30. package/src/comments-v2/messages/updatecommentmessage.js +2 -2
  31. package/src/comments-v2/responses/addcommentresponse.js +2 -2
  32. package/src/comments-v2/responses/comment-threads/addcommentthreadresponse.js +2 -2
  33. package/src/comments-v2/responses/comment-threads/resolvecommentthreadresponse.js +2 -2
  34. package/src/comments-v2/responses/connectresponse.js +2 -2
  35. package/src/comments-v2/responses/getcommentthreadresponse.js +2 -2
  36. package/src/comments-v2/responses/getdocumentthreadsresponse.js +2 -2
  37. package/src/compiledmessages.js +3 -3
  38. package/src/descriptor.js +2 -2
  39. package/src/descriptors/keyvaluedescriptor.js +2 -2
  40. package/src/editor/editorservice.js +3 -3
  41. package/src/editor/messages/iseditorbundleuploadedmessage.js +2 -2
  42. package/src/editor/responses/iseditorbundleuploadedresponse.js +2 -2
  43. package/src/errors/ServiceNotConnectedError.js +2 -2
  44. package/src/index.js +2 -2
  45. package/src/message.js +2 -2
  46. package/src/messagescompressor.js +2 -2
  47. package/src/messagesmapper.js +2 -2
  48. package/src/revision-history/descriptors/revisiondescriptor.js +2 -2
  49. package/src/revision-history/messages/revisionhistoryconnectmessage.js +2 -2
  50. package/src/revision-history/messages/revisionhistorygetrevisionmessage.js +2 -2
  51. package/src/revision-history/messages/revisionhistoryreconnectmessage.js +2 -2
  52. package/src/revision-history/messages/revisionhistoryupdaterevisionsmessage.js +2 -2
  53. package/src/revision-history/responses/revisionhistoryconnectresponse.js +2 -2
  54. package/src/revision-history/responses/revisionhistorygetrevisionresponse.js +2 -2
  55. package/src/revision-history/responses/revisionhistoryupdaterevisionsresponse.js +2 -2
  56. package/src/revision-history/revision.js +1 -1
  57. package/src/revision-history/revisionhistoryservice.js +3 -3
  58. package/src/services.js +1 -1
  59. package/src/sessions/descriptors/sessiondescriptor.js +2 -2
  60. package/src/sessions/messages/sessionsconnectmessage.js +2 -2
  61. package/src/sessions/messages/socketconnectmessage.js +2 -2
  62. package/src/sessions/messages/socketdisconnectmessage.js +2 -2
  63. package/src/sessions/responses/sessionsconnectresponse.js +2 -2
  64. package/src/sessions/sessioncollection.js +2 -2
  65. package/src/sessions/sessions.js +2 -2
  66. package/src/track-changes/descriptors/suggestiondescriptor.js +2 -2
  67. package/src/track-changes/messages/addsuggestionmessage.js +2 -2
  68. package/src/track-changes/messages/batchUpdateSuggestionsStateMessage.js +2 -2
  69. package/src/track-changes/messages/connectmessage.js +2 -2
  70. package/src/track-changes/messages/getallsuggestionsmessage.js +2 -2
  71. package/src/track-changes/messages/getsuggestionmessage.js +2 -2
  72. package/src/track-changes/messages/updatesuggestionmessage.js +2 -2
  73. package/src/track-changes/responses/addsuggestionresponse.js +2 -2
  74. package/src/track-changes/responses/connectresponse.js +2 -2
  75. package/src/track-changes/responses/getallsuggestionsresponse.js +2 -2
  76. package/src/track-changes/responses/getsuggestionresponse.js +2 -2
  77. package/src/track-changes/trackchangesservice.js +3 -3
  78. package/src/types.js +1 -1
  79. package/src/users/descriptors/userdescriptor.js +2 -2
  80. package/src/users/messages/getmanyusersmessage.js +2 -2
  81. package/src/users/messages/getusermessage.js +2 -2
  82. package/src/users/responses/getmanyusersresponse.js +2 -2
  83. package/src/users/responses/getuserresponse.js +2 -2
  84. package/src/users/user.js +2 -2
  85. package/src/version.d.ts +1 -1
  86. package/src/version.js +2 -2
  87. package/src/websocketgateway/channel.js +3 -3
  88. package/src/websocketgateway/messages/channelmessage.js +2 -2
  89. package/src/websocketgateway/parser/packetparser.js +2 -2
  90. package/src/websocketgateway/parser/packets/bytesbytespacketdatamessage.js +3 -3
  91. package/src/websocketgateway/parser/packets/numberbytespacketdatamessage.js +3 -3
  92. package/src/websocketgateway/parser/packets/numbernumberpacketdatamessag.js +3 -3
  93. package/src/websocketgateway/parser/packets/numberobjectpacketdatamessage.js +3 -3
  94. package/src/websocketgateway/parser/packets/numberstringpacketdatamessag.js +3 -3
  95. package/src/websocketgateway/parser/packets/objectbufferpacketdatamessage.js +3 -3
  96. package/src/websocketgateway/parser/packets/objectobjectpacketdatamessage.js +3 -3
  97. package/src/websocketgateway/parser/packets/packagedatamessage.js +2 -2
  98. package/src/websocketgateway/parser/packets/packetmessage.js +3 -3
  99. package/src/websocketgateway/parser/packets/packetoptionsmessage.js +2 -2
  100. package/src/websocketgateway/parser/packets/stringbytespacketdatamessage.js +3 -3
  101. package/src/websocketgateway/parser/packets/stringnumberpacketdatamessage.js +3 -3
  102. package/src/websocketgateway/parser/packets/stringobjectpacketdatamessage.js +3 -3
  103. package/src/websocketgateway/parser/packets/stringstringpacketdatamessage.js +3 -3
  104. package/src/websocketgateway/parser/parser.js +3 -3
  105. package/src/websocketgateway/parser/parserutils.js +2 -2
  106. package/src/websocketgateway/requestsmanager.js +2 -2
  107. package/src/websocketgateway/websocketgateway.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor-cloud-services-collaboration",
3
- "version": "53.0.1",
3
+ "version": "53.0.3",
4
4
  "description": "CKEditor Cloud Services Collaboration low-level API is required by CKEditor 5 Collaboration features to enable real-time collaborative editing in CKEditor 5.",
5
5
  "main": "src/index.js",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -27,15 +27,15 @@
27
27
  "author": "CKSource Holding sp. z o.o. (http://cksource.com/)",
28
28
  "homepage": "https://ckeditor.com/ckeditor-cloud-services/",
29
29
  "dependencies": {
30
- "protobufjs": "7.5.0",
30
+ "protobufjs": "7.5.4",
31
31
  "socket.io-client": "4.7.0",
32
32
  "socket.io-parser": "~4.2.3",
33
33
  "url-parse": "1.5.10",
34
34
  "uuid": "^9.0.1"
35
35
  },
36
36
  "peerDependencies": {
37
- "ckeditor5": ">= 37.0",
38
- "@ckeditor/ckeditor5-utils": ">= 37.0"
37
+ "ckeditor5": ">= 37.0.0 || ^0.0.0-nightly || ^0.0.0-internal",
38
+ "@ckeditor/ckeditor5-utils": ">= 37.0 || ^0.0.0-nightly || ^0.0.0-internal"
39
39
  },
40
40
  "type": "module",
41
41
  "obfuscated": true
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0xc4ce54,_0xcb08db,_0x47e062=null,_0x22b2e2={}){super('cloud-services-internal-error:\x20'+_0xc4ce54),this['context']=_0xcb08db,this['code']=_0x47e062,this['data']=_0x22b2e2,this['name']='CKEditorError';}static['fromPublicError'](_0x194ad8){return new CKEditorCloudServicesError(function(_0x4a6297){let _0x8d952='cloud-services-error:\x20'+_0x4a6297['message'];return _0x4a6297['data']&&(_0x8d952+='\x0aError\x20data:\x20'+JSON['stringify'](_0x4a6297['data'])),_0x4a6297['explanation']&&(_0x8d952+='\x0aExplanation:\x20'+_0x4a6297['explanation']),_0x4a6297['action']&&(_0x8d952+='\x0aAction:\x20'+_0x4a6297['action']),_0x4a6297['traceId']&&(_0x8d952+='\x0aTraceId:\x20'+_0x4a6297['traceId']),_0x4a6297['code']&&(_0x8d952+='\x0aCode:\x20'+_0x4a6297['code']),_0x8d952;}(_0x194ad8),_0x194ad8);}}
23
+ export default class CKEditorCloudServicesError extends Error{['context'];['code'];['data'];constructor(_0x2ca582,_0x591fd1,_0x41b03f=null,_0x2f9a07={}){super('cloud-services-internal-error:\x20'+_0x2ca582),this['context']=_0x591fd1,this['code']=_0x41b03f,this['data']=_0x2f9a07,this['name']='CKEditorError';}static['fromPublicError'](_0x151ea3){return new CKEditorCloudServicesError(function(_0x51f9c5){let _0x353753='cloud-services-error:\x20'+_0x51f9c5['message'];return _0x51f9c5['data']&&(_0x353753+='\x0aError\x20data:\x20'+JSON['stringify'](_0x51f9c5['data'])),_0x51f9c5['explanation']&&(_0x353753+='\x0aExplanation:\x20'+_0x51f9c5['explanation']),_0x51f9c5['action']&&(_0x353753+='\x0aAction:\x20'+_0x51f9c5['action']),_0x51f9c5['traceId']&&(_0x353753+='\x0aTraceId:\x20'+_0x51f9c5['traceId']),_0x51f9c5['code']&&(_0x353753+='\x0aCode:\x20'+_0x51f9c5['code']),_0x353753;}(_0x151ea3),_0x151ea3);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0x4cb393,_0x1d5407){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0x4cb393,this['code']=_0x1d5407['code'],this['traceId']=_0x1d5407['traceId'],this['data']=_0x1d5407['data'];}static['fromPublicError'](_0x4db535){return new CKEditorCloudServicesServerError(function(_0x3f3077){let _0x521738='cloud-services-server-error:\x20'+_0x3f3077['message'];return _0x3f3077['explanation']&&(_0x521738+='\x0aExplanation:\x20'+_0x3f3077['explanation']),_0x3f3077['action']&&(_0x521738+='\x0aAction:\x20'+_0x3f3077['action']),_0x3f3077['traceId']&&(_0x521738+='\x0aTraceId:\x20'+_0x3f3077['traceId']),_0x3f3077['code']&&(_0x521738+='\x0aCode:\x20'+_0x3f3077['code']),_0x521738;}(_0x4db535),_0x4db535);}}
23
+ export default class CKEditorCloudServicesServerError extends Error{['code'];['traceId'];['data'];constructor(_0xdc30c2,_0x390ea8){super(),this['name']='CKEditorCloudServicesServerError',this['stack']=void 0x0,this['message']=_0xdc30c2,this['code']=_0x390ea8['code'],this['traceId']=_0x390ea8['traceId'],this['data']=_0x390ea8['data'];}static['fromPublicError'](_0x4ff8b3){return new CKEditorCloudServicesServerError(function(_0x5c6856){let _0x3784d0='cloud-services-server-error:\x20'+_0x5c6856['message'];return _0x5c6856['explanation']&&(_0x3784d0+='\x0aExplanation:\x20'+_0x5c6856['explanation']),_0x5c6856['action']&&(_0x3784d0+='\x0aAction:\x20'+_0x5c6856['action']),_0x5c6856['traceId']&&(_0x3784d0+='\x0aTraceId:\x20'+_0x5c6856['traceId']),_0x5c6856['code']&&(_0x3784d0+='\x0aCode:\x20'+_0x5c6856['code']),_0x3784d0;}(_0x4ff8b3),_0x4ff8b3);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{v4 as _0xf28218}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x1d9184 from'./../messagescompressor.js';import _0x555b56 from'./../sessions/sessions.js';import _0x32f3f9 from'./messages/collaborativeeditingconnectmessage.js';import _0x408367 from'./messages/collaborativeeditingupdatemessage.js';import _0x280d59 from'./messages/collaborativeeditingreconnectmessage.js';import _0x3dbea1 from'./responses/collaborativeeditingresponse.js';import _0x14e6b6 from'./responses/collaborativeeditingconnectresponse.js';import _0x2445aa from'./../websocketgateway/websocketgateway.js';import _0x5b5e37 from'../ckeditorcloudserviceserror.js';import _0x37834b from'../errors/ServiceNotConnectedError.js';import _0x17aea7 from'./responses/getdocumentdetailsresponse.js';import _0x5ac1cf from'./messages/getdocumentdetailsmessage.js';export const _SERVICE=0x1;export default class extends/* #__PURE__ -- @preserve */
24
- EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x2c719b,_0x1989a9){if(super(),!_0x2c719b)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0x1989a9??_0xf28218(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x2c719b;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x37cb06,_0x355f6b={'buffers':[],'types':[]},_0x453b92){const _0x1a6c59=new _0x32f3f9(this['getId'](),_0x355f6b['buffers'],_0x355f6b['types'],this['_bundleVersion'],_0x453b92);return this['_connect'](_0x37cb06,_0x1a6c59);}['reconnect'](_0xdead48,_0x2795b5){if(this['isConnected']())throw new _0x5b5e37('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0xdead48);return this['_connect'](_0xdead48,new _0x280d59(this['getId'](),_0x2795b5,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0x33437c=new _0x5ac1cf(this['getId']());if(!this['_wsGateway'])throw new _0x37834b('Collaborative\x20Editing',this);const _0x3ed84e=await this['_wsGateway']['_sendRequest'](0x1,_0x5ac1cf['TYPE'],_0x1d9184['encode'](_0x33437c));return _0x1d9184['decode'](_0x3ed84e,_0x17aea7);}async['sendOperations'](_0x2ec795,_0x229454,_0x9c9ca6){if(!_0x2ec795?.['types']?.['length'])throw new _0x5b5e37('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x3b21c7='number'==typeof _0x229454?_0x229454:parseInt(_0x229454);if(!Number['isInteger'](_0x3b21c7)||_0x3b21c7<0x0)throw new _0x5b5e37('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x10e816=new _0x408367(this['getId'](),_0x2ec795['buffers'],_0x2ec795['types'],_0x3b21c7,[],_0x9c9ca6);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x37834b('Collaborative\x20Editing',this);const _0x3cbd02=await this['_wsGateway']['_sendRequest'](0x1,_0x408367['TYPE'],_0x1d9184['encode'](_0x10e816));return _0x1d9184['decode'](_0x3cbd02,_0x3dbea1);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x37834b('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x555b56['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x5a86f4,_0x37c7a5){return _0x555b56['getConnectedSessions'](_0x5a86f4,_0x37c7a5,0x1);}async['_connect'](_0x62a81,_0x26104b){if(this['isConnected']())return;if(_0x62a81['state']!==_0x2445aa['STATE_CONNECTED'])throw new _0x5b5e37('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x62a81);this['_wsGateway']=_0x62a81,this['stopListening'](_0x62a81,'change:state');const _0x1454e9=await _0x62a81['_sendRequest'](0x1,_0x26104b['constructor']['TYPE'],_0x1d9184['encode'](_0x26104b)),_0x1e0cba=_0x1d9184['decode'](_0x1454e9,_0x14e6b6);return this['listenTo'](_0x62a81,'change:state',(_0x46ae6c,_0x144047,_0x1f2350)=>this['_onWsGatewayStateChange'](_0x1f2350),{'priority':_0x2445aa['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x62a81,_0x1e0cba['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0x1e0cba;}['_connectToChannel'](_0x56f8e6,_0x1cdeb3){this['_channel']=_0x56f8e6['_getChannel'](0x1,_0x1cdeb3),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x408367['TYPE']),(_0x47c1e9,_0x520880)=>{const _0x6ed2d3=_0x1d9184['decode'](_0x520880,_0x408367);this['fire']('operationsReceived',_0x6ed2d3['baseVersion'],_0x6ed2d3['data'],_0x6ed2d3['metadata']);});}['_onWsGatewayStateChange'](_0x46d909){_0x46d909===_0x2445aa['STATE_DISCONNECTED']&&this['disconnect']();}}
23
+ import{v4 as _0x30aa92}from'uuid';import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x22a122 from'./../messagescompressor.js';import _0x72b894 from'./../sessions/sessions.js';import _0x435615 from'./messages/collaborativeeditingconnectmessage.js';import _0x11150f from'./messages/collaborativeeditingupdatemessage.js';import _0x2abc53 from'./messages/collaborativeeditingreconnectmessage.js';import _0x1e620e from'./responses/collaborativeeditingresponse.js';import _0xce34ac from'./responses/collaborativeeditingconnectresponse.js';import _0x17e5dc from'./../websocketgateway/websocketgateway.js';import _0x4e6fcc from'../ckeditorcloudserviceserror.js';import _0x26c1e3 from'../errors/ServiceNotConnectedError.js';import _0x4b3cfd from'./responses/getdocumentdetailsresponse.js';import _0x52ba52 from'./messages/getdocumentdetailsmessage.js';export const _SERVICE=0x1;export default class extends/* #__PURE__ -- @preserve */
24
+ EmitterMixin(){static ['_SERVICE']=0x1;['_bundleVersion'];['_id'];['_isConnected'];['_wsGateway'];['_channel'];['_connectedSessions'];constructor(_0x233d21,_0xb41132){if(super(),!_0x233d21)throw new TypeError('Param\x20\x22bundleVersion\x22\x20must\x20be\x20provided.');this['_id']=_0xb41132??_0x30aa92(),this['_isConnected']=!0x1,this['_bundleVersion']=_0x233d21;}['getId'](){return this['_id'];}['isConnected'](){return this['_isConnected'];}['connect'](_0x5aa45c,_0x5182f6={'buffers':[],'types':[]},_0x59c604){const _0x18bd9f=new _0x435615(this['getId'](),_0x5182f6['buffers'],_0x5182f6['types'],this['_bundleVersion'],_0x59c604);return this['_connect'](_0x5aa45c,_0x18bd9f);}['reconnect'](_0x2b7211,_0x416294){if(this['isConnected']())throw new _0x4e6fcc('Cannot\x20reconnect\x20to\x20already\x20connected\x20service.',_0x2b7211);return this['_connect'](_0x2b7211,new _0x2abc53(this['getId'](),_0x416294,this['_bundleVersion']));}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['getDocumentDetails'](){const _0xf9feb9=new _0x52ba52(this['getId']());if(!this['_wsGateway'])throw new _0x26c1e3('Collaborative\x20Editing',this);const _0x135ebb=await this['_wsGateway']['_sendRequest'](0x1,_0x52ba52['TYPE'],_0x22a122['encode'](_0xf9feb9));return _0x22a122['decode'](_0x135ebb,_0x4b3cfd);}async['sendOperations'](_0x55ec31,_0x35ba07,_0x136a45){if(!_0x55ec31?.['types']?.['length'])throw new _0x4e6fcc('Cannot\x20send\x20empty\x20update.',this['_wsGateway']);const _0x55f88a='number'==typeof _0x35ba07?_0x35ba07:parseInt(_0x35ba07);if(!Number['isInteger'](_0x55f88a)||_0x55f88a<0x0)throw new _0x4e6fcc('Base\x20version\x20not\x20provided.',this['_wsGateway']);const _0x2f4d20=new _0x11150f(this['getId'](),_0x55ec31['buffers'],_0x55ec31['types'],_0x55f88a,[],_0x136a45);if(!this['_wsGateway']||!this['_isConnected'])throw new _0x26c1e3('Collaborative\x20Editing',this);const _0x22bd82=await this['_wsGateway']['_sendRequest'](0x1,_0x11150f['TYPE'],_0x22a122['encode'](_0x2f4d20));return _0x22a122['decode'](_0x22bd82,_0x1e620e);}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x26c1e3('Collaborative\x20Editing',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x72b894['getConnectedSessions'](this['_wsGateway'],this['_id'],0x1)),this['_connectedSessions'];}static['getConnectedSessions'](_0x297a77,_0x4e20be){return _0x72b894['getConnectedSessions'](_0x297a77,_0x4e20be,0x1);}async['_connect'](_0x45e54c,_0x2cdafb){if(this['isConnected']())return;if(_0x45e54c['state']!==_0x17e5dc['STATE_CONNECTED'])throw new _0x4e6fcc('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x45e54c);this['_wsGateway']=_0x45e54c,this['stopListening'](_0x45e54c,'change:state');const _0x11eb23=await _0x45e54c['_sendRequest'](0x1,_0x2cdafb['constructor']['TYPE'],_0x22a122['encode'](_0x2cdafb)),_0xa8e177=_0x22a122['decode'](_0x11eb23,_0xce34ac);return this['listenTo'](_0x45e54c,'change:state',(_0xe1cb5,_0xf2ddfa,_0x31145b)=>this['_onWsGatewayStateChange'](_0x31145b),{'priority':_0x17e5dc['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x45e54c,_0xa8e177['channel']),this['_isConnected']=!0x0,this['fire']('connected'),_0xa8e177;}['_connectToChannel'](_0x2bc5f4,_0x5d703e){this['_channel']=_0x2bc5f4['_getChannel'](0x1,_0x5d703e),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x11150f['TYPE']),(_0x2912e7,_0x1a99de)=>{const _0x1da00c=_0x22a122['decode'](_0x1a99de,_0x11150f);this['fire']('operationsReceived',_0x1da00c['baseVersion'],_0x1da00c['data'],_0x1da00c['metadata']);});}['_onWsGatewayStateChange'](_0x99c5d9){_0x99c5d9===_0x17e5dc['STATE_DISCONNECTED']&&this['disconnect']();}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2268f4 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0x2268f4{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']={'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};static['toJSON']({createdAt:_0x4b6291,..._0x523cbd}){const _0x5ae3dc={..._0x523cbd};return _0x4b6291?.['toISOString']&&(_0x5ae3dc['createdAt']=_0x4b6291['toISOString']()),_0x5ae3dc;}static['fromJSON']({createdAt:_0x19a278,..._0x5cb1cc}){const _0x220273={..._0x5cb1cc};return _0x19a278&&(_0x220273['createdAt']=new Date(_0x19a278)),_0x220273;}}
23
+ import _0xa74e23 from'./../../descriptor.js';export default class OperationMetadataDescriptor extends _0xa74e23{static ['DESCRIPTOR_NAME']='OperationMetadataDescriptor';static ['DESCRIPTOR']={'fields':{'userId':{'type':'string','id':0x1},'type':{'type':'string','id':0x2},'createdAt':{'type':'string','id':0x3}}};static['toJSON']({createdAt:_0x1365b0,..._0x1e98ef}){const _0x547b9b={..._0x1e98ef};return _0x1365b0?.['toISOString']&&(_0x547b9b['createdAt']=_0x1365b0['toISOString']()),_0x547b9b;}static['fromJSON']({createdAt:_0xfef267,..._0x3fc95b}){const _0x1af1c2={..._0x3fc95b};return _0xfef267&&(_0x1af1c2['createdAt']=new Date(_0xfef267)),_0x1af1c2;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x194bc0,_0x5f496e){if(!_0x194bc0?.['length']||!_0x5f496e?.['length'])return[];const _0x4b0cd7=[];let _0x5cdd11=0x0;for(const _0x4a4a97 of _0x194bc0)if(0x0!==_0x4a4a97){if(!_0x5f496e[_0x5cdd11])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x4b0cd7['push'](_0x5f496e[_0x5cdd11]),_0x5cdd11++;}else _0x4b0cd7['push'](_0x4b0cd7[_0x4b0cd7['length']-0x1]);return _0x4b0cd7;}static['removeUnnecessaryMetadata'](_0x30b8b2,_0x46db41){if(!_0x30b8b2?.['length']||!_0x46db41?.['length'])return[];const _0x36a781=[];for(let _0xb7ce55=0x0;_0xb7ce55<_0x30b8b2['length'];_0xb7ce55++)if(0x0!==_0x30b8b2[_0xb7ce55]){if(!_0x46db41[_0xb7ce55])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x36a781['push'](_0x46db41[_0xb7ce55]);}return _0x36a781;}}
23
+ export default class OperationMetadataHelpers{static['prepareMetadataForOperations'](_0x1f2be5,_0x23c6fd){if(!_0x1f2be5?.['length']||!_0x23c6fd?.['length'])return[];const _0x39bad9=[];let _0x5a820f=0x0;for(const _0x25f6d4 of _0x1f2be5)if(0x0!==_0x25f6d4){if(!_0x23c6fd[_0x5a820f])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x39bad9['push'](_0x23c6fd[_0x5a820f]),_0x5a820f++;}else _0x39bad9['push'](_0x39bad9[_0x39bad9['length']-0x1]);return _0x39bad9;}static['removeUnnecessaryMetadata'](_0x24452e,_0x10bdb5){if(!_0x24452e?.['length']||!_0x10bdb5?.['length'])return[];const _0x2867fc=[];for(let _0x4af8d0=0x0;_0x4af8d0<_0x24452e['length'];_0x4af8d0++)if(0x0!==_0x24452e[_0x4af8d0]){if(!_0x10bdb5[_0x4af8d0])throw new Error('Missing\x20metadata\x20for\x20a\x20operation');_0x2867fc['push'](_0x10bdb5[_0x4af8d0]);}return _0x2867fc;}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x23b33d from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x23b33d{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x2e16bb,_0x5b6946,_0x127f2,_0x188135,_0x578d81=''){super(),this['id']=_0x2e16bb,this['buffers']=_0x5b6946,this['types']=_0x127f2,this['bundleVersion']=_0x188135,this['lastOperationId']=_0x578d81;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x4f3842){return new CollaborativeEditingConnectMessage(_0x4f3842['id'],_0x4f3842['buffers'],_0x4f3842['types'],_0x4f3842['bundleVersion'],_0x4f3842['lastOperationId']);}}
23
+ import _0x3ce9b1 from'./../../message.js';export default class CollaborativeEditingConnectMessage extends _0x3ce9b1{['id'];['buffers'];['types'];['bundleVersion'];['lastOperationId'];static ['TYPE']='11';static ['READABLE_TYPE_NAME']='connectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'lastOperationId':{'type':'string','id':0x5}}};constructor(_0x2e4738,_0xa6220,_0x5056a1,_0x2e7a8c,_0x423196=''){super(),this['id']=_0x2e4738,this['buffers']=_0xa6220,this['types']=_0x5056a1,this['bundleVersion']=_0x2e7a8c,this['lastOperationId']=_0x423196;}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'bundleVersion':this['bundleVersion'],'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0xc84da){return new CollaborativeEditingConnectMessage(_0xc84da['id'],_0xc84da['buffers'],_0xc84da['types'],_0xc84da['bundleVersion'],_0xc84da['lastOperationId']);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3e2bff from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x3e2bff{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0x2ea802,_0x4960f7,_0x1aab58){super(),this['id']=_0x2ea802,this['lastKnowVersion']=_0x4960f7,this['bundleVersion']=_0x1aab58;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x419c30){return new CollaborativeEditingReconnectMessage(_0x419c30['id'],_0x419c30['lastKnowVersion'],_0x419c30['bundleVersion']);}}
23
+ import _0x5184ff from'./../../message.js';export default class CollaborativeEditingReconnectMessage extends _0x5184ff{['id'];['lastKnowVersion'];['bundleVersion'];static ['TYPE']='12';static ['READABLE_TYPE_NAME']='reconnectToDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingReconnectMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'bundleVersion':{'type':'string','id':0x2},'lastKnowVersion':{'type':'uint32','id':0x3}}};constructor(_0xc96ab9,_0x4cfb1f,_0x8fe8a4){super(),this['id']=_0xc96ab9,this['lastKnowVersion']=_0x4cfb1f,this['bundleVersion']=_0x8fe8a4;}['toJSON'](){return{'id':this['id'],'bundleVersion':this['bundleVersion'],'lastKnowVersion':this['lastKnowVersion']};}static['fromJSON'](_0x217f11){return new CollaborativeEditingReconnectMessage(_0x217f11['id'],_0x217f11['lastKnowVersion'],_0x217f11['bundleVersion']);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5d0891 from'./../../message.js';import _0x544a9d from'./../helpers/operationmetadatahelpers.js';import _0x5b3180 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x5d0891{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x34a547,_0x10034c,_0x26ea9b,_0x536e43,_0x419787=[],_0xc68bcf=''){super(),this['id']=_0x34a547,this['buffers']=_0x10034c,this['types']=_0x26ea9b,this['baseVersion']=_0x536e43,this['metadata']=_0x419787,this['lastOperationId']=_0xc68bcf;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':_0x544a9d['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x5b3180['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x523ab0){return new CollaborativeEditingUpdateMessage(_0x523ab0['id'],_0x523ab0['buffers'],_0x523ab0['types'],_0x523ab0['baseVersion'],_0x544a9d['prepareMetadataForOperations'](_0x523ab0['types'],_0x523ab0['metadata'])['map'](_0x5b3180['fromJSON']),_0x523ab0['lastOperationId']);}}
23
+ import _0x3eda12 from'./../../message.js';import _0x31e99b from'./../helpers/operationmetadatahelpers.js';import _0x4347ee from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingUpdateMessage extends _0x3eda12{['id'];['buffers'];['types'];['baseVersion'];['metadata'];['lastOperationId'];static ['TYPE']='13';static ['READABLE_TYPE_NAME']='updateDocument';static ['DESCRIPTOR_NAME']='CollaborativeEditingUpdateMessage';static ['DESCRIPTOR']={'fields':{'id':{'type':'string','id':0x1},'baseVersion':{'type':'uint32','id':0x2},'buffers':{'rule':'repeated','type':'bytes','id':0x3},'types':{'rule':'repeated','type':'uint32','id':0x4},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x6},'lastOperationId':{'type':'string','id':0x7}}};constructor(_0x37ec84,_0x15cfdc,_0x9eb839,_0x548b15,_0x52b545=[],_0x30b0f1=''){super(),this['id']=_0x37ec84,this['buffers']=_0x15cfdc,this['types']=_0x9eb839,this['baseVersion']=_0x548b15,this['metadata']=_0x52b545,this['lastOperationId']=_0x30b0f1;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'lastOperationId':this['lastOperationId']};}['toJSON'](){return{'id':this['id'],'buffers':this['buffers'],'types':this['types'],'baseVersion':this['baseVersion'],'metadata':_0x31e99b['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4347ee['toJSON']),'lastOperationId':this['lastOperationId']};}static['fromJSON'](_0x11b719){return new CollaborativeEditingUpdateMessage(_0x11b719['id'],_0x11b719['buffers'],_0x11b719['types'],_0x11b719['baseVersion'],_0x31e99b['prepareMetadataForOperations'](_0x11b719['types'],_0x11b719['metadata'])['map'](_0x4347ee['fromJSON']),_0x11b719['lastOperationId']);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x217acc from'../../message.js';export default class GetDocumentDetailsMessage extends _0x217acc{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0x509060){super(),this['documentId']=_0x509060;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x2d1740){return new GetDocumentDetailsMessage(_0x2d1740['documentId']);}}
23
+ import _0x2590ad from'../../message.js';export default class GetDocumentDetailsMessage extends _0x2590ad{['documentId'];static ['TYPE']='14';static ['READABLE_TYPE_NAME']='getDocumentDetails';static ['DESCRIPTOR_NAME']='GetDocumentDetailsMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'environmentId':{'type':'string','id':0x2}}};constructor(_0xf53026){super(),this['documentId']=_0xf53026;}get['data'](){return{'documentId':this['documentId']};}['toJSON'](){return{'documentId':this['documentId']};}static['fromJSON'](_0x1495fe){return new GetDocumentDetailsMessage(_0x1495fe['documentId']);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x41eecc from'./../../message.js';import _0x2c007c from'./../helpers/operationmetadatahelpers.js';import _0xf776dd from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x41eecc{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':_0xf776dd['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x39ca84,_0x5c5593,_0x35c119=[],_0x2dff6d=[],_0x56473f=0x0,_0x325cda=[],_0x593754=null,_0x21a17e='',_0x5106bc='',_0x240c32=null){super(),this['channel']=_0x39ca84,this['version']=_0x5c5593,this['buffers']=_0x35c119,this['types']=_0x2dff6d,this['offset']=_0x56473f,this['metadata']=_0x325cda,this['initData']=_0x593754,this['sessionId']=_0x21a17e,this['lastOperationId']=_0x5106bc,this['sessionCreatedAt']=_0x240c32;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':_0x2c007c['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0xf776dd['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x3dcce5){return new CollaborativeEditingConnectResponse(_0x3dcce5['channel'],_0x3dcce5['version'],_0x3dcce5['buffers'],_0x3dcce5['types'],_0x3dcce5['offset'],_0x3dcce5['metadata'],_0x3dcce5['initData'],_0x3dcce5['sessionId'],_0x3dcce5['lastOperationId'],_0x3dcce5['sessionCreatedAt']);}static['fromJSON'](_0x87538b){let _0x5349d2=null;return!0x0===_0x87538b['isInitialized']?_0x5349d2=_0x87538b['initData']??'':'boolean'!=typeof _0x87538b['isInitialized']&&_0x87538b['initData']&&(_0x5349d2=_0x87538b['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x87538b['channel'],'version':_0x87538b['version'],'buffers':_0x87538b['buffers'],'types':_0x87538b['types'],'offset':_0x87538b['offset'],'metadata':_0x2c007c['prepareMetadataForOperations'](_0x87538b['types'],_0x87538b['metadata'])['map'](_0xf776dd['fromJSON']),'initData':_0x5349d2,'sessionId':_0x87538b['sessionId'],'lastOperationId':_0x87538b['lastOperationId'],'sessionCreatedAt':_0x87538b['sessionCreatedAt']?new Date(_0x87538b['sessionCreatedAt']):null});}}
23
+ import _0x205dc2 from'./../../message.js';import _0x3f61a0 from'./../helpers/operationmetadatahelpers.js';import _0x4a4459 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingConnectResponse extends _0x205dc2{['channel'];['version'];['buffers'];['types'];['offset'];['metadata'];['initData'];['sessionId'];['lastOperationId'];['sessionCreatedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingConnectResponse';static ['DESCRIPTOR']=((()=>({'fields':{'channel':{'type':'string','id':0x1},'offset':{'type':'uint32','id':0x2},'version':{'type':'uint32','id':0x3},'buffers':{'rule':'repeated','type':'bytes','id':0x4},'types':{'rule':'repeated','type':'uint32','id':0x5},'metadata':{'rule':'repeated','type':_0x4a4459['DESCRIPTOR_NAME'],'id':0x7},'initData':{'type':'string','id':0x8},'isInitialized':{'type':'bool','id':0x9},'sessionId':{'type':'string','id':0xa},'lastOperationId':{'type':'string','id':0xb},'sessionCreatedAt':{'type':'string','id':0xc}}}))());constructor(_0x444946,_0x353bd2,_0x320f39=[],_0x3aaf56=[],_0x251153=0x0,_0x2d6093=[],_0x56d9eb=null,_0x51ded3='',_0x3d7be3='',_0x20166e=null){super(),this['channel']=_0x444946,this['version']=_0x353bd2,this['buffers']=_0x320f39,this['types']=_0x3aaf56,this['offset']=_0x251153,this['metadata']=_0x2d6093,this['initData']=_0x56d9eb,this['sessionId']=_0x51ded3,this['lastOperationId']=_0x3d7be3,this['sessionCreatedAt']=_0x20166e;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']};}get['wereChangesApplied'](){return!this['types']?.['length']&&null===this['initData'];}['toJSON'](){return{'channel':this['channel'],'version':this['version'],'sessionId':this['sessionId'],'buffers':this['buffers'],'types':this['types'],'offset':this['offset'],'metadata':_0x3f61a0['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x4a4459['toJSON']),'initData':this['initData']??'','isInitialized':'string'==typeof this['initData'],'lastOperationId':this['lastOperationId'],'sessionCreatedAt':this['sessionCreatedAt']?this['sessionCreatedAt']['toISOString']():null};}static['create'](_0x3a3914){return new CollaborativeEditingConnectResponse(_0x3a3914['channel'],_0x3a3914['version'],_0x3a3914['buffers'],_0x3a3914['types'],_0x3a3914['offset'],_0x3a3914['metadata'],_0x3a3914['initData'],_0x3a3914['sessionId'],_0x3a3914['lastOperationId'],_0x3a3914['sessionCreatedAt']);}static['fromJSON'](_0x3ff727){let _0x36a2cc=null;return!0x0===_0x3ff727['isInitialized']?_0x36a2cc=_0x3ff727['initData']??'':'boolean'!=typeof _0x3ff727['isInitialized']&&_0x3ff727['initData']&&(_0x36a2cc=_0x3ff727['initData']),CollaborativeEditingConnectResponse['create']({'channel':_0x3ff727['channel'],'version':_0x3ff727['version'],'buffers':_0x3ff727['buffers'],'types':_0x3ff727['types'],'offset':_0x3ff727['offset'],'metadata':_0x3f61a0['prepareMetadataForOperations'](_0x3ff727['types'],_0x3ff727['metadata'])['map'](_0x4a4459['fromJSON']),'initData':_0x36a2cc,'sessionId':_0x3ff727['sessionId'],'lastOperationId':_0x3ff727['lastOperationId'],'sessionCreatedAt':_0x3ff727['sessionCreatedAt']?new Date(_0x3ff727['sessionCreatedAt']):null});}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2fa15b from'./../../message.js';import _0x4c63b5 from'./../helpers/operationmetadatahelpers.js';import _0x5840b1 from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x2fa15b{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x5e0e9d,_0x230ea5=[],_0x17aeb4=[],_0xaa31e=[],_0x130935='',_0x2dbd22=null){super(),this['version']=_0x5e0e9d,this['buffers']=_0x230ea5,this['types']=_0x17aeb4,this['metadata']=_0xaa31e,this['lastOperationId']=_0x130935,this['lastOperationAcceptedAt']=_0x2dbd22;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':_0x4c63b5['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x5840b1['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x20afc8){return new CollaborativeEditingResponse(_0x20afc8['version'],_0x20afc8['buffers'],_0x20afc8['types'],_0x4c63b5['prepareMetadataForOperations'](_0x20afc8['types'],_0x20afc8['metadata'])['map'](_0x5840b1['fromJSON']),_0x20afc8['lastOperationId'],_0x20afc8['lastOperationAcceptedAt']?new Date(_0x20afc8['lastOperationAcceptedAt']):null);}static['create'](_0x3d4e92){return new CollaborativeEditingResponse(_0x3d4e92['version'],_0x3d4e92['buffers'],_0x3d4e92['types'],_0x3d4e92['metadata'],_0x3d4e92['lastOperationId'],_0x3d4e92['lastOperationAcceptedAt']?new Date(_0x3d4e92['lastOperationAcceptedAt']):null);}}
23
+ import _0x1b0bb5 from'./../../message.js';import _0x5d3403 from'./../helpers/operationmetadatahelpers.js';import _0x1bca2a from'../descriptors/operationmetadatadescriptor.js';export default class CollaborativeEditingResponse extends _0x1b0bb5{['version'];['buffers'];['types'];['metadata'];['lastOperationId'];['lastOperationAcceptedAt'];static ['DESCRIPTOR_NAME']='CollaborativeEditingResponse';static ['DESCRIPTOR']={'fields':{'version':{'type':'uint32','id':0x1},'buffers':{'rule':'repeated','type':'bytes','id':0x2},'types':{'rule':'repeated','type':'uint32','id':0x3},'metadata':{'rule':'repeated','type':'OperationMetadataDescriptor','id':0x5},'lastOperationId':{'type':'string','id':0x6},'lastOperationAcceptedAt':{'type':'string','id':0x7}}};constructor(_0x23e2e9,_0x3cb9e2=[],_0x3031e3=[],_0x460dcf=[],_0x442990='',_0x15044b=null){super(),this['version']=_0x23e2e9,this['buffers']=_0x3cb9e2,this['types']=_0x3031e3,this['metadata']=_0x460dcf,this['lastOperationId']=_0x442990,this['lastOperationAcceptedAt']=_0x15044b;}get['data'](){return{'buffers':this['buffers'],'types':this['types'],'baseVersion':this['version']-this['types']['length'],'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']};}get['wereChangesApplied'](){return!this['types']?.['length'];}['toJSON'](){return{'version':this['version'],'buffers':this['buffers'],'types':this['types'],'metadata':_0x5d3403['removeUnnecessaryMetadata'](this['types'],this['metadata'])['map'](_0x1bca2a['toJSON']),'lastOperationId':this['lastOperationId'],'lastOperationAcceptedAt':this['lastOperationAcceptedAt']instanceof Date?this['lastOperationAcceptedAt']['toISOString']():this['lastOperationAcceptedAt']};}static['fromJSON'](_0x5e6477){return new CollaborativeEditingResponse(_0x5e6477['version'],_0x5e6477['buffers'],_0x5e6477['types'],_0x5d3403['prepareMetadataForOperations'](_0x5e6477['types'],_0x5e6477['metadata'])['map'](_0x1bca2a['fromJSON']),_0x5e6477['lastOperationId'],_0x5e6477['lastOperationAcceptedAt']?new Date(_0x5e6477['lastOperationAcceptedAt']):null);}static['create'](_0x23ef13){return new CollaborativeEditingResponse(_0x23ef13['version'],_0x23ef13['buffers'],_0x23ef13['types'],_0x23ef13['metadata'],_0x23ef13['lastOperationId'],_0x23ef13['lastOperationAcceptedAt']?new Date(_0x23ef13['lastOperationAcceptedAt']):null);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3f71a4 from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x3f71a4{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x4c70b4,_0x196079){super(),this['lastDocumentSession']=_0x4c70b4,this['currentDocumentSession']=_0x196079;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x30d6f6){const _0x26b7a8=_0x30d6f6['lastDocumentSessionId']?{'id':_0x30d6f6['lastDocumentSessionId'],'lastOperationId':_0x30d6f6['lastDocumentSessionOperationId']}:void 0x0,_0x340e6f=_0x30d6f6['currentDocumentSessionId']?{'lastOperationId':_0x30d6f6['currentDocumentSessionOperationId'],'version':_0x30d6f6['currentDocumentSessionVersion'],'id':_0x30d6f6['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x26b7a8,_0x340e6f);}}
23
+ import _0x5c6b5f from'./../../message.js';export default class GetDocumentDetailsResponse extends _0x5c6b5f{['lastDocumentSession'];['currentDocumentSession'];static ['DESCRIPTOR_NAME']='GetDocumentDetailsResponse';static ['DESCRIPTOR']={'fields':{'lastDocumentSessionId':{'type':'string','id':0x1},'lastDocumentSessionOperationId':{'type':'string','id':0x2},'currentDocumentSessionId':{'type':'string','id':0x3},'currentDocumentSessionVersion':{'type':'uint32','id':0x4},'currentDocumentSessionOperationId':{'type':'string','id':0x5}}};constructor(_0x37080c,_0x1fe952){super(),this['lastDocumentSession']=_0x37080c,this['currentDocumentSession']=_0x1fe952;}get['data'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}['toJSON'](){return{'lastDocumentSessionId':this['lastDocumentSession']?.['id'],'lastDocumentSessionOperationId':this['lastDocumentSession']?.['lastOperationId'],'currentDocumentSessionId':this['currentDocumentSession']?.['id'],'currentDocumentSessionVersion':this['currentDocumentSession']?.['version'],'currentDocumentSessionOperationId':this['currentDocumentSession']?.['lastOperationId']};}static['fromJSON'](_0x260573){const _0x5c85e1=_0x260573['lastDocumentSessionId']?{'id':_0x260573['lastDocumentSessionId'],'lastOperationId':_0x260573['lastDocumentSessionOperationId']}:void 0x0,_0x4cf6d6=_0x260573['currentDocumentSessionId']?{'lastOperationId':_0x260573['currentDocumentSessionOperationId'],'version':_0x260573['currentDocumentSessionVersion'],'id':_0x260573['currentDocumentSessionId']}:void 0x0;return new GetDocumentDetailsResponse(_0x5c85e1,_0x4cf6d6);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,5 +20,5 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x53c9b4 from'./../messagescompressor.js';import _0x14b047 from'./messages/addcommentmessage.js';import _0x2ca29c from'./responses/addcommentresponse.js';import _0x3fc9b7 from'./messages/connectmessage.js';import _0x247abf from'./responses/connectresponse.js';import _0x672851 from'./messages/removecommentmessage.js';import _0x55b337 from'./messages/removecommentthreadmessage.js';import _0xba67d3 from'./messages/updatecommentmessage.js';import _0x56e34e from'./messages/getcommentthreadmessage.js';import _0xec0354 from'./responses/getcommentthreadresponse.js';import _0xdfd1df from'./messages/getdocumentthreadsmessage.js';import _0x5cd938 from'./responses/getdocumentthreadsresponse.js';import _0x2db8b7,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x49d952 from'./../ckeditorcloudserviceserror.js';import _0x31eebe from'../sessions/sessions.js';import _0x27696d from'../errors/ServiceNotConnectedError.js';import _0x473850 from'../ckeditorcloudservicesservererror.js';import _0x387ab3 from'./responses/comment-threads/addcommentthreadresponse.js';import _0xa18ccb from'./messages/comment-threads/addcommentthreadmessage.js';import _0x276060 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x174ae9 from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x548a7b from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x57f19c from'./responses/comment-threads/resolvecommentthreadresponse.js';export const _SERVICE=0x9;class CommentsService extends/* #__PURE__ -- @preserve */
24
- EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x52d444){super(),this['_documentId']=_0x52d444;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0x67d0c){if(this['_isConnected'])return;if(_0x67d0c['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x49d952('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0x67d0c);const _0x1737fb=new _0x3fc9b7(this['_documentId']);this['_wsGateway']=_0x67d0c,this['stopListening'](_0x67d0c,'change:state');const _0x1d7d7b=await _0x67d0c['_sendRequest'](0x9,_0x3fc9b7['TYPE'],_0x53c9b4['encode'](_0x1737fb)),{channel:_0x3b426c,threads:_0x266c95}=_0x53c9b4['decode'](_0x1d7d7b,_0x247abf);return this['listenTo'](_0x67d0c,'change:state',(_0x53330b,_0xe486d8,_0x386b78)=>this['_onWsGatewayStateChange'](_0x386b78),{'priority':_0x2db8b7['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0x67d0c,_0x3b426c),this['_isConnected']=!0x0,this['fire']('connected'),_0x266c95;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](_0x10e636,_0x36521a,_0x5e9c69,_0x347f32){const _0xb3caa=new _0x14b047(this['_documentId'],_0x10e636,_0x5e9c69,_0x36521a,void 0x0,void 0x0,_0x347f32),_0x47ac09=await this['_sendRequest'](_0x14b047['TYPE'],_0xb3caa);return _0x53c9b4['decode'](_0x47ac09,_0x2ca29c);}async['updateComment'](_0xd765b1,_0x417214,_0x5418d4,_0x4ef19c){const _0x4d1bce=void 0x0!==_0x4ef19c,_0x58b80b=new _0xba67d3(this['_documentId'],_0xd765b1,_0x417214,_0x5418d4,_0x4ef19c,_0x4d1bce);await this['_sendRequest'](_0xba67d3['TYPE'],_0x58b80b);}async['removeComment'](_0x43da23,_0x1de01f){const _0x2a71fd=new _0x672851(this['_documentId'],_0x43da23,_0x1de01f);await this['_sendRequest'](_0x672851['TYPE'],_0x2a71fd);}async['removeCommentThread'](_0x56ffc0){const _0x33eaf2=new _0x55b337(this['_documentId'],_0x56ffc0);await this['_sendRequest'](_0x55b337['TYPE'],_0x33eaf2);}async['addCommentThread'](_0x5ec7d2){const _0x22db1b=new _0xa18ccb(this['_documentId'],_0x5ec7d2['commentThreadId'],_0x5ec7d2['comments']?.['map'](_0x297929=>({..._0x297929,'documentId':this['_documentId'],'commentThreadId':_0x5ec7d2['commentThreadId']})),_0x5ec7d2['context'],_0x5ec7d2['resolvedBy'],_0x5ec7d2['createdAt'],_0x5ec7d2['resolvedAt'],_0x5ec7d2['deletedAt'],_0x5ec7d2['attributes']),_0x24795a=await this['_sendRequest'](_0xa18ccb['TYPE'],_0x22db1b);return _0x53c9b4['decode'](_0x24795a,_0x387ab3);}async['resolveCommentThread'](_0x332637){const _0x514dac=new _0x276060(_0x332637,this['_documentId']),_0x1de7c8=await this['_sendRequest'](_0x276060['TYPE'],_0x514dac);return _0x53c9b4['decode'](_0x1de7c8,_0x57f19c);}async['reopenCommentThread'](_0x160dec){const _0x2e9351=new _0x174ae9(_0x160dec,this['_documentId']);await this['_sendRequest'](_0x174ae9['TYPE'],_0x2e9351);}async['updateCommentThread'](_0x1ede78){const _0x144f9e=new _0x548a7b(_0x1ede78['commentThreadId'],this['_documentId'],_0x1ede78['context'],_0x1ede78['attributes'],_0x1ede78['unlinkedAt']);await this['_sendRequest'](_0x548a7b['TYPE'],_0x144f9e);}async['getCommentThread'](_0x3b9aad,_0x13029b=0x1){const _0x140a22=new _0x56e34e(_0x3b9aad,this['_documentId']);try{const _0x19ed21=await this['_sendRequest'](_0x56e34e['TYPE'],_0x140a22),_0x2a82ec=_0x53c9b4['decode'](_0x19ed21,_0xec0354);return{'commentThreadId':_0x2a82ec['commentThreadId'],'comments':_0x2a82ec['comments'],'attributes':_0x2a82ec['attributes'],'context':_0x2a82ec['context'],'resolvedAt':_0x2a82ec['resolvedAt'],'resolvedBy':_0x2a82ec['resolvedBy'],'deletedAt':_0x2a82ec['deletedAt'],'unlinkedAt':_0x2a82ec['unlinkedAt']};}catch(_0x40846a){if('CKEditorCloudServicesServerError'===_0x40846a['name']&&'404'===_0x40846a['code']&&_0x13029b<0x5)return await(_0x3c4c1=0x64*_0x13029b,new Promise(_0x4755c0=>{setTimeout(_0x4755c0,_0x3c4c1);})),this['getCommentThread'](_0x3b9aad,_0x13029b+0x1);if('CKEditorCloudServicesServerError'===_0x40846a['name'])throw _0x40846a;throw _0x473850['fromPublicError'](_0x40846a);}var _0x3c4c1;}async['getDocumentThreads'](){const _0x349636=new _0xdfd1df(this['_documentId']),_0x4405e4=await this['_sendRequest'](_0xdfd1df['TYPE'],_0x349636),{threads:_0x1b1f0d}=_0x53c9b4['decode'](_0x4405e4,_0x5cd938);return{'threads':_0x1b1f0d};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x27696d('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0x31eebe['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x3a904a,_0x1141a9){this['_channel']=_0x3a904a['_getChannel'](CommentsService['_SERVICE'],_0x1141a9),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x14b047['TYPE']),(_0x1ea542,_0x15fc98)=>{const _0x1b5a5f=_0x53c9b4['decode'](_0x15fc98,_0x14b047);this['fire']('commentAdded',_0x1b5a5f);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x672851['TYPE']),(_0x5251ef,_0x41ed2c)=>{const _0x35d951=_0x53c9b4['decode'](_0x41ed2c,_0x672851);this['fire']('commentRemoved',_0x35d951);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xba67d3['TYPE']),(_0x34dc7e,_0xb1b491)=>{const _0x1e881b=_0x53c9b4['decode'](_0xb1b491,_0xba67d3);this['fire']('commentUpdated',_0x1e881b);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x55b337['TYPE']),(_0x1a11f6,_0x4d3d51)=>{const _0x4d5aed=_0x53c9b4['decode'](_0x4d3d51,_0x55b337);this['fire']('commentThreadRemoved',_0x4d5aed);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0xa18ccb['TYPE']),(_0x5124d9,_0x1962f8)=>{const _0x2920d7=_0x53c9b4['decode'](_0x1962f8,_0xa18ccb);this['fire']('commentThreadAdded',_0x2920d7);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x548a7b['TYPE']),(_0x1a40cb,_0x43fa4e)=>{const _0x44aba3=_0x53c9b4['decode'](_0x43fa4e,_0x548a7b);this['fire']('commentThreadUpdated',_0x44aba3);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x276060['TYPE']),(_0x108137,_0x53199b)=>{const _0x5e4f75=_0x53c9b4['decode'](_0x53199b,_0x276060);this['fire']('commentThreadResolved',_0x5e4f75);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x174ae9['TYPE']),(_0x1d9ece,_0x3b7e72)=>{const _0x5b0e54=_0x53c9b4['decode'](_0x3b7e72,_0x174ae9);this['fire']('commentThreadReopened',_0x5b0e54);}));}['_onWsGatewayStateChange'](_0x486279){_0x486279===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x3df959,_0x3b72e8){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x27696d('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x3df959,_0x53c9b4['encode'](_0x3b72e8));}}export default CommentsService;
23
+ import{EmitterMixin}from'ckeditor5/src/utils.js';import _0x56ec72 from'./../messagescompressor.js';import _0x28f1cc from'./messages/addcommentmessage.js';import _0x1a5b7d from'./responses/addcommentresponse.js';import _0x56ac01 from'./messages/connectmessage.js';import _0x709503 from'./responses/connectresponse.js';import _0x11b0dc from'./messages/removecommentmessage.js';import _0x12c1eb from'./messages/removecommentthreadmessage.js';import _0x36cd66 from'./messages/updatecommentmessage.js';import _0x3d5803 from'./messages/getcommentthreadmessage.js';import _0x1a2194 from'./responses/getcommentthreadresponse.js';import _0x5e4261 from'./messages/getdocumentthreadsmessage.js';import _0x1e99cd from'./responses/getdocumentthreadsresponse.js';import _0x51ef09,{WEB_SOCKET_GATEWAY_STATES}from'./../websocketgateway/websocketgateway.js';import _0x156128 from'./../ckeditorcloudserviceserror.js';import _0xd1f638 from'../sessions/sessions.js';import _0x53453f from'../errors/ServiceNotConnectedError.js';import _0x49d4b0 from'../ckeditorcloudservicesservererror.js';import _0x232322 from'./responses/comment-threads/addcommentthreadresponse.js';import _0x5e2981 from'./messages/comment-threads/addcommentthreadmessage.js';import _0x2f4512 from'./messages/comment-threads/resolvecommentthreadmessage.js';import _0x41a82e from'./messages/comment-threads/reopencommentthreadmessage.js';import _0x9b84dd from'./messages/comment-threads/updatecommentthreadmessage.js';import _0x119928 from'./responses/comment-threads/resolvecommentthreadresponse.js';export const _SERVICE=0x9;class CommentsService extends/* #__PURE__ -- @preserve */
24
+ EmitterMixin(){['_documentId'];['_isConnected']=!0x1;['_wsGateway'];['_channel'];['_connectedSessions'];static ['_SERVICE']=0x9;constructor(_0x2df287){super(),this['_documentId']=_0x2df287;}get['isConnected'](){return this['_isConnected'];}async['connect'](_0xcd4c6f){if(this['_isConnected'])return;if(_0xcd4c6f['state']!==WEB_SOCKET_GATEWAY_STATES['CONNECTED'])throw new _0x156128('WebSocket\x20Gateway\x20is\x20not\x20connected.',_0xcd4c6f);const _0x54e211=new _0x56ac01(this['_documentId']);this['_wsGateway']=_0xcd4c6f,this['stopListening'](_0xcd4c6f,'change:state');const _0x5a5374=await _0xcd4c6f['_sendRequest'](0x9,_0x56ac01['TYPE'],_0x56ec72['encode'](_0x54e211)),{channel:_0x391da4,threads:_0x43c6e3}=_0x56ec72['decode'](_0x5a5374,_0x709503);return this['listenTo'](_0xcd4c6f,'change:state',(_0x150750,_0x565946,_0x4a5f62)=>this['_onWsGatewayStateChange'](_0x4a5f62),{'priority':_0x51ef09['_CHANGE_STATE_EVENT_PRIORITY']}),this['_connectToChannel'](_0xcd4c6f,_0x391da4),this['_isConnected']=!0x0,this['fire']('connected'),_0x43c6e3;}['disconnect'](){this['_isConnected']&&(this['_isConnected']=!0x1,this['_wsGateway']&&(this['stopListening'](this['_wsGateway']),this['_wsGateway']=void 0x0),this['_channel']&&(this['stopListening'](this['_channel']),this['_channel']=void 0x0),this['_connectedSessions']&&(this['_connectedSessions']['disconnect'](),this['_connectedSessions']=void 0x0),this['fire']('disconnected'),this['stopListening']());}async['addComment'](_0x33e65a,_0xc0f2bf,_0x2579be,_0x5d7820){const _0x20cca9=new _0x28f1cc(this['_documentId'],_0x33e65a,_0x2579be,_0xc0f2bf,void 0x0,void 0x0,_0x5d7820),_0x173fa2=await this['_sendRequest'](_0x28f1cc['TYPE'],_0x20cca9);return _0x56ec72['decode'](_0x173fa2,_0x1a5b7d);}async['updateComment'](_0x27db6f,_0x2f8817,_0x27d950,_0x428d22){const _0x3481a7=void 0x0!==_0x428d22,_0x140cd6=new _0x36cd66(this['_documentId'],_0x27db6f,_0x2f8817,_0x27d950,_0x428d22,_0x3481a7);await this['_sendRequest'](_0x36cd66['TYPE'],_0x140cd6);}async['removeComment'](_0x145791,_0x31caa1){const _0x17c87a=new _0x11b0dc(this['_documentId'],_0x145791,_0x31caa1);await this['_sendRequest'](_0x11b0dc['TYPE'],_0x17c87a);}async['removeCommentThread'](_0x32c5c9){const _0x21aa1b=new _0x12c1eb(this['_documentId'],_0x32c5c9);await this['_sendRequest'](_0x12c1eb['TYPE'],_0x21aa1b);}async['addCommentThread'](_0x9dbb35){const _0x42a2e8=new _0x5e2981(this['_documentId'],_0x9dbb35['commentThreadId'],_0x9dbb35['comments']?.['map'](_0x1d22ef=>({..._0x1d22ef,'documentId':this['_documentId'],'commentThreadId':_0x9dbb35['commentThreadId']})),_0x9dbb35['context'],_0x9dbb35['resolvedBy'],_0x9dbb35['createdAt'],_0x9dbb35['resolvedAt'],_0x9dbb35['deletedAt'],_0x9dbb35['attributes']),_0x340681=await this['_sendRequest'](_0x5e2981['TYPE'],_0x42a2e8);return _0x56ec72['decode'](_0x340681,_0x232322);}async['resolveCommentThread'](_0x2d0274){const _0x3b3da4=new _0x2f4512(_0x2d0274,this['_documentId']),_0x5e8c03=await this['_sendRequest'](_0x2f4512['TYPE'],_0x3b3da4);return _0x56ec72['decode'](_0x5e8c03,_0x119928);}async['reopenCommentThread'](_0x20baed){const _0x6fc9d5=new _0x41a82e(_0x20baed,this['_documentId']);await this['_sendRequest'](_0x41a82e['TYPE'],_0x6fc9d5);}async['updateCommentThread'](_0x32196f){const _0x28af41=new _0x9b84dd(_0x32196f['commentThreadId'],this['_documentId'],_0x32196f['context'],_0x32196f['attributes'],_0x32196f['unlinkedAt']);await this['_sendRequest'](_0x9b84dd['TYPE'],_0x28af41);}async['getCommentThread'](_0x56a997,_0x39e13b=0x1){const _0x5c16b6=new _0x3d5803(_0x56a997,this['_documentId']);try{const _0x134210=await this['_sendRequest'](_0x3d5803['TYPE'],_0x5c16b6),_0x44802b=_0x56ec72['decode'](_0x134210,_0x1a2194);return{'commentThreadId':_0x44802b['commentThreadId'],'comments':_0x44802b['comments'],'attributes':_0x44802b['attributes'],'context':_0x44802b['context'],'resolvedAt':_0x44802b['resolvedAt'],'resolvedBy':_0x44802b['resolvedBy'],'deletedAt':_0x44802b['deletedAt'],'unlinkedAt':_0x44802b['unlinkedAt']};}catch(_0x4c84bb){if('CKEditorCloudServicesServerError'===_0x4c84bb['name']&&'404'===_0x4c84bb['code']&&_0x39e13b<0x5)return await(_0xd43501=0x64*_0x39e13b,new Promise(_0x26f53d=>{setTimeout(_0x26f53d,_0xd43501);})),this['getCommentThread'](_0x56a997,_0x39e13b+0x1);if('CKEditorCloudServicesServerError'===_0x4c84bb['name'])throw _0x4c84bb;throw _0x49d4b0['fromPublicError'](_0x4c84bb);}var _0xd43501;}async['getDocumentThreads'](){const _0x3062d6=new _0x5e4261(this['_documentId']),_0xe3b79c=await this['_sendRequest'](_0x5e4261['TYPE'],_0x3062d6),{threads:_0x23c20b}=_0x56ec72['decode'](_0xe3b79c,_0x1e99cd);return{'threads':_0x23c20b};}async['getConnectedSessions'](){if(!this['_isConnected'])throw new _0x53453f('Comments',this);return this['_connectedSessions']||(this['_connectedSessions']=await _0xd1f638['getConnectedSessions'](this['_wsGateway'],this['_documentId'],0x9)),this['_connectedSessions'];}['_connectToChannel'](_0x3f5c7e,_0x12b0ee){this['_channel']=_0x3f5c7e['_getChannel'](CommentsService['_SERVICE'],_0x12b0ee),this['_channel']&&(this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x28f1cc['TYPE']),(_0x25fea6,_0xd20e32)=>{const _0x3513e4=_0x56ec72['decode'](_0xd20e32,_0x28f1cc);this['fire']('commentAdded',_0x3513e4);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x11b0dc['TYPE']),(_0xd898d9,_0x549073)=>{const _0x188e9c=_0x56ec72['decode'](_0x549073,_0x11b0dc);this['fire']('commentRemoved',_0x188e9c);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x36cd66['TYPE']),(_0x22e8c5,_0x8e60d)=>{const _0xe10c85=_0x56ec72['decode'](_0x8e60d,_0x36cd66);this['fire']('commentUpdated',_0xe10c85);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x12c1eb['TYPE']),(_0x3f9044,_0x37f353)=>{const _0x500249=_0x56ec72['decode'](_0x37f353,_0x12c1eb);this['fire']('commentThreadRemoved',_0x500249);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x5e2981['TYPE']),(_0x73a236,_0x1b2c94)=>{const _0x7fa6c6=_0x56ec72['decode'](_0x1b2c94,_0x5e2981);this['fire']('commentThreadAdded',_0x7fa6c6);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x9b84dd['TYPE']),(_0x1d41d3,_0x3f8617)=>{const _0x297c67=_0x56ec72['decode'](_0x3f8617,_0x9b84dd);this['fire']('commentThreadUpdated',_0x297c67);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x2f4512['TYPE']),(_0x2efd45,_0x47f5f3)=>{const _0x177e00=_0x56ec72['decode'](_0x47f5f3,_0x2f4512);this['fire']('commentThreadResolved',_0x177e00);}),this['listenTo'](this['_channel'],this['_channel']['getEventName'](_0x41a82e['TYPE']),(_0x24b830,_0x2c6876)=>{const _0x4928ae=_0x56ec72['decode'](_0x2c6876,_0x41a82e);this['fire']('commentThreadReopened',_0x4928ae);}));}['_onWsGatewayStateChange'](_0x549d17){_0x549d17===WEB_SOCKET_GATEWAY_STATES['DISCONNECTED']&&this['disconnect']();}['_sendRequest'](_0x59204f,_0x1a79af){if(!this['_wsGateway']||!this['_isConnected'])throw new _0x53453f('Comments',this);return this['_wsGateway']['_sendRequest'](0x9,_0x59204f,_0x56ec72['encode'](_0x1a79af));}}export default CommentsService;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x292dd9 from'./../../descriptor.js';export default class CommentDescriptor extends _0x292dd9{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](_0x29f27f){return{..._0x29f27f,'createdAt':_0x29f27f['createdAt']?.['toISOString'](),'attributes':_0x29f27f['attributes']?JSON['stringify'](_0x29f27f['attributes']):null};}static['fromJSON'](_0x9ce8df){return{..._0x9ce8df,'createdAt':new Date(_0x9ce8df['createdAt']),'attributes':_0x9ce8df['attributes']?JSON['parse'](_0x9ce8df['attributes']):null};}}
23
+ import _0x5bc5d8 from'./../../descriptor.js';export default class CommentDescriptor extends _0x5bc5d8{static ['DESCRIPTOR_NAME']='CommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'commentThreadId':{'id':0x2,'type':'string'},'userId':{'id':0x3,'type':'string'},'content':{'id':0x4,'type':'string'},'documentId':{'id':0x5,'type':'string'},'createdAt':{'id':0x6,'type':'string'},'attributes':{'id':0x7,'type':'string'}}};static['toJSON'](_0x1eb4e0){return{..._0x1eb4e0,'createdAt':_0x1eb4e0['createdAt']?.['toISOString'](),'attributes':_0x1eb4e0['attributes']?JSON['stringify'](_0x1eb4e0['attributes']):null};}static['fromJSON'](_0x251bc5){return{..._0x251bc5,'createdAt':new Date(_0x251bc5['createdAt']),'attributes':_0x251bc5['attributes']?JSON['parse'](_0x251bc5['attributes']):null};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x3f6c45 from'./../../descriptor.js';import _0x22a86b from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x3f6c45{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](_0x78de87){return{..._0x78de87,'createdAt':_0x78de87['createdAt']?.['toISOString'](),'deletedAt':_0x78de87['deletedAt']?.['toISOString'](),'resolvedAt':_0x78de87['resolvedAt']?.['toISOString'](),'attributes':_0x78de87['attributes']?JSON['stringify'](_0x78de87['attributes']):null,'context':_0x78de87['context']?JSON['stringify'](_0x78de87['context']):_0x78de87['context'],'comments':_0x78de87['comments']?.['map'](_0x22a86b['toJSON']),'unlinkedAt':_0x78de87['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x532f63){return{..._0x532f63,'createdAt':_0x532f63['createdAt']?new Date(_0x532f63['createdAt']):void 0x0,'deletedAt':_0x532f63['deletedAt']?new Date(_0x532f63['deletedAt']):void 0x0,'resolvedAt':_0x532f63['resolvedAt']?new Date(_0x532f63['resolvedAt']):void 0x0,'attributes':_0x532f63['attributes']?JSON['parse'](_0x532f63['attributes']):null,'context':_0x532f63['context']?JSON['parse'](_0x532f63['context']):void 0x0,'comments':_0x532f63['comments']?.['map'](_0x22a86b['fromJSON']),'unlinkedAt':_0x532f63['unlinkedAt']?new Date(_0x532f63['unlinkedAt']):void 0x0};}}
23
+ import _0x2fb425 from'./../../descriptor.js';import _0x327e94 from'./commentdescriptor.js';export default class CommentsThreadDescriptor extends _0x2fb425{static ['DESCRIPTOR_NAME']='CommentsThreadDescriptor';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x2},'resolvedAt':{'type':'string','id':0x3},'resolvedBy':{'type':'string','id':0x4},'context':{'type':'string','id':0x5},'createdAt':{'type':'string','id':0x6},'deletedAt':{'type':'string','id':0x7},'attributes':{'type':'string','id':0x8},'unlinkedAt':{'type':'string','id':0x9}}};static['toJSON'](_0x51a2fb){return{..._0x51a2fb,'createdAt':_0x51a2fb['createdAt']?.['toISOString'](),'deletedAt':_0x51a2fb['deletedAt']?.['toISOString'](),'resolvedAt':_0x51a2fb['resolvedAt']?.['toISOString'](),'attributes':_0x51a2fb['attributes']?JSON['stringify'](_0x51a2fb['attributes']):null,'context':_0x51a2fb['context']?JSON['stringify'](_0x51a2fb['context']):_0x51a2fb['context'],'comments':_0x51a2fb['comments']?.['map'](_0x327e94['toJSON']),'unlinkedAt':_0x51a2fb['unlinkedAt']?.['toISOString']()};}static['fromJSON'](_0x246580){return{..._0x246580,'createdAt':_0x246580['createdAt']?new Date(_0x246580['createdAt']):void 0x0,'deletedAt':_0x246580['deletedAt']?new Date(_0x246580['deletedAt']):void 0x0,'resolvedAt':_0x246580['resolvedAt']?new Date(_0x246580['resolvedAt']):void 0x0,'attributes':_0x246580['attributes']?JSON['parse'](_0x246580['attributes']):null,'context':_0x246580['context']?JSON['parse'](_0x246580['context']):void 0x0,'comments':_0x246580['comments']?.['map'](_0x327e94['fromJSON']),'unlinkedAt':_0x246580['unlinkedAt']?new Date(_0x246580['unlinkedAt']):void 0x0};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x15d5ef from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x15d5ef{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x282f34){return{'commentId':_0x282f34['commentId'],'createdAt':_0x282f34['createdAt']?.['toISOString']()};}static['fromJSON'](_0x837044){return{'commentId':_0x837044['commentId'],'createdAt':new Date(_0x837044['createdAt'])};}}
23
+ import _0x4f0a5d from'../../descriptor.js';export default class CommentThreadAddedCommentDescriptor extends _0x4f0a5d{static ['DESCRIPTOR_NAME']='CommentThreadAddedCommentDescriptor';static ['DESCRIPTOR']={'fields':{'commentId':{'id':0x1,'type':'string'},'createdAt':{'id':0x2,'type':'string'}}};static['toJSON'](_0x5af4b7){return{'commentId':_0x5af4b7['commentId'],'createdAt':_0x5af4b7['createdAt']?.['toISOString']()};}static['fromJSON'](_0x355688){return{'commentId':_0x355688['commentId'],'createdAt':new Date(_0x355688['createdAt'])};}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x594d68 from'./../../message.js';import _0x5ea36f from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x594d68{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0x53f117,_0x2fccab,_0x572791,_0x560b31='',_0x1aaecd,_0x1fe232='',_0x3bf54f=null,_0x53e785){super(),this['documentId']=_0x53f117,this['commentThreadId']=_0x2fccab,this['content']=_0x572791,this['commentId']=_0x560b31,this['userId']=_0x1fe232,this['attributes']=_0x3bf54f,this['commentThread']=_0x53e785,this['createdAt']=_0x1aaecd?new Date(_0x1aaecd):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?_0x5ea36f['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x4f2fbe){return new AddCommentMessage(_0x4f2fbe['documentId'],_0x4f2fbe['commentThreadId'],_0x4f2fbe['content'],_0x4f2fbe['commentId']?_0x4f2fbe['commentId']:void 0x0,_0x4f2fbe['createdAt']?new Date(_0x4f2fbe['createdAt']):void 0x0,_0x4f2fbe['userId']?_0x4f2fbe['userId']:void 0x0,_0x4f2fbe['attributes']?JSON['parse'](_0x4f2fbe['attributes']):{},_0x4f2fbe['commentThread']?_0x5ea36f['fromJSON'](_0x4f2fbe['commentThread']):void 0x0);}}
23
+ import _0x215f84 from'./../../message.js';import _0x28a388 from'../descriptors/commentsthreaddescriptor.js';export default class AddCommentMessage extends _0x215f84{['documentId'];['commentThreadId'];['content'];['commentId'];['userId'];['attributes'];['commentThread'];['createdAt'];static ['TYPE']='91';static ['READABLE_TYPE_NAME']='addComment';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'content':{'type':'string','id':0x2},'documentId':{'type':'string','id':0x3},'commentId':{'type':'string','id':0x4},'createdAt':{'type':'string','id':0x5},'userId':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'commentThread':{'type':'CommentsThreadDescriptor','id':0x8}}};constructor(_0x5dbf0f,_0x26d363,_0x487540,_0x59efaa='',_0x4579de,_0x4ec011='',_0x49960f=null,_0x1d004e){super(),this['documentId']=_0x5dbf0f,this['commentThreadId']=_0x26d363,this['content']=_0x487540,this['commentId']=_0x59efaa,this['userId']=_0x4ec011,this['attributes']=_0x49960f,this['commentThread']=_0x1d004e,this['createdAt']=_0x4579de?new Date(_0x4579de):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'content':this['content'],'documentId':this['documentId'],'commentId':this['commentId'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'userId':this['userId'],'attributes':JSON['stringify'](this['attributes']),'commentThread':this['commentThread']?_0x28a388['toJSON'](this['commentThread']):void 0x0};}static['fromJSON'](_0x31b465){return new AddCommentMessage(_0x31b465['documentId'],_0x31b465['commentThreadId'],_0x31b465['content'],_0x31b465['commentId']?_0x31b465['commentId']:void 0x0,_0x31b465['createdAt']?new Date(_0x31b465['createdAt']):void 0x0,_0x31b465['userId']?_0x31b465['userId']:void 0x0,_0x31b465['attributes']?JSON['parse'](_0x31b465['attributes']):{},_0x31b465['commentThread']?_0x28a388['fromJSON'](_0x31b465['commentThread']):void 0x0);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x59182b from'../../../message.js';import _0x447717 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x59182b{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x33f87d,_0x401b09,_0x25024d=[],_0x1c8d4a,_0x5c4f68=null,_0x55c67c=null,_0x151ab6=null,_0x40786b=null,_0x3170f3=null){super(),this['documentId']=_0x33f87d,this['commentThreadId']=_0x401b09,this['comments']=_0x25024d,this['context']=_0x1c8d4a,this['resolvedBy']=_0x5c4f68,this['attributes']=_0x3170f3,this['createdAt']=_0x55c67c?new Date(_0x55c67c):'',this['resolvedAt']=_0x151ab6?new Date(_0x151ab6):'',this['deletedAt']=_0x40786b?new Date(_0x40786b):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x55c9de=>_0x447717['toJSON'](_0x55c9de))};}static['fromJSON'](_0x573ec7){return new AddCommentThreadMessage(_0x573ec7['documentId'],_0x573ec7['commentThreadId'],_0x573ec7['comments']?.['map'](_0x5d9e49=>_0x447717['fromJSON']({..._0x5d9e49,'documentId':_0x573ec7['documentId'],'commentThreadId':_0x573ec7['commentThreadId']})),_0x573ec7['context']?JSON['parse'](_0x573ec7['context']):_0x573ec7['context'],_0x573ec7['resolvedBy'],_0x573ec7['createdAt']?new Date(_0x573ec7['createdAt']):void 0x0,_0x573ec7['resolvedAt']?new Date(_0x573ec7['resolvedAt']):void 0x0,_0x573ec7['deletedAt']?new Date(_0x573ec7['deletedAt']):void 0x0,_0x573ec7['attributes']?JSON['parse'](_0x573ec7['attributes']):_0x573ec7['attributes']);}}
23
+ import _0x44a40e from'../../../message.js';import _0x44ce36 from'../../descriptors/commentdescriptor.js';export default class AddCommentThreadMessage extends _0x44a40e{['documentId'];['commentThreadId'];['comments'];['context'];['resolvedBy'];['attributes'];['createdAt'];['resolvedAt'];['deletedAt'];static ['TYPE']='140';static ['READABLE_TYPE_NAME']='addCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2AddCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'documentId':{'type':'string','id':0x1},'commentThreadId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'createdAt':{'type':'string','id':0x4},'resolvedAt':{'type':'string','id':0x5},'resolvedBy':{'type':'string','id':0x6},'attributes':{'type':'string','id':0x7},'deletedAt':{'type':'string','id':0x8},'comments':{'type':'CommentDescriptor','rule':'repeated','id':0x9}}};constructor(_0x410cb5,_0x51d074,_0x21a573=[],_0x932fc1,_0x21905b=null,_0x51ecd3=null,_0x567cff=null,_0x3dfd3d=null,_0xd6d35=null){super(),this['documentId']=_0x410cb5,this['commentThreadId']=_0x51d074,this['comments']=_0x21a573,this['context']=_0x932fc1,this['resolvedBy']=_0x21905b,this['attributes']=_0xd6d35,this['createdAt']=_0x51ecd3?new Date(_0x51ecd3):'',this['resolvedAt']=_0x567cff?new Date(_0x567cff):'',this['deletedAt']=_0x3dfd3d?new Date(_0x3dfd3d):'';}['toJSON'](){return{'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'documentId':this['documentId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']instanceof Date?this['resolvedAt']['toISOString']():this['resolvedAt'],'deletedAt':this['deletedAt']instanceof Date?this['deletedAt']['toISOString']():this['deletedAt'],'createdAt':this['createdAt']instanceof Date?this['createdAt']['toISOString']():this['createdAt'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):this['attributes'],'comments':this['comments']?.['map'](_0x25a867=>_0x44ce36['toJSON'](_0x25a867))};}static['fromJSON'](_0x435821){return new AddCommentThreadMessage(_0x435821['documentId'],_0x435821['commentThreadId'],_0x435821['comments']?.['map'](_0x473ed8=>_0x44ce36['fromJSON']({..._0x473ed8,'documentId':_0x435821['documentId'],'commentThreadId':_0x435821['commentThreadId']})),_0x435821['context']?JSON['parse'](_0x435821['context']):_0x435821['context'],_0x435821['resolvedBy'],_0x435821['createdAt']?new Date(_0x435821['createdAt']):void 0x0,_0x435821['resolvedAt']?new Date(_0x435821['resolvedAt']):void 0x0,_0x435821['deletedAt']?new Date(_0x435821['deletedAt']):void 0x0,_0x435821['attributes']?JSON['parse'](_0x435821['attributes']):_0x435821['attributes']);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x221816 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x221816{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x40c43e,_0x16b89b){super(),this['commentThreadId']=_0x40c43e,this['documentId']=_0x16b89b;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x529402){return new ReopenCommentThreadMessage(_0x529402['commentThreadId'],_0x529402['documentId']);}}
23
+ import _0x1ffb79 from'../../../message.js';export default class ReopenCommentThreadMessage extends _0x1ffb79{['commentThreadId'];['documentId'];static ['TYPE']='141';static ['READABLE_TYPE_NAME']='reopenCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ReopenCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2}}};constructor(_0x3a085d,_0x184cab){super(),this['commentThreadId']=_0x3a085d,this['documentId']=_0x184cab;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId']};}static['fromJSON'](_0x13074b){return new ReopenCommentThreadMessage(_0x13074b['commentThreadId'],_0x13074b['documentId']);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x2327bd from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x2327bd{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x3811fa,_0x242746,_0x49cf06,_0x869e32){super(),this['commentThreadId']=_0x3811fa,this['documentId']=_0x242746,this['resolvedBy']=_0x49cf06,this['resolvedAt']=_0x869e32?new Date(_0x869e32):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x491b7d){return new ResolveCommentThreadMessage(_0x491b7d['commentThreadId'],_0x491b7d['documentId'],_0x491b7d['resolvedBy'],_0x491b7d['resolvedAt']);}}
23
+ import _0x23051e from'../../../message.js';export default class ResolveCommentThreadMessage extends _0x23051e{['commentThreadId'];['documentId'];['resolvedBy'];['resolvedAt'];static ['TYPE']='142';static ['READABLE_TYPE_NAME']='resolveCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2ResolveCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'resolvedBy':{'type':'string','id':0x3},'resolvedAt':{'type':'string','id':0x4}}};constructor(_0x3d70e7,_0x4471ed,_0x2074ee,_0x1a3b6c){super(),this['commentThreadId']=_0x3d70e7,this['documentId']=_0x4471ed,this['resolvedBy']=_0x2074ee,this['resolvedAt']=_0x1a3b6c?new Date(_0x1a3b6c):void 0x0;}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'resolvedBy':this['resolvedBy'],'resolvedAt':this['resolvedAt']?.['toISOString']()};}static['fromJSON'](_0x58df4d){return new ResolveCommentThreadMessage(_0x58df4d['commentThreadId'],_0x58df4d['documentId'],_0x58df4d['resolvedBy'],_0x58df4d['resolvedAt']);}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
2
+ * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import _0x5e453e from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x5e453e{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x4d4234,_0x18459a,_0x20342b,_0x131090=null,_0x381fc7=null){super(),this['commentThreadId']=_0x4d4234,this['documentId']=_0x18459a,this['context']=_0x20342b,this['attributes']=_0x131090,this['unlinkedAt']=_0x381fc7?new Date(_0x381fc7):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0x29cf90){return new UpdateCommentThreadMessage(_0x29cf90['commentThreadId'],_0x29cf90['documentId'],_0x29cf90['context']?JSON['parse'](_0x29cf90['context']):_0x29cf90['context'],_0x29cf90['attributes']?JSON['parse'](_0x29cf90['attributes']):null,_0x29cf90['unlinkedAt']?new Date(_0x29cf90['unlinkedAt']):null);}}
23
+ import _0x108775 from'../../../message.js';export default class UpdateCommentThreadMessage extends _0x108775{['commentThreadId'];['documentId'];['context'];['attributes'];['unlinkedAt'];static ['TYPE']='143';static ['READABLE_TYPE_NAME']='updateCommentThread';static ['DESCRIPTOR_NAME']='CommentsV2UpdateCommentThreadMessage';static ['DESCRIPTOR']={'fields':{'commentThreadId':{'type':'string','id':0x1},'documentId':{'type':'string','id':0x2},'context':{'type':'string','id':0x3},'attributes':{'type':'string','id':0x4},'unlinkedAt':{'type':'string','id':0x5}}};constructor(_0x49b566,_0x556b2c,_0x50f17a,_0x3ccb69=null,_0x5b151d=null){super(),this['commentThreadId']=_0x49b566,this['documentId']=_0x556b2c,this['context']=_0x50f17a,this['attributes']=_0x3ccb69,this['unlinkedAt']=_0x5b151d?new Date(_0x5b151d):'';}['toJSON'](){return{'documentId':this['documentId'],'commentThreadId':this['commentThreadId'],'context':this['context']?JSON['stringify'](this['context']):this['context'],'attributes':this['attributes']?JSON['stringify'](this['attributes']):null,'unlinkedAt':this['unlinkedAt']instanceof Date?this['unlinkedAt']['toISOString']():this['unlinkedAt']};}static['fromJSON'](_0x55f815){return new UpdateCommentThreadMessage(_0x55f815['commentThreadId'],_0x55f815['documentId'],_0x55f815['context']?JSON['parse'](_0x55f815['context']):_0x55f815['context'],_0x55f815['attributes']?JSON['parse'](_0x55f815['attributes']):null,_0x55f815['unlinkedAt']?new Date(_0x55f815['unlinkedAt']):null);}}