@kagal/taistamp 0.1.1 → 0.1.2

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.
@@ -0,0 +1,1546 @@
1
+ {
2
+ "metadata": {
3
+ "toolPackage": "@microsoft/api-extractor",
4
+ "toolVersion": "7.58.7",
5
+ "schemaVersion": 1011,
6
+ "oldestForwardsCompatibleVersion": 1001,
7
+ "tsdocConfig": {
8
+ "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
9
+ "noStandardTags": true,
10
+ "tagDefinitions": [
11
+ {
12
+ "tagName": "@alpha",
13
+ "syntaxKind": "modifier"
14
+ },
15
+ {
16
+ "tagName": "@beta",
17
+ "syntaxKind": "modifier"
18
+ },
19
+ {
20
+ "tagName": "@defaultValue",
21
+ "syntaxKind": "block"
22
+ },
23
+ {
24
+ "tagName": "@decorator",
25
+ "syntaxKind": "block",
26
+ "allowMultiple": true
27
+ },
28
+ {
29
+ "tagName": "@deprecated",
30
+ "syntaxKind": "block"
31
+ },
32
+ {
33
+ "tagName": "@eventProperty",
34
+ "syntaxKind": "modifier"
35
+ },
36
+ {
37
+ "tagName": "@example",
38
+ "syntaxKind": "block",
39
+ "allowMultiple": true
40
+ },
41
+ {
42
+ "tagName": "@experimental",
43
+ "syntaxKind": "modifier"
44
+ },
45
+ {
46
+ "tagName": "@inheritDoc",
47
+ "syntaxKind": "inline"
48
+ },
49
+ {
50
+ "tagName": "@internal",
51
+ "syntaxKind": "modifier"
52
+ },
53
+ {
54
+ "tagName": "@label",
55
+ "syntaxKind": "inline"
56
+ },
57
+ {
58
+ "tagName": "@link",
59
+ "syntaxKind": "inline",
60
+ "allowMultiple": true
61
+ },
62
+ {
63
+ "tagName": "@override",
64
+ "syntaxKind": "modifier"
65
+ },
66
+ {
67
+ "tagName": "@packageDocumentation",
68
+ "syntaxKind": "modifier"
69
+ },
70
+ {
71
+ "tagName": "@param",
72
+ "syntaxKind": "block",
73
+ "allowMultiple": true
74
+ },
75
+ {
76
+ "tagName": "@privateRemarks",
77
+ "syntaxKind": "block"
78
+ },
79
+ {
80
+ "tagName": "@public",
81
+ "syntaxKind": "modifier"
82
+ },
83
+ {
84
+ "tagName": "@readonly",
85
+ "syntaxKind": "modifier"
86
+ },
87
+ {
88
+ "tagName": "@remarks",
89
+ "syntaxKind": "block"
90
+ },
91
+ {
92
+ "tagName": "@returns",
93
+ "syntaxKind": "block"
94
+ },
95
+ {
96
+ "tagName": "@sealed",
97
+ "syntaxKind": "modifier"
98
+ },
99
+ {
100
+ "tagName": "@see",
101
+ "syntaxKind": "block"
102
+ },
103
+ {
104
+ "tagName": "@throws",
105
+ "syntaxKind": "block",
106
+ "allowMultiple": true
107
+ },
108
+ {
109
+ "tagName": "@typeParam",
110
+ "syntaxKind": "block",
111
+ "allowMultiple": true
112
+ },
113
+ {
114
+ "tagName": "@virtual",
115
+ "syntaxKind": "modifier"
116
+ },
117
+ {
118
+ "tagName": "@jsx",
119
+ "syntaxKind": "block"
120
+ },
121
+ {
122
+ "tagName": "@jsxRuntime",
123
+ "syntaxKind": "block"
124
+ },
125
+ {
126
+ "tagName": "@jsxFrag",
127
+ "syntaxKind": "block"
128
+ },
129
+ {
130
+ "tagName": "@jsxImportSource",
131
+ "syntaxKind": "block"
132
+ },
133
+ {
134
+ "tagName": "@betaDocumentation",
135
+ "syntaxKind": "modifier"
136
+ },
137
+ {
138
+ "tagName": "@internalRemarks",
139
+ "syntaxKind": "block"
140
+ },
141
+ {
142
+ "tagName": "@preapproved",
143
+ "syntaxKind": "modifier"
144
+ }
145
+ ],
146
+ "supportForTags": {
147
+ "@alpha": true,
148
+ "@beta": true,
149
+ "@defaultValue": true,
150
+ "@decorator": true,
151
+ "@deprecated": true,
152
+ "@eventProperty": true,
153
+ "@example": true,
154
+ "@experimental": true,
155
+ "@inheritDoc": true,
156
+ "@internal": true,
157
+ "@label": true,
158
+ "@link": true,
159
+ "@override": true,
160
+ "@packageDocumentation": true,
161
+ "@param": true,
162
+ "@privateRemarks": true,
163
+ "@public": true,
164
+ "@readonly": true,
165
+ "@remarks": true,
166
+ "@returns": true,
167
+ "@sealed": true,
168
+ "@see": true,
169
+ "@throws": true,
170
+ "@typeParam": true,
171
+ "@virtual": true,
172
+ "@betaDocumentation": true,
173
+ "@internalRemarks": true,
174
+ "@preapproved": true
175
+ },
176
+ "reportUnsupportedHtmlElements": false
177
+ }
178
+ },
179
+ "kind": "Package",
180
+ "canonicalReference": "@kagal/taistamp!",
181
+ "docComment": "",
182
+ "name": "@kagal/taistamp",
183
+ "preserveMemberOrder": false,
184
+ "members": [
185
+ {
186
+ "kind": "EntryPoint",
187
+ "canonicalReference": "@kagal/taistamp!",
188
+ "name": "",
189
+ "preserveMemberOrder": false,
190
+ "members": [
191
+ {
192
+ "kind": "Function",
193
+ "canonicalReference": "@kagal/taistamp!asLeapSeconds:function(1)",
194
+ "docComment": "/**\n * Coerce a `number` to a {@link LeapSeconds}. Returns `undefined` when `value` is non-integer, negative, or exceeds {@link TAI_LEAP_SECONDS_MAX}.\n */\n",
195
+ "excerptTokens": [
196
+ {
197
+ "kind": "Content",
198
+ "text": "asLeapSeconds: (value: "
199
+ },
200
+ {
201
+ "kind": "Content",
202
+ "text": "number"
203
+ },
204
+ {
205
+ "kind": "Content",
206
+ "text": ") => "
207
+ },
208
+ {
209
+ "kind": "Reference",
210
+ "text": "LeapSeconds",
211
+ "canonicalReference": "@kagal/taistamp!LeapSeconds:type"
212
+ },
213
+ {
214
+ "kind": "Content",
215
+ "text": " | undefined"
216
+ }
217
+ ],
218
+ "fileUrlPath": "dist/index.d.mts",
219
+ "returnTypeTokenRange": {
220
+ "startIndex": 3,
221
+ "endIndex": 5
222
+ },
223
+ "releaseTag": "Public",
224
+ "overloadIndex": 1,
225
+ "parameters": [
226
+ {
227
+ "parameterName": "value",
228
+ "parameterTypeTokenRange": {
229
+ "startIndex": 1,
230
+ "endIndex": 2
231
+ },
232
+ "isOptional": false
233
+ }
234
+ ],
235
+ "name": "asLeapSeconds"
236
+ },
237
+ {
238
+ "kind": "Function",
239
+ "canonicalReference": "@kagal/taistamp!asNonce:function(1)",
240
+ "docComment": "/**\n * Brand `value` as a {@link Nonce} when it satisfies sf-binary syntax (RFC 9651 §3.3.5) and falls inside `[NONCE_MIN_OCTETS, NONCE_MAX_OCTETS]` — the wire range equivalent to spec §5.4's normative decoded-length bound of 7..129 octets. Returns `undefined` for anything else — every \"treat as absent\" case in spec §5.4 collapsed into one verdict.\n */\n",
241
+ "excerptTokens": [
242
+ {
243
+ "kind": "Content",
244
+ "text": "asNonce: (value: "
245
+ },
246
+ {
247
+ "kind": "Content",
248
+ "text": "string"
249
+ },
250
+ {
251
+ "kind": "Content",
252
+ "text": ") => "
253
+ },
254
+ {
255
+ "kind": "Reference",
256
+ "text": "Nonce",
257
+ "canonicalReference": "@kagal/taistamp!Nonce:type"
258
+ },
259
+ {
260
+ "kind": "Content",
261
+ "text": " | undefined"
262
+ }
263
+ ],
264
+ "fileUrlPath": "dist/index.d.mts",
265
+ "returnTypeTokenRange": {
266
+ "startIndex": 3,
267
+ "endIndex": 5
268
+ },
269
+ "releaseTag": "Public",
270
+ "overloadIndex": 1,
271
+ "parameters": [
272
+ {
273
+ "parameterName": "value",
274
+ "parameterTypeTokenRange": {
275
+ "startIndex": 1,
276
+ "endIndex": 2
277
+ },
278
+ "isOptional": false
279
+ }
280
+ ],
281
+ "name": "asNonce"
282
+ },
283
+ {
284
+ "kind": "Function",
285
+ "canonicalReference": "@kagal/taistamp!composeSignaturePayload:function(1)",
286
+ "docComment": "/**\n * Compose the byte sequence covered by a TAI-Signature.\n *\n * @remarks\n *\n * Binding the selector into the signed payload stops a downgrade attacker from rewriting `TAI-Key-Selector` to point at a compromised or weaker key — the signature would no longer verify under that key. `leapSeconds` is encoded as a 4-byte big-endian unsigned integer; the selector is length-prefixed by a single byte (selectors are ≤ 63 chars per {@link newTaistampHandler}'s validation).\n *\n * @param label - the 25-byte TAI64N label string the server is returning\n *\n * @param leapSeconds - the leap-seconds count the server advertises in `TAI-Leap-Seconds`\n *\n * @param selector - the key selector the server advertises in `TAI-Key-Selector`; verifiers use this to look up the public key in DNS at `<selector>._taistamp.<host>`\n *\n * @param nonce - the client-supplied nonce, echoed verbatim in `TAI-Nonce`; brand a verifier-side string with {@link asNonce} before passing it in\n *\n * @returns the byte sequence verifiers reconstruct from the response and pass to their public-key verify routine. The framing is the domain-separation tag (`taistamp-v1` plus a trailing NUL byte), then the label bytes, then the leap-seconds count as a 4-byte big-endian unsigned integer, then a 1-byte selector length, then the selector bytes, then the decoded sf-binary octets of the nonce (spec §6.1 — the wire `:base64:` framing is not signed).\n */\n",
287
+ "excerptTokens": [
288
+ {
289
+ "kind": "Content",
290
+ "text": "composeSignaturePayload: (label: "
291
+ },
292
+ {
293
+ "kind": "Content",
294
+ "text": "string"
295
+ },
296
+ {
297
+ "kind": "Content",
298
+ "text": ", leapSeconds: "
299
+ },
300
+ {
301
+ "kind": "Reference",
302
+ "text": "LeapSeconds",
303
+ "canonicalReference": "@kagal/taistamp!LeapSeconds:type"
304
+ },
305
+ {
306
+ "kind": "Content",
307
+ "text": ", selector: "
308
+ },
309
+ {
310
+ "kind": "Content",
311
+ "text": "string"
312
+ },
313
+ {
314
+ "kind": "Content",
315
+ "text": ", nonce: "
316
+ },
317
+ {
318
+ "kind": "Reference",
319
+ "text": "Nonce",
320
+ "canonicalReference": "@kagal/taistamp!Nonce:type"
321
+ },
322
+ {
323
+ "kind": "Content",
324
+ "text": ") => "
325
+ },
326
+ {
327
+ "kind": "Reference",
328
+ "text": "ArrayBuffer",
329
+ "canonicalReference": "!ArrayBuffer:interface"
330
+ }
331
+ ],
332
+ "fileUrlPath": "dist/index.d.mts",
333
+ "returnTypeTokenRange": {
334
+ "startIndex": 9,
335
+ "endIndex": 10
336
+ },
337
+ "releaseTag": "Public",
338
+ "overloadIndex": 1,
339
+ "parameters": [
340
+ {
341
+ "parameterName": "label",
342
+ "parameterTypeTokenRange": {
343
+ "startIndex": 1,
344
+ "endIndex": 2
345
+ },
346
+ "isOptional": false
347
+ },
348
+ {
349
+ "parameterName": "leapSeconds",
350
+ "parameterTypeTokenRange": {
351
+ "startIndex": 3,
352
+ "endIndex": 4
353
+ },
354
+ "isOptional": false
355
+ },
356
+ {
357
+ "parameterName": "selector",
358
+ "parameterTypeTokenRange": {
359
+ "startIndex": 5,
360
+ "endIndex": 6
361
+ },
362
+ "isOptional": false
363
+ },
364
+ {
365
+ "parameterName": "nonce",
366
+ "parameterTypeTokenRange": {
367
+ "startIndex": 7,
368
+ "endIndex": 8
369
+ },
370
+ "isOptional": false
371
+ }
372
+ ],
373
+ "name": "composeSignaturePayload"
374
+ },
375
+ {
376
+ "kind": "Function",
377
+ "canonicalReference": "@kagal/taistamp!extractLeapSeconds:function(1)",
378
+ "docComment": "/**\n * Extract a usable leap-seconds count from response headers. Returns `undefined` when the `TAI-Leap-Seconds` field is missing, empty, non-numeric, non-integer, negative, or out-of-range — every \"treat as unsigned\" case in spec §5.3 collapsed into one verdict.\n */\n",
379
+ "excerptTokens": [
380
+ {
381
+ "kind": "Content",
382
+ "text": "extractLeapSeconds: (headers: "
383
+ },
384
+ {
385
+ "kind": "Reference",
386
+ "text": "Headers",
387
+ "canonicalReference": "!Headers:interface"
388
+ },
389
+ {
390
+ "kind": "Content",
391
+ "text": ") => "
392
+ },
393
+ {
394
+ "kind": "Reference",
395
+ "text": "LeapSeconds",
396
+ "canonicalReference": "@kagal/taistamp!LeapSeconds:type"
397
+ },
398
+ {
399
+ "kind": "Content",
400
+ "text": " | undefined"
401
+ }
402
+ ],
403
+ "fileUrlPath": "dist/index.d.mts",
404
+ "returnTypeTokenRange": {
405
+ "startIndex": 3,
406
+ "endIndex": 5
407
+ },
408
+ "releaseTag": "Public",
409
+ "overloadIndex": 1,
410
+ "parameters": [
411
+ {
412
+ "parameterName": "headers",
413
+ "parameterTypeTokenRange": {
414
+ "startIndex": 1,
415
+ "endIndex": 2
416
+ },
417
+ "isOptional": false
418
+ }
419
+ ],
420
+ "name": "extractLeapSeconds"
421
+ },
422
+ {
423
+ "kind": "Function",
424
+ "canonicalReference": "@kagal/taistamp!fromUTC:function(1)",
425
+ "docComment": "",
426
+ "excerptTokens": [
427
+ {
428
+ "kind": "Content",
429
+ "text": "fromUTC: (utc: "
430
+ },
431
+ {
432
+ "kind": "Content",
433
+ "text": "number"
434
+ },
435
+ {
436
+ "kind": "Content",
437
+ "text": ") => "
438
+ },
439
+ {
440
+ "kind": "Reference",
441
+ "text": "timestamp",
442
+ "canonicalReference": "@kagal/taistamp!~timestamp:type"
443
+ }
444
+ ],
445
+ "fileUrlPath": "dist/index.d.mts",
446
+ "returnTypeTokenRange": {
447
+ "startIndex": 3,
448
+ "endIndex": 4
449
+ },
450
+ "releaseTag": "Public",
451
+ "overloadIndex": 1,
452
+ "parameters": [
453
+ {
454
+ "parameterName": "utc",
455
+ "parameterTypeTokenRange": {
456
+ "startIndex": 1,
457
+ "endIndex": 2
458
+ },
459
+ "isOptional": false
460
+ }
461
+ ],
462
+ "name": "fromUTC"
463
+ },
464
+ {
465
+ "kind": "TypeAlias",
466
+ "canonicalReference": "@kagal/taistamp!LeapSeconds:type",
467
+ "docComment": "/**\n * `number` that has been confirmed to fit the `[0, TAI_LEAP_SECONDS_MAX]` u32be range required by the taistamp signed-payload framing. Construct only via {@link extractLeapSeconds} or {@link asLeapSeconds}; the brand prevents an arbitrary number from reaching the signing path.\n */\n",
468
+ "excerptTokens": [
469
+ {
470
+ "kind": "Content",
471
+ "text": "type LeapSeconds = "
472
+ },
473
+ {
474
+ "kind": "Content",
475
+ "text": "number & {\n readonly ["
476
+ },
477
+ {
478
+ "kind": "Reference",
479
+ "text": "LeapSecondsBrand",
480
+ "canonicalReference": "@kagal/taistamp!~LeapSecondsBrand:var"
481
+ },
482
+ {
483
+ "kind": "Content",
484
+ "text": "]: never;\n}"
485
+ },
486
+ {
487
+ "kind": "Content",
488
+ "text": ";"
489
+ }
490
+ ],
491
+ "fileUrlPath": "dist/index.d.mts",
492
+ "releaseTag": "Public",
493
+ "name": "LeapSeconds",
494
+ "typeTokenRange": {
495
+ "startIndex": 1,
496
+ "endIndex": 4
497
+ }
498
+ },
499
+ {
500
+ "kind": "Variable",
501
+ "canonicalReference": "@kagal/taistamp!newEd25519Signer:var",
502
+ "docComment": "/**\n * Build a {@link Signer} backed by a WebCrypto Ed25519 private `CryptoKey`.\n *\n * @param key - Ed25519 private `CryptoKey` with `'sign'` in `key.usages`\n *\n * @param context - optional prefix prepended to error messages, typically the calling function's name\n *\n * @returns a {@link Signer} producing 64-byte raw signatures (R ‖ s) per {@link https://datatracker.ietf.org/doc/html/rfc8032 | RFC 8032}\n *\n * @throws\n *\n * `TypeError` when `key.algorithm.name` is not a supported algorithm or `'sign'` is missing from `key.usages`\n */\n",
503
+ "excerptTokens": [
504
+ {
505
+ "kind": "Content",
506
+ "text": "newSigner = "
507
+ },
508
+ {
509
+ "kind": "Content",
510
+ "text": "(\n key: "
511
+ },
512
+ {
513
+ "kind": "Reference",
514
+ "text": "CryptoKey",
515
+ "canonicalReference": "!CryptoKey:interface"
516
+ },
517
+ {
518
+ "kind": "Content",
519
+ "text": ",\n context?: string,\n): "
520
+ },
521
+ {
522
+ "kind": "Reference",
523
+ "text": "Signer",
524
+ "canonicalReference": "@kagal/taistamp!Signer:interface"
525
+ },
526
+ {
527
+ "kind": "Content",
528
+ "text": " => {\n const prefix = "
529
+ },
530
+ {
531
+ "kind": "Reference",
532
+ "text": "context",
533
+ "canonicalReference": "@kagal/taistamp!context"
534
+ },
535
+ {
536
+ "kind": "Content",
537
+ "text": " ? `${"
538
+ },
539
+ {
540
+ "kind": "Reference",
541
+ "text": "context",
542
+ "canonicalReference": "@kagal/taistamp!context"
543
+ },
544
+ {
545
+ "kind": "Content",
546
+ "text": "}: ` : '';\n const algorithm = "
547
+ },
548
+ {
549
+ "kind": "Reference",
550
+ "text": "key.algorithm.name",
551
+ "canonicalReference": "!KeyAlgorithm#name"
552
+ },
553
+ {
554
+ "kind": "Content",
555
+ "text": ";\n const meta = "
556
+ },
557
+ {
558
+ "kind": "Reference",
559
+ "text": "SUPPORTED_ALGORITHMS.get",
560
+ "canonicalReference": "!ReadonlyMap#get"
561
+ },
562
+ {
563
+ "kind": "Content",
564
+ "text": "("
565
+ },
566
+ {
567
+ "kind": "Reference",
568
+ "text": "algorithm.toLowerCase",
569
+ "canonicalReference": "!String#toLowerCase"
570
+ },
571
+ {
572
+ "kind": "Content",
573
+ "text": "());\n if ("
574
+ },
575
+ {
576
+ "kind": "Reference",
577
+ "text": "meta",
578
+ "canonicalReference": "@kagal/taistamp!meta"
579
+ },
580
+ {
581
+ "kind": "Content",
582
+ "text": " === "
583
+ },
584
+ {
585
+ "kind": "Reference",
586
+ "text": "undefined",
587
+ "canonicalReference": "!undefined"
588
+ },
589
+ {
590
+ "kind": "Content",
591
+ "text": ") {\n throw new "
592
+ },
593
+ {
594
+ "kind": "Reference",
595
+ "text": "TypeError",
596
+ "canonicalReference": "!TypeError:interface"
597
+ },
598
+ {
599
+ "kind": "Content",
600
+ "text": "(\n `${"
601
+ },
602
+ {
603
+ "kind": "Reference",
604
+ "text": "prefix",
605
+ "canonicalReference": "@kagal/taistamp!prefix"
606
+ },
607
+ {
608
+ "kind": "Content",
609
+ "text": "}unsupported algorithm: ${"
610
+ },
611
+ {
612
+ "kind": "Reference",
613
+ "text": "algorithm",
614
+ "canonicalReference": "@kagal/taistamp!algorithm"
615
+ },
616
+ {
617
+ "kind": "Content",
618
+ "text": "}`,\n );\n }\n if (!"
619
+ },
620
+ {
621
+ "kind": "Reference",
622
+ "text": "key.usages.includes",
623
+ "canonicalReference": "!Array#includes"
624
+ },
625
+ {
626
+ "kind": "Content",
627
+ "text": "('sign')) {\n throw new "
628
+ },
629
+ {
630
+ "kind": "Reference",
631
+ "text": "TypeError",
632
+ "canonicalReference": "!TypeError:interface"
633
+ },
634
+ {
635
+ "kind": "Content",
636
+ "text": "(\n `${"
637
+ },
638
+ {
639
+ "kind": "Reference",
640
+ "text": "prefix",
641
+ "canonicalReference": "@kagal/taistamp!prefix"
642
+ },
643
+ {
644
+ "kind": "Content",
645
+ "text": "}expected sign usage, got [${"
646
+ },
647
+ {
648
+ "kind": "Reference",
649
+ "text": "key.usages.join",
650
+ "canonicalReference": "!Array#join"
651
+ },
652
+ {
653
+ "kind": "Content",
654
+ "text": "(', ')}]`,\n );\n }\n return {\n "
655
+ },
656
+ {
657
+ "kind": "Reference",
658
+ "text": "sign",
659
+ "canonicalReference": "@kagal/taistamp!__object#sign"
660
+ },
661
+ {
662
+ "kind": "Content",
663
+ "text": ": async (message) =>\n "
664
+ },
665
+ {
666
+ "kind": "Reference",
667
+ "text": "crypto.subtle.sign",
668
+ "canonicalReference": "!SubtleCrypto#sign"
669
+ },
670
+ {
671
+ "kind": "Content",
672
+ "text": "("
673
+ },
674
+ {
675
+ "kind": "Reference",
676
+ "text": "meta.name",
677
+ "canonicalReference": "@kagal/taistamp!AlgorithmMeta#name"
678
+ },
679
+ {
680
+ "kind": "Content",
681
+ "text": ", "
682
+ },
683
+ {
684
+ "kind": "Reference",
685
+ "text": "key",
686
+ "canonicalReference": "@kagal/taistamp!key"
687
+ },
688
+ {
689
+ "kind": "Content",
690
+ "text": ", "
691
+ },
692
+ {
693
+ "kind": "Reference",
694
+ "text": "asMessageBytes",
695
+ "canonicalReference": "@kagal/taistamp!asMessageBytes"
696
+ },
697
+ {
698
+ "kind": "Content",
699
+ "text": "("
700
+ },
701
+ {
702
+ "kind": "Reference",
703
+ "text": "message",
704
+ "canonicalReference": "@kagal/taistamp!message"
705
+ },
706
+ {
707
+ "kind": "Content",
708
+ "text": ")),\n };\n}"
709
+ }
710
+ ],
711
+ "fileUrlPath": "../@kagal-ed25519-secret/src/signer.ts",
712
+ "initializerTokenRange": {
713
+ "startIndex": 1,
714
+ "endIndex": 46
715
+ },
716
+ "isReadonly": true,
717
+ "releaseTag": "Public",
718
+ "name": "newEd25519Signer",
719
+ "variableTypeTokenRange": {
720
+ "startIndex": 0,
721
+ "endIndex": 0
722
+ }
723
+ },
724
+ {
725
+ "kind": "Function",
726
+ "canonicalReference": "@kagal/taistamp!newTaistampHandler:function(1)",
727
+ "docComment": "/**\n * Build a handler for `/.well-known/taistamp`.\n *\n * @remarks\n *\n * Behaviour:\n *\n * - `GET` / `HEAD` — body is a fresh 25-byte TAI64N label (`HEAD` omits the body). Response headers: Content-Type `application/tai64n`, Content-Length `25`, Cache-Control `no-store`, plus `TAI-Leap-Seconds` carrying the current count. - `OPTIONS` — `200` with `Allow: GET, HEAD, OPTIONS`. When CORS is enabled (the default) the response also carries `Access-Control-Allow-*` and `-Expose-Headers` per {@link TaistampHandlerConfig.cors}. `OPTIONS` is never signed. - Any other method — `405 Method Not Allowed` with `Allow: GET, HEAD, OPTIONS`. - Request `TAI-Nonce` — on `GET`, the value is echoed verbatim in the response. A missing, empty, duplicated, structurally malformed, or length-out-of-range field is treated as absent (no echo, no signature) per spec §5.4 — see {@link extractNonce}. `HEAD`, `OPTIONS`, and `405` responses never carry `TAI-Nonce` per spec §5.1. - Request `TAI-Nonce` *and* `signer` configured *and* the request method is `GET` — adds `TAI-Key-Selector` and `TAI-Signature` (sf-binary) over the bytes produced by {@link composeSignaturePayload}. The domain-separation tag means the same key cannot be tricked into producing valid signatures for other protocols. `HEAD`, `OPTIONS`, and `405` responses are never signed.\n *\n * The corresponding public key is expected to be published out-of-band as a DNS TXT record at `<selector>._taistamp.<host>` — verifiers fetch the key by selector so the operator can rotate keys by publishing a new selector while the old one is still cached.\n *\n * @param config - optional {@link TaistampHandlerConfig}\n *\n * @returns an `async (request) => Response` callable directly as a Web `fetch` handler or as a Hono route handler.\n *\n * @throws\n *\n * TypeError if `signer` and `selector` are not both set or both unset, or if `selector` does not match `[A-Za-z][A-Za-z0-9_-]{0,62}`.\n *\n * @see\n *\n * {@link https://cr.yp.to/libtai/tai64.html} for TAI64N format\n */\n",
728
+ "excerptTokens": [
729
+ {
730
+ "kind": "Content",
731
+ "text": "newTaistampHandler: (config?: "
732
+ },
733
+ {
734
+ "kind": "Reference",
735
+ "text": "TaistampHandlerConfig",
736
+ "canonicalReference": "@kagal/taistamp!TaistampHandlerConfig:interface"
737
+ },
738
+ {
739
+ "kind": "Content",
740
+ "text": ") => "
741
+ },
742
+ {
743
+ "kind": "Content",
744
+ "text": "((request: "
745
+ },
746
+ {
747
+ "kind": "Reference",
748
+ "text": "Request",
749
+ "canonicalReference": "!Request:interface"
750
+ },
751
+ {
752
+ "kind": "Content",
753
+ "text": ") => "
754
+ },
755
+ {
756
+ "kind": "Reference",
757
+ "text": "Promise",
758
+ "canonicalReference": "!Promise:interface"
759
+ },
760
+ {
761
+ "kind": "Content",
762
+ "text": "<"
763
+ },
764
+ {
765
+ "kind": "Reference",
766
+ "text": "Response",
767
+ "canonicalReference": "!Response:interface"
768
+ },
769
+ {
770
+ "kind": "Content",
771
+ "text": ">)"
772
+ }
773
+ ],
774
+ "fileUrlPath": "dist/index.d.mts",
775
+ "returnTypeTokenRange": {
776
+ "startIndex": 3,
777
+ "endIndex": 10
778
+ },
779
+ "releaseTag": "Public",
780
+ "overloadIndex": 1,
781
+ "parameters": [
782
+ {
783
+ "parameterName": "config",
784
+ "parameterTypeTokenRange": {
785
+ "startIndex": 1,
786
+ "endIndex": 2
787
+ },
788
+ "isOptional": true
789
+ }
790
+ ],
791
+ "name": "newTaistampHandler"
792
+ },
793
+ {
794
+ "kind": "TypeAlias",
795
+ "canonicalReference": "@kagal/taistamp!Nonce:type",
796
+ "docComment": "/**\n * `string` that has been confirmed to satisfy the sf-binary syntax of RFC 9651 §3.3.5 and to fall inside the wire-form length range `[NONCE_MIN_OCTETS, NONCE_MAX_OCTETS]` — the pre-decode form of spec §5.4's normative decoded-length bound of 7..129 octets. Construct only via {@link asNonce} or {@link extractNonce}; the brand prevents arbitrary strings from reaching the signing path.\n */\n",
797
+ "excerptTokens": [
798
+ {
799
+ "kind": "Content",
800
+ "text": "type Nonce = "
801
+ },
802
+ {
803
+ "kind": "Content",
804
+ "text": "string & {\n readonly ["
805
+ },
806
+ {
807
+ "kind": "Reference",
808
+ "text": "NonceBrand",
809
+ "canonicalReference": "@kagal/taistamp!~NonceBrand:var"
810
+ },
811
+ {
812
+ "kind": "Content",
813
+ "text": "]: never;\n}"
814
+ },
815
+ {
816
+ "kind": "Content",
817
+ "text": ";"
818
+ }
819
+ ],
820
+ "fileUrlPath": "dist/index.d.mts",
821
+ "releaseTag": "Public",
822
+ "name": "Nonce",
823
+ "typeTokenRange": {
824
+ "startIndex": 1,
825
+ "endIndex": 4
826
+ }
827
+ },
828
+ {
829
+ "kind": "Function",
830
+ "canonicalReference": "@kagal/taistamp!now:function(1)",
831
+ "docComment": "",
832
+ "excerptTokens": [
833
+ {
834
+ "kind": "Content",
835
+ "text": "now: () => "
836
+ },
837
+ {
838
+ "kind": "Reference",
839
+ "text": "timestamp",
840
+ "canonicalReference": "@kagal/taistamp!~timestamp:type"
841
+ }
842
+ ],
843
+ "fileUrlPath": "dist/index.d.mts",
844
+ "returnTypeTokenRange": {
845
+ "startIndex": 1,
846
+ "endIndex": 2
847
+ },
848
+ "releaseTag": "Public",
849
+ "overloadIndex": 1,
850
+ "parameters": [],
851
+ "name": "now"
852
+ },
853
+ {
854
+ "kind": "Function",
855
+ "canonicalReference": "@kagal/taistamp!readASCII:function(1)",
856
+ "docComment": "/**\n * Read a response body as a 7-bit ASCII string.\n *\n * `application/tai64n` is an octet-typed media type, not text: the TAI64N label is a fixed sequence of ASCII bytes. Reading it with `Response.text()` would route the body through UTF-8 decoding and silently mangle any non-ASCII octet, so this reads the raw bytes and decodes them one code point per byte instead.\n *\n * Throws `TypeError` on any byte ≥ `0x80`, surfacing a malformed body rather than masking it; pass `context` to prefix that error message. Consumes the response body, which can only be read once.\n *\n * Use {@link readLabel} when the body is meant to be a TAI64N label and its length should be validated too.\n */\n",
857
+ "excerptTokens": [
858
+ {
859
+ "kind": "Content",
860
+ "text": "readASCII: (response: "
861
+ },
862
+ {
863
+ "kind": "Reference",
864
+ "text": "Response",
865
+ "canonicalReference": "!Response:interface"
866
+ },
867
+ {
868
+ "kind": "Content",
869
+ "text": ", context?: "
870
+ },
871
+ {
872
+ "kind": "Content",
873
+ "text": "string"
874
+ },
875
+ {
876
+ "kind": "Content",
877
+ "text": ") => "
878
+ },
879
+ {
880
+ "kind": "Reference",
881
+ "text": "Promise",
882
+ "canonicalReference": "!Promise:interface"
883
+ },
884
+ {
885
+ "kind": "Content",
886
+ "text": "<string>"
887
+ }
888
+ ],
889
+ "fileUrlPath": "dist/index.d.mts",
890
+ "returnTypeTokenRange": {
891
+ "startIndex": 5,
892
+ "endIndex": 7
893
+ },
894
+ "releaseTag": "Public",
895
+ "overloadIndex": 1,
896
+ "parameters": [
897
+ {
898
+ "parameterName": "response",
899
+ "parameterTypeTokenRange": {
900
+ "startIndex": 1,
901
+ "endIndex": 2
902
+ },
903
+ "isOptional": false
904
+ },
905
+ {
906
+ "parameterName": "context",
907
+ "parameterTypeTokenRange": {
908
+ "startIndex": 3,
909
+ "endIndex": 4
910
+ },
911
+ "isOptional": true
912
+ }
913
+ ],
914
+ "name": "readASCII"
915
+ },
916
+ {
917
+ "kind": "Function",
918
+ "canonicalReference": "@kagal/taistamp!readLabel:function(1)",
919
+ "docComment": "/**\n * Read and return the TAI64N label from a response body.\n *\n * Builds on {@link readASCII}, adding the structural invariant every label satisfies: the body is exactly `TAI64N_CONTENT_LENGTH` octets. Throws `TypeError` if the length differs or the body carries a non-ASCII octet; pass `context` to prefix that error message. Consumes the response body.\n */\n",
920
+ "excerptTokens": [
921
+ {
922
+ "kind": "Content",
923
+ "text": "readLabel: (response: "
924
+ },
925
+ {
926
+ "kind": "Reference",
927
+ "text": "Response",
928
+ "canonicalReference": "!Response:interface"
929
+ },
930
+ {
931
+ "kind": "Content",
932
+ "text": ", context?: "
933
+ },
934
+ {
935
+ "kind": "Content",
936
+ "text": "string"
937
+ },
938
+ {
939
+ "kind": "Content",
940
+ "text": ") => "
941
+ },
942
+ {
943
+ "kind": "Reference",
944
+ "text": "Promise",
945
+ "canonicalReference": "!Promise:interface"
946
+ },
947
+ {
948
+ "kind": "Content",
949
+ "text": "<string>"
950
+ }
951
+ ],
952
+ "fileUrlPath": "dist/index.d.mts",
953
+ "returnTypeTokenRange": {
954
+ "startIndex": 5,
955
+ "endIndex": 7
956
+ },
957
+ "releaseTag": "Public",
958
+ "overloadIndex": 1,
959
+ "parameters": [
960
+ {
961
+ "parameterName": "response",
962
+ "parameterTypeTokenRange": {
963
+ "startIndex": 1,
964
+ "endIndex": 2
965
+ },
966
+ "isOptional": false
967
+ },
968
+ {
969
+ "parameterName": "context",
970
+ "parameterTypeTokenRange": {
971
+ "startIndex": 3,
972
+ "endIndex": 4
973
+ },
974
+ "isOptional": true
975
+ }
976
+ ],
977
+ "name": "readLabel"
978
+ },
979
+ {
980
+ "kind": "Interface",
981
+ "canonicalReference": "@kagal/taistamp!Signer:interface",
982
+ "docComment": "/**\n * Pluggable abstraction over a private signing key. Implementations sign caller-provided bytes and return the raw signature bytes; the algorithm and key store are implementation details.\n */\n",
983
+ "excerptTokens": [
984
+ {
985
+ "kind": "Content",
986
+ "text": "export interface Signer "
987
+ }
988
+ ],
989
+ "fileUrlPath": "../@kagal-ed25519-secret/src/signer.ts",
990
+ "releaseTag": "Public",
991
+ "name": "Signer",
992
+ "preserveMemberOrder": false,
993
+ "members": [
994
+ {
995
+ "kind": "PropertySignature",
996
+ "canonicalReference": "@kagal/taistamp!Signer#sign:member",
997
+ "docComment": "/**\n * Produce a signature over `message`.\n *\n * @param message - message to sign, either bytes or a string (encoded as UTF-8); the caller is responsible for any framing or domain separation\n *\n * @returns the raw signature bytes (algorithm-defined length and encoding)\n */\n",
998
+ "excerptTokens": [
999
+ {
1000
+ "kind": "Content",
1001
+ "text": "sign: "
1002
+ },
1003
+ {
1004
+ "kind": "Content",
1005
+ "text": "(message: "
1006
+ },
1007
+ {
1008
+ "kind": "Reference",
1009
+ "text": "BufferSource",
1010
+ "canonicalReference": "!BufferSource:type"
1011
+ },
1012
+ {
1013
+ "kind": "Content",
1014
+ "text": " | string) => "
1015
+ },
1016
+ {
1017
+ "kind": "Reference",
1018
+ "text": "Promise",
1019
+ "canonicalReference": "!Promise:interface"
1020
+ },
1021
+ {
1022
+ "kind": "Content",
1023
+ "text": "<"
1024
+ },
1025
+ {
1026
+ "kind": "Reference",
1027
+ "text": "ArrayBuffer",
1028
+ "canonicalReference": "!ArrayBuffer:interface"
1029
+ },
1030
+ {
1031
+ "kind": "Content",
1032
+ "text": ">"
1033
+ }
1034
+ ],
1035
+ "isReadonly": false,
1036
+ "isOptional": false,
1037
+ "releaseTag": "Public",
1038
+ "name": "sign",
1039
+ "propertyTypeTokenRange": {
1040
+ "startIndex": 1,
1041
+ "endIndex": 8
1042
+ }
1043
+ }
1044
+ ],
1045
+ "extendsTokenRanges": []
1046
+ },
1047
+ {
1048
+ "kind": "Variable",
1049
+ "canonicalReference": "@kagal/taistamp!TAI_LEAP_SECONDS_MAX:var",
1050
+ "docComment": "/**\n * Upper bound for `leapSeconds` in the taistamp signed payload. The framing encodes the value as a 4-byte big-endian unsigned integer, so any input outside `[0, 2^32-1]` cannot be represented. Verifiers MUST treat an out-of-range `TAI-Leap-Seconds` response header as unsigned, per spec §5.3.\n */\n",
1051
+ "excerptTokens": [
1052
+ {
1053
+ "kind": "Content",
1054
+ "text": "TAI_LEAP_SECONDS_MAX = "
1055
+ },
1056
+ {
1057
+ "kind": "Content",
1058
+ "text": "4294967295"
1059
+ }
1060
+ ],
1061
+ "fileUrlPath": "dist/index.d.mts",
1062
+ "initializerTokenRange": {
1063
+ "startIndex": 1,
1064
+ "endIndex": 2
1065
+ },
1066
+ "isReadonly": true,
1067
+ "releaseTag": "Public",
1068
+ "name": "TAI_LEAP_SECONDS_MAX",
1069
+ "variableTypeTokenRange": {
1070
+ "startIndex": 0,
1071
+ "endIndex": 0
1072
+ }
1073
+ },
1074
+ {
1075
+ "kind": "Variable",
1076
+ "canonicalReference": "@kagal/taistamp!TAI_LEAP_SECONDS:var",
1077
+ "docComment": "/**\n * Current TAI − UTC offset in whole seconds, used by `fromUTC()` and emitted in the `TAI-Leap-Seconds` response header. The value 37 has been in force since 2017-01-01; update on the next IERS leap-second announcement.\n *\n * @remarks\n *\n * Stays a single `LeapSeconds` until a leap-seconds table is added so the offset can be computed for any TAI second; this constant becomes redundant then.\n */\n",
1078
+ "excerptTokens": [
1079
+ {
1080
+ "kind": "Content",
1081
+ "text": "TAI_LEAP_SECONDS: "
1082
+ },
1083
+ {
1084
+ "kind": "Reference",
1085
+ "text": "LeapSeconds",
1086
+ "canonicalReference": "@kagal/taistamp!LeapSeconds:type"
1087
+ }
1088
+ ],
1089
+ "fileUrlPath": "dist/index.d.mts",
1090
+ "isReadonly": true,
1091
+ "releaseTag": "Public",
1092
+ "name": "TAI_LEAP_SECONDS",
1093
+ "variableTypeTokenRange": {
1094
+ "startIndex": 1,
1095
+ "endIndex": 2
1096
+ }
1097
+ },
1098
+ {
1099
+ "kind": "Variable",
1100
+ "canonicalReference": "@kagal/taistamp!TAI64_EPOCH_HI:var",
1101
+ "docComment": "",
1102
+ "excerptTokens": [
1103
+ {
1104
+ "kind": "Content",
1105
+ "text": "TAI64_EPOCH_HI = "
1106
+ },
1107
+ {
1108
+ "kind": "Content",
1109
+ "text": "1073741824"
1110
+ }
1111
+ ],
1112
+ "fileUrlPath": "dist/index.d.mts",
1113
+ "initializerTokenRange": {
1114
+ "startIndex": 1,
1115
+ "endIndex": 2
1116
+ },
1117
+ "isReadonly": true,
1118
+ "releaseTag": "Public",
1119
+ "name": "TAI64_EPOCH_HI",
1120
+ "variableTypeTokenRange": {
1121
+ "startIndex": 0,
1122
+ "endIndex": 0
1123
+ }
1124
+ },
1125
+ {
1126
+ "kind": "Variable",
1127
+ "canonicalReference": "@kagal/taistamp!TAI64N_CONTENT_LENGTH:var",
1128
+ "docComment": "",
1129
+ "excerptTokens": [
1130
+ {
1131
+ "kind": "Content",
1132
+ "text": "TAI64N_CONTENT_LENGTH: "
1133
+ },
1134
+ {
1135
+ "kind": "Content",
1136
+ "text": "number"
1137
+ }
1138
+ ],
1139
+ "fileUrlPath": "dist/index.d.mts",
1140
+ "isReadonly": true,
1141
+ "releaseTag": "Public",
1142
+ "name": "TAI64N_CONTENT_LENGTH",
1143
+ "variableTypeTokenRange": {
1144
+ "startIndex": 1,
1145
+ "endIndex": 2
1146
+ }
1147
+ },
1148
+ {
1149
+ "kind": "Variable",
1150
+ "canonicalReference": "@kagal/taistamp!TAI64N_CONTENT_TYPE:var",
1151
+ "docComment": "",
1152
+ "excerptTokens": [
1153
+ {
1154
+ "kind": "Content",
1155
+ "text": "TAI64N_CONTENT_TYPE = "
1156
+ },
1157
+ {
1158
+ "kind": "Content",
1159
+ "text": "\"application/tai64n\""
1160
+ }
1161
+ ],
1162
+ "fileUrlPath": "dist/index.d.mts",
1163
+ "initializerTokenRange": {
1164
+ "startIndex": 1,
1165
+ "endIndex": 2
1166
+ },
1167
+ "isReadonly": true,
1168
+ "releaseTag": "Public",
1169
+ "name": "TAI64N_CONTENT_TYPE",
1170
+ "variableTypeTokenRange": {
1171
+ "startIndex": 0,
1172
+ "endIndex": 0
1173
+ }
1174
+ },
1175
+ {
1176
+ "kind": "Variable",
1177
+ "canonicalReference": "@kagal/taistamp!TAI64N_HEADER_KEY_SELECTOR:var",
1178
+ "docComment": "",
1179
+ "excerptTokens": [
1180
+ {
1181
+ "kind": "Content",
1182
+ "text": "TAI64N_HEADER_KEY_SELECTOR = "
1183
+ },
1184
+ {
1185
+ "kind": "Content",
1186
+ "text": "\"TAI-Key-Selector\""
1187
+ }
1188
+ ],
1189
+ "fileUrlPath": "dist/index.d.mts",
1190
+ "initializerTokenRange": {
1191
+ "startIndex": 1,
1192
+ "endIndex": 2
1193
+ },
1194
+ "isReadonly": true,
1195
+ "releaseTag": "Public",
1196
+ "name": "TAI64N_HEADER_KEY_SELECTOR",
1197
+ "variableTypeTokenRange": {
1198
+ "startIndex": 0,
1199
+ "endIndex": 0
1200
+ }
1201
+ },
1202
+ {
1203
+ "kind": "Variable",
1204
+ "canonicalReference": "@kagal/taistamp!TAI64N_HEADER_LEAP_SECONDS:var",
1205
+ "docComment": "",
1206
+ "excerptTokens": [
1207
+ {
1208
+ "kind": "Content",
1209
+ "text": "TAI64N_HEADER_LEAP_SECONDS = "
1210
+ },
1211
+ {
1212
+ "kind": "Content",
1213
+ "text": "\"TAI-Leap-Seconds\""
1214
+ }
1215
+ ],
1216
+ "fileUrlPath": "dist/index.d.mts",
1217
+ "initializerTokenRange": {
1218
+ "startIndex": 1,
1219
+ "endIndex": 2
1220
+ },
1221
+ "isReadonly": true,
1222
+ "releaseTag": "Public",
1223
+ "name": "TAI64N_HEADER_LEAP_SECONDS",
1224
+ "variableTypeTokenRange": {
1225
+ "startIndex": 0,
1226
+ "endIndex": 0
1227
+ }
1228
+ },
1229
+ {
1230
+ "kind": "Variable",
1231
+ "canonicalReference": "@kagal/taistamp!TAI64N_HEADER_NONCE:var",
1232
+ "docComment": "",
1233
+ "excerptTokens": [
1234
+ {
1235
+ "kind": "Content",
1236
+ "text": "TAI64N_HEADER_NONCE = "
1237
+ },
1238
+ {
1239
+ "kind": "Content",
1240
+ "text": "\"TAI-Nonce\""
1241
+ }
1242
+ ],
1243
+ "fileUrlPath": "dist/index.d.mts",
1244
+ "initializerTokenRange": {
1245
+ "startIndex": 1,
1246
+ "endIndex": 2
1247
+ },
1248
+ "isReadonly": true,
1249
+ "releaseTag": "Public",
1250
+ "name": "TAI64N_HEADER_NONCE",
1251
+ "variableTypeTokenRange": {
1252
+ "startIndex": 0,
1253
+ "endIndex": 0
1254
+ }
1255
+ },
1256
+ {
1257
+ "kind": "Variable",
1258
+ "canonicalReference": "@kagal/taistamp!TAI64N_HEADER_SIGNATURE:var",
1259
+ "docComment": "",
1260
+ "excerptTokens": [
1261
+ {
1262
+ "kind": "Content",
1263
+ "text": "TAI64N_HEADER_SIGNATURE = "
1264
+ },
1265
+ {
1266
+ "kind": "Content",
1267
+ "text": "\"TAI-Signature\""
1268
+ }
1269
+ ],
1270
+ "fileUrlPath": "dist/index.d.mts",
1271
+ "initializerTokenRange": {
1272
+ "startIndex": 1,
1273
+ "endIndex": 2
1274
+ },
1275
+ "isReadonly": true,
1276
+ "releaseTag": "Public",
1277
+ "name": "TAI64N_HEADER_SIGNATURE",
1278
+ "variableTypeTokenRange": {
1279
+ "startIndex": 0,
1280
+ "endIndex": 0
1281
+ }
1282
+ },
1283
+ {
1284
+ "kind": "Variable",
1285
+ "canonicalReference": "@kagal/taistamp!TAI64N_PATH:var",
1286
+ "docComment": "/**\n * @deprecated\n *\n * Renamed to {@link TAISTAMP_PATH}.\n */\n",
1287
+ "excerptTokens": [
1288
+ {
1289
+ "kind": "Content",
1290
+ "text": "TAI64N_PATH = "
1291
+ },
1292
+ {
1293
+ "kind": "Content",
1294
+ "text": "\"/.well-known/taistamp\""
1295
+ }
1296
+ ],
1297
+ "fileUrlPath": "dist/index.d.mts",
1298
+ "initializerTokenRange": {
1299
+ "startIndex": 1,
1300
+ "endIndex": 2
1301
+ },
1302
+ "isReadonly": true,
1303
+ "releaseTag": "Public",
1304
+ "name": "TAI64N_PATH",
1305
+ "variableTypeTokenRange": {
1306
+ "startIndex": 0,
1307
+ "endIndex": 0
1308
+ }
1309
+ },
1310
+ {
1311
+ "kind": "Function",
1312
+ "canonicalReference": "@kagal/taistamp!tai64nLabel:function(1)",
1313
+ "docComment": "",
1314
+ "excerptTokens": [
1315
+ {
1316
+ "kind": "Content",
1317
+ "text": "tai64nLabel: (value?: "
1318
+ },
1319
+ {
1320
+ "kind": "Reference",
1321
+ "text": "timestamp",
1322
+ "canonicalReference": "@kagal/taistamp!~timestamp:type"
1323
+ },
1324
+ {
1325
+ "kind": "Content",
1326
+ "text": ") => "
1327
+ },
1328
+ {
1329
+ "kind": "Content",
1330
+ "text": "string"
1331
+ }
1332
+ ],
1333
+ "fileUrlPath": "dist/index.d.mts",
1334
+ "returnTypeTokenRange": {
1335
+ "startIndex": 3,
1336
+ "endIndex": 4
1337
+ },
1338
+ "releaseTag": "Public",
1339
+ "overloadIndex": 1,
1340
+ "parameters": [
1341
+ {
1342
+ "parameterName": "value",
1343
+ "parameterTypeTokenRange": {
1344
+ "startIndex": 1,
1345
+ "endIndex": 2
1346
+ },
1347
+ "isOptional": true
1348
+ }
1349
+ ],
1350
+ "name": "tai64nLabel"
1351
+ },
1352
+ {
1353
+ "kind": "Function",
1354
+ "canonicalReference": "@kagal/taistamp!tai64nLabelFromUTC:function(1)",
1355
+ "docComment": "",
1356
+ "excerptTokens": [
1357
+ {
1358
+ "kind": "Content",
1359
+ "text": "tai64nLabelFromUTC: (utc: "
1360
+ },
1361
+ {
1362
+ "kind": "Content",
1363
+ "text": "number"
1364
+ },
1365
+ {
1366
+ "kind": "Content",
1367
+ "text": ") => "
1368
+ },
1369
+ {
1370
+ "kind": "Content",
1371
+ "text": "string"
1372
+ }
1373
+ ],
1374
+ "fileUrlPath": "dist/index.d.mts",
1375
+ "returnTypeTokenRange": {
1376
+ "startIndex": 3,
1377
+ "endIndex": 4
1378
+ },
1379
+ "releaseTag": "Public",
1380
+ "overloadIndex": 1,
1381
+ "parameters": [
1382
+ {
1383
+ "parameterName": "utc",
1384
+ "parameterTypeTokenRange": {
1385
+ "startIndex": 1,
1386
+ "endIndex": 2
1387
+ },
1388
+ "isOptional": false
1389
+ }
1390
+ ],
1391
+ "name": "tai64nLabelFromUTC"
1392
+ },
1393
+ {
1394
+ "kind": "Variable",
1395
+ "canonicalReference": "@kagal/taistamp!TAISTAMP_PATH:var",
1396
+ "docComment": "",
1397
+ "excerptTokens": [
1398
+ {
1399
+ "kind": "Content",
1400
+ "text": "TAISTAMP_PATH = "
1401
+ },
1402
+ {
1403
+ "kind": "Content",
1404
+ "text": "\"/.well-known/taistamp\""
1405
+ }
1406
+ ],
1407
+ "fileUrlPath": "dist/index.d.mts",
1408
+ "initializerTokenRange": {
1409
+ "startIndex": 1,
1410
+ "endIndex": 2
1411
+ },
1412
+ "isReadonly": true,
1413
+ "releaseTag": "Public",
1414
+ "name": "TAISTAMP_PATH",
1415
+ "variableTypeTokenRange": {
1416
+ "startIndex": 0,
1417
+ "endIndex": 0
1418
+ }
1419
+ },
1420
+ {
1421
+ "kind": "Interface",
1422
+ "canonicalReference": "@kagal/taistamp!TaistampHandlerConfig:interface",
1423
+ "docComment": "/**\n * Configuration for {@link newTaistampHandler}.\n *\n * @remarks\n *\n * `signer` and `selector` are co-required: pass both to enable authenticated responses, or neither for an unsigned handler. Passing only one is rejected at construction time — without the selector verifiers cannot find the key in DNS, and a selector without a signer is a misconfiguration.\n */\n",
1424
+ "excerptTokens": [
1425
+ {
1426
+ "kind": "Content",
1427
+ "text": "interface TaistampHandlerConfig "
1428
+ }
1429
+ ],
1430
+ "fileUrlPath": "dist/index.d.mts",
1431
+ "releaseTag": "Public",
1432
+ "name": "TaistampHandlerConfig",
1433
+ "preserveMemberOrder": false,
1434
+ "members": [
1435
+ {
1436
+ "kind": "PropertySignature",
1437
+ "canonicalReference": "@kagal/taistamp!TaistampHandlerConfig#cors:member",
1438
+ "docComment": "/**\n * CORS origin policy. Defaults to `'*'`; pass `false` to disable CORS entirely, or a specific origin (e.g. `'https://example.com'`) to scope the policy.\n *\n * Every response (`GET` / `HEAD` / `OPTIONS` / `405`) gains `Access-Control-Allow-Origin`; pre-flight `OPTIONS` also carries `-Allow-Methods`, `-Allow-Headers`, `-Expose-Headers`, and `-Max-Age: 600` per spec §5.2; success `GET` / `HEAD` carry `-Expose-Headers` so browser JS can read the `TAI-*` response headers. A non-`'*'` value adds `Vary: Origin` so caches can keep per-origin variants distinct.\n *\n * Disabling CORS does not affect method discovery: `OPTIONS` is still answered with `200` and `Allow: GET, HEAD, OPTIONS` per RFC 9110 §9.3.7.\n */\n",
1439
+ "excerptTokens": [
1440
+ {
1441
+ "kind": "Content",
1442
+ "text": "cors?: "
1443
+ },
1444
+ {
1445
+ "kind": "Content",
1446
+ "text": "false | string"
1447
+ },
1448
+ {
1449
+ "kind": "Content",
1450
+ "text": ";"
1451
+ }
1452
+ ],
1453
+ "isReadonly": false,
1454
+ "isOptional": true,
1455
+ "releaseTag": "Public",
1456
+ "name": "cors",
1457
+ "propertyTypeTokenRange": {
1458
+ "startIndex": 1,
1459
+ "endIndex": 2
1460
+ }
1461
+ },
1462
+ {
1463
+ "kind": "PropertySignature",
1464
+ "canonicalReference": "@kagal/taistamp!TaistampHandlerConfig#selector:member",
1465
+ "docComment": "/**\n * Key selector advertised in the `TAI-Key-Selector` response header and bound into the signed payload. Verifiers look up the public key at `<selector>._taistamp.<host>` in DNS.\n *\n * Must match `[A-Za-z][A-Za-z0-9_-]{0,62}` (a single DNS label starting with a letter, using DKIM-compatible characters and a valid sf-token); rotate by changing the selector and publishing a new TXT record.\n */\n",
1466
+ "excerptTokens": [
1467
+ {
1468
+ "kind": "Content",
1469
+ "text": "selector?: "
1470
+ },
1471
+ {
1472
+ "kind": "Content",
1473
+ "text": "string"
1474
+ },
1475
+ {
1476
+ "kind": "Content",
1477
+ "text": ";"
1478
+ }
1479
+ ],
1480
+ "isReadonly": false,
1481
+ "isOptional": true,
1482
+ "releaseTag": "Public",
1483
+ "name": "selector",
1484
+ "propertyTypeTokenRange": {
1485
+ "startIndex": 1,
1486
+ "endIndex": 2
1487
+ }
1488
+ },
1489
+ {
1490
+ "kind": "PropertySignature",
1491
+ "canonicalReference": "@kagal/taistamp!TaistampHandlerConfig#signer:member",
1492
+ "docComment": "/**\n * {@link Signer} that produces `TAI-Signature` over the framed payload from {@link composeSignaturePayload}. Without a signer the nonce is still echoed but the response is unsigned.\n */\n",
1493
+ "excerptTokens": [
1494
+ {
1495
+ "kind": "Content",
1496
+ "text": "signer?: "
1497
+ },
1498
+ {
1499
+ "kind": "Reference",
1500
+ "text": "Signer$1",
1501
+ "canonicalReference": "@kagal/taistamp!Signer:interface"
1502
+ },
1503
+ {
1504
+ "kind": "Content",
1505
+ "text": ";"
1506
+ }
1507
+ ],
1508
+ "isReadonly": false,
1509
+ "isOptional": true,
1510
+ "releaseTag": "Public",
1511
+ "name": "signer",
1512
+ "propertyTypeTokenRange": {
1513
+ "startIndex": 1,
1514
+ "endIndex": 2
1515
+ }
1516
+ }
1517
+ ],
1518
+ "extendsTokenRanges": []
1519
+ },
1520
+ {
1521
+ "kind": "Variable",
1522
+ "canonicalReference": "@kagal/taistamp!VERSION:var",
1523
+ "docComment": "/**\n * Package version from package.json.\n */\n",
1524
+ "excerptTokens": [
1525
+ {
1526
+ "kind": "Content",
1527
+ "text": "VERSION: "
1528
+ },
1529
+ {
1530
+ "kind": "Content",
1531
+ "text": "string"
1532
+ }
1533
+ ],
1534
+ "fileUrlPath": "dist/index.d.mts",
1535
+ "isReadonly": true,
1536
+ "releaseTag": "Public",
1537
+ "name": "VERSION",
1538
+ "variableTypeTokenRange": {
1539
+ "startIndex": 1,
1540
+ "endIndex": 2
1541
+ }
1542
+ }
1543
+ ]
1544
+ }
1545
+ ]
1546
+ }