@noldova/desktop.protocol 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +35 -2
  3. package/api/index.d.ts +8228 -0
  4. package/api/index.js +121 -0
  5. package/api/index.js.map +1 -0
  6. package/api/testing.d.ts +601 -0
  7. package/api/testing.js +11 -0
  8. package/api/testing.js.map +1 -0
  9. package/enums/edit-action.js +17 -0
  10. package/enums/edit-action.js.map +1 -0
  11. package/enums/failure-code.js +27 -0
  12. package/enums/failure-code.js.map +1 -0
  13. package/enums/module-state.js +16 -0
  14. package/enums/module-state.js.map +1 -0
  15. package/enums/notification-severity.js +15 -0
  16. package/enums/notification-severity.js.map +1 -0
  17. package/enums/quit-answer.js +13 -0
  18. package/enums/quit-answer.js.map +1 -0
  19. package/enums/quit-result.js +13 -0
  20. package/enums/quit-result.js.map +1 -0
  21. package/enums/secret-action.js +14 -0
  22. package/enums/secret-action.js.map +1 -0
  23. package/enums/secret-failure-kind.js +14 -0
  24. package/enums/secret-failure-kind.js.map +1 -0
  25. package/enums/secret-failure-reason.js +15 -0
  26. package/enums/secret-failure-reason.js.map +1 -0
  27. package/enums/setting-kind.js +19 -0
  28. package/enums/setting-kind.js.map +1 -0
  29. package/enums/setting-locality.js +13 -0
  30. package/enums/setting-locality.js.map +1 -0
  31. package/enums/stop-policy.js +13 -0
  32. package/enums/stop-policy.js.map +1 -0
  33. package/enums/web-view-action.js +20 -0
  34. package/enums/web-view-action.js.map +1 -0
  35. package/enums/web-view-event-kind.js +25 -0
  36. package/enums/web-view-event-kind.js.map +1 -0
  37. package/enums/web-view-failure-kind.js +21 -0
  38. package/enums/web-view-failure-kind.js.map +1 -0
  39. package/enums/web-view-navigation-kind.js +14 -0
  40. package/enums/web-view-navigation-kind.js.map +1 -0
  41. package/enums/window-action.js +14 -0
  42. package/enums/window-action.js.map +1 -0
  43. package/enums/wire-message-kind.js +16 -0
  44. package/enums/wire-message-kind.js.map +1 -0
  45. package/exceptions/desktop-protocol.exception.js +14 -0
  46. package/exceptions/desktop-protocol.exception.js.map +1 -0
  47. package/exceptions/protocol.exception.js +20 -0
  48. package/exceptions/protocol.exception.js.map +1 -0
  49. package/interfaces/i-key-stroke.js +9 -0
  50. package/interfaces/i-key-stroke.js.map +1 -0
  51. package/models/agent-control-state.js +28 -0
  52. package/models/agent-control-state.js.map +1 -0
  53. package/models/app-shortcut-list.js +27 -0
  54. package/models/app-shortcut-list.js.map +1 -0
  55. package/models/app-shortcut.js +35 -0
  56. package/models/app-shortcut.js.map +1 -0
  57. package/models/app-window-list.js +27 -0
  58. package/models/app-window-list.js.map +1 -0
  59. package/models/app-window.js +34 -0
  60. package/models/app-window.js.map +1 -0
  61. package/models/build-identity.js +53 -0
  62. package/models/build-identity.js.map +1 -0
  63. package/models/cancel.js +30 -0
  64. package/models/cancel.js.map +1 -0
  65. package/models/command-info.js +49 -0
  66. package/models/command-info.js.map +1 -0
  67. package/models/command-list.js +31 -0
  68. package/models/command-list.js.map +1 -0
  69. package/models/command-run.js +29 -0
  70. package/models/command-run.js.map +1 -0
  71. package/models/date-pattern.js +64 -0
  72. package/models/date-pattern.js.map +1 -0
  73. package/models/event.js +38 -0
  74. package/models/event.js.map +1 -0
  75. package/models/failure.js +34 -0
  76. package/models/failure.js.map +1 -0
  77. package/models/file-grant.js +80 -0
  78. package/models/file-grant.js.map +1 -0
  79. package/models/file-grants-discard.js +32 -0
  80. package/models/file-grants-discard.js.map +1 -0
  81. package/models/file-grants-ended.js +33 -0
  82. package/models/file-grants-ended.js.map +1 -0
  83. package/models/file-share-resolve.js +29 -0
  84. package/models/file-share-resolve.js.map +1 -0
  85. package/models/handshake.js +47 -0
  86. package/models/handshake.js.map +1 -0
  87. package/models/kept-runtime.js +29 -0
  88. package/models/kept-runtime.js.map +1 -0
  89. package/models/key-chord.js +115 -0
  90. package/models/key-chord.js.map +1 -0
  91. package/models/key-name.js +59 -0
  92. package/models/key-name.js.map +1 -0
  93. package/models/main-window.js +30 -0
  94. package/models/main-window.js.map +1 -0
  95. package/models/module-status-list.js +25 -0
  96. package/models/module-status-list.js.map +1 -0
  97. package/models/module-status.js +80 -0
  98. package/models/module-status.js.map +1 -0
  99. package/models/notification-action.js +36 -0
  100. package/models/notification-action.js.map +1 -0
  101. package/models/notification-broadcast.js +50 -0
  102. package/models/notification-broadcast.js.map +1 -0
  103. package/models/notification-list.js +27 -0
  104. package/models/notification-list.js.map +1 -0
  105. package/models/notification-post.js +81 -0
  106. package/models/notification-post.js.map +1 -0
  107. package/models/notification-reference.js +30 -0
  108. package/models/notification-reference.js.map +1 -0
  109. package/models/notification-state.js +44 -0
  110. package/models/notification-state.js.map +1 -0
  111. package/models/notification.js +54 -0
  112. package/models/notification.js.map +1 -0
  113. package/models/notifications-query.js +28 -0
  114. package/models/notifications-query.js.map +1 -0
  115. package/models/pre-shell-data.js +28 -0
  116. package/models/pre-shell-data.js.map +1 -0
  117. package/models/program-status-list.js +32 -0
  118. package/models/program-status-list.js.map +1 -0
  119. package/models/program-status.js +48 -0
  120. package/models/program-status.js.map +1 -0
  121. package/models/qualified-name.js +44 -0
  122. package/models/qualified-name.js.map +1 -0
  123. package/models/quit-answered.js +28 -0
  124. package/models/quit-answered.js.map +1 -0
  125. package/models/quit-report.js +28 -0
  126. package/models/quit-report.js.map +1 -0
  127. package/models/recent-command-use.js +31 -0
  128. package/models/recent-command-use.js.map +1 -0
  129. package/models/recent-commands-query.js +28 -0
  130. package/models/recent-commands-query.js.map +1 -0
  131. package/models/recent-commands.js +39 -0
  132. package/models/recent-commands.js.map +1 -0
  133. package/models/request.js +55 -0
  134. package/models/request.js.map +1 -0
  135. package/models/response.js +62 -0
  136. package/models/response.js.map +1 -0
  137. package/models/running-work.js +30 -0
  138. package/models/running-work.js.map +1 -0
  139. package/models/runtime-handover.js +32 -0
  140. package/models/runtime-handover.js.map +1 -0
  141. package/models/secret-answered.js +42 -0
  142. package/models/secret-answered.js.map +1 -0
  143. package/models/secret-command.js +52 -0
  144. package/models/secret-command.js.map +1 -0
  145. package/models/secret-failures.js +25 -0
  146. package/models/secret-failures.js.map +1 -0
  147. package/models/secret-reference.js +30 -0
  148. package/models/secret-reference.js.map +1 -0
  149. package/models/secret-value.js +37 -0
  150. package/models/secret-value.js.map +1 -0
  151. package/models/setting-change.js +31 -0
  152. package/models/setting-change.js.map +1 -0
  153. package/models/setting-definition.js +71 -0
  154. package/models/setting-definition.js.map +1 -0
  155. package/models/setting-entry.js +31 -0
  156. package/models/setting-entry.js.map +1 -0
  157. package/models/setting-key.js +41 -0
  158. package/models/setting-key.js.map +1 -0
  159. package/models/setting-option.js +33 -0
  160. package/models/setting-option.js.map +1 -0
  161. package/models/setting-scope.js +36 -0
  162. package/models/setting-scope.js.map +1 -0
  163. package/models/setting-type.js +156 -0
  164. package/models/setting-type.js.map +1 -0
  165. package/models/setting-value.js +28 -0
  166. package/models/setting-value.js.map +1 -0
  167. package/models/settings-query.js +30 -0
  168. package/models/settings-query.js.map +1 -0
  169. package/models/settings-snapshot.js +37 -0
  170. package/models/settings-snapshot.js.map +1 -0
  171. package/models/shell-clients.js +14 -0
  172. package/models/shell-clients.js.map +1 -0
  173. package/models/shell-events.js +25 -0
  174. package/models/shell-events.js.map +1 -0
  175. package/models/shell-keys.js +26 -0
  176. package/models/shell-keys.js.map +1 -0
  177. package/models/shell-methods.js +54 -0
  178. package/models/shell-methods.js.map +1 -0
  179. package/models/shell-notifications.js +17 -0
  180. package/models/shell-notifications.js.map +1 -0
  181. package/models/stop-request.js +30 -0
  182. package/models/stop-request.js.map +1 -0
  183. package/models/update-process.js +42 -0
  184. package/models/update-process.js.map +1 -0
  185. package/models/update-ready.js +35 -0
  186. package/models/update-ready.js.map +1 -0
  187. package/models/update-request.js +28 -0
  188. package/models/update-request.js.map +1 -0
  189. package/models/update-saved.js +37 -0
  190. package/models/update-saved.js.map +1 -0
  191. package/models/web-view-answered.js +43 -0
  192. package/models/web-view-answered.js.map +1 -0
  193. package/models/web-view-command.js +79 -0
  194. package/models/web-view-command.js.map +1 -0
  195. package/models/web-view-declaration.js +64 -0
  196. package/models/web-view-declaration.js.map +1 -0
  197. package/models/web-view-event.js +98 -0
  198. package/models/web-view-event.js.map +1 -0
  199. package/models/web-view-events.js +31 -0
  200. package/models/web-view-events.js.map +1 -0
  201. package/models/web-view-failure.js +41 -0
  202. package/models/web-view-failure.js.map +1 -0
  203. package/models/web-view-info.js +41 -0
  204. package/models/web-view-info.js.map +1 -0
  205. package/models/web-view-key.js +58 -0
  206. package/models/web-view-key.js.map +1 -0
  207. package/models/web-view-method.js +47 -0
  208. package/models/web-view-method.js.map +1 -0
  209. package/models/web-view-navigation.js +34 -0
  210. package/models/web-view-navigation.js.map +1 -0
  211. package/models/web-view-pane.js +36 -0
  212. package/models/web-view-pane.js.map +1 -0
  213. package/models/web-view-parameter.js +96 -0
  214. package/models/web-view-parameter.js.map +1 -0
  215. package/models/window-closed.js +29 -0
  216. package/models/window-closed.js.map +1 -0
  217. package/models/window-state-key.js +31 -0
  218. package/models/window-state-key.js.map +1 -0
  219. package/models/window-state-value.js +26 -0
  220. package/models/window-state-value.js.map +1 -0
  221. package/models/window-state-write.js +30 -0
  222. package/models/window-state-write.js.map +1 -0
  223. package/models/wire-message.js +17 -0
  224. package/models/wire-message.js.map +1 -0
  225. package/models/work-report.js +35 -0
  226. package/models/work-report.js.map +1 -0
  227. package/package.json +40 -3
  228. package/resources.js +476 -0
  229. package/resources.js.map +1 -0
  230. package/services/frame-writer.js +24 -0
  231. package/services/frame-writer.js.map +1 -0
  232. package/services/frame.reader.js +47 -0
  233. package/services/frame.reader.js.map +1 -0
  234. package/services/link-policy.js +20 -0
  235. package/services/link-policy.js.map +1 -0
  236. package/services/wire-contract.js +30 -0
  237. package/services/wire-contract.js.map +1 -0
  238. package/services/wire-decoder.js +35 -0
  239. package/services/wire-decoder.js.map +1 -0
  240. package/testing/exceptions/unanswered-call.exception.js +17 -0
  241. package/testing/exceptions/unanswered-call.exception.js.map +1 -0
  242. package/testing/models/fake-call.js +16 -0
  243. package/testing/models/fake-call.js.map +1 -0
  244. package/testing/models/fake.js +122 -0
  245. package/testing/models/fake.js.map +1 -0
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var NotificationSeverity;
9
+ (function (NotificationSeverity) {
10
+ NotificationSeverity["Info"] = "Info";
11
+ NotificationSeverity["Success"] = "Success";
12
+ NotificationSeverity["Warning"] = "Warning";
13
+ NotificationSeverity["Error"] = "Error";
14
+ })(NotificationSeverity || (NotificationSeverity = {}));
15
+ //# sourceMappingURL=notification-severity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-severity.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/notification-severity.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,qCAAa,CAAA;IACb,2CAAmB,CAAA;IACnB,2CAAmB,CAAA;IACnB,uCAAe,CAAA;AACjB,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var QuitAnswer;
9
+ (function (QuitAnswer) {
10
+ QuitAnswer["Stayed"] = "Stayed";
11
+ QuitAnswer["SaveFailed"] = "SaveFailed";
12
+ })(QuitAnswer || (QuitAnswer = {}));
13
+ //# sourceMappingURL=quit-answer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quit-answer.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/quit-answer.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,uCAAyB,CAAA;AAC3B,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var QuitResult;
9
+ (function (QuitResult) {
10
+ QuitResult["Quit"] = "Quit";
11
+ QuitResult["NoMainProcess"] = "NoMainProcess";
12
+ })(QuitResult || (QuitResult = {}));
13
+ //# sourceMappingURL=quit-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quit-result.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/quit-result.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,2BAAa,CAAA;IACb,6CAA+B,CAAA;AACjC,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var SecretAction;
9
+ (function (SecretAction) {
10
+ SecretAction["Device"] = "Device";
11
+ SecretAction["Encrypt"] = "Encrypt";
12
+ SecretAction["Decrypt"] = "Decrypt";
13
+ })(SecretAction || (SecretAction = {}));
14
+ //# sourceMappingURL=secret-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-action.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/secret-action.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;AACrB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var SecretFailureKind;
9
+ (function (SecretFailureKind) {
10
+ SecretFailureKind["NoDevice"] = "NoDevice";
11
+ SecretFailureKind["Unprotected"] = "Unprotected";
12
+ SecretFailureKind["Undecryptable"] = "Undecryptable";
13
+ })(SecretFailureKind || (SecretFailureKind = {}));
14
+ //# sourceMappingURL=secret-failure-kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-failure-kind.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/secret-failure-kind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,0CAAqB,CAAA;IACrB,gDAA2B,CAAA;IAC3B,oDAA+B,CAAA;AACjC,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,QAI5B"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var SecretFailureReason;
9
+ (function (SecretFailureReason) {
10
+ SecretFailureReason["NotConnected"] = "NotConnected";
11
+ SecretFailureReason["NoDevice"] = "NoDevice";
12
+ SecretFailureReason["Unprotected"] = "Unprotected";
13
+ SecretFailureReason["Undecryptable"] = "Undecryptable";
14
+ })(SecretFailureReason || (SecretFailureReason = {}));
15
+ //# sourceMappingURL=secret-failure-reason.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secret-failure-reason.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/secret-failure-reason.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,mBAKX;AALD,WAAY,mBAAmB;IAC7B,oDAA6B,CAAA;IAC7B,4CAAqB,CAAA;IACrB,kDAA2B,CAAA;IAC3B,sDAA+B,CAAA;AACjC,CAAC,EALW,mBAAmB,KAAnB,mBAAmB,QAK9B"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var SettingKind;
9
+ (function (SettingKind) {
10
+ SettingKind["Boolean"] = "Boolean";
11
+ SettingKind["Choice"] = "Choice";
12
+ SettingKind["Number"] = "Number";
13
+ SettingKind["Text"] = "Text";
14
+ SettingKind["Modules"] = "Modules";
15
+ SettingKind["KeyBindings"] = "KeyBindings";
16
+ SettingKind["Languages"] = "Languages";
17
+ SettingKind["Action"] = "Action";
18
+ })(SettingKind || (SettingKind = {}));
19
+ //# sourceMappingURL=setting-kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting-kind.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/setting-kind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,WASX;AATD,WAAY,WAAW;IACrB,kCAAmB,CAAA;IACnB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,kCAAmB,CAAA;IACnB,0CAA2B,CAAA;IAC3B,sCAAuB,CAAA;IACvB,gCAAiB,CAAA;AACnB,CAAC,EATW,WAAW,KAAX,WAAW,QAStB"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var SettingLocality;
9
+ (function (SettingLocality) {
10
+ SettingLocality["Device"] = "Device";
11
+ SettingLocality["Shared"] = "Shared";
12
+ })(SettingLocality || (SettingLocality = {}));
13
+ //# sourceMappingURL=setting-locality.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setting-locality.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/setting-locality.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,oCAAiB,CAAA;IACjB,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var StopPolicy;
9
+ (function (StopPolicy) {
10
+ StopPolicy["IfIdle"] = "IfIdle";
11
+ StopPolicy["StopWork"] = "StopWork";
12
+ })(StopPolicy || (StopPolicy = {}));
13
+ //# sourceMappingURL=stop-policy.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stop-policy.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/stop-policy.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,mCAAqB,CAAA;AACvB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var WebViewAction;
9
+ (function (WebViewAction) {
10
+ WebViewAction["List"] = "List";
11
+ WebViewAction["Navigate"] = "Navigate";
12
+ WebViewAction["Back"] = "Back";
13
+ WebViewAction["Forward"] = "Forward";
14
+ WebViewAction["Reload"] = "Reload";
15
+ WebViewAction["Stop"] = "Stop";
16
+ WebViewAction["SetAllowedOrigins"] = "SetAllowedOrigins";
17
+ WebViewAction["ClearProfile"] = "ClearProfile";
18
+ WebViewAction["Send"] = "Send";
19
+ })(WebViewAction || (WebViewAction = {}));
20
+ //# sourceMappingURL=web-view-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-view-action.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/web-view-action.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,aAUX;AAVD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,sCAAqB,CAAA;IACrB,8BAAa,CAAA;IACb,oCAAmB,CAAA;IACnB,kCAAiB,CAAA;IACjB,8BAAa,CAAA;IACb,wDAAuC,CAAA;IACvC,8CAA6B,CAAA;IAC7B,8BAAa,CAAA;AACf,CAAC,EAVW,aAAa,KAAb,aAAa,QAUxB"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var WebViewEventKind;
9
+ (function (WebViewEventKind) {
10
+ WebViewEventKind["Opened"] = "Opened";
11
+ WebViewEventKind["Closed"] = "Closed";
12
+ WebViewEventKind["State"] = "State";
13
+ WebViewEventKind["LoadFailed"] = "LoadFailed";
14
+ WebViewEventKind["NavigationRefused"] = "NavigationRefused";
15
+ WebViewEventKind["Crashed"] = "Crashed";
16
+ WebViewEventKind["ProfileCleared"] = "ProfileCleared";
17
+ WebViewEventKind["RequestRefused"] = "RequestRefused";
18
+ WebViewEventKind["NewWindowRequested"] = "NewWindowRequested";
19
+ WebViewEventKind["Protocol"] = "Protocol";
20
+ WebViewEventKind["Dropped"] = "Dropped";
21
+ WebViewEventKind["Key"] = "Key";
22
+ WebViewEventKind["Zoom"] = "Zoom";
23
+ WebViewEventKind["Found"] = "Found";
24
+ })(WebViewEventKind || (WebViewEventKind = {}));
25
+ //# sourceMappingURL=web-view-event-kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-view-event-kind.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/web-view-event-kind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,gBAeX;AAfD,WAAY,gBAAgB;IAC1B,qCAAiB,CAAA;IACjB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;IACf,6CAAyB,CAAA;IACzB,2DAAuC,CAAA;IACvC,uCAAmB,CAAA;IACnB,qDAAiC,CAAA;IACjC,qDAAiC,CAAA;IACjC,6DAAyC,CAAA;IACzC,yCAAqB,CAAA;IACrB,uCAAmB,CAAA;IACnB,+BAAW,CAAA;IACX,iCAAa,CAAA;IACb,mCAAe,CAAA;AACjB,CAAC,EAfW,gBAAgB,KAAhB,gBAAgB,QAe3B"}
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var WebViewFailureKind;
9
+ (function (WebViewFailureKind) {
10
+ WebViewFailureKind["NotOwned"] = "NotOwned";
11
+ WebViewFailureKind["NotAllowed"] = "NotAllowed";
12
+ WebViewFailureKind["ShortcutRefused"] = "ShortcutRefused";
13
+ WebViewFailureKind["TimedOut"] = "TimedOut";
14
+ WebViewFailureKind["TooLarge"] = "TooLarge";
15
+ WebViewFailureKind["ViewClosed"] = "ViewClosed";
16
+ WebViewFailureKind["Crashed"] = "Crashed";
17
+ WebViewFailureKind["ProfileCleared"] = "ProfileCleared";
18
+ WebViewFailureKind["Unavailable"] = "Unavailable";
19
+ WebViewFailureKind["Protocol"] = "Protocol";
20
+ })(WebViewFailureKind || (WebViewFailureKind = {}));
21
+ //# sourceMappingURL=web-view-failure-kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-view-failure-kind.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/web-view-failure-kind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,kBAWX;AAXD,WAAY,kBAAkB;IAC5B,2CAAqB,CAAA;IACrB,+CAAyB,CAAA;IACzB,yDAAmC,CAAA;IACnC,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,+CAAyB,CAAA;IACzB,yCAAmB,CAAA;IACnB,uDAAiC,CAAA;IACjC,iDAA2B,CAAA;IAC3B,2CAAqB,CAAA;AACvB,CAAC,EAXW,kBAAkB,KAAlB,kBAAkB,QAW7B"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var WebViewNavigationKind;
9
+ (function (WebViewNavigationKind) {
10
+ WebViewNavigationKind["Started"] = "Started";
11
+ WebViewNavigationKind["Refused"] = "Refused";
12
+ WebViewNavigationKind["NoHistory"] = "NoHistory";
13
+ })(WebViewNavigationKind || (WebViewNavigationKind = {}));
14
+ //# sourceMappingURL=web-view-navigation-kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"web-view-navigation-kind.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/web-view-navigation-kind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC/B,4CAAmB,CAAA;IACnB,4CAAmB,CAAA;IACnB,gDAAuB,CAAA;AACzB,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var WindowAction;
9
+ (function (WindowAction) {
10
+ WindowAction["Minimize"] = "Minimize";
11
+ WindowAction["ToggleMaximized"] = "ToggleMaximized";
12
+ WindowAction["Close"] = "Close";
13
+ })(WindowAction || (WindowAction = {}));
14
+ //# sourceMappingURL=window-action.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"window-action.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/window-action.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,qCAAqB,CAAA;IACrB,mDAAmC,CAAA;IACnC,+BAAe,CAAA;AACjB,CAAC,EAJW,YAAY,KAAZ,YAAY,QAIvB"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export var WireMessageKind;
9
+ (function (WireMessageKind) {
10
+ WireMessageKind["Handshake"] = "Handshake";
11
+ WireMessageKind["Request"] = "Request";
12
+ WireMessageKind["Response"] = "Response";
13
+ WireMessageKind["Event"] = "Event";
14
+ WireMessageKind["Cancel"] = "Cancel";
15
+ })(WireMessageKind || (WireMessageKind = {}));
16
+ //# sourceMappingURL=wire-message-kind.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wire-message-kind.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/enums/wire-message-kind.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,eAMX;AAND,WAAY,eAAe;IACzB,0CAAuB,CAAA;IACvB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;IACrB,kCAAe,CAAA;IACf,oCAAiB,CAAA;AACnB,CAAC,EANW,eAAe,KAAf,eAAe,QAM1B"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Exception } from "@noldova/context.exceptions";
9
+ export class DesktopProtocolException extends Exception {
10
+ constructor(message, options) {
11
+ super(message, options);
12
+ }
13
+ }
14
+ //# sourceMappingURL=desktop-protocol.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"desktop-protocol.exception.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/exceptions/desktop-protocol.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAgB,wBAAyB,SAAQ,SAAS;IAC9D,YAAsB,OAAe,EAAE,OAA0B;QAC/D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { FailureCode } from "../enums/failure-code.js";
9
+ import { Resources } from "../resources.js";
10
+ import { DesktopProtocolException } from "./desktop-protocol.exception.js";
11
+ export class ProtocolException extends DesktopProtocolException {
12
+ code;
13
+ maximumFrameLength;
14
+ constructor(maximumFrameLength, options) {
15
+ super(Resources.formatFrameTooLarge(maximumFrameLength), options);
16
+ this.code = FailureCode.FrameTooLarge;
17
+ this.maximumFrameLength = maximumFrameLength;
18
+ }
19
+ }
20
+ //# sourceMappingURL=protocol.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.exception.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/exceptions/protocol.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAE3E,MAAM,OAAO,iBAAkB,SAAQ,wBAAwB;IAC7C,IAAI,CAAc;IAClB,kBAAkB,CAAS;IAE3C,YAAmB,kBAA0B,EAAE,OAA0B;QACvE,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,CAAC;QAElE,IAAI,CAAC,IAAI,GAAG,WAAW,CAAC,aAAa,CAAC;QACtC,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ export {};
9
+ //# sourceMappingURL=i-key-stroke.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-key-stroke.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/interfaces/i-key-stroke.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { JsonReader } from "@noldova/context.json";
9
+ import { Resources } from "../resources.js";
10
+ import { WireContract } from "../services/wire-contract.js";
11
+ export class AgentControlState {
12
+ static FIELDS = [Resources.isStoppedField, Resources.isActingField];
13
+ isStopped;
14
+ isActing;
15
+ constructor(isStopped, isActing) {
16
+ this.isStopped = isStopped;
17
+ this.isActing = isActing;
18
+ }
19
+ static fromJson(value, path) {
20
+ const reader = JsonReader.fromValue(value, path);
21
+ WireContract.requireKnownFields(reader, AgentControlState.FIELDS);
22
+ return new AgentControlState(reader.readBoolean(Resources.isStoppedField), reader.readBoolean(Resources.isActingField));
23
+ }
24
+ toJson() {
25
+ return { [Resources.isStoppedField]: this.isStopped, [Resources.isActingField]: this.isActing };
26
+ }
27
+ }
28
+ //# sourceMappingURL=agent-control-state.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-control-state.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/models/agent-control-state.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,OAAO,iBAAiB;IACpB,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,cAAc,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IAExF,SAAS,CAAU;IACnB,QAAQ,CAAU;IAElC,YAAmB,SAAkB,EAAE,QAAiB;QACtD,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc,EAAE,IAAa;QAClD,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjD,YAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;QAClE,OAAO,IAAI,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;IAC1H,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClG,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { JsonReader } from "@noldova/context.json";
9
+ import { Resources } from "../resources.js";
10
+ import { WireContract } from "../services/wire-contract.js";
11
+ import { AppShortcut } from "./app-shortcut.js";
12
+ export class AppShortcutList {
13
+ static FIELDS = [Resources.shortcutsField];
14
+ shortcuts;
15
+ constructor(shortcuts) {
16
+ this.shortcuts = [...shortcuts];
17
+ }
18
+ static fromJson(value, path) {
19
+ const reader = JsonReader.fromValue(value, path);
20
+ WireContract.requireKnownFields(reader, AppShortcutList.FIELDS);
21
+ return WireContract.create(reader, () => new AppShortcutList(reader.readObjectArray(Resources.shortcutsField).map(t => AppShortcut.fromJson(t.toJson(), t.path))));
22
+ }
23
+ toJson() {
24
+ return { [Resources.shortcutsField]: this.shortcuts.map(t => t.toJson()) };
25
+ }
26
+ }
27
+ //# sourceMappingURL=app-shortcut-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-shortcut-list.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/models/app-shortcut-list.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD,MAAM,OAAO,eAAe;IAClB,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAE/D,SAAS,CAAyB;IAElD,YAAmB,SAAiC;QAClD,IAAI,CAAC,SAAS,GAAG,CAAC,GAAG,SAAS,CAAC,CAAC;IAClC,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc,EAAE,IAAa;QAClD,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjD,YAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;QAChE,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,eAAe,CAC1D,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1G,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;IAC7E,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { ArgumentException } from "@noldova/context.exceptions";
10
+ import { JsonReader } from "@noldova/context.json";
11
+ import { Resources } from "../resources.js";
12
+ import { WireContract } from "../services/wire-contract.js";
13
+ import { KeyChord } from "./key-chord.js";
14
+ export class AppShortcut {
15
+ static FIELDS = [Resources.keyField, Resources.commandField, Resources.isGlobalField];
16
+ key;
17
+ command;
18
+ isGlobal;
19
+ constructor(key, command, isGlobal) {
20
+ if (!Object.isNull(command))
21
+ ArgumentException.throwIfNullOrWhitespace(command, Resources.commandField);
22
+ this.key = key;
23
+ this.command = command;
24
+ this.isGlobal = isGlobal;
25
+ }
26
+ static fromJson(value, path) {
27
+ const reader = JsonReader.fromValue(value, path);
28
+ WireContract.requireKnownFields(reader, AppShortcut.FIELDS);
29
+ return WireContract.create(reader, () => new AppShortcut(KeyChord.parse(reader.readString(Resources.keyField), Resources.keyField), reader.readNullableString(Resources.commandField), reader.readBoolean(Resources.isGlobalField)));
30
+ }
31
+ toJson() {
32
+ return { [Resources.keyField]: this.key.text, [Resources.commandField]: this.command, [Resources.isGlobalField]: this.isGlobal };
33
+ }
34
+ }
35
+ //# sourceMappingURL=app-shortcut.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-shortcut.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/models/app-shortcut.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,MAAM,OAAO,WAAW;IACd,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,YAAY,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC;IAE1G,GAAG,CAAW;IACd,OAAO,CAAgB;IACvB,QAAQ,CAAU;IAElC,YAAmB,GAAa,EAAE,OAAsB,EAAE,QAAiB;QACzE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC;YACzB,iBAAiB,CAAC,uBAAuB,CAAC,OAAO,EAAE,SAAS,CAAC,YAAY,CAAC,CAAC;QAE7E,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc,EAAE,IAAa;QAClD,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjD,YAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;QAC5D,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,WAAW,CACtD,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,EACzE,MAAM,CAAC,kBAAkB,CAAC,SAAS,CAAC,YAAY,CAAC,EACjD,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC;IAClD,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;IACnI,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { JsonReader } from "@noldova/context.json";
9
+ import { Resources } from "../resources.js";
10
+ import { WireContract } from "../services/wire-contract.js";
11
+ import { AppWindow } from "./app-window.js";
12
+ export class AppWindowList {
13
+ static FIELDS = [Resources.windowsField];
14
+ windows;
15
+ constructor(windows) {
16
+ this.windows = [...windows];
17
+ }
18
+ static fromJson(value, path) {
19
+ const reader = JsonReader.fromValue(value, path);
20
+ WireContract.requireKnownFields(reader, AppWindowList.FIELDS);
21
+ return WireContract.create(reader, () => new AppWindowList(reader.readObjectArray(Resources.windowsField).map(t => AppWindow.fromJson(t.toJson(), t.path))));
22
+ }
23
+ toJson() {
24
+ return { [Resources.windowsField]: this.windows.map(t => t.toJson()) };
25
+ }
26
+ }
27
+ //# sourceMappingURL=app-window-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-window-list.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/models/app-window-list.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,OAAO,aAAa;IAChB,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC;IAE7D,OAAO,CAAuB;IAE9C,YAAmB,OAA6B;QAC9C,IAAI,CAAC,OAAO,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC;IAC9B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc,EAAE,IAAa;QAClD,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjD,YAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC9D,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,aAAa,CACxD,MAAM,CAAC,eAAe,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACtG,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,EAAE,CAAC;IACzE,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import "@noldova/context.core";
9
+ import { ArgumentException } from "@noldova/context.exceptions";
10
+ import { JsonReader } from "@noldova/context.json";
11
+ import { Resources } from "../resources.js";
12
+ import { WireContract } from "../services/wire-contract.js";
13
+ export class AppWindow {
14
+ static FIELDS = [Resources.handleField, Resources.processIdField];
15
+ handle;
16
+ processId;
17
+ constructor(handle, processId) {
18
+ if (!Object.isNull(handle) && (!Number.isSafeInteger(handle) || handle < 1))
19
+ throw new ArgumentException(Resources.appWindowHandleInvalid, Resources.handleField);
20
+ if (!Number.isSafeInteger(processId) || processId < 1)
21
+ throw new ArgumentException(Resources.appWindowProcessIdInvalid, Resources.processIdField);
22
+ this.handle = handle;
23
+ this.processId = processId;
24
+ }
25
+ static fromJson(value, path) {
26
+ const reader = JsonReader.fromValue(value, path);
27
+ WireContract.requireKnownFields(reader, AppWindow.FIELDS);
28
+ return WireContract.create(reader, () => new AppWindow(Object.isNull(reader.readValue(Resources.handleField)) ? null : reader.readInteger(Resources.handleField), reader.readInteger(Resources.processIdField)));
29
+ }
30
+ toJson() {
31
+ return { [Resources.handleField]: this.handle, [Resources.processIdField]: this.processId };
32
+ }
33
+ }
34
+ //# sourceMappingURL=app-window.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-window.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/models/app-window.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAmB,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,MAAM,OAAO,SAAS;IACZ,MAAM,CAAU,MAAM,GAAsB,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAEtF,MAAM,CAAgB;IACtB,SAAS,CAAS;IAElC,YAAmB,MAAqB,EAAE,SAAiB;QACzD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC;YACzE,MAAM,IAAI,iBAAiB,CAAC,SAAS,CAAC,sBAAsB,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;QACvF,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,CAAC,IAAI,SAAS,GAAG,CAAC;YACnD,MAAM,IAAI,iBAAiB,CAAC,SAAS,CAAC,yBAAyB,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;QAE7F,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAEM,MAAM,CAAC,QAAQ,CAAC,KAAc,EAAE,IAAa;QAClD,MAAM,MAAM,GAAG,UAAU,CAAC,SAAS,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QACjD,YAAY,CAAC,kBAAkB,CAAC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;QAC1D,OAAO,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,SAAS,CACpD,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,EACzG,MAAM,CAAC,WAAW,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IACnD,CAAC;IAEM,MAAM;QACX,OAAO,EAAE,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,IAAI,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;IAC9F,CAAC"}
@@ -0,0 +1,53 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { ArgumentException, ArgumentOutOfRangeException } from "@noldova/context.exceptions";
9
+ import { JsonReader } from "@noldova/context.json";
10
+ import { FailureCode } from "../enums/failure-code.js";
11
+ import { Resources } from "../resources.js";
12
+ import { WireContract } from "../services/wire-contract.js";
13
+ export class BuildIdentity {
14
+ static FIELDS = [Resources.productVersionField, Resources.protocolVersionField, Resources.fingerprintField];
15
+ static supportedProtocolVersion = BuildIdentity.parseProtocolVersion(Resources.protocolVersion);
16
+ productVersion;
17
+ protocolVersion;
18
+ fingerprint;
19
+ constructor(productVersion, protocolVersion, fingerprint) {
20
+ ArgumentException.throwIfNullOrWhitespace(productVersion, Resources.productVersionField);
21
+ if (!Number.isInteger(protocolVersion) || protocolVersion <= 0)
22
+ throw new ArgumentOutOfRangeException(Resources.protocolVersionField, protocolVersion, Resources.protocolVersionInvalid);
23
+ ArgumentException.throwIfNullOrWhitespace(fingerprint, Resources.fingerprintField);
24
+ this.productVersion = productVersion;
25
+ this.protocolVersion = protocolVersion;
26
+ this.fingerprint = fingerprint;
27
+ }
28
+ static parseProtocolVersion(text) {
29
+ if (!Resources.protocolVersionPattern.test(text))
30
+ throw new ArgumentException(Resources.stampedProtocolVersionInvalid, Resources.textParameterName);
31
+ return Number(text);
32
+ }
33
+ static fromJson(value, path) {
34
+ const reader = JsonReader.fromValue(value, path);
35
+ WireContract.requireKnownFields(reader, BuildIdentity.FIELDS);
36
+ return WireContract.create(reader, () => new BuildIdentity(reader.readString(Resources.productVersionField), reader.readInteger(Resources.protocolVersionField), reader.readString(Resources.fingerprintField)));
37
+ }
38
+ findMismatch(other) {
39
+ if (other.protocolVersion !== this.protocolVersion)
40
+ return FailureCode.UnsupportedVersion;
41
+ if (other.fingerprint !== this.fingerprint || other.productVersion !== this.productVersion)
42
+ return FailureCode.BuildMismatch;
43
+ return null;
44
+ }
45
+ toJson() {
46
+ return {
47
+ [Resources.productVersionField]: this.productVersion,
48
+ [Resources.protocolVersionField]: this.protocolVersion,
49
+ [Resources.fingerprintField]: this.fingerprint
50
+ };
51
+ }
52
+ }
53
+ //# sourceMappingURL=build-identity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build-identity.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.protocol/src/models/build-identity.ts"],"names":[],"mappings":"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"}