@genesislcap/foundation-utils 15.46.6-alpha-606571609.0 → 15.48.0

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.
@@ -670,79 +670,6 @@
670
670
  ],
671
671
  "name": "createErrorMap"
672
672
  },
673
- {
674
- "kind": "Function",
675
- "canonicalReference": "@genesislcap/foundation-utils!createErrorMonitoringReporter:function(1)",
676
- "docComment": "/**\n * Creates a global log reporter that sends foundation logger output to a monitoring client.\n *\n * @remarks\n *\n * `error` and `fatal` logs become events: an exception when an `Error` was logged, otherwise a message built with {@link formatLogArgs}. Each is tagged with the logger name, and plain-object arguments (such as an error boundary's reference ID and component stack) are merged into its extra data alongside the raw arguments. Other logs become breadcrumbs unless `breadcrumbs` is `false`. A failing client never breaks logging.\n *\n * {@link setupErrorMonitoring} registers this for you; use it directly to wire a client by hand.\n *\n * @param client - The monitoring client.\n *\n * @param options - Set `breadcrumbs: false` to skip breadcrumbs.\n *\n * @public\n */\n",
677
- "excerptTokens": [
678
- {
679
- "kind": "Content",
680
- "text": "createErrorMonitoringReporter: (client: "
681
- },
682
- {
683
- "kind": "Reference",
684
- "text": "ErrorMonitoringClient",
685
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringClient:interface"
686
- },
687
- {
688
- "kind": "Content",
689
- "text": ", { breadcrumbs }?: "
690
- },
691
- {
692
- "kind": "Reference",
693
- "text": "Pick",
694
- "canonicalReference": "!Pick:type"
695
- },
696
- {
697
- "kind": "Content",
698
- "text": "<"
699
- },
700
- {
701
- "kind": "Reference",
702
- "text": "ErrorMonitoringOptions",
703
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions:interface"
704
- },
705
- {
706
- "kind": "Content",
707
- "text": ", \"breadcrumbs\">"
708
- },
709
- {
710
- "kind": "Content",
711
- "text": ") => "
712
- },
713
- {
714
- "kind": "Reference",
715
- "text": "ConsolaReporter",
716
- "canonicalReference": "consola!ConsolaReporter:interface"
717
- }
718
- ],
719
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
720
- "returnTypeTokenRange": {
721
- "startIndex": 8,
722
- "endIndex": 9
723
- },
724
- "releaseTag": "Public",
725
- "overloadIndex": 1,
726
- "parameters": [
727
- {
728
- "parameterName": "client",
729
- "parameterTypeTokenRange": {
730
- "startIndex": 1,
731
- "endIndex": 2
732
- },
733
- "isOptional": false
734
- },
735
- {
736
- "parameterName": "{ breadcrumbs }",
737
- "parameterTypeTokenRange": {
738
- "startIndex": 3,
739
- "endIndex": 7
740
- },
741
- "isOptional": true
742
- }
743
- ],
744
- "name": "createErrorMonitoringReporter"
745
- },
746
673
  {
747
674
  "kind": "Function",
748
675
  "canonicalReference": "@genesislcap/foundation-utils!createLogger:function(1)",
@@ -2152,33 +2079,6 @@
2152
2079
  "endIndex": 2
2153
2080
  }
2154
2081
  },
2155
- {
2156
- "kind": "Variable",
2157
- "canonicalReference": "@genesislcap/foundation-utils!DEFAULT_RUNTIME_CONFIG_URL:var",
2158
- "docComment": "/**\n * The default URL {@link fetchRuntimeConfig} reads from.\n *\n * @public\n */\n",
2159
- "excerptTokens": [
2160
- {
2161
- "kind": "Content",
2162
- "text": "DEFAULT_RUNTIME_CONFIG_URL = "
2163
- },
2164
- {
2165
- "kind": "Content",
2166
- "text": "\"/env.json\""
2167
- }
2168
- ],
2169
- "fileUrlPath": "src/env/runtime-config.ts",
2170
- "initializerTokenRange": {
2171
- "startIndex": 1,
2172
- "endIndex": 2
2173
- },
2174
- "isReadonly": true,
2175
- "releaseTag": "Public",
2176
- "name": "DEFAULT_RUNTIME_CONFIG_URL",
2177
- "variableTypeTokenRange": {
2178
- "startIndex": 0,
2179
- "endIndex": 0
2180
- }
2181
- },
2182
2082
  {
2183
2083
  "kind": "Variable",
2184
2084
  "canonicalReference": "@genesislcap/foundation-utils!DEFAULT_USER:var",
@@ -5103,1233 +5003,88 @@
5103
5003
  "returnTypeTokenRange": {
5104
5004
  "startIndex": 5,
5105
5005
  "endIndex": 6
5106
- },
5107
- "releaseTag": "Public",
5108
- "overloadIndex": 1,
5109
- "parameters": [
5110
- {
5111
- "parameterName": "key",
5112
- "parameterTypeTokenRange": {
5113
- "startIndex": 1,
5114
- "endIndex": 2
5115
- },
5116
- "isOptional": false
5117
- },
5118
- {
5119
- "parameterName": "error",
5120
- "parameterTypeTokenRange": {
5121
- "startIndex": 3,
5122
- "endIndex": 4
5123
- },
5124
- "isOptional": false
5125
- }
5126
- ],
5127
- "name": "set"
5128
- }
5129
- ],
5130
- "extendsTokenRanges": [
5131
- {
5132
- "startIndex": 3,
5133
- "endIndex": 9
5134
- }
5135
- ]
5136
- },
5137
- {
5138
- "kind": "TypeAlias",
5139
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMapLogger:type",
5140
- "docComment": "/**\n * @public\n */\n",
5141
- "excerptTokens": [
5142
- {
5143
- "kind": "Content",
5144
- "text": "export type ErrorMapLogger = "
5145
- },
5146
- {
5147
- "kind": "Content",
5148
- "text": "(...args: any[]) => void"
5149
- },
5150
- {
5151
- "kind": "Content",
5152
- "text": ";"
5153
- }
5154
- ],
5155
- "fileUrlPath": "src/error/errorMap.ts",
5156
- "releaseTag": "Public",
5157
- "name": "ErrorMapLogger",
5158
- "typeTokenRange": {
5159
- "startIndex": 1,
5160
- "endIndex": 2
5161
- }
5162
- },
5163
- {
5164
- "kind": "Interface",
5165
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface",
5166
- "docComment": "/**\n * A breadcrumb: a record of something that happened before an event.\n *\n * @public\n */\n",
5167
- "excerptTokens": [
5168
- {
5169
- "kind": "Content",
5170
- "text": "export interface ErrorMonitoringBreadcrumb "
5171
- }
5172
- ],
5173
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
5174
- "releaseTag": "Public",
5175
- "name": "ErrorMonitoringBreadcrumb",
5176
- "preserveMemberOrder": false,
5177
- "members": [
5178
- {
5179
- "kind": "PropertySignature",
5180
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb#category:member",
5181
- "docComment": "",
5182
- "excerptTokens": [
5183
- {
5184
- "kind": "Content",
5185
- "text": "category?: "
5186
- },
5187
- {
5188
- "kind": "Content",
5189
- "text": "string"
5190
- },
5191
- {
5192
- "kind": "Content",
5193
- "text": ";"
5194
- }
5195
- ],
5196
- "isReadonly": false,
5197
- "isOptional": true,
5198
- "releaseTag": "Public",
5199
- "name": "category",
5200
- "propertyTypeTokenRange": {
5201
- "startIndex": 1,
5202
- "endIndex": 2
5203
- }
5204
- },
5205
- {
5206
- "kind": "PropertySignature",
5207
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb#data:member",
5208
- "docComment": "",
5209
- "excerptTokens": [
5210
- {
5211
- "kind": "Content",
5212
- "text": "data?: "
5213
- },
5214
- {
5215
- "kind": "Reference",
5216
- "text": "Record",
5217
- "canonicalReference": "!Record:type"
5218
- },
5219
- {
5220
- "kind": "Content",
5221
- "text": "<string, unknown>"
5222
- },
5223
- {
5224
- "kind": "Content",
5225
- "text": ";"
5226
- }
5227
- ],
5228
- "isReadonly": false,
5229
- "isOptional": true,
5230
- "releaseTag": "Public",
5231
- "name": "data",
5232
- "propertyTypeTokenRange": {
5233
- "startIndex": 1,
5234
- "endIndex": 3
5235
- }
5236
- },
5237
- {
5238
- "kind": "PropertySignature",
5239
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb#level:member",
5240
- "docComment": "",
5241
- "excerptTokens": [
5242
- {
5243
- "kind": "Content",
5244
- "text": "level?: "
5245
- },
5246
- {
5247
- "kind": "Content",
5248
- "text": "string"
5249
- },
5250
- {
5251
- "kind": "Content",
5252
- "text": ";"
5253
- }
5254
- ],
5255
- "isReadonly": false,
5256
- "isOptional": true,
5257
- "releaseTag": "Public",
5258
- "name": "level",
5259
- "propertyTypeTokenRange": {
5260
- "startIndex": 1,
5261
- "endIndex": 2
5262
- }
5263
- },
5264
- {
5265
- "kind": "PropertySignature",
5266
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb#message:member",
5267
- "docComment": "",
5268
- "excerptTokens": [
5269
- {
5270
- "kind": "Content",
5271
- "text": "message?: "
5272
- },
5273
- {
5274
- "kind": "Content",
5275
- "text": "string"
5276
- },
5277
- {
5278
- "kind": "Content",
5279
- "text": ";"
5280
- }
5281
- ],
5282
- "isReadonly": false,
5283
- "isOptional": true,
5284
- "releaseTag": "Public",
5285
- "name": "message",
5286
- "propertyTypeTokenRange": {
5287
- "startIndex": 1,
5288
- "endIndex": 2
5289
- }
5290
- }
5291
- ],
5292
- "extendsTokenRanges": []
5293
- },
5294
- {
5295
- "kind": "Interface",
5296
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringClient:interface",
5297
- "docComment": "/**\n * An error-monitoring SDK, or an adapter for one. The method names and shapes match the Sentry browser SDKs, so `import * as Sentry from '@sentry/react'` can be passed as is.\n *\n * @public\n */\n",
5298
- "excerptTokens": [
5299
- {
5300
- "kind": "Content",
5301
- "text": "export interface ErrorMonitoringClient "
5302
- }
5303
- ],
5304
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
5305
- "releaseTag": "Public",
5306
- "name": "ErrorMonitoringClient",
5307
- "preserveMemberOrder": false,
5308
- "members": [
5309
- {
5310
- "kind": "MethodSignature",
5311
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringClient#addBreadcrumb:member(1)",
5312
- "docComment": "",
5313
- "excerptTokens": [
5314
- {
5315
- "kind": "Content",
5316
- "text": "addBreadcrumb?(breadcrumb: "
5317
- },
5318
- {
5319
- "kind": "Reference",
5320
- "text": "ErrorMonitoringBreadcrumb",
5321
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface"
5322
- },
5323
- {
5324
- "kind": "Content",
5325
- "text": " & {\n level?: "
5326
- },
5327
- {
5328
- "kind": "Reference",
5329
- "text": "ErrorMonitoringLevel",
5330
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringLevel:type"
5331
- },
5332
- {
5333
- "kind": "Content",
5334
- "text": ";\n }"
5335
- },
5336
- {
5337
- "kind": "Content",
5338
- "text": "): "
5339
- },
5340
- {
5341
- "kind": "Content",
5342
- "text": "unknown"
5343
- },
5344
- {
5345
- "kind": "Content",
5346
- "text": ";"
5347
- }
5348
- ],
5349
- "isOptional": true,
5350
- "returnTypeTokenRange": {
5351
- "startIndex": 6,
5352
- "endIndex": 7
5353
- },
5354
- "releaseTag": "Public",
5355
- "overloadIndex": 1,
5356
- "parameters": [
5357
- {
5358
- "parameterName": "breadcrumb",
5359
- "parameterTypeTokenRange": {
5360
- "startIndex": 1,
5361
- "endIndex": 5
5362
- },
5363
- "isOptional": false
5364
- }
5365
- ],
5366
- "name": "addBreadcrumb"
5367
- },
5368
- {
5369
- "kind": "MethodSignature",
5370
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringClient#captureException:member(1)",
5371
- "docComment": "",
5372
- "excerptTokens": [
5373
- {
5374
- "kind": "Content",
5375
- "text": "captureException(error: "
5376
- },
5377
- {
5378
- "kind": "Content",
5379
- "text": "unknown"
5380
- },
5381
- {
5382
- "kind": "Content",
5383
- "text": ", context?: "
5384
- },
5385
- {
5386
- "kind": "Reference",
5387
- "text": "ErrorMonitoringContext",
5388
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringContext:interface"
5389
- },
5390
- {
5391
- "kind": "Content",
5392
- "text": "): "
5393
- },
5394
- {
5395
- "kind": "Content",
5396
- "text": "unknown"
5397
- },
5398
- {
5399
- "kind": "Content",
5400
- "text": ";"
5401
- }
5402
- ],
5403
- "isOptional": false,
5404
- "returnTypeTokenRange": {
5405
- "startIndex": 5,
5406
- "endIndex": 6
5407
- },
5408
- "releaseTag": "Public",
5409
- "overloadIndex": 1,
5410
- "parameters": [
5411
- {
5412
- "parameterName": "error",
5413
- "parameterTypeTokenRange": {
5414
- "startIndex": 1,
5415
- "endIndex": 2
5416
- },
5417
- "isOptional": false
5418
- },
5419
- {
5420
- "parameterName": "context",
5421
- "parameterTypeTokenRange": {
5422
- "startIndex": 3,
5423
- "endIndex": 4
5424
- },
5425
- "isOptional": true
5426
- }
5427
- ],
5428
- "name": "captureException"
5429
- },
5430
- {
5431
- "kind": "MethodSignature",
5432
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringClient#captureMessage:member(1)",
5433
- "docComment": "",
5434
- "excerptTokens": [
5435
- {
5436
- "kind": "Content",
5437
- "text": "captureMessage(message: "
5438
- },
5439
- {
5440
- "kind": "Content",
5441
- "text": "string"
5442
- },
5443
- {
5444
- "kind": "Content",
5445
- "text": ", context?: "
5446
- },
5447
- {
5448
- "kind": "Reference",
5449
- "text": "ErrorMonitoringContext",
5450
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringContext:interface"
5451
- },
5452
- {
5453
- "kind": "Content",
5454
- "text": "): "
5455
- },
5456
- {
5457
- "kind": "Content",
5458
- "text": "unknown"
5459
- },
5460
- {
5461
- "kind": "Content",
5462
- "text": ";"
5463
- }
5464
- ],
5465
- "isOptional": false,
5466
- "returnTypeTokenRange": {
5467
- "startIndex": 5,
5468
- "endIndex": 6
5469
- },
5470
- "releaseTag": "Public",
5471
- "overloadIndex": 1,
5472
- "parameters": [
5473
- {
5474
- "parameterName": "message",
5475
- "parameterTypeTokenRange": {
5476
- "startIndex": 1,
5477
- "endIndex": 2
5478
- },
5479
- "isOptional": false
5480
- },
5481
- {
5482
- "parameterName": "context",
5483
- "parameterTypeTokenRange": {
5484
- "startIndex": 3,
5485
- "endIndex": 4
5486
- },
5487
- "isOptional": true
5488
- }
5489
- ],
5490
- "name": "captureMessage"
5491
- },
5492
- {
5493
- "kind": "MethodSignature",
5494
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringClient#init:member(1)",
5495
- "docComment": "",
5496
- "excerptTokens": [
5497
- {
5498
- "kind": "Content",
5499
- "text": "init?(options: "
5500
- },
5501
- {
5502
- "kind": "Reference",
5503
- "text": "ErrorMonitoringInitOptions",
5504
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions:interface"
5505
- },
5506
- {
5507
- "kind": "Content",
5508
- "text": "): "
5509
- },
5510
- {
5511
- "kind": "Content",
5512
- "text": "unknown"
5513
- },
5514
- {
5515
- "kind": "Content",
5516
- "text": ";"
5517
- }
5518
- ],
5519
- "isOptional": true,
5520
- "returnTypeTokenRange": {
5521
- "startIndex": 3,
5522
- "endIndex": 4
5523
- },
5524
- "releaseTag": "Public",
5525
- "overloadIndex": 1,
5526
- "parameters": [
5527
- {
5528
- "parameterName": "options",
5529
- "parameterTypeTokenRange": {
5530
- "startIndex": 1,
5531
- "endIndex": 2
5532
- },
5533
- "isOptional": false
5534
- }
5535
- ],
5536
- "name": "init"
5537
- }
5538
- ],
5539
- "extendsTokenRanges": []
5540
- },
5541
- {
5542
- "kind": "Interface",
5543
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringContext:interface",
5544
- "docComment": "/**\n * Context sent with a captured exception or message.\n *\n * @public\n */\n",
5545
- "excerptTokens": [
5546
- {
5547
- "kind": "Content",
5548
- "text": "export interface ErrorMonitoringContext "
5549
- }
5550
- ],
5551
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
5552
- "releaseTag": "Public",
5553
- "name": "ErrorMonitoringContext",
5554
- "preserveMemberOrder": false,
5555
- "members": [
5556
- {
5557
- "kind": "PropertySignature",
5558
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringContext#extra:member",
5559
- "docComment": "",
5560
- "excerptTokens": [
5561
- {
5562
- "kind": "Content",
5563
- "text": "extra?: "
5564
- },
5565
- {
5566
- "kind": "Reference",
5567
- "text": "Record",
5568
- "canonicalReference": "!Record:type"
5569
- },
5570
- {
5571
- "kind": "Content",
5572
- "text": "<string, unknown>"
5573
- },
5574
- {
5575
- "kind": "Content",
5576
- "text": ";"
5577
- }
5578
- ],
5579
- "isReadonly": false,
5580
- "isOptional": true,
5581
- "releaseTag": "Public",
5582
- "name": "extra",
5583
- "propertyTypeTokenRange": {
5584
- "startIndex": 1,
5585
- "endIndex": 3
5586
- }
5587
- },
5588
- {
5589
- "kind": "PropertySignature",
5590
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringContext#level:member",
5591
- "docComment": "",
5592
- "excerptTokens": [
5593
- {
5594
- "kind": "Content",
5595
- "text": "level?: "
5596
- },
5597
- {
5598
- "kind": "Reference",
5599
- "text": "ErrorMonitoringLevel",
5600
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringLevel:type"
5601
- },
5602
- {
5603
- "kind": "Content",
5604
- "text": ";"
5605
- }
5606
- ],
5607
- "isReadonly": false,
5608
- "isOptional": true,
5609
- "releaseTag": "Public",
5610
- "name": "level",
5611
- "propertyTypeTokenRange": {
5612
- "startIndex": 1,
5613
- "endIndex": 2
5614
- }
5615
- },
5616
- {
5617
- "kind": "PropertySignature",
5618
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringContext#tags:member",
5619
- "docComment": "",
5620
- "excerptTokens": [
5621
- {
5622
- "kind": "Content",
5623
- "text": "tags?: "
5624
- },
5625
- {
5626
- "kind": "Reference",
5627
- "text": "Record",
5628
- "canonicalReference": "!Record:type"
5629
- },
5630
- {
5631
- "kind": "Content",
5632
- "text": "<string, string>"
5633
- },
5634
- {
5635
- "kind": "Content",
5636
- "text": ";"
5637
- }
5638
- ],
5639
- "isReadonly": false,
5640
- "isOptional": true,
5641
- "releaseTag": "Public",
5642
- "name": "tags",
5643
- "propertyTypeTokenRange": {
5644
- "startIndex": 1,
5645
- "endIndex": 3
5646
- }
5647
- }
5648
- ],
5649
- "extendsTokenRanges": []
5650
- },
5651
- {
5652
- "kind": "Interface",
5653
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions:interface",
5654
- "docComment": "/**\n * Extra options for the client's `init`, merged into what {@link setupErrorMonitoring} passes.\n *\n * @public\n */\n",
5655
- "excerptTokens": [
5656
- {
5657
- "kind": "Content",
5658
- "text": "export interface ErrorMonitoringExtraInitOptions "
5659
- }
5660
- ],
5661
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
5662
- "releaseTag": "Public",
5663
- "name": "ErrorMonitoringExtraInitOptions",
5664
- "preserveMemberOrder": false,
5665
- "members": [
5666
- {
5667
- "kind": "IndexSignature",
5668
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions:index(1)",
5669
- "docComment": "",
5670
- "excerptTokens": [
5671
- {
5672
- "kind": "Content",
5673
- "text": "[key: "
5674
- },
5675
- {
5676
- "kind": "Content",
5677
- "text": "string"
5678
- },
5679
- {
5680
- "kind": "Content",
5681
- "text": "]: "
5682
- },
5683
- {
5684
- "kind": "Content",
5685
- "text": "unknown"
5686
- },
5687
- {
5688
- "kind": "Content",
5689
- "text": ";"
5690
- }
5691
- ],
5692
- "isReadonly": false,
5693
- "returnTypeTokenRange": {
5694
- "startIndex": 3,
5695
- "endIndex": 4
5696
- },
5697
- "releaseTag": "Public",
5698
- "overloadIndex": 1,
5699
- "parameters": [
5700
- {
5701
- "parameterName": "key",
5702
- "parameterTypeTokenRange": {
5703
- "startIndex": 1,
5704
- "endIndex": 2
5705
- },
5706
- "isOptional": false
5707
- }
5708
- ]
5709
- },
5710
- {
5711
- "kind": "PropertySignature",
5712
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions#beforeBreadcrumb:member",
5713
- "docComment": "/**\n * Runs after the built-in filter, for breadcrumbs it keeps.\n */\n",
5714
- "excerptTokens": [
5715
- {
5716
- "kind": "Content",
5717
- "text": "beforeBreadcrumb?: "
5718
- },
5719
- {
5720
- "kind": "Content",
5721
- "text": "(breadcrumb: "
5722
- },
5723
- {
5724
- "kind": "Reference",
5725
- "text": "ErrorMonitoringBreadcrumb",
5726
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface"
5727
- },
5728
- {
5729
- "kind": "Content",
5730
- "text": ") => "
5731
- },
5732
- {
5733
- "kind": "Reference",
5734
- "text": "ErrorMonitoringBreadcrumb",
5735
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface"
5736
- },
5737
- {
5738
- "kind": "Content",
5739
- "text": " | null"
5740
- },
5741
- {
5742
- "kind": "Content",
5743
- "text": ";"
5744
- }
5745
- ],
5746
- "isReadonly": false,
5747
- "isOptional": true,
5748
- "releaseTag": "Public",
5749
- "name": "beforeBreadcrumb",
5750
- "propertyTypeTokenRange": {
5751
- "startIndex": 1,
5752
- "endIndex": 6
5753
- }
5754
- },
5755
- {
5756
- "kind": "PropertySignature",
5757
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions#normalizeDepth:member",
5758
- "docComment": "",
5759
- "excerptTokens": [
5760
- {
5761
- "kind": "Content",
5762
- "text": "normalizeDepth?: "
5763
- },
5764
- {
5765
- "kind": "Content",
5766
- "text": "number"
5767
- },
5768
- {
5769
- "kind": "Content",
5770
- "text": ";"
5771
- }
5772
- ],
5773
- "isReadonly": false,
5774
- "isOptional": true,
5775
- "releaseTag": "Public",
5776
- "name": "normalizeDepth",
5777
- "propertyTypeTokenRange": {
5778
- "startIndex": 1,
5779
- "endIndex": 2
5780
- }
5781
- }
5782
- ],
5783
- "extendsTokenRanges": []
5784
- },
5785
- {
5786
- "kind": "Interface",
5787
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions:interface",
5788
- "docComment": "/**\n * Options {@link setupErrorMonitoring} passes to the client's `init`.\n *\n * @remarks\n *\n * The names match Sentry's `init` options. Any other keys from `initOptions` are passed through.\n *\n * @public\n */\n",
5789
- "excerptTokens": [
5790
- {
5791
- "kind": "Content",
5792
- "text": "export interface ErrorMonitoringInitOptions "
5793
- }
5794
- ],
5795
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
5796
- "releaseTag": "Public",
5797
- "name": "ErrorMonitoringInitOptions",
5798
- "preserveMemberOrder": false,
5799
- "members": [
5800
- {
5801
- "kind": "IndexSignature",
5802
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions:index(1)",
5803
- "docComment": "",
5804
- "excerptTokens": [
5805
- {
5806
- "kind": "Content",
5807
- "text": "[key: "
5808
- },
5809
- {
5810
- "kind": "Content",
5811
- "text": "string"
5812
- },
5813
- {
5814
- "kind": "Content",
5815
- "text": "]: "
5816
- },
5817
- {
5818
- "kind": "Content",
5819
- "text": "unknown"
5820
- },
5821
- {
5822
- "kind": "Content",
5823
- "text": ";"
5824
- }
5825
- ],
5826
- "isReadonly": false,
5827
- "returnTypeTokenRange": {
5828
- "startIndex": 3,
5829
- "endIndex": 4
5830
- },
5831
- "releaseTag": "Public",
5832
- "overloadIndex": 1,
5833
- "parameters": [
5834
- {
5835
- "parameterName": "key",
5836
- "parameterTypeTokenRange": {
5837
- "startIndex": 1,
5838
- "endIndex": 2
5839
- },
5840
- "isOptional": false
5841
- }
5842
- ]
5843
- },
5844
- {
5845
- "kind": "PropertySignature",
5846
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#beforeBreadcrumb:member",
5847
- "docComment": "/**\n * Drops the console breadcrumbs foundation loggers write; see {@link isFoundationLoggerConsoleBreadcrumb}.\n */\n",
5848
- "excerptTokens": [
5849
- {
5850
- "kind": "Content",
5851
- "text": "beforeBreadcrumb?: "
5852
- },
5853
- {
5854
- "kind": "Content",
5855
- "text": "<B extends "
5856
- },
5857
- {
5858
- "kind": "Reference",
5859
- "text": "ErrorMonitoringBreadcrumb",
5860
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface"
5861
- },
5862
- {
5863
- "kind": "Content",
5864
- "text": ">(breadcrumb: B) => B | null"
5865
- },
5866
- {
5867
- "kind": "Content",
5868
- "text": ";"
5869
- }
5870
- ],
5871
- "isReadonly": false,
5872
- "isOptional": true,
5873
- "releaseTag": "Public",
5874
- "name": "beforeBreadcrumb",
5875
- "propertyTypeTokenRange": {
5876
- "startIndex": 1,
5877
- "endIndex": 4
5878
- }
5879
- },
5880
- {
5881
- "kind": "PropertySignature",
5882
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#dsn:member",
5883
- "docComment": "",
5884
- "excerptTokens": [
5885
- {
5886
- "kind": "Content",
5887
- "text": "dsn: "
5888
- },
5889
- {
5890
- "kind": "Content",
5891
- "text": "string"
5892
- },
5893
- {
5894
- "kind": "Content",
5895
- "text": ";"
5896
- }
5897
- ],
5898
- "isReadonly": false,
5899
- "isOptional": false,
5900
- "releaseTag": "Public",
5901
- "name": "dsn",
5902
- "propertyTypeTokenRange": {
5903
- "startIndex": 1,
5904
- "endIndex": 2
5905
- }
5906
- },
5907
- {
5908
- "kind": "PropertySignature",
5909
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#environment:member",
5910
- "docComment": "",
5911
- "excerptTokens": [
5912
- {
5913
- "kind": "Content",
5914
- "text": "environment: "
5915
- },
5916
- {
5917
- "kind": "Content",
5918
- "text": "string"
5919
- },
5920
- {
5921
- "kind": "Content",
5922
- "text": ";"
5923
- }
5924
- ],
5925
- "isReadonly": false,
5926
- "isOptional": false,
5927
- "releaseTag": "Public",
5928
- "name": "environment",
5929
- "propertyTypeTokenRange": {
5930
- "startIndex": 1,
5931
- "endIndex": 2
5932
- }
5933
- },
5934
- {
5935
- "kind": "PropertySignature",
5936
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions#normalizeDepth:member",
5937
- "docComment": "/**\n * How deep logged objects are serialised. Defaults to 10, so nested Genesis NACK entries survive.\n */\n",
5938
- "excerptTokens": [
5939
- {
5940
- "kind": "Content",
5941
- "text": "normalizeDepth?: "
5942
- },
5943
- {
5944
- "kind": "Content",
5945
- "text": "number"
5946
- },
5947
- {
5948
- "kind": "Content",
5949
- "text": ";"
5950
- }
5951
- ],
5952
- "isReadonly": false,
5953
- "isOptional": true,
5954
- "releaseTag": "Public",
5955
- "name": "normalizeDepth",
5956
- "propertyTypeTokenRange": {
5957
- "startIndex": 1,
5958
- "endIndex": 2
5959
- }
5960
- }
5961
- ],
5962
- "extendsTokenRanges": []
5963
- },
5964
- {
5965
- "kind": "TypeAlias",
5966
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringLevel:type",
5967
- "docComment": "/**\n * Severity of a monitoring event or breadcrumb.\n *\n * @public\n */\n",
5968
- "excerptTokens": [
5969
- {
5970
- "kind": "Content",
5971
- "text": "export type ErrorMonitoringLevel = "
5972
- },
5973
- {
5974
- "kind": "Content",
5975
- "text": "'fatal' | 'error' | 'warning' | 'info' | 'debug'"
5976
- },
5977
- {
5978
- "kind": "Content",
5979
- "text": ";"
5980
- }
5981
- ],
5982
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
5983
- "releaseTag": "Public",
5984
- "name": "ErrorMonitoringLevel",
5985
- "typeTokenRange": {
5986
- "startIndex": 1,
5987
- "endIndex": 2
5988
- }
5989
- },
5990
- {
5991
- "kind": "Interface",
5992
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions:interface",
5993
- "docComment": "/**\n * Options for {@link setupErrorMonitoring}.\n *\n * @public\n */\n",
5994
- "excerptTokens": [
5995
- {
5996
- "kind": "Content",
5997
- "text": "export interface ErrorMonitoringOptions "
5998
- }
5999
- ],
6000
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
6001
- "releaseTag": "Public",
6002
- "name": "ErrorMonitoringOptions",
6003
- "preserveMemberOrder": false,
6004
- "members": [
6005
- {
6006
- "kind": "PropertySignature",
6007
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#breadcrumbs:member",
6008
- "docComment": "/**\n * Records non-error foundation logs as breadcrumbs. Defaults to `true`.\n */\n",
6009
- "excerptTokens": [
6010
- {
6011
- "kind": "Content",
6012
- "text": "breadcrumbs?: "
6013
- },
6014
- {
6015
- "kind": "Content",
6016
- "text": "boolean"
6017
- },
6018
- {
6019
- "kind": "Content",
6020
- "text": ";"
6021
- }
6022
- ],
6023
- "isReadonly": false,
6024
- "isOptional": true,
6025
- "releaseTag": "Public",
6026
- "name": "breadcrumbs",
6027
- "propertyTypeTokenRange": {
6028
- "startIndex": 1,
6029
- "endIndex": 2
6030
- }
6031
- },
6032
- {
6033
- "kind": "PropertySignature",
6034
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#configUrl:member",
6035
- "docComment": "/**\n * Per-deployment JSON config holding the DSN and environment. Defaults to `/env.json`.\n */\n",
6036
- "excerptTokens": [
6037
- {
6038
- "kind": "Content",
6039
- "text": "configUrl?: "
6040
- },
6041
- {
6042
- "kind": "Content",
6043
- "text": "string"
6044
- },
6045
- {
6046
- "kind": "Content",
6047
- "text": ";"
6048
- }
6049
- ],
6050
- "isReadonly": false,
6051
- "isOptional": true,
6052
- "releaseTag": "Public",
6053
- "name": "configUrl",
6054
- "propertyTypeTokenRange": {
6055
- "startIndex": 1,
6056
- "endIndex": 2
6057
- }
6058
- },
6059
- {
6060
- "kind": "PropertySignature",
6061
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#defaultEnvironment:member",
6062
- "docComment": "/**\n * Environment used when the config doesn't name one. Defaults to `local`.\n */\n",
6063
- "excerptTokens": [
6064
- {
6065
- "kind": "Content",
6066
- "text": "defaultEnvironment?: "
6067
- },
6068
- {
6069
- "kind": "Content",
6070
- "text": "string"
6071
- },
6072
- {
6073
- "kind": "Content",
6074
- "text": ";"
6075
- }
6076
- ],
6077
- "isReadonly": false,
6078
- "isOptional": true,
6079
- "releaseTag": "Public",
6080
- "name": "defaultEnvironment",
6081
- "propertyTypeTokenRange": {
6082
- "startIndex": 1,
6083
- "endIndex": 2
6084
- }
6085
- },
6086
- {
6087
- "kind": "PropertySignature",
6088
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#dsnKey:member",
6089
- "docComment": "/**\n * Config key holding the DSN. Defaults to `sentryDsn`.\n */\n",
6090
- "excerptTokens": [
6091
- {
6092
- "kind": "Content",
6093
- "text": "dsnKey?: "
6094
- },
6095
- {
6096
- "kind": "Content",
6097
- "text": "string"
6098
- },
6099
- {
6100
- "kind": "Content",
6101
- "text": ";"
6102
- }
6103
- ],
6104
- "isReadonly": false,
6105
- "isOptional": true,
6106
- "releaseTag": "Public",
6107
- "name": "dsnKey",
6108
- "propertyTypeTokenRange": {
6109
- "startIndex": 1,
6110
- "endIndex": 2
6111
- }
6112
- },
6113
- {
6114
- "kind": "PropertySignature",
6115
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#environmentKey:member",
6116
- "docComment": "/**\n * Config key holding the environment name. Defaults to `environmentType`.\n */\n",
6117
- "excerptTokens": [
6118
- {
6119
- "kind": "Content",
6120
- "text": "environmentKey?: "
6121
- },
6122
- {
6123
- "kind": "Content",
6124
- "text": "string"
6125
- },
6126
- {
6127
- "kind": "Content",
6128
- "text": ";"
6129
- }
6130
- ],
6131
- "isReadonly": false,
6132
- "isOptional": true,
6133
- "releaseTag": "Public",
6134
- "name": "environmentKey",
6135
- "propertyTypeTokenRange": {
6136
- "startIndex": 1,
6137
- "endIndex": 2
6138
- }
6139
- },
6140
- {
6141
- "kind": "PropertySignature",
6142
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#init:member",
6143
- "docComment": "/**\n * Initialises the client in place of calling `client.init`.\n */\n",
6144
- "excerptTokens": [
6145
- {
6146
- "kind": "Content",
6147
- "text": "init?: "
6148
- },
6149
- {
6150
- "kind": "Content",
6151
- "text": "(options: "
6152
- },
6153
- {
6154
- "kind": "Reference",
6155
- "text": "ErrorMonitoringInitOptions",
6156
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringInitOptions:interface"
6157
- },
6158
- {
6159
- "kind": "Content",
6160
- "text": ") => unknown"
6161
- },
6162
- {
6163
- "kind": "Content",
6164
- "text": ";"
6165
- }
6166
- ],
6167
- "isReadonly": false,
6168
- "isOptional": true,
6169
- "releaseTag": "Public",
6170
- "name": "init",
6171
- "propertyTypeTokenRange": {
6172
- "startIndex": 1,
6173
- "endIndex": 4
6174
- }
6175
- },
6176
- {
6177
- "kind": "PropertySignature",
6178
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions#initOptions:member",
6179
- "docComment": "/**\n * Extra options merged into what the client's `init` receives, e.g. Sentry's `dataCollection`.\n */\n",
6180
- "excerptTokens": [
6181
- {
6182
- "kind": "Content",
6183
- "text": "initOptions?: "
6184
- },
5006
+ },
5007
+ "releaseTag": "Public",
5008
+ "overloadIndex": 1,
5009
+ "parameters": [
6185
5010
  {
6186
- "kind": "Reference",
6187
- "text": "ErrorMonitoringExtraInitOptions",
6188
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringExtraInitOptions:interface"
5011
+ "parameterName": "key",
5012
+ "parameterTypeTokenRange": {
5013
+ "startIndex": 1,
5014
+ "endIndex": 2
5015
+ },
5016
+ "isOptional": false
6189
5017
  },
6190
5018
  {
6191
- "kind": "Content",
6192
- "text": ";"
5019
+ "parameterName": "error",
5020
+ "parameterTypeTokenRange": {
5021
+ "startIndex": 3,
5022
+ "endIndex": 4
5023
+ },
5024
+ "isOptional": false
6193
5025
  }
6194
5026
  ],
6195
- "isReadonly": false,
6196
- "isOptional": true,
6197
- "releaseTag": "Public",
6198
- "name": "initOptions",
6199
- "propertyTypeTokenRange": {
6200
- "startIndex": 1,
6201
- "endIndex": 2
6202
- }
5027
+ "name": "set"
6203
5028
  }
6204
5029
  ],
6205
- "extendsTokenRanges": []
5030
+ "extendsTokenRanges": [
5031
+ {
5032
+ "startIndex": 3,
5033
+ "endIndex": 9
5034
+ }
5035
+ ]
6206
5036
  },
6207
5037
  {
6208
5038
  "kind": "TypeAlias",
6209
- "canonicalReference": "@genesislcap/foundation-utils!EventName:type",
6210
- "docComment": "/**\n * Represents the possible event names for data synchronization.\n *\n * @public\n */\n",
5039
+ "canonicalReference": "@genesislcap/foundation-utils!ErrorMapLogger:type",
5040
+ "docComment": "/**\n * @public\n */\n",
6211
5041
  "excerptTokens": [
6212
5042
  {
6213
5043
  "kind": "Content",
6214
- "text": "export type EventName = "
5044
+ "text": "export type ErrorMapLogger = "
6215
5045
  },
6216
5046
  {
6217
5047
  "kind": "Content",
6218
- "text": "'input' | 'change' | 'default'"
5048
+ "text": "(...args: any[]) => void"
6219
5049
  },
6220
5050
  {
6221
5051
  "kind": "Content",
6222
5052
  "text": ";"
6223
5053
  }
6224
5054
  ],
6225
- "fileUrlPath": "src/directives/sync/sync.ts",
5055
+ "fileUrlPath": "src/error/errorMap.ts",
6226
5056
  "releaseTag": "Public",
6227
- "name": "EventName",
5057
+ "name": "ErrorMapLogger",
6228
5058
  "typeTokenRange": {
6229
5059
  "startIndex": 1,
6230
5060
  "endIndex": 2
6231
5061
  }
6232
5062
  },
6233
5063
  {
6234
- "kind": "Function",
6235
- "canonicalReference": "@genesislcap/foundation-utils!fetchRuntimeConfig:function(1)",
6236
- "docComment": "/**\n * Fetches per-deployment JSON config, such as an error-monitoring DSN or environment name, that can't be baked in at build time because the same image is promoted across environments.\n *\n * @remarks\n *\n * Never rejects. Resolves to `fallback` when the request fails (network error, non-2xx status such as a 404) or the body isn't a JSON object. The last case covers an SPA fallback that serves `index.html` with a 200 for unknown paths. On success, the fetched values are shallow-merged over `fallback`. The request bypasses the HTTP cache so a redeployed config is picked up on reload.\n *\n * @param url - The config URL. Defaults to {@link DEFAULT_RUNTIME_CONFIG_URL}.\n *\n * @param fallback - Values to use when the config can't be read, and defaults for keys it omits.\n *\n * @returns The fetched config merged over `fallback`, or `fallback` alone.\n *\n * @example\n * ```ts\n * type EnvConfig = { sentryDsn: string; environment: string };\n * const { sentryDsn, environment = 'local' } = await fetchRuntimeConfig<EnvConfig>();\n * if (sentryDsn) Sentry.init({ dsn: sentryDsn, environment });\n * ```\n *\n * @public\n */\n",
5064
+ "kind": "TypeAlias",
5065
+ "canonicalReference": "@genesislcap/foundation-utils!EventName:type",
5066
+ "docComment": "/**\n * Represents the possible event names for data synchronization.\n *\n * @public\n */\n",
6237
5067
  "excerptTokens": [
6238
5068
  {
6239
5069
  "kind": "Content",
6240
- "text": "export declare function fetchRuntimeConfig<T extends "
6241
- },
6242
- {
6243
- "kind": "Content",
6244
- "text": "object"
6245
- },
6246
- {
6247
- "kind": "Content",
6248
- "text": ">(url?: "
6249
- },
6250
- {
6251
- "kind": "Content",
6252
- "text": "string"
6253
- },
6254
- {
6255
- "kind": "Content",
6256
- "text": ", fallback?: "
6257
- },
6258
- {
6259
- "kind": "Reference",
6260
- "text": "Partial",
6261
- "canonicalReference": "!Partial:type"
6262
- },
6263
- {
6264
- "kind": "Content",
6265
- "text": "<T>"
6266
- },
6267
- {
6268
- "kind": "Content",
6269
- "text": "): "
6270
- },
6271
- {
6272
- "kind": "Reference",
6273
- "text": "Promise",
6274
- "canonicalReference": "!Promise:interface"
6275
- },
6276
- {
6277
- "kind": "Content",
6278
- "text": "<"
6279
- },
6280
- {
6281
- "kind": "Reference",
6282
- "text": "Partial",
6283
- "canonicalReference": "!Partial:type"
5070
+ "text": "export type EventName = "
6284
5071
  },
6285
5072
  {
6286
5073
  "kind": "Content",
6287
- "text": "<T>>"
5074
+ "text": "'input' | 'change' | 'default'"
6288
5075
  },
6289
5076
  {
6290
5077
  "kind": "Content",
6291
5078
  "text": ";"
6292
5079
  }
6293
5080
  ],
6294
- "fileUrlPath": "src/env/runtime-config.ts",
6295
- "returnTypeTokenRange": {
6296
- "startIndex": 8,
6297
- "endIndex": 12
6298
- },
5081
+ "fileUrlPath": "src/directives/sync/sync.ts",
6299
5082
  "releaseTag": "Public",
6300
- "overloadIndex": 1,
6301
- "parameters": [
6302
- {
6303
- "parameterName": "url",
6304
- "parameterTypeTokenRange": {
6305
- "startIndex": 3,
6306
- "endIndex": 4
6307
- },
6308
- "isOptional": true
6309
- },
6310
- {
6311
- "parameterName": "fallback",
6312
- "parameterTypeTokenRange": {
6313
- "startIndex": 5,
6314
- "endIndex": 7
6315
- },
6316
- "isOptional": true
6317
- }
6318
- ],
6319
- "typeParameters": [
6320
- {
6321
- "typeParameterName": "T",
6322
- "constraintTokenRange": {
6323
- "startIndex": 1,
6324
- "endIndex": 2
6325
- },
6326
- "defaultTypeTokenRange": {
6327
- "startIndex": 0,
6328
- "endIndex": 0
6329
- }
6330
- }
6331
- ],
6332
- "name": "fetchRuntimeConfig"
5083
+ "name": "EventName",
5084
+ "typeTokenRange": {
5085
+ "startIndex": 1,
5086
+ "endIndex": 2
5087
+ }
6333
5088
  },
6334
5089
  {
6335
5090
  "kind": "Enum",
@@ -6737,47 +5492,6 @@
6737
5492
  ],
6738
5493
  "name": "formatDateTimeTimestampWithMilliseconds"
6739
5494
  },
6740
- {
6741
- "kind": "Function",
6742
- "canonicalReference": "@genesislcap/foundation-utils!formatLogArgs:function(1)",
6743
- "docComment": "/**\n * Builds a readable one-line message from a log call's arguments.\n *\n * @remarks\n *\n * Objects, such as a Genesis NACK, are JSON-encoded rather than becoming `[object Object]`. Circular references are marked, functions and classes are named, errors contribute their message, and the result is capped at 2000 characters.\n *\n * @param args - The arguments passed to the logger.\n *\n * @public\n */\n",
6744
- "excerptTokens": [
6745
- {
6746
- "kind": "Content",
6747
- "text": "formatLogArgs: (args: "
6748
- },
6749
- {
6750
- "kind": "Content",
6751
- "text": "readonly unknown[]"
6752
- },
6753
- {
6754
- "kind": "Content",
6755
- "text": ") => "
6756
- },
6757
- {
6758
- "kind": "Content",
6759
- "text": "string"
6760
- }
6761
- ],
6762
- "fileUrlPath": "src/error-monitoring/format-log-args.ts",
6763
- "returnTypeTokenRange": {
6764
- "startIndex": 3,
6765
- "endIndex": 4
6766
- },
6767
- "releaseTag": "Public",
6768
- "overloadIndex": 1,
6769
- "parameters": [
6770
- {
6771
- "parameterName": "args",
6772
- "parameterTypeTokenRange": {
6773
- "startIndex": 1,
6774
- "endIndex": 2
6775
- },
6776
- "isOptional": false
6777
- }
6778
- ],
6779
- "name": "formatLogArgs"
6780
- },
6781
5495
  {
6782
5496
  "kind": "Function",
6783
5497
  "canonicalReference": "@genesislcap/foundation-utils!formatTimestamp:function(1)",
@@ -9617,48 +8331,6 @@
9617
8331
  ],
9618
8332
  "name": "isFeatureActivated"
9619
8333
  },
9620
- {
9621
- "kind": "Function",
9622
- "canonicalReference": "@genesislcap/foundation-utils!isFoundationLoggerConsoleBreadcrumb:function(1)",
9623
- "docComment": "/**\n * True for a console breadcrumb written by a foundation logger.\n *\n * @remarks\n *\n * consola's browser output starts with a `%c` badge, and SDKs that record console calls join the arguments with `String()`, so these breadcrumbs arrive as CSS and `[object Object]`. The reporter from {@link createErrorMonitoringReporter} records the same logs readably.\n *\n * @public\n */\n",
9624
- "excerptTokens": [
9625
- {
9626
- "kind": "Content",
9627
- "text": "isFoundationLoggerConsoleBreadcrumb: (breadcrumb: "
9628
- },
9629
- {
9630
- "kind": "Reference",
9631
- "text": "ErrorMonitoringBreadcrumb",
9632
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringBreadcrumb:interface"
9633
- },
9634
- {
9635
- "kind": "Content",
9636
- "text": ") => "
9637
- },
9638
- {
9639
- "kind": "Content",
9640
- "text": "boolean"
9641
- }
9642
- ],
9643
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
9644
- "returnTypeTokenRange": {
9645
- "startIndex": 3,
9646
- "endIndex": 4
9647
- },
9648
- "releaseTag": "Public",
9649
- "overloadIndex": 1,
9650
- "parameters": [
9651
- {
9652
- "parameterName": "breadcrumb",
9653
- "parameterTypeTokenRange": {
9654
- "startIndex": 1,
9655
- "endIndex": 2
9656
- },
9657
- "isOptional": false
9658
- }
9659
- ],
9660
- "name": "isFoundationLoggerConsoleBreadcrumb"
9661
- },
9662
8334
  {
9663
8335
  "kind": "Function",
9664
8336
  "canonicalReference": "@genesislcap/foundation-utils!JSONReplacer:function(1)",
@@ -19338,74 +18010,6 @@
19338
18010
  "endIndex": 2
19339
18011
  }
19340
18012
  },
19341
- {
19342
- "kind": "Function",
19343
- "canonicalReference": "@genesislcap/foundation-utils!setupErrorMonitoring:function(1)",
19344
- "docComment": "/**\n * Sets up error monitoring for a Genesis app in one call.\n *\n * @remarks\n *\n * Reads the DSN and environment from per-deployment config (`/env.json` by default) with {@link fetchRuntimeConfig}, so one image can be promoted across environments. Without a DSN it does nothing and resolves `false`, as in local development. Otherwise it:\n *\n * - initialises the client (`client.init`, or `options.init`) with the DSN, environment, `normalizeDepth: 10`, a `beforeBreadcrumb` that drops unreadable foundation logger console breadcrumbs, and any `initOptions`; - registers a global log reporter ({@link createErrorMonitoringReporter}), so errors logged by every foundation logger, including those Genesis packages create at import time, are reported with their structured arguments, and other logs become readable breadcrumbs.\n *\n * Errors caught by the foundation-react-utils `AppErrorBoundary` and `TileErrorBoundary` are logged with their reference ID and component stack, so they are reported too without an `onError`. Pair them with `onCaughtError` on the React root.\n *\n * Calling it again replaces the previous reporter, or removes it if the new call finds no DSN.\n *\n * @param client - The monitoring SDK (for example the Sentry namespace) or an adapter for one.\n *\n * @param options - Config location and keys, and extra init options.\n *\n * @returns Whether monitoring was enabled.\n *\n * @example\n * ```ts\n * import * as Sentry from '@sentry/react';\n * import { setupErrorMonitoring } from '@genesislcap/foundation-utils';\n *\n * setupErrorMonitoring(Sentry);\n * ```\n *\n * @public\n */\n",
19345
- "excerptTokens": [
19346
- {
19347
- "kind": "Content",
19348
- "text": "export declare function setupErrorMonitoring(client: "
19349
- },
19350
- {
19351
- "kind": "Reference",
19352
- "text": "ErrorMonitoringClient",
19353
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringClient:interface"
19354
- },
19355
- {
19356
- "kind": "Content",
19357
- "text": ", options?: "
19358
- },
19359
- {
19360
- "kind": "Reference",
19361
- "text": "ErrorMonitoringOptions",
19362
- "canonicalReference": "@genesislcap/foundation-utils!ErrorMonitoringOptions:interface"
19363
- },
19364
- {
19365
- "kind": "Content",
19366
- "text": "): "
19367
- },
19368
- {
19369
- "kind": "Reference",
19370
- "text": "Promise",
19371
- "canonicalReference": "!Promise:interface"
19372
- },
19373
- {
19374
- "kind": "Content",
19375
- "text": "<boolean>"
19376
- },
19377
- {
19378
- "kind": "Content",
19379
- "text": ";"
19380
- }
19381
- ],
19382
- "fileUrlPath": "src/error-monitoring/error-monitoring.ts",
19383
- "returnTypeTokenRange": {
19384
- "startIndex": 5,
19385
- "endIndex": 7
19386
- },
19387
- "releaseTag": "Public",
19388
- "overloadIndex": 1,
19389
- "parameters": [
19390
- {
19391
- "parameterName": "client",
19392
- "parameterTypeTokenRange": {
19393
- "startIndex": 1,
19394
- "endIndex": 2
19395
- },
19396
- "isOptional": false
19397
- },
19398
- {
19399
- "parameterName": "options",
19400
- "parameterTypeTokenRange": {
19401
- "startIndex": 3,
19402
- "endIndex": 4
19403
- },
19404
- "isOptional": true
19405
- }
19406
- ],
19407
- "name": "setupErrorMonitoring"
19408
- },
19409
18013
  {
19410
18014
  "kind": "Variable",
19411
18015
  "canonicalReference": "@genesislcap/foundation-utils!SHORTCUT_BLOCKED_DEFAULT_MESSAGE:var",