@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 @@ export 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
  */
@@ -167,6 +178,17 @@ export class WasmArticleMetadata {
167
178
  }
168
179
  return v1;
169
180
  }
181
+ /**
182
+ * Return an independent handle for an ownership-taking API.
183
+ *
184
+ * Use `copyForTransfer()` for each class value placed in an array when the original
185
+ * handle must remain usable.
186
+ * @returns {WasmArticleMetadata}
187
+ */
188
+ copyForTransfer() {
189
+ const ret = wasm.wasmarticlemetadata_copyForTransfer(this.__wbg_ptr);
190
+ return WasmArticleMetadata.__wrap(ret);
191
+ }
170
192
  /**
171
193
  * @returns {WasmArticleMetadata}
172
194
  */
@@ -487,6 +509,20 @@ export class WasmBatchCrawlResult {
487
509
  const ptr = this.__destroy_into_raw();
488
510
  wasm.__wbg_wasmbatchcrawlresult_free(ptr, 0);
489
511
  }
512
+ clearResult() {
513
+ wasm.wasmbatchcrawlresult_clearResult(this.__wbg_ptr);
514
+ }
515
+ /**
516
+ * Return an independent handle for an ownership-taking API.
517
+ *
518
+ * Use `copyForTransfer()` for each class value placed in an array when the original
519
+ * handle must remain usable.
520
+ * @returns {WasmBatchCrawlResult}
521
+ */
522
+ copyForTransfer() {
523
+ const ret = wasm.wasmbatchcrawlresult_copyForTransfer(this.__wbg_ptr);
524
+ return WasmBatchCrawlResult.__wrap(ret);
525
+ }
490
526
  /**
491
527
  * @returns {WasmBatchCrawlResult}
492
528
  */
@@ -507,6 +543,11 @@ export class WasmBatchCrawlResult {
507
543
  return v1;
508
544
  }
509
545
  /**
546
+ * Takes ownership of `result`.
547
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
548
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
549
+ * keep a handle you already hold, build with `default()` and assign the property instead:
550
+ * the generated setter borrows and leaves your handle alive.
510
551
  * @param {string | null} [url]
511
552
  * @param {WasmCrawlResult | null} [result]
512
553
  * @param {string | null} [error]
@@ -527,6 +568,10 @@ export class WasmBatchCrawlResult {
527
568
  return this;
528
569
  }
529
570
  /**
571
+ * Returns a detached copy of `result`.
572
+ *
573
+ * Changes to the returned value do not update this object. To update `result`,
574
+ * read it, modify the copy, then assign the copy back to `result`.
530
575
  * @returns {WasmCrawlResult | undefined}
531
576
  */
532
577
  get result() {
@@ -542,15 +587,11 @@ export class WasmBatchCrawlResult {
542
587
  wasm.wasmbatchcrawlresult_set_error(this.__wbg_ptr, ptr0, len0);
543
588
  }
544
589
  /**
545
- * @param {WasmCrawlResult | null} [value]
590
+ * @param {WasmCrawlResult} value
546
591
  */
547
592
  set result(value) {
548
- let ptr0 = 0;
549
- if (!isLikeNone(value)) {
550
- _assertClass(value, WasmCrawlResult);
551
- ptr0 = value.__destroy_into_raw();
552
- }
553
- wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, ptr0);
593
+ _assertClass(value, WasmCrawlResult);
594
+ wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, value.__wbg_ptr);
554
595
  }
555
596
  /**
556
597
  * @param {string} value
@@ -608,6 +649,17 @@ export class WasmBatchCrawlResults {
608
649
  const ret = wasm.wasmbatchcrawlresults_completedCount(this.__wbg_ptr);
609
650
  return ret >>> 0;
610
651
  }
652
+ /**
653
+ * Return an independent handle for an ownership-taking API.
654
+ *
655
+ * Use `copyForTransfer()` for each class value placed in an array when the original
656
+ * handle must remain usable.
657
+ * @returns {WasmBatchCrawlResults}
658
+ */
659
+ copyForTransfer() {
660
+ const ret = wasm.wasmbatchcrawlresults_copyForTransfer(this.__wbg_ptr);
661
+ return WasmBatchCrawlResults.__wrap(ret);
662
+ }
611
663
  /**
612
664
  * @returns {WasmBatchCrawlResults}
613
665
  */
@@ -623,6 +675,9 @@ export class WasmBatchCrawlResults {
623
675
  return ret >>> 0;
624
676
  }
625
677
  /**
678
+ * Takes ownership of every element in `results`.
679
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
680
+ * copy each retained element with `copyForTransfer()` before passing the array.
626
681
  * @param {WasmBatchCrawlResult[] | null} [results]
627
682
  * @param {number | null} [totalCount]
628
683
  * @param {number | null} [completedCount]
@@ -637,6 +692,10 @@ export class WasmBatchCrawlResults {
637
692
  return this;
638
693
  }
639
694
  /**
695
+ * Returns detached copies of the elements in `results`.
696
+ *
697
+ * Changes to the returned values do not update this object. Modify the copies,
698
+ * then assign the array back to `results`.
640
699
  * @returns {WasmBatchCrawlResult[]}
641
700
  */
642
701
  get results() {
@@ -658,6 +717,9 @@ export class WasmBatchCrawlResults {
658
717
  wasm.wasmbatchcrawlresults_set_failedCount(this.__wbg_ptr, value);
659
718
  }
660
719
  /**
720
+ * Takes ownership of every element in `results`.
721
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
722
+ * element with `copyForTransfer()` before passing the array.
661
723
  * @param {WasmBatchCrawlResult[]} value
662
724
  */
663
725
  set results(value) {
@@ -707,6 +769,20 @@ export class WasmBatchScrapeResult {
707
769
  const ptr = this.__destroy_into_raw();
708
770
  wasm.__wbg_wasmbatchscraperesult_free(ptr, 0);
709
771
  }
772
+ clearResult() {
773
+ wasm.wasmbatchscraperesult_clearResult(this.__wbg_ptr);
774
+ }
775
+ /**
776
+ * Return an independent handle for an ownership-taking API.
777
+ *
778
+ * Use `copyForTransfer()` for each class value placed in an array when the original
779
+ * handle must remain usable.
780
+ * @returns {WasmBatchScrapeResult}
781
+ */
782
+ copyForTransfer() {
783
+ const ret = wasm.wasmbatchscraperesult_copyForTransfer(this.__wbg_ptr);
784
+ return WasmBatchScrapeResult.__wrap(ret);
785
+ }
710
786
  /**
711
787
  * @returns {WasmBatchScrapeResult}
712
788
  */
@@ -727,6 +803,11 @@ export class WasmBatchScrapeResult {
727
803
  return v1;
728
804
  }
729
805
  /**
806
+ * Takes ownership of `result`.
807
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
808
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
809
+ * keep a handle you already hold, build with `default()` and assign the property instead:
810
+ * the generated setter borrows and leaves your handle alive.
730
811
  * @param {string | null} [url]
731
812
  * @param {WasmScrapeResult | null} [result]
732
813
  * @param {string | null} [error]
@@ -747,6 +828,10 @@ export class WasmBatchScrapeResult {
747
828
  return this;
748
829
  }
749
830
  /**
831
+ * Returns a detached copy of `result`.
832
+ *
833
+ * Changes to the returned value do not update this object. To update `result`,
834
+ * read it, modify the copy, then assign the copy back to `result`.
750
835
  * @returns {WasmScrapeResult | undefined}
751
836
  */
752
837
  get result() {
@@ -762,15 +847,11 @@ export class WasmBatchScrapeResult {
762
847
  wasm.wasmbatchscraperesult_set_error(this.__wbg_ptr, ptr0, len0);
763
848
  }
764
849
  /**
765
- * @param {WasmScrapeResult | null} [value]
850
+ * @param {WasmScrapeResult} value
766
851
  */
767
852
  set result(value) {
768
- let ptr0 = 0;
769
- if (!isLikeNone(value)) {
770
- _assertClass(value, WasmScrapeResult);
771
- ptr0 = value.__destroy_into_raw();
772
- }
773
- wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, ptr0);
853
+ _assertClass(value, WasmScrapeResult);
854
+ wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, value.__wbg_ptr);
774
855
  }
775
856
  /**
776
857
  * @param {string} value
@@ -828,6 +909,17 @@ export class WasmBatchScrapeResults {
828
909
  const ret = wasm.wasmbatchscraperesults_completedCount(this.__wbg_ptr);
829
910
  return ret >>> 0;
830
911
  }
912
+ /**
913
+ * Return an independent handle for an ownership-taking API.
914
+ *
915
+ * Use `copyForTransfer()` for each class value placed in an array when the original
916
+ * handle must remain usable.
917
+ * @returns {WasmBatchScrapeResults}
918
+ */
919
+ copyForTransfer() {
920
+ const ret = wasm.wasmbatchscraperesults_copyForTransfer(this.__wbg_ptr);
921
+ return WasmBatchScrapeResults.__wrap(ret);
922
+ }
831
923
  /**
832
924
  * @returns {WasmBatchScrapeResults}
833
925
  */
@@ -843,6 +935,9 @@ export class WasmBatchScrapeResults {
843
935
  return ret >>> 0;
844
936
  }
845
937
  /**
938
+ * Takes ownership of every element in `results`.
939
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
940
+ * copy each retained element with `copyForTransfer()` before passing the array.
846
941
  * @param {WasmBatchScrapeResult[] | null} [results]
847
942
  * @param {number | null} [totalCount]
848
943
  * @param {number | null} [completedCount]
@@ -857,6 +952,10 @@ export class WasmBatchScrapeResults {
857
952
  return this;
858
953
  }
859
954
  /**
955
+ * Returns detached copies of the elements in `results`.
956
+ *
957
+ * Changes to the returned values do not update this object. Modify the copies,
958
+ * then assign the array back to `results`.
860
959
  * @returns {WasmBatchScrapeResult[]}
861
960
  */
862
961
  get results() {
@@ -878,6 +977,9 @@ export class WasmBatchScrapeResults {
878
977
  wasm.wasmbatchscraperesults_set_failedCount(this.__wbg_ptr, value);
879
978
  }
880
979
  /**
980
+ * Takes ownership of every element in `results`.
981
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
982
+ * element with `copyForTransfer()` before passing the array.
881
983
  * @param {WasmBatchScrapeResult[]} value
882
984
  */
883
985
  set results(value) {
@@ -982,6 +1084,20 @@ export class WasmBrowserConfig {
982
1084
  }
983
1085
  return v1;
984
1086
  }
1087
+ clearProxy() {
1088
+ wasm.wasmbrowserconfig_clearProxy(this.__wbg_ptr);
1089
+ }
1090
+ /**
1091
+ * Return an independent handle for an ownership-taking API.
1092
+ *
1093
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1094
+ * handle must remain usable.
1095
+ * @returns {WasmBrowserConfig}
1096
+ */
1097
+ copyForTransfer() {
1098
+ const ret = wasm.wasmbrowserconfig_copyForTransfer(this.__wbg_ptr);
1099
+ return WasmBrowserConfig.__wrap(ret);
1100
+ }
985
1101
  /**
986
1102
  * @returns {WasmBrowserConfig}
987
1103
  */
@@ -1036,6 +1152,11 @@ export class WasmBrowserConfig {
1036
1152
  }
1037
1153
  }
1038
1154
  /**
1155
+ * Takes ownership of `proxy`.
1156
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1157
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1158
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1159
+ * the generated setter borrows and leaves your handle alive.
1039
1160
  * @param {WasmBrowserMode | null} [mode]
1040
1161
  * @param {WasmBrowserBackend | null} [backend]
1041
1162
  * @param {bigint | null} [timeout]
@@ -1087,6 +1208,10 @@ export class WasmBrowserConfig {
1087
1208
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
1088
1209
  }
1089
1210
  /**
1211
+ * Returns a detached copy of `proxy`.
1212
+ *
1213
+ * Changes to the returned value do not update this object. To update `proxy`,
1214
+ * read it, modify the copy, then assign the copy back to `proxy`.
1090
1215
  * @returns {WasmProxyConfig | undefined}
1091
1216
  */
1092
1217
  get proxy() {
@@ -1183,15 +1308,11 @@ export class WasmBrowserConfig {
1183
1308
  wasm.wasmbrowserconfig_set_overallTimeout(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
1184
1309
  }
1185
1310
  /**
1186
- * @param {WasmProxyConfig | null} [value]
1311
+ * @param {WasmProxyConfig} value
1187
1312
  */
1188
1313
  set proxy(value) {
1189
- let ptr0 = 0;
1190
- if (!isLikeNone(value)) {
1191
- _assertClass(value, WasmProxyConfig);
1192
- ptr0 = value.__destroy_into_raw();
1193
- }
1194
- wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, ptr0);
1314
+ _assertClass(value, WasmProxyConfig);
1315
+ wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
1195
1316
  }
1196
1317
  /**
1197
1318
  * @param {string | null} [value]
@@ -1300,6 +1421,10 @@ export class WasmBrowserExtras {
1300
1421
  wasm.__wbg_wasmbrowserextras_free(ptr, 0);
1301
1422
  }
1302
1423
  /**
1424
+ * Returns detached copies of the elements in `cookies`.
1425
+ *
1426
+ * Changes to the returned values do not update this object. Modify the copies,
1427
+ * then assign the array back to `cookies`.
1303
1428
  * @returns {WasmCookieInfo[]}
1304
1429
  */
1305
1430
  get cookies() {
@@ -1308,6 +1433,17 @@ export class WasmBrowserExtras {
1308
1433
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1309
1434
  return v1;
1310
1435
  }
1436
+ /**
1437
+ * Return an independent handle for an ownership-taking API.
1438
+ *
1439
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1440
+ * handle must remain usable.
1441
+ * @returns {WasmBrowserExtras}
1442
+ */
1443
+ copyForTransfer() {
1444
+ const ret = wasm.wasmbrowserextras_copyForTransfer(this.__wbg_ptr);
1445
+ return WasmBrowserExtras.__wrap(ret);
1446
+ }
1311
1447
  /**
1312
1448
  * @returns {WasmBrowserExtras}
1313
1449
  */
@@ -1323,6 +1459,10 @@ export class WasmBrowserExtras {
1323
1459
  return ret;
1324
1460
  }
1325
1461
  /**
1462
+ * Returns detached copies of the elements in `networkEvents`.
1463
+ *
1464
+ * Changes to the returned values do not update this object. Modify the copies,
1465
+ * then assign the array back to `networkEvents`.
1326
1466
  * @returns {WasmResponseMeta[]}
1327
1467
  */
1328
1468
  get networkEvents() {
@@ -1332,6 +1472,9 @@ export class WasmBrowserExtras {
1332
1472
  return v1;
1333
1473
  }
1334
1474
  /**
1475
+ * Takes ownership of every element in `networkEvents`, `cookies`.
1476
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1477
+ * copy each retained element with `copyForTransfer()` before passing the array.
1335
1478
  * @param {WasmResponseMeta[] | null} [networkEvents]
1336
1479
  * @param {WasmCookieInfo[] | null} [cookies]
1337
1480
  * @param {any | null} [evalResult]
@@ -1347,6 +1490,9 @@ export class WasmBrowserExtras {
1347
1490
  return this;
1348
1491
  }
1349
1492
  /**
1493
+ * Takes ownership of every element in `cookies`.
1494
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1495
+ * element with `copyForTransfer()` before passing the array.
1350
1496
  * @param {WasmCookieInfo[]} value
1351
1497
  */
1352
1498
  set cookies(value) {
@@ -1361,6 +1507,9 @@ export class WasmBrowserExtras {
1361
1507
  wasm.wasmbrowserextras_set_evalResult(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
1362
1508
  }
1363
1509
  /**
1510
+ * Takes ownership of every element in `networkEvents`.
1511
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1512
+ * element with `copyForTransfer()` before passing the array.
1364
1513
  * @param {WasmResponseMeta[]} value
1365
1514
  */
1366
1515
  set networkEvents(value) {
@@ -1419,6 +1568,17 @@ export class WasmCitationReference {
1419
1568
  const ptr = this.__destroy_into_raw();
1420
1569
  wasm.__wbg_wasmcitationreference_free(ptr, 0);
1421
1570
  }
1571
+ /**
1572
+ * Return an independent handle for an ownership-taking API.
1573
+ *
1574
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1575
+ * handle must remain usable.
1576
+ * @returns {WasmCitationReference}
1577
+ */
1578
+ copyForTransfer() {
1579
+ const ret = wasm.wasmcitationreference_copyForTransfer(this.__wbg_ptr);
1580
+ return WasmCitationReference.__wrap(ret);
1581
+ }
1422
1582
  /**
1423
1583
  * @returns {WasmCitationReference}
1424
1584
  */
@@ -1538,6 +1698,17 @@ export class WasmCitationResult {
1538
1698
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1539
1699
  }
1540
1700
  }
1701
+ /**
1702
+ * Return an independent handle for an ownership-taking API.
1703
+ *
1704
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1705
+ * handle must remain usable.
1706
+ * @returns {WasmCitationResult}
1707
+ */
1708
+ copyForTransfer() {
1709
+ const ret = wasm.wasmcitationresult_copyForTransfer(this.__wbg_ptr);
1710
+ return WasmCitationResult.__wrap(ret);
1711
+ }
1541
1712
  /**
1542
1713
  * @returns {WasmCitationResult}
1543
1714
  */
@@ -1546,6 +1717,9 @@ export class WasmCitationResult {
1546
1717
  return WasmCitationResult.__wrap(ret);
1547
1718
  }
1548
1719
  /**
1720
+ * Takes ownership of every element in `references`.
1721
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1722
+ * copy each retained element with `copyForTransfer()` before passing the array.
1549
1723
  * @param {string | null} [content]
1550
1724
  * @param {WasmCitationReference[] | null} [references]
1551
1725
  */
@@ -1560,6 +1734,10 @@ export class WasmCitationResult {
1560
1734
  return this;
1561
1735
  }
1562
1736
  /**
1737
+ * Returns detached copies of the elements in `references`.
1738
+ *
1739
+ * Changes to the returned values do not update this object. Modify the copies,
1740
+ * then assign the array back to `references`.
1563
1741
  * @returns {WasmCitationReference[]}
1564
1742
  */
1565
1743
  get references() {
@@ -1577,6 +1755,9 @@ export class WasmCitationResult {
1577
1755
  wasm.wasmcitationresult_set_content(this.__wbg_ptr, ptr0, len0);
1578
1756
  }
1579
1757
  /**
1758
+ * Takes ownership of every element in `references`.
1759
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1760
+ * element with `copyForTransfer()` before passing the array.
1580
1761
  * @param {WasmCitationReference[]} value
1581
1762
  */
1582
1763
  set references(value) {
@@ -1611,6 +1792,17 @@ export class WasmContentConfig {
1611
1792
  const ptr = this.__destroy_into_raw();
1612
1793
  wasm.__wbg_wasmcontentconfig_free(ptr, 0);
1613
1794
  }
1795
+ /**
1796
+ * Return an independent handle for an ownership-taking API.
1797
+ *
1798
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1799
+ * handle must remain usable.
1800
+ * @returns {WasmContentConfig}
1801
+ */
1802
+ copyForTransfer() {
1803
+ const ret = wasm.wasmcontentconfig_copyForTransfer(this.__wbg_ptr);
1804
+ return WasmContentConfig.__wrap(ret);
1805
+ }
1614
1806
  /**
1615
1807
  * @returns {WasmContentConfig}
1616
1808
  */
@@ -1887,6 +2079,17 @@ export class WasmCookieInfo {
1887
2079
  const ptr = this.__destroy_into_raw();
1888
2080
  wasm.__wbg_wasmcookieinfo_free(ptr, 0);
1889
2081
  }
2082
+ /**
2083
+ * Return an independent handle for an ownership-taking API.
2084
+ *
2085
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2086
+ * handle must remain usable.
2087
+ * @returns {WasmCookieInfo}
2088
+ */
2089
+ copyForTransfer() {
2090
+ const ret = wasm.wasmcookieinfo_copyForTransfer(this.__wbg_ptr);
2091
+ return WasmCookieInfo.__wrap(ret);
2092
+ }
1890
2093
  /**
1891
2094
  * @returns {WasmCookieInfo}
1892
2095
  */
@@ -2078,6 +2281,10 @@ export class WasmCrawlConfig {
2078
2281
  return v1;
2079
2282
  }
2080
2283
  /**
2284
+ * Returns a detached copy of `browser`.
2285
+ *
2286
+ * Changes to the returned value do not update this object. To update `browser`,
2287
+ * read it, modify the copy, then assign the copy back to `browser`.
2081
2288
  * @returns {WasmBrowserConfig}
2082
2289
  */
2083
2290
  get browser() {
@@ -2091,6 +2298,9 @@ export class WasmCrawlConfig {
2091
2298
  const ret = wasm.wasmcrawlconfig_captureScreenshot(this.__wbg_ptr);
2092
2299
  return ret !== 0;
2093
2300
  }
2301
+ clearProxy() {
2302
+ wasm.wasmcrawlconfig_clearProxy(this.__wbg_ptr);
2303
+ }
2094
2304
  /**
2095
2305
  * @returns {string | undefined}
2096
2306
  */
@@ -2104,6 +2314,10 @@ export class WasmCrawlConfig {
2104
2314
  return v1;
2105
2315
  }
2106
2316
  /**
2317
+ * Returns a detached copy of `content`.
2318
+ *
2319
+ * Changes to the returned value do not update this object. To update `content`,
2320
+ * read it, modify the copy, then assign the copy back to `content`.
2107
2321
  * @returns {WasmContentConfig}
2108
2322
  */
2109
2323
  get content() {
@@ -2117,6 +2331,17 @@ export class WasmCrawlConfig {
2117
2331
  const ret = wasm.wasmcrawlconfig_cookiesEnabled(this.__wbg_ptr);
2118
2332
  return ret !== 0;
2119
2333
  }
2334
+ /**
2335
+ * Return an independent handle for an ownership-taking API.
2336
+ *
2337
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2338
+ * handle must remain usable.
2339
+ * @returns {WasmCrawlConfig}
2340
+ */
2341
+ copyForTransfer() {
2342
+ const ret = wasm.wasmcrawlconfig_copyForTransfer(this.__wbg_ptr);
2343
+ return WasmCrawlConfig.__wrap(ret);
2344
+ }
2120
2345
  /**
2121
2346
  * @returns {string}
2122
2347
  */
@@ -2308,6 +2533,11 @@ export class WasmCrawlConfig {
2308
2533
  return ret >>> 0;
2309
2534
  }
2310
2535
  /**
2536
+ * Takes ownership of `content`, `browser`, `proxy`, `ssrf`.
2537
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2538
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2539
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2540
+ * the generated setter borrows and leaves your handle alive.
2311
2541
  * @param {WasmCrawlStrategyKind | null} [crawlStrategy]
2312
2542
  * @param {boolean | null} [respectRobotsTxt]
2313
2543
  * @param {boolean | null} [softHttpErrors]
@@ -2433,6 +2663,10 @@ export class WasmCrawlConfig {
2433
2663
  return ret !== 0;
2434
2664
  }
2435
2665
  /**
2666
+ * Returns a detached copy of `proxy`.
2667
+ *
2668
+ * Changes to the returned value do not update this object. To update `proxy`,
2669
+ * read it, modify the copy, then assign the copy back to `proxy`.
2436
2670
  * @returns {WasmProxyConfig | undefined}
2437
2671
  */
2438
2672
  get proxy() {
@@ -2560,8 +2794,7 @@ export class WasmCrawlConfig {
2560
2794
  */
2561
2795
  set browser(value) {
2562
2796
  _assertClass(value, WasmBrowserConfig);
2563
- var ptr0 = value.__destroy_into_raw();
2564
- wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, ptr0);
2797
+ wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, value.__wbg_ptr);
2565
2798
  }
2566
2799
  /**
2567
2800
  * @param {boolean} value
@@ -2580,8 +2813,7 @@ export class WasmCrawlConfig {
2580
2813
  */
2581
2814
  set content(value) {
2582
2815
  _assertClass(value, WasmContentConfig);
2583
- var ptr0 = value.__destroy_into_raw();
2584
- wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, ptr0);
2816
+ wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, value.__wbg_ptr);
2585
2817
  }
2586
2818
  /**
2587
2819
  * @param {boolean} value
@@ -2744,15 +2976,11 @@ export class WasmCrawlConfig {
2744
2976
  wasm.wasmcrawlconfig_set_pathPatternsMatchUrl(this.__wbg_ptr, value);
2745
2977
  }
2746
2978
  /**
2747
- * @param {WasmProxyConfig | null} [value]
2979
+ * @param {WasmProxyConfig} value
2748
2980
  */
2749
2981
  set proxy(value) {
2750
- let ptr0 = 0;
2751
- if (!isLikeNone(value)) {
2752
- _assertClass(value, WasmProxyConfig);
2753
- ptr0 = value.__destroy_into_raw();
2754
- }
2755
- wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, ptr0);
2982
+ _assertClass(value, WasmProxyConfig);
2983
+ wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
2756
2984
  }
2757
2985
  /**
2758
2986
  * @param {number} value
@@ -2835,8 +3063,7 @@ export class WasmCrawlConfig {
2835
3063
  */
2836
3064
  set ssrf(value) {
2837
3065
  _assertClass(value, WasmSsrfPolicy);
2838
- var ptr0 = value.__destroy_into_raw();
2839
- wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, ptr0);
3066
+ wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, value.__wbg_ptr);
2840
3067
  }
2841
3068
  /**
2842
3069
  * @param {boolean} value
@@ -2897,6 +3124,10 @@ export class WasmCrawlConfig {
2897
3124
  return ret === 0xFFFFFF ? undefined : ret !== 0;
2898
3125
  }
2899
3126
  /**
3127
+ * Returns a detached copy of `ssrf`.
3128
+ *
3129
+ * Changes to the returned value do not update this object. To update `ssrf`,
3130
+ * read it, modify the copy, then assign the copy back to `ssrf`.
2900
3131
  * @returns {WasmSsrfPolicy}
2901
3132
  */
2902
3133
  get ssrf() {
@@ -2997,6 +3228,17 @@ export class WasmCrawlEngineHandle {
2997
3228
  const ptr = this.__destroy_into_raw();
2998
3229
  wasm.__wbg_wasmcrawlenginehandle_free(ptr, 0);
2999
3230
  }
3231
+ /**
3232
+ * Return an independent handle for an ownership-taking API.
3233
+ *
3234
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3235
+ * handle must remain usable.
3236
+ * @returns {WasmCrawlEngineHandle}
3237
+ */
3238
+ copyForTransfer() {
3239
+ const ret = wasm.wasmcrawlenginehandle_copyForTransfer(this.__wbg_ptr);
3240
+ return WasmCrawlEngineHandle.__wrap(ret);
3241
+ }
3000
3242
  }
3001
3243
  if (Symbol.dispose) WasmCrawlEngineHandle.prototype[Symbol.dispose] = WasmCrawlEngineHandle.prototype.free;
3002
3244
 
@@ -3040,6 +3282,15 @@ export class WasmCrawlPageResult {
3040
3282
  const ret = wasm.wasmcrawlpageresult_browserUsed(this.__wbg_ptr);
3041
3283
  return ret !== 0;
3042
3284
  }
3285
+ clearDownloadedDocument() {
3286
+ wasm.wasmcrawlpageresult_clearDownloadedDocument(this.__wbg_ptr);
3287
+ }
3288
+ clearExtractionMeta() {
3289
+ wasm.wasmcrawlpageresult_clearExtractionMeta(this.__wbg_ptr);
3290
+ }
3291
+ clearMarkdown() {
3292
+ wasm.wasmcrawlpageresult_clearMarkdown(this.__wbg_ptr);
3293
+ }
3043
3294
  /**
3044
3295
  * @returns {string}
3045
3296
  */
@@ -3055,6 +3306,17 @@ export class WasmCrawlPageResult {
3055
3306
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3056
3307
  }
3057
3308
  }
3309
+ /**
3310
+ * Return an independent handle for an ownership-taking API.
3311
+ *
3312
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3313
+ * handle must remain usable.
3314
+ * @returns {WasmCrawlPageResult}
3315
+ */
3316
+ copyForTransfer() {
3317
+ const ret = wasm.wasmcrawlpageresult_copyForTransfer(this.__wbg_ptr);
3318
+ return WasmCrawlPageResult.__wrap(ret);
3319
+ }
3058
3320
  /**
3059
3321
  * @returns {WasmCrawlPageResult}
3060
3322
  */
@@ -3082,6 +3344,10 @@ export class WasmCrawlPageResult {
3082
3344
  return v1;
3083
3345
  }
3084
3346
  /**
3347
+ * Returns a detached copy of `downloadedDocument`.
3348
+ *
3349
+ * Changes to the returned value do not update this object. To update `downloadedDocument`,
3350
+ * read it, modify the copy, then assign the copy back to `downloadedDocument`.
3085
3351
  * @returns {WasmDownloadedDocument | undefined}
3086
3352
  */
3087
3353
  get downloadedDocument() {
@@ -3096,6 +3362,10 @@ export class WasmCrawlPageResult {
3096
3362
  return ret;
3097
3363
  }
3098
3364
  /**
3365
+ * Returns a detached copy of `extractionMeta`.
3366
+ *
3367
+ * Changes to the returned value do not update this object. To update `extractionMeta`,
3368
+ * read it, modify the copy, then assign the copy back to `extractionMeta`.
3099
3369
  * @returns {WasmExtractionMeta | undefined}
3100
3370
  */
3101
3371
  get extractionMeta() {
@@ -3103,6 +3373,10 @@ export class WasmCrawlPageResult {
3103
3373
  return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
3104
3374
  }
3105
3375
  /**
3376
+ * Returns detached copies of the elements in `feeds`.
3377
+ *
3378
+ * Changes to the returned values do not update this object. Modify the copies,
3379
+ * then assign the array back to `feeds`.
3106
3380
  * @returns {WasmFeedInfo[]}
3107
3381
  */
3108
3382
  get feeds() {
@@ -3142,6 +3416,10 @@ export class WasmCrawlPageResult {
3142
3416
  }
3143
3417
  }
3144
3418
  /**
3419
+ * Returns detached copies of the elements in `images`.
3420
+ *
3421
+ * Changes to the returned values do not update this object. Modify the copies,
3422
+ * then assign the array back to `images`.
3145
3423
  * @returns {WasmImageInfo[]}
3146
3424
  */
3147
3425
  get images() {
@@ -3158,6 +3436,10 @@ export class WasmCrawlPageResult {
3158
3436
  return ret !== 0;
3159
3437
  }
3160
3438
  /**
3439
+ * Returns detached copies of the elements in `jsonLd`.
3440
+ *
3441
+ * Changes to the returned values do not update this object. Modify the copies,
3442
+ * then assign the array back to `jsonLd`.
3161
3443
  * @returns {WasmJsonLdEntry[]}
3162
3444
  */
3163
3445
  get jsonLd() {
@@ -3167,6 +3449,10 @@ export class WasmCrawlPageResult {
3167
3449
  return v1;
3168
3450
  }
3169
3451
  /**
3452
+ * Returns detached copies of the elements in `links`.
3453
+ *
3454
+ * Changes to the returned values do not update this object. Modify the copies,
3455
+ * then assign the array back to `links`.
3170
3456
  * @returns {WasmLinkInfo[]}
3171
3457
  */
3172
3458
  get links() {
@@ -3176,6 +3462,10 @@ export class WasmCrawlPageResult {
3176
3462
  return v1;
3177
3463
  }
3178
3464
  /**
3465
+ * Returns a detached copy of `markdown`.
3466
+ *
3467
+ * Changes to the returned value do not update this object. To update `markdown`,
3468
+ * read it, modify the copy, then assign the copy back to `markdown`.
3179
3469
  * @returns {WasmMarkdownResult | undefined}
3180
3470
  */
3181
3471
  get markdown() {
@@ -3183,6 +3473,10 @@ export class WasmCrawlPageResult {
3183
3473
  return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
3184
3474
  }
3185
3475
  /**
3476
+ * Returns a detached copy of `metadata`.
3477
+ *
3478
+ * Changes to the returned value do not update this object. To update `metadata`,
3479
+ * read it, modify the copy, then assign the copy back to `metadata`.
3186
3480
  * @returns {WasmPageMetadata}
3187
3481
  */
3188
3482
  get metadata() {
@@ -3190,6 +3484,14 @@ export class WasmCrawlPageResult {
3190
3484
  return WasmPageMetadata.__wrap(ret);
3191
3485
  }
3192
3486
  /**
3487
+ * Takes ownership of `metadata`, `markdown`, `extractionMeta`, `downloadedDocument`.
3488
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
3489
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
3490
+ * keep a handle you already hold, build with `default()` and assign the property instead:
3491
+ * the generated setter borrows and leaves your handle alive.
3492
+ * Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`.
3493
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3494
+ * copy each retained element with `copyForTransfer()` before passing the array.
3193
3495
  * @param {string | null} [url]
3194
3496
  * @param {string | null} [normalizedUrl]
3195
3497
  * @param {number | null} [statusCode]
@@ -3336,15 +3638,11 @@ export class WasmCrawlPageResult {
3336
3638
  wasm.wasmcrawlpageresult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
3337
3639
  }
3338
3640
  /**
3339
- * @param {WasmDownloadedDocument | null} [value]
3641
+ * @param {WasmDownloadedDocument} value
3340
3642
  */
3341
3643
  set downloadedDocument(value) {
3342
- let ptr0 = 0;
3343
- if (!isLikeNone(value)) {
3344
- _assertClass(value, WasmDownloadedDocument);
3345
- ptr0 = value.__destroy_into_raw();
3346
- }
3347
- wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, ptr0);
3644
+ _assertClass(value, WasmDownloadedDocument);
3645
+ wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
3348
3646
  }
3349
3647
  /**
3350
3648
  * @param {any | null} [value]
@@ -3353,17 +3651,16 @@ export class WasmCrawlPageResult {
3353
3651
  wasm.wasmcrawlpageresult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
3354
3652
  }
3355
3653
  /**
3356
- * @param {WasmExtractionMeta | null} [value]
3654
+ * @param {WasmExtractionMeta} value
3357
3655
  */
3358
3656
  set extractionMeta(value) {
3359
- let ptr0 = 0;
3360
- if (!isLikeNone(value)) {
3361
- _assertClass(value, WasmExtractionMeta);
3362
- ptr0 = value.__destroy_into_raw();
3363
- }
3364
- wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, ptr0);
3657
+ _assertClass(value, WasmExtractionMeta);
3658
+ wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
3365
3659
  }
3366
3660
  /**
3661
+ * Takes ownership of every element in `feeds`.
3662
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3663
+ * element with `copyForTransfer()` before passing the array.
3367
3664
  * @param {WasmFeedInfo[]} value
3368
3665
  */
3369
3666
  set feeds(value) {
@@ -3388,6 +3685,9 @@ export class WasmCrawlPageResult {
3388
3685
  wasm.wasmcrawlpageresult_set_html(this.__wbg_ptr, ptr0, len0);
3389
3686
  }
3390
3687
  /**
3688
+ * Takes ownership of every element in `images`.
3689
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3690
+ * element with `copyForTransfer()` before passing the array.
3391
3691
  * @param {WasmImageInfo[]} value
3392
3692
  */
3393
3693
  set images(value) {
@@ -3402,6 +3702,9 @@ export class WasmCrawlPageResult {
3402
3702
  wasm.wasmcrawlpageresult_set_isPdf(this.__wbg_ptr, value);
3403
3703
  }
3404
3704
  /**
3705
+ * Takes ownership of every element in `jsonLd`.
3706
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3707
+ * element with `copyForTransfer()` before passing the array.
3405
3708
  * @param {WasmJsonLdEntry[]} value
3406
3709
  */
3407
3710
  set jsonLd(value) {
@@ -3410,6 +3713,9 @@ export class WasmCrawlPageResult {
3410
3713
  wasm.wasmcrawlpageresult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
3411
3714
  }
3412
3715
  /**
3716
+ * Takes ownership of every element in `links`.
3717
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3718
+ * element with `copyForTransfer()` before passing the array.
3413
3719
  * @param {WasmLinkInfo[]} value
3414
3720
  */
3415
3721
  set links(value) {
@@ -3418,23 +3724,18 @@ export class WasmCrawlPageResult {
3418
3724
  wasm.wasmcrawlpageresult_set_links(this.__wbg_ptr, ptr0, len0);
3419
3725
  }
3420
3726
  /**
3421
- * @param {WasmMarkdownResult | null} [value]
3727
+ * @param {WasmMarkdownResult} value
3422
3728
  */
3423
3729
  set markdown(value) {
3424
- let ptr0 = 0;
3425
- if (!isLikeNone(value)) {
3426
- _assertClass(value, WasmMarkdownResult);
3427
- ptr0 = value.__destroy_into_raw();
3428
- }
3429
- wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, ptr0);
3730
+ _assertClass(value, WasmMarkdownResult);
3731
+ wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
3430
3732
  }
3431
3733
  /**
3432
3734
  * @param {WasmPageMetadata} value
3433
3735
  */
3434
3736
  set metadata(value) {
3435
3737
  _assertClass(value, WasmPageMetadata);
3436
- var ptr0 = value.__destroy_into_raw();
3437
- wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, ptr0);
3738
+ wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
3438
3739
  }
3439
3740
  /**
3440
3741
  * @param {boolean} value
@@ -3572,6 +3873,10 @@ export class WasmCrawlResult {
3572
3873
  return ret !== 0;
3573
3874
  }
3574
3875
  /**
3876
+ * Returns detached copies of the elements in `cookies`.
3877
+ *
3878
+ * Changes to the returned values do not update this object. Modify the copies,
3879
+ * then assign the array back to `cookies`.
3575
3880
  * @returns {WasmCookieInfo[]}
3576
3881
  */
3577
3882
  get cookies() {
@@ -3580,6 +3885,17 @@ export class WasmCrawlResult {
3580
3885
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3581
3886
  return v1;
3582
3887
  }
3888
+ /**
3889
+ * Return an independent handle for an ownership-taking API.
3890
+ *
3891
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3892
+ * handle must remain usable.
3893
+ * @returns {WasmCrawlResult}
3894
+ */
3895
+ copyForTransfer() {
3896
+ const ret = wasm.wasmcrawlresult_copyForTransfer(this.__wbg_ptr);
3897
+ return WasmCrawlResult.__wrap(ret);
3898
+ }
3583
3899
  /**
3584
3900
  * @returns {WasmCrawlResult}
3585
3901
  */
@@ -3615,6 +3931,9 @@ export class WasmCrawlResult {
3615
3931
  }
3616
3932
  }
3617
3933
  /**
3934
+ * Takes ownership of every element in `pages`, `cookies`.
3935
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3936
+ * copy each retained element with `copyForTransfer()` before passing the array.
3618
3937
  * @param {WasmCrawlPageResult[] | null} [pages]
3619
3938
  * @param {string | null} [finalUrl]
3620
3939
  * @param {number | null} [redirectCount]
@@ -3639,6 +3958,10 @@ export class WasmCrawlResult {
3639
3958
  return this;
3640
3959
  }
3641
3960
  /**
3961
+ * Returns detached copies of the elements in `pages`.
3962
+ *
3963
+ * Changes to the returned values do not update this object. Modify the copies,
3964
+ * then assign the array back to `pages`.
3642
3965
  * @returns {WasmCrawlPageResult[]}
3643
3966
  */
3644
3967
  get pages() {
@@ -3661,6 +3984,9 @@ export class WasmCrawlResult {
3661
3984
  wasm.wasmcrawlresult_set_browserUsed(this.__wbg_ptr, value);
3662
3985
  }
3663
3986
  /**
3987
+ * Takes ownership of every element in `cookies`.
3988
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3989
+ * element with `copyForTransfer()` before passing the array.
3664
3990
  * @param {WasmCookieInfo[]} value
3665
3991
  */
3666
3992
  set cookies(value) {
@@ -3685,6 +4011,9 @@ export class WasmCrawlResult {
3685
4011
  wasm.wasmcrawlresult_set_finalUrl(this.__wbg_ptr, ptr0, len0);
3686
4012
  }
3687
4013
  /**
4014
+ * Takes ownership of every element in `pages`.
4015
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
4016
+ * element with `copyForTransfer()` before passing the array.
3688
4017
  * @param {WasmCrawlPageResult[]} value
3689
4018
  */
3690
4019
  set pages(value) {
@@ -3826,6 +4155,17 @@ export class WasmDownloadedAsset {
3826
4155
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3827
4156
  }
3828
4157
  }
4158
+ /**
4159
+ * Return an independent handle for an ownership-taking API.
4160
+ *
4161
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4162
+ * handle must remain usable.
4163
+ * @returns {WasmDownloadedAsset}
4164
+ */
4165
+ copyForTransfer() {
4166
+ const ret = wasm.wasmdownloadedasset_copyForTransfer(this.__wbg_ptr);
4167
+ return WasmDownloadedAsset.__wrap(ret);
4168
+ }
3829
4169
  /**
3830
4170
  * @returns {WasmDownloadedAsset}
3831
4171
  */
@@ -4011,6 +4351,17 @@ export class WasmDownloadedDocument {
4011
4351
  }
4012
4352
  return v1;
4013
4353
  }
4354
+ /**
4355
+ * Return an independent handle for an ownership-taking API.
4356
+ *
4357
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4358
+ * handle must remain usable.
4359
+ * @returns {WasmDownloadedDocument}
4360
+ */
4361
+ copyForTransfer() {
4362
+ const ret = wasm.wasmdownloadeddocument_copyForTransfer(this.__wbg_ptr);
4363
+ return WasmDownloadedDocument.__wrap(ret);
4364
+ }
4014
4365
  /**
4015
4366
  * @returns {WasmDownloadedDocument}
4016
4367
  */
@@ -4213,6 +4564,17 @@ export class WasmExtractionMeta {
4213
4564
  const ret = wasm.wasmextractionmeta_completionTokens(this.__wbg_ptr);
4214
4565
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
4215
4566
  }
4567
+ /**
4568
+ * Return an independent handle for an ownership-taking API.
4569
+ *
4570
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4571
+ * handle must remain usable.
4572
+ * @returns {WasmExtractionMeta}
4573
+ */
4574
+ copyForTransfer() {
4575
+ const ret = wasm.wasmextractionmeta_copyForTransfer(this.__wbg_ptr);
4576
+ return WasmExtractionMeta.__wrap(ret);
4577
+ }
4216
4578
  /**
4217
4579
  * @returns {number | undefined}
4218
4580
  */
@@ -4322,6 +4684,17 @@ export class WasmFaviconInfo {
4322
4684
  const ptr = this.__destroy_into_raw();
4323
4685
  wasm.__wbg_wasmfaviconinfo_free(ptr, 0);
4324
4686
  }
4687
+ /**
4688
+ * Return an independent handle for an ownership-taking API.
4689
+ *
4690
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4691
+ * handle must remain usable.
4692
+ * @returns {WasmFaviconInfo}
4693
+ */
4694
+ copyForTransfer() {
4695
+ const ret = wasm.wasmfaviconinfo_copyForTransfer(this.__wbg_ptr);
4696
+ return WasmFaviconInfo.__wrap(ret);
4697
+ }
4325
4698
  /**
4326
4699
  * @returns {WasmFaviconInfo}
4327
4700
  */
@@ -4464,6 +4837,17 @@ export class WasmFeedInfo {
4464
4837
  const ptr = this.__destroy_into_raw();
4465
4838
  wasm.__wbg_wasmfeedinfo_free(ptr, 0);
4466
4839
  }
4840
+ /**
4841
+ * Return an independent handle for an ownership-taking API.
4842
+ *
4843
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4844
+ * handle must remain usable.
4845
+ * @returns {WasmFeedInfo}
4846
+ */
4847
+ copyForTransfer() {
4848
+ const ret = wasm.wasmfeedinfo_copyForTransfer(this.__wbg_ptr);
4849
+ return WasmFeedInfo.__wrap(ret);
4850
+ }
4467
4851
  /**
4468
4852
  * @returns {WasmFeedInfo}
4469
4853
  */
@@ -4589,6 +4973,17 @@ export class WasmHeadingInfo {
4589
4973
  const ptr = this.__destroy_into_raw();
4590
4974
  wasm.__wbg_wasmheadinginfo_free(ptr, 0);
4591
4975
  }
4976
+ /**
4977
+ * Return an independent handle for an ownership-taking API.
4978
+ *
4979
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4980
+ * handle must remain usable.
4981
+ * @returns {WasmHeadingInfo}
4982
+ */
4983
+ copyForTransfer() {
4984
+ const ret = wasm.wasmheadinginfo_copyForTransfer(this.__wbg_ptr);
4985
+ return WasmHeadingInfo.__wrap(ret);
4986
+ }
4592
4987
  /**
4593
4988
  * @returns {WasmHeadingInfo}
4594
4989
  */
@@ -4766,6 +5161,17 @@ export class WasmHreflangEntry {
4766
5161
  const ptr = this.__destroy_into_raw();
4767
5162
  wasm.__wbg_wasmhreflangentry_free(ptr, 0);
4768
5163
  }
5164
+ /**
5165
+ * Return an independent handle for an ownership-taking API.
5166
+ *
5167
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5168
+ * handle must remain usable.
5169
+ * @returns {WasmHreflangEntry}
5170
+ */
5171
+ copyForTransfer() {
5172
+ const ret = wasm.wasmhreflangentry_copyForTransfer(this.__wbg_ptr);
5173
+ return WasmHreflangEntry.__wrap(ret);
5174
+ }
4769
5175
  /**
4770
5176
  * @returns {WasmHreflangEntry}
4771
5177
  */
@@ -4874,6 +5280,17 @@ export class WasmImageInfo {
4874
5280
  }
4875
5281
  return v1;
4876
5282
  }
5283
+ /**
5284
+ * Return an independent handle for an ownership-taking API.
5285
+ *
5286
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5287
+ * handle must remain usable.
5288
+ * @returns {WasmImageInfo}
5289
+ */
5290
+ copyForTransfer() {
5291
+ const ret = wasm.wasmimageinfo_copyForTransfer(this.__wbg_ptr);
5292
+ return WasmImageInfo.__wrap(ret);
5293
+ }
4877
5294
  /**
4878
5295
  * @returns {WasmImageInfo}
4879
5296
  */
@@ -5011,6 +5428,10 @@ export class WasmInteractionResult {
5011
5428
  wasm.__wbg_wasminteractionresult_free(ptr, 0);
5012
5429
  }
5013
5430
  /**
5431
+ * Returns detached copies of the elements in `actionResults`.
5432
+ *
5433
+ * Changes to the returned values do not update this object. Modify the copies,
5434
+ * then assign the array back to `actionResults`.
5014
5435
  * @returns {WasmActionResult[]}
5015
5436
  */
5016
5437
  get actionResults() {
@@ -5019,6 +5440,17 @@ export class WasmInteractionResult {
5019
5440
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
5020
5441
  return v1;
5021
5442
  }
5443
+ /**
5444
+ * Return an independent handle for an ownership-taking API.
5445
+ *
5446
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5447
+ * handle must remain usable.
5448
+ * @returns {WasmInteractionResult}
5449
+ */
5450
+ copyForTransfer() {
5451
+ const ret = wasm.wasminteractionresult_copyForTransfer(this.__wbg_ptr);
5452
+ return WasmInteractionResult.__wrap(ret);
5453
+ }
5022
5454
  /**
5023
5455
  * @returns {WasmInteractionResult}
5024
5456
  */
@@ -5057,6 +5489,9 @@ export class WasmInteractionResult {
5057
5489
  }
5058
5490
  }
5059
5491
  /**
5492
+ * Takes ownership of every element in `actionResults`.
5493
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5494
+ * copy each retained element with `copyForTransfer()` before passing the array.
5060
5495
  * @param {WasmActionResult[] | null} [actionResults]
5061
5496
  * @param {string | null} [finalHtml]
5062
5497
  * @param {string | null} [finalUrl]
@@ -5092,6 +5527,9 @@ export class WasmInteractionResult {
5092
5527
  return v1;
5093
5528
  }
5094
5529
  /**
5530
+ * Takes ownership of every element in `actionResults`.
5531
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5532
+ * element with `copyForTransfer()` before passing the array.
5095
5533
  * @param {WasmActionResult[]} value
5096
5534
  */
5097
5535
  set actionResults(value) {
@@ -5169,6 +5607,17 @@ export class WasmJsonLdEntry {
5169
5607
  const ptr = this.__destroy_into_raw();
5170
5608
  wasm.__wbg_wasmjsonldentry_free(ptr, 0);
5171
5609
  }
5610
+ /**
5611
+ * Return an independent handle for an ownership-taking API.
5612
+ *
5613
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5614
+ * handle must remain usable.
5615
+ * @returns {WasmJsonLdEntry}
5616
+ */
5617
+ copyForTransfer() {
5618
+ const ret = wasm.wasmjsonldentry_copyForTransfer(this.__wbg_ptr);
5619
+ return WasmJsonLdEntry.__wrap(ret);
5620
+ }
5172
5621
  /**
5173
5622
  * @returns {WasmJsonLdEntry}
5174
5623
  */
@@ -5288,6 +5737,17 @@ export class WasmLinkInfo {
5288
5737
  const ptr = this.__destroy_into_raw();
5289
5738
  wasm.__wbg_wasmlinkinfo_free(ptr, 0);
5290
5739
  }
5740
+ /**
5741
+ * Return an independent handle for an ownership-taking API.
5742
+ *
5743
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5744
+ * handle must remain usable.
5745
+ * @returns {WasmLinkInfo}
5746
+ */
5747
+ copyForTransfer() {
5748
+ const ret = wasm.wasmlinkinfo_copyForTransfer(this.__wbg_ptr);
5749
+ return WasmLinkInfo.__wrap(ret);
5750
+ }
5291
5751
  /**
5292
5752
  * @returns {WasmLinkInfo}
5293
5753
  */
@@ -5448,6 +5908,17 @@ export class WasmMapResult {
5448
5908
  const ptr = this.__destroy_into_raw();
5449
5909
  wasm.__wbg_wasmmapresult_free(ptr, 0);
5450
5910
  }
5911
+ /**
5912
+ * Return an independent handle for an ownership-taking API.
5913
+ *
5914
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5915
+ * handle must remain usable.
5916
+ * @returns {WasmMapResult}
5917
+ */
5918
+ copyForTransfer() {
5919
+ const ret = wasm.wasmmapresult_copyForTransfer(this.__wbg_ptr);
5920
+ return WasmMapResult.__wrap(ret);
5921
+ }
5451
5922
  /**
5452
5923
  * @returns {WasmMapResult}
5453
5924
  */
@@ -5456,6 +5927,9 @@ export class WasmMapResult {
5456
5927
  return WasmMapResult.__wrap(ret);
5457
5928
  }
5458
5929
  /**
5930
+ * Takes ownership of every element in `urls`.
5931
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5932
+ * copy each retained element with `copyForTransfer()` before passing the array.
5459
5933
  * @param {WasmSitemapUrl[] | null} [urls]
5460
5934
  */
5461
5935
  constructor(urls) {
@@ -5467,6 +5941,9 @@ export class WasmMapResult {
5467
5941
  return this;
5468
5942
  }
5469
5943
  /**
5944
+ * Takes ownership of every element in `urls`.
5945
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5946
+ * element with `copyForTransfer()` before passing the array.
5470
5947
  * @param {WasmSitemapUrl[]} value
5471
5948
  */
5472
5949
  set urls(value) {
@@ -5475,6 +5952,10 @@ export class WasmMapResult {
5475
5952
  wasm.wasmmapresult_set_urls(this.__wbg_ptr, ptr0, len0);
5476
5953
  }
5477
5954
  /**
5955
+ * Returns detached copies of the elements in `urls`.
5956
+ *
5957
+ * Changes to the returned values do not update this object. Modify the copies,
5958
+ * then assign the array back to `urls`.
5478
5959
  * @returns {WasmSitemapUrl[]}
5479
5960
  */
5480
5961
  get urls() {
@@ -5528,6 +6009,17 @@ export class WasmMarkdownResult {
5528
6009
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5529
6010
  }
5530
6011
  }
6012
+ /**
6013
+ * Return an independent handle for an ownership-taking API.
6014
+ *
6015
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6016
+ * handle must remain usable.
6017
+ * @returns {WasmMarkdownResult}
6018
+ */
6019
+ copyForTransfer() {
6020
+ const ret = wasm.wasmmarkdownresult_copyForTransfer(this.__wbg_ptr);
6021
+ return WasmMarkdownResult.__wrap(ret);
6022
+ }
5531
6023
  /**
5532
6024
  * @returns {WasmMarkdownResult}
5533
6025
  */
@@ -5856,6 +6348,10 @@ export class WasmPageMetadata {
5856
6348
  wasm.__wbg_wasmpagemetadata_free(ptr, 0);
5857
6349
  }
5858
6350
  /**
6351
+ * Returns a detached copy of `article`.
6352
+ *
6353
+ * Changes to the returned value do not update this object. To update `article`,
6354
+ * read it, modify the copy, then assign the copy back to `article`.
5859
6355
  * @returns {WasmArticleMetadata | undefined}
5860
6356
  */
5861
6357
  get article() {
@@ -5886,6 +6382,20 @@ export class WasmPageMetadata {
5886
6382
  }
5887
6383
  return v1;
5888
6384
  }
6385
+ clearArticle() {
6386
+ wasm.wasmpagemetadata_clearArticle(this.__wbg_ptr);
6387
+ }
6388
+ /**
6389
+ * Return an independent handle for an ownership-taking API.
6390
+ *
6391
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6392
+ * handle must remain usable.
6393
+ * @returns {WasmPageMetadata}
6394
+ */
6395
+ copyForTransfer() {
6396
+ const ret = wasm.wasmpagemetadata_copyForTransfer(this.__wbg_ptr);
6397
+ return WasmPageMetadata.__wrap(ret);
6398
+ }
5889
6399
  /**
5890
6400
  * @returns {string | undefined}
5891
6401
  */
@@ -6038,6 +6548,10 @@ export class WasmPageMetadata {
6038
6548
  return v1;
6039
6549
  }
6040
6550
  /**
6551
+ * Returns detached copies of the elements in `favicons`.
6552
+ *
6553
+ * Changes to the returned values do not update this object. Modify the copies,
6554
+ * then assign the array back to `favicons`.
6041
6555
  * @returns {Array<any> | undefined}
6042
6556
  */
6043
6557
  get favicons() {
@@ -6057,6 +6571,10 @@ export class WasmPageMetadata {
6057
6571
  return v1;
6058
6572
  }
6059
6573
  /**
6574
+ * Returns detached copies of the elements in `headings`.
6575
+ *
6576
+ * Changes to the returned values do not update this object. Modify the copies,
6577
+ * then assign the array back to `headings`.
6060
6578
  * @returns {Array<any> | undefined}
6061
6579
  */
6062
6580
  get headings() {
@@ -6064,6 +6582,10 @@ export class WasmPageMetadata {
6064
6582
  return ret;
6065
6583
  }
6066
6584
  /**
6585
+ * Returns detached copies of the elements in `hreflangs`.
6586
+ *
6587
+ * Changes to the returned values do not update this object. Modify the copies,
6588
+ * then assign the array back to `hreflangs`.
6067
6589
  * @returns {Array<any> | undefined}
6068
6590
  */
6069
6591
  get hreflangs() {
@@ -6107,6 +6629,14 @@ export class WasmPageMetadata {
6107
6629
  return v1;
6108
6630
  }
6109
6631
  /**
6632
+ * Takes ownership of `article`.
6633
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
6634
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
6635
+ * keep a handle you already hold, build with `default()` and assign the property instead:
6636
+ * the generated setter borrows and leaves your handle alive.
6637
+ * Takes ownership of every element in `hreflangs`, `favicons`, `headings`.
6638
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
6639
+ * copy each retained element with `copyForTransfer()` before passing the array.
6110
6640
  * @param {string | null} [title]
6111
6641
  * @param {string | null} [description]
6112
6642
  * @param {string | null} [canonicalUrl]
@@ -6377,15 +6907,11 @@ export class WasmPageMetadata {
6377
6907
  return v1;
6378
6908
  }
6379
6909
  /**
6380
- * @param {WasmArticleMetadata | null} [value]
6910
+ * @param {WasmArticleMetadata} value
6381
6911
  */
6382
6912
  set article(value) {
6383
- let ptr0 = 0;
6384
- if (!isLikeNone(value)) {
6385
- _assertClass(value, WasmArticleMetadata);
6386
- ptr0 = value.__destroy_into_raw();
6387
- }
6388
- wasm.wasmpagemetadata_set_article(this.__wbg_ptr, ptr0);
6913
+ _assertClass(value, WasmArticleMetadata);
6914
+ wasm.wasmpagemetadata_set_article(this.__wbg_ptr, value.__wbg_ptr);
6389
6915
  }
6390
6916
  /**
6391
6917
  * @param {string | null} [value]
@@ -6500,6 +7026,9 @@ export class WasmPageMetadata {
6500
7026
  wasm.wasmpagemetadata_set_description(this.__wbg_ptr, ptr0, len0);
6501
7027
  }
6502
7028
  /**
7029
+ * Takes ownership of every element in `favicons`.
7030
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7031
+ * element with `copyForTransfer()` before passing the array.
6503
7032
  * @param {WasmFaviconInfo[] | null} [value]
6504
7033
  */
6505
7034
  set favicons(value) {
@@ -6516,6 +7045,9 @@ export class WasmPageMetadata {
6516
7045
  wasm.wasmpagemetadata_set_generator(this.__wbg_ptr, ptr0, len0);
6517
7046
  }
6518
7047
  /**
7048
+ * Takes ownership of every element in `headings`.
7049
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7050
+ * element with `copyForTransfer()` before passing the array.
6519
7051
  * @param {WasmHeadingInfo[] | null} [value]
6520
7052
  */
6521
7053
  set headings(value) {
@@ -6524,6 +7056,9 @@ export class WasmPageMetadata {
6524
7056
  wasm.wasmpagemetadata_set_headings(this.__wbg_ptr, ptr0, len0);
6525
7057
  }
6526
7058
  /**
7059
+ * Takes ownership of every element in `hreflangs`.
7060
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7061
+ * element with `copyForTransfer()` before passing the array.
6527
7062
  * @param {WasmHreflangEntry[] | null} [value]
6528
7063
  */
6529
7064
  set hreflangs(value) {
@@ -6859,6 +7394,17 @@ export class WasmProxyConfig {
6859
7394
  const ptr = this.__destroy_into_raw();
6860
7395
  wasm.__wbg_wasmproxyconfig_free(ptr, 0);
6861
7396
  }
7397
+ /**
7398
+ * Return an independent handle for an ownership-taking API.
7399
+ *
7400
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7401
+ * handle must remain usable.
7402
+ * @returns {WasmProxyConfig}
7403
+ */
7404
+ copyForTransfer() {
7405
+ const ret = wasm.wasmproxyconfig_copyForTransfer(this.__wbg_ptr);
7406
+ return WasmProxyConfig.__wrap(ret);
7407
+ }
6862
7408
  /**
6863
7409
  * @returns {WasmProxyConfig}
6864
7410
  */
@@ -7011,6 +7557,17 @@ export class WasmResponseMeta {
7011
7557
  }
7012
7558
  return v1;
7013
7559
  }
7560
+ /**
7561
+ * Return an independent handle for an ownership-taking API.
7562
+ *
7563
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7564
+ * handle must remain usable.
7565
+ * @returns {WasmResponseMeta}
7566
+ */
7567
+ copyForTransfer() {
7568
+ const ret = wasm.wasmresponsemeta_copyForTransfer(this.__wbg_ptr);
7569
+ return WasmResponseMeta.__wrap(ret);
7570
+ }
7014
7571
  /**
7015
7572
  * @returns {WasmResponseMeta}
7016
7573
  */
@@ -7175,6 +7732,10 @@ export class WasmScrapeResult {
7175
7732
  wasm.__wbg_wasmscraperesult_free(ptr, 0);
7176
7733
  }
7177
7734
  /**
7735
+ * Returns detached copies of the elements in `assets`.
7736
+ *
7737
+ * Changes to the returned values do not update this object. Modify the copies,
7738
+ * then assign the array back to `assets`.
7178
7739
  * @returns {WasmDownloadedAsset[]}
7179
7740
  */
7180
7741
  get assets() {
@@ -7205,12 +7766,31 @@ export class WasmScrapeResult {
7205
7766
  return ret !== 0;
7206
7767
  }
7207
7768
  /**
7769
+ * Returns a detached copy of `browser`.
7770
+ *
7771
+ * Changes to the returned value do not update this object. To update `browser`,
7772
+ * read it, modify the copy, then assign the copy back to `browser`.
7208
7773
  * @returns {WasmBrowserExtras | undefined}
7209
7774
  */
7210
7775
  get browser() {
7211
7776
  const ret = wasm.wasmscraperesult_browser(this.__wbg_ptr);
7212
7777
  return ret === 0 ? undefined : WasmBrowserExtras.__wrap(ret);
7213
7778
  }
7779
+ clearBrowser() {
7780
+ wasm.wasmscraperesult_clearBrowser(this.__wbg_ptr);
7781
+ }
7782
+ clearDownloadedDocument() {
7783
+ wasm.wasmscraperesult_clearDownloadedDocument(this.__wbg_ptr);
7784
+ }
7785
+ clearExtractionMeta() {
7786
+ wasm.wasmscraperesult_clearExtractionMeta(this.__wbg_ptr);
7787
+ }
7788
+ clearMarkdown() {
7789
+ wasm.wasmscraperesult_clearMarkdown(this.__wbg_ptr);
7790
+ }
7791
+ clearResponseMeta() {
7792
+ wasm.wasmscraperesult_clearResponseMeta(this.__wbg_ptr);
7793
+ }
7214
7794
  /**
7215
7795
  * @returns {string}
7216
7796
  */
@@ -7226,6 +7806,17 @@ export class WasmScrapeResult {
7226
7806
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7227
7807
  }
7228
7808
  }
7809
+ /**
7810
+ * Return an independent handle for an ownership-taking API.
7811
+ *
7812
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7813
+ * handle must remain usable.
7814
+ * @returns {WasmScrapeResult}
7815
+ */
7816
+ copyForTransfer() {
7817
+ const ret = wasm.wasmscraperesult_copyForTransfer(this.__wbg_ptr);
7818
+ return WasmScrapeResult.__wrap(ret);
7819
+ }
7229
7820
  /**
7230
7821
  * @returns {bigint | undefined}
7231
7822
  */
@@ -7253,6 +7844,10 @@ export class WasmScrapeResult {
7253
7844
  return v1;
7254
7845
  }
7255
7846
  /**
7847
+ * Returns a detached copy of `downloadedDocument`.
7848
+ *
7849
+ * Changes to the returned value do not update this object. To update `downloadedDocument`,
7850
+ * read it, modify the copy, then assign the copy back to `downloadedDocument`.
7256
7851
  * @returns {WasmDownloadedDocument | undefined}
7257
7852
  */
7258
7853
  get downloadedDocument() {
@@ -7267,6 +7862,10 @@ export class WasmScrapeResult {
7267
7862
  return ret;
7268
7863
  }
7269
7864
  /**
7865
+ * Returns a detached copy of `extractionMeta`.
7866
+ *
7867
+ * Changes to the returned value do not update this object. To update `extractionMeta`,
7868
+ * read it, modify the copy, then assign the copy back to `extractionMeta`.
7270
7869
  * @returns {WasmExtractionMeta | undefined}
7271
7870
  */
7272
7871
  get extractionMeta() {
@@ -7274,6 +7873,10 @@ export class WasmScrapeResult {
7274
7873
  return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
7275
7874
  }
7276
7875
  /**
7876
+ * Returns detached copies of the elements in `feeds`.
7877
+ *
7878
+ * Changes to the returned values do not update this object. Modify the copies,
7879
+ * then assign the array back to `feeds`.
7277
7880
  * @returns {WasmFeedInfo[]}
7278
7881
  */
7279
7882
  get feeds() {
@@ -7313,6 +7916,10 @@ export class WasmScrapeResult {
7313
7916
  }
7314
7917
  }
7315
7918
  /**
7919
+ * Returns detached copies of the elements in `images`.
7920
+ *
7921
+ * Changes to the returned values do not update this object. Modify the copies,
7922
+ * then assign the array back to `images`.
7316
7923
  * @returns {WasmImageInfo[]}
7317
7924
  */
7318
7925
  get images() {
@@ -7343,6 +7950,10 @@ export class WasmScrapeResult {
7343
7950
  return ret !== 0;
7344
7951
  }
7345
7952
  /**
7953
+ * Returns detached copies of the elements in `jsonLd`.
7954
+ *
7955
+ * Changes to the returned values do not update this object. Modify the copies,
7956
+ * then assign the array back to `jsonLd`.
7346
7957
  * @returns {WasmJsonLdEntry[]}
7347
7958
  */
7348
7959
  get jsonLd() {
@@ -7352,6 +7963,10 @@ export class WasmScrapeResult {
7352
7963
  return v1;
7353
7964
  }
7354
7965
  /**
7966
+ * Returns detached copies of the elements in `links`.
7967
+ *
7968
+ * Changes to the returned values do not update this object. Modify the copies,
7969
+ * then assign the array back to `links`.
7355
7970
  * @returns {WasmLinkInfo[]}
7356
7971
  */
7357
7972
  get links() {
@@ -7361,6 +7976,10 @@ export class WasmScrapeResult {
7361
7976
  return v1;
7362
7977
  }
7363
7978
  /**
7979
+ * Returns a detached copy of `markdown`.
7980
+ *
7981
+ * Changes to the returned value do not update this object. To update `markdown`,
7982
+ * read it, modify the copy, then assign the copy back to `markdown`.
7364
7983
  * @returns {WasmMarkdownResult | undefined}
7365
7984
  */
7366
7985
  get markdown() {
@@ -7368,6 +7987,10 @@ export class WasmScrapeResult {
7368
7987
  return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
7369
7988
  }
7370
7989
  /**
7990
+ * Returns a detached copy of `metadata`.
7991
+ *
7992
+ * Changes to the returned value do not update this object. To update `metadata`,
7993
+ * read it, modify the copy, then assign the copy back to `metadata`.
7371
7994
  * @returns {WasmPageMetadata}
7372
7995
  */
7373
7996
  get metadata() {
@@ -7375,6 +7998,14 @@ export class WasmScrapeResult {
7375
7998
  return WasmPageMetadata.__wrap(ret);
7376
7999
  }
7377
8000
  /**
8001
+ * Takes ownership of `metadata`, `responseMeta`, `markdown`, `extractionMeta`, `downloadedDocument`, `browser`.
8002
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
8003
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
8004
+ * keep a handle you already hold, build with `default()` and assign the property instead:
8005
+ * the generated setter borrows and leaves your handle alive.
8006
+ * Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`, `assets`.
8007
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
8008
+ * copy each retained element with `copyForTransfer()` before passing the array.
7378
8009
  * @param {number | null} [statusCode]
7379
8010
  * @param {string | null} [finalUrl]
7380
8011
  * @param {string | null} [contentType]
@@ -7481,6 +8112,10 @@ export class WasmScrapeResult {
7481
8112
  return ret !== 0;
7482
8113
  }
7483
8114
  /**
8115
+ * Returns a detached copy of `responseMeta`.
8116
+ *
8117
+ * Changes to the returned value do not update this object. To update `responseMeta`,
8118
+ * read it, modify the copy, then assign the copy back to `responseMeta`.
7484
8119
  * @returns {WasmResponseMeta | undefined}
7485
8120
  */
7486
8121
  get responseMeta() {
@@ -7500,6 +8135,9 @@ export class WasmScrapeResult {
7500
8135
  return v1;
7501
8136
  }
7502
8137
  /**
8138
+ * Takes ownership of every element in `assets`.
8139
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8140
+ * element with `copyForTransfer()` before passing the array.
7503
8141
  * @param {WasmDownloadedAsset[]} value
7504
8142
  */
7505
8143
  set assets(value) {
@@ -7526,15 +8164,11 @@ export class WasmScrapeResult {
7526
8164
  wasm.wasmscraperesult_set_browserUsed(this.__wbg_ptr, value);
7527
8165
  }
7528
8166
  /**
7529
- * @param {WasmBrowserExtras | null} [value]
8167
+ * @param {WasmBrowserExtras} value
7530
8168
  */
7531
8169
  set browser(value) {
7532
- let ptr0 = 0;
7533
- if (!isLikeNone(value)) {
7534
- _assertClass(value, WasmBrowserExtras);
7535
- ptr0 = value.__destroy_into_raw();
7536
- }
7537
- wasm.wasmscraperesult_set_browser(this.__wbg_ptr, ptr0);
8170
+ _assertClass(value, WasmBrowserExtras);
8171
+ wasm.wasmscraperesult_set_browser(this.__wbg_ptr, value.__wbg_ptr);
7538
8172
  }
7539
8173
  /**
7540
8174
  * @param {string} value
@@ -7559,15 +8193,11 @@ export class WasmScrapeResult {
7559
8193
  wasm.wasmscraperesult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
7560
8194
  }
7561
8195
  /**
7562
- * @param {WasmDownloadedDocument | null} [value]
8196
+ * @param {WasmDownloadedDocument} value
7563
8197
  */
7564
8198
  set downloadedDocument(value) {
7565
- let ptr0 = 0;
7566
- if (!isLikeNone(value)) {
7567
- _assertClass(value, WasmDownloadedDocument);
7568
- ptr0 = value.__destroy_into_raw();
7569
- }
7570
- wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, ptr0);
8199
+ _assertClass(value, WasmDownloadedDocument);
8200
+ wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
7571
8201
  }
7572
8202
  /**
7573
8203
  * @param {any | null} [value]
@@ -7576,17 +8206,16 @@ export class WasmScrapeResult {
7576
8206
  wasm.wasmscraperesult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
7577
8207
  }
7578
8208
  /**
7579
- * @param {WasmExtractionMeta | null} [value]
8209
+ * @param {WasmExtractionMeta} value
7580
8210
  */
7581
8211
  set extractionMeta(value) {
7582
- let ptr0 = 0;
7583
- if (!isLikeNone(value)) {
7584
- _assertClass(value, WasmExtractionMeta);
7585
- ptr0 = value.__destroy_into_raw();
7586
- }
7587
- wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, ptr0);
8212
+ _assertClass(value, WasmExtractionMeta);
8213
+ wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
7588
8214
  }
7589
8215
  /**
8216
+ * Takes ownership of every element in `feeds`.
8217
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8218
+ * element with `copyForTransfer()` before passing the array.
7590
8219
  * @param {WasmFeedInfo[]} value
7591
8220
  */
7592
8221
  set feeds(value) {
@@ -7611,6 +8240,9 @@ export class WasmScrapeResult {
7611
8240
  wasm.wasmscraperesult_set_html(this.__wbg_ptr, ptr0, len0);
7612
8241
  }
7613
8242
  /**
8243
+ * Takes ownership of every element in `images`.
8244
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8245
+ * element with `copyForTransfer()` before passing the array.
7614
8246
  * @param {WasmImageInfo[]} value
7615
8247
  */
7616
8248
  set images(value) {
@@ -7637,6 +8269,9 @@ export class WasmScrapeResult {
7637
8269
  wasm.wasmscraperesult_set_jsRenderHint(this.__wbg_ptr, value);
7638
8270
  }
7639
8271
  /**
8272
+ * Takes ownership of every element in `jsonLd`.
8273
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8274
+ * element with `copyForTransfer()` before passing the array.
7640
8275
  * @param {WasmJsonLdEntry[]} value
7641
8276
  */
7642
8277
  set jsonLd(value) {
@@ -7645,6 +8280,9 @@ export class WasmScrapeResult {
7645
8280
  wasm.wasmscraperesult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
7646
8281
  }
7647
8282
  /**
8283
+ * Takes ownership of every element in `links`.
8284
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8285
+ * element with `copyForTransfer()` before passing the array.
7648
8286
  * @param {WasmLinkInfo[]} value
7649
8287
  */
7650
8288
  set links(value) {
@@ -7653,23 +8291,18 @@ export class WasmScrapeResult {
7653
8291
  wasm.wasmscraperesult_set_links(this.__wbg_ptr, ptr0, len0);
7654
8292
  }
7655
8293
  /**
7656
- * @param {WasmMarkdownResult | null} [value]
8294
+ * @param {WasmMarkdownResult} value
7657
8295
  */
7658
8296
  set markdown(value) {
7659
- let ptr0 = 0;
7660
- if (!isLikeNone(value)) {
7661
- _assertClass(value, WasmMarkdownResult);
7662
- ptr0 = value.__destroy_into_raw();
7663
- }
7664
- wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, ptr0);
8297
+ _assertClass(value, WasmMarkdownResult);
8298
+ wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
7665
8299
  }
7666
8300
  /**
7667
8301
  * @param {WasmPageMetadata} value
7668
8302
  */
7669
8303
  set metadata(value) {
7670
8304
  _assertClass(value, WasmPageMetadata);
7671
- var ptr0 = value.__destroy_into_raw();
7672
- wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, ptr0);
8305
+ wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
7673
8306
  }
7674
8307
  /**
7675
8308
  * @param {boolean} value
@@ -7684,15 +8317,11 @@ export class WasmScrapeResult {
7684
8317
  wasm.wasmscraperesult_set_noindexDetected(this.__wbg_ptr, value);
7685
8318
  }
7686
8319
  /**
7687
- * @param {WasmResponseMeta | null} [value]
8320
+ * @param {WasmResponseMeta} value
7688
8321
  */
7689
8322
  set responseMeta(value) {
7690
- let ptr0 = 0;
7691
- if (!isLikeNone(value)) {
7692
- _assertClass(value, WasmResponseMeta);
7693
- ptr0 = value.__destroy_into_raw();
7694
- }
7695
- wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, ptr0);
8323
+ _assertClass(value, WasmResponseMeta);
8324
+ wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, value.__wbg_ptr);
7696
8325
  }
7697
8326
  /**
7698
8327
  * @param {string | null} [value]
@@ -7815,6 +8444,17 @@ export class WasmSitemapUrl {
7815
8444
  }
7816
8445
  return v1;
7817
8446
  }
8447
+ /**
8448
+ * Return an independent handle for an ownership-taking API.
8449
+ *
8450
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8451
+ * handle must remain usable.
8452
+ * @returns {WasmSitemapUrl}
8453
+ */
8454
+ copyForTransfer() {
8455
+ const ret = wasm.wasmsitemapurl_copyForTransfer(this.__wbg_ptr);
8456
+ return WasmSitemapUrl.__wrap(ret);
8457
+ }
7818
8458
  /**
7819
8459
  * @returns {WasmSitemapUrl}
7820
8460
  */
@@ -7943,6 +8583,17 @@ export class WasmSsrfPolicy {
7943
8583
  const ret = wasm.wasmssrfpolicy_allowlist(this.__wbg_ptr);
7944
8584
  return ret;
7945
8585
  }
8586
+ /**
8587
+ * Return an independent handle for an ownership-taking API.
8588
+ *
8589
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8590
+ * handle must remain usable.
8591
+ * @returns {WasmSsrfPolicy}
8592
+ */
8593
+ copyForTransfer() {
8594
+ const ret = wasm.wasmssrfpolicy_copyForTransfer(this.__wbg_ptr);
8595
+ return WasmSsrfPolicy.__wrap(ret);
8596
+ }
7946
8597
  /**
7947
8598
  * @returns {WasmSsrfPolicy}
7948
8599
  */
@@ -7957,6 +8608,13 @@ export class WasmSsrfPolicy {
7957
8608
  const ret = wasm.wasmssrfpolicy_denyPrivate(this.__wbg_ptr);
7958
8609
  return ret !== 0;
7959
8610
  }
8611
+ /**
8612
+ * @returns {any}
8613
+ */
8614
+ get denylist() {
8615
+ const ret = wasm.wasmssrfpolicy_denylist(this.__wbg_ptr);
8616
+ return ret;
8617
+ }
7960
8618
  /**
7961
8619
  * Create a policy from environment variables.
7962
8620
  *
@@ -7969,13 +8627,13 @@ export class WasmSsrfPolicy {
7969
8627
  * - Rust-side SSRF checking is unenforceable and redundant in a wasm32 context.
7970
8628
  * - For testing and localhost access, the host's network sandbox is the enforcing boundary.
7971
8629
  *
7972
- * **Node.js caveat:** `deny_private` (whatever its value) has no effect on hostname-based
7973
- * requests under `wasm32`. There is no DNS resolution on this target, so `validate_url`
7974
- * only ever checks a literal IP host; a domain name falls straight through to `Ok(())`. In a
7975
- * browser this is covered by same-origin/CORS. Node's `fetch` enforces no CORS, so a Node
7976
- * service embedding this wasm module can be driven to internal hosts by domain name even
7977
- * though `deny_private = true`. Do not rely on this policy to stop that in Node — enforce
7978
- * egress restrictions (network policy, firewall, proxy allowlist) outside the process.
8630
+ * **Node.js caveat:** `deny_private` and `denylist` have no effect on hostname-based requests
8631
+ * under `wasm32`. There is no DNS resolution on this target, so `validate_url` only ever
8632
+ * checks a literal IP host; a domain name falls straight through to `Ok(())`. In a browser
8633
+ * this is covered by same-origin/CORS. Node's `fetch` enforces no CORS, so a Node service
8634
+ * embedding this wasm module can be driven to internal hosts by domain name despite the
8635
+ * policy. Enforce egress restrictions (network policy, firewall, proxy allowlist) outside
8636
+ * the process.
7979
8637
  * @returns {WasmSsrfPolicy}
7980
8638
  */
7981
8639
  static fromEnv() {
@@ -7992,13 +8650,14 @@ export class WasmSsrfPolicy {
7992
8650
  /**
7993
8651
  * @param {boolean | null} [denyPrivate]
7994
8652
  * @param {any | null} [allowlist]
8653
+ * @param {any | null} [denylist]
7995
8654
  * @param {number | null} [maxRedirects]
7996
8655
  * @param {string[] | null} [schemeAllowlist]
7997
8656
  */
7998
- constructor(denyPrivate, allowlist, maxRedirects, schemeAllowlist) {
8657
+ constructor(denyPrivate, allowlist, denylist, maxRedirects, schemeAllowlist) {
7999
8658
  var ptr0 = isLikeNone(schemeAllowlist) ? 0 : passArrayJsValueToWasm0(schemeAllowlist, wasm.__wbindgen_malloc);
8000
8659
  var len0 = WASM_VECTOR_LEN;
8001
- const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(maxRedirects) ? 0xFFFFFF : maxRedirects, ptr0, len0);
8660
+ 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);
8002
8661
  this.__wbg_ptr = ret;
8003
8662
  WasmSsrfPolicyFinalization.register(this, this.__wbg_ptr, this);
8004
8663
  return this;
@@ -8024,6 +8683,12 @@ export class WasmSsrfPolicy {
8024
8683
  set denyPrivate(value) {
8025
8684
  wasm.wasmssrfpolicy_set_denyPrivate(this.__wbg_ptr, value);
8026
8685
  }
8686
+ /**
8687
+ * @param {any} value
8688
+ */
8689
+ set denylist(value) {
8690
+ wasm.wasmssrfpolicy_set_denylist(this.__wbg_ptr, value);
8691
+ }
8027
8692
  /**
8028
8693
  * @param {number} value
8029
8694
  */
@@ -8699,12 +9364,12 @@ function __wbg_get_imports() {
8699
9364
  return ret;
8700
9365
  },
8701
9366
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
8702
- // 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`.
9367
+ // 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`.
8703
9368
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2eedacf566f3748c);
8704
9369
  return ret;
8705
9370
  },
8706
9371
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
8707
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1243, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9372
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1222, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8708
9373
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3a7ccac3e94bbb5c);
8709
9374
  return ret;
8710
9375
  },