Files
uberbringer/internal/pkg/receipt/testdata/paper/ntfy-high.hex
T
57_WolveandClaude Opus 5.5 1335ed0687
Security / Vulnerability check (push) Successful in 41s
Test / Lint and test (push) Successful in 1m57s
Add the notify and ntfy modules and scoped tokens
Breaking: a job with a raw element prints only with a token issued with
uberbringer token --raw. Every other token, every existing one included,
gets 403 token_scope for it, with the raw elements in details, and keeps
every other route.

The notify module prints a notification card from a title, message,
priority and tags, with topic, click, up to three actions, image,
markdown and time as options; it decodes strictly and refuses a payload
over its length caps. The ntfy module takes one ntfy message as ntfy
sends it, such as the ntfy client's $NTFY_RAW, ignores fields it does
not know, cuts text over the caps, and answers 204 for other events and
binary bodies. Both print every message plain: one message cannot tell
the first of a sequence from a replacement, since a publisher may choose
the sequence ID. internal/pkg/ntfy holds ntfy's message types.

Both print the same card. The priority picks the form: a dark URGENT
rule and a double box, a double box headed HIGH, a single box with the
title in its border, or a rule with no box. Tags print as markers in
front of the title, the rest on a Tags row; links print as QR codes with
their labels; attached PNG, JPEG, GIF and WebP images print after the
card. A line-level markdown subset is laid out without a dependency,
keeping marks inside code spans and URLs, and emoji are removed after a
few typed ones become markers. A card that cannot be laid out prints as
a plain receipt, and the server logs the fault once at ERROR and reports
it to Sentry once. [ntfy.format] and [ntfy.markers] shape the cards; the
markers table is a setting with the user's own keys, also settable as
UBERBRINGER_NTFY_MARKERS=name=value,...

uberbringer token --modules issues a token limited to those modules'
print and preview routes, job status and the module list; each route in
the table says which tokens it takes, and a scope claim that could read
as absent makes the token invalid. image elements take optional, which
also shrinks a too-wide image to the paper; a QR code that could be too
wide for the paper prints with smaller modules; box takes title_bold.
Submit takes a Meta whose source shows in job status and, with a copy
of the request ID, in every worker log line of the job.

The four ntfy cards passed on the TM-T88IV, posted as the client recipe
posts them, and their bytes are pinned in TestPaperReceipts. docs/api.md
describes the modules, the card and the client recipe, with tokens read
from a header file; docs/swagger.json is regenerated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-30 13:57:08 -06:00

337 lines
21 KiB
Plaintext

1b401b74001b61001b4d001d21001b45001b2d001d4200c9cd201b4501484947
481b450020cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd
cdcdcdcdcdcdbb0aba201b45015b215d204469736b20616c6d6f73742066756c
6c1b450020202020202020202020202020202020202020ba0ac7c4c4c4c4c4c4
c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4c4
c4c4b60aba202f76617220697320617420393425206f6e206e61733031202020
20202020202020202020202020ba0aba20202020202020202020202020202020
202020202020202020202020202020202020202020202020ba0aba2054616773
3a206e6173303120202020202020202020202020202020202020202020202020
202020ba0ac8cdcdcdcdcdcdcdcdcdcdcdcdcdcdcd20616c6572747320fa2033
30204e6f762031323a323920cdcdbc0a1b45001b2d001d42001d21001b4d001b
64011b61011d286b0400314132001d286b03003143051d286b03003145311d28
6b1d0031503068747470733a2f2f67726166616e612e6c616e2f642f6469736b
1d286b03003151301b61011b4d011d21001b45001b2d001d42004f70656e2064
617368626f6172640a1b45001b2d001d42001d21001b4d001b64011b61001d76
30004000a0000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000002000000
0000000000000000000000000000000080000000000000000000000000000000
000000000000000000000000000000000000000000000000000000003f000000
00000000000000000000000000000000c0000000000000000000000000000000
00000000000000000000000000000000000000000000000000000003ff000000
00000000000000000000000000000000e03f03f81f80fc07e03f03f81f80fc07
e03f03f81f80fc07e03f03f81f80fc07e03f03fa5ffffe97e03f27fff4000000
0000000000000000000000000000000080000000000000000000000000000000
000000000000000000000000000000000000004ffffffffffb52ffff49000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000000001fffff557fffffffffe892000000
00000000000000000000000000000000c0000000000000000000000000000000
000000000000000000000000000000000000fff9100088893fffc08524000000
0000000000000000000000000000000080000000000000000000000000000000
00000000000000000000000000000000002ffb04a56d252480002a5249000000
00000000000000000000000000000000c0000000000000000000000000000000
00000000000000000000000000000000017fd052491090925555491492000000
00000000000000000000000000000000c0000000000000000000000000000000
0000000000000000000000000000000007fd0a8924a52549112224a248000000
0000000000000000000000000000000080000000000000000000000000000000
000000000000000000000000000000003fc0a45492489424a494924925000000
00000000000000000000000000000000c0000000000000000000000000000000
00000000000000000000000000000002fe565282492542924a42492492000000
00000000000000000000000000000000c0000000000000000000000000000000
00000000000000000000000000000017f5210855249029492129249248000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000000007fa094a528924a94249494924925000000
00000000000000000000000000000000c0000000000000000000000000000000
000000000000000000000000000007fc95251285249242924a42492492000000
00000000000000000000000000000000c0000000000000000000000000000000
00000000000000000000000000003fe52248a850924929492129249248000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000000001fe909492452a492494249494924925000000
00000000000000000000000000000000c0000000000000000000000000000000
000000000000000000000000001ff44a42492885249242924a42492492000000
00000000000000000000000000000000c0000000000000000000000000000000
00000000000000000000000000ffc2a529248550924929492129249248000000
0000000000000000000000000000000080000000000000000000000000000000
0000000000000000000000002ffa14109492522a492494249494924925000000
00000000000000000000000000000000c0000000000000000000000000000000
00000000036db68000000016ffd2a2a542492945249242924a42492492000000
00000000000000000000000000000000c0000000000000000000000000000000
00000003fffffffffffffffffd08491429248428924929492129249248000000
0000000000000000000000000000000080000000000000000000000000000000
0000007fffffffffffffffffc0a524a29492528524924a249494924925000000
00000000000000000000000000000000c0000000000000000000000000000000
000017ff5400006daaaaaaa02a529249424929509249214a4a42492492000000
00000000000000000000000000000000c0000000000000000000000000000000
00017fea255555102492492a890849242924842a492494212129249248000000
0000000000000000000000000000000080000000000000000000000000000000
000ffe91482222a54949248924a524929492528524924a949494924925000000
00000000000000000000000000000000c0000000000000000000000000000000
007fe04a254948492424925252529249424929509249214a4a42492492000000
00000000000000000000000000000000c0000000000000000000000000000000
03fd15214924252492924924890849242924842a492494212129249248000000
0000000000000000000000000000000080000000000000000000000000000000
1fe89294924a92924949249252a524929492528524924a949494924925000000
00000000000000000000000000000000c0000000000000000000000000000000
ff22484a492148492424924908529249424929509249214a4a42492492000000
00000000000000000000000000000000c0000000000000000000000000000007
fc9525212494252492924924a50849242924842a492494212129249248000000
000000000000000000000000000000008000000000000000000000000000007f
e1409294924a92924949249252a524929492528524924a949494924925000000
00000000000000000000000000000000c00000000000000000000000000003fe
8a2a484a492148492424924908529249424929509249214a4a42492492000000
00000000000000000000000000000000c0000000000000000000000000001fe8
514925212494252492924924a50849242924842a492494212129249248000000
0000000000000000000000000000000080000000000000000000000000007f92
8a249294924a92924949249252a524929492528524924a949494924925000000
00000000000000000000000000000000c000000000000000000000000017fa24
514a484a492148492424924908529249424929509249214a4a42492492000000
00000000000000000000000000000000c0000000000000000000000001bfd092
8a2125212494252492924924a50849242924842a492494212129249248000000
000000000000000000000000000000008000000000000000000000003ffe8a49
214a9294924952924949249252a524929492528524924a949494924925000000
00000000000000000000000000000000c000000003ffffff0000000fffe05292
5490484a492488492424924908529249424929509249214a4a42492492000000
00000000000000000000000000000000c000000afffffffffffffffff6152449
0a4aa521249252a492924924a50849242924842a492494212129249248000000
000000000000000000000000000000008000017fff5ad6b5fffffffd48a49292
51241294924909124949249252a524929492528524924a949494924925000000
00000000000000000000000000000000c0000fffa922108555555551224a4849
2492a84a4924a4a49224924908529249424929509249214a4a42492492000000
00000000000000000000000000000000c0007ff084894a500000000a49212524
924905212492521249124924a50849242924842a492494212129249248000000
000000000000000000000000000000008007fd0a5254512adb6db6d124949292
4924b2949249094924a9249252a524929492528524924a949494924925000000
00000000000000000000000000000000c03fe8a294828a8420820824924a4849
2492484a4924a4a49244924908529249424929509249214a4a42492492000000
00000000000000000000000000000000c1fe8514425450529529529249212524
924912a12492521249292492528849242924842a492494212129249248000000
00000000000000000000000000000000c7f928a295228a894494494924949292
4924a41492490949248492492452a4929492528524924a949494924925000000
00000000000000000000000000000000ffa245144894525429229224924a4849
2492494a4924a4a49252492492891249424929509249214a4a42492492000000
00000000000000000000000000000000fd0928a2924924829249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d4a4924925249254a494924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c25249249092492212424924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d48924924a4924954929249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c2524a4925249248a494924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d48921249092492212424924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c92494924a4924954929249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c4924a4925249240a494924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d24921249092492a12424924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c92494924a4924954929249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c4924a4925249240a494924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d24921249092492a12424924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c92494924a492492a494924929212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000ca492249252492491249249244949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d124952490924924a9249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c49248924a4924920492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d2492524912492495249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c92490924a924924a9249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c4924a49244924920492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d249252492924924aa49249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c92490924849249241249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c4924a49252492492c92492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d2492524929249249249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c92490924849249249249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000ca924a49252492492492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d0492524929249249249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c52490924849249249249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d2924a49252492492492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c8492524929249249249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c52490924849249249249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d2924a49252492492492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c8492524929249249249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c52490924849249249249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d2924a49252492492492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c8492524929249249249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000caa490924849249249249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d1124a49252492492492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c4a52524929249249249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d24890924849249249249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c9252549252492492492492484212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c4909224929249249249249252949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d24a49492449249249249249294a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c9252424929249249249249244212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000ca909292484924924924924922949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d04a49492524924924924924944a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c5252424929249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d2909292484924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c84a49492524924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c5252424929249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d2909292484924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c84a49492524924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c5252424929249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d2909292484924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c84a49492524924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000caa52424929249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000d1109292484924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c4a524a52524924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d2124910929249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c94924a5244924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000c4a492124924924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d2124949249249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c94924a4924924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000ca5492124924924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000d1024949249249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c4a924a4924924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d25492124924924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c9024949249249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000c4a924a4924924924924924924949292
492492149249094924849249249212129492528524924a949494924925000000
00000000000000000000000000000000d24a92124924924924924924924a4849
2492494a4924a4a49252492492494949424929509249214a4a42492492000000
00000000000000000000000000000000c9244949249249249249249249212524
924924a124925212492924924924a4a42924842a492494212129249248000000
00000000000000000000000000000000ffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffff000000
00000000000000000000000000000000b6db6db6db6db6db6db6db6db6db6db6
db6db6b6db6dadb6db56db6db6db5b5b6db6db56db6db6db6db6db6db6000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000
0000000000001d564200