@mermanjs/node 0.8.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE-APACHE +201 -0
  3. package/LICENSE-MIT +21 -0
  4. package/README.md +11 -0
  5. package/THIRD_PARTY_LICENSES/beautiful-mermaid/LICENSE +21 -0
  6. package/THIRD_PARTY_LICENSES/cose-base-v1/LICENSE +21 -0
  7. package/THIRD_PARTY_LICENSES/cose-base-v2/LICENSE +21 -0
  8. package/THIRD_PARTY_LICENSES/cytoscape/LICENSE +19 -0
  9. package/THIRD_PARTY_LICENSES/cytoscape-cose-bilkent/LICENSE +21 -0
  10. package/THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE +19 -0
  11. package/THIRD_PARTY_LICENSES/d3-shape/LICENSE +13 -0
  12. package/THIRD_PARTY_LICENSES/dagre/LICENSE +19 -0
  13. package/THIRD_PARTY_LICENSES/dompurify/LICENSE +202 -0
  14. package/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +264 -0
  15. package/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +264 -0
  16. package/THIRD_PARTY_LICENSES/fmin/LICENSE +27 -0
  17. package/THIRD_PARTY_LICENSES/graphlib/LICENSE +19 -0
  18. package/THIRD_PARTY_LICENSES/katex-fonts/FONT_NOTICE.txt +12 -0
  19. package/THIRD_PARTY_LICENSES/katex-fonts/OFL.txt +85 -0
  20. package/THIRD_PARTY_LICENSES/layout-base-v1/LICENSE +21 -0
  21. package/THIRD_PARTY_LICENSES/layout-base-v2/LICENSE +21 -0
  22. package/THIRD_PARTY_LICENSES/mermaid/LICENSE +21 -0
  23. package/THIRD_PARTY_LICENSES/mermaid-ascii/LICENSE +21 -0
  24. package/THIRD_PARTY_LICENSES/mermaid-rs-renderer/LICENSE +21 -0
  25. package/THIRD_PARTY_LICENSES/ratex/LICENSE +27 -0
  26. package/THIRD_PARTY_LICENSES/ratex/THIRD_PARTY_NOTICES.txt +19 -0
  27. package/THIRD_PARTY_LICENSES/rough-rs/LICENSE +21 -0
  28. package/THIRD_PARTY_LICENSES/roughjs/LICENSE +21 -0
  29. package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +5562 -0
  30. package/THIRD_PARTY_LICENSES/sanitize-url/LICENSE +21 -0
  31. package/THIRD_PARTY_LICENSES/venn-js/LICENSE +22 -0
  32. package/THIRD_PARTY_LICENSES/wasm-minimal-protocol/LICENSE +24 -0
  33. package/THIRD_PARTY_LICENSES/zenuml-core/LICENSE +21 -0
  34. package/THIRD_PARTY_NOTICES.md +524 -0
  35. package/dist/bounded-executor.mjs +132 -0
  36. package/dist/candidates/native.mjs +51 -0
  37. package/dist/candidates/wrap-engine.mjs +28 -0
  38. package/dist/engine.mjs +1255 -0
  39. package/dist/errors.mjs +1199 -0
  40. package/dist/generated/binding-contract.mjs +873 -0
  41. package/dist/generated/capability-surface.mjs +66 -0
  42. package/dist/generated/node-wire-contract.json +122 -0
  43. package/dist/index.d.ts +239 -0
  44. package/dist/index.mjs +22 -0
  45. package/dist/native-loader.mjs +112 -0
  46. package/dist/transport-contract.mjs +87 -0
  47. package/package.json +50 -0
@@ -0,0 +1,873 @@
1
+ // @generated by `cargo run -p xtask -- gen-binding-contract`.
2
+ // Sources: typed registries in merman-bindings-core. Do not edit directly.
3
+
4
+ export const RUNTIME_CATALOG_SCHEMA_VERSION = 1;
5
+ export const BINDING_OPTIONS_SCHEMA_VERSION = 2;
6
+ export const TEXT_MEASUREMENT_PROTOCOL_VERSION = 1;
7
+
8
+ export const RUNTIME_CATALOG_IDENTIFIER_PATTERN = "^[a-z0-9][a-z0-9-]*$";
9
+ export const RUNTIME_CATALOG_FIELD_IDENTIFIER_PATTERN = "^[a-z][a-z0-9_-]*$";
10
+ export const RUNTIME_CATALOG_MAX_SAFE_INTEGER = 9007199254740991;
11
+
12
+ export const CAPABILITY_SPECS = [
13
+ {
14
+ "id": "analysis",
15
+ "implication_ids": []
16
+ },
17
+ {
18
+ "id": "ascii",
19
+ "implication_ids": []
20
+ },
21
+ {
22
+ "id": "editor",
23
+ "implication_ids": []
24
+ },
25
+ {
26
+ "id": "icons",
27
+ "implication_ids": []
28
+ },
29
+ {
30
+ "id": "jpeg",
31
+ "implication_ids": []
32
+ },
33
+ {
34
+ "id": "layout-cytoscape",
35
+ "implication_ids": [
36
+ "svg"
37
+ ]
38
+ },
39
+ {
40
+ "id": "layout-elk",
41
+ "implication_ids": [
42
+ "svg"
43
+ ]
44
+ },
45
+ {
46
+ "id": "markdown",
47
+ "implication_ids": []
48
+ },
49
+ {
50
+ "id": "math",
51
+ "implication_ids": [
52
+ "svg"
53
+ ]
54
+ },
55
+ {
56
+ "id": "network-icons",
57
+ "implication_ids": []
58
+ },
59
+ {
60
+ "id": "parallel-markdown",
61
+ "implication_ids": []
62
+ },
63
+ {
64
+ "id": "pdf",
65
+ "implication_ids": []
66
+ },
67
+ {
68
+ "id": "png",
69
+ "implication_ids": []
70
+ },
71
+ {
72
+ "id": "shell-completions",
73
+ "implication_ids": []
74
+ },
75
+ {
76
+ "id": "svg",
77
+ "implication_ids": []
78
+ },
79
+ {
80
+ "id": "system-clock",
81
+ "implication_ids": []
82
+ },
83
+ {
84
+ "id": "system-random",
85
+ "implication_ids": []
86
+ },
87
+ {
88
+ "id": "system-timezone",
89
+ "implication_ids": []
90
+ },
91
+ {
92
+ "id": "system-timing",
93
+ "implication_ids": []
94
+ }
95
+ ];
96
+
97
+ export const BINDING_OPERATION_METADATA_CONTRACT = {
98
+ "contract_schema_version": 1,
99
+ "metadata_schema_version": 1,
100
+ "fields": [
101
+ {
102
+ "name": "version",
103
+ "json_type": "unsigned-integer",
104
+ "required": true,
105
+ "integer_width_bits": 32,
106
+ "open_value": false
107
+ },
108
+ {
109
+ "name": "operation_id",
110
+ "json_type": "string",
111
+ "required": true,
112
+ "integer_width_bits": null,
113
+ "open_value": true
114
+ },
115
+ {
116
+ "name": "media_type",
117
+ "json_type": "string",
118
+ "required": true,
119
+ "integer_width_bits": null,
120
+ "open_value": true
121
+ },
122
+ {
123
+ "name": "runtime_policy",
124
+ "json_type": "string",
125
+ "required": true,
126
+ "integer_width_bits": null,
127
+ "open_value": true
128
+ },
129
+ {
130
+ "name": "byte_length",
131
+ "json_type": "unsigned-integer",
132
+ "required": true,
133
+ "integer_width_bits": 64,
134
+ "open_value": false
135
+ },
136
+ {
137
+ "name": "output_plan",
138
+ "json_type": "object",
139
+ "required": false,
140
+ "integer_width_bits": null,
141
+ "open_value": true
142
+ }
143
+ ],
144
+ "output_plans": [
145
+ {
146
+ "kind": "raster",
147
+ "fields": [
148
+ {
149
+ "name": "kind",
150
+ "json_type": "string",
151
+ "required": true,
152
+ "integer_width_bits": null,
153
+ "open_value": false
154
+ },
155
+ {
156
+ "name": "requested_width_px",
157
+ "json_type": "number",
158
+ "required": true,
159
+ "integer_width_bits": null,
160
+ "open_value": false
161
+ },
162
+ {
163
+ "name": "requested_height_px",
164
+ "json_type": "number",
165
+ "required": true,
166
+ "integer_width_bits": null,
167
+ "open_value": false
168
+ },
169
+ {
170
+ "name": "width_px",
171
+ "json_type": "unsigned-integer",
172
+ "required": true,
173
+ "integer_width_bits": 32,
174
+ "open_value": false
175
+ },
176
+ {
177
+ "name": "height_px",
178
+ "json_type": "unsigned-integer",
179
+ "required": true,
180
+ "integer_width_bits": 32,
181
+ "open_value": false
182
+ },
183
+ {
184
+ "name": "requested_scale",
185
+ "json_type": "number",
186
+ "required": true,
187
+ "integer_width_bits": null,
188
+ "open_value": false
189
+ },
190
+ {
191
+ "name": "effective_scale",
192
+ "json_type": "number",
193
+ "required": true,
194
+ "integer_width_bits": null,
195
+ "open_value": false
196
+ },
197
+ {
198
+ "name": "limited",
199
+ "json_type": "boolean",
200
+ "required": true,
201
+ "integer_width_bits": null,
202
+ "open_value": false
203
+ }
204
+ ]
205
+ },
206
+ {
207
+ "kind": "pdf-filter-images",
208
+ "fields": [
209
+ {
210
+ "name": "kind",
211
+ "json_type": "string",
212
+ "required": true,
213
+ "integer_width_bits": null,
214
+ "open_value": false
215
+ },
216
+ {
217
+ "name": "filtered_groups",
218
+ "json_type": "unsigned-integer",
219
+ "required": true,
220
+ "integer_width_bits": 64,
221
+ "open_value": false
222
+ },
223
+ {
224
+ "name": "requested_scale",
225
+ "json_type": "number",
226
+ "required": true,
227
+ "integer_width_bits": null,
228
+ "open_value": false
229
+ },
230
+ {
231
+ "name": "effective_scale",
232
+ "json_type": "number",
233
+ "required": true,
234
+ "integer_width_bits": null,
235
+ "open_value": false
236
+ },
237
+ {
238
+ "name": "requested_image_pixels",
239
+ "json_type": "unsigned-integer",
240
+ "required": true,
241
+ "integer_width_bits": 64,
242
+ "open_value": false
243
+ },
244
+ {
245
+ "name": "effective_image_pixels",
246
+ "json_type": "unsigned-integer",
247
+ "required": true,
248
+ "integer_width_bits": 64,
249
+ "open_value": false
250
+ },
251
+ {
252
+ "name": "limited",
253
+ "json_type": "boolean",
254
+ "required": true,
255
+ "integer_width_bits": null,
256
+ "open_value": false
257
+ }
258
+ ]
259
+ }
260
+ ],
261
+ "additional_fields_policy": "preserve",
262
+ "unknown_output_plan_policy": "preserve",
263
+ "original_json_policy": "preserve-exact-bytes"
264
+ };
265
+
266
+ export const BINDING_OPERATION_EXPECTATIONS = [
267
+ {
268
+ "operation_id": "analysis-facts-json",
269
+ "output_id": null,
270
+ "media_type": "application/json",
271
+ "metadata_schema_version": 1,
272
+ "requires_uri": false,
273
+ "availability_capability_id": "analysis",
274
+ "compiled_prerequisite_ids": [],
275
+ "unavailable": {
276
+ "status_code": 7,
277
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
278
+ "error_kind": "missing-capability",
279
+ "capability_id": "analysis"
280
+ }
281
+ },
282
+ {
283
+ "operation_id": "analysis-json",
284
+ "output_id": null,
285
+ "media_type": "application/json",
286
+ "metadata_schema_version": 1,
287
+ "requires_uri": false,
288
+ "availability_capability_id": "analysis",
289
+ "compiled_prerequisite_ids": [],
290
+ "unavailable": {
291
+ "status_code": 7,
292
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
293
+ "error_kind": "missing-capability",
294
+ "capability_id": "analysis"
295
+ }
296
+ },
297
+ {
298
+ "operation_id": "ascii",
299
+ "output_id": "ascii",
300
+ "media_type": "text/plain; charset=utf-8",
301
+ "metadata_schema_version": 1,
302
+ "requires_uri": false,
303
+ "availability_capability_id": "ascii",
304
+ "compiled_prerequisite_ids": [],
305
+ "unavailable": {
306
+ "status_code": 7,
307
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
308
+ "error_kind": "missing-capability",
309
+ "capability_id": "ascii"
310
+ }
311
+ },
312
+ {
313
+ "operation_id": "document-analysis-facts-json",
314
+ "output_id": null,
315
+ "media_type": "application/json",
316
+ "metadata_schema_version": 1,
317
+ "requires_uri": true,
318
+ "availability_capability_id": "analysis",
319
+ "compiled_prerequisite_ids": [],
320
+ "unavailable": {
321
+ "status_code": 7,
322
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
323
+ "error_kind": "missing-capability",
324
+ "capability_id": "analysis"
325
+ }
326
+ },
327
+ {
328
+ "operation_id": "document-analysis-json",
329
+ "output_id": null,
330
+ "media_type": "application/json",
331
+ "metadata_schema_version": 1,
332
+ "requires_uri": true,
333
+ "availability_capability_id": "analysis",
334
+ "compiled_prerequisite_ids": [],
335
+ "unavailable": {
336
+ "status_code": 7,
337
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
338
+ "error_kind": "missing-capability",
339
+ "capability_id": "analysis"
340
+ }
341
+ },
342
+ {
343
+ "operation_id": "jpeg",
344
+ "output_id": "jpeg",
345
+ "media_type": "image/jpeg",
346
+ "metadata_schema_version": 1,
347
+ "requires_uri": false,
348
+ "availability_capability_id": "jpeg",
349
+ "compiled_prerequisite_ids": [
350
+ "svg"
351
+ ],
352
+ "unavailable": {
353
+ "status_code": 7,
354
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
355
+ "error_kind": "missing-capability",
356
+ "capability_id": "jpeg"
357
+ }
358
+ },
359
+ {
360
+ "operation_id": "layout-json",
361
+ "output_id": null,
362
+ "media_type": "application/json",
363
+ "metadata_schema_version": 1,
364
+ "requires_uri": false,
365
+ "availability_capability_id": "svg",
366
+ "compiled_prerequisite_ids": [],
367
+ "unavailable": {
368
+ "status_code": 7,
369
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
370
+ "error_kind": "missing-capability",
371
+ "capability_id": "svg"
372
+ }
373
+ },
374
+ {
375
+ "operation_id": "pdf",
376
+ "output_id": "pdf",
377
+ "media_type": "application/pdf",
378
+ "metadata_schema_version": 1,
379
+ "requires_uri": false,
380
+ "availability_capability_id": "pdf",
381
+ "compiled_prerequisite_ids": [
382
+ "svg"
383
+ ],
384
+ "unavailable": {
385
+ "status_code": 7,
386
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
387
+ "error_kind": "missing-capability",
388
+ "capability_id": "pdf"
389
+ }
390
+ },
391
+ {
392
+ "operation_id": "png",
393
+ "output_id": "png",
394
+ "media_type": "image/png",
395
+ "metadata_schema_version": 1,
396
+ "requires_uri": false,
397
+ "availability_capability_id": "png",
398
+ "compiled_prerequisite_ids": [
399
+ "svg"
400
+ ],
401
+ "unavailable": {
402
+ "status_code": 7,
403
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
404
+ "error_kind": "missing-capability",
405
+ "capability_id": "png"
406
+ }
407
+ },
408
+ {
409
+ "operation_id": "semantic-json",
410
+ "output_id": null,
411
+ "media_type": "application/json",
412
+ "metadata_schema_version": 1,
413
+ "requires_uri": false,
414
+ "availability_capability_id": null,
415
+ "compiled_prerequisite_ids": [],
416
+ "unavailable": null
417
+ },
418
+ {
419
+ "operation_id": "svg",
420
+ "output_id": "svg",
421
+ "media_type": "image/svg+xml",
422
+ "metadata_schema_version": 1,
423
+ "requires_uri": false,
424
+ "availability_capability_id": "svg",
425
+ "compiled_prerequisite_ids": [],
426
+ "unavailable": {
427
+ "status_code": 7,
428
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
429
+ "error_kind": "missing-capability",
430
+ "capability_id": "svg"
431
+ }
432
+ },
433
+ {
434
+ "operation_id": "svg-plan-json",
435
+ "output_id": null,
436
+ "media_type": "application/json",
437
+ "metadata_schema_version": 1,
438
+ "requires_uri": false,
439
+ "availability_capability_id": "svg",
440
+ "compiled_prerequisite_ids": [],
441
+ "unavailable": {
442
+ "status_code": 7,
443
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
444
+ "error_kind": "missing-capability",
445
+ "capability_id": "svg"
446
+ }
447
+ },
448
+ {
449
+ "operation_id": "validation-json",
450
+ "output_id": null,
451
+ "media_type": "application/json",
452
+ "metadata_schema_version": 1,
453
+ "requires_uri": false,
454
+ "availability_capability_id": "analysis",
455
+ "compiled_prerequisite_ids": [],
456
+ "unavailable": {
457
+ "status_code": 7,
458
+ "status_name": "MERMAN_UNSUPPORTED_OPERATION",
459
+ "error_kind": "missing-capability",
460
+ "capability_id": "analysis"
461
+ }
462
+ }
463
+ ];
464
+
465
+ export const BINDING_PAYLOAD_SCHEMAS = [
466
+ {
467
+ "id": "binding-result",
468
+ "version": 1
469
+ },
470
+ {
471
+ "id": "operation-metadata",
472
+ "version": 1
473
+ }
474
+ ];
475
+
476
+ export const METADATA_SPECS = [
477
+ {
478
+ "id": "ascii-capabilities",
479
+ "required_capability_id": "ascii"
480
+ },
481
+ {
482
+ "id": "diagram-family-capabilities",
483
+ "required_capability_id": null
484
+ },
485
+ {
486
+ "id": "lint-rule-catalog",
487
+ "required_capability_id": "analysis"
488
+ },
489
+ {
490
+ "id": "presentation-catalog",
491
+ "required_capability_id": null
492
+ },
493
+ {
494
+ "id": "supported-diagrams",
495
+ "required_capability_id": null
496
+ },
497
+ {
498
+ "id": "supported-themes",
499
+ "required_capability_id": null
500
+ }
501
+ ];
502
+
503
+ export const BINDING_OPTION_GROUP_SPECS = [
504
+ {
505
+ "id": "ascii",
506
+ "always_available": false,
507
+ "any_capability_ids": [
508
+ "ascii"
509
+ ],
510
+ "requires_svg_pipeline": false
511
+ },
512
+ {
513
+ "id": "environment",
514
+ "always_available": false,
515
+ "any_capability_ids": [],
516
+ "requires_svg_pipeline": true
517
+ },
518
+ {
519
+ "id": "fixed_local_offset_minutes",
520
+ "always_available": true,
521
+ "any_capability_ids": [],
522
+ "requires_svg_pipeline": false
523
+ },
524
+ {
525
+ "id": "fixed_today",
526
+ "always_available": true,
527
+ "any_capability_ids": [],
528
+ "requires_svg_pipeline": false
529
+ },
530
+ {
531
+ "id": "jpeg",
532
+ "always_available": false,
533
+ "any_capability_ids": [
534
+ "jpeg"
535
+ ],
536
+ "requires_svg_pipeline": false
537
+ },
538
+ {
539
+ "id": "layout",
540
+ "always_available": false,
541
+ "any_capability_ids": [],
542
+ "requires_svg_pipeline": true
543
+ },
544
+ {
545
+ "id": "lint",
546
+ "always_available": false,
547
+ "any_capability_ids": [
548
+ "analysis"
549
+ ],
550
+ "requires_svg_pipeline": false
551
+ },
552
+ {
553
+ "id": "parse",
554
+ "always_available": true,
555
+ "any_capability_ids": [],
556
+ "requires_svg_pipeline": false
557
+ },
558
+ {
559
+ "id": "pdf",
560
+ "always_available": false,
561
+ "any_capability_ids": [
562
+ "pdf"
563
+ ],
564
+ "requires_svg_pipeline": false
565
+ },
566
+ {
567
+ "id": "presentation",
568
+ "always_available": false,
569
+ "any_capability_ids": [],
570
+ "requires_svg_pipeline": true
571
+ },
572
+ {
573
+ "id": "raster",
574
+ "always_available": false,
575
+ "any_capability_ids": [
576
+ "jpeg",
577
+ "png"
578
+ ],
579
+ "requires_svg_pipeline": false
580
+ },
581
+ {
582
+ "id": "resources",
583
+ "always_available": true,
584
+ "any_capability_ids": [],
585
+ "requires_svg_pipeline": false
586
+ },
587
+ {
588
+ "id": "runtime_policy",
589
+ "always_available": true,
590
+ "any_capability_ids": [],
591
+ "requires_svg_pipeline": false
592
+ },
593
+ {
594
+ "id": "site_config",
595
+ "always_available": true,
596
+ "any_capability_ids": [],
597
+ "requires_svg_pipeline": false
598
+ },
599
+ {
600
+ "id": "svg",
601
+ "always_available": false,
602
+ "any_capability_ids": [],
603
+ "requires_svg_pipeline": true
604
+ },
605
+ {
606
+ "id": "version",
607
+ "always_available": true,
608
+ "any_capability_ids": [],
609
+ "requires_svg_pipeline": false
610
+ }
611
+ ];
612
+
613
+ export const TEXT_MEASUREMENT_PROVIDER_SPECS = [
614
+ {
615
+ "id": "host-callback",
616
+ "source": "constructor-service",
617
+ "constructor_service_id": "host-text-measurement"
618
+ },
619
+ {
620
+ "id": "vendored",
621
+ "source": "svg-pipeline",
622
+ "constructor_service_id": null
623
+ }
624
+ ];
625
+
626
+ export const TEXT_MEASUREMENT_PROVIDER_IDS = [
627
+ "host-callback",
628
+ "vendored"
629
+ ];
630
+ export const VENDORED_TEXT_MEASUREMENT_PROVIDER_ID = "vendored";
631
+ export const HOST_CALLBACK_TEXT_MEASUREMENT_PROVIDER_ID = "host-callback";
632
+
633
+ export const CONSTRUCTOR_SERVICE_SPECS = [
634
+ {
635
+ "id": "host-text-measurement",
636
+ "requires_svg_pipeline": true,
637
+ "provided_text_measurement_provider_ids": [
638
+ "host-callback"
639
+ ],
640
+ "resource_limits": []
641
+ },
642
+ {
643
+ "id": "icon-registry",
644
+ "requires_svg_pipeline": true,
645
+ "provided_text_measurement_provider_ids": [],
646
+ "resource_limits": [
647
+ {
648
+ "id": "max_icon_body_bytes",
649
+ "phase": "icon_registry_xml",
650
+ "unit": "bytes",
651
+ "description": "Maximum decoded SVG fragment bytes retained for one direct icon",
652
+ "value": 262144
653
+ },
654
+ {
655
+ "id": "max_icon_coordinate_magnitude",
656
+ "phase": "icon_registry_geometry",
657
+ "unit": "coordinate_units",
658
+ "description": "Maximum absolute view-box coordinate or positive dimension",
659
+ "value": 1000000
660
+ },
661
+ {
662
+ "id": "max_icon_id_rewrite_edits_per_body",
663
+ "phase": "icon_registry_xml",
664
+ "unit": "edits",
665
+ "description": "Maximum XML ID declaration and reference rewrites planned for one icon body",
666
+ "value": 16384
667
+ },
668
+ {
669
+ "id": "max_icon_pack_bytes",
670
+ "phase": "icon_registry_input",
671
+ "unit": "bytes",
672
+ "description": "Maximum encoded bytes admitted from one IconifyJSON pack",
673
+ "value": 16777216
674
+ },
675
+ {
676
+ "id": "max_icon_registry_alias_depth",
677
+ "phase": "icon_registry_alias",
678
+ "unit": "levels",
679
+ "description": "Maximum resolved alias parent-chain depth",
680
+ "value": 64
681
+ },
682
+ {
683
+ "id": "max_icon_registry_alias_edges",
684
+ "phase": "icon_registry_alias",
685
+ "unit": "edges",
686
+ "description": "Maximum parent edges inspected by alias resolution",
687
+ "value": 32768
688
+ },
689
+ {
690
+ "id": "max_icon_registry_alias_entries",
691
+ "phase": "icon_registry_alias",
692
+ "unit": "entries",
693
+ "description": "Maximum alias entries admitted by one registry",
694
+ "value": 32768
695
+ },
696
+ {
697
+ "id": "max_icon_registry_alias_fanout",
698
+ "phase": "icon_registry_alias",
699
+ "unit": "aliases",
700
+ "description": "Maximum aliases that may directly reference one parent",
701
+ "value": 1024
702
+ },
703
+ {
704
+ "id": "max_icon_registry_build_work_units",
705
+ "phase": "icon_registry_build",
706
+ "unit": "work_units",
707
+ "description": "Maximum deterministic parse, XML, and alias-resolution work",
708
+ "value": 4000000
709
+ },
710
+ {
711
+ "id": "max_icon_registry_entries",
712
+ "phase": "icon_registry_alias",
713
+ "unit": "entries",
714
+ "description": "Maximum resolved direct icon and alias entries published",
715
+ "value": 65536
716
+ },
717
+ {
718
+ "id": "max_icon_registry_icon_entries",
719
+ "phase": "icon_registry_parse",
720
+ "unit": "entries",
721
+ "description": "Maximum direct icon entries admitted by one registry",
722
+ "value": 32768
723
+ },
724
+ {
725
+ "id": "max_icon_registry_input_bytes",
726
+ "phase": "icon_registry_input",
727
+ "unit": "bytes",
728
+ "description": "Maximum aggregate encoded bytes admitted by one registry",
729
+ "value": 33554432
730
+ },
731
+ {
732
+ "id": "max_icon_registry_json_depth",
733
+ "phase": "icon_registry_parse",
734
+ "unit": "levels",
735
+ "description": "Maximum JSON nesting depth inspected while ingesting packs",
736
+ "value": 32
737
+ },
738
+ {
739
+ "id": "max_icon_registry_json_key_bytes",
740
+ "phase": "icon_registry_parse",
741
+ "unit": "bytes",
742
+ "description": "Maximum decoded bytes in any IconifyJSON object key, including unknown extensions",
743
+ "value": 1024
744
+ },
745
+ {
746
+ "id": "max_icon_registry_json_members",
747
+ "phase": "icon_registry_parse",
748
+ "unit": "members",
749
+ "description": "Maximum aggregate JSON map members and sequence items inspected",
750
+ "value": 1000000
751
+ },
752
+ {
753
+ "id": "max_icon_registry_name_bytes",
754
+ "phase": "icon_registry_parse",
755
+ "unit": "bytes",
756
+ "description": "Maximum admitted Iconify icon or alias name bytes",
757
+ "value": 128
758
+ },
759
+ {
760
+ "id": "max_icon_registry_packs",
761
+ "phase": "icon_registry_input",
762
+ "unit": "packs",
763
+ "description": "Maximum IconifyJSON packs admitted by one immutable registry",
764
+ "value": 16
765
+ },
766
+ {
767
+ "id": "max_icon_registry_prefix_bytes",
768
+ "phase": "icon_registry_parse",
769
+ "unit": "bytes",
770
+ "description": "Maximum admitted Iconify prefix or registration-name bytes",
771
+ "value": 64
772
+ },
773
+ {
774
+ "id": "max_icon_registry_retained_body_bytes",
775
+ "phase": "icon_registry_retain",
776
+ "unit": "bytes",
777
+ "description": "Maximum aggregate decoded direct-icon SVG body bytes retained",
778
+ "value": 33554432
779
+ },
780
+ {
781
+ "id": "max_icon_registry_retained_xml_plan_bytes",
782
+ "phase": "icon_registry_retain",
783
+ "unit": "bytes",
784
+ "description": "Maximum aggregate retained XML rewrite and defs-plan bytes",
785
+ "value": 16777216
786
+ },
787
+ {
788
+ "id": "max_icon_xml_depth_per_body",
789
+ "phase": "icon_registry_xml",
790
+ "unit": "levels",
791
+ "description": "Maximum XML element nesting depth in one direct icon fragment",
792
+ "value": 32
793
+ },
794
+ {
795
+ "id": "max_icon_xml_elements_per_body",
796
+ "phase": "icon_registry_xml",
797
+ "unit": "elements",
798
+ "description": "Maximum XML elements in one direct icon SVG fragment",
799
+ "value": 4096
800
+ }
801
+ ]
802
+ }
803
+ ];
804
+ export const BINDING_TRANSPORT_EXPOSURE_SPECS = [
805
+ {
806
+ "id": "android-jni",
807
+ "payload_schema_ids": [
808
+ "binding-result",
809
+ "operation-metadata"
810
+ ],
811
+ "constructor_service_candidate_ids": [
812
+ "host-text-measurement",
813
+ "icon-registry"
814
+ ]
815
+ },
816
+ {
817
+ "id": "native-c",
818
+ "payload_schema_ids": [
819
+ "binding-result",
820
+ "operation-metadata"
821
+ ],
822
+ "constructor_service_candidate_ids": [
823
+ "host-text-measurement",
824
+ "icon-registry"
825
+ ]
826
+ },
827
+ {
828
+ "id": "node",
829
+ "payload_schema_ids": [
830
+ "binding-result",
831
+ "operation-metadata"
832
+ ],
833
+ "constructor_service_candidate_ids": []
834
+ },
835
+ {
836
+ "id": "rust",
837
+ "payload_schema_ids": [
838
+ "binding-result",
839
+ "operation-metadata"
840
+ ],
841
+ "constructor_service_candidate_ids": [
842
+ "host-text-measurement",
843
+ "icon-registry"
844
+ ]
845
+ },
846
+ {
847
+ "id": "typst",
848
+ "payload_schema_ids": [],
849
+ "constructor_service_candidate_ids": []
850
+ },
851
+ {
852
+ "id": "uniffi",
853
+ "payload_schema_ids": [
854
+ "binding-result",
855
+ "operation-metadata"
856
+ ],
857
+ "constructor_service_candidate_ids": [
858
+ "host-text-measurement",
859
+ "icon-registry"
860
+ ]
861
+ },
862
+ {
863
+ "id": "web",
864
+ "payload_schema_ids": [
865
+ "binding-result"
866
+ ],
867
+ "constructor_service_candidate_ids": [
868
+ "host-text-measurement"
869
+ ]
870
+ }
871
+ ];
872
+ export const HOST_TEXT_MEASUREMENT_CONSTRUCTOR_SERVICE_ID = "host-text-measurement";
873
+ export const ICON_REGISTRY_CONSTRUCTOR_SERVICE_ID = "icon-registry";