@xberg-io/crawlberg-wasm 1.9.0 → 1.10.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.
@@ -48,6 +48,17 @@ class WasmActionResult {
48
48
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
49
49
  }
50
50
  }
51
+ /**
52
+ * Return an independent handle for an ownership-taking API.
53
+ *
54
+ * Use `copyForTransfer()` for each class value placed in an array when the original
55
+ * handle must remain usable.
56
+ * @returns {WasmActionResult}
57
+ */
58
+ copyForTransfer() {
59
+ const ret = wasm.wasmactionresult_copyForTransfer(this.__wbg_ptr);
60
+ return WasmActionResult.__wrap(ret);
61
+ }
51
62
  /**
52
63
  * @returns {any | undefined}
53
64
  */
@@ -168,6 +179,17 @@ class WasmArticleMetadata {
168
179
  }
169
180
  return v1;
170
181
  }
182
+ /**
183
+ * Return an independent handle for an ownership-taking API.
184
+ *
185
+ * Use `copyForTransfer()` for each class value placed in an array when the original
186
+ * handle must remain usable.
187
+ * @returns {WasmArticleMetadata}
188
+ */
189
+ copyForTransfer() {
190
+ const ret = wasm.wasmarticlemetadata_copyForTransfer(this.__wbg_ptr);
191
+ return WasmArticleMetadata.__wrap(ret);
192
+ }
171
193
  /**
172
194
  * @returns {WasmArticleMetadata}
173
195
  */
@@ -491,6 +513,20 @@ class WasmBatchCrawlResult {
491
513
  const ptr = this.__destroy_into_raw();
492
514
  wasm.__wbg_wasmbatchcrawlresult_free(ptr, 0);
493
515
  }
516
+ clearResult() {
517
+ wasm.wasmbatchcrawlresult_clearResult(this.__wbg_ptr);
518
+ }
519
+ /**
520
+ * Return an independent handle for an ownership-taking API.
521
+ *
522
+ * Use `copyForTransfer()` for each class value placed in an array when the original
523
+ * handle must remain usable.
524
+ * @returns {WasmBatchCrawlResult}
525
+ */
526
+ copyForTransfer() {
527
+ const ret = wasm.wasmbatchcrawlresult_copyForTransfer(this.__wbg_ptr);
528
+ return WasmBatchCrawlResult.__wrap(ret);
529
+ }
494
530
  /**
495
531
  * @returns {WasmBatchCrawlResult}
496
532
  */
@@ -511,6 +547,11 @@ class WasmBatchCrawlResult {
511
547
  return v1;
512
548
  }
513
549
  /**
550
+ * Takes ownership of `result`.
551
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
552
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
553
+ * keep a handle you already hold, build with `default()` and assign the property instead:
554
+ * the generated setter borrows and leaves your handle alive.
514
555
  * @param {string | null} [url]
515
556
  * @param {WasmCrawlResult | null} [result]
516
557
  * @param {string | null} [error]
@@ -531,6 +572,10 @@ class WasmBatchCrawlResult {
531
572
  return this;
532
573
  }
533
574
  /**
575
+ * Returns a detached copy of `result`.
576
+ *
577
+ * Changes to the returned value do not update this object. To update `result`,
578
+ * read it, modify the copy, then assign the copy back to `result`.
534
579
  * @returns {WasmCrawlResult | undefined}
535
580
  */
536
581
  get result() {
@@ -546,15 +591,11 @@ class WasmBatchCrawlResult {
546
591
  wasm.wasmbatchcrawlresult_set_error(this.__wbg_ptr, ptr0, len0);
547
592
  }
548
593
  /**
549
- * @param {WasmCrawlResult | null} [value]
594
+ * @param {WasmCrawlResult} value
550
595
  */
551
596
  set result(value) {
552
- let ptr0 = 0;
553
- if (!isLikeNone(value)) {
554
- _assertClass(value, WasmCrawlResult);
555
- ptr0 = value.__destroy_into_raw();
556
- }
557
- wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, ptr0);
597
+ _assertClass(value, WasmCrawlResult);
598
+ wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, value.__wbg_ptr);
558
599
  }
559
600
  /**
560
601
  * @param {string} value
@@ -613,6 +654,17 @@ class WasmBatchCrawlResults {
613
654
  const ret = wasm.wasmbatchcrawlresults_completedCount(this.__wbg_ptr);
614
655
  return ret >>> 0;
615
656
  }
657
+ /**
658
+ * Return an independent handle for an ownership-taking API.
659
+ *
660
+ * Use `copyForTransfer()` for each class value placed in an array when the original
661
+ * handle must remain usable.
662
+ * @returns {WasmBatchCrawlResults}
663
+ */
664
+ copyForTransfer() {
665
+ const ret = wasm.wasmbatchcrawlresults_copyForTransfer(this.__wbg_ptr);
666
+ return WasmBatchCrawlResults.__wrap(ret);
667
+ }
616
668
  /**
617
669
  * @returns {WasmBatchCrawlResults}
618
670
  */
@@ -628,6 +680,9 @@ class WasmBatchCrawlResults {
628
680
  return ret >>> 0;
629
681
  }
630
682
  /**
683
+ * Takes ownership of every element in `results`.
684
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
685
+ * copy each retained element with `copyForTransfer()` before passing the array.
631
686
  * @param {WasmBatchCrawlResult[] | null} [results]
632
687
  * @param {number | null} [totalCount]
633
688
  * @param {number | null} [completedCount]
@@ -642,6 +697,10 @@ class WasmBatchCrawlResults {
642
697
  return this;
643
698
  }
644
699
  /**
700
+ * Returns detached copies of the elements in `results`.
701
+ *
702
+ * Changes to the returned values do not update this object. Modify the copies,
703
+ * then assign the array back to `results`.
645
704
  * @returns {WasmBatchCrawlResult[]}
646
705
  */
647
706
  get results() {
@@ -663,6 +722,9 @@ class WasmBatchCrawlResults {
663
722
  wasm.wasmbatchcrawlresults_set_failedCount(this.__wbg_ptr, value);
664
723
  }
665
724
  /**
725
+ * Takes ownership of every element in `results`.
726
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
727
+ * element with `copyForTransfer()` before passing the array.
666
728
  * @param {WasmBatchCrawlResult[]} value
667
729
  */
668
730
  set results(value) {
@@ -713,6 +775,20 @@ class WasmBatchScrapeResult {
713
775
  const ptr = this.__destroy_into_raw();
714
776
  wasm.__wbg_wasmbatchscraperesult_free(ptr, 0);
715
777
  }
778
+ clearResult() {
779
+ wasm.wasmbatchscraperesult_clearResult(this.__wbg_ptr);
780
+ }
781
+ /**
782
+ * Return an independent handle for an ownership-taking API.
783
+ *
784
+ * Use `copyForTransfer()` for each class value placed in an array when the original
785
+ * handle must remain usable.
786
+ * @returns {WasmBatchScrapeResult}
787
+ */
788
+ copyForTransfer() {
789
+ const ret = wasm.wasmbatchscraperesult_copyForTransfer(this.__wbg_ptr);
790
+ return WasmBatchScrapeResult.__wrap(ret);
791
+ }
716
792
  /**
717
793
  * @returns {WasmBatchScrapeResult}
718
794
  */
@@ -733,6 +809,11 @@ class WasmBatchScrapeResult {
733
809
  return v1;
734
810
  }
735
811
  /**
812
+ * Takes ownership of `result`.
813
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
814
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
815
+ * keep a handle you already hold, build with `default()` and assign the property instead:
816
+ * the generated setter borrows and leaves your handle alive.
736
817
  * @param {string | null} [url]
737
818
  * @param {WasmScrapeResult | null} [result]
738
819
  * @param {string | null} [error]
@@ -753,6 +834,10 @@ class WasmBatchScrapeResult {
753
834
  return this;
754
835
  }
755
836
  /**
837
+ * Returns a detached copy of `result`.
838
+ *
839
+ * Changes to the returned value do not update this object. To update `result`,
840
+ * read it, modify the copy, then assign the copy back to `result`.
756
841
  * @returns {WasmScrapeResult | undefined}
757
842
  */
758
843
  get result() {
@@ -768,15 +853,11 @@ class WasmBatchScrapeResult {
768
853
  wasm.wasmbatchscraperesult_set_error(this.__wbg_ptr, ptr0, len0);
769
854
  }
770
855
  /**
771
- * @param {WasmScrapeResult | null} [value]
856
+ * @param {WasmScrapeResult} value
772
857
  */
773
858
  set result(value) {
774
- let ptr0 = 0;
775
- if (!isLikeNone(value)) {
776
- _assertClass(value, WasmScrapeResult);
777
- ptr0 = value.__destroy_into_raw();
778
- }
779
- wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, ptr0);
859
+ _assertClass(value, WasmScrapeResult);
860
+ wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, value.__wbg_ptr);
780
861
  }
781
862
  /**
782
863
  * @param {string} value
@@ -835,6 +916,17 @@ class WasmBatchScrapeResults {
835
916
  const ret = wasm.wasmbatchscraperesults_completedCount(this.__wbg_ptr);
836
917
  return ret >>> 0;
837
918
  }
919
+ /**
920
+ * Return an independent handle for an ownership-taking API.
921
+ *
922
+ * Use `copyForTransfer()` for each class value placed in an array when the original
923
+ * handle must remain usable.
924
+ * @returns {WasmBatchScrapeResults}
925
+ */
926
+ copyForTransfer() {
927
+ const ret = wasm.wasmbatchscraperesults_copyForTransfer(this.__wbg_ptr);
928
+ return WasmBatchScrapeResults.__wrap(ret);
929
+ }
838
930
  /**
839
931
  * @returns {WasmBatchScrapeResults}
840
932
  */
@@ -850,6 +942,9 @@ class WasmBatchScrapeResults {
850
942
  return ret >>> 0;
851
943
  }
852
944
  /**
945
+ * Takes ownership of every element in `results`.
946
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
947
+ * copy each retained element with `copyForTransfer()` before passing the array.
853
948
  * @param {WasmBatchScrapeResult[] | null} [results]
854
949
  * @param {number | null} [totalCount]
855
950
  * @param {number | null} [completedCount]
@@ -864,6 +959,10 @@ class WasmBatchScrapeResults {
864
959
  return this;
865
960
  }
866
961
  /**
962
+ * Returns detached copies of the elements in `results`.
963
+ *
964
+ * Changes to the returned values do not update this object. Modify the copies,
965
+ * then assign the array back to `results`.
867
966
  * @returns {WasmBatchScrapeResult[]}
868
967
  */
869
968
  get results() {
@@ -885,6 +984,9 @@ class WasmBatchScrapeResults {
885
984
  wasm.wasmbatchscraperesults_set_failedCount(this.__wbg_ptr, value);
886
985
  }
887
986
  /**
987
+ * Takes ownership of every element in `results`.
988
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
989
+ * element with `copyForTransfer()` before passing the array.
888
990
  * @param {WasmBatchScrapeResult[]} value
889
991
  */
890
992
  set results(value) {
@@ -991,6 +1093,20 @@ class WasmBrowserConfig {
991
1093
  }
992
1094
  return v1;
993
1095
  }
1096
+ clearProxy() {
1097
+ wasm.wasmbrowserconfig_clearProxy(this.__wbg_ptr);
1098
+ }
1099
+ /**
1100
+ * Return an independent handle for an ownership-taking API.
1101
+ *
1102
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1103
+ * handle must remain usable.
1104
+ * @returns {WasmBrowserConfig}
1105
+ */
1106
+ copyForTransfer() {
1107
+ const ret = wasm.wasmbrowserconfig_copyForTransfer(this.__wbg_ptr);
1108
+ return WasmBrowserConfig.__wrap(ret);
1109
+ }
994
1110
  /**
995
1111
  * @returns {WasmBrowserConfig}
996
1112
  */
@@ -1045,6 +1161,11 @@ class WasmBrowserConfig {
1045
1161
  }
1046
1162
  }
1047
1163
  /**
1164
+ * Takes ownership of `proxy`.
1165
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1166
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1167
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1168
+ * the generated setter borrows and leaves your handle alive.
1048
1169
  * @param {WasmBrowserMode | null} [mode]
1049
1170
  * @param {WasmBrowserBackend | null} [backend]
1050
1171
  * @param {bigint | null} [timeout]
@@ -1096,6 +1217,10 @@ class WasmBrowserConfig {
1096
1217
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
1097
1218
  }
1098
1219
  /**
1220
+ * Returns a detached copy of `proxy`.
1221
+ *
1222
+ * Changes to the returned value do not update this object. To update `proxy`,
1223
+ * read it, modify the copy, then assign the copy back to `proxy`.
1099
1224
  * @returns {WasmProxyConfig | undefined}
1100
1225
  */
1101
1226
  get proxy() {
@@ -1192,15 +1317,11 @@ class WasmBrowserConfig {
1192
1317
  wasm.wasmbrowserconfig_set_overallTimeout(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
1193
1318
  }
1194
1319
  /**
1195
- * @param {WasmProxyConfig | null} [value]
1320
+ * @param {WasmProxyConfig} value
1196
1321
  */
1197
1322
  set proxy(value) {
1198
- let ptr0 = 0;
1199
- if (!isLikeNone(value)) {
1200
- _assertClass(value, WasmProxyConfig);
1201
- ptr0 = value.__destroy_into_raw();
1202
- }
1203
- wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, ptr0);
1323
+ _assertClass(value, WasmProxyConfig);
1324
+ wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
1204
1325
  }
1205
1326
  /**
1206
1327
  * @param {string | null} [value]
@@ -1310,6 +1431,10 @@ class WasmBrowserExtras {
1310
1431
  wasm.__wbg_wasmbrowserextras_free(ptr, 0);
1311
1432
  }
1312
1433
  /**
1434
+ * Returns detached copies of the elements in `cookies`.
1435
+ *
1436
+ * Changes to the returned values do not update this object. Modify the copies,
1437
+ * then assign the array back to `cookies`.
1313
1438
  * @returns {WasmCookieInfo[]}
1314
1439
  */
1315
1440
  get cookies() {
@@ -1318,6 +1443,17 @@ class WasmBrowserExtras {
1318
1443
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1319
1444
  return v1;
1320
1445
  }
1446
+ /**
1447
+ * Return an independent handle for an ownership-taking API.
1448
+ *
1449
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1450
+ * handle must remain usable.
1451
+ * @returns {WasmBrowserExtras}
1452
+ */
1453
+ copyForTransfer() {
1454
+ const ret = wasm.wasmbrowserextras_copyForTransfer(this.__wbg_ptr);
1455
+ return WasmBrowserExtras.__wrap(ret);
1456
+ }
1321
1457
  /**
1322
1458
  * @returns {WasmBrowserExtras}
1323
1459
  */
@@ -1333,6 +1469,10 @@ class WasmBrowserExtras {
1333
1469
  return ret;
1334
1470
  }
1335
1471
  /**
1472
+ * Returns detached copies of the elements in `networkEvents`.
1473
+ *
1474
+ * Changes to the returned values do not update this object. Modify the copies,
1475
+ * then assign the array back to `networkEvents`.
1336
1476
  * @returns {WasmResponseMeta[]}
1337
1477
  */
1338
1478
  get networkEvents() {
@@ -1342,6 +1482,9 @@ class WasmBrowserExtras {
1342
1482
  return v1;
1343
1483
  }
1344
1484
  /**
1485
+ * Takes ownership of every element in `networkEvents`, `cookies`.
1486
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1487
+ * copy each retained element with `copyForTransfer()` before passing the array.
1345
1488
  * @param {WasmResponseMeta[] | null} [networkEvents]
1346
1489
  * @param {WasmCookieInfo[] | null} [cookies]
1347
1490
  * @param {any | null} [evalResult]
@@ -1357,6 +1500,9 @@ class WasmBrowserExtras {
1357
1500
  return this;
1358
1501
  }
1359
1502
  /**
1503
+ * Takes ownership of every element in `cookies`.
1504
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1505
+ * element with `copyForTransfer()` before passing the array.
1360
1506
  * @param {WasmCookieInfo[]} value
1361
1507
  */
1362
1508
  set cookies(value) {
@@ -1371,6 +1517,9 @@ class WasmBrowserExtras {
1371
1517
  wasm.wasmbrowserextras_set_evalResult(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
1372
1518
  }
1373
1519
  /**
1520
+ * Takes ownership of every element in `networkEvents`.
1521
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1522
+ * element with `copyForTransfer()` before passing the array.
1374
1523
  * @param {WasmResponseMeta[]} value
1375
1524
  */
1376
1525
  set networkEvents(value) {
@@ -1432,6 +1581,17 @@ class WasmCitationReference {
1432
1581
  const ptr = this.__destroy_into_raw();
1433
1582
  wasm.__wbg_wasmcitationreference_free(ptr, 0);
1434
1583
  }
1584
+ /**
1585
+ * Return an independent handle for an ownership-taking API.
1586
+ *
1587
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1588
+ * handle must remain usable.
1589
+ * @returns {WasmCitationReference}
1590
+ */
1591
+ copyForTransfer() {
1592
+ const ret = wasm.wasmcitationreference_copyForTransfer(this.__wbg_ptr);
1593
+ return WasmCitationReference.__wrap(ret);
1594
+ }
1435
1595
  /**
1436
1596
  * @returns {WasmCitationReference}
1437
1597
  */
@@ -1552,6 +1712,17 @@ class WasmCitationResult {
1552
1712
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1553
1713
  }
1554
1714
  }
1715
+ /**
1716
+ * Return an independent handle for an ownership-taking API.
1717
+ *
1718
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1719
+ * handle must remain usable.
1720
+ * @returns {WasmCitationResult}
1721
+ */
1722
+ copyForTransfer() {
1723
+ const ret = wasm.wasmcitationresult_copyForTransfer(this.__wbg_ptr);
1724
+ return WasmCitationResult.__wrap(ret);
1725
+ }
1555
1726
  /**
1556
1727
  * @returns {WasmCitationResult}
1557
1728
  */
@@ -1560,6 +1731,9 @@ class WasmCitationResult {
1560
1731
  return WasmCitationResult.__wrap(ret);
1561
1732
  }
1562
1733
  /**
1734
+ * Takes ownership of every element in `references`.
1735
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1736
+ * copy each retained element with `copyForTransfer()` before passing the array.
1563
1737
  * @param {string | null} [content]
1564
1738
  * @param {WasmCitationReference[] | null} [references]
1565
1739
  */
@@ -1574,6 +1748,10 @@ class WasmCitationResult {
1574
1748
  return this;
1575
1749
  }
1576
1750
  /**
1751
+ * Returns detached copies of the elements in `references`.
1752
+ *
1753
+ * Changes to the returned values do not update this object. Modify the copies,
1754
+ * then assign the array back to `references`.
1577
1755
  * @returns {WasmCitationReference[]}
1578
1756
  */
1579
1757
  get references() {
@@ -1591,6 +1769,9 @@ class WasmCitationResult {
1591
1769
  wasm.wasmcitationresult_set_content(this.__wbg_ptr, ptr0, len0);
1592
1770
  }
1593
1771
  /**
1772
+ * Takes ownership of every element in `references`.
1773
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1774
+ * element with `copyForTransfer()` before passing the array.
1594
1775
  * @param {WasmCitationReference[]} value
1595
1776
  */
1596
1777
  set references(value) {
@@ -1626,6 +1807,17 @@ class WasmContentConfig {
1626
1807
  const ptr = this.__destroy_into_raw();
1627
1808
  wasm.__wbg_wasmcontentconfig_free(ptr, 0);
1628
1809
  }
1810
+ /**
1811
+ * Return an independent handle for an ownership-taking API.
1812
+ *
1813
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1814
+ * handle must remain usable.
1815
+ * @returns {WasmContentConfig}
1816
+ */
1817
+ copyForTransfer() {
1818
+ const ret = wasm.wasmcontentconfig_copyForTransfer(this.__wbg_ptr);
1819
+ return WasmContentConfig.__wrap(ret);
1820
+ }
1629
1821
  /**
1630
1822
  * @returns {WasmContentConfig}
1631
1823
  */
@@ -1904,6 +2096,17 @@ class WasmCookieInfo {
1904
2096
  const ptr = this.__destroy_into_raw();
1905
2097
  wasm.__wbg_wasmcookieinfo_free(ptr, 0);
1906
2098
  }
2099
+ /**
2100
+ * Return an independent handle for an ownership-taking API.
2101
+ *
2102
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2103
+ * handle must remain usable.
2104
+ * @returns {WasmCookieInfo}
2105
+ */
2106
+ copyForTransfer() {
2107
+ const ret = wasm.wasmcookieinfo_copyForTransfer(this.__wbg_ptr);
2108
+ return WasmCookieInfo.__wrap(ret);
2109
+ }
1907
2110
  /**
1908
2111
  * @returns {WasmCookieInfo}
1909
2112
  */
@@ -2096,6 +2299,10 @@ class WasmCrawlConfig {
2096
2299
  return v1;
2097
2300
  }
2098
2301
  /**
2302
+ * Returns a detached copy of `browser`.
2303
+ *
2304
+ * Changes to the returned value do not update this object. To update `browser`,
2305
+ * read it, modify the copy, then assign the copy back to `browser`.
2099
2306
  * @returns {WasmBrowserConfig}
2100
2307
  */
2101
2308
  get browser() {
@@ -2109,6 +2316,9 @@ class WasmCrawlConfig {
2109
2316
  const ret = wasm.wasmcrawlconfig_captureScreenshot(this.__wbg_ptr);
2110
2317
  return ret !== 0;
2111
2318
  }
2319
+ clearProxy() {
2320
+ wasm.wasmcrawlconfig_clearProxy(this.__wbg_ptr);
2321
+ }
2112
2322
  /**
2113
2323
  * @returns {string | undefined}
2114
2324
  */
@@ -2122,6 +2332,10 @@ class WasmCrawlConfig {
2122
2332
  return v1;
2123
2333
  }
2124
2334
  /**
2335
+ * Returns a detached copy of `content`.
2336
+ *
2337
+ * Changes to the returned value do not update this object. To update `content`,
2338
+ * read it, modify the copy, then assign the copy back to `content`.
2125
2339
  * @returns {WasmContentConfig}
2126
2340
  */
2127
2341
  get content() {
@@ -2135,6 +2349,17 @@ class WasmCrawlConfig {
2135
2349
  const ret = wasm.wasmcrawlconfig_cookiesEnabled(this.__wbg_ptr);
2136
2350
  return ret !== 0;
2137
2351
  }
2352
+ /**
2353
+ * Return an independent handle for an ownership-taking API.
2354
+ *
2355
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2356
+ * handle must remain usable.
2357
+ * @returns {WasmCrawlConfig}
2358
+ */
2359
+ copyForTransfer() {
2360
+ const ret = wasm.wasmcrawlconfig_copyForTransfer(this.__wbg_ptr);
2361
+ return WasmCrawlConfig.__wrap(ret);
2362
+ }
2138
2363
  /**
2139
2364
  * @returns {string}
2140
2365
  */
@@ -2326,6 +2551,11 @@ class WasmCrawlConfig {
2326
2551
  return ret >>> 0;
2327
2552
  }
2328
2553
  /**
2554
+ * Takes ownership of `content`, `browser`, `proxy`, `ssrf`.
2555
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2556
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2557
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2558
+ * the generated setter borrows and leaves your handle alive.
2329
2559
  * @param {WasmCrawlStrategyKind | null} [crawlStrategy]
2330
2560
  * @param {boolean | null} [respectRobotsTxt]
2331
2561
  * @param {boolean | null} [softHttpErrors]
@@ -2451,6 +2681,10 @@ class WasmCrawlConfig {
2451
2681
  return ret !== 0;
2452
2682
  }
2453
2683
  /**
2684
+ * Returns a detached copy of `proxy`.
2685
+ *
2686
+ * Changes to the returned value do not update this object. To update `proxy`,
2687
+ * read it, modify the copy, then assign the copy back to `proxy`.
2454
2688
  * @returns {WasmProxyConfig | undefined}
2455
2689
  */
2456
2690
  get proxy() {
@@ -2578,8 +2812,7 @@ class WasmCrawlConfig {
2578
2812
  */
2579
2813
  set browser(value) {
2580
2814
  _assertClass(value, WasmBrowserConfig);
2581
- var ptr0 = value.__destroy_into_raw();
2582
- wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, ptr0);
2815
+ wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, value.__wbg_ptr);
2583
2816
  }
2584
2817
  /**
2585
2818
  * @param {boolean} value
@@ -2598,8 +2831,7 @@ class WasmCrawlConfig {
2598
2831
  */
2599
2832
  set content(value) {
2600
2833
  _assertClass(value, WasmContentConfig);
2601
- var ptr0 = value.__destroy_into_raw();
2602
- wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, ptr0);
2834
+ wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, value.__wbg_ptr);
2603
2835
  }
2604
2836
  /**
2605
2837
  * @param {boolean} value
@@ -2762,15 +2994,11 @@ class WasmCrawlConfig {
2762
2994
  wasm.wasmcrawlconfig_set_pathPatternsMatchUrl(this.__wbg_ptr, value);
2763
2995
  }
2764
2996
  /**
2765
- * @param {WasmProxyConfig | null} [value]
2997
+ * @param {WasmProxyConfig} value
2766
2998
  */
2767
2999
  set proxy(value) {
2768
- let ptr0 = 0;
2769
- if (!isLikeNone(value)) {
2770
- _assertClass(value, WasmProxyConfig);
2771
- ptr0 = value.__destroy_into_raw();
2772
- }
2773
- wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, ptr0);
3000
+ _assertClass(value, WasmProxyConfig);
3001
+ wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
2774
3002
  }
2775
3003
  /**
2776
3004
  * @param {number} value
@@ -2853,8 +3081,7 @@ class WasmCrawlConfig {
2853
3081
  */
2854
3082
  set ssrf(value) {
2855
3083
  _assertClass(value, WasmSsrfPolicy);
2856
- var ptr0 = value.__destroy_into_raw();
2857
- wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, ptr0);
3084
+ wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, value.__wbg_ptr);
2858
3085
  }
2859
3086
  /**
2860
3087
  * @param {boolean} value
@@ -2915,6 +3142,10 @@ class WasmCrawlConfig {
2915
3142
  return ret === 0xFFFFFF ? undefined : ret !== 0;
2916
3143
  }
2917
3144
  /**
3145
+ * Returns a detached copy of `ssrf`.
3146
+ *
3147
+ * Changes to the returned value do not update this object. To update `ssrf`,
3148
+ * read it, modify the copy, then assign the copy back to `ssrf`.
2918
3149
  * @returns {WasmSsrfPolicy}
2919
3150
  */
2920
3151
  get ssrf() {
@@ -3016,6 +3247,17 @@ class WasmCrawlEngineHandle {
3016
3247
  const ptr = this.__destroy_into_raw();
3017
3248
  wasm.__wbg_wasmcrawlenginehandle_free(ptr, 0);
3018
3249
  }
3250
+ /**
3251
+ * Return an independent handle for an ownership-taking API.
3252
+ *
3253
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3254
+ * handle must remain usable.
3255
+ * @returns {WasmCrawlEngineHandle}
3256
+ */
3257
+ copyForTransfer() {
3258
+ const ret = wasm.wasmcrawlenginehandle_copyForTransfer(this.__wbg_ptr);
3259
+ return WasmCrawlEngineHandle.__wrap(ret);
3260
+ }
3019
3261
  }
3020
3262
  if (Symbol.dispose) WasmCrawlEngineHandle.prototype[Symbol.dispose] = WasmCrawlEngineHandle.prototype.free;
3021
3263
  exports.WasmCrawlEngineHandle = WasmCrawlEngineHandle;
@@ -3060,6 +3302,15 @@ class WasmCrawlPageResult {
3060
3302
  const ret = wasm.wasmcrawlpageresult_browserUsed(this.__wbg_ptr);
3061
3303
  return ret !== 0;
3062
3304
  }
3305
+ clearDownloadedDocument() {
3306
+ wasm.wasmcrawlpageresult_clearDownloadedDocument(this.__wbg_ptr);
3307
+ }
3308
+ clearExtractionMeta() {
3309
+ wasm.wasmcrawlpageresult_clearExtractionMeta(this.__wbg_ptr);
3310
+ }
3311
+ clearMarkdown() {
3312
+ wasm.wasmcrawlpageresult_clearMarkdown(this.__wbg_ptr);
3313
+ }
3063
3314
  /**
3064
3315
  * @returns {string}
3065
3316
  */
@@ -3075,6 +3326,17 @@ class WasmCrawlPageResult {
3075
3326
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3076
3327
  }
3077
3328
  }
3329
+ /**
3330
+ * Return an independent handle for an ownership-taking API.
3331
+ *
3332
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3333
+ * handle must remain usable.
3334
+ * @returns {WasmCrawlPageResult}
3335
+ */
3336
+ copyForTransfer() {
3337
+ const ret = wasm.wasmcrawlpageresult_copyForTransfer(this.__wbg_ptr);
3338
+ return WasmCrawlPageResult.__wrap(ret);
3339
+ }
3078
3340
  /**
3079
3341
  * @returns {WasmCrawlPageResult}
3080
3342
  */
@@ -3102,6 +3364,10 @@ class WasmCrawlPageResult {
3102
3364
  return v1;
3103
3365
  }
3104
3366
  /**
3367
+ * Returns a detached copy of `downloadedDocument`.
3368
+ *
3369
+ * Changes to the returned value do not update this object. To update `downloadedDocument`,
3370
+ * read it, modify the copy, then assign the copy back to `downloadedDocument`.
3105
3371
  * @returns {WasmDownloadedDocument | undefined}
3106
3372
  */
3107
3373
  get downloadedDocument() {
@@ -3116,6 +3382,10 @@ class WasmCrawlPageResult {
3116
3382
  return ret;
3117
3383
  }
3118
3384
  /**
3385
+ * Returns a detached copy of `extractionMeta`.
3386
+ *
3387
+ * Changes to the returned value do not update this object. To update `extractionMeta`,
3388
+ * read it, modify the copy, then assign the copy back to `extractionMeta`.
3119
3389
  * @returns {WasmExtractionMeta | undefined}
3120
3390
  */
3121
3391
  get extractionMeta() {
@@ -3123,6 +3393,10 @@ class WasmCrawlPageResult {
3123
3393
  return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
3124
3394
  }
3125
3395
  /**
3396
+ * Returns detached copies of the elements in `feeds`.
3397
+ *
3398
+ * Changes to the returned values do not update this object. Modify the copies,
3399
+ * then assign the array back to `feeds`.
3126
3400
  * @returns {WasmFeedInfo[]}
3127
3401
  */
3128
3402
  get feeds() {
@@ -3162,6 +3436,10 @@ class WasmCrawlPageResult {
3162
3436
  }
3163
3437
  }
3164
3438
  /**
3439
+ * Returns detached copies of the elements in `images`.
3440
+ *
3441
+ * Changes to the returned values do not update this object. Modify the copies,
3442
+ * then assign the array back to `images`.
3165
3443
  * @returns {WasmImageInfo[]}
3166
3444
  */
3167
3445
  get images() {
@@ -3178,6 +3456,10 @@ class WasmCrawlPageResult {
3178
3456
  return ret !== 0;
3179
3457
  }
3180
3458
  /**
3459
+ * Returns detached copies of the elements in `jsonLd`.
3460
+ *
3461
+ * Changes to the returned values do not update this object. Modify the copies,
3462
+ * then assign the array back to `jsonLd`.
3181
3463
  * @returns {WasmJsonLdEntry[]}
3182
3464
  */
3183
3465
  get jsonLd() {
@@ -3187,6 +3469,10 @@ class WasmCrawlPageResult {
3187
3469
  return v1;
3188
3470
  }
3189
3471
  /**
3472
+ * Returns detached copies of the elements in `links`.
3473
+ *
3474
+ * Changes to the returned values do not update this object. Modify the copies,
3475
+ * then assign the array back to `links`.
3190
3476
  * @returns {WasmLinkInfo[]}
3191
3477
  */
3192
3478
  get links() {
@@ -3196,6 +3482,10 @@ class WasmCrawlPageResult {
3196
3482
  return v1;
3197
3483
  }
3198
3484
  /**
3485
+ * Returns a detached copy of `markdown`.
3486
+ *
3487
+ * Changes to the returned value do not update this object. To update `markdown`,
3488
+ * read it, modify the copy, then assign the copy back to `markdown`.
3199
3489
  * @returns {WasmMarkdownResult | undefined}
3200
3490
  */
3201
3491
  get markdown() {
@@ -3203,6 +3493,10 @@ class WasmCrawlPageResult {
3203
3493
  return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
3204
3494
  }
3205
3495
  /**
3496
+ * Returns a detached copy of `metadata`.
3497
+ *
3498
+ * Changes to the returned value do not update this object. To update `metadata`,
3499
+ * read it, modify the copy, then assign the copy back to `metadata`.
3206
3500
  * @returns {WasmPageMetadata}
3207
3501
  */
3208
3502
  get metadata() {
@@ -3210,6 +3504,14 @@ class WasmCrawlPageResult {
3210
3504
  return WasmPageMetadata.__wrap(ret);
3211
3505
  }
3212
3506
  /**
3507
+ * Takes ownership of `metadata`, `markdown`, `extractionMeta`, `downloadedDocument`.
3508
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
3509
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
3510
+ * keep a handle you already hold, build with `default()` and assign the property instead:
3511
+ * the generated setter borrows and leaves your handle alive.
3512
+ * Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`.
3513
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3514
+ * copy each retained element with `copyForTransfer()` before passing the array.
3213
3515
  * @param {string | null} [url]
3214
3516
  * @param {string | null} [normalizedUrl]
3215
3517
  * @param {number | null} [statusCode]
@@ -3356,15 +3658,11 @@ class WasmCrawlPageResult {
3356
3658
  wasm.wasmcrawlpageresult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
3357
3659
  }
3358
3660
  /**
3359
- * @param {WasmDownloadedDocument | null} [value]
3661
+ * @param {WasmDownloadedDocument} value
3360
3662
  */
3361
3663
  set downloadedDocument(value) {
3362
- let ptr0 = 0;
3363
- if (!isLikeNone(value)) {
3364
- _assertClass(value, WasmDownloadedDocument);
3365
- ptr0 = value.__destroy_into_raw();
3366
- }
3367
- wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, ptr0);
3664
+ _assertClass(value, WasmDownloadedDocument);
3665
+ wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
3368
3666
  }
3369
3667
  /**
3370
3668
  * @param {any | null} [value]
@@ -3373,17 +3671,16 @@ class WasmCrawlPageResult {
3373
3671
  wasm.wasmcrawlpageresult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
3374
3672
  }
3375
3673
  /**
3376
- * @param {WasmExtractionMeta | null} [value]
3674
+ * @param {WasmExtractionMeta} value
3377
3675
  */
3378
3676
  set extractionMeta(value) {
3379
- let ptr0 = 0;
3380
- if (!isLikeNone(value)) {
3381
- _assertClass(value, WasmExtractionMeta);
3382
- ptr0 = value.__destroy_into_raw();
3383
- }
3384
- wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, ptr0);
3677
+ _assertClass(value, WasmExtractionMeta);
3678
+ wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
3385
3679
  }
3386
3680
  /**
3681
+ * Takes ownership of every element in `feeds`.
3682
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3683
+ * element with `copyForTransfer()` before passing the array.
3387
3684
  * @param {WasmFeedInfo[]} value
3388
3685
  */
3389
3686
  set feeds(value) {
@@ -3408,6 +3705,9 @@ class WasmCrawlPageResult {
3408
3705
  wasm.wasmcrawlpageresult_set_html(this.__wbg_ptr, ptr0, len0);
3409
3706
  }
3410
3707
  /**
3708
+ * Takes ownership of every element in `images`.
3709
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3710
+ * element with `copyForTransfer()` before passing the array.
3411
3711
  * @param {WasmImageInfo[]} value
3412
3712
  */
3413
3713
  set images(value) {
@@ -3422,6 +3722,9 @@ class WasmCrawlPageResult {
3422
3722
  wasm.wasmcrawlpageresult_set_isPdf(this.__wbg_ptr, value);
3423
3723
  }
3424
3724
  /**
3725
+ * Takes ownership of every element in `jsonLd`.
3726
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3727
+ * element with `copyForTransfer()` before passing the array.
3425
3728
  * @param {WasmJsonLdEntry[]} value
3426
3729
  */
3427
3730
  set jsonLd(value) {
@@ -3430,6 +3733,9 @@ class WasmCrawlPageResult {
3430
3733
  wasm.wasmcrawlpageresult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
3431
3734
  }
3432
3735
  /**
3736
+ * Takes ownership of every element in `links`.
3737
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3738
+ * element with `copyForTransfer()` before passing the array.
3433
3739
  * @param {WasmLinkInfo[]} value
3434
3740
  */
3435
3741
  set links(value) {
@@ -3438,23 +3744,18 @@ class WasmCrawlPageResult {
3438
3744
  wasm.wasmcrawlpageresult_set_links(this.__wbg_ptr, ptr0, len0);
3439
3745
  }
3440
3746
  /**
3441
- * @param {WasmMarkdownResult | null} [value]
3747
+ * @param {WasmMarkdownResult} value
3442
3748
  */
3443
3749
  set markdown(value) {
3444
- let ptr0 = 0;
3445
- if (!isLikeNone(value)) {
3446
- _assertClass(value, WasmMarkdownResult);
3447
- ptr0 = value.__destroy_into_raw();
3448
- }
3449
- wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, ptr0);
3750
+ _assertClass(value, WasmMarkdownResult);
3751
+ wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
3450
3752
  }
3451
3753
  /**
3452
3754
  * @param {WasmPageMetadata} value
3453
3755
  */
3454
3756
  set metadata(value) {
3455
3757
  _assertClass(value, WasmPageMetadata);
3456
- var ptr0 = value.__destroy_into_raw();
3457
- wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, ptr0);
3758
+ wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
3458
3759
  }
3459
3760
  /**
3460
3761
  * @param {boolean} value
@@ -3593,6 +3894,10 @@ class WasmCrawlResult {
3593
3894
  return ret !== 0;
3594
3895
  }
3595
3896
  /**
3897
+ * Returns detached copies of the elements in `cookies`.
3898
+ *
3899
+ * Changes to the returned values do not update this object. Modify the copies,
3900
+ * then assign the array back to `cookies`.
3596
3901
  * @returns {WasmCookieInfo[]}
3597
3902
  */
3598
3903
  get cookies() {
@@ -3601,6 +3906,17 @@ class WasmCrawlResult {
3601
3906
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3602
3907
  return v1;
3603
3908
  }
3909
+ /**
3910
+ * Return an independent handle for an ownership-taking API.
3911
+ *
3912
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3913
+ * handle must remain usable.
3914
+ * @returns {WasmCrawlResult}
3915
+ */
3916
+ copyForTransfer() {
3917
+ const ret = wasm.wasmcrawlresult_copyForTransfer(this.__wbg_ptr);
3918
+ return WasmCrawlResult.__wrap(ret);
3919
+ }
3604
3920
  /**
3605
3921
  * @returns {WasmCrawlResult}
3606
3922
  */
@@ -3636,6 +3952,9 @@ class WasmCrawlResult {
3636
3952
  }
3637
3953
  }
3638
3954
  /**
3955
+ * Takes ownership of every element in `pages`, `cookies`.
3956
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3957
+ * copy each retained element with `copyForTransfer()` before passing the array.
3639
3958
  * @param {WasmCrawlPageResult[] | null} [pages]
3640
3959
  * @param {string | null} [finalUrl]
3641
3960
  * @param {number | null} [redirectCount]
@@ -3660,6 +3979,10 @@ class WasmCrawlResult {
3660
3979
  return this;
3661
3980
  }
3662
3981
  /**
3982
+ * Returns detached copies of the elements in `pages`.
3983
+ *
3984
+ * Changes to the returned values do not update this object. Modify the copies,
3985
+ * then assign the array back to `pages`.
3663
3986
  * @returns {WasmCrawlPageResult[]}
3664
3987
  */
3665
3988
  get pages() {
@@ -3682,6 +4005,9 @@ class WasmCrawlResult {
3682
4005
  wasm.wasmcrawlresult_set_browserUsed(this.__wbg_ptr, value);
3683
4006
  }
3684
4007
  /**
4008
+ * Takes ownership of every element in `cookies`.
4009
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
4010
+ * element with `copyForTransfer()` before passing the array.
3685
4011
  * @param {WasmCookieInfo[]} value
3686
4012
  */
3687
4013
  set cookies(value) {
@@ -3706,6 +4032,9 @@ class WasmCrawlResult {
3706
4032
  wasm.wasmcrawlresult_set_finalUrl(this.__wbg_ptr, ptr0, len0);
3707
4033
  }
3708
4034
  /**
4035
+ * Takes ownership of every element in `pages`.
4036
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
4037
+ * element with `copyForTransfer()` before passing the array.
3709
4038
  * @param {WasmCrawlPageResult[]} value
3710
4039
  */
3711
4040
  set pages(value) {
@@ -3850,6 +4179,17 @@ class WasmDownloadedAsset {
3850
4179
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3851
4180
  }
3852
4181
  }
4182
+ /**
4183
+ * Return an independent handle for an ownership-taking API.
4184
+ *
4185
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4186
+ * handle must remain usable.
4187
+ * @returns {WasmDownloadedAsset}
4188
+ */
4189
+ copyForTransfer() {
4190
+ const ret = wasm.wasmdownloadedasset_copyForTransfer(this.__wbg_ptr);
4191
+ return WasmDownloadedAsset.__wrap(ret);
4192
+ }
3853
4193
  /**
3854
4194
  * @returns {WasmDownloadedAsset}
3855
4195
  */
@@ -4036,6 +4376,17 @@ class WasmDownloadedDocument {
4036
4376
  }
4037
4377
  return v1;
4038
4378
  }
4379
+ /**
4380
+ * Return an independent handle for an ownership-taking API.
4381
+ *
4382
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4383
+ * handle must remain usable.
4384
+ * @returns {WasmDownloadedDocument}
4385
+ */
4386
+ copyForTransfer() {
4387
+ const ret = wasm.wasmdownloadeddocument_copyForTransfer(this.__wbg_ptr);
4388
+ return WasmDownloadedDocument.__wrap(ret);
4389
+ }
4039
4390
  /**
4040
4391
  * @returns {WasmDownloadedDocument}
4041
4392
  */
@@ -4239,6 +4590,17 @@ class WasmExtractionMeta {
4239
4590
  const ret = wasm.wasmextractionmeta_completionTokens(this.__wbg_ptr);
4240
4591
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
4241
4592
  }
4593
+ /**
4594
+ * Return an independent handle for an ownership-taking API.
4595
+ *
4596
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4597
+ * handle must remain usable.
4598
+ * @returns {WasmExtractionMeta}
4599
+ */
4600
+ copyForTransfer() {
4601
+ const ret = wasm.wasmextractionmeta_copyForTransfer(this.__wbg_ptr);
4602
+ return WasmExtractionMeta.__wrap(ret);
4603
+ }
4242
4604
  /**
4243
4605
  * @returns {number | undefined}
4244
4606
  */
@@ -4349,6 +4711,17 @@ class WasmFaviconInfo {
4349
4711
  const ptr = this.__destroy_into_raw();
4350
4712
  wasm.__wbg_wasmfaviconinfo_free(ptr, 0);
4351
4713
  }
4714
+ /**
4715
+ * Return an independent handle for an ownership-taking API.
4716
+ *
4717
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4718
+ * handle must remain usable.
4719
+ * @returns {WasmFaviconInfo}
4720
+ */
4721
+ copyForTransfer() {
4722
+ const ret = wasm.wasmfaviconinfo_copyForTransfer(this.__wbg_ptr);
4723
+ return WasmFaviconInfo.__wrap(ret);
4724
+ }
4352
4725
  /**
4353
4726
  * @returns {WasmFaviconInfo}
4354
4727
  */
@@ -4492,6 +4865,17 @@ class WasmFeedInfo {
4492
4865
  const ptr = this.__destroy_into_raw();
4493
4866
  wasm.__wbg_wasmfeedinfo_free(ptr, 0);
4494
4867
  }
4868
+ /**
4869
+ * Return an independent handle for an ownership-taking API.
4870
+ *
4871
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4872
+ * handle must remain usable.
4873
+ * @returns {WasmFeedInfo}
4874
+ */
4875
+ copyForTransfer() {
4876
+ const ret = wasm.wasmfeedinfo_copyForTransfer(this.__wbg_ptr);
4877
+ return WasmFeedInfo.__wrap(ret);
4878
+ }
4495
4879
  /**
4496
4880
  * @returns {WasmFeedInfo}
4497
4881
  */
@@ -4619,6 +5003,17 @@ class WasmHeadingInfo {
4619
5003
  const ptr = this.__destroy_into_raw();
4620
5004
  wasm.__wbg_wasmheadinginfo_free(ptr, 0);
4621
5005
  }
5006
+ /**
5007
+ * Return an independent handle for an ownership-taking API.
5008
+ *
5009
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5010
+ * handle must remain usable.
5011
+ * @returns {WasmHeadingInfo}
5012
+ */
5013
+ copyForTransfer() {
5014
+ const ret = wasm.wasmheadinginfo_copyForTransfer(this.__wbg_ptr);
5015
+ return WasmHeadingInfo.__wrap(ret);
5016
+ }
4622
5017
  /**
4623
5018
  * @returns {WasmHeadingInfo}
4624
5019
  */
@@ -4798,6 +5193,17 @@ class WasmHreflangEntry {
4798
5193
  const ptr = this.__destroy_into_raw();
4799
5194
  wasm.__wbg_wasmhreflangentry_free(ptr, 0);
4800
5195
  }
5196
+ /**
5197
+ * Return an independent handle for an ownership-taking API.
5198
+ *
5199
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5200
+ * handle must remain usable.
5201
+ * @returns {WasmHreflangEntry}
5202
+ */
5203
+ copyForTransfer() {
5204
+ const ret = wasm.wasmhreflangentry_copyForTransfer(this.__wbg_ptr);
5205
+ return WasmHreflangEntry.__wrap(ret);
5206
+ }
4801
5207
  /**
4802
5208
  * @returns {WasmHreflangEntry}
4803
5209
  */
@@ -4907,6 +5313,17 @@ class WasmImageInfo {
4907
5313
  }
4908
5314
  return v1;
4909
5315
  }
5316
+ /**
5317
+ * Return an independent handle for an ownership-taking API.
5318
+ *
5319
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5320
+ * handle must remain usable.
5321
+ * @returns {WasmImageInfo}
5322
+ */
5323
+ copyForTransfer() {
5324
+ const ret = wasm.wasmimageinfo_copyForTransfer(this.__wbg_ptr);
5325
+ return WasmImageInfo.__wrap(ret);
5326
+ }
4910
5327
  /**
4911
5328
  * @returns {WasmImageInfo}
4912
5329
  */
@@ -5046,6 +5463,10 @@ class WasmInteractionResult {
5046
5463
  wasm.__wbg_wasminteractionresult_free(ptr, 0);
5047
5464
  }
5048
5465
  /**
5466
+ * Returns detached copies of the elements in `actionResults`.
5467
+ *
5468
+ * Changes to the returned values do not update this object. Modify the copies,
5469
+ * then assign the array back to `actionResults`.
5049
5470
  * @returns {WasmActionResult[]}
5050
5471
  */
5051
5472
  get actionResults() {
@@ -5054,6 +5475,17 @@ class WasmInteractionResult {
5054
5475
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
5055
5476
  return v1;
5056
5477
  }
5478
+ /**
5479
+ * Return an independent handle for an ownership-taking API.
5480
+ *
5481
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5482
+ * handle must remain usable.
5483
+ * @returns {WasmInteractionResult}
5484
+ */
5485
+ copyForTransfer() {
5486
+ const ret = wasm.wasminteractionresult_copyForTransfer(this.__wbg_ptr);
5487
+ return WasmInteractionResult.__wrap(ret);
5488
+ }
5057
5489
  /**
5058
5490
  * @returns {WasmInteractionResult}
5059
5491
  */
@@ -5092,6 +5524,9 @@ class WasmInteractionResult {
5092
5524
  }
5093
5525
  }
5094
5526
  /**
5527
+ * Takes ownership of every element in `actionResults`.
5528
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5529
+ * copy each retained element with `copyForTransfer()` before passing the array.
5095
5530
  * @param {WasmActionResult[] | null} [actionResults]
5096
5531
  * @param {string | null} [finalHtml]
5097
5532
  * @param {string | null} [finalUrl]
@@ -5127,6 +5562,9 @@ class WasmInteractionResult {
5127
5562
  return v1;
5128
5563
  }
5129
5564
  /**
5565
+ * Takes ownership of every element in `actionResults`.
5566
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5567
+ * element with `copyForTransfer()` before passing the array.
5130
5568
  * @param {WasmActionResult[]} value
5131
5569
  */
5132
5570
  set actionResults(value) {
@@ -5205,6 +5643,17 @@ class WasmJsonLdEntry {
5205
5643
  const ptr = this.__destroy_into_raw();
5206
5644
  wasm.__wbg_wasmjsonldentry_free(ptr, 0);
5207
5645
  }
5646
+ /**
5647
+ * Return an independent handle for an ownership-taking API.
5648
+ *
5649
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5650
+ * handle must remain usable.
5651
+ * @returns {WasmJsonLdEntry}
5652
+ */
5653
+ copyForTransfer() {
5654
+ const ret = wasm.wasmjsonldentry_copyForTransfer(this.__wbg_ptr);
5655
+ return WasmJsonLdEntry.__wrap(ret);
5656
+ }
5208
5657
  /**
5209
5658
  * @returns {WasmJsonLdEntry}
5210
5659
  */
@@ -5325,6 +5774,17 @@ class WasmLinkInfo {
5325
5774
  const ptr = this.__destroy_into_raw();
5326
5775
  wasm.__wbg_wasmlinkinfo_free(ptr, 0);
5327
5776
  }
5777
+ /**
5778
+ * Return an independent handle for an ownership-taking API.
5779
+ *
5780
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5781
+ * handle must remain usable.
5782
+ * @returns {WasmLinkInfo}
5783
+ */
5784
+ copyForTransfer() {
5785
+ const ret = wasm.wasmlinkinfo_copyForTransfer(this.__wbg_ptr);
5786
+ return WasmLinkInfo.__wrap(ret);
5787
+ }
5328
5788
  /**
5329
5789
  * @returns {WasmLinkInfo}
5330
5790
  */
@@ -5487,6 +5947,17 @@ class WasmMapResult {
5487
5947
  const ptr = this.__destroy_into_raw();
5488
5948
  wasm.__wbg_wasmmapresult_free(ptr, 0);
5489
5949
  }
5950
+ /**
5951
+ * Return an independent handle for an ownership-taking API.
5952
+ *
5953
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5954
+ * handle must remain usable.
5955
+ * @returns {WasmMapResult}
5956
+ */
5957
+ copyForTransfer() {
5958
+ const ret = wasm.wasmmapresult_copyForTransfer(this.__wbg_ptr);
5959
+ return WasmMapResult.__wrap(ret);
5960
+ }
5490
5961
  /**
5491
5962
  * @returns {WasmMapResult}
5492
5963
  */
@@ -5495,6 +5966,9 @@ class WasmMapResult {
5495
5966
  return WasmMapResult.__wrap(ret);
5496
5967
  }
5497
5968
  /**
5969
+ * Takes ownership of every element in `urls`.
5970
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5971
+ * copy each retained element with `copyForTransfer()` before passing the array.
5498
5972
  * @param {WasmSitemapUrl[] | null} [urls]
5499
5973
  */
5500
5974
  constructor(urls) {
@@ -5506,6 +5980,9 @@ class WasmMapResult {
5506
5980
  return this;
5507
5981
  }
5508
5982
  /**
5983
+ * Takes ownership of every element in `urls`.
5984
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5985
+ * element with `copyForTransfer()` before passing the array.
5509
5986
  * @param {WasmSitemapUrl[]} value
5510
5987
  */
5511
5988
  set urls(value) {
@@ -5514,6 +5991,10 @@ class WasmMapResult {
5514
5991
  wasm.wasmmapresult_set_urls(this.__wbg_ptr, ptr0, len0);
5515
5992
  }
5516
5993
  /**
5994
+ * Returns detached copies of the elements in `urls`.
5995
+ *
5996
+ * Changes to the returned values do not update this object. Modify the copies,
5997
+ * then assign the array back to `urls`.
5517
5998
  * @returns {WasmSitemapUrl[]}
5518
5999
  */
5519
6000
  get urls() {
@@ -5568,6 +6049,17 @@ class WasmMarkdownResult {
5568
6049
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5569
6050
  }
5570
6051
  }
6052
+ /**
6053
+ * Return an independent handle for an ownership-taking API.
6054
+ *
6055
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6056
+ * handle must remain usable.
6057
+ * @returns {WasmMarkdownResult}
6058
+ */
6059
+ copyForTransfer() {
6060
+ const ret = wasm.wasmmarkdownresult_copyForTransfer(this.__wbg_ptr);
6061
+ return WasmMarkdownResult.__wrap(ret);
6062
+ }
5571
6063
  /**
5572
6064
  * @returns {WasmMarkdownResult}
5573
6065
  */
@@ -5898,6 +6390,10 @@ class WasmPageMetadata {
5898
6390
  wasm.__wbg_wasmpagemetadata_free(ptr, 0);
5899
6391
  }
5900
6392
  /**
6393
+ * Returns a detached copy of `article`.
6394
+ *
6395
+ * Changes to the returned value do not update this object. To update `article`,
6396
+ * read it, modify the copy, then assign the copy back to `article`.
5901
6397
  * @returns {WasmArticleMetadata | undefined}
5902
6398
  */
5903
6399
  get article() {
@@ -5928,6 +6424,20 @@ class WasmPageMetadata {
5928
6424
  }
5929
6425
  return v1;
5930
6426
  }
6427
+ clearArticle() {
6428
+ wasm.wasmpagemetadata_clearArticle(this.__wbg_ptr);
6429
+ }
6430
+ /**
6431
+ * Return an independent handle for an ownership-taking API.
6432
+ *
6433
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6434
+ * handle must remain usable.
6435
+ * @returns {WasmPageMetadata}
6436
+ */
6437
+ copyForTransfer() {
6438
+ const ret = wasm.wasmpagemetadata_copyForTransfer(this.__wbg_ptr);
6439
+ return WasmPageMetadata.__wrap(ret);
6440
+ }
5931
6441
  /**
5932
6442
  * @returns {string | undefined}
5933
6443
  */
@@ -6080,6 +6590,10 @@ class WasmPageMetadata {
6080
6590
  return v1;
6081
6591
  }
6082
6592
  /**
6593
+ * Returns detached copies of the elements in `favicons`.
6594
+ *
6595
+ * Changes to the returned values do not update this object. Modify the copies,
6596
+ * then assign the array back to `favicons`.
6083
6597
  * @returns {Array<any> | undefined}
6084
6598
  */
6085
6599
  get favicons() {
@@ -6099,6 +6613,10 @@ class WasmPageMetadata {
6099
6613
  return v1;
6100
6614
  }
6101
6615
  /**
6616
+ * Returns detached copies of the elements in `headings`.
6617
+ *
6618
+ * Changes to the returned values do not update this object. Modify the copies,
6619
+ * then assign the array back to `headings`.
6102
6620
  * @returns {Array<any> | undefined}
6103
6621
  */
6104
6622
  get headings() {
@@ -6106,6 +6624,10 @@ class WasmPageMetadata {
6106
6624
  return ret;
6107
6625
  }
6108
6626
  /**
6627
+ * Returns detached copies of the elements in `hreflangs`.
6628
+ *
6629
+ * Changes to the returned values do not update this object. Modify the copies,
6630
+ * then assign the array back to `hreflangs`.
6109
6631
  * @returns {Array<any> | undefined}
6110
6632
  */
6111
6633
  get hreflangs() {
@@ -6149,6 +6671,14 @@ class WasmPageMetadata {
6149
6671
  return v1;
6150
6672
  }
6151
6673
  /**
6674
+ * Takes ownership of `article`.
6675
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
6676
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
6677
+ * keep a handle you already hold, build with `default()` and assign the property instead:
6678
+ * the generated setter borrows and leaves your handle alive.
6679
+ * Takes ownership of every element in `hreflangs`, `favicons`, `headings`.
6680
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
6681
+ * copy each retained element with `copyForTransfer()` before passing the array.
6152
6682
  * @param {string | null} [title]
6153
6683
  * @param {string | null} [description]
6154
6684
  * @param {string | null} [canonicalUrl]
@@ -6419,15 +6949,11 @@ class WasmPageMetadata {
6419
6949
  return v1;
6420
6950
  }
6421
6951
  /**
6422
- * @param {WasmArticleMetadata | null} [value]
6952
+ * @param {WasmArticleMetadata} value
6423
6953
  */
6424
6954
  set article(value) {
6425
- let ptr0 = 0;
6426
- if (!isLikeNone(value)) {
6427
- _assertClass(value, WasmArticleMetadata);
6428
- ptr0 = value.__destroy_into_raw();
6429
- }
6430
- wasm.wasmpagemetadata_set_article(this.__wbg_ptr, ptr0);
6955
+ _assertClass(value, WasmArticleMetadata);
6956
+ wasm.wasmpagemetadata_set_article(this.__wbg_ptr, value.__wbg_ptr);
6431
6957
  }
6432
6958
  /**
6433
6959
  * @param {string | null} [value]
@@ -6542,6 +7068,9 @@ class WasmPageMetadata {
6542
7068
  wasm.wasmpagemetadata_set_description(this.__wbg_ptr, ptr0, len0);
6543
7069
  }
6544
7070
  /**
7071
+ * Takes ownership of every element in `favicons`.
7072
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7073
+ * element with `copyForTransfer()` before passing the array.
6545
7074
  * @param {WasmFaviconInfo[] | null} [value]
6546
7075
  */
6547
7076
  set favicons(value) {
@@ -6558,6 +7087,9 @@ class WasmPageMetadata {
6558
7087
  wasm.wasmpagemetadata_set_generator(this.__wbg_ptr, ptr0, len0);
6559
7088
  }
6560
7089
  /**
7090
+ * Takes ownership of every element in `headings`.
7091
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7092
+ * element with `copyForTransfer()` before passing the array.
6561
7093
  * @param {WasmHeadingInfo[] | null} [value]
6562
7094
  */
6563
7095
  set headings(value) {
@@ -6566,6 +7098,9 @@ class WasmPageMetadata {
6566
7098
  wasm.wasmpagemetadata_set_headings(this.__wbg_ptr, ptr0, len0);
6567
7099
  }
6568
7100
  /**
7101
+ * Takes ownership of every element in `hreflangs`.
7102
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7103
+ * element with `copyForTransfer()` before passing the array.
6569
7104
  * @param {WasmHreflangEntry[] | null} [value]
6570
7105
  */
6571
7106
  set hreflangs(value) {
@@ -6902,6 +7437,17 @@ class WasmProxyConfig {
6902
7437
  const ptr = this.__destroy_into_raw();
6903
7438
  wasm.__wbg_wasmproxyconfig_free(ptr, 0);
6904
7439
  }
7440
+ /**
7441
+ * Return an independent handle for an ownership-taking API.
7442
+ *
7443
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7444
+ * handle must remain usable.
7445
+ * @returns {WasmProxyConfig}
7446
+ */
7447
+ copyForTransfer() {
7448
+ const ret = wasm.wasmproxyconfig_copyForTransfer(this.__wbg_ptr);
7449
+ return WasmProxyConfig.__wrap(ret);
7450
+ }
6905
7451
  /**
6906
7452
  * @returns {WasmProxyConfig}
6907
7453
  */
@@ -7055,6 +7601,17 @@ class WasmResponseMeta {
7055
7601
  }
7056
7602
  return v1;
7057
7603
  }
7604
+ /**
7605
+ * Return an independent handle for an ownership-taking API.
7606
+ *
7607
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7608
+ * handle must remain usable.
7609
+ * @returns {WasmResponseMeta}
7610
+ */
7611
+ copyForTransfer() {
7612
+ const ret = wasm.wasmresponsemeta_copyForTransfer(this.__wbg_ptr);
7613
+ return WasmResponseMeta.__wrap(ret);
7614
+ }
7058
7615
  /**
7059
7616
  * @returns {WasmResponseMeta}
7060
7617
  */
@@ -7220,6 +7777,10 @@ class WasmScrapeResult {
7220
7777
  wasm.__wbg_wasmscraperesult_free(ptr, 0);
7221
7778
  }
7222
7779
  /**
7780
+ * Returns detached copies of the elements in `assets`.
7781
+ *
7782
+ * Changes to the returned values do not update this object. Modify the copies,
7783
+ * then assign the array back to `assets`.
7223
7784
  * @returns {WasmDownloadedAsset[]}
7224
7785
  */
7225
7786
  get assets() {
@@ -7250,12 +7811,31 @@ class WasmScrapeResult {
7250
7811
  return ret !== 0;
7251
7812
  }
7252
7813
  /**
7814
+ * Returns a detached copy of `browser`.
7815
+ *
7816
+ * Changes to the returned value do not update this object. To update `browser`,
7817
+ * read it, modify the copy, then assign the copy back to `browser`.
7253
7818
  * @returns {WasmBrowserExtras | undefined}
7254
7819
  */
7255
7820
  get browser() {
7256
7821
  const ret = wasm.wasmscraperesult_browser(this.__wbg_ptr);
7257
7822
  return ret === 0 ? undefined : WasmBrowserExtras.__wrap(ret);
7258
7823
  }
7824
+ clearBrowser() {
7825
+ wasm.wasmscraperesult_clearBrowser(this.__wbg_ptr);
7826
+ }
7827
+ clearDownloadedDocument() {
7828
+ wasm.wasmscraperesult_clearDownloadedDocument(this.__wbg_ptr);
7829
+ }
7830
+ clearExtractionMeta() {
7831
+ wasm.wasmscraperesult_clearExtractionMeta(this.__wbg_ptr);
7832
+ }
7833
+ clearMarkdown() {
7834
+ wasm.wasmscraperesult_clearMarkdown(this.__wbg_ptr);
7835
+ }
7836
+ clearResponseMeta() {
7837
+ wasm.wasmscraperesult_clearResponseMeta(this.__wbg_ptr);
7838
+ }
7259
7839
  /**
7260
7840
  * @returns {string}
7261
7841
  */
@@ -7271,6 +7851,17 @@ class WasmScrapeResult {
7271
7851
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7272
7852
  }
7273
7853
  }
7854
+ /**
7855
+ * Return an independent handle for an ownership-taking API.
7856
+ *
7857
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7858
+ * handle must remain usable.
7859
+ * @returns {WasmScrapeResult}
7860
+ */
7861
+ copyForTransfer() {
7862
+ const ret = wasm.wasmscraperesult_copyForTransfer(this.__wbg_ptr);
7863
+ return WasmScrapeResult.__wrap(ret);
7864
+ }
7274
7865
  /**
7275
7866
  * @returns {bigint | undefined}
7276
7867
  */
@@ -7298,6 +7889,10 @@ class WasmScrapeResult {
7298
7889
  return v1;
7299
7890
  }
7300
7891
  /**
7892
+ * Returns a detached copy of `downloadedDocument`.
7893
+ *
7894
+ * Changes to the returned value do not update this object. To update `downloadedDocument`,
7895
+ * read it, modify the copy, then assign the copy back to `downloadedDocument`.
7301
7896
  * @returns {WasmDownloadedDocument | undefined}
7302
7897
  */
7303
7898
  get downloadedDocument() {
@@ -7312,6 +7907,10 @@ class WasmScrapeResult {
7312
7907
  return ret;
7313
7908
  }
7314
7909
  /**
7910
+ * Returns a detached copy of `extractionMeta`.
7911
+ *
7912
+ * Changes to the returned value do not update this object. To update `extractionMeta`,
7913
+ * read it, modify the copy, then assign the copy back to `extractionMeta`.
7315
7914
  * @returns {WasmExtractionMeta | undefined}
7316
7915
  */
7317
7916
  get extractionMeta() {
@@ -7319,6 +7918,10 @@ class WasmScrapeResult {
7319
7918
  return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
7320
7919
  }
7321
7920
  /**
7921
+ * Returns detached copies of the elements in `feeds`.
7922
+ *
7923
+ * Changes to the returned values do not update this object. Modify the copies,
7924
+ * then assign the array back to `feeds`.
7322
7925
  * @returns {WasmFeedInfo[]}
7323
7926
  */
7324
7927
  get feeds() {
@@ -7358,6 +7961,10 @@ class WasmScrapeResult {
7358
7961
  }
7359
7962
  }
7360
7963
  /**
7964
+ * Returns detached copies of the elements in `images`.
7965
+ *
7966
+ * Changes to the returned values do not update this object. Modify the copies,
7967
+ * then assign the array back to `images`.
7361
7968
  * @returns {WasmImageInfo[]}
7362
7969
  */
7363
7970
  get images() {
@@ -7388,6 +7995,10 @@ class WasmScrapeResult {
7388
7995
  return ret !== 0;
7389
7996
  }
7390
7997
  /**
7998
+ * Returns detached copies of the elements in `jsonLd`.
7999
+ *
8000
+ * Changes to the returned values do not update this object. Modify the copies,
8001
+ * then assign the array back to `jsonLd`.
7391
8002
  * @returns {WasmJsonLdEntry[]}
7392
8003
  */
7393
8004
  get jsonLd() {
@@ -7397,6 +8008,10 @@ class WasmScrapeResult {
7397
8008
  return v1;
7398
8009
  }
7399
8010
  /**
8011
+ * Returns detached copies of the elements in `links`.
8012
+ *
8013
+ * Changes to the returned values do not update this object. Modify the copies,
8014
+ * then assign the array back to `links`.
7400
8015
  * @returns {WasmLinkInfo[]}
7401
8016
  */
7402
8017
  get links() {
@@ -7406,6 +8021,10 @@ class WasmScrapeResult {
7406
8021
  return v1;
7407
8022
  }
7408
8023
  /**
8024
+ * Returns a detached copy of `markdown`.
8025
+ *
8026
+ * Changes to the returned value do not update this object. To update `markdown`,
8027
+ * read it, modify the copy, then assign the copy back to `markdown`.
7409
8028
  * @returns {WasmMarkdownResult | undefined}
7410
8029
  */
7411
8030
  get markdown() {
@@ -7413,6 +8032,10 @@ class WasmScrapeResult {
7413
8032
  return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
7414
8033
  }
7415
8034
  /**
8035
+ * Returns a detached copy of `metadata`.
8036
+ *
8037
+ * Changes to the returned value do not update this object. To update `metadata`,
8038
+ * read it, modify the copy, then assign the copy back to `metadata`.
7416
8039
  * @returns {WasmPageMetadata}
7417
8040
  */
7418
8041
  get metadata() {
@@ -7420,6 +8043,14 @@ class WasmScrapeResult {
7420
8043
  return WasmPageMetadata.__wrap(ret);
7421
8044
  }
7422
8045
  /**
8046
+ * Takes ownership of `metadata`, `responseMeta`, `markdown`, `extractionMeta`, `downloadedDocument`, `browser`.
8047
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
8048
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
8049
+ * keep a handle you already hold, build with `default()` and assign the property instead:
8050
+ * the generated setter borrows and leaves your handle alive.
8051
+ * Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`, `assets`.
8052
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
8053
+ * copy each retained element with `copyForTransfer()` before passing the array.
7423
8054
  * @param {number | null} [statusCode]
7424
8055
  * @param {string | null} [finalUrl]
7425
8056
  * @param {string | null} [contentType]
@@ -7526,6 +8157,10 @@ class WasmScrapeResult {
7526
8157
  return ret !== 0;
7527
8158
  }
7528
8159
  /**
8160
+ * Returns a detached copy of `responseMeta`.
8161
+ *
8162
+ * Changes to the returned value do not update this object. To update `responseMeta`,
8163
+ * read it, modify the copy, then assign the copy back to `responseMeta`.
7529
8164
  * @returns {WasmResponseMeta | undefined}
7530
8165
  */
7531
8166
  get responseMeta() {
@@ -7545,6 +8180,9 @@ class WasmScrapeResult {
7545
8180
  return v1;
7546
8181
  }
7547
8182
  /**
8183
+ * Takes ownership of every element in `assets`.
8184
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8185
+ * element with `copyForTransfer()` before passing the array.
7548
8186
  * @param {WasmDownloadedAsset[]} value
7549
8187
  */
7550
8188
  set assets(value) {
@@ -7571,15 +8209,11 @@ class WasmScrapeResult {
7571
8209
  wasm.wasmscraperesult_set_browserUsed(this.__wbg_ptr, value);
7572
8210
  }
7573
8211
  /**
7574
- * @param {WasmBrowserExtras | null} [value]
8212
+ * @param {WasmBrowserExtras} value
7575
8213
  */
7576
8214
  set browser(value) {
7577
- let ptr0 = 0;
7578
- if (!isLikeNone(value)) {
7579
- _assertClass(value, WasmBrowserExtras);
7580
- ptr0 = value.__destroy_into_raw();
7581
- }
7582
- wasm.wasmscraperesult_set_browser(this.__wbg_ptr, ptr0);
8215
+ _assertClass(value, WasmBrowserExtras);
8216
+ wasm.wasmscraperesult_set_browser(this.__wbg_ptr, value.__wbg_ptr);
7583
8217
  }
7584
8218
  /**
7585
8219
  * @param {string} value
@@ -7604,15 +8238,11 @@ class WasmScrapeResult {
7604
8238
  wasm.wasmscraperesult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
7605
8239
  }
7606
8240
  /**
7607
- * @param {WasmDownloadedDocument | null} [value]
8241
+ * @param {WasmDownloadedDocument} value
7608
8242
  */
7609
8243
  set downloadedDocument(value) {
7610
- let ptr0 = 0;
7611
- if (!isLikeNone(value)) {
7612
- _assertClass(value, WasmDownloadedDocument);
7613
- ptr0 = value.__destroy_into_raw();
7614
- }
7615
- wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, ptr0);
8244
+ _assertClass(value, WasmDownloadedDocument);
8245
+ wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
7616
8246
  }
7617
8247
  /**
7618
8248
  * @param {any | null} [value]
@@ -7621,17 +8251,16 @@ class WasmScrapeResult {
7621
8251
  wasm.wasmscraperesult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
7622
8252
  }
7623
8253
  /**
7624
- * @param {WasmExtractionMeta | null} [value]
8254
+ * @param {WasmExtractionMeta} value
7625
8255
  */
7626
8256
  set extractionMeta(value) {
7627
- let ptr0 = 0;
7628
- if (!isLikeNone(value)) {
7629
- _assertClass(value, WasmExtractionMeta);
7630
- ptr0 = value.__destroy_into_raw();
7631
- }
7632
- wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, ptr0);
8257
+ _assertClass(value, WasmExtractionMeta);
8258
+ wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
7633
8259
  }
7634
8260
  /**
8261
+ * Takes ownership of every element in `feeds`.
8262
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8263
+ * element with `copyForTransfer()` before passing the array.
7635
8264
  * @param {WasmFeedInfo[]} value
7636
8265
  */
7637
8266
  set feeds(value) {
@@ -7656,6 +8285,9 @@ class WasmScrapeResult {
7656
8285
  wasm.wasmscraperesult_set_html(this.__wbg_ptr, ptr0, len0);
7657
8286
  }
7658
8287
  /**
8288
+ * Takes ownership of every element in `images`.
8289
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8290
+ * element with `copyForTransfer()` before passing the array.
7659
8291
  * @param {WasmImageInfo[]} value
7660
8292
  */
7661
8293
  set images(value) {
@@ -7682,6 +8314,9 @@ class WasmScrapeResult {
7682
8314
  wasm.wasmscraperesult_set_jsRenderHint(this.__wbg_ptr, value);
7683
8315
  }
7684
8316
  /**
8317
+ * Takes ownership of every element in `jsonLd`.
8318
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8319
+ * element with `copyForTransfer()` before passing the array.
7685
8320
  * @param {WasmJsonLdEntry[]} value
7686
8321
  */
7687
8322
  set jsonLd(value) {
@@ -7690,6 +8325,9 @@ class WasmScrapeResult {
7690
8325
  wasm.wasmscraperesult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
7691
8326
  }
7692
8327
  /**
8328
+ * Takes ownership of every element in `links`.
8329
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8330
+ * element with `copyForTransfer()` before passing the array.
7693
8331
  * @param {WasmLinkInfo[]} value
7694
8332
  */
7695
8333
  set links(value) {
@@ -7698,23 +8336,18 @@ class WasmScrapeResult {
7698
8336
  wasm.wasmscraperesult_set_links(this.__wbg_ptr, ptr0, len0);
7699
8337
  }
7700
8338
  /**
7701
- * @param {WasmMarkdownResult | null} [value]
8339
+ * @param {WasmMarkdownResult} value
7702
8340
  */
7703
8341
  set markdown(value) {
7704
- let ptr0 = 0;
7705
- if (!isLikeNone(value)) {
7706
- _assertClass(value, WasmMarkdownResult);
7707
- ptr0 = value.__destroy_into_raw();
7708
- }
7709
- wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, ptr0);
8342
+ _assertClass(value, WasmMarkdownResult);
8343
+ wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
7710
8344
  }
7711
8345
  /**
7712
8346
  * @param {WasmPageMetadata} value
7713
8347
  */
7714
8348
  set metadata(value) {
7715
8349
  _assertClass(value, WasmPageMetadata);
7716
- var ptr0 = value.__destroy_into_raw();
7717
- wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, ptr0);
8350
+ wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
7718
8351
  }
7719
8352
  /**
7720
8353
  * @param {boolean} value
@@ -7729,15 +8362,11 @@ class WasmScrapeResult {
7729
8362
  wasm.wasmscraperesult_set_noindexDetected(this.__wbg_ptr, value);
7730
8363
  }
7731
8364
  /**
7732
- * @param {WasmResponseMeta | null} [value]
8365
+ * @param {WasmResponseMeta} value
7733
8366
  */
7734
8367
  set responseMeta(value) {
7735
- let ptr0 = 0;
7736
- if (!isLikeNone(value)) {
7737
- _assertClass(value, WasmResponseMeta);
7738
- ptr0 = value.__destroy_into_raw();
7739
- }
7740
- wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, ptr0);
8368
+ _assertClass(value, WasmResponseMeta);
8369
+ wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, value.__wbg_ptr);
7741
8370
  }
7742
8371
  /**
7743
8372
  * @param {string | null} [value]
@@ -7862,6 +8491,17 @@ class WasmSitemapUrl {
7862
8491
  }
7863
8492
  return v1;
7864
8493
  }
8494
+ /**
8495
+ * Return an independent handle for an ownership-taking API.
8496
+ *
8497
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8498
+ * handle must remain usable.
8499
+ * @returns {WasmSitemapUrl}
8500
+ */
8501
+ copyForTransfer() {
8502
+ const ret = wasm.wasmsitemapurl_copyForTransfer(this.__wbg_ptr);
8503
+ return WasmSitemapUrl.__wrap(ret);
8504
+ }
7865
8505
  /**
7866
8506
  * @returns {WasmSitemapUrl}
7867
8507
  */
@@ -7991,6 +8631,17 @@ class WasmSsrfPolicy {
7991
8631
  const ret = wasm.wasmssrfpolicy_allowlist(this.__wbg_ptr);
7992
8632
  return ret;
7993
8633
  }
8634
+ /**
8635
+ * Return an independent handle for an ownership-taking API.
8636
+ *
8637
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8638
+ * handle must remain usable.
8639
+ * @returns {WasmSsrfPolicy}
8640
+ */
8641
+ copyForTransfer() {
8642
+ const ret = wasm.wasmssrfpolicy_copyForTransfer(this.__wbg_ptr);
8643
+ return WasmSsrfPolicy.__wrap(ret);
8644
+ }
7994
8645
  /**
7995
8646
  * @returns {WasmSsrfPolicy}
7996
8647
  */
@@ -8005,6 +8656,13 @@ class WasmSsrfPolicy {
8005
8656
  const ret = wasm.wasmssrfpolicy_denyPrivate(this.__wbg_ptr);
8006
8657
  return ret !== 0;
8007
8658
  }
8659
+ /**
8660
+ * @returns {any}
8661
+ */
8662
+ get denylist() {
8663
+ const ret = wasm.wasmssrfpolicy_denylist(this.__wbg_ptr);
8664
+ return ret;
8665
+ }
8008
8666
  /**
8009
8667
  * Create a policy from environment variables.
8010
8668
  *
@@ -8017,13 +8675,13 @@ class WasmSsrfPolicy {
8017
8675
  * - Rust-side SSRF checking is unenforceable and redundant in a wasm32 context.
8018
8676
  * - For testing and localhost access, the host's network sandbox is the enforcing boundary.
8019
8677
  *
8020
- * **Node.js caveat:** `deny_private` (whatever its value) has no effect on hostname-based
8021
- * requests under `wasm32`. There is no DNS resolution on this target, so `validate_url`
8022
- * only ever checks a literal IP host; a domain name falls straight through to `Ok(())`. In a
8023
- * browser this is covered by same-origin/CORS. Node's `fetch` enforces no CORS, so a Node
8024
- * service embedding this wasm module can be driven to internal hosts by domain name even
8025
- * though `deny_private = true`. Do not rely on this policy to stop that in Node — enforce
8026
- * egress restrictions (network policy, firewall, proxy allowlist) outside the process.
8678
+ * **Node.js caveat:** `deny_private` and `denylist` have no effect on hostname-based requests
8679
+ * under `wasm32`. There is no DNS resolution on this target, so `validate_url` only ever
8680
+ * checks a literal IP host; a domain name falls straight through to `Ok(())`. In a browser
8681
+ * this is covered by same-origin/CORS. Node's `fetch` enforces no CORS, so a Node service
8682
+ * embedding this wasm module can be driven to internal hosts by domain name despite the
8683
+ * policy. Enforce egress restrictions (network policy, firewall, proxy allowlist) outside
8684
+ * the process.
8027
8685
  * @returns {WasmSsrfPolicy}
8028
8686
  */
8029
8687
  static fromEnv() {
@@ -8040,13 +8698,14 @@ class WasmSsrfPolicy {
8040
8698
  /**
8041
8699
  * @param {boolean | null} [denyPrivate]
8042
8700
  * @param {any | null} [allowlist]
8701
+ * @param {any | null} [denylist]
8043
8702
  * @param {number | null} [maxRedirects]
8044
8703
  * @param {string[] | null} [schemeAllowlist]
8045
8704
  */
8046
- constructor(denyPrivate, allowlist, maxRedirects, schemeAllowlist) {
8705
+ constructor(denyPrivate, allowlist, denylist, maxRedirects, schemeAllowlist) {
8047
8706
  var ptr0 = isLikeNone(schemeAllowlist) ? 0 : passArrayJsValueToWasm0(schemeAllowlist, wasm.__wbindgen_malloc);
8048
8707
  var len0 = WASM_VECTOR_LEN;
8049
- const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(maxRedirects) ? 0xFFFFFF : maxRedirects, ptr0, len0);
8708
+ const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(denylist) ? 0 : addToExternrefTable0(denylist), isLikeNone(maxRedirects) ? 0xFFFFFF : maxRedirects, ptr0, len0);
8050
8709
  this.__wbg_ptr = ret;
8051
8710
  WasmSsrfPolicyFinalization.register(this, this.__wbg_ptr, this);
8052
8711
  return this;
@@ -8072,6 +8731,12 @@ class WasmSsrfPolicy {
8072
8731
  set denyPrivate(value) {
8073
8732
  wasm.wasmssrfpolicy_set_denyPrivate(this.__wbg_ptr, value);
8074
8733
  }
8734
+ /**
8735
+ * @param {any} value
8736
+ */
8737
+ set denylist(value) {
8738
+ wasm.wasmssrfpolicy_set_denylist(this.__wbg_ptr, value);
8739
+ }
8075
8740
  /**
8076
8741
  * @param {number} value
8077
8742
  */
@@ -8756,12 +9421,12 @@ function __wbg_get_imports() {
8756
9421
  return ret;
8757
9422
  },
8758
9423
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
8759
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1352, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
9424
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1331, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
8760
9425
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2eedacf566f3748c);
8761
9426
  return ret;
8762
9427
  },
8763
9428
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
8764
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9429
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1222, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8765
9430
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3a7ccac3e94bbb5c);
8766
9431
  return ret;
8767
9432
  },