sendproof-core 0.1.0.alpha.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 (229) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +55 -0
  4. data/lib/sendproof/assets.rb +70 -0
  5. data/lib/sendproof/attribution.rb +98 -0
  6. data/lib/sendproof/capture.rb +66 -0
  7. data/lib/sendproof/clock.rb +54 -0
  8. data/lib/sendproof/configuration.rb +241 -0
  9. data/lib/sendproof/data_store.rb +34 -0
  10. data/lib/sendproof/dynamodb/store.rb +183 -0
  11. data/lib/sendproof/dynamodb.rb +17 -0
  12. data/lib/sendproof/elasticsearch/store.rb +24 -0
  13. data/lib/sendproof/elasticsearch.rb +17 -0
  14. data/lib/sendproof/firestore/interceptor.rb +38 -0
  15. data/lib/sendproof/firestore/store.rb +150 -0
  16. data/lib/sendproof/firestore.rb +99 -0
  17. data/lib/sendproof/handler.rb +23 -0
  18. data/lib/sendproof/identity.rb +37 -0
  19. data/lib/sendproof/limits.rb +113 -0
  20. data/lib/sendproof/middleware.rb +68 -0
  21. data/lib/sendproof/mongo/engine.rb +692 -0
  22. data/lib/sendproof/mongo/guarded.rb +100 -0
  23. data/lib/sendproof/mongo/plain.rb +45 -0
  24. data/lib/sendproof/mongo/store.rb +54 -0
  25. data/lib/sendproof/mongo/subscriber.rb +21 -0
  26. data/lib/sendproof/mongo.rb +41 -0
  27. data/lib/sendproof/mongoid/store.rb +58 -0
  28. data/lib/sendproof/mongoid.rb +65 -0
  29. data/lib/sendproof/observed_request.rb +108 -0
  30. data/lib/sendproof/opensearch/store.rb +21 -0
  31. data/lib/sendproof/opensearch.rb +17 -0
  32. data/lib/sendproof/operation_matcher.rb +28 -0
  33. data/lib/sendproof/pool_hooks.rb +80 -0
  34. data/lib/sendproof/preview_request.rb +44 -0
  35. data/lib/sendproof/preview_transport.rb +331 -0
  36. data/lib/sendproof/protocol.rb +81 -0
  37. data/lib/sendproof/provider.rb +83 -0
  38. data/lib/sendproof/recorder.rb +298 -0
  39. data/lib/sendproof/redaction.rb +98 -0
  40. data/lib/sendproof/redis/commands.rb +76 -0
  41. data/lib/sendproof/redis/store.rb +205 -0
  42. data/lib/sendproof/redis.rb +18 -0
  43. data/lib/sendproof/search/middleware.rb +39 -0
  44. data/lib/sendproof/search/store.rb +213 -0
  45. data/lib/sendproof/search.rb +82 -0
  46. data/lib/sendproof/stores/classify.rb +346 -0
  47. data/lib/sendproof/stores/guard.rb +127 -0
  48. data/lib/sendproof/stores/tables.rb +1328 -0
  49. data/lib/sendproof/stores.rb +12 -0
  50. data/lib/sendproof/trace_store.rb +110 -0
  51. data/lib/sendproof/transaction_control.rb +187 -0
  52. data/lib/sendproof/ui/action-bar.js +91 -0
  53. data/lib/sendproof/ui/api.js +239 -0
  54. data/lib/sendproof/ui/app.css +848 -0
  55. data/lib/sendproof/ui/app.js +742 -0
  56. data/lib/sendproof/ui/autofill.js +137 -0
  57. data/lib/sendproof/ui/code-copy.js +71 -0
  58. data/lib/sendproof/ui/code-picker.js +149 -0
  59. data/lib/sendproof/ui/commands.js +197 -0
  60. data/lib/sendproof/ui/components.js +77 -0
  61. data/lib/sendproof/ui/context-bar.js +82 -0
  62. data/lib/sendproof/ui/copy.js +92 -0
  63. data/lib/sendproof/ui/coverage-popover.js +35 -0
  64. data/lib/sendproof/ui/crumb-fit.js +80 -0
  65. data/lib/sendproof/ui/deprecation.js +164 -0
  66. data/lib/sendproof/ui/display-settings.js +175 -0
  67. data/lib/sendproof/ui/doc-diff.js +209 -0
  68. data/lib/sendproof/ui/docs-view.js +347 -0
  69. data/lib/sendproof/ui/favicon.png +0 -0
  70. data/lib/sendproof/ui/favicon.svg +1 -0
  71. data/lib/sendproof/ui/field-help.js +52 -0
  72. data/lib/sendproof/ui/field-modules.js +23 -0
  73. data/lib/sendproof/ui/fields/controls.js +179 -0
  74. data/lib/sendproof/ui/fields/dom.js +36 -0
  75. data/lib/sendproof/ui/fields/infer.js +71 -0
  76. data/lib/sendproof/ui/fields/lookup-source.js +63 -0
  77. data/lib/sendproof/ui/fields/lookup.js +285 -0
  78. data/lib/sendproof/ui/fields/render.js +496 -0
  79. data/lib/sendproof/ui/fields/select.js +175 -0
  80. data/lib/sendproof/ui/fields/validate.js +363 -0
  81. data/lib/sendproof/ui/fields/validation-formats.js +164 -0
  82. data/lib/sendproof/ui/fields/validation-references.js +68 -0
  83. data/lib/sendproof/ui/fields/validation-values.js +137 -0
  84. data/lib/sendproof/ui/generate-menu.js +44 -0
  85. data/lib/sendproof/ui/generate.js +184 -0
  86. data/lib/sendproof/ui/header-editor.js +777 -0
  87. data/lib/sendproof/ui/headers.js +188 -0
  88. data/lib/sendproof/ui/highlight.js +257 -0
  89. data/lib/sendproof/ui/history-popover.js +24 -0
  90. data/lib/sendproof/ui/i18n.js +253 -0
  91. data/lib/sendproof/ui/icons.js +87 -0
  92. data/lib/sendproof/ui/index.html +70 -0
  93. data/lib/sendproof/ui/issues.js +187 -0
  94. data/lib/sendproof/ui/json-view.js +166 -0
  95. data/lib/sendproof/ui/lang-icons.js +62 -0
  96. data/lib/sendproof/ui/layout.js +262 -0
  97. data/lib/sendproof/ui/listbox.js +334 -0
  98. data/lib/sendproof/ui/locales/ar-capture.js +366 -0
  99. data/lib/sendproof/ui/locales/ar-stores.js +116 -0
  100. data/lib/sendproof/ui/locales/ar.js +561 -0
  101. data/lib/sendproof/ui/locales/cs-capture.js +442 -0
  102. data/lib/sendproof/ui/locales/cs-stores.js +116 -0
  103. data/lib/sendproof/ui/locales/cs.js +689 -0
  104. data/lib/sendproof/ui/locales/da-capture.js +347 -0
  105. data/lib/sendproof/ui/locales/da-stores.js +116 -0
  106. data/lib/sendproof/ui/locales/da.js +522 -0
  107. data/lib/sendproof/ui/locales/de-capture.js +347 -0
  108. data/lib/sendproof/ui/locales/de-stores.js +116 -0
  109. data/lib/sendproof/ui/locales/de.js +519 -0
  110. data/lib/sendproof/ui/locales/el-capture.js +347 -0
  111. data/lib/sendproof/ui/locales/el-stores.js +116 -0
  112. data/lib/sendproof/ui/locales/el.js +520 -0
  113. data/lib/sendproof/ui/locales/en-capture.js +349 -0
  114. data/lib/sendproof/ui/locales/en-stores.js +95 -0
  115. data/lib/sendproof/ui/locales/en.js +522 -0
  116. data/lib/sendproof/ui/locales/es-capture.js +353 -0
  117. data/lib/sendproof/ui/locales/es-stores.js +116 -0
  118. data/lib/sendproof/ui/locales/es.js +525 -0
  119. data/lib/sendproof/ui/locales/fa-capture.js +348 -0
  120. data/lib/sendproof/ui/locales/fa-stores.js +116 -0
  121. data/lib/sendproof/ui/locales/fa.js +521 -0
  122. data/lib/sendproof/ui/locales/fi-capture.js +347 -0
  123. data/lib/sendproof/ui/locales/fi-stores.js +116 -0
  124. data/lib/sendproof/ui/locales/fi.js +523 -0
  125. data/lib/sendproof/ui/locales/fr-capture.js +353 -0
  126. data/lib/sendproof/ui/locales/fr-stores.js +116 -0
  127. data/lib/sendproof/ui/locales/fr.js +525 -0
  128. data/lib/sendproof/ui/locales/he-capture.js +358 -0
  129. data/lib/sendproof/ui/locales/he-stores.js +116 -0
  130. data/lib/sendproof/ui/locales/he.js +529 -0
  131. data/lib/sendproof/ui/locales/hi-capture.js +348 -0
  132. data/lib/sendproof/ui/locales/hi-stores.js +116 -0
  133. data/lib/sendproof/ui/locales/hi.js +523 -0
  134. data/lib/sendproof/ui/locales/id-capture.js +347 -0
  135. data/lib/sendproof/ui/locales/id-stores.js +116 -0
  136. data/lib/sendproof/ui/locales/id.js +521 -0
  137. data/lib/sendproof/ui/locales/it-capture.js +361 -0
  138. data/lib/sendproof/ui/locales/it-stores.js +116 -0
  139. data/lib/sendproof/ui/locales/it.js +523 -0
  140. data/lib/sendproof/ui/locales/ja-capture.js +346 -0
  141. data/lib/sendproof/ui/locales/ja-stores.js +116 -0
  142. data/lib/sendproof/ui/locales/ja.js +521 -0
  143. data/lib/sendproof/ui/locales/ko-capture.js +346 -0
  144. data/lib/sendproof/ui/locales/ko-stores.js +116 -0
  145. data/lib/sendproof/ui/locales/ko.js +522 -0
  146. data/lib/sendproof/ui/locales/nb-capture.js +349 -0
  147. data/lib/sendproof/ui/locales/nb-stores.js +116 -0
  148. data/lib/sendproof/ui/locales/nb.js +521 -0
  149. data/lib/sendproof/ui/locales/nl-capture.js +355 -0
  150. data/lib/sendproof/ui/locales/nl-stores.js +116 -0
  151. data/lib/sendproof/ui/locales/nl.js +520 -0
  152. data/lib/sendproof/ui/locales/pl-capture.js +432 -0
  153. data/lib/sendproof/ui/locales/pl-stores.js +116 -0
  154. data/lib/sendproof/ui/locales/pl.js +528 -0
  155. data/lib/sendproof/ui/locales/pt-BR-capture.js +350 -0
  156. data/lib/sendproof/ui/locales/pt-BR-stores.js +116 -0
  157. data/lib/sendproof/ui/locales/pt-BR.js +523 -0
  158. data/lib/sendproof/ui/locales/pt-PT-capture.js +350 -0
  159. data/lib/sendproof/ui/locales/pt-PT-stores.js +116 -0
  160. data/lib/sendproof/ui/locales/pt-PT.js +523 -0
  161. data/lib/sendproof/ui/locales/ru-capture.js +437 -0
  162. data/lib/sendproof/ui/locales/ru-stores.js +116 -0
  163. data/lib/sendproof/ui/locales/ru.js +624 -0
  164. data/lib/sendproof/ui/locales/sv-capture.js +349 -0
  165. data/lib/sendproof/ui/locales/sv-stores.js +116 -0
  166. data/lib/sendproof/ui/locales/sv.js +518 -0
  167. data/lib/sendproof/ui/locales/th-capture.js +347 -0
  168. data/lib/sendproof/ui/locales/th-stores.js +116 -0
  169. data/lib/sendproof/ui/locales/th.js +521 -0
  170. data/lib/sendproof/ui/locales/tr-capture.js +348 -0
  171. data/lib/sendproof/ui/locales/tr-stores.js +116 -0
  172. data/lib/sendproof/ui/locales/tr.js +521 -0
  173. data/lib/sendproof/ui/locales/uk-capture.js +442 -0
  174. data/lib/sendproof/ui/locales/uk-stores.js +116 -0
  175. data/lib/sendproof/ui/locales/uk.js +630 -0
  176. data/lib/sendproof/ui/locales/vi-capture.js +346 -0
  177. data/lib/sendproof/ui/locales/vi-stores.js +116 -0
  178. data/lib/sendproof/ui/locales/vi.js +523 -0
  179. data/lib/sendproof/ui/locales/zh-Hans-capture.js +347 -0
  180. data/lib/sendproof/ui/locales/zh-Hans-stores.js +116 -0
  181. data/lib/sendproof/ui/locales/zh-Hans.js +523 -0
  182. data/lib/sendproof/ui/locales/zh-Hant-capture.js +346 -0
  183. data/lib/sendproof/ui/locales/zh-Hant-stores.js +116 -0
  184. data/lib/sendproof/ui/locales/zh-Hant.js +522 -0
  185. data/lib/sendproof/ui/manifest.json +866 -0
  186. data/lib/sendproof/ui/markdown.js +39 -0
  187. data/lib/sendproof/ui/model-view.js +182 -0
  188. data/lib/sendproof/ui/navigation.js +233 -0
  189. data/lib/sendproof/ui/operation-header.js +76 -0
  190. data/lib/sendproof/ui/operations.js +7 -0
  191. data/lib/sendproof/ui/overview-view.js +63 -0
  192. data/lib/sendproof/ui/personas.js +59 -0
  193. data/lib/sendproof/ui/popover.js +71 -0
  194. data/lib/sendproof/ui/preview-false.js +108 -0
  195. data/lib/sendproof/ui/request-editor.js +496 -0
  196. data/lib/sendproof/ui/response-metadata.js +354 -0
  197. data/lib/sendproof/ui/response-viewer.js +618 -0
  198. data/lib/sendproof/ui/result-blocked.js +155 -0
  199. data/lib/sendproof/ui/result-capture.js +25 -0
  200. data/lib/sendproof/ui/result-database.js +185 -0
  201. data/lib/sendproof/ui/result-effects.js +176 -0
  202. data/lib/sendproof/ui/result-headers.js +106 -0
  203. data/lib/sendproof/ui/result-logs.js +408 -0
  204. data/lib/sendproof/ui/result-states.js +213 -0
  205. data/lib/sendproof/ui/results.js +371 -0
  206. data/lib/sendproof/ui/router.js +118 -0
  207. data/lib/sendproof/ui/schema-model.js +336 -0
  208. data/lib/sendproof/ui/schema-tree.js +344 -0
  209. data/lib/sendproof/ui/schema.js +397 -0
  210. data/lib/sendproof/ui/security.js +31 -0
  211. data/lib/sendproof/ui/seeded-menu.js +69 -0
  212. data/lib/sendproof/ui/settings.js +93 -0
  213. data/lib/sendproof/ui/shortcuts-sheet.js +73 -0
  214. data/lib/sendproof/ui/shortcuts.js +190 -0
  215. data/lib/sendproof/ui/sidebar.js +289 -0
  216. data/lib/sendproof/ui/signin.js +259 -0
  217. data/lib/sendproof/ui/snippets.js +530 -0
  218. data/lib/sendproof/ui/store-marks.js +47 -0
  219. data/lib/sendproof/ui/stores.js +131 -0
  220. data/lib/sendproof/ui/styles.css +971 -0
  221. data/lib/sendproof/ui/toggletip.js +53 -0
  222. data/lib/sendproof/ui/uuid.js +10 -0
  223. data/lib/sendproof/ui/view.js +122 -0
  224. data/lib/sendproof/ui/views.css +653 -0
  225. data/lib/sendproof/version.rb +9 -0
  226. data/lib/sendproof/workbench.rb +102 -0
  227. data/lib/sendproof-core.rb +3 -0
  228. data/lib/sendproof.rb +121 -0
  229. metadata +292 -0
@@ -0,0 +1,349 @@
1
+ // English strings for the result capture panes (response viewer, side effects, logs, headers),
2
+ // the headers editor, the issues popover, field validation and the pane dividers. Merged into en.js.
3
+ // Plural entries are objects keyed by Intl.PluralRules category and take {n}. Header names, JSON,
4
+ // SQL, log messages and every other captured value are data and never appear here.
5
+ export default {
6
+ // Response viewer: follow-ups
7
+ 'resp.useNameIn': 'Use {name} in',
8
+ 'resp.useResultIn': 'Use this result in',
9
+ 'resp.useResult': 'Use this result',
10
+ 'resp.needsPermission': 'Requires extra permission',
11
+ 'resp.openIn': 'Open in {title}',
12
+
13
+ // Response viewer: timing
14
+ 'resp.timingTotal': { one: 'Timing: {n} millisecond in total', other: 'Timing: {n} milliseconds in total' },
15
+ 'resp.timing.auth': 'Auth',
16
+ 'resp.timing.handler': 'Handler',
17
+ 'resp.timing.db': 'Database',
18
+ 'resp.timing.serialize': 'Serialise',
19
+ 'resp.queries': { one: '{n} query', other: '{n} queries' },
20
+
21
+ // Response viewer: validation summary and schema check
22
+ 'resp.validationProblem': 'Validation problem',
23
+ 'resp.fieldsNeedAttention': { one: '{n} field needs attention.', other: '{n} fields need attention.' },
24
+ 'resp.schemaFallback': 'schema',
25
+
26
+ // Response viewer: body, views and table
27
+ 'resp.body': 'Response body',
28
+ 'resp.bodyType': 'Response body, {type}',
29
+ 'resp.noBody': 'No response body.',
30
+ 'resp.bodyView': 'Body view',
31
+ 'resp.mode.pretty': 'Pretty',
32
+ 'resp.mode.raw': 'Raw',
33
+ 'resp.mode.table': 'Table',
34
+ 'resp.tableLabel': 'Response body table',
35
+ 'resp.table.field': 'Field',
36
+ 'resp.table.value': 'Value',
37
+ 'resp.summary.items': { one: '{n} item', other: '{n} items' },
38
+ 'resp.summary.keys': { one: '{n} key', other: '{n} keys' },
39
+ 'resp.expandName': 'Expand {name}',
40
+ 'resp.collapseName': 'Collapse {name}',
41
+ 'resp.expandAll': 'Expand all',
42
+ 'resp.collapseAll': 'Collapse all',
43
+ 'resp.copyLine': 'Copy value on line {n}',
44
+ 'resp.copyBody': 'Copy body',
45
+
46
+ // Response viewer: find in body
47
+ 'resp.search': 'Search body',
48
+ 'resp.find': 'Find in response body',
49
+ 'resp.prevMatch': 'Previous match',
50
+ 'resp.nextMatch': 'Next match',
51
+ 'resp.closeSearch': 'Close search',
52
+ 'resp.matchCount': '{current} of {total}',
53
+ 'resp.noMatches': 'No matches',
54
+
55
+ // Side effects
56
+ 'fx.kind.email': 'Email',
57
+ 'fx.kind.http': 'HTTP call',
58
+ 'fx.kind.job': 'Background job',
59
+ 'fx.kind.message': 'Message',
60
+ 'fx.kind.other': 'Effect',
61
+ 'fx.held.email': 'Held',
62
+ 'fx.held.http': 'Intercepted · not sent',
63
+ 'fx.held.job': 'Discarded on rollback',
64
+ 'fx.held.message': 'Held',
65
+ 'fx.held.other': 'Held',
66
+ 'fx.sent.email': 'Delivered',
67
+ 'fx.sent.http': 'Sent',
68
+ 'fx.sent.job': 'Enqueued',
69
+ 'fx.sent.message': 'Published',
70
+ 'fx.sent.other': 'Delivered',
71
+ 'fx.captured': 'Captured',
72
+ 'fx.field.from': 'From',
73
+ 'fx.field.to': 'To',
74
+ 'fx.field.cc': 'Cc',
75
+ 'fx.field.subject': 'Subject',
76
+ 'fx.field.method': 'Method',
77
+ 'fx.field.url': 'URL',
78
+ 'fx.field.status': 'Status',
79
+ 'fx.field.name': 'Name',
80
+ 'fx.field.queue': 'Queue',
81
+ 'fx.field.runAt': 'Run at',
82
+ 'fx.field.topic': 'Topic',
83
+ 'fx.field.key': 'Key',
84
+ 'fx.field.body': 'Body',
85
+ 'fx.field.arguments': 'Arguments',
86
+ 'fx.field.payload': 'Payload',
87
+ 'fx.field.data': 'Data',
88
+ 'fx.to': 'to {to}',
89
+ 'fx.queue': 'queue {queue}',
90
+ 'fx.emailPreview': 'Email preview',
91
+ 'fx.openHtml': 'Open HTML',
92
+ 'fx.source': 'Source',
93
+ 'fx.htmlSource': 'HTML source',
94
+ 'fx.htmlFrame': 'Email HTML preview',
95
+ 'fx.heldBanner': {
96
+ one: '**Captured effects were held.** Sendproof held back {n} side effect for this preview. Send runs it for real.',
97
+ other: '**Captured effects were held.** Sendproof held back {n} side effects for this preview. Send runs them for real.',
98
+ },
99
+ 'fx.ran': { one: '{n} side effect ran.', other: '{n} side effects ran.' },
100
+ 'fx.capturedCount': { one: '{n} side effect captured.', other: '{n} side effects captured.' },
101
+ 'fx.truncated': 'Some side effects were omitted because the capture limit was reached.',
102
+ 'fx.none': 'No side effects were captured for this request.',
103
+
104
+ // Logs
105
+ 'logs.level.trace': 'Trace',
106
+ 'logs.level.debug': 'Debug',
107
+ 'logs.level.information': 'Information',
108
+ 'logs.level.warning': 'Warning',
109
+ 'logs.level.error': 'Error',
110
+ 'logs.level.critical': 'Critical',
111
+ 'logs.level.sql': 'SQL',
112
+ 'logs.filter.all': 'All',
113
+ 'logs.filter.info': 'Info',
114
+ 'logs.filter.warning': 'Warning',
115
+ 'logs.filter.error': 'Error',
116
+ 'logs.levelGroup': 'Level',
117
+ 'logs.sqlCount': 'SQL {n}',
118
+ 'logs.filterLabel': 'Filter logs',
119
+ 'logs.filterPlaceholder': 'Filter messages or properties',
120
+ 'logs.copyAll': 'Copy logs as JSON',
121
+ 'logs.table': 'Log entries. Press Enter on a row to show its details.',
122
+ 'logs.col.expand': 'Expand',
123
+ 'logs.col.ms': 'ms',
124
+ 'logs.col.level': 'Level',
125
+ 'logs.col.took': 'Took',
126
+ 'logs.col.source': 'Source',
127
+ 'logs.col.message': 'Message',
128
+ 'logs.details': 'Log details',
129
+ 'logs.source.efCore': 'EF Core',
130
+ 'logs.source.hosting': 'Hosting',
131
+ 'logs.msValue': '{n} ms',
132
+ 'logs.field.category': 'Category',
133
+ 'logs.field.eventId': 'Event ID',
134
+ 'logs.field.offset': 'Offset',
135
+ 'logs.field.elapsed': 'Elapsed',
136
+ 'logs.field.rows': 'Rows affected',
137
+ 'logs.sqlStatement': 'SQL statement',
138
+ 'logs.exception': 'Exception',
139
+ 'logs.copySql': 'Copy SQL with values',
140
+ 'logs.copyJson': 'Copy as JSON',
141
+ 'logs.what.entry': 'Log entry',
142
+ 'logs.none': 'No logs were captured for this request.',
143
+ 'logs.noMatch': 'No logs match these filters.',
144
+ 'logs.scoped': 'Scoped to this request',
145
+ 'logs.scopedTrace': 'Scoped to this request · trace {id}',
146
+ 'logs.keys': '{move} move · {expand} expand',
147
+ 'logs.truncated': 'Some log entries were omitted because the capture limit was reached.',
148
+
149
+ // Response and request headers panes
150
+ 'hdrs.open': 'Open',
151
+ 'hdrs.matchesRequest': 'matches request',
152
+ 'hdrs.firstUse': 'first use of this key',
153
+ 'hdrs.replayed': 'replayed response',
154
+ 'hdrs.response': 'Response headers',
155
+ 'hdrs.copyAll': 'Copy all headers',
156
+ 'hdrs.none': 'No response headers were captured.',
157
+ 'hdrs.request': 'Request headers as sent',
158
+ 'hdrs.requestSummary': '{n} · after variables were resolved',
159
+ 'hdrs.cookies': 'Cookies',
160
+
161
+ // Headers editor
162
+ 'kv.preset.acceptJson': 'Accept JSON',
163
+ 'kv.preset.requestId': 'New request ID',
164
+ 'kv.preset.bypassCache': 'Bypass cache',
165
+ 'kv.std.accept': 'Media types you can read',
166
+ 'kv.std.acceptLanguage': 'Preferred response language',
167
+ 'kv.std.authorization': 'Credentials for the operation',
168
+ 'kv.std.cacheControl': 'Caching directives',
169
+ 'kv.std.contentType': 'Request body media type',
170
+ 'kv.std.ifMatch': 'Send if the resource matches an ETag',
171
+ 'kv.std.ifModifiedSince': 'Send if modified after this date',
172
+ 'kv.std.ifNoneMatch': 'Send if the ETag has changed',
173
+ 'kv.std.ifUnmodifiedSince': 'Send if unmodified since this date',
174
+ 'kv.std.prefer': 'Request preferences',
175
+ 'kv.std.range': 'Range of bytes to request',
176
+ 'kv.std.requestId': 'Trace a request',
177
+ 'kv.sessionCookie': 'Session cookie',
178
+ 'kv.requiredValue': 'Enter a value for this required header.',
179
+ 'kv.group.required': 'Required by this operation',
180
+ 'kv.group.managed': 'Set by Sendproof',
181
+ 'kv.group.managedDetail': 'from your session and body',
182
+ 'kv.group.custom': 'Custom',
183
+ 'kv.grid': 'Request headers',
184
+ 'kv.col.send': 'Send',
185
+ 'kv.col.name': 'Name',
186
+ 'kv.col.value': 'Value',
187
+ 'kv.col.actions': 'Actions',
188
+ 'kv.managed': 'Managed by Sendproof',
189
+ 'kv.sendName': 'Send {name}',
190
+ 'kv.sendNew': 'Send new header',
191
+ 'kv.namePlaceholder': 'Header name',
192
+ 'kv.valuePlaceholder': 'Value',
193
+ 'kv.valueFor': 'Value for {name}',
194
+ 'kv.headerValue': 'Header value',
195
+ 'kv.hint.uuid': 'new per request',
196
+ 'kv.hint.now': 'time of request',
197
+ 'kv.hint.lastId': 'from last response',
198
+ 'kv.auto': 'auto',
199
+ 'kv.regenerate': 'Regenerate {name}',
200
+ 'kv.moreActions': 'More actions for {name}',
201
+ 'kv.newHeader': 'new header',
202
+ 'kv.count': { one: '{n} header will be sent', other: '{n} headers will be sent' },
203
+ 'kv.presets': 'Presets',
204
+ 'kv.editorMode': 'Editor mode',
205
+ 'kv.table': 'Table',
206
+ 'kv.bulkEdit': 'Bulk edit',
207
+ 'kv.add': 'Add header',
208
+ 'kv.fromSpec': 'From the spec',
209
+ 'kv.addDocumented': 'Add documented headers',
210
+ 'kv.uuid': 'uuid',
211
+ 'kv.customHeaders': 'Custom headers',
212
+ 'kv.bulkPlaceholder': 'Name: Value',
213
+ 'kv.bulkHint': 'Use one Name: Value pair per line. Prefix a line with # to disable it.',
214
+ 'kv.customFallback': 'Custom header',
215
+ 'kv.noteLine': '{name}: {message}',
216
+ 'kv.fix': 'Fix it',
217
+ 'kv.variables': 'Use {uuid}, {now} or {last} for values that change per request.',
218
+ 'kv.suggestions': 'Header suggestions',
219
+ 'kv.move': '{key} move',
220
+ 'kv.pick': '{key} pick',
221
+ 'kv.toValue': '{key} to value',
222
+ 'kv.inSpec': 'in spec',
223
+ 'kv.clear': 'Clear value',
224
+ 'kv.remove': 'Remove header',
225
+ 'kv.enable': 'Enable header',
226
+ 'kv.disable': 'Disable header',
227
+ // Header validation (ui/headers.js)
228
+ 'kv.err.uuidUnavailable': 'UUID generation is unavailable. Enter a value for {token}.',
229
+ 'kv.err.lastId': 'Run a request that returns an id before using {token}, or enter a value.',
230
+ 'kv.err.unknownVariable': 'Unknown variable {name}. Use {uuid}, {now}, or {last}.',
231
+ 'kv.err.nameRequired': 'Header name is required.',
232
+ 'kv.err.nameSpaces': 'Header names can’t contain spaces. Try {fixed}.',
233
+ 'kv.err.nameToken': 'Header name must contain only valid HTTP token characters.',
234
+ 'kv.err.lineBreak': 'Header value cannot contain a line break.',
235
+ 'kv.err.valueChars': 'Enter a value supported by HTTP headers.',
236
+ 'kv.err.duplicate': 'Duplicate header name. {first} already uses this name.',
237
+ 'kv.err.noColon': 'Line {n}: add a colon after the header name.',
238
+
239
+ // Issues popover and request tabs
240
+ 'issues.fieldsNeed': { one: '{n} field needs attention', other: '{n} fields need attention' },
241
+ 'issues.tabFlag': { one: '{n} field needs attention', other: '{n} fields need attention' },
242
+ 'issues.rejected': 'Rejected by the API',
243
+ 'issues.notSent': 'Nothing was sent',
244
+ 'issues.body': 'Body',
245
+ 'issues.request': 'Request',
246
+ 'issues.next': '{key} next field',
247
+ 'issues.previous': '{key} previous',
248
+ 'issues.close': '{key} close',
249
+
250
+ // Pane dividers: use shell.sizeTip and shell.pixels (ui/locales/en.js)
251
+ // Inference (ui/fields/infer.js) shows no text of its own.
252
+
253
+ // Validation: a required value is missing; the message says what to enter
254
+ 'valid.missing.lookup': 'Choose {article} {name}',
255
+ 'valid.missing.number': 'Enter a number, like {example}',
256
+ 'valid.missing.integer': 'Enter a whole number, like {example}',
257
+ 'valid.missing.date': 'Enter a date, like {example}',
258
+ 'valid.missing.email': 'Enter an email address, like ops@acme.dev',
259
+ 'valid.missing.enum': 'Choose one of {list}',
260
+ 'valid.missing.enumMore': 'Choose one of {list}, …',
261
+ 'valid.missing.boolean': 'Choose true or false',
262
+ 'valid.missing.array': { one: 'Add at least {n} item', other: 'Add at least {n} items' },
263
+ 'valid.missing.text': 'Enter {article} {name}',
264
+ 'valid.missing.valueNoun': 'value',
265
+
266
+ // Validation: values
267
+ 'valid.notAllowed': 'This value is not allowed.',
268
+ 'valid.const': 'Use {value}.',
269
+ 'valid.enum': 'Choose an allowed value.',
270
+ 'valid.enumChoices': 'Choose an allowed value: {choices}.',
271
+ 'valid.enumMore': 'Choose an allowed value: {choices}, ….',
272
+ 'valid.oneOf': 'Match exactly one of these options: {names}.',
273
+ 'valid.anyOf': 'Match at least one of these options: {names}.',
274
+ 'valid.oneOfMany': 'Match exactly one option. The value matches {names}.',
275
+ 'valid.notNamed': 'Use a value that does not match {name}.',
276
+ 'valid.notSchema': 'Use a different value. This value matches an excluded schema.',
277
+ 'valid.option': 'Option {n}',
278
+ 'valid.renameProperty': 'Rename property {name}. {reason}',
279
+ 'valid.requiredWhen': 'This field is required when {trigger} is provided.',
280
+ 'valid.removeProperty': 'Remove property {name}. It is not allowed.',
281
+ 'valid.duplicateItem': 'Remove or change this item. It duplicates item {n}.',
282
+ 'valid.removeItem': 'Remove this item. It is not allowed.',
283
+ 'valid.contains.name': 'matching {name}',
284
+ 'valid.contains.const': 'equal to {value}',
285
+ 'valid.contains.type': 'of type {type}',
286
+ 'valid.contains.schema': 'matching the required schema',
287
+
288
+ // Validation: counts
289
+ 'valid.atLeast.property': { one: 'Use at least {n} property.', other: 'Use at least {n} properties.' },
290
+ 'valid.atMost.property': { one: 'Use at most {n} property.', other: 'Use at most {n} properties.' },
291
+ 'valid.atLeast.item': { one: 'Use at least {n} item.', other: 'Use at least {n} items.' },
292
+ 'valid.atMost.item': { one: 'Use at most {n} item.', other: 'Use at most {n} items.' },
293
+ 'valid.atLeast.character': { one: 'Use at least {n} character.', other: 'Use at least {n} characters.' },
294
+ 'valid.atMost.character': { one: 'Use {n} character or fewer ({current} now)', other: 'Use {n} characters or fewer ({current} now)' },
295
+ 'valid.atLeast.contains': { one: 'Use at least {n} item {expected}.', other: 'Use at least {n} items {expected}.' },
296
+ 'valid.atMost.contains': { one: 'Use at most {n} item {expected}.', other: 'Use at most {n} items {expected}.' },
297
+
298
+ // Validation: types
299
+ 'valid.type.null': 'Use null.',
300
+ 'valid.type.boolean': 'Choose true or false.',
301
+ 'valid.type.object': 'Enter an object.',
302
+ 'valid.type.array': 'Enter an array.',
303
+ 'valid.type.number': 'Enter a number, like 1250.00.',
304
+ 'valid.type.integer': 'Enter a whole number.',
305
+ 'valid.type.string': 'Enter text.',
306
+ 'valid.type.nullValue': 'Value cannot be null.',
307
+ 'valid.type.file': 'Choose a file.',
308
+ 'valid.type.oneOf': 'Use one of these types: {types}.',
309
+
310
+ // Validation: numbers and strings
311
+ 'valid.number.greaterThan': 'Must be greater than {n}.',
312
+ 'valid.number.atLeast': 'Must be at least {n}.',
313
+ 'valid.number.lessThan': 'Must be less than {n}.',
314
+ 'valid.number.atMost': 'Must be at most {n}.',
315
+ 'valid.number.multipleOf': 'Must be a multiple of {n}.',
316
+ 'valid.number.int32': 'Enter a whole number from -2147483648 to 2147483647.',
317
+ 'valid.number.int64': 'Enter a whole number from -9223372036854775808 to 9223372036854775807.',
318
+ 'valid.number.float': 'Enter a number within the 32-bit floating-point range.',
319
+ 'valid.pattern.example': 'Use the format in this example: {example}.',
320
+ 'valid.pattern.generic': 'Use the format shown in the example.',
321
+
322
+ // Validation: formats
323
+ 'valid.format.email': 'Enter an email address, like ops@acme.dev',
324
+ 'valid.format.date': 'Enter a valid date in YYYY-MM-DD format.',
325
+ 'valid.format.time': 'Enter a time with seconds and a time zone, like 09:30:00Z.',
326
+ 'valid.format.dateTime': 'Enter a date and time with a time zone, like 2026-01-20T09:30:00Z.',
327
+ 'valid.format.duration': 'Enter an ISO 8601 duration, like P2D or PT30M.',
328
+ 'valid.format.uuid': 'Enter a UUID, like 123e4567-e89b-12d3-a456-426614174000.',
329
+ 'valid.format.hostname': 'Enter a hostname, like api.example.com.',
330
+ 'valid.format.ipv4': 'Enter an IPv4 address, like 192.0.2.1.',
331
+ 'valid.format.ipv6': 'Enter an IPv6 address, like 2001:db8::1.',
332
+ 'valid.format.url': 'Enter an absolute URL, like https://example.com.',
333
+ 'valid.format.uri': 'Enter an absolute URI, like https://example.com.',
334
+ 'valid.format.uriReference': 'Enter a URI or a relative path, like /items/42.',
335
+ 'valid.format.iri': 'Enter an absolute IRI, like https://example.com/café.',
336
+ 'valid.format.iriReference': 'Enter an IRI or a relative path, like /café.',
337
+ 'valid.format.uriTemplate': 'Enter a URI template, like {example}.',
338
+ 'valid.format.jsonPointer': 'Enter a JSON Pointer, like /items/0.',
339
+ 'valid.format.relativeJsonPointer': 'Enter a relative JSON Pointer, like 1/items.',
340
+ 'valid.format.regex': 'Enter a valid ECMAScript regular expression.',
341
+ 'valid.format.byte': 'Enter Base64-encoded text, like SGVsbG8=.',
342
+ // Response Schema view
343
+ 'resp.mode.schema': 'Schema',
344
+ // Empty states added after the first pass
345
+ 'kv.emptyTitle': 'No custom headers', 'kv.emptyBody': { one: 'Sendproof already sends the header above. Add your own for tracing, locale or tenant.', other: 'Sendproof already sends the {n} above. Add your own for tracing, locale or tenant.' },
346
+ 'kv.applyPreset': 'Apply a preset',
347
+ 'logs.noMatchTitle': 'No log entries match', 'logs.noMatchBody': { one: 'The {n} entry is hidden by your filters: {filters}.', other: 'All {n} entries are hidden by your filters: {filters}.' },
348
+ 'logs.hiddenLevel': 'level {level}', 'logs.hiddenText': 'text “{text}”', 'logs.hiddenSql': 'SQL is hidden', 'logs.clearFilters': 'Clear filters', 'logs.allLevels': 'Show all levels',
349
+ };
@@ -0,0 +1,95 @@
1
+ // English strings for data stores (spec/data-stores.md, mocks v6): store nouns, the document diff,
2
+ // store groups and coverage, Db command logs, and "Preview unavailable" before and during a run.
3
+ // Merged into en.js. Store names (MongoDB, Redis…), commands, `preview: false` and every captured
4
+ // value are data and never appear here. Plural entries are keyed by Intl.PluralRules category.
5
+ export default {
6
+ // What each kind of store calls the place a record lives, and its records.
7
+ 'store.sql': 'SQL database',
8
+ 'store.container.sql': 'Table', 'store.container.document': 'Collection', 'store.container.item': 'Table',
9
+ 'store.container.key': 'Key prefix', 'store.container.index': 'Index', 'store.container.container': 'Container',
10
+ 'store.count.sql': { one: '{n} row', other: '{n} rows' },
11
+ 'store.count.document': { one: '{n} document', other: '{n} documents' },
12
+ 'store.count.item': { one: '{n} item', other: '{n} items' },
13
+ 'store.count.key': { one: '{n} key', other: '{n} keys' },
14
+ 'store.count.index': { one: '{n} document', other: '{n} documents' },
15
+ 'store.count.container': { one: '{n} item', other: '{n} items' },
16
+
17
+ // Document diff
18
+ 'diff.fields': { one: '{n} field', other: '{n} fields' },
19
+ 'diff.items': { one: '{n} item', other: '{n} items' },
20
+ 'diff.changes': { one: '{n} change', other: '{n} changes' },
21
+ 'diff.changed': { one: '{n} changed', other: '{n} changed' },
22
+ 'diff.added': { one: '{n} added', other: '{n} added' },
23
+ 'diff.removed': { one: '{n} removed', other: '{n} removed' },
24
+ 'diff.noChange': 'No field changed',
25
+ 'diff.newRecord.document': 'New document', 'diff.newRecord.item': 'New item', 'diff.newRecord.key': 'New key', 'diff.newRecord.row': 'New row',
26
+ 'diff.removedRecord.document': 'Document removed', 'diff.removedRecord.item': 'Item removed', 'diff.removedRecord.key': 'Key removed', 'diff.removedRecord.row': 'Row removed',
27
+ 'diff.viaUpsert': 'via upsert', 'diff.viaReplace': 'whole document replaced',
28
+ 'diff.changesOnly': 'Changes only', 'diff.show': 'Show',
29
+ 'diff.view.diff': 'Diff', 'diff.view.before': 'Before', 'diff.view.after': 'After',
30
+ 'diff.fold': 'Fold or unfold {name}',
31
+ 'diff.redacted': 'redacted', 'diff.redactedTip': 'A secret field: Sendproof never captures its value',
32
+
33
+ // Store groups in the Database tab, and what Sendproof covers
34
+ 'stores.rolledBody': 'These are the changes this request would write to {stores}.',
35
+ 'stores.rolledBodyAs': 'These are the changes this request would write to {stores} as {name}.',
36
+ 'stores.state.rolledBack': 'Rolled back', 'stores.state.aborted': 'Transaction aborted',
37
+ 'stores.state.blocked': 'Writes blocked', 'stores.state.committed': 'Committed',
38
+ 'stores.strip': 'Stores in this result', 'stores.readOnly': 'Read, not written:',
39
+ 'stores.cover.in': 'Covered in {env}:',
40
+ 'stores.cover.rolled': { one: '{stores} rolls back', other: '{stores} roll back' },
41
+ 'stores.cover.blocked': { one: '{stores} blocks writes', other: '{stores} block writes' },
42
+ 'stores.cover.separator': '; ',
43
+ 'stores.cover.limit': 'Stores and clients Sendproof didn’t hook aren’t covered.',
44
+
45
+ // The environment chip's coverage panel
46
+ 'cov.open': 'What Preview covers here',
47
+ 'cov.title': 'What Preview covers in {env}',
48
+ 'cov.mode.preview': 'Preview', 'cov.mode.guard': 'Guard only',
49
+ 'cov.preview': 'Writes roll back after every Preview',
50
+ 'cov.guard': 'Reads run; the first write stops the Preview',
51
+ 'cov.limit': 'Only these stores are covered. A store or client Sendproof didn’t hook is neither rolled back nor blocked.',
52
+
53
+ // Db command logs
54
+ 'logs.level.db': 'Database',
55
+ 'logs.queries': 'Queries', 'logs.queriesGroup': 'Queries by store',
56
+ 'logs.filterPlaceholderDb': 'Filter messages, commands or keys',
57
+ 'logs.blocked': 'Blocked', 'logs.blockedBody': 'The write guard refused {op}: it never reached {store}.',
58
+ 'logs.field.store': 'Store', 'logs.field.documents': 'Documents', 'logs.field.keys': 'Keys', 'logs.field.items': 'Items', 'logs.field.error': 'Error',
59
+ 'logs.command': 'Command', 'logs.cmd.values': 'Command · values hidden', 'logs.cmd.redis': 'Command · key kept, arguments hidden',
60
+ 'logs.cmd.statement': '{op} · values hidden', 'logs.valueHidden': 'Value hidden',
61
+ 'logs.parameters': 'Parameters', 'logs.secretNames': 'Secret names are never captured',
62
+ 'logs.redisNote': 'Redis arguments have no names to check, so every argument after the key is hidden.',
63
+ 'logs.copyCommand': 'Copy command', 'logs.what.command': 'Command',
64
+
65
+ // Preview unavailable, known in advance (preview: false)
66
+ 'dock.title': 'Preview unavailable',
67
+ 'dock.why': '{stores} can’t roll back, so Sendproof won’t run a Preview of this operation. Send commits for real and asks first.',
68
+ 'dock.whyNoStore': 'Sendproof won’t run a Preview of this operation. Send commits for real and asks first.',
69
+ 'dock.by': 'Marked by the API author · {mark}', 'dock.more': 'Why?',
70
+ 'bar.sendOnly': 'Send only · asks before it commits',
71
+ 'bar.previewOffTip': 'Preview unavailable for this operation',
72
+ 'bar.confirmStores': 'Send for real? This writes to {stores} and can’t be undone.',
73
+ 'side.noPreview': 'No Preview',
74
+ 'res.before.response.previewOff': 'Run the request to see the status, body and timing. This operation writes to {stores}, which can’t roll back, so it can only be sent for real.',
75
+ 'res.before.response.previewOffNoStore': 'Run the request to see the status, body and timing. This operation can’t be previewed, so it can only be sent for real.',
76
+ 'res.step.previewOff': 'Preview isn’t available here',
77
+
78
+ // Preview unavailable, caught mid-request (409)
79
+ 'blk.code': 'Preview unavailable', 'blk.eyebrow': 'Blocked by the write guard',
80
+ 'blk.title': 'Preview stopped before writing to {store}',
81
+ 'blk.bodyGuard': 'The handler sent {op} to {store}. {store} can’t roll back, so Sendproof refused the command before it left the API.',
82
+ 'blk.bodyRefused': 'The handler sent {op} to {store}, which can’t run it inside a Preview, so Sendproof refused it before it left the API. {detail}.',
83
+ 'blk.safe': 'Nothing was written',
84
+ 'blk.safeNote': 'A blocked Preview keeps nothing else either: no body, changes, logs or effects.',
85
+ 'blk.refused': '{op} refused, never sent', 'blk.effects': 'Side effects', 'blk.discarded': 'Held, then discarded',
86
+ 'blk.next': 'What to do next',
87
+ 'blk.sendNote': 'Commits for real and asks first.',
88
+ 'blk.sendNoteTraced': 'Commits for real and asks first. Traced Send records the rows, documents and commands as they’re committed.',
89
+ 'blk.author': 'For the API author', 'blk.authorBody': 'Mark the route with {mark} so the Preview button explains this before anyone runs it.',
90
+ 'blk.copy': 'Copy', 'blk.raw': 'Response body',
91
+ 'blk.tabTitle': 'A blocked Preview keeps nothing',
92
+ 'blk.tabBody': 'The write guard stopped this Preview at {store}, so nothing was captured. Send for real records changes, effects and logs as they’re committed.',
93
+ 'bar.previewBlocked': 'Preview blocked',
94
+ 'bar.lastBlocked': 'Last Preview blocked · {store} write',
95
+ };