@gitpod/gitpod-protocol 0.1.5-to-code-reading.1 → 0.1.5-to-monitor-delete.18

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 (361) hide show
  1. package/data/gitpod-schema.json +124 -5
  2. package/lib/accounting-protocol.d.ts +18 -10
  3. package/lib/accounting-protocol.d.ts.map +1 -1
  4. package/lib/accounting-protocol.js +34 -32
  5. package/lib/accounting-protocol.js.map +1 -1
  6. package/lib/admin-protocol.d.ts +19 -0
  7. package/lib/admin-protocol.d.ts.map +1 -1
  8. package/lib/admin-protocol.js.map +1 -1
  9. package/lib/analytics.d.ts +4 -5
  10. package/lib/analytics.d.ts.map +1 -1
  11. package/lib/analytics.js.map +1 -1
  12. package/lib/attribution.d.ts +24 -0
  13. package/lib/attribution.d.ts.map +1 -0
  14. package/lib/attribution.js +54 -0
  15. package/lib/attribution.js.map +1 -0
  16. package/lib/auth.d.ts.map +1 -1
  17. package/lib/billing-mode.d.ts +45 -0
  18. package/lib/billing-mode.d.ts.map +1 -0
  19. package/lib/billing-mode.js +44 -0
  20. package/lib/billing-mode.js.map +1 -0
  21. package/lib/blocked-repositories-protocol.d.ts +13 -0
  22. package/lib/blocked-repositories-protocol.d.ts.map +1 -0
  23. package/lib/blocked-repositories-protocol.js +8 -0
  24. package/lib/blocked-repositories-protocol.js.map +1 -0
  25. package/lib/context-url.d.ts +18 -5
  26. package/lib/context-url.d.ts.map +1 -1
  27. package/lib/context-url.js +59 -6
  28. package/lib/context-url.js.map +1 -1
  29. package/lib/context-url.spec.d.ts +2 -0
  30. package/lib/context-url.spec.d.ts.map +1 -1
  31. package/lib/context-url.spec.js +40 -4
  32. package/lib/context-url.spec.js.map +1 -1
  33. package/lib/encryption/container-module.d.ts.map +1 -1
  34. package/lib/encryption/container-module.js +1 -1
  35. package/lib/encryption/container-module.js.map +1 -1
  36. package/lib/encryption/encryption-engine.d.ts.map +1 -1
  37. package/lib/encryption/encryption-engine.js +9 -9
  38. package/lib/encryption/encryption-engine.js.map +1 -1
  39. package/lib/encryption/encryption-engine.spec.d.ts.map +1 -1
  40. package/lib/encryption/encryption-engine.spec.js +2 -3
  41. package/lib/encryption/encryption-engine.spec.js.map +1 -1
  42. package/lib/encryption/encryption-service.d.ts.map +1 -1
  43. package/lib/encryption/encryption-service.js +1 -1
  44. package/lib/encryption/encryption-service.js.map +1 -1
  45. package/lib/encryption/key-provider.d.ts.map +1 -1
  46. package/lib/encryption/key-provider.js +7 -9
  47. package/lib/encryption/key-provider.js.map +1 -1
  48. package/lib/env.d.ts +0 -5
  49. package/lib/env.d.ts.map +1 -1
  50. package/lib/env.js +1 -20
  51. package/lib/env.js.map +1 -1
  52. package/lib/experiments/always-default.d.ts +8 -0
  53. package/lib/experiments/always-default.d.ts.map +1 -0
  54. package/lib/experiments/always-default.js +20 -0
  55. package/lib/experiments/always-default.js.map +1 -0
  56. package/lib/experiments/configcat-server.d.ts +10 -0
  57. package/lib/experiments/configcat-server.d.ts.map +1 -0
  58. package/lib/experiments/configcat-server.js +36 -0
  59. package/lib/experiments/configcat-server.js.map +1 -0
  60. package/lib/experiments/configcat.d.ts +21 -0
  61. package/lib/experiments/configcat.d.ts.map +1 -0
  62. package/lib/experiments/configcat.js +51 -0
  63. package/lib/experiments/configcat.js.map +1 -0
  64. package/lib/experiments/types.d.ts +22 -0
  65. package/lib/experiments/types.d.ts.map +1 -0
  66. package/lib/experiments/types.js +10 -0
  67. package/lib/experiments/types.js.map +1 -0
  68. package/lib/gitpod-file-parser.d.ts.map +1 -1
  69. package/lib/gitpod-file-parser.js +6 -6
  70. package/lib/gitpod-file-parser.js.map +1 -1
  71. package/lib/gitpod-file-parser.spec.js +42 -39
  72. package/lib/gitpod-file-parser.spec.js.map +1 -1
  73. package/lib/gitpod-service.d.ts +83 -45
  74. package/lib/gitpod-service.d.ts.map +1 -1
  75. package/lib/gitpod-service.js +52 -33
  76. package/lib/gitpod-service.js.map +1 -1
  77. package/lib/headless-workspace-log.d.ts +1 -0
  78. package/lib/headless-workspace-log.d.ts.map +1 -1
  79. package/lib/headless-workspace-log.js +2 -1
  80. package/lib/headless-workspace-log.js.map +1 -1
  81. package/lib/ide-frontend-service.d.ts +1 -1
  82. package/lib/ide-protocol.d.ts +38 -6
  83. package/lib/ide-protocol.d.ts.map +1 -1
  84. package/lib/index.d.ts +16 -15
  85. package/lib/index.d.ts.map +1 -1
  86. package/lib/index.js +2 -1
  87. package/lib/index.js.map +1 -1
  88. package/lib/installation-admin-protocol.d.ts +30 -0
  89. package/lib/installation-admin-protocol.d.ts.map +1 -0
  90. package/lib/installation-admin-protocol.js +31 -0
  91. package/lib/installation-admin-protocol.js.map +1 -0
  92. package/lib/license-protocol.d.ts +7 -0
  93. package/lib/license-protocol.d.ts.map +1 -1
  94. package/lib/license-protocol.js.map +1 -1
  95. package/lib/messaging/browser/connection.d.ts +1 -1
  96. package/lib/messaging/browser/connection.d.ts.map +1 -1
  97. package/lib/messaging/browser/connection.js +19 -19
  98. package/lib/messaging/browser/connection.js.map +1 -1
  99. package/lib/messaging/browser/window-connection.d.ts +4 -4
  100. package/lib/messaging/browser/window-connection.d.ts.map +1 -1
  101. package/lib/messaging/browser/window-connection.js +9 -6
  102. package/lib/messaging/browser/window-connection.js.map +1 -1
  103. package/lib/messaging/client-call-metrics.d.ts +2 -18
  104. package/lib/messaging/client-call-metrics.d.ts.map +1 -1
  105. package/lib/messaging/client-call-metrics.js +21 -22
  106. package/lib/messaging/client-call-metrics.js.map +1 -1
  107. package/lib/messaging/error.d.ts +8 -1
  108. package/lib/messaging/error.d.ts.map +1 -1
  109. package/lib/messaging/error.js +17 -3
  110. package/lib/messaging/error.js.map +1 -1
  111. package/lib/messaging/handler.d.ts.map +1 -1
  112. package/lib/messaging/handler.js +1 -1
  113. package/lib/messaging/node/connection.js +8 -8
  114. package/lib/messaging/node/connection.js.map +1 -1
  115. package/lib/messaging/proxy-factory.d.ts +1 -1
  116. package/lib/messaging/proxy-factory.d.ts.map +1 -1
  117. package/lib/messaging/proxy-factory.js +7 -9
  118. package/lib/messaging/proxy-factory.js.map +1 -1
  119. package/lib/payment-protocol.d.ts.map +1 -1
  120. package/lib/payment-protocol.js +1 -1
  121. package/lib/payment-protocol.js.map +1 -1
  122. package/lib/permission.d.ts +9 -3
  123. package/lib/permission.d.ts.map +1 -1
  124. package/lib/permission.js +34 -25
  125. package/lib/permission.js.map +1 -1
  126. package/lib/plans.d.ts +4 -3
  127. package/lib/plans.d.ts.map +1 -1
  128. package/lib/plans.js +210 -171
  129. package/lib/plans.js.map +1 -1
  130. package/lib/protocol.d.ts +192 -59
  131. package/lib/protocol.d.ts.map +1 -1
  132. package/lib/protocol.js +292 -104
  133. package/lib/protocol.js.map +1 -1
  134. package/{src/theia-plugins.ts → lib/protocol.spec.d.ts} +2 -6
  135. package/lib/protocol.spec.d.ts.map +1 -0
  136. package/lib/protocol.spec.js +127 -0
  137. package/lib/protocol.spec.js.map +1 -0
  138. package/lib/snapshot-url.spec.js.map +1 -1
  139. package/lib/team-subscription-protocol.d.ts +22 -3
  140. package/lib/team-subscription-protocol.d.ts.map +1 -1
  141. package/lib/team-subscription-protocol.js +20 -5
  142. package/lib/team-subscription-protocol.js.map +1 -1
  143. package/lib/teams-projects-protocol.d.ts +29 -5
  144. package/lib/teams-projects-protocol.d.ts.map +1 -1
  145. package/lib/teams-projects-protocol.js +8 -1
  146. package/lib/teams-projects-protocol.js.map +1 -1
  147. package/lib/typings/globals.d.ts +2 -2
  148. package/lib/typings/globals.d.ts.map +1 -1
  149. package/lib/usage.d.ts +61 -0
  150. package/lib/usage.d.ts.map +1 -0
  151. package/lib/usage.js +14 -0
  152. package/lib/usage.js.map +1 -0
  153. package/lib/util/analytics.d.ts.map +1 -1
  154. package/lib/util/analytics.js +12 -3
  155. package/lib/util/analytics.js.map +1 -1
  156. package/lib/util/async-iterator.d.ts.map +1 -1
  157. package/lib/util/async-iterator.js +3 -3
  158. package/lib/util/async-iterator.js.map +1 -1
  159. package/lib/util/cancelable.js.map +1 -1
  160. package/lib/util/date-time.js +6 -6
  161. package/lib/util/date-time.js.map +1 -1
  162. package/lib/util/debug-app.d.ts +25 -0
  163. package/lib/util/debug-app.d.ts.map +1 -0
  164. package/lib/util/debug-app.js +100 -0
  165. package/lib/util/debug-app.js.map +1 -0
  166. package/lib/util/deferred.js.map +1 -1
  167. package/lib/util/disposable.d.ts.map +1 -1
  168. package/lib/util/disposable.js +2 -2
  169. package/lib/util/disposable.js.map +1 -1
  170. package/lib/util/event.d.ts.map +1 -1
  171. package/lib/util/event.js +5 -3
  172. package/lib/util/event.js.map +1 -1
  173. package/lib/util/garbage-collected-cache.d.ts.map +1 -1
  174. package/lib/util/garbage-collected-cache.js +6 -1
  175. package/lib/util/garbage-collected-cache.js.map +1 -1
  176. package/lib/util/generate-workspace-id.d.ts +5 -0
  177. package/lib/util/generate-workspace-id.d.ts.map +1 -1
  178. package/lib/util/generate-workspace-id.js +446 -442
  179. package/lib/util/generate-workspace-id.js.map +1 -1
  180. package/lib/util/generate-workspace-id.spec.js +18 -7
  181. package/lib/util/generate-workspace-id.spec.js.map +1 -1
  182. package/lib/util/gitpod-cookie.d.ts +1 -1
  183. package/lib/util/gitpod-cookie.d.ts.map +1 -1
  184. package/lib/util/gitpod-cookie.js +0 -3
  185. package/lib/util/gitpod-cookie.js.map +1 -1
  186. package/lib/util/gitpod-host-url.d.ts +3 -0
  187. package/lib/util/gitpod-host-url.d.ts.map +1 -1
  188. package/lib/util/gitpod-host-url.js +49 -29
  189. package/lib/util/gitpod-host-url.js.map +1 -1
  190. package/lib/util/gitpod-host-url.spec.d.ts.map +1 -1
  191. package/lib/util/gitpod-host-url.spec.js +15 -5
  192. package/lib/util/gitpod-host-url.spec.js.map +1 -1
  193. package/lib/util/grpc.d.ts +19 -0
  194. package/lib/util/grpc.d.ts.map +1 -1
  195. package/lib/util/grpc.js +73 -1
  196. package/lib/util/grpc.js.map +1 -1
  197. package/lib/util/jaeger-client-types.d.ts.map +1 -1
  198. package/lib/util/logging.d.ts +1 -1
  199. package/lib/util/logging.d.ts.map +1 -1
  200. package/lib/util/logging.js +31 -25
  201. package/lib/util/logging.js.map +1 -1
  202. package/lib/util/logging.spec.d.ts +7 -0
  203. package/lib/util/logging.spec.d.ts.map +1 -0
  204. package/lib/util/logging.spec.js +52 -0
  205. package/lib/util/logging.spec.js.map +1 -0
  206. package/lib/util/make-link.js +5 -5
  207. package/lib/util/make-link.js.map +1 -1
  208. package/lib/util/nice-grpc.d.ts +9 -0
  209. package/lib/util/nice-grpc.d.ts.map +1 -0
  210. package/lib/util/nice-grpc.js +119 -0
  211. package/lib/util/nice-grpc.js.map +1 -0
  212. package/lib/util/parse-workspace-id.d.ts.map +1 -1
  213. package/lib/util/parse-workspace-id.js +1 -2
  214. package/lib/util/parse-workspace-id.js.map +1 -1
  215. package/lib/util/parse-workspace-id.spec.d.ts.map +1 -1
  216. package/lib/util/parse-workspace-id.spec.js.map +1 -1
  217. package/lib/util/queue.spec.js +9 -6
  218. package/lib/util/queue.spec.js.map +1 -1
  219. package/lib/util/semaphore.d.ts.map +1 -1
  220. package/lib/util/semaphore.js.map +1 -1
  221. package/lib/util/skip-if.d.ts.map +1 -1
  222. package/lib/util/skip-if.js.map +1 -1
  223. package/lib/util/timeutil.d.ts +2 -0
  224. package/lib/util/timeutil.d.ts.map +1 -1
  225. package/lib/util/timeutil.js +15 -3
  226. package/lib/util/timeutil.js.map +1 -1
  227. package/lib/util/timeutil.spec.d.ts +2 -0
  228. package/lib/util/timeutil.spec.d.ts.map +1 -1
  229. package/lib/util/timeutil.spec.js +34 -0
  230. package/lib/util/timeutil.spec.js.map +1 -1
  231. package/lib/util/tracing.d.ts +8 -8
  232. package/lib/util/tracing.d.ts.map +1 -1
  233. package/lib/util/tracing.js +19 -20
  234. package/lib/util/tracing.js.map +1 -1
  235. package/lib/util/tracing.spec.js +3 -3
  236. package/lib/util/tracing.spec.js.map +1 -1
  237. package/lib/util/workspace-port-authentication.d.ts +7 -7
  238. package/lib/util/workspace-port-authentication.d.ts.map +1 -1
  239. package/lib/util/workspace-port-authentication.js +8 -11
  240. package/lib/util/workspace-port-authentication.js.map +1 -1
  241. package/lib/webhook-event.d.ts +44 -0
  242. package/lib/webhook-event.d.ts.map +1 -0
  243. package/lib/{theia-plugins.js → webhook-event.js} +2 -2
  244. package/lib/webhook-event.js.map +1 -0
  245. package/lib/workspace-class.d.ts +14 -0
  246. package/lib/workspace-class.d.ts.map +1 -0
  247. package/lib/workspace-class.js +8 -0
  248. package/lib/workspace-class.js.map +1 -0
  249. package/lib/workspace-cluster.d.ts +18 -17
  250. package/lib/workspace-cluster.d.ts.map +1 -1
  251. package/lib/workspace-cluster.js +16 -1
  252. package/lib/workspace-cluster.js.map +1 -1
  253. package/lib/workspace-instance.d.ts +39 -3
  254. package/lib/workspace-instance.d.ts.map +1 -1
  255. package/lib/wsready.d.ts +1 -1
  256. package/lib/wsready.d.ts.map +1 -1
  257. package/lib/wsready.js +2 -2
  258. package/package.json +15 -7
  259. package/pkg-yarn.lock +11 -6
  260. package/provenance-bundle.jsonl +3 -1
  261. package/src/accounting-protocol.ts +66 -51
  262. package/src/admin-protocol.ts +45 -18
  263. package/src/analytics.ts +26 -28
  264. package/src/attribution.ts +63 -0
  265. package/src/auth.ts +2 -2
  266. package/src/billing-mode.ts +84 -0
  267. package/src/blocked-repositories-protocol.ts +13 -0
  268. package/src/context-url.spec.ts +37 -9
  269. package/src/context-url.ts +94 -36
  270. package/src/encryption/container-module.ts +2 -3
  271. package/src/encryption/encryption-engine.spec.ts +9 -8
  272. package/src/encryption/encryption-engine.ts +20 -16
  273. package/src/encryption/encryption-service.ts +4 -5
  274. package/src/encryption/key-provider.ts +16 -19
  275. package/src/env.ts +0 -22
  276. package/src/experiments/always-default.ts +24 -0
  277. package/src/experiments/configcat-server.ts +41 -0
  278. package/src/experiments/configcat.ts +56 -0
  279. package/src/experiments/types.ts +34 -0
  280. package/src/gitpod-file-parser.spec.ts +55 -61
  281. package/src/gitpod-file-parser.ts +16 -17
  282. package/src/gitpod-service.ts +228 -129
  283. package/src/headless-workspace-log.ts +6 -4
  284. package/src/ide-frontend-service.ts +2 -2
  285. package/src/ide-protocol.ts +43 -6
  286. package/src/index.ts +16 -15
  287. package/src/installation-admin-protocol.ts +45 -0
  288. package/src/license-protocol.ts +12 -6
  289. package/src/messaging/browser/connection.ts +45 -47
  290. package/src/messaging/browser/window-connection.ts +39 -29
  291. package/src/messaging/client-call-metrics.ts +62 -82
  292. package/src/messaging/error.ts +26 -7
  293. package/src/messaging/handler.ts +6 -6
  294. package/src/messaging/node/connection.ts +8 -8
  295. package/src/messaging/proxy-factory.ts +23 -30
  296. package/src/oss-allowlist.ts +3 -3
  297. package/src/payment-protocol.ts +2 -2
  298. package/src/permission.ts +40 -32
  299. package/src/plans.ts +240 -189
  300. package/src/protocol.spec.ts +97 -0
  301. package/src/protocol.ts +556 -258
  302. package/src/snapshot-url.spec.ts +9 -7
  303. package/src/team-subscription-protocol.ts +59 -22
  304. package/src/teams-projects-protocol.ts +43 -12
  305. package/src/typings/globals.ts +4 -4
  306. package/src/usage.ts +71 -0
  307. package/src/util/analytics.ts +46 -24
  308. package/src/util/async-iterator.ts +4 -5
  309. package/src/util/cancelable.ts +3 -3
  310. package/src/util/date-time.ts +8 -8
  311. package/src/util/debug-app.ts +81 -0
  312. package/src/util/deferred.ts +6 -6
  313. package/src/util/disposable.ts +3 -6
  314. package/src/util/event.ts +9 -11
  315. package/src/util/garbage-collected-cache.ts +8 -6
  316. package/src/util/generate-workspace-id.spec.ts +26 -16
  317. package/src/util/generate-workspace-id.ts +460 -454
  318. package/src/util/gitpod-cookie.ts +8 -9
  319. package/src/util/gitpod-host-url.spec.ts +40 -13
  320. package/src/util/gitpod-host-url.ts +57 -33
  321. package/src/util/grpc.ts +90 -1
  322. package/src/util/jaeger-client-types.ts +2 -2
  323. package/src/util/logging.spec.ts +23 -0
  324. package/src/util/logging.ts +60 -42
  325. package/src/util/make-link.ts +6 -7
  326. package/src/util/nice-grpc.ts +93 -0
  327. package/src/util/parse-workspace-id.spec.ts +17 -8
  328. package/src/util/parse-workspace-id.ts +5 -6
  329. package/src/util/queue.spec.ts +27 -25
  330. package/src/util/repeat.ts +1 -1
  331. package/src/util/semaphore.ts +4 -6
  332. package/src/util/skip-if.ts +9 -6
  333. package/src/util/timeutil.spec.ts +40 -14
  334. package/src/util/timeutil.ts +27 -11
  335. package/src/util/tracing.spec.ts +28 -23
  336. package/src/util/tracing.ts +58 -54
  337. package/src/util/workspace-port-authentication.ts +10 -13
  338. package/src/webhook-event.ts +55 -0
  339. package/src/workspace-class.ts +14 -0
  340. package/src/workspace-cluster.ts +34 -20
  341. package/src/workspace-instance.ts +76 -20
  342. package/src/wsready.ts +3 -3
  343. package/data/builtin-theia-plugins.json +0 -372
  344. package/lib/email-protocol.d.ts +0 -49
  345. package/lib/email-protocol.d.ts.map +0 -1
  346. package/lib/email-protocol.js +0 -28
  347. package/lib/email-protocol.js.map +0 -1
  348. package/lib/messaging/connection-error-handler.d.ts +0 -27
  349. package/lib/messaging/connection-error-handler.d.ts.map +0 -1
  350. package/lib/messaging/connection-error-handler.js +0 -34
  351. package/lib/messaging/connection-error-handler.js.map +0 -1
  352. package/lib/theia-plugins.d.ts +0 -11
  353. package/lib/theia-plugins.d.ts.map +0 -1
  354. package/lib/theia-plugins.js.map +0 -1
  355. package/lib/util/safe-promise.d.ts +0 -11
  356. package/lib/util/safe-promise.d.ts.map +0 -1
  357. package/lib/util/safe-promise.js +0 -31
  358. package/lib/util/safe-promise.js.map +0 -1
  359. package/src/email-protocol.ts +0 -66
  360. package/src/messaging/connection-error-handler.ts +0 -62
  361. package/src/util/safe-promise.ts +0 -26
@@ -3,473 +3,479 @@
3
3
  * Licensed under the GNU Affero General Public License (AGPL).
4
4
  * See License-AGPL.txt in the project root for license information.
5
5
  */
6
+
6
7
  import randomNumber = require("random-number-csprng");
7
8
 
8
9
  export async function generateWorkspaceID(firstSegment?: string, secondSegment?: string): Promise<string> {
9
- const firstSeg = clean(firstSegment) || await random(colors);
10
- const secSeg = clean(secondSegment, Math.min(15, 23 - firstSeg.length)) || await random(animals);
11
- return firstSeg+'-'+secSeg+'-'+(await random(characters, 11));
10
+ const firstSeg = clean(firstSegment) || (await random(colors));
11
+ const secSeg = clean(secondSegment) || (await random(animals));
12
+ function fit(makeFit: string, otherSeg: string) {
13
+ return makeFit.substring(0, Math.max(segLength, 2 * segLength - otherSeg.length));
14
+ }
15
+ return fit(firstSeg, secSeg) + "-" + fit(secSeg, firstSeg) + "-" + (await random(characters, segLength));
12
16
  }
13
17
 
14
- function clean(segment: string | undefined, maxChars: number = 15) {
15
- if (!segment) {
16
- return undefined;
17
- }
18
- segment = segment.toLowerCase();
19
- let result = '';
20
- for (let i =0; i < segment.length; i++) {
21
- if (characters.indexOf(segment[i]) !== -1) {
22
- result += segment[i];
18
+ function clean(segment: string | undefined, maxChars: number = 16) {
19
+ if (!segment) {
20
+ return undefined;
21
+ }
22
+ segment = segment.toLowerCase();
23
+ let result = "";
24
+ for (let i = 0; i < segment.length; i++) {
25
+ if (characters.indexOf(segment[i]) !== -1) {
26
+ result += segment[i];
27
+ }
28
+ }
29
+ if (result.length >= 2) {
30
+ return result.substring(0, maxChars);
23
31
  }
24
- }
25
- if (result.length >= 2) {
26
- return result.substring(0, maxChars);
27
- }
28
32
  }
29
33
 
30
34
  async function random(array: string[], length: number = 1): Promise<string> {
31
- var result = '';
32
- for ( var i = 0; i < length; i++ ) {
33
- result += array[await randomNumber(0, array.length-1)];
35
+ var result = "";
36
+ for (var i = 0; i < length; i++) {
37
+ result += array[await randomNumber(0, array.length - 1)];
34
38
  }
35
39
  return result;
36
40
  }
37
41
 
38
- const characters = 'abcdefghijklmnopqrstuvwxyz0123456789'.split('');
42
+ const segLength = 11;
43
+
44
+ const characters = "abcdefghijklmnopqrstuvwxyz0123456789".split("");
39
45
 
40
46
  export const colors = [
41
- 'amaranth',
42
- 'amber',
43
- 'amethyst',
44
- 'apricot',
45
- 'aqua',
46
- 'aquamarine',
47
- 'azure',
48
- 'beige',
49
- 'black',
50
- 'blue',
51
- 'blush',
52
- 'bronze',
53
- 'brown',
54
- 'chocolate',
55
- 'coffee',
56
- 'copper',
57
- 'coral',
58
- 'crimson',
59
- 'cyan',
60
- 'emerald',
61
- 'fuchsia',
62
- 'gold',
63
- 'gray',
64
- 'green',
65
- 'harlequin',
66
- 'indigo',
67
- 'ivory',
68
- 'jade',
69
- 'kumquat',
70
- 'lavender',
71
- 'lime',
72
- 'magenta',
73
- 'maroon',
74
- 'moccasin',
75
- 'olive',
76
- 'orange',
77
- 'peach',
78
- 'pink',
79
- 'plum',
80
- 'purple',
81
- 'red',
82
- 'rose',
83
- 'salmon',
84
- 'sapphire',
85
- 'scarlet',
86
- 'silver',
87
- 'tan',
88
- 'teal',
89
- 'tomato',
90
- 'turquoise',
91
- 'violet',
92
- 'white',
93
- 'yellow',
94
- ];
47
+ "amaranth",
48
+ "amber",
49
+ "amethyst",
50
+ "apricot",
51
+ "aqua",
52
+ "aquamarine",
53
+ "azure",
54
+ "beige",
55
+ "black",
56
+ "blue",
57
+ "blush",
58
+ "bronze",
59
+ "brown",
60
+ "chocolate",
61
+ "coffee",
62
+ "copper",
63
+ "coral",
64
+ "crimson",
65
+ "cyan",
66
+ "emerald",
67
+ "fuchsia",
68
+ "gold",
69
+ "gray",
70
+ "green",
71
+ "harlequin",
72
+ "indigo",
73
+ "ivory",
74
+ "jade",
75
+ "kumquat",
76
+ "lavender",
77
+ "lime",
78
+ "magenta",
79
+ "maroon",
80
+ "moccasin",
81
+ "olive",
82
+ "orange",
83
+ "peach",
84
+ "pink",
85
+ "plum",
86
+ "purple",
87
+ "red",
88
+ "rose",
89
+ "salmon",
90
+ "sapphire",
91
+ "scarlet",
92
+ "silver",
93
+ "tan",
94
+ "teal",
95
+ "tomato",
96
+ "turquoise",
97
+ "violet",
98
+ "white",
99
+ "yellow",
100
+ ];
95
101
 
96
- export const animals = [
97
- 'canidae',
98
- 'felidae',
99
- 'cat',
100
- 'cattle',
101
- 'dog',
102
- 'donkey',
103
- 'goat',
104
- 'horse',
105
- 'pig',
106
- 'rabbit',
107
- 'aardvark',
108
- 'aardwolf',
109
- 'albatross',
110
- 'alligator',
111
- 'alpaca',
112
- 'amphibian',
113
- 'anaconda',
114
- 'angelfish',
115
- 'anglerfish',
116
- 'ant',
117
- 'anteater',
118
- 'antelope',
119
- 'antlion',
120
- 'ape',
121
- 'aphid',
122
- 'armadillo',
123
- 'asp',
124
- 'baboon',
125
- 'badger',
126
- 'bandicoot',
127
- 'barnacle',
128
- 'barracuda',
129
- 'basilisk',
130
- 'bass',
131
- 'bat',
132
- 'bear',
133
- 'beaver',
134
- 'bedbug',
135
- 'bee',
136
- 'beetle',
137
- 'bird',
138
- 'bison',
139
- 'blackbird',
140
- 'boa',
141
- 'boar',
142
- 'bobcat',
143
- 'bobolink',
144
- 'bonobo',
145
- 'booby',
146
- 'bovid',
147
- 'bug',
148
- 'butterfly',
149
- 'buzzard',
150
- 'camel',
151
- 'canid',
152
- 'capybara',
153
- 'cardinal',
154
- 'caribou',
155
- 'carp',
156
- 'cat',
157
- 'catshark',
158
- 'caterpillar',
159
- 'catfish',
160
- 'cattle',
161
- 'centipede',
162
- 'cephalopod',
163
- 'chameleon',
164
- 'cheetah',
165
- 'chickadee',
166
- 'chicken',
167
- 'chimpanzee',
168
- 'chinchilla',
169
- 'chipmunk',
170
- 'clam',
171
- 'clownfish',
172
- 'cobra',
173
- 'cockroach',
174
- 'cod',
175
- 'condor',
176
- 'constrictor',
177
- 'coral',
178
- 'cougar',
179
- 'cow',
180
- 'coyote',
181
- 'crab',
182
- 'crane',
183
- 'crawdad',
184
- 'crayfish',
185
- 'cricket',
186
- 'crocodile',
187
- 'crow',
188
- 'cuckoo',
189
- 'cicada',
190
- 'damselfly',
191
- 'deer',
192
- 'dingo',
193
- 'dinosaur',
194
- 'dodo',
195
- 'dog',
196
- 'dolphin',
197
- 'donkey',
198
- 'dormouse',
199
- 'dove',
200
- 'dragonfly',
201
- 'dragon',
202
- 'duck',
203
- 'eagle',
204
- 'earthworm',
205
- 'earwig',
206
- 'echidna',
207
- 'eel',
208
- 'egret',
209
- 'elephant',
210
- 'elk',
211
- 'emu',
212
- 'ermine',
213
- 'falcon',
214
- 'ferret',
215
- 'finch',
216
- 'firefly',
217
- 'fish',
218
- 'flamingo',
219
- 'flea',
220
- 'fly',
221
- 'flyingfish',
222
- 'fowl',
223
- 'fox',
224
- 'frog',
225
- 'gamefowl',
226
- 'galliform',
227
- 'gazelle',
228
- 'gecko',
229
- 'gerbil',
230
- 'gibbon',
231
- 'giraffe',
232
- 'goat',
233
- 'goldfish',
234
- 'goose',
235
- 'gopher',
236
- 'gorilla',
237
- 'grasshopper',
238
- 'grouse',
239
- 'guan',
240
- 'guanaco',
241
- 'guineafowl',
242
- 'gull',
243
- 'guppy',
244
- 'haddock',
245
- 'halibut',
246
- 'hamster',
247
- 'hare',
248
- 'harrier',
249
- 'hawk',
250
- 'hedgehog',
251
- 'heron',
252
- 'herring',
253
- 'hippopotamus',
254
- 'hookworm',
255
- 'hornet',
256
- 'horse',
257
- 'hoverfly',
258
- 'hummingbird',
259
- 'hyena',
260
- 'iguana',
261
- 'impala',
262
- 'jackal',
263
- 'jaguar',
264
- 'jay',
265
- 'jellyfish',
266
- 'junglefowl',
267
- 'kangaroo',
268
- 'kingfisher',
269
- 'kite',
270
- 'kiwi',
271
- 'koala',
272
- 'koi',
273
- 'krill',
274
- 'ladybug',
275
- 'lamprey',
276
- 'landfowl',
277
- 'lark',
278
- 'leech',
279
- 'lemming',
280
- 'lemur',
281
- 'leopard',
282
- 'leopon',
283
- 'limpet',
284
- 'lion',
285
- 'lizard',
286
- 'llama',
287
- 'lobster',
288
- 'locust',
289
- 'loon',
290
- 'louse',
291
- 'lungfish',
292
- 'lynx',
293
- 'macaw',
294
- 'mackerel',
295
- 'magpie',
296
- 'mammal',
297
- 'manatee',
298
- 'mandrill',
299
- 'marlin',
300
- 'marmoset',
301
- 'marmot',
302
- 'marsupial',
303
- 'marten',
304
- 'mastodon',
305
- 'meadowlark',
306
- 'meerkat',
307
- 'mink',
308
- 'minnow',
309
- 'mite',
310
- 'mockingbird',
311
- 'mole',
312
- 'mollusk',
313
- 'mongoose',
314
- 'monkey',
315
- 'moose',
316
- 'mosquito',
317
- 'moth',
318
- 'mouse',
319
- 'mule',
320
- 'muskox',
321
- 'narwhal',
322
- 'newt',
323
- 'nightingale',
324
- 'ocelot',
325
- 'octopus',
326
- 'opossum',
327
- 'orangutan',
328
- 'orca',
329
- 'ostrich',
330
- 'otter',
331
- 'owl',
332
- 'ox',
333
- 'panda',
334
- 'panther',
335
- 'parakeet',
336
- 'parrot',
337
- 'parrotfish',
338
- 'partridge',
339
- 'peacock',
340
- 'peafowl',
341
- 'pelican',
342
- 'penguin',
343
- 'perch',
344
- 'pheasant',
345
- 'pig',
346
- 'pigeon',
347
- 'pike',
348
- 'pinniped',
349
- 'piranha',
350
- 'planarian',
351
- 'platypus',
352
- 'pony',
353
- 'porcupine',
354
- 'porpoise',
355
- 'possum',
356
- 'prawn',
357
- 'primate',
358
- 'ptarmigan',
359
- 'puffin',
360
- 'puma',
361
- 'python',
362
- 'quail',
363
- 'quelea',
364
- 'quokka',
365
- 'rabbit',
366
- 'raccoon',
367
- 'rat',
368
- 'rattlesnake',
369
- 'raven',
370
- 'reindeer',
371
- 'reptile',
372
- 'rhinoceros',
373
- 'roadrunner',
374
- 'rodent',
375
- 'rook',
376
- 'rooster',
377
- 'roundworm',
378
- 'sailfish',
379
- 'salamander',
380
- 'salmon',
381
- 'sawfish',
382
- 'scallop',
383
- 'scorpion',
384
- 'seahorse',
385
- 'shark',
386
- 'sheep',
387
- 'shrew',
388
- 'shrimp',
389
- 'silkworm',
390
- 'silverfish',
391
- 'skink',
392
- 'skunk',
393
- 'sloth',
394
- 'slug',
395
- 'smelt',
396
- 'snail',
397
- 'snake',
398
- 'snipe',
399
- 'sole',
400
- 'sparrow',
401
- 'spider',
402
- 'spoonbill',
403
- 'squid',
404
- 'squirrel',
405
- 'starfish',
406
- 'stingray',
407
- 'stoat',
408
- 'stork',
409
- 'sturgeon',
410
- 'swallow',
411
- 'swan',
412
- 'swift',
413
- 'swordfish',
414
- 'swordtail',
415
- 'tahr',
416
- 'takin',
417
- 'tapir',
418
- 'tarantula',
419
- 'tarsier',
420
- 'termite',
421
- 'tern',
422
- 'thrush',
423
- 'tick',
424
- 'tiger',
425
- 'tiglon',
426
- 'toad',
427
- 'tortoise',
428
- 'toucan',
429
- 'trout',
430
- 'tuna',
431
- 'turkey',
432
- 'turtle',
433
- 'tyrannosaurus',
434
- 'urial',
435
- 'vicuna',
436
- 'viper',
437
- 'vole',
438
- 'vulture',
439
- 'wallaby',
440
- 'walrus',
441
- 'wasp',
442
- 'warbler',
443
- 'weasel',
444
- 'whale',
445
- 'whippet',
446
- 'whitefish',
447
- 'wildcat',
448
- 'wildebeest',
449
- 'wildfowl',
450
- 'wolf',
451
- 'wolverine',
452
- 'wombat',
453
- 'woodpecker',
454
- 'worm',
455
- 'wren',
456
- 'xerinae',
457
- 'yak',
458
- 'zebra',
459
- 'alpaca',
460
- 'cat',
461
- 'cattle',
462
- 'chicken',
463
- 'dog',
464
- 'donkey',
465
- 'ferret',
466
- 'gayal',
467
- 'goldfish',
468
- 'guppy',
469
- 'horse',
470
- 'koi',
471
- 'llama',
472
- 'sheep',
473
- 'yak',
474
- 'unicorn',
475
- ]
102
+ export const animals = [
103
+ "canidae",
104
+ "felidae",
105
+ "cat",
106
+ "cattle",
107
+ "dog",
108
+ "donkey",
109
+ "goat",
110
+ "horse",
111
+ "pig",
112
+ "rabbit",
113
+ "aardvark",
114
+ "aardwolf",
115
+ "albatross",
116
+ "alligator",
117
+ "alpaca",
118
+ "amphibian",
119
+ "anaconda",
120
+ "angelfish",
121
+ "anglerfish",
122
+ "ant",
123
+ "anteater",
124
+ "antelope",
125
+ "antlion",
126
+ "ape",
127
+ "aphid",
128
+ "armadillo",
129
+ "asp",
130
+ "baboon",
131
+ "badger",
132
+ "bandicoot",
133
+ "barnacle",
134
+ "barracuda",
135
+ "basilisk",
136
+ "bass",
137
+ "bat",
138
+ "bear",
139
+ "beaver",
140
+ "bedbug",
141
+ "bee",
142
+ "beetle",
143
+ "bird",
144
+ "bison",
145
+ "blackbird",
146
+ "boa",
147
+ "boar",
148
+ "bobcat",
149
+ "bobolink",
150
+ "bonobo",
151
+ "booby",
152
+ "bovid",
153
+ "bug",
154
+ "butterfly",
155
+ "buzzard",
156
+ "camel",
157
+ "canid",
158
+ "capybara",
159
+ "cardinal",
160
+ "caribou",
161
+ "carp",
162
+ "cat",
163
+ "catshark",
164
+ "caterpillar",
165
+ "catfish",
166
+ "cattle",
167
+ "centipede",
168
+ "cephalopod",
169
+ "chameleon",
170
+ "cheetah",
171
+ "chickadee",
172
+ "chicken",
173
+ "chimpanzee",
174
+ "chinchilla",
175
+ "chipmunk",
176
+ "clam",
177
+ "clownfish",
178
+ "cobra",
179
+ "cockroach",
180
+ "cod",
181
+ "condor",
182
+ "constrictor",
183
+ "coral",
184
+ "cougar",
185
+ "cow",
186
+ "coyote",
187
+ "crab",
188
+ "crane",
189
+ "crawdad",
190
+ "crayfish",
191
+ "cricket",
192
+ "crocodile",
193
+ "crow",
194
+ "cuckoo",
195
+ "cicada",
196
+ "damselfly",
197
+ "deer",
198
+ "dingo",
199
+ "dinosaur",
200
+ "dodo",
201
+ "dog",
202
+ "dolphin",
203
+ "donkey",
204
+ "dormouse",
205
+ "dove",
206
+ "dragonfly",
207
+ "dragon",
208
+ "duck",
209
+ "eagle",
210
+ "earthworm",
211
+ "earwig",
212
+ "echidna",
213
+ "eel",
214
+ "egret",
215
+ "elephant",
216
+ "elk",
217
+ "emu",
218
+ "ermine",
219
+ "falcon",
220
+ "ferret",
221
+ "finch",
222
+ "firefly",
223
+ "fish",
224
+ "flamingo",
225
+ "flea",
226
+ "fly",
227
+ "flyingfish",
228
+ "fowl",
229
+ "fox",
230
+ "frog",
231
+ "gamefowl",
232
+ "galliform",
233
+ "gazelle",
234
+ "gecko",
235
+ "gerbil",
236
+ "gibbon",
237
+ "giraffe",
238
+ "goat",
239
+ "goldfish",
240
+ "goose",
241
+ "gopher",
242
+ "gorilla",
243
+ "grasshopper",
244
+ "grouse",
245
+ "guan",
246
+ "guanaco",
247
+ "guineafowl",
248
+ "gull",
249
+ "guppy",
250
+ "haddock",
251
+ "halibut",
252
+ "hamster",
253
+ "hare",
254
+ "harrier",
255
+ "hawk",
256
+ "hedgehog",
257
+ "heron",
258
+ "herring",
259
+ "hippopotamus",
260
+ "hookworm",
261
+ "hornet",
262
+ "horse",
263
+ "hoverfly",
264
+ "hummingbird",
265
+ "hyena",
266
+ "iguana",
267
+ "impala",
268
+ "jackal",
269
+ "jaguar",
270
+ "jay",
271
+ "jellyfish",
272
+ "junglefowl",
273
+ "kangaroo",
274
+ "kingfisher",
275
+ "kite",
276
+ "kiwi",
277
+ "koala",
278
+ "koi",
279
+ "krill",
280
+ "ladybug",
281
+ "lamprey",
282
+ "landfowl",
283
+ "lark",
284
+ "leech",
285
+ "lemming",
286
+ "lemur",
287
+ "leopard",
288
+ "leopon",
289
+ "limpet",
290
+ "lion",
291
+ "lizard",
292
+ "llama",
293
+ "lobster",
294
+ "locust",
295
+ "loon",
296
+ "louse",
297
+ "lungfish",
298
+ "lynx",
299
+ "macaw",
300
+ "mackerel",
301
+ "magpie",
302
+ "mammal",
303
+ "manatee",
304
+ "mandrill",
305
+ "marlin",
306
+ "marmoset",
307
+ "marmot",
308
+ "marsupial",
309
+ "marten",
310
+ "mastodon",
311
+ "meadowlark",
312
+ "meerkat",
313
+ "mink",
314
+ "minnow",
315
+ "mite",
316
+ "mockingbird",
317
+ "mole",
318
+ "mollusk",
319
+ "mongoose",
320
+ "monkey",
321
+ "moose",
322
+ "mosquito",
323
+ "moth",
324
+ "mouse",
325
+ "mule",
326
+ "muskox",
327
+ "narwhal",
328
+ "newt",
329
+ "nightingale",
330
+ "ocelot",
331
+ "octopus",
332
+ "opossum",
333
+ "orangutan",
334
+ "orca",
335
+ "ostrich",
336
+ "otter",
337
+ "owl",
338
+ "ox",
339
+ "panda",
340
+ "panther",
341
+ "parakeet",
342
+ "parrot",
343
+ "parrotfish",
344
+ "partridge",
345
+ "peacock",
346
+ "peafowl",
347
+ "pelican",
348
+ "penguin",
349
+ "perch",
350
+ "pheasant",
351
+ "pig",
352
+ "pigeon",
353
+ "pike",
354
+ "pinniped",
355
+ "piranha",
356
+ "planarian",
357
+ "platypus",
358
+ "pony",
359
+ "porcupine",
360
+ "porpoise",
361
+ "possum",
362
+ "prawn",
363
+ "primate",
364
+ "ptarmigan",
365
+ "puffin",
366
+ "puma",
367
+ "python",
368
+ "quail",
369
+ "quelea",
370
+ "quokka",
371
+ "rabbit",
372
+ "raccoon",
373
+ "rat",
374
+ "rattlesnake",
375
+ "raven",
376
+ "reindeer",
377
+ "reptile",
378
+ "rhinoceros",
379
+ "roadrunner",
380
+ "rodent",
381
+ "rook",
382
+ "rooster",
383
+ "roundworm",
384
+ "sailfish",
385
+ "salamander",
386
+ "salmon",
387
+ "sawfish",
388
+ "scallop",
389
+ "scorpion",
390
+ "seahorse",
391
+ "shark",
392
+ "sheep",
393
+ "shrew",
394
+ "shrimp",
395
+ "silkworm",
396
+ "silverfish",
397
+ "skink",
398
+ "skunk",
399
+ "sloth",
400
+ "slug",
401
+ "smelt",
402
+ "snail",
403
+ "snake",
404
+ "snipe",
405
+ "sole",
406
+ "sparrow",
407
+ "spider",
408
+ "spoonbill",
409
+ "squid",
410
+ "squirrel",
411
+ "starfish",
412
+ "stingray",
413
+ "stoat",
414
+ "stork",
415
+ "sturgeon",
416
+ "swallow",
417
+ "swan",
418
+ "swift",
419
+ "swordfish",
420
+ "swordtail",
421
+ "tahr",
422
+ "takin",
423
+ "tapir",
424
+ "tarantula",
425
+ "tarsier",
426
+ "termite",
427
+ "tern",
428
+ "thrush",
429
+ "tick",
430
+ "tiger",
431
+ "tiglon",
432
+ "toad",
433
+ "tortoise",
434
+ "toucan",
435
+ "trout",
436
+ "tuna",
437
+ "turkey",
438
+ "turtle",
439
+ "tyrannosaurus",
440
+ "urial",
441
+ "vicuna",
442
+ "viper",
443
+ "vole",
444
+ "vulture",
445
+ "wallaby",
446
+ "walrus",
447
+ "wasp",
448
+ "warbler",
449
+ "weasel",
450
+ "whale",
451
+ "whippet",
452
+ "whitefish",
453
+ "wildcat",
454
+ "wildebeest",
455
+ "wildfowl",
456
+ "wolf",
457
+ "wolverine",
458
+ "wombat",
459
+ "woodpecker",
460
+ "worm",
461
+ "wren",
462
+ "xerinae",
463
+ "yak",
464
+ "zebra",
465
+ "alpaca",
466
+ "cat",
467
+ "cattle",
468
+ "chicken",
469
+ "dog",
470
+ "donkey",
471
+ "ferret",
472
+ "gayal",
473
+ "goldfish",
474
+ "guppy",
475
+ "horse",
476
+ "koi",
477
+ "llama",
478
+ "sheep",
479
+ "yak",
480
+ "unicorn",
481
+ ];