Fork of atp.tools as a universal profile for people on the ATmosphere
at main 150 lines 4.1 kB view raw
1/* eslint-disable */ 2// This file is automatically generated, do not edit! 3 4/** 5 * @module 6 * Lexicons used internally in atp.tools 7 */ 8 9import "@atcute/client/lexicons"; 10 11declare module "@atcute/client/lexicons" { 12 namespace ToolsAtpBorglePlay { 13 interface Record { 14 $type: "tools.atp.borgle.play"; 15 game: Guess[]; 16 } 17 interface Guess { 18 [Brand.Type]?: "tools.atp.borgle.play#guess"; 19 /** Array of evaluation results for each letter in the guess */ 20 evaluations: ("correct" | "present" | "absent")[]; 21 /** 22 * The guessed word (5 letters, uppercase) \ 23 * Minimum string length: 5 \ 24 * Maximum string length: 5 25 */ 26 guess: string; 27 } 28 } 29 30 namespace ToolsAtpTypingTest { 31 interface Record { 32 $type: "tools.atp.typing.test"; 33 /** 34 * Accuracy of the typing test, percentage. Formula: (correctKeystrokes / totalKeystrokes) * 100 \ 35 * Minimum: 0 \ 36 * Maximum: 100 37 */ 38 accuracy: number; 39 /** Mode of the typing test */ 40 mode: Brand.Union<QuoteMode | TextMode | TimerMode>; 41 /** Ratio of total correct:total:fixed keystrokes. */ 42 ratio: string; 43 /** 44 * Raw words per minute detected by the application. Formula: (totalKeystrokes / 5) * (60 / timeElapsed) \ 45 * Minimum: 0 \ 46 * Maximum: 10000 47 */ 48 rawWpm: number; 49 /** Text prompted for the typing test. */ 50 textPrompted: Brand.Union< 51 PromptedTextClosed | PromptedTextOpen | PromptedTextWithSource 52 >; 53 /** 54 * Time taken to complete the typing test in milliseconds \ 55 * Minimum: 0 56 */ 57 timeMs: number; 58 /** 59 * Words per minute detected by the application. Formula: (correctKeystrokes / 5) * (60 / timeElapsed) \ 60 * Minimum: 0 \ 61 * Maximum: 10000 62 */ 63 wpm: number; 64 /** 65 * Consistency of the typing test, percentage. Formula not currently available. \ 66 * Minimum: 0 \ 67 * Maximum: 100 68 */ 69 consistency?: number; 70 /** Minimum array length: 1 */ 71 dataPoints?: DataPoint[]; 72 } 73 interface DataPoint { 74 [Brand.Type]?: "tools.atp.typing.test#dataPoint"; 75 /** 76 * Number of errors \ 77 * Minimum: 0 78 */ 79 errors: number; 80 /** 81 * Time in milliseconds \ 82 * Minimum: 0 83 */ 84 time: number; 85 /** 86 * Words per minute \ 87 * Minimum: 0 88 */ 89 wpm: number; 90 /** 91 * Raw words per minute \ 92 * Minimum: 0 93 */ 94 rawWpm?: number; 95 } 96 interface PromptedTextClosed { 97 [Brand.Type]?: "tools.atp.typing.test#promptedTextClosed"; 98 /** Text to be typed */ 99 text: string; 100 } 101 interface PromptedTextOpen { 102 [Brand.Type]?: "tools.atp.typing.test#promptedTextOpen"; 103 /** 104 * Number of characters typed \ 105 * Minimum: 0 106 */ 107 charsTyped: number; 108 /** Text to be typed */ 109 text: string; 110 } 111 interface PromptedTextWithSource { 112 [Brand.Type]?: "tools.atp.typing.test#promptedTextWithSource"; 113 /** Source of the text */ 114 source: string; 115 /** Text to be typed */ 116 text: string; 117 } 118 interface QuoteMode { 119 [Brand.Type]?: "tools.atp.typing.test#quoteMode"; 120 /** Type of the typing test mode */ 121 mode: string; 122 /** The sub-mode setting of the quote mode */ 123 subMode: "short" | "medium" | "long" | "xl"; 124 } 125 /** Mode of the typing test */ 126 interface TextMode { 127 [Brand.Type]?: "tools.atp.typing.test#textMode"; 128 /** Type of the typing test mode */ 129 mode: string; 130 /** The sub-mode setting of the text mode */ 131 subMode: number; 132 } 133 interface TimerMode { 134 [Brand.Type]?: "tools.atp.typing.test#timerMode"; 135 /** Type of the typing test mode */ 136 mode: string; 137 /** The sub-mode setting of the timer mode */ 138 subMode: number; 139 } 140 } 141 142 interface Records { 143 "tools.atp.borgle.play": ToolsAtpBorglePlay.Record; 144 "tools.atp.typing.test": ToolsAtpTypingTest.Record; 145 } 146 147 interface Queries {} 148 149 interface Procedures {} 150}