@xberg-io/crawlberg-wasm 1.8.0 → 1.10.1

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.
@@ -46,6 +46,17 @@ export class WasmActionResult {
46
46
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
47
47
  }
48
48
  }
49
+ /**
50
+ * Return an independent handle for an ownership-taking API.
51
+ *
52
+ * Use `copyForTransfer()` for each class value placed in an array when the original
53
+ * handle must remain usable.
54
+ * @returns {WasmActionResult}
55
+ */
56
+ copyForTransfer() {
57
+ const ret = wasm.wasmactionresult_copyForTransfer(this.__wbg_ptr);
58
+ return WasmActionResult.__wrap(ret);
59
+ }
49
60
  /**
50
61
  * @returns {any | undefined}
51
62
  */
@@ -165,6 +176,17 @@ export class WasmArticleMetadata {
165
176
  }
166
177
  return v1;
167
178
  }
179
+ /**
180
+ * Return an independent handle for an ownership-taking API.
181
+ *
182
+ * Use `copyForTransfer()` for each class value placed in an array when the original
183
+ * handle must remain usable.
184
+ * @returns {WasmArticleMetadata}
185
+ */
186
+ copyForTransfer() {
187
+ const ret = wasm.wasmarticlemetadata_copyForTransfer(this.__wbg_ptr);
188
+ return WasmArticleMetadata.__wrap(ret);
189
+ }
168
190
  /**
169
191
  * @returns {WasmArticleMetadata}
170
192
  */
@@ -485,6 +507,20 @@ export class WasmBatchCrawlResult {
485
507
  const ptr = this.__destroy_into_raw();
486
508
  wasm.__wbg_wasmbatchcrawlresult_free(ptr, 0);
487
509
  }
510
+ clearResult() {
511
+ wasm.wasmbatchcrawlresult_clearResult(this.__wbg_ptr);
512
+ }
513
+ /**
514
+ * Return an independent handle for an ownership-taking API.
515
+ *
516
+ * Use `copyForTransfer()` for each class value placed in an array when the original
517
+ * handle must remain usable.
518
+ * @returns {WasmBatchCrawlResult}
519
+ */
520
+ copyForTransfer() {
521
+ const ret = wasm.wasmbatchcrawlresult_copyForTransfer(this.__wbg_ptr);
522
+ return WasmBatchCrawlResult.__wrap(ret);
523
+ }
488
524
  /**
489
525
  * @returns {WasmBatchCrawlResult}
490
526
  */
@@ -505,6 +541,11 @@ export class WasmBatchCrawlResult {
505
541
  return v1;
506
542
  }
507
543
  /**
544
+ * Takes ownership of `result`.
545
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
546
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
547
+ * keep a handle you already hold, build with `default()` and assign the property instead:
548
+ * the generated setter borrows and leaves your handle alive.
508
549
  * @param {string | null} [url]
509
550
  * @param {WasmCrawlResult | null} [result]
510
551
  * @param {string | null} [error]
@@ -525,6 +566,10 @@ export class WasmBatchCrawlResult {
525
566
  return this;
526
567
  }
527
568
  /**
569
+ * Returns a detached copy of `result`.
570
+ *
571
+ * Changes to the returned value do not update this object. To update `result`,
572
+ * read it, modify the copy, then assign the copy back to `result`.
528
573
  * @returns {WasmCrawlResult | undefined}
529
574
  */
530
575
  get result() {
@@ -540,15 +585,11 @@ export class WasmBatchCrawlResult {
540
585
  wasm.wasmbatchcrawlresult_set_error(this.__wbg_ptr, ptr0, len0);
541
586
  }
542
587
  /**
543
- * @param {WasmCrawlResult | null} [value]
588
+ * @param {WasmCrawlResult} value
544
589
  */
545
590
  set result(value) {
546
- let ptr0 = 0;
547
- if (!isLikeNone(value)) {
548
- _assertClass(value, WasmCrawlResult);
549
- ptr0 = value.__destroy_into_raw();
550
- }
551
- wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, ptr0);
591
+ _assertClass(value, WasmCrawlResult);
592
+ wasm.wasmbatchcrawlresult_set_result(this.__wbg_ptr, value.__wbg_ptr);
552
593
  }
553
594
  /**
554
595
  * @param {string} value
@@ -606,6 +647,17 @@ export class WasmBatchCrawlResults {
606
647
  const ret = wasm.wasmbatchcrawlresults_completedCount(this.__wbg_ptr);
607
648
  return ret >>> 0;
608
649
  }
650
+ /**
651
+ * Return an independent handle for an ownership-taking API.
652
+ *
653
+ * Use `copyForTransfer()` for each class value placed in an array when the original
654
+ * handle must remain usable.
655
+ * @returns {WasmBatchCrawlResults}
656
+ */
657
+ copyForTransfer() {
658
+ const ret = wasm.wasmbatchcrawlresults_copyForTransfer(this.__wbg_ptr);
659
+ return WasmBatchCrawlResults.__wrap(ret);
660
+ }
609
661
  /**
610
662
  * @returns {WasmBatchCrawlResults}
611
663
  */
@@ -621,6 +673,9 @@ export class WasmBatchCrawlResults {
621
673
  return ret >>> 0;
622
674
  }
623
675
  /**
676
+ * Takes ownership of every element in `results`.
677
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
678
+ * copy each retained element with `copyForTransfer()` before passing the array.
624
679
  * @param {WasmBatchCrawlResult[] | null} [results]
625
680
  * @param {number | null} [totalCount]
626
681
  * @param {number | null} [completedCount]
@@ -635,6 +690,10 @@ export class WasmBatchCrawlResults {
635
690
  return this;
636
691
  }
637
692
  /**
693
+ * Returns detached copies of the elements in `results`.
694
+ *
695
+ * Changes to the returned values do not update this object. Modify the copies,
696
+ * then assign the array back to `results`.
638
697
  * @returns {WasmBatchCrawlResult[]}
639
698
  */
640
699
  get results() {
@@ -656,6 +715,9 @@ export class WasmBatchCrawlResults {
656
715
  wasm.wasmbatchcrawlresults_set_failedCount(this.__wbg_ptr, value);
657
716
  }
658
717
  /**
718
+ * Takes ownership of every element in `results`.
719
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
720
+ * element with `copyForTransfer()` before passing the array.
659
721
  * @param {WasmBatchCrawlResult[]} value
660
722
  */
661
723
  set results(value) {
@@ -705,6 +767,20 @@ export class WasmBatchScrapeResult {
705
767
  const ptr = this.__destroy_into_raw();
706
768
  wasm.__wbg_wasmbatchscraperesult_free(ptr, 0);
707
769
  }
770
+ clearResult() {
771
+ wasm.wasmbatchscraperesult_clearResult(this.__wbg_ptr);
772
+ }
773
+ /**
774
+ * Return an independent handle for an ownership-taking API.
775
+ *
776
+ * Use `copyForTransfer()` for each class value placed in an array when the original
777
+ * handle must remain usable.
778
+ * @returns {WasmBatchScrapeResult}
779
+ */
780
+ copyForTransfer() {
781
+ const ret = wasm.wasmbatchscraperesult_copyForTransfer(this.__wbg_ptr);
782
+ return WasmBatchScrapeResult.__wrap(ret);
783
+ }
708
784
  /**
709
785
  * @returns {WasmBatchScrapeResult}
710
786
  */
@@ -725,6 +801,11 @@ export class WasmBatchScrapeResult {
725
801
  return v1;
726
802
  }
727
803
  /**
804
+ * Takes ownership of `result`.
805
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
806
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
807
+ * keep a handle you already hold, build with `default()` and assign the property instead:
808
+ * the generated setter borrows and leaves your handle alive.
728
809
  * @param {string | null} [url]
729
810
  * @param {WasmScrapeResult | null} [result]
730
811
  * @param {string | null} [error]
@@ -745,6 +826,10 @@ export class WasmBatchScrapeResult {
745
826
  return this;
746
827
  }
747
828
  /**
829
+ * Returns a detached copy of `result`.
830
+ *
831
+ * Changes to the returned value do not update this object. To update `result`,
832
+ * read it, modify the copy, then assign the copy back to `result`.
748
833
  * @returns {WasmScrapeResult | undefined}
749
834
  */
750
835
  get result() {
@@ -760,15 +845,11 @@ export class WasmBatchScrapeResult {
760
845
  wasm.wasmbatchscraperesult_set_error(this.__wbg_ptr, ptr0, len0);
761
846
  }
762
847
  /**
763
- * @param {WasmScrapeResult | null} [value]
848
+ * @param {WasmScrapeResult} value
764
849
  */
765
850
  set result(value) {
766
- let ptr0 = 0;
767
- if (!isLikeNone(value)) {
768
- _assertClass(value, WasmScrapeResult);
769
- ptr0 = value.__destroy_into_raw();
770
- }
771
- wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, ptr0);
851
+ _assertClass(value, WasmScrapeResult);
852
+ wasm.wasmbatchscraperesult_set_result(this.__wbg_ptr, value.__wbg_ptr);
772
853
  }
773
854
  /**
774
855
  * @param {string} value
@@ -826,6 +907,17 @@ export class WasmBatchScrapeResults {
826
907
  const ret = wasm.wasmbatchscraperesults_completedCount(this.__wbg_ptr);
827
908
  return ret >>> 0;
828
909
  }
910
+ /**
911
+ * Return an independent handle for an ownership-taking API.
912
+ *
913
+ * Use `copyForTransfer()` for each class value placed in an array when the original
914
+ * handle must remain usable.
915
+ * @returns {WasmBatchScrapeResults}
916
+ */
917
+ copyForTransfer() {
918
+ const ret = wasm.wasmbatchscraperesults_copyForTransfer(this.__wbg_ptr);
919
+ return WasmBatchScrapeResults.__wrap(ret);
920
+ }
829
921
  /**
830
922
  * @returns {WasmBatchScrapeResults}
831
923
  */
@@ -841,6 +933,9 @@ export class WasmBatchScrapeResults {
841
933
  return ret >>> 0;
842
934
  }
843
935
  /**
936
+ * Takes ownership of every element in `results`.
937
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
938
+ * copy each retained element with `copyForTransfer()` before passing the array.
844
939
  * @param {WasmBatchScrapeResult[] | null} [results]
845
940
  * @param {number | null} [totalCount]
846
941
  * @param {number | null} [completedCount]
@@ -855,6 +950,10 @@ export class WasmBatchScrapeResults {
855
950
  return this;
856
951
  }
857
952
  /**
953
+ * Returns detached copies of the elements in `results`.
954
+ *
955
+ * Changes to the returned values do not update this object. Modify the copies,
956
+ * then assign the array back to `results`.
858
957
  * @returns {WasmBatchScrapeResult[]}
859
958
  */
860
959
  get results() {
@@ -876,6 +975,9 @@ export class WasmBatchScrapeResults {
876
975
  wasm.wasmbatchscraperesults_set_failedCount(this.__wbg_ptr, value);
877
976
  }
878
977
  /**
978
+ * Takes ownership of every element in `results`.
979
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
980
+ * element with `copyForTransfer()` before passing the array.
879
981
  * @param {WasmBatchScrapeResult[]} value
880
982
  */
881
983
  set results(value) {
@@ -959,6 +1061,41 @@ export class WasmBrowserConfig {
959
1061
  const ret = wasm.wasmbrowserconfig_captureNetworkEvents(this.__wbg_ptr);
960
1062
  return ret !== 0;
961
1063
  }
1064
+ /**
1065
+ * @returns {string[]}
1066
+ */
1067
+ get chromeArgs() {
1068
+ const ret = wasm.wasmbrowserconfig_chromeArgs(this.__wbg_ptr);
1069
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
1070
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1071
+ return v1;
1072
+ }
1073
+ /**
1074
+ * @returns {string | undefined}
1075
+ */
1076
+ get chromePath() {
1077
+ const ret = wasm.wasmbrowserconfig_chromePath(this.__wbg_ptr);
1078
+ let v1;
1079
+ if (ret[0] !== 0) {
1080
+ v1 = getStringFromWasm0(ret[0], ret[1]);
1081
+ wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
1082
+ }
1083
+ return v1;
1084
+ }
1085
+ clearProxy() {
1086
+ wasm.wasmbrowserconfig_clearProxy(this.__wbg_ptr);
1087
+ }
1088
+ /**
1089
+ * Return an independent handle for an ownership-taking API.
1090
+ *
1091
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1092
+ * handle must remain usable.
1093
+ * @returns {WasmBrowserConfig}
1094
+ */
1095
+ copyForTransfer() {
1096
+ const ret = wasm.wasmbrowserconfig_copyForTransfer(this.__wbg_ptr);
1097
+ return WasmBrowserConfig.__wrap(ret);
1098
+ }
962
1099
  /**
963
1100
  * @returns {WasmBrowserConfig}
964
1101
  */
@@ -1013,6 +1150,11 @@ export class WasmBrowserConfig {
1013
1150
  }
1014
1151
  }
1015
1152
  /**
1153
+ * Takes ownership of `proxy`.
1154
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1155
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1156
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1157
+ * the generated setter borrows and leaves your handle alive.
1016
1158
  * @param {WasmBrowserMode | null} [mode]
1017
1159
  * @param {WasmBrowserBackend | null} [backend]
1018
1160
  * @param {bigint | null} [timeout]
@@ -1022,30 +1164,36 @@ export class WasmBrowserConfig {
1022
1164
  * @param {string[] | null} [blockUrlPatterns]
1023
1165
  * @param {boolean | null} [captureNetworkEvents]
1024
1166
  * @param {boolean | null} [sessionAffinity]
1167
+ * @param {string[] | null} [chromeArgs]
1025
1168
  * @param {string | null} [endpoint]
1026
1169
  * @param {string | null} [waitSelector]
1027
1170
  * @param {bigint | null} [extraWait]
1028
1171
  * @param {WasmProxyConfig | null} [proxy]
1029
1172
  * @param {string | null} [evalScript]
1030
1173
  * @param {string | null} [robotsUserAgent]
1174
+ * @param {string | null} [chromePath]
1031
1175
  */
1032
- constructor(mode, backend, timeout, overallTimeout, shutdownTimeout, wait, blockUrlPatterns, captureNetworkEvents, sessionAffinity, endpoint, waitSelector, extraWait, proxy, evalScript, robotsUserAgent) {
1176
+ constructor(mode, backend, timeout, overallTimeout, shutdownTimeout, wait, blockUrlPatterns, captureNetworkEvents, sessionAffinity, chromeArgs, endpoint, waitSelector, extraWait, proxy, evalScript, robotsUserAgent, chromePath) {
1033
1177
  var ptr0 = isLikeNone(blockUrlPatterns) ? 0 : passArrayJsValueToWasm0(blockUrlPatterns, wasm.__wbindgen_malloc);
1034
1178
  var len0 = WASM_VECTOR_LEN;
1035
- var ptr1 = isLikeNone(endpoint) ? 0 : passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1179
+ var ptr1 = isLikeNone(chromeArgs) ? 0 : passArrayJsValueToWasm0(chromeArgs, wasm.__wbindgen_malloc);
1036
1180
  var len1 = WASM_VECTOR_LEN;
1037
- var ptr2 = isLikeNone(waitSelector) ? 0 : passStringToWasm0(waitSelector, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1181
+ var ptr2 = isLikeNone(endpoint) ? 0 : passStringToWasm0(endpoint, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1038
1182
  var len2 = WASM_VECTOR_LEN;
1039
- let ptr3 = 0;
1183
+ var ptr3 = isLikeNone(waitSelector) ? 0 : passStringToWasm0(waitSelector, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1184
+ var len3 = WASM_VECTOR_LEN;
1185
+ let ptr4 = 0;
1040
1186
  if (!isLikeNone(proxy)) {
1041
1187
  _assertClass(proxy, WasmProxyConfig);
1042
- ptr3 = proxy.__destroy_into_raw();
1188
+ ptr4 = proxy.__destroy_into_raw();
1043
1189
  }
1044
- var ptr4 = isLikeNone(evalScript) ? 0 : passStringToWasm0(evalScript, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1045
- var len4 = WASM_VECTOR_LEN;
1046
- var ptr5 = isLikeNone(robotsUserAgent) ? 0 : passStringToWasm0(robotsUserAgent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1190
+ var ptr5 = isLikeNone(evalScript) ? 0 : passStringToWasm0(evalScript, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1047
1191
  var len5 = WASM_VECTOR_LEN;
1048
- const ret = wasm.wasmbrowserconfig_new(isLikeNone(mode) ? 4 : mode, isLikeNone(backend) ? 2 : backend, !isLikeNone(timeout), isLikeNone(timeout) ? BigInt(0) : timeout, !isLikeNone(overallTimeout), isLikeNone(overallTimeout) ? BigInt(0) : overallTimeout, !isLikeNone(shutdownTimeout), isLikeNone(shutdownTimeout) ? BigInt(0) : shutdownTimeout, isLikeNone(wait) ? 3 : wait, ptr0, len0, isLikeNone(captureNetworkEvents) ? 0xFFFFFF : captureNetworkEvents ? 1 : 0, isLikeNone(sessionAffinity) ? 0xFFFFFF : sessionAffinity ? 1 : 0, ptr1, len1, ptr2, len2, !isLikeNone(extraWait), isLikeNone(extraWait) ? BigInt(0) : extraWait, ptr3, ptr4, len4, ptr5, len5);
1192
+ var ptr6 = isLikeNone(robotsUserAgent) ? 0 : passStringToWasm0(robotsUserAgent, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1193
+ var len6 = WASM_VECTOR_LEN;
1194
+ var ptr7 = isLikeNone(chromePath) ? 0 : passStringToWasm0(chromePath, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1195
+ var len7 = WASM_VECTOR_LEN;
1196
+ const ret = wasm.wasmbrowserconfig_new(isLikeNone(mode) ? 4 : mode, isLikeNone(backend) ? 2 : backend, !isLikeNone(timeout), isLikeNone(timeout) ? BigInt(0) : timeout, !isLikeNone(overallTimeout), isLikeNone(overallTimeout) ? BigInt(0) : overallTimeout, !isLikeNone(shutdownTimeout), isLikeNone(shutdownTimeout) ? BigInt(0) : shutdownTimeout, isLikeNone(wait) ? 3 : wait, ptr0, len0, isLikeNone(captureNetworkEvents) ? 0xFFFFFF : captureNetworkEvents ? 1 : 0, isLikeNone(sessionAffinity) ? 0xFFFFFF : sessionAffinity ? 1 : 0, ptr1, len1, ptr2, len2, ptr3, len3, !isLikeNone(extraWait), isLikeNone(extraWait) ? BigInt(0) : extraWait, ptr4, ptr5, len5, ptr6, len6, ptr7, len7);
1049
1197
  this.__wbg_ptr = ret;
1050
1198
  WasmBrowserConfigFinalization.register(this, this.__wbg_ptr, this);
1051
1199
  return this;
@@ -1058,6 +1206,10 @@ export class WasmBrowserConfig {
1058
1206
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
1059
1207
  }
1060
1208
  /**
1209
+ * Returns a detached copy of `proxy`.
1210
+ *
1211
+ * Changes to the returned value do not update this object. To update `proxy`,
1212
+ * read it, modify the copy, then assign the copy back to `proxy`.
1061
1213
  * @returns {WasmProxyConfig | undefined}
1062
1214
  */
1063
1215
  get proxy() {
@@ -1103,6 +1255,22 @@ export class WasmBrowserConfig {
1103
1255
  set captureNetworkEvents(value) {
1104
1256
  wasm.wasmbrowserconfig_set_captureNetworkEvents(this.__wbg_ptr, value);
1105
1257
  }
1258
+ /**
1259
+ * @param {string[]} value
1260
+ */
1261
+ set chromeArgs(value) {
1262
+ const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_malloc);
1263
+ const len0 = WASM_VECTOR_LEN;
1264
+ wasm.wasmbrowserconfig_set_chromeArgs(this.__wbg_ptr, ptr0, len0);
1265
+ }
1266
+ /**
1267
+ * @param {string | null} [value]
1268
+ */
1269
+ set chromePath(value) {
1270
+ var ptr0 = isLikeNone(value) ? 0 : passStringToWasm0(value, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1271
+ var len0 = WASM_VECTOR_LEN;
1272
+ wasm.wasmbrowserconfig_set_chromePath(this.__wbg_ptr, ptr0, len0);
1273
+ }
1106
1274
  /**
1107
1275
  * @param {string | null} [value]
1108
1276
  */
@@ -1138,15 +1306,11 @@ export class WasmBrowserConfig {
1138
1306
  wasm.wasmbrowserconfig_set_overallTimeout(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
1139
1307
  }
1140
1308
  /**
1141
- * @param {WasmProxyConfig | null} [value]
1309
+ * @param {WasmProxyConfig} value
1142
1310
  */
1143
1311
  set proxy(value) {
1144
- let ptr0 = 0;
1145
- if (!isLikeNone(value)) {
1146
- _assertClass(value, WasmProxyConfig);
1147
- ptr0 = value.__destroy_into_raw();
1148
- }
1149
- wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, ptr0);
1312
+ _assertClass(value, WasmProxyConfig);
1313
+ wasm.wasmbrowserconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
1150
1314
  }
1151
1315
  /**
1152
1316
  * @param {string | null} [value]
@@ -1255,6 +1419,10 @@ export class WasmBrowserExtras {
1255
1419
  wasm.__wbg_wasmbrowserextras_free(ptr, 0);
1256
1420
  }
1257
1421
  /**
1422
+ * Returns detached copies of the elements in `cookies`.
1423
+ *
1424
+ * Changes to the returned values do not update this object. Modify the copies,
1425
+ * then assign the array back to `cookies`.
1258
1426
  * @returns {WasmCookieInfo[]}
1259
1427
  */
1260
1428
  get cookies() {
@@ -1263,6 +1431,17 @@ export class WasmBrowserExtras {
1263
1431
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1264
1432
  return v1;
1265
1433
  }
1434
+ /**
1435
+ * Return an independent handle for an ownership-taking API.
1436
+ *
1437
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1438
+ * handle must remain usable.
1439
+ * @returns {WasmBrowserExtras}
1440
+ */
1441
+ copyForTransfer() {
1442
+ const ret = wasm.wasmbrowserextras_copyForTransfer(this.__wbg_ptr);
1443
+ return WasmBrowserExtras.__wrap(ret);
1444
+ }
1266
1445
  /**
1267
1446
  * @returns {WasmBrowserExtras}
1268
1447
  */
@@ -1278,6 +1457,10 @@ export class WasmBrowserExtras {
1278
1457
  return ret;
1279
1458
  }
1280
1459
  /**
1460
+ * Returns detached copies of the elements in `networkEvents`.
1461
+ *
1462
+ * Changes to the returned values do not update this object. Modify the copies,
1463
+ * then assign the array back to `networkEvents`.
1281
1464
  * @returns {WasmResponseMeta[]}
1282
1465
  */
1283
1466
  get networkEvents() {
@@ -1287,6 +1470,9 @@ export class WasmBrowserExtras {
1287
1470
  return v1;
1288
1471
  }
1289
1472
  /**
1473
+ * Takes ownership of every element in `networkEvents`, `cookies`.
1474
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1475
+ * copy each retained element with `copyForTransfer()` before passing the array.
1290
1476
  * @param {WasmResponseMeta[] | null} [networkEvents]
1291
1477
  * @param {WasmCookieInfo[] | null} [cookies]
1292
1478
  * @param {any | null} [evalResult]
@@ -1302,6 +1488,9 @@ export class WasmBrowserExtras {
1302
1488
  return this;
1303
1489
  }
1304
1490
  /**
1491
+ * Takes ownership of every element in `cookies`.
1492
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1493
+ * element with `copyForTransfer()` before passing the array.
1305
1494
  * @param {WasmCookieInfo[]} value
1306
1495
  */
1307
1496
  set cookies(value) {
@@ -1316,6 +1505,9 @@ export class WasmBrowserExtras {
1316
1505
  wasm.wasmbrowserextras_set_evalResult(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
1317
1506
  }
1318
1507
  /**
1508
+ * Takes ownership of every element in `networkEvents`.
1509
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1510
+ * element with `copyForTransfer()` before passing the array.
1319
1511
  * @param {WasmResponseMeta[]} value
1320
1512
  */
1321
1513
  set networkEvents(value) {
@@ -1374,6 +1566,17 @@ export class WasmCitationReference {
1374
1566
  const ptr = this.__destroy_into_raw();
1375
1567
  wasm.__wbg_wasmcitationreference_free(ptr, 0);
1376
1568
  }
1569
+ /**
1570
+ * Return an independent handle for an ownership-taking API.
1571
+ *
1572
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1573
+ * handle must remain usable.
1574
+ * @returns {WasmCitationReference}
1575
+ */
1576
+ copyForTransfer() {
1577
+ const ret = wasm.wasmcitationreference_copyForTransfer(this.__wbg_ptr);
1578
+ return WasmCitationReference.__wrap(ret);
1579
+ }
1377
1580
  /**
1378
1581
  * @returns {WasmCitationReference}
1379
1582
  */
@@ -1493,6 +1696,17 @@ export class WasmCitationResult {
1493
1696
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1494
1697
  }
1495
1698
  }
1699
+ /**
1700
+ * Return an independent handle for an ownership-taking API.
1701
+ *
1702
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1703
+ * handle must remain usable.
1704
+ * @returns {WasmCitationResult}
1705
+ */
1706
+ copyForTransfer() {
1707
+ const ret = wasm.wasmcitationresult_copyForTransfer(this.__wbg_ptr);
1708
+ return WasmCitationResult.__wrap(ret);
1709
+ }
1496
1710
  /**
1497
1711
  * @returns {WasmCitationResult}
1498
1712
  */
@@ -1501,6 +1715,9 @@ export class WasmCitationResult {
1501
1715
  return WasmCitationResult.__wrap(ret);
1502
1716
  }
1503
1717
  /**
1718
+ * Takes ownership of every element in `references`.
1719
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1720
+ * copy each retained element with `copyForTransfer()` before passing the array.
1504
1721
  * @param {string | null} [content]
1505
1722
  * @param {WasmCitationReference[] | null} [references]
1506
1723
  */
@@ -1515,6 +1732,10 @@ export class WasmCitationResult {
1515
1732
  return this;
1516
1733
  }
1517
1734
  /**
1735
+ * Returns detached copies of the elements in `references`.
1736
+ *
1737
+ * Changes to the returned values do not update this object. Modify the copies,
1738
+ * then assign the array back to `references`.
1518
1739
  * @returns {WasmCitationReference[]}
1519
1740
  */
1520
1741
  get references() {
@@ -1532,6 +1753,9 @@ export class WasmCitationResult {
1532
1753
  wasm.wasmcitationresult_set_content(this.__wbg_ptr, ptr0, len0);
1533
1754
  }
1534
1755
  /**
1756
+ * Takes ownership of every element in `references`.
1757
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1758
+ * element with `copyForTransfer()` before passing the array.
1535
1759
  * @param {WasmCitationReference[]} value
1536
1760
  */
1537
1761
  set references(value) {
@@ -1566,6 +1790,17 @@ export class WasmContentConfig {
1566
1790
  const ptr = this.__destroy_into_raw();
1567
1791
  wasm.__wbg_wasmcontentconfig_free(ptr, 0);
1568
1792
  }
1793
+ /**
1794
+ * Return an independent handle for an ownership-taking API.
1795
+ *
1796
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1797
+ * handle must remain usable.
1798
+ * @returns {WasmContentConfig}
1799
+ */
1800
+ copyForTransfer() {
1801
+ const ret = wasm.wasmcontentconfig_copyForTransfer(this.__wbg_ptr);
1802
+ return WasmContentConfig.__wrap(ret);
1803
+ }
1569
1804
  /**
1570
1805
  * @returns {WasmContentConfig}
1571
1806
  */
@@ -1842,6 +2077,17 @@ export class WasmCookieInfo {
1842
2077
  const ptr = this.__destroy_into_raw();
1843
2078
  wasm.__wbg_wasmcookieinfo_free(ptr, 0);
1844
2079
  }
2080
+ /**
2081
+ * Return an independent handle for an ownership-taking API.
2082
+ *
2083
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2084
+ * handle must remain usable.
2085
+ * @returns {WasmCookieInfo}
2086
+ */
2087
+ copyForTransfer() {
2088
+ const ret = wasm.wasmcookieinfo_copyForTransfer(this.__wbg_ptr);
2089
+ return WasmCookieInfo.__wrap(ret);
2090
+ }
1845
2091
  /**
1846
2092
  * @returns {WasmCookieInfo}
1847
2093
  */
@@ -2033,6 +2279,10 @@ export class WasmCrawlConfig {
2033
2279
  return v1;
2034
2280
  }
2035
2281
  /**
2282
+ * Returns a detached copy of `browser`.
2283
+ *
2284
+ * Changes to the returned value do not update this object. To update `browser`,
2285
+ * read it, modify the copy, then assign the copy back to `browser`.
2036
2286
  * @returns {WasmBrowserConfig}
2037
2287
  */
2038
2288
  get browser() {
@@ -2046,6 +2296,9 @@ export class WasmCrawlConfig {
2046
2296
  const ret = wasm.wasmcrawlconfig_captureScreenshot(this.__wbg_ptr);
2047
2297
  return ret !== 0;
2048
2298
  }
2299
+ clearProxy() {
2300
+ wasm.wasmcrawlconfig_clearProxy(this.__wbg_ptr);
2301
+ }
2049
2302
  /**
2050
2303
  * @returns {string | undefined}
2051
2304
  */
@@ -2059,6 +2312,10 @@ export class WasmCrawlConfig {
2059
2312
  return v1;
2060
2313
  }
2061
2314
  /**
2315
+ * Returns a detached copy of `content`.
2316
+ *
2317
+ * Changes to the returned value do not update this object. To update `content`,
2318
+ * read it, modify the copy, then assign the copy back to `content`.
2062
2319
  * @returns {WasmContentConfig}
2063
2320
  */
2064
2321
  get content() {
@@ -2072,6 +2329,17 @@ export class WasmCrawlConfig {
2072
2329
  const ret = wasm.wasmcrawlconfig_cookiesEnabled(this.__wbg_ptr);
2073
2330
  return ret !== 0;
2074
2331
  }
2332
+ /**
2333
+ * Return an independent handle for an ownership-taking API.
2334
+ *
2335
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2336
+ * handle must remain usable.
2337
+ * @returns {WasmCrawlConfig}
2338
+ */
2339
+ copyForTransfer() {
2340
+ const ret = wasm.wasmcrawlconfig_copyForTransfer(this.__wbg_ptr);
2341
+ return WasmCrawlConfig.__wrap(ret);
2342
+ }
2075
2343
  /**
2076
2344
  * @returns {string}
2077
2345
  */
@@ -2263,6 +2531,11 @@ export class WasmCrawlConfig {
2263
2531
  return ret >>> 0;
2264
2532
  }
2265
2533
  /**
2534
+ * Takes ownership of `content`, `browser`, `proxy`, `ssrf`.
2535
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2536
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2537
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2538
+ * the generated setter borrows and leaves your handle alive.
2266
2539
  * @param {WasmCrawlStrategyKind | null} [crawlStrategy]
2267
2540
  * @param {boolean | null} [respectRobotsTxt]
2268
2541
  * @param {boolean | null} [softHttpErrors]
@@ -2271,6 +2544,7 @@ export class WasmCrawlConfig {
2271
2544
  * @param {string[] | null} [includePaths]
2272
2545
  * @param {string[] | null} [excludePaths]
2273
2546
  * @param {boolean | null} [pathPatternsMatchQuery]
2547
+ * @param {boolean | null} [pathPatternsMatchUrl]
2274
2548
  * @param {boolean | null} [dedupIncludeQuery]
2275
2549
  * @param {boolean | null} [stripTrackingParams]
2276
2550
  * @param {string[] | null} [trackingParams]
@@ -2318,7 +2592,7 @@ export class WasmCrawlConfig {
2318
2592
  * @param {string | null} [browserProfile]
2319
2593
  * @param {boolean | null} [ssrfDenyPrivateExplicit]
2320
2594
  */
2321
- constructor(crawlStrategy, respectRobotsTxt, softHttpErrors, stayOnDomain, allowSubdomains, includePaths, excludePaths, pathPatternsMatchQuery, dedupIncludeQuery, stripTrackingParams, trackingParams, customHeaders, requestTimeout, maxRedirects, retryCount, retryCodes, retryInitialDelayMs, retryMaxDelayMs, rateLimitJitterRatio, cookiesEnabled, removeTags, content, downloadAssets, assetTypes, browser, userAgents, captureScreenshot, followDocumentUrls, downloadDocuments, documentMimeTypes, saveBrowserProfile, ssrf, maxDepth, maxPages, maxLinksPerPage, maxConcurrent, contentFilter, bm25Query, bm25Threshold, userAgent, rateLimitMs, auth, maxBodySize, mapLimit, mapSearch, maxAssetSize, proxy, documentUrlDepth, documentMaxSize, documentOutputDir, documentContentEncoding, warcOutput, browserProfile, ssrfDenyPrivateExplicit) {
2595
+ constructor(crawlStrategy, respectRobotsTxt, softHttpErrors, stayOnDomain, allowSubdomains, includePaths, excludePaths, pathPatternsMatchQuery, pathPatternsMatchUrl, dedupIncludeQuery, stripTrackingParams, trackingParams, customHeaders, requestTimeout, maxRedirects, retryCount, retryCodes, retryInitialDelayMs, retryMaxDelayMs, rateLimitJitterRatio, cookiesEnabled, removeTags, content, downloadAssets, assetTypes, browser, userAgents, captureScreenshot, followDocumentUrls, downloadDocuments, documentMimeTypes, saveBrowserProfile, ssrf, maxDepth, maxPages, maxLinksPerPage, maxConcurrent, contentFilter, bm25Query, bm25Threshold, userAgent, rateLimitMs, auth, maxBodySize, mapLimit, mapSearch, maxAssetSize, proxy, documentUrlDepth, documentMaxSize, documentOutputDir, documentContentEncoding, warcOutput, browserProfile, ssrfDenyPrivateExplicit) {
2322
2596
  var ptr0 = isLikeNone(includePaths) ? 0 : passArrayJsValueToWasm0(includePaths, wasm.__wbindgen_malloc);
2323
2597
  var len0 = WASM_VECTOR_LEN;
2324
2598
  var ptr1 = isLikeNone(excludePaths) ? 0 : passArrayJsValueToWasm0(excludePaths, wasm.__wbindgen_malloc);
@@ -2367,7 +2641,7 @@ export class WasmCrawlConfig {
2367
2641
  var len16 = WASM_VECTOR_LEN;
2368
2642
  var ptr17 = isLikeNone(browserProfile) ? 0 : passStringToWasm0(browserProfile, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
2369
2643
  var len17 = WASM_VECTOR_LEN;
2370
- const ret = wasm.wasmcrawlconfig_new(isLikeNone(crawlStrategy) ? 4 : crawlStrategy, isLikeNone(respectRobotsTxt) ? 0xFFFFFF : respectRobotsTxt ? 1 : 0, isLikeNone(softHttpErrors) ? 0xFFFFFF : softHttpErrors ? 1 : 0, isLikeNone(stayOnDomain) ? 0xFFFFFF : stayOnDomain ? 1 : 0, isLikeNone(allowSubdomains) ? 0xFFFFFF : allowSubdomains ? 1 : 0, ptr0, len0, ptr1, len1, isLikeNone(pathPatternsMatchQuery) ? 0xFFFFFF : pathPatternsMatchQuery ? 1 : 0, isLikeNone(dedupIncludeQuery) ? 0xFFFFFF : dedupIncludeQuery ? 1 : 0, isLikeNone(stripTrackingParams) ? 0xFFFFFF : stripTrackingParams ? 1 : 0, ptr2, len2, isLikeNone(customHeaders) ? 0 : addToExternrefTable0(customHeaders), !isLikeNone(requestTimeout), isLikeNone(requestTimeout) ? BigInt(0) : requestTimeout, isLikeNone(maxRedirects) ? Number.MAX_SAFE_INTEGER : (maxRedirects) >>> 0, isLikeNone(retryCount) ? Number.MAX_SAFE_INTEGER : (retryCount) >>> 0, ptr3, len3, !isLikeNone(retryInitialDelayMs), isLikeNone(retryInitialDelayMs) ? BigInt(0) : retryInitialDelayMs, !isLikeNone(retryMaxDelayMs), isLikeNone(retryMaxDelayMs) ? BigInt(0) : retryMaxDelayMs, !isLikeNone(rateLimitJitterRatio), isLikeNone(rateLimitJitterRatio) ? 0 : rateLimitJitterRatio, isLikeNone(cookiesEnabled) ? 0xFFFFFF : cookiesEnabled ? 1 : 0, ptr4, len4, ptr5, isLikeNone(downloadAssets) ? 0xFFFFFF : downloadAssets ? 1 : 0, ptr6, len6, ptr7, ptr8, len8, isLikeNone(captureScreenshot) ? 0xFFFFFF : captureScreenshot ? 1 : 0, isLikeNone(followDocumentUrls) ? 0xFFFFFF : followDocumentUrls ? 1 : 0, isLikeNone(downloadDocuments) ? 0xFFFFFF : downloadDocuments ? 1 : 0, ptr9, len9, isLikeNone(saveBrowserProfile) ? 0xFFFFFF : saveBrowserProfile ? 1 : 0, ptr10, isLikeNone(maxDepth) ? Number.MAX_SAFE_INTEGER : (maxDepth) >>> 0, isLikeNone(maxPages) ? Number.MAX_SAFE_INTEGER : (maxPages) >>> 0, isLikeNone(maxLinksPerPage) ? Number.MAX_SAFE_INTEGER : (maxLinksPerPage) >>> 0, isLikeNone(maxConcurrent) ? Number.MAX_SAFE_INTEGER : (maxConcurrent) >>> 0, isLikeNone(contentFilter) ? 1 : contentFilter, ptr11, len11, !isLikeNone(bm25Threshold), isLikeNone(bm25Threshold) ? 0 : bm25Threshold, ptr12, len12, !isLikeNone(rateLimitMs), isLikeNone(rateLimitMs) ? BigInt(0) : rateLimitMs, isLikeNone(auth) ? 0 : addToExternrefTable0(auth), isLikeNone(maxBodySize) ? Number.MAX_SAFE_INTEGER : (maxBodySize) >>> 0, isLikeNone(mapLimit) ? Number.MAX_SAFE_INTEGER : (mapLimit) >>> 0, ptr13, len13, isLikeNone(maxAssetSize) ? Number.MAX_SAFE_INTEGER : (maxAssetSize) >>> 0, ptr14, isLikeNone(documentUrlDepth) ? Number.MAX_SAFE_INTEGER : (documentUrlDepth) >>> 0, isLikeNone(documentMaxSize) ? Number.MAX_SAFE_INTEGER : (documentMaxSize) >>> 0, ptr15, len15, isLikeNone(documentContentEncoding) ? 1 : documentContentEncoding, ptr16, len16, ptr17, len17, isLikeNone(ssrfDenyPrivateExplicit) ? 0xFFFFFF : ssrfDenyPrivateExplicit ? 1 : 0);
2644
+ const ret = wasm.wasmcrawlconfig_new(isLikeNone(crawlStrategy) ? 4 : crawlStrategy, isLikeNone(respectRobotsTxt) ? 0xFFFFFF : respectRobotsTxt ? 1 : 0, isLikeNone(softHttpErrors) ? 0xFFFFFF : softHttpErrors ? 1 : 0, isLikeNone(stayOnDomain) ? 0xFFFFFF : stayOnDomain ? 1 : 0, isLikeNone(allowSubdomains) ? 0xFFFFFF : allowSubdomains ? 1 : 0, ptr0, len0, ptr1, len1, isLikeNone(pathPatternsMatchQuery) ? 0xFFFFFF : pathPatternsMatchQuery ? 1 : 0, isLikeNone(pathPatternsMatchUrl) ? 0xFFFFFF : pathPatternsMatchUrl ? 1 : 0, isLikeNone(dedupIncludeQuery) ? 0xFFFFFF : dedupIncludeQuery ? 1 : 0, isLikeNone(stripTrackingParams) ? 0xFFFFFF : stripTrackingParams ? 1 : 0, ptr2, len2, isLikeNone(customHeaders) ? 0 : addToExternrefTable0(customHeaders), !isLikeNone(requestTimeout), isLikeNone(requestTimeout) ? BigInt(0) : requestTimeout, isLikeNone(maxRedirects) ? Number.MAX_SAFE_INTEGER : (maxRedirects) >>> 0, isLikeNone(retryCount) ? Number.MAX_SAFE_INTEGER : (retryCount) >>> 0, ptr3, len3, !isLikeNone(retryInitialDelayMs), isLikeNone(retryInitialDelayMs) ? BigInt(0) : retryInitialDelayMs, !isLikeNone(retryMaxDelayMs), isLikeNone(retryMaxDelayMs) ? BigInt(0) : retryMaxDelayMs, !isLikeNone(rateLimitJitterRatio), isLikeNone(rateLimitJitterRatio) ? 0 : rateLimitJitterRatio, isLikeNone(cookiesEnabled) ? 0xFFFFFF : cookiesEnabled ? 1 : 0, ptr4, len4, ptr5, isLikeNone(downloadAssets) ? 0xFFFFFF : downloadAssets ? 1 : 0, ptr6, len6, ptr7, ptr8, len8, isLikeNone(captureScreenshot) ? 0xFFFFFF : captureScreenshot ? 1 : 0, isLikeNone(followDocumentUrls) ? 0xFFFFFF : followDocumentUrls ? 1 : 0, isLikeNone(downloadDocuments) ? 0xFFFFFF : downloadDocuments ? 1 : 0, ptr9, len9, isLikeNone(saveBrowserProfile) ? 0xFFFFFF : saveBrowserProfile ? 1 : 0, ptr10, isLikeNone(maxDepth) ? Number.MAX_SAFE_INTEGER : (maxDepth) >>> 0, isLikeNone(maxPages) ? Number.MAX_SAFE_INTEGER : (maxPages) >>> 0, isLikeNone(maxLinksPerPage) ? Number.MAX_SAFE_INTEGER : (maxLinksPerPage) >>> 0, isLikeNone(maxConcurrent) ? Number.MAX_SAFE_INTEGER : (maxConcurrent) >>> 0, isLikeNone(contentFilter) ? 1 : contentFilter, ptr11, len11, !isLikeNone(bm25Threshold), isLikeNone(bm25Threshold) ? 0 : bm25Threshold, ptr12, len12, !isLikeNone(rateLimitMs), isLikeNone(rateLimitMs) ? BigInt(0) : rateLimitMs, isLikeNone(auth) ? 0 : addToExternrefTable0(auth), isLikeNone(maxBodySize) ? Number.MAX_SAFE_INTEGER : (maxBodySize) >>> 0, isLikeNone(mapLimit) ? Number.MAX_SAFE_INTEGER : (mapLimit) >>> 0, ptr13, len13, isLikeNone(maxAssetSize) ? Number.MAX_SAFE_INTEGER : (maxAssetSize) >>> 0, ptr14, isLikeNone(documentUrlDepth) ? Number.MAX_SAFE_INTEGER : (documentUrlDepth) >>> 0, isLikeNone(documentMaxSize) ? Number.MAX_SAFE_INTEGER : (documentMaxSize) >>> 0, ptr15, len15, isLikeNone(documentContentEncoding) ? 1 : documentContentEncoding, ptr16, len16, ptr17, len17, isLikeNone(ssrfDenyPrivateExplicit) ? 0xFFFFFF : ssrfDenyPrivateExplicit ? 1 : 0);
2371
2645
  this.__wbg_ptr = ret;
2372
2646
  WasmCrawlConfigFinalization.register(this, this.__wbg_ptr, this);
2373
2647
  return this;
@@ -2380,6 +2654,17 @@ export class WasmCrawlConfig {
2380
2654
  return ret !== 0;
2381
2655
  }
2382
2656
  /**
2657
+ * @returns {boolean}
2658
+ */
2659
+ get pathPatternsMatchUrl() {
2660
+ const ret = wasm.wasmcrawlconfig_pathPatternsMatchUrl(this.__wbg_ptr);
2661
+ return ret !== 0;
2662
+ }
2663
+ /**
2664
+ * Returns a detached copy of `proxy`.
2665
+ *
2666
+ * Changes to the returned value do not update this object. To update `proxy`,
2667
+ * read it, modify the copy, then assign the copy back to `proxy`.
2383
2668
  * @returns {WasmProxyConfig | undefined}
2384
2669
  */
2385
2670
  get proxy() {
@@ -2507,8 +2792,7 @@ export class WasmCrawlConfig {
2507
2792
  */
2508
2793
  set browser(value) {
2509
2794
  _assertClass(value, WasmBrowserConfig);
2510
- var ptr0 = value.__destroy_into_raw();
2511
- wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, ptr0);
2795
+ wasm.wasmcrawlconfig_set_browser(this.__wbg_ptr, value.__wbg_ptr);
2512
2796
  }
2513
2797
  /**
2514
2798
  * @param {boolean} value
@@ -2527,8 +2811,7 @@ export class WasmCrawlConfig {
2527
2811
  */
2528
2812
  set content(value) {
2529
2813
  _assertClass(value, WasmContentConfig);
2530
- var ptr0 = value.__destroy_into_raw();
2531
- wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, ptr0);
2814
+ wasm.wasmcrawlconfig_set_content(this.__wbg_ptr, value.__wbg_ptr);
2532
2815
  }
2533
2816
  /**
2534
2817
  * @param {boolean} value
@@ -2685,15 +2968,17 @@ export class WasmCrawlConfig {
2685
2968
  wasm.wasmcrawlconfig_set_pathPatternsMatchQuery(this.__wbg_ptr, value);
2686
2969
  }
2687
2970
  /**
2688
- * @param {WasmProxyConfig | null} [value]
2971
+ * @param {boolean} value
2972
+ */
2973
+ set pathPatternsMatchUrl(value) {
2974
+ wasm.wasmcrawlconfig_set_pathPatternsMatchUrl(this.__wbg_ptr, value);
2975
+ }
2976
+ /**
2977
+ * @param {WasmProxyConfig} value
2689
2978
  */
2690
2979
  set proxy(value) {
2691
- let ptr0 = 0;
2692
- if (!isLikeNone(value)) {
2693
- _assertClass(value, WasmProxyConfig);
2694
- ptr0 = value.__destroy_into_raw();
2695
- }
2696
- wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, ptr0);
2980
+ _assertClass(value, WasmProxyConfig);
2981
+ wasm.wasmcrawlconfig_set_proxy(this.__wbg_ptr, value.__wbg_ptr);
2697
2982
  }
2698
2983
  /**
2699
2984
  * @param {number} value
@@ -2776,8 +3061,7 @@ export class WasmCrawlConfig {
2776
3061
  */
2777
3062
  set ssrf(value) {
2778
3063
  _assertClass(value, WasmSsrfPolicy);
2779
- var ptr0 = value.__destroy_into_raw();
2780
- wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, ptr0);
3064
+ wasm.wasmcrawlconfig_set_ssrf(this.__wbg_ptr, value.__wbg_ptr);
2781
3065
  }
2782
3066
  /**
2783
3067
  * @param {boolean} value
@@ -2838,6 +3122,10 @@ export class WasmCrawlConfig {
2838
3122
  return ret === 0xFFFFFF ? undefined : ret !== 0;
2839
3123
  }
2840
3124
  /**
3125
+ * Returns a detached copy of `ssrf`.
3126
+ *
3127
+ * Changes to the returned value do not update this object. To update `ssrf`,
3128
+ * read it, modify the copy, then assign the copy back to `ssrf`.
2841
3129
  * @returns {WasmSsrfPolicy}
2842
3130
  */
2843
3131
  get ssrf() {
@@ -2938,6 +3226,17 @@ export class WasmCrawlEngineHandle {
2938
3226
  const ptr = this.__destroy_into_raw();
2939
3227
  wasm.__wbg_wasmcrawlenginehandle_free(ptr, 0);
2940
3228
  }
3229
+ /**
3230
+ * Return an independent handle for an ownership-taking API.
3231
+ *
3232
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3233
+ * handle must remain usable.
3234
+ * @returns {WasmCrawlEngineHandle}
3235
+ */
3236
+ copyForTransfer() {
3237
+ const ret = wasm.wasmcrawlenginehandle_copyForTransfer(this.__wbg_ptr);
3238
+ return WasmCrawlEngineHandle.__wrap(ret);
3239
+ }
2941
3240
  }
2942
3241
  if (Symbol.dispose) WasmCrawlEngineHandle.prototype[Symbol.dispose] = WasmCrawlEngineHandle.prototype.free;
2943
3242
 
@@ -2981,6 +3280,15 @@ export class WasmCrawlPageResult {
2981
3280
  const ret = wasm.wasmcrawlpageresult_browserUsed(this.__wbg_ptr);
2982
3281
  return ret !== 0;
2983
3282
  }
3283
+ clearDownloadedDocument() {
3284
+ wasm.wasmcrawlpageresult_clearDownloadedDocument(this.__wbg_ptr);
3285
+ }
3286
+ clearExtractionMeta() {
3287
+ wasm.wasmcrawlpageresult_clearExtractionMeta(this.__wbg_ptr);
3288
+ }
3289
+ clearMarkdown() {
3290
+ wasm.wasmcrawlpageresult_clearMarkdown(this.__wbg_ptr);
3291
+ }
2984
3292
  /**
2985
3293
  * @returns {string}
2986
3294
  */
@@ -2996,6 +3304,17 @@ export class WasmCrawlPageResult {
2996
3304
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
2997
3305
  }
2998
3306
  }
3307
+ /**
3308
+ * Return an independent handle for an ownership-taking API.
3309
+ *
3310
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3311
+ * handle must remain usable.
3312
+ * @returns {WasmCrawlPageResult}
3313
+ */
3314
+ copyForTransfer() {
3315
+ const ret = wasm.wasmcrawlpageresult_copyForTransfer(this.__wbg_ptr);
3316
+ return WasmCrawlPageResult.__wrap(ret);
3317
+ }
2999
3318
  /**
3000
3319
  * @returns {WasmCrawlPageResult}
3001
3320
  */
@@ -3023,6 +3342,10 @@ export class WasmCrawlPageResult {
3023
3342
  return v1;
3024
3343
  }
3025
3344
  /**
3345
+ * Returns a detached copy of `downloadedDocument`.
3346
+ *
3347
+ * Changes to the returned value do not update this object. To update `downloadedDocument`,
3348
+ * read it, modify the copy, then assign the copy back to `downloadedDocument`.
3026
3349
  * @returns {WasmDownloadedDocument | undefined}
3027
3350
  */
3028
3351
  get downloadedDocument() {
@@ -3037,6 +3360,10 @@ export class WasmCrawlPageResult {
3037
3360
  return ret;
3038
3361
  }
3039
3362
  /**
3363
+ * Returns a detached copy of `extractionMeta`.
3364
+ *
3365
+ * Changes to the returned value do not update this object. To update `extractionMeta`,
3366
+ * read it, modify the copy, then assign the copy back to `extractionMeta`.
3040
3367
  * @returns {WasmExtractionMeta | undefined}
3041
3368
  */
3042
3369
  get extractionMeta() {
@@ -3044,6 +3371,10 @@ export class WasmCrawlPageResult {
3044
3371
  return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
3045
3372
  }
3046
3373
  /**
3374
+ * Returns detached copies of the elements in `feeds`.
3375
+ *
3376
+ * Changes to the returned values do not update this object. Modify the copies,
3377
+ * then assign the array back to `feeds`.
3047
3378
  * @returns {WasmFeedInfo[]}
3048
3379
  */
3049
3380
  get feeds() {
@@ -3083,6 +3414,10 @@ export class WasmCrawlPageResult {
3083
3414
  }
3084
3415
  }
3085
3416
  /**
3417
+ * Returns detached copies of the elements in `images`.
3418
+ *
3419
+ * Changes to the returned values do not update this object. Modify the copies,
3420
+ * then assign the array back to `images`.
3086
3421
  * @returns {WasmImageInfo[]}
3087
3422
  */
3088
3423
  get images() {
@@ -3099,6 +3434,10 @@ export class WasmCrawlPageResult {
3099
3434
  return ret !== 0;
3100
3435
  }
3101
3436
  /**
3437
+ * Returns detached copies of the elements in `jsonLd`.
3438
+ *
3439
+ * Changes to the returned values do not update this object. Modify the copies,
3440
+ * then assign the array back to `jsonLd`.
3102
3441
  * @returns {WasmJsonLdEntry[]}
3103
3442
  */
3104
3443
  get jsonLd() {
@@ -3108,6 +3447,10 @@ export class WasmCrawlPageResult {
3108
3447
  return v1;
3109
3448
  }
3110
3449
  /**
3450
+ * Returns detached copies of the elements in `links`.
3451
+ *
3452
+ * Changes to the returned values do not update this object. Modify the copies,
3453
+ * then assign the array back to `links`.
3111
3454
  * @returns {WasmLinkInfo[]}
3112
3455
  */
3113
3456
  get links() {
@@ -3117,6 +3460,10 @@ export class WasmCrawlPageResult {
3117
3460
  return v1;
3118
3461
  }
3119
3462
  /**
3463
+ * Returns a detached copy of `markdown`.
3464
+ *
3465
+ * Changes to the returned value do not update this object. To update `markdown`,
3466
+ * read it, modify the copy, then assign the copy back to `markdown`.
3120
3467
  * @returns {WasmMarkdownResult | undefined}
3121
3468
  */
3122
3469
  get markdown() {
@@ -3124,6 +3471,10 @@ export class WasmCrawlPageResult {
3124
3471
  return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
3125
3472
  }
3126
3473
  /**
3474
+ * Returns a detached copy of `metadata`.
3475
+ *
3476
+ * Changes to the returned value do not update this object. To update `metadata`,
3477
+ * read it, modify the copy, then assign the copy back to `metadata`.
3127
3478
  * @returns {WasmPageMetadata}
3128
3479
  */
3129
3480
  get metadata() {
@@ -3131,6 +3482,14 @@ export class WasmCrawlPageResult {
3131
3482
  return WasmPageMetadata.__wrap(ret);
3132
3483
  }
3133
3484
  /**
3485
+ * Takes ownership of `metadata`, `markdown`, `extractionMeta`, `downloadedDocument`.
3486
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
3487
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
3488
+ * keep a handle you already hold, build with `default()` and assign the property instead:
3489
+ * the generated setter borrows and leaves your handle alive.
3490
+ * Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`.
3491
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3492
+ * copy each retained element with `copyForTransfer()` before passing the array.
3134
3493
  * @param {string | null} [url]
3135
3494
  * @param {string | null} [normalizedUrl]
3136
3495
  * @param {number | null} [statusCode]
@@ -3151,13 +3510,14 @@ export class WasmCrawlPageResult {
3151
3510
  * @param {number | null} [redirectCount]
3152
3511
  * @param {boolean | null} [noindexDetected]
3153
3512
  * @param {boolean | null} [nofollowDetected]
3513
+ * @param {string[] | null} [ssrfRefusedUrls]
3154
3514
  * @param {string | null} [detectedCharset]
3155
3515
  * @param {WasmMarkdownResult | null} [markdown]
3156
3516
  * @param {any | null} [extractedData]
3157
3517
  * @param {WasmExtractionMeta | null} [extractionMeta]
3158
3518
  * @param {WasmDownloadedDocument | null} [downloadedDocument]
3159
3519
  */
3160
- constructor(url, normalizedUrl, statusCode, contentType, html, bodySize, metadata, links, images, feeds, jsonLd, depth, stayedOnDomain, wasSkipped, isPdf, browserUsed, finalUrl, redirectCount, noindexDetected, nofollowDetected, detectedCharset, markdown, extractedData, extractionMeta, downloadedDocument) {
3520
+ constructor(url, normalizedUrl, statusCode, contentType, html, bodySize, metadata, links, images, feeds, jsonLd, depth, stayedOnDomain, wasSkipped, isPdf, browserUsed, finalUrl, redirectCount, noindexDetected, nofollowDetected, ssrfRefusedUrls, detectedCharset, markdown, extractedData, extractionMeta, downloadedDocument) {
3161
3521
  var ptr0 = isLikeNone(url) ? 0 : passStringToWasm0(url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3162
3522
  var len0 = WASM_VECTOR_LEN;
3163
3523
  var ptr1 = isLikeNone(normalizedUrl) ? 0 : passStringToWasm0(normalizedUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -3181,24 +3541,26 @@ export class WasmCrawlPageResult {
3181
3541
  var len8 = WASM_VECTOR_LEN;
3182
3542
  var ptr9 = isLikeNone(finalUrl) ? 0 : passStringToWasm0(finalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3183
3543
  var len9 = WASM_VECTOR_LEN;
3184
- var ptr10 = isLikeNone(detectedCharset) ? 0 : passStringToWasm0(detectedCharset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3544
+ var ptr10 = isLikeNone(ssrfRefusedUrls) ? 0 : passArrayJsValueToWasm0(ssrfRefusedUrls, wasm.__wbindgen_malloc);
3185
3545
  var len10 = WASM_VECTOR_LEN;
3186
- let ptr11 = 0;
3546
+ var ptr11 = isLikeNone(detectedCharset) ? 0 : passStringToWasm0(detectedCharset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
3547
+ var len11 = WASM_VECTOR_LEN;
3548
+ let ptr12 = 0;
3187
3549
  if (!isLikeNone(markdown)) {
3188
3550
  _assertClass(markdown, WasmMarkdownResult);
3189
- ptr11 = markdown.__destroy_into_raw();
3551
+ ptr12 = markdown.__destroy_into_raw();
3190
3552
  }
3191
- let ptr12 = 0;
3553
+ let ptr13 = 0;
3192
3554
  if (!isLikeNone(extractionMeta)) {
3193
3555
  _assertClass(extractionMeta, WasmExtractionMeta);
3194
- ptr12 = extractionMeta.__destroy_into_raw();
3556
+ ptr13 = extractionMeta.__destroy_into_raw();
3195
3557
  }
3196
- let ptr13 = 0;
3558
+ let ptr14 = 0;
3197
3559
  if (!isLikeNone(downloadedDocument)) {
3198
3560
  _assertClass(downloadedDocument, WasmDownloadedDocument);
3199
- ptr13 = downloadedDocument.__destroy_into_raw();
3561
+ ptr14 = downloadedDocument.__destroy_into_raw();
3200
3562
  }
3201
- const ret = wasm.wasmcrawlpageresult_new(ptr0, len0, ptr1, len1, isLikeNone(statusCode) ? 0xFFFFFF : statusCode, ptr2, len2, ptr3, len3, isLikeNone(bodySize) ? Number.MAX_SAFE_INTEGER : (bodySize) >>> 0, ptr4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, isLikeNone(depth) ? Number.MAX_SAFE_INTEGER : (depth) >>> 0, isLikeNone(stayedOnDomain) ? 0xFFFFFF : stayedOnDomain ? 1 : 0, isLikeNone(wasSkipped) ? 0xFFFFFF : wasSkipped ? 1 : 0, isLikeNone(isPdf) ? 0xFFFFFF : isPdf ? 1 : 0, isLikeNone(browserUsed) ? 0xFFFFFF : browserUsed ? 1 : 0, ptr9, len9, isLikeNone(redirectCount) ? Number.MAX_SAFE_INTEGER : (redirectCount) >>> 0, isLikeNone(noindexDetected) ? 0xFFFFFF : noindexDetected ? 1 : 0, isLikeNone(nofollowDetected) ? 0xFFFFFF : nofollowDetected ? 1 : 0, ptr10, len10, ptr11, isLikeNone(extractedData) ? 0 : addToExternrefTable0(extractedData), ptr12, ptr13);
3563
+ const ret = wasm.wasmcrawlpageresult_new(ptr0, len0, ptr1, len1, isLikeNone(statusCode) ? 0xFFFFFF : statusCode, ptr2, len2, ptr3, len3, isLikeNone(bodySize) ? Number.MAX_SAFE_INTEGER : (bodySize) >>> 0, ptr4, ptr5, len5, ptr6, len6, ptr7, len7, ptr8, len8, isLikeNone(depth) ? Number.MAX_SAFE_INTEGER : (depth) >>> 0, isLikeNone(stayedOnDomain) ? 0xFFFFFF : stayedOnDomain ? 1 : 0, isLikeNone(wasSkipped) ? 0xFFFFFF : wasSkipped ? 1 : 0, isLikeNone(isPdf) ? 0xFFFFFF : isPdf ? 1 : 0, isLikeNone(browserUsed) ? 0xFFFFFF : browserUsed ? 1 : 0, ptr9, len9, isLikeNone(redirectCount) ? Number.MAX_SAFE_INTEGER : (redirectCount) >>> 0, isLikeNone(noindexDetected) ? 0xFFFFFF : noindexDetected ? 1 : 0, isLikeNone(nofollowDetected) ? 0xFFFFFF : nofollowDetected ? 1 : 0, ptr10, len10, ptr11, len11, ptr12, isLikeNone(extractedData) ? 0 : addToExternrefTable0(extractedData), ptr13, ptr14);
3202
3564
  this.__wbg_ptr = ret;
3203
3565
  WasmCrawlPageResultFinalization.register(this, this.__wbg_ptr, this);
3204
3566
  return this;
@@ -3274,15 +3636,11 @@ export class WasmCrawlPageResult {
3274
3636
  wasm.wasmcrawlpageresult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
3275
3637
  }
3276
3638
  /**
3277
- * @param {WasmDownloadedDocument | null} [value]
3639
+ * @param {WasmDownloadedDocument} value
3278
3640
  */
3279
3641
  set downloadedDocument(value) {
3280
- let ptr0 = 0;
3281
- if (!isLikeNone(value)) {
3282
- _assertClass(value, WasmDownloadedDocument);
3283
- ptr0 = value.__destroy_into_raw();
3284
- }
3285
- wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, ptr0);
3642
+ _assertClass(value, WasmDownloadedDocument);
3643
+ wasm.wasmcrawlpageresult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
3286
3644
  }
3287
3645
  /**
3288
3646
  * @param {any | null} [value]
@@ -3291,17 +3649,16 @@ export class WasmCrawlPageResult {
3291
3649
  wasm.wasmcrawlpageresult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
3292
3650
  }
3293
3651
  /**
3294
- * @param {WasmExtractionMeta | null} [value]
3652
+ * @param {WasmExtractionMeta} value
3295
3653
  */
3296
3654
  set extractionMeta(value) {
3297
- let ptr0 = 0;
3298
- if (!isLikeNone(value)) {
3299
- _assertClass(value, WasmExtractionMeta);
3300
- ptr0 = value.__destroy_into_raw();
3301
- }
3302
- wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, ptr0);
3655
+ _assertClass(value, WasmExtractionMeta);
3656
+ wasm.wasmcrawlpageresult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
3303
3657
  }
3304
3658
  /**
3659
+ * Takes ownership of every element in `feeds`.
3660
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3661
+ * element with `copyForTransfer()` before passing the array.
3305
3662
  * @param {WasmFeedInfo[]} value
3306
3663
  */
3307
3664
  set feeds(value) {
@@ -3326,6 +3683,9 @@ export class WasmCrawlPageResult {
3326
3683
  wasm.wasmcrawlpageresult_set_html(this.__wbg_ptr, ptr0, len0);
3327
3684
  }
3328
3685
  /**
3686
+ * Takes ownership of every element in `images`.
3687
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3688
+ * element with `copyForTransfer()` before passing the array.
3329
3689
  * @param {WasmImageInfo[]} value
3330
3690
  */
3331
3691
  set images(value) {
@@ -3340,6 +3700,9 @@ export class WasmCrawlPageResult {
3340
3700
  wasm.wasmcrawlpageresult_set_isPdf(this.__wbg_ptr, value);
3341
3701
  }
3342
3702
  /**
3703
+ * Takes ownership of every element in `jsonLd`.
3704
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3705
+ * element with `copyForTransfer()` before passing the array.
3343
3706
  * @param {WasmJsonLdEntry[]} value
3344
3707
  */
3345
3708
  set jsonLd(value) {
@@ -3348,6 +3711,9 @@ export class WasmCrawlPageResult {
3348
3711
  wasm.wasmcrawlpageresult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
3349
3712
  }
3350
3713
  /**
3714
+ * Takes ownership of every element in `links`.
3715
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3716
+ * element with `copyForTransfer()` before passing the array.
3351
3717
  * @param {WasmLinkInfo[]} value
3352
3718
  */
3353
3719
  set links(value) {
@@ -3356,23 +3722,18 @@ export class WasmCrawlPageResult {
3356
3722
  wasm.wasmcrawlpageresult_set_links(this.__wbg_ptr, ptr0, len0);
3357
3723
  }
3358
3724
  /**
3359
- * @param {WasmMarkdownResult | null} [value]
3725
+ * @param {WasmMarkdownResult} value
3360
3726
  */
3361
3727
  set markdown(value) {
3362
- let ptr0 = 0;
3363
- if (!isLikeNone(value)) {
3364
- _assertClass(value, WasmMarkdownResult);
3365
- ptr0 = value.__destroy_into_raw();
3366
- }
3367
- wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, ptr0);
3728
+ _assertClass(value, WasmMarkdownResult);
3729
+ wasm.wasmcrawlpageresult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
3368
3730
  }
3369
3731
  /**
3370
3732
  * @param {WasmPageMetadata} value
3371
3733
  */
3372
3734
  set metadata(value) {
3373
3735
  _assertClass(value, WasmPageMetadata);
3374
- var ptr0 = value.__destroy_into_raw();
3375
- wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, ptr0);
3736
+ wasm.wasmcrawlpageresult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
3376
3737
  }
3377
3738
  /**
3378
3739
  * @param {boolean} value
@@ -3400,6 +3761,14 @@ export class WasmCrawlPageResult {
3400
3761
  set redirectCount(value) {
3401
3762
  wasm.wasmcrawlpageresult_set_redirectCount(this.__wbg_ptr, value);
3402
3763
  }
3764
+ /**
3765
+ * @param {string[]} value
3766
+ */
3767
+ set ssrfRefusedUrls(value) {
3768
+ const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_malloc);
3769
+ const len0 = WASM_VECTOR_LEN;
3770
+ wasm.wasmcrawlpageresult_set_ssrfRefusedUrls(this.__wbg_ptr, ptr0, len0);
3771
+ }
3403
3772
  /**
3404
3773
  * @param {number} value
3405
3774
  */
@@ -3426,6 +3795,15 @@ export class WasmCrawlPageResult {
3426
3795
  set wasSkipped(value) {
3427
3796
  wasm.wasmcrawlpageresult_set_wasSkipped(this.__wbg_ptr, value);
3428
3797
  }
3798
+ /**
3799
+ * @returns {string[]}
3800
+ */
3801
+ get ssrfRefusedUrls() {
3802
+ const ret = wasm.wasmcrawlpageresult_ssrfRefusedUrls(this.__wbg_ptr);
3803
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
3804
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3805
+ return v1;
3806
+ }
3429
3807
  /**
3430
3808
  * @returns {number}
3431
3809
  */
@@ -3493,6 +3871,10 @@ export class WasmCrawlResult {
3493
3871
  return ret !== 0;
3494
3872
  }
3495
3873
  /**
3874
+ * Returns detached copies of the elements in `cookies`.
3875
+ *
3876
+ * Changes to the returned values do not update this object. Modify the copies,
3877
+ * then assign the array back to `cookies`.
3496
3878
  * @returns {WasmCookieInfo[]}
3497
3879
  */
3498
3880
  get cookies() {
@@ -3501,6 +3883,17 @@ export class WasmCrawlResult {
3501
3883
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
3502
3884
  return v1;
3503
3885
  }
3886
+ /**
3887
+ * Return an independent handle for an ownership-taking API.
3888
+ *
3889
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3890
+ * handle must remain usable.
3891
+ * @returns {WasmCrawlResult}
3892
+ */
3893
+ copyForTransfer() {
3894
+ const ret = wasm.wasmcrawlresult_copyForTransfer(this.__wbg_ptr);
3895
+ return WasmCrawlResult.__wrap(ret);
3896
+ }
3504
3897
  /**
3505
3898
  * @returns {WasmCrawlResult}
3506
3899
  */
@@ -3536,6 +3929,9 @@ export class WasmCrawlResult {
3536
3929
  }
3537
3930
  }
3538
3931
  /**
3932
+ * Takes ownership of every element in `pages`, `cookies`.
3933
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3934
+ * copy each retained element with `copyForTransfer()` before passing the array.
3539
3935
  * @param {WasmCrawlPageResult[] | null} [pages]
3540
3936
  * @param {string | null} [finalUrl]
3541
3937
  * @param {number | null} [redirectCount]
@@ -3560,6 +3956,10 @@ export class WasmCrawlResult {
3560
3956
  return this;
3561
3957
  }
3562
3958
  /**
3959
+ * Returns detached copies of the elements in `pages`.
3960
+ *
3961
+ * Changes to the returned values do not update this object. Modify the copies,
3962
+ * then assign the array back to `pages`.
3563
3963
  * @returns {WasmCrawlPageResult[]}
3564
3964
  */
3565
3965
  get pages() {
@@ -3582,6 +3982,9 @@ export class WasmCrawlResult {
3582
3982
  wasm.wasmcrawlresult_set_browserUsed(this.__wbg_ptr, value);
3583
3983
  }
3584
3984
  /**
3985
+ * Takes ownership of every element in `cookies`.
3986
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3987
+ * element with `copyForTransfer()` before passing the array.
3585
3988
  * @param {WasmCookieInfo[]} value
3586
3989
  */
3587
3990
  set cookies(value) {
@@ -3606,6 +4009,9 @@ export class WasmCrawlResult {
3606
4009
  wasm.wasmcrawlresult_set_finalUrl(this.__wbg_ptr, ptr0, len0);
3607
4010
  }
3608
4011
  /**
4012
+ * Takes ownership of every element in `pages`.
4013
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
4014
+ * element with `copyForTransfer()` before passing the array.
3609
4015
  * @param {WasmCrawlPageResult[]} value
3610
4016
  */
3611
4017
  set pages(value) {
@@ -3747,6 +4153,17 @@ export class WasmDownloadedAsset {
3747
4153
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3748
4154
  }
3749
4155
  }
4156
+ /**
4157
+ * Return an independent handle for an ownership-taking API.
4158
+ *
4159
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4160
+ * handle must remain usable.
4161
+ * @returns {WasmDownloadedAsset}
4162
+ */
4163
+ copyForTransfer() {
4164
+ const ret = wasm.wasmdownloadedasset_copyForTransfer(this.__wbg_ptr);
4165
+ return WasmDownloadedAsset.__wrap(ret);
4166
+ }
3750
4167
  /**
3751
4168
  * @returns {WasmDownloadedAsset}
3752
4169
  */
@@ -3932,6 +4349,17 @@ export class WasmDownloadedDocument {
3932
4349
  }
3933
4350
  return v1;
3934
4351
  }
4352
+ /**
4353
+ * Return an independent handle for an ownership-taking API.
4354
+ *
4355
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4356
+ * handle must remain usable.
4357
+ * @returns {WasmDownloadedDocument}
4358
+ */
4359
+ copyForTransfer() {
4360
+ const ret = wasm.wasmdownloadeddocument_copyForTransfer(this.__wbg_ptr);
4361
+ return WasmDownloadedDocument.__wrap(ret);
4362
+ }
3935
4363
  /**
3936
4364
  * @returns {WasmDownloadedDocument}
3937
4365
  */
@@ -4134,6 +4562,17 @@ export class WasmExtractionMeta {
4134
4562
  const ret = wasm.wasmextractionmeta_completionTokens(this.__wbg_ptr);
4135
4563
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
4136
4564
  }
4565
+ /**
4566
+ * Return an independent handle for an ownership-taking API.
4567
+ *
4568
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4569
+ * handle must remain usable.
4570
+ * @returns {WasmExtractionMeta}
4571
+ */
4572
+ copyForTransfer() {
4573
+ const ret = wasm.wasmextractionmeta_copyForTransfer(this.__wbg_ptr);
4574
+ return WasmExtractionMeta.__wrap(ret);
4575
+ }
4137
4576
  /**
4138
4577
  * @returns {number | undefined}
4139
4578
  */
@@ -4243,6 +4682,17 @@ export class WasmFaviconInfo {
4243
4682
  const ptr = this.__destroy_into_raw();
4244
4683
  wasm.__wbg_wasmfaviconinfo_free(ptr, 0);
4245
4684
  }
4685
+ /**
4686
+ * Return an independent handle for an ownership-taking API.
4687
+ *
4688
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4689
+ * handle must remain usable.
4690
+ * @returns {WasmFaviconInfo}
4691
+ */
4692
+ copyForTransfer() {
4693
+ const ret = wasm.wasmfaviconinfo_copyForTransfer(this.__wbg_ptr);
4694
+ return WasmFaviconInfo.__wrap(ret);
4695
+ }
4246
4696
  /**
4247
4697
  * @returns {WasmFaviconInfo}
4248
4698
  */
@@ -4385,6 +4835,17 @@ export class WasmFeedInfo {
4385
4835
  const ptr = this.__destroy_into_raw();
4386
4836
  wasm.__wbg_wasmfeedinfo_free(ptr, 0);
4387
4837
  }
4838
+ /**
4839
+ * Return an independent handle for an ownership-taking API.
4840
+ *
4841
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4842
+ * handle must remain usable.
4843
+ * @returns {WasmFeedInfo}
4844
+ */
4845
+ copyForTransfer() {
4846
+ const ret = wasm.wasmfeedinfo_copyForTransfer(this.__wbg_ptr);
4847
+ return WasmFeedInfo.__wrap(ret);
4848
+ }
4388
4849
  /**
4389
4850
  * @returns {WasmFeedInfo}
4390
4851
  */
@@ -4510,6 +4971,17 @@ export class WasmHeadingInfo {
4510
4971
  const ptr = this.__destroy_into_raw();
4511
4972
  wasm.__wbg_wasmheadinginfo_free(ptr, 0);
4512
4973
  }
4974
+ /**
4975
+ * Return an independent handle for an ownership-taking API.
4976
+ *
4977
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4978
+ * handle must remain usable.
4979
+ * @returns {WasmHeadingInfo}
4980
+ */
4981
+ copyForTransfer() {
4982
+ const ret = wasm.wasmheadinginfo_copyForTransfer(this.__wbg_ptr);
4983
+ return WasmHeadingInfo.__wrap(ret);
4984
+ }
4513
4985
  /**
4514
4986
  * @returns {WasmHeadingInfo}
4515
4987
  */
@@ -4687,6 +5159,17 @@ export class WasmHreflangEntry {
4687
5159
  const ptr = this.__destroy_into_raw();
4688
5160
  wasm.__wbg_wasmhreflangentry_free(ptr, 0);
4689
5161
  }
5162
+ /**
5163
+ * Return an independent handle for an ownership-taking API.
5164
+ *
5165
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5166
+ * handle must remain usable.
5167
+ * @returns {WasmHreflangEntry}
5168
+ */
5169
+ copyForTransfer() {
5170
+ const ret = wasm.wasmhreflangentry_copyForTransfer(this.__wbg_ptr);
5171
+ return WasmHreflangEntry.__wrap(ret);
5172
+ }
4690
5173
  /**
4691
5174
  * @returns {WasmHreflangEntry}
4692
5175
  */
@@ -4795,6 +5278,17 @@ export class WasmImageInfo {
4795
5278
  }
4796
5279
  return v1;
4797
5280
  }
5281
+ /**
5282
+ * Return an independent handle for an ownership-taking API.
5283
+ *
5284
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5285
+ * handle must remain usable.
5286
+ * @returns {WasmImageInfo}
5287
+ */
5288
+ copyForTransfer() {
5289
+ const ret = wasm.wasmimageinfo_copyForTransfer(this.__wbg_ptr);
5290
+ return WasmImageInfo.__wrap(ret);
5291
+ }
4798
5292
  /**
4799
5293
  * @returns {WasmImageInfo}
4800
5294
  */
@@ -4932,6 +5426,10 @@ export class WasmInteractionResult {
4932
5426
  wasm.__wbg_wasminteractionresult_free(ptr, 0);
4933
5427
  }
4934
5428
  /**
5429
+ * Returns detached copies of the elements in `actionResults`.
5430
+ *
5431
+ * Changes to the returned values do not update this object. Modify the copies,
5432
+ * then assign the array back to `actionResults`.
4935
5433
  * @returns {WasmActionResult[]}
4936
5434
  */
4937
5435
  get actionResults() {
@@ -4940,6 +5438,17 @@ export class WasmInteractionResult {
4940
5438
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
4941
5439
  return v1;
4942
5440
  }
5441
+ /**
5442
+ * Return an independent handle for an ownership-taking API.
5443
+ *
5444
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5445
+ * handle must remain usable.
5446
+ * @returns {WasmInteractionResult}
5447
+ */
5448
+ copyForTransfer() {
5449
+ const ret = wasm.wasminteractionresult_copyForTransfer(this.__wbg_ptr);
5450
+ return WasmInteractionResult.__wrap(ret);
5451
+ }
4943
5452
  /**
4944
5453
  * @returns {WasmInteractionResult}
4945
5454
  */
@@ -4978,21 +5487,27 @@ export class WasmInteractionResult {
4978
5487
  }
4979
5488
  }
4980
5489
  /**
5490
+ * Takes ownership of every element in `actionResults`.
5491
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5492
+ * copy each retained element with `copyForTransfer()` before passing the array.
4981
5493
  * @param {WasmActionResult[] | null} [actionResults]
4982
5494
  * @param {string | null} [finalHtml]
4983
5495
  * @param {string | null} [finalUrl]
5496
+ * @param {string[] | null} [ssrfRefusedUrls]
4984
5497
  * @param {string | null} [screenshotBase64]
4985
5498
  */
4986
- constructor(actionResults, finalHtml, finalUrl, screenshotBase64) {
5499
+ constructor(actionResults, finalHtml, finalUrl, ssrfRefusedUrls, screenshotBase64) {
4987
5500
  var ptr0 = isLikeNone(actionResults) ? 0 : passArrayJsValueToWasm0(actionResults, wasm.__wbindgen_malloc);
4988
5501
  var len0 = WASM_VECTOR_LEN;
4989
5502
  var ptr1 = isLikeNone(finalHtml) ? 0 : passStringToWasm0(finalHtml, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4990
5503
  var len1 = WASM_VECTOR_LEN;
4991
5504
  var ptr2 = isLikeNone(finalUrl) ? 0 : passStringToWasm0(finalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
4992
5505
  var len2 = WASM_VECTOR_LEN;
4993
- var ptr3 = isLikeNone(screenshotBase64) ? 0 : passStringToWasm0(screenshotBase64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5506
+ var ptr3 = isLikeNone(ssrfRefusedUrls) ? 0 : passArrayJsValueToWasm0(ssrfRefusedUrls, wasm.__wbindgen_malloc);
4994
5507
  var len3 = WASM_VECTOR_LEN;
4995
- const ret = wasm.wasminteractionresult_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3);
5508
+ var ptr4 = isLikeNone(screenshotBase64) ? 0 : passStringToWasm0(screenshotBase64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
5509
+ var len4 = WASM_VECTOR_LEN;
5510
+ const ret = wasm.wasminteractionresult_new(ptr0, len0, ptr1, len1, ptr2, len2, ptr3, len3, ptr4, len4);
4996
5511
  this.__wbg_ptr = ret;
4997
5512
  WasmInteractionResultFinalization.register(this, this.__wbg_ptr, this);
4998
5513
  return this;
@@ -5010,6 +5525,9 @@ export class WasmInteractionResult {
5010
5525
  return v1;
5011
5526
  }
5012
5527
  /**
5528
+ * Takes ownership of every element in `actionResults`.
5529
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5530
+ * element with `copyForTransfer()` before passing the array.
5013
5531
  * @param {WasmActionResult[]} value
5014
5532
  */
5015
5533
  set actionResults(value) {
@@ -5041,6 +5559,23 @@ export class WasmInteractionResult {
5041
5559
  var len0 = WASM_VECTOR_LEN;
5042
5560
  wasm.wasminteractionresult_set_screenshotBase64(this.__wbg_ptr, ptr0, len0);
5043
5561
  }
5562
+ /**
5563
+ * @param {string[]} value
5564
+ */
5565
+ set ssrfRefusedUrls(value) {
5566
+ const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_malloc);
5567
+ const len0 = WASM_VECTOR_LEN;
5568
+ wasm.wasminteractionresult_set_ssrfRefusedUrls(this.__wbg_ptr, ptr0, len0);
5569
+ }
5570
+ /**
5571
+ * @returns {string[]}
5572
+ */
5573
+ get ssrfRefusedUrls() {
5574
+ const ret = wasm.wasminteractionresult_ssrfRefusedUrls(this.__wbg_ptr);
5575
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
5576
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
5577
+ return v1;
5578
+ }
5044
5579
  }
5045
5580
  if (Symbol.dispose) WasmInteractionResult.prototype[Symbol.dispose] = WasmInteractionResult.prototype.free;
5046
5581
 
@@ -5070,6 +5605,17 @@ export class WasmJsonLdEntry {
5070
5605
  const ptr = this.__destroy_into_raw();
5071
5606
  wasm.__wbg_wasmjsonldentry_free(ptr, 0);
5072
5607
  }
5608
+ /**
5609
+ * Return an independent handle for an ownership-taking API.
5610
+ *
5611
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5612
+ * handle must remain usable.
5613
+ * @returns {WasmJsonLdEntry}
5614
+ */
5615
+ copyForTransfer() {
5616
+ const ret = wasm.wasmjsonldentry_copyForTransfer(this.__wbg_ptr);
5617
+ return WasmJsonLdEntry.__wrap(ret);
5618
+ }
5073
5619
  /**
5074
5620
  * @returns {WasmJsonLdEntry}
5075
5621
  */
@@ -5189,6 +5735,17 @@ export class WasmLinkInfo {
5189
5735
  const ptr = this.__destroy_into_raw();
5190
5736
  wasm.__wbg_wasmlinkinfo_free(ptr, 0);
5191
5737
  }
5738
+ /**
5739
+ * Return an independent handle for an ownership-taking API.
5740
+ *
5741
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5742
+ * handle must remain usable.
5743
+ * @returns {WasmLinkInfo}
5744
+ */
5745
+ copyForTransfer() {
5746
+ const ret = wasm.wasmlinkinfo_copyForTransfer(this.__wbg_ptr);
5747
+ return WasmLinkInfo.__wrap(ret);
5748
+ }
5192
5749
  /**
5193
5750
  * @returns {WasmLinkInfo}
5194
5751
  */
@@ -5349,6 +5906,17 @@ export class WasmMapResult {
5349
5906
  const ptr = this.__destroy_into_raw();
5350
5907
  wasm.__wbg_wasmmapresult_free(ptr, 0);
5351
5908
  }
5909
+ /**
5910
+ * Return an independent handle for an ownership-taking API.
5911
+ *
5912
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5913
+ * handle must remain usable.
5914
+ * @returns {WasmMapResult}
5915
+ */
5916
+ copyForTransfer() {
5917
+ const ret = wasm.wasmmapresult_copyForTransfer(this.__wbg_ptr);
5918
+ return WasmMapResult.__wrap(ret);
5919
+ }
5352
5920
  /**
5353
5921
  * @returns {WasmMapResult}
5354
5922
  */
@@ -5357,6 +5925,9 @@ export class WasmMapResult {
5357
5925
  return WasmMapResult.__wrap(ret);
5358
5926
  }
5359
5927
  /**
5928
+ * Takes ownership of every element in `urls`.
5929
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5930
+ * copy each retained element with `copyForTransfer()` before passing the array.
5360
5931
  * @param {WasmSitemapUrl[] | null} [urls]
5361
5932
  */
5362
5933
  constructor(urls) {
@@ -5368,6 +5939,9 @@ export class WasmMapResult {
5368
5939
  return this;
5369
5940
  }
5370
5941
  /**
5942
+ * Takes ownership of every element in `urls`.
5943
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5944
+ * element with `copyForTransfer()` before passing the array.
5371
5945
  * @param {WasmSitemapUrl[]} value
5372
5946
  */
5373
5947
  set urls(value) {
@@ -5376,6 +5950,10 @@ export class WasmMapResult {
5376
5950
  wasm.wasmmapresult_set_urls(this.__wbg_ptr, ptr0, len0);
5377
5951
  }
5378
5952
  /**
5953
+ * Returns detached copies of the elements in `urls`.
5954
+ *
5955
+ * Changes to the returned values do not update this object. Modify the copies,
5956
+ * then assign the array back to `urls`.
5379
5957
  * @returns {WasmSitemapUrl[]}
5380
5958
  */
5381
5959
  get urls() {
@@ -5429,6 +6007,17 @@ export class WasmMarkdownResult {
5429
6007
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5430
6008
  }
5431
6009
  }
6010
+ /**
6011
+ * Return an independent handle for an ownership-taking API.
6012
+ *
6013
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6014
+ * handle must remain usable.
6015
+ * @returns {WasmMarkdownResult}
6016
+ */
6017
+ copyForTransfer() {
6018
+ const ret = wasm.wasmmarkdownresult_copyForTransfer(this.__wbg_ptr);
6019
+ return WasmMarkdownResult.__wrap(ret);
6020
+ }
5432
6021
  /**
5433
6022
  * @returns {WasmMarkdownResult}
5434
6023
  */
@@ -5757,6 +6346,10 @@ export class WasmPageMetadata {
5757
6346
  wasm.__wbg_wasmpagemetadata_free(ptr, 0);
5758
6347
  }
5759
6348
  /**
6349
+ * Returns a detached copy of `article`.
6350
+ *
6351
+ * Changes to the returned value do not update this object. To update `article`,
6352
+ * read it, modify the copy, then assign the copy back to `article`.
5760
6353
  * @returns {WasmArticleMetadata | undefined}
5761
6354
  */
5762
6355
  get article() {
@@ -5787,6 +6380,20 @@ export class WasmPageMetadata {
5787
6380
  }
5788
6381
  return v1;
5789
6382
  }
6383
+ clearArticle() {
6384
+ wasm.wasmpagemetadata_clearArticle(this.__wbg_ptr);
6385
+ }
6386
+ /**
6387
+ * Return an independent handle for an ownership-taking API.
6388
+ *
6389
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6390
+ * handle must remain usable.
6391
+ * @returns {WasmPageMetadata}
6392
+ */
6393
+ copyForTransfer() {
6394
+ const ret = wasm.wasmpagemetadata_copyForTransfer(this.__wbg_ptr);
6395
+ return WasmPageMetadata.__wrap(ret);
6396
+ }
5790
6397
  /**
5791
6398
  * @returns {string | undefined}
5792
6399
  */
@@ -5939,6 +6546,10 @@ export class WasmPageMetadata {
5939
6546
  return v1;
5940
6547
  }
5941
6548
  /**
6549
+ * Returns detached copies of the elements in `favicons`.
6550
+ *
6551
+ * Changes to the returned values do not update this object. Modify the copies,
6552
+ * then assign the array back to `favicons`.
5942
6553
  * @returns {Array<any> | undefined}
5943
6554
  */
5944
6555
  get favicons() {
@@ -5958,6 +6569,10 @@ export class WasmPageMetadata {
5958
6569
  return v1;
5959
6570
  }
5960
6571
  /**
6572
+ * Returns detached copies of the elements in `headings`.
6573
+ *
6574
+ * Changes to the returned values do not update this object. Modify the copies,
6575
+ * then assign the array back to `headings`.
5961
6576
  * @returns {Array<any> | undefined}
5962
6577
  */
5963
6578
  get headings() {
@@ -5965,6 +6580,10 @@ export class WasmPageMetadata {
5965
6580
  return ret;
5966
6581
  }
5967
6582
  /**
6583
+ * Returns detached copies of the elements in `hreflangs`.
6584
+ *
6585
+ * Changes to the returned values do not update this object. Modify the copies,
6586
+ * then assign the array back to `hreflangs`.
5968
6587
  * @returns {Array<any> | undefined}
5969
6588
  */
5970
6589
  get hreflangs() {
@@ -6008,6 +6627,14 @@ export class WasmPageMetadata {
6008
6627
  return v1;
6009
6628
  }
6010
6629
  /**
6630
+ * Takes ownership of `article`.
6631
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
6632
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
6633
+ * keep a handle you already hold, build with `default()` and assign the property instead:
6634
+ * the generated setter borrows and leaves your handle alive.
6635
+ * Takes ownership of every element in `hreflangs`, `favicons`, `headings`.
6636
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
6637
+ * copy each retained element with `copyForTransfer()` before passing the array.
6011
6638
  * @param {string | null} [title]
6012
6639
  * @param {string | null} [description]
6013
6640
  * @param {string | null} [canonicalUrl]
@@ -6278,15 +6905,11 @@ export class WasmPageMetadata {
6278
6905
  return v1;
6279
6906
  }
6280
6907
  /**
6281
- * @param {WasmArticleMetadata | null} [value]
6908
+ * @param {WasmArticleMetadata} value
6282
6909
  */
6283
6910
  set article(value) {
6284
- let ptr0 = 0;
6285
- if (!isLikeNone(value)) {
6286
- _assertClass(value, WasmArticleMetadata);
6287
- ptr0 = value.__destroy_into_raw();
6288
- }
6289
- wasm.wasmpagemetadata_set_article(this.__wbg_ptr, ptr0);
6911
+ _assertClass(value, WasmArticleMetadata);
6912
+ wasm.wasmpagemetadata_set_article(this.__wbg_ptr, value.__wbg_ptr);
6290
6913
  }
6291
6914
  /**
6292
6915
  * @param {string | null} [value]
@@ -6401,6 +7024,9 @@ export class WasmPageMetadata {
6401
7024
  wasm.wasmpagemetadata_set_description(this.__wbg_ptr, ptr0, len0);
6402
7025
  }
6403
7026
  /**
7027
+ * Takes ownership of every element in `favicons`.
7028
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7029
+ * element with `copyForTransfer()` before passing the array.
6404
7030
  * @param {WasmFaviconInfo[] | null} [value]
6405
7031
  */
6406
7032
  set favicons(value) {
@@ -6417,6 +7043,9 @@ export class WasmPageMetadata {
6417
7043
  wasm.wasmpagemetadata_set_generator(this.__wbg_ptr, ptr0, len0);
6418
7044
  }
6419
7045
  /**
7046
+ * Takes ownership of every element in `headings`.
7047
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7048
+ * element with `copyForTransfer()` before passing the array.
6420
7049
  * @param {WasmHeadingInfo[] | null} [value]
6421
7050
  */
6422
7051
  set headings(value) {
@@ -6425,6 +7054,9 @@ export class WasmPageMetadata {
6425
7054
  wasm.wasmpagemetadata_set_headings(this.__wbg_ptr, ptr0, len0);
6426
7055
  }
6427
7056
  /**
7057
+ * Takes ownership of every element in `hreflangs`.
7058
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7059
+ * element with `copyForTransfer()` before passing the array.
6428
7060
  * @param {WasmHreflangEntry[] | null} [value]
6429
7061
  */
6430
7062
  set hreflangs(value) {
@@ -6760,6 +7392,17 @@ export class WasmProxyConfig {
6760
7392
  const ptr = this.__destroy_into_raw();
6761
7393
  wasm.__wbg_wasmproxyconfig_free(ptr, 0);
6762
7394
  }
7395
+ /**
7396
+ * Return an independent handle for an ownership-taking API.
7397
+ *
7398
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7399
+ * handle must remain usable.
7400
+ * @returns {WasmProxyConfig}
7401
+ */
7402
+ copyForTransfer() {
7403
+ const ret = wasm.wasmproxyconfig_copyForTransfer(this.__wbg_ptr);
7404
+ return WasmProxyConfig.__wrap(ret);
7405
+ }
6763
7406
  /**
6764
7407
  * @returns {WasmProxyConfig}
6765
7408
  */
@@ -6912,6 +7555,17 @@ export class WasmResponseMeta {
6912
7555
  }
6913
7556
  return v1;
6914
7557
  }
7558
+ /**
7559
+ * Return an independent handle for an ownership-taking API.
7560
+ *
7561
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7562
+ * handle must remain usable.
7563
+ * @returns {WasmResponseMeta}
7564
+ */
7565
+ copyForTransfer() {
7566
+ const ret = wasm.wasmresponsemeta_copyForTransfer(this.__wbg_ptr);
7567
+ return WasmResponseMeta.__wrap(ret);
7568
+ }
6915
7569
  /**
6916
7570
  * @returns {WasmResponseMeta}
6917
7571
  */
@@ -7076,6 +7730,10 @@ export class WasmScrapeResult {
7076
7730
  wasm.__wbg_wasmscraperesult_free(ptr, 0);
7077
7731
  }
7078
7732
  /**
7733
+ * Returns detached copies of the elements in `assets`.
7734
+ *
7735
+ * Changes to the returned values do not update this object. Modify the copies,
7736
+ * then assign the array back to `assets`.
7079
7737
  * @returns {WasmDownloadedAsset[]}
7080
7738
  */
7081
7739
  get assets() {
@@ -7106,12 +7764,31 @@ export class WasmScrapeResult {
7106
7764
  return ret !== 0;
7107
7765
  }
7108
7766
  /**
7767
+ * Returns a detached copy of `browser`.
7768
+ *
7769
+ * Changes to the returned value do not update this object. To update `browser`,
7770
+ * read it, modify the copy, then assign the copy back to `browser`.
7109
7771
  * @returns {WasmBrowserExtras | undefined}
7110
7772
  */
7111
7773
  get browser() {
7112
7774
  const ret = wasm.wasmscraperesult_browser(this.__wbg_ptr);
7113
7775
  return ret === 0 ? undefined : WasmBrowserExtras.__wrap(ret);
7114
7776
  }
7777
+ clearBrowser() {
7778
+ wasm.wasmscraperesult_clearBrowser(this.__wbg_ptr);
7779
+ }
7780
+ clearDownloadedDocument() {
7781
+ wasm.wasmscraperesult_clearDownloadedDocument(this.__wbg_ptr);
7782
+ }
7783
+ clearExtractionMeta() {
7784
+ wasm.wasmscraperesult_clearExtractionMeta(this.__wbg_ptr);
7785
+ }
7786
+ clearMarkdown() {
7787
+ wasm.wasmscraperesult_clearMarkdown(this.__wbg_ptr);
7788
+ }
7789
+ clearResponseMeta() {
7790
+ wasm.wasmscraperesult_clearResponseMeta(this.__wbg_ptr);
7791
+ }
7115
7792
  /**
7116
7793
  * @returns {string}
7117
7794
  */
@@ -7127,6 +7804,17 @@ export class WasmScrapeResult {
7127
7804
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7128
7805
  }
7129
7806
  }
7807
+ /**
7808
+ * Return an independent handle for an ownership-taking API.
7809
+ *
7810
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7811
+ * handle must remain usable.
7812
+ * @returns {WasmScrapeResult}
7813
+ */
7814
+ copyForTransfer() {
7815
+ const ret = wasm.wasmscraperesult_copyForTransfer(this.__wbg_ptr);
7816
+ return WasmScrapeResult.__wrap(ret);
7817
+ }
7130
7818
  /**
7131
7819
  * @returns {bigint | undefined}
7132
7820
  */
@@ -7154,6 +7842,10 @@ export class WasmScrapeResult {
7154
7842
  return v1;
7155
7843
  }
7156
7844
  /**
7845
+ * Returns a detached copy of `downloadedDocument`.
7846
+ *
7847
+ * Changes to the returned value do not update this object. To update `downloadedDocument`,
7848
+ * read it, modify the copy, then assign the copy back to `downloadedDocument`.
7157
7849
  * @returns {WasmDownloadedDocument | undefined}
7158
7850
  */
7159
7851
  get downloadedDocument() {
@@ -7168,6 +7860,10 @@ export class WasmScrapeResult {
7168
7860
  return ret;
7169
7861
  }
7170
7862
  /**
7863
+ * Returns a detached copy of `extractionMeta`.
7864
+ *
7865
+ * Changes to the returned value do not update this object. To update `extractionMeta`,
7866
+ * read it, modify the copy, then assign the copy back to `extractionMeta`.
7171
7867
  * @returns {WasmExtractionMeta | undefined}
7172
7868
  */
7173
7869
  get extractionMeta() {
@@ -7175,6 +7871,10 @@ export class WasmScrapeResult {
7175
7871
  return ret === 0 ? undefined : WasmExtractionMeta.__wrap(ret);
7176
7872
  }
7177
7873
  /**
7874
+ * Returns detached copies of the elements in `feeds`.
7875
+ *
7876
+ * Changes to the returned values do not update this object. Modify the copies,
7877
+ * then assign the array back to `feeds`.
7178
7878
  * @returns {WasmFeedInfo[]}
7179
7879
  */
7180
7880
  get feeds() {
@@ -7214,6 +7914,10 @@ export class WasmScrapeResult {
7214
7914
  }
7215
7915
  }
7216
7916
  /**
7917
+ * Returns detached copies of the elements in `images`.
7918
+ *
7919
+ * Changes to the returned values do not update this object. Modify the copies,
7920
+ * then assign the array back to `images`.
7217
7921
  * @returns {WasmImageInfo[]}
7218
7922
  */
7219
7923
  get images() {
@@ -7244,6 +7948,10 @@ export class WasmScrapeResult {
7244
7948
  return ret !== 0;
7245
7949
  }
7246
7950
  /**
7951
+ * Returns detached copies of the elements in `jsonLd`.
7952
+ *
7953
+ * Changes to the returned values do not update this object. Modify the copies,
7954
+ * then assign the array back to `jsonLd`.
7247
7955
  * @returns {WasmJsonLdEntry[]}
7248
7956
  */
7249
7957
  get jsonLd() {
@@ -7253,6 +7961,10 @@ export class WasmScrapeResult {
7253
7961
  return v1;
7254
7962
  }
7255
7963
  /**
7964
+ * Returns detached copies of the elements in `links`.
7965
+ *
7966
+ * Changes to the returned values do not update this object. Modify the copies,
7967
+ * then assign the array back to `links`.
7256
7968
  * @returns {WasmLinkInfo[]}
7257
7969
  */
7258
7970
  get links() {
@@ -7262,6 +7974,10 @@ export class WasmScrapeResult {
7262
7974
  return v1;
7263
7975
  }
7264
7976
  /**
7977
+ * Returns a detached copy of `markdown`.
7978
+ *
7979
+ * Changes to the returned value do not update this object. To update `markdown`,
7980
+ * read it, modify the copy, then assign the copy back to `markdown`.
7265
7981
  * @returns {WasmMarkdownResult | undefined}
7266
7982
  */
7267
7983
  get markdown() {
@@ -7269,6 +7985,10 @@ export class WasmScrapeResult {
7269
7985
  return ret === 0 ? undefined : WasmMarkdownResult.__wrap(ret);
7270
7986
  }
7271
7987
  /**
7988
+ * Returns a detached copy of `metadata`.
7989
+ *
7990
+ * Changes to the returned value do not update this object. To update `metadata`,
7991
+ * read it, modify the copy, then assign the copy back to `metadata`.
7272
7992
  * @returns {WasmPageMetadata}
7273
7993
  */
7274
7994
  get metadata() {
@@ -7276,6 +7996,14 @@ export class WasmScrapeResult {
7276
7996
  return WasmPageMetadata.__wrap(ret);
7277
7997
  }
7278
7998
  /**
7999
+ * Takes ownership of `metadata`, `responseMeta`, `markdown`, `extractionMeta`, `downloadedDocument`, `browser`.
8000
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
8001
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
8002
+ * keep a handle you already hold, build with `default()` and assign the property instead:
8003
+ * the generated setter borrows and leaves your handle alive.
8004
+ * Takes ownership of every element in `links`, `images`, `feeds`, `jsonLd`, `assets`.
8005
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
8006
+ * copy each retained element with `copyForTransfer()` before passing the array.
7279
8007
  * @param {number | null} [statusCode]
7280
8008
  * @param {string | null} [finalUrl]
7281
8009
  * @param {string | null} [contentType]
@@ -7295,6 +8023,7 @@ export class WasmScrapeResult {
7295
8023
  * @param {WasmDownloadedAsset[] | null} [assets]
7296
8024
  * @param {boolean | null} [jsRenderHint]
7297
8025
  * @param {boolean | null} [browserUsed]
8026
+ * @param {string[] | null} [ssrfRefusedUrls]
7298
8027
  * @param {bigint | null} [crawlDelay]
7299
8028
  * @param {string | null} [xRobotsTag]
7300
8029
  * @param {string | null} [detectedCharset]
@@ -7306,7 +8035,7 @@ export class WasmScrapeResult {
7306
8035
  * @param {WasmDownloadedDocument | null} [downloadedDocument]
7307
8036
  * @param {WasmBrowserExtras | null} [browser]
7308
8037
  */
7309
- constructor(statusCode, finalUrl, contentType, html, bodySize, metadata, links, images, feeds, jsonLd, isAllowed, noindexDetected, nofollowDetected, isPdf, wasSkipped, authHeaderSent, assets, jsRenderHint, browserUsed, crawlDelay, xRobotsTag, detectedCharset, responseMeta, markdown, extractedData, extractionMeta, screenshotBase64, downloadedDocument, browser) {
8038
+ constructor(statusCode, finalUrl, contentType, html, bodySize, metadata, links, images, feeds, jsonLd, isAllowed, noindexDetected, nofollowDetected, isPdf, wasSkipped, authHeaderSent, assets, jsRenderHint, browserUsed, ssrfRefusedUrls, crawlDelay, xRobotsTag, detectedCharset, responseMeta, markdown, extractedData, extractionMeta, screenshotBase64, downloadedDocument, browser) {
7310
8039
  var ptr0 = isLikeNone(finalUrl) ? 0 : passStringToWasm0(finalUrl, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7311
8040
  var len0 = WASM_VECTOR_LEN;
7312
8041
  var ptr1 = isLikeNone(contentType) ? 0 : passStringToWasm0(contentType, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -7328,38 +8057,40 @@ export class WasmScrapeResult {
7328
8057
  var len7 = WASM_VECTOR_LEN;
7329
8058
  var ptr8 = isLikeNone(assets) ? 0 : passArrayJsValueToWasm0(assets, wasm.__wbindgen_malloc);
7330
8059
  var len8 = WASM_VECTOR_LEN;
7331
- var ptr9 = isLikeNone(xRobotsTag) ? 0 : passStringToWasm0(xRobotsTag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8060
+ var ptr9 = isLikeNone(ssrfRefusedUrls) ? 0 : passArrayJsValueToWasm0(ssrfRefusedUrls, wasm.__wbindgen_malloc);
7332
8061
  var len9 = WASM_VECTOR_LEN;
7333
- var ptr10 = isLikeNone(detectedCharset) ? 0 : passStringToWasm0(detectedCharset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8062
+ var ptr10 = isLikeNone(xRobotsTag) ? 0 : passStringToWasm0(xRobotsTag, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7334
8063
  var len10 = WASM_VECTOR_LEN;
7335
- let ptr11 = 0;
8064
+ var ptr11 = isLikeNone(detectedCharset) ? 0 : passStringToWasm0(detectedCharset, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8065
+ var len11 = WASM_VECTOR_LEN;
8066
+ let ptr12 = 0;
7336
8067
  if (!isLikeNone(responseMeta)) {
7337
8068
  _assertClass(responseMeta, WasmResponseMeta);
7338
- ptr11 = responseMeta.__destroy_into_raw();
8069
+ ptr12 = responseMeta.__destroy_into_raw();
7339
8070
  }
7340
- let ptr12 = 0;
8071
+ let ptr13 = 0;
7341
8072
  if (!isLikeNone(markdown)) {
7342
8073
  _assertClass(markdown, WasmMarkdownResult);
7343
- ptr12 = markdown.__destroy_into_raw();
8074
+ ptr13 = markdown.__destroy_into_raw();
7344
8075
  }
7345
- let ptr13 = 0;
8076
+ let ptr14 = 0;
7346
8077
  if (!isLikeNone(extractionMeta)) {
7347
8078
  _assertClass(extractionMeta, WasmExtractionMeta);
7348
- ptr13 = extractionMeta.__destroy_into_raw();
8079
+ ptr14 = extractionMeta.__destroy_into_raw();
7349
8080
  }
7350
- var ptr14 = isLikeNone(screenshotBase64) ? 0 : passStringToWasm0(screenshotBase64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
7351
- var len14 = WASM_VECTOR_LEN;
7352
- let ptr15 = 0;
8081
+ var ptr15 = isLikeNone(screenshotBase64) ? 0 : passStringToWasm0(screenshotBase64, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
8082
+ var len15 = WASM_VECTOR_LEN;
8083
+ let ptr16 = 0;
7353
8084
  if (!isLikeNone(downloadedDocument)) {
7354
8085
  _assertClass(downloadedDocument, WasmDownloadedDocument);
7355
- ptr15 = downloadedDocument.__destroy_into_raw();
8086
+ ptr16 = downloadedDocument.__destroy_into_raw();
7356
8087
  }
7357
- let ptr16 = 0;
8088
+ let ptr17 = 0;
7358
8089
  if (!isLikeNone(browser)) {
7359
8090
  _assertClass(browser, WasmBrowserExtras);
7360
- ptr16 = browser.__destroy_into_raw();
8091
+ ptr17 = browser.__destroy_into_raw();
7361
8092
  }
7362
- const ret = wasm.wasmscraperesult_new(isLikeNone(statusCode) ? 0xFFFFFF : statusCode, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(bodySize) ? Number.MAX_SAFE_INTEGER : (bodySize) >>> 0, ptr3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(isAllowed) ? 0xFFFFFF : isAllowed ? 1 : 0, isLikeNone(noindexDetected) ? 0xFFFFFF : noindexDetected ? 1 : 0, isLikeNone(nofollowDetected) ? 0xFFFFFF : nofollowDetected ? 1 : 0, isLikeNone(isPdf) ? 0xFFFFFF : isPdf ? 1 : 0, isLikeNone(wasSkipped) ? 0xFFFFFF : wasSkipped ? 1 : 0, isLikeNone(authHeaderSent) ? 0xFFFFFF : authHeaderSent ? 1 : 0, ptr8, len8, isLikeNone(jsRenderHint) ? 0xFFFFFF : jsRenderHint ? 1 : 0, isLikeNone(browserUsed) ? 0xFFFFFF : browserUsed ? 1 : 0, !isLikeNone(crawlDelay), isLikeNone(crawlDelay) ? BigInt(0) : crawlDelay, ptr9, len9, ptr10, len10, ptr11, ptr12, isLikeNone(extractedData) ? 0 : addToExternrefTable0(extractedData), ptr13, ptr14, len14, ptr15, ptr16);
8093
+ const ret = wasm.wasmscraperesult_new(isLikeNone(statusCode) ? 0xFFFFFF : statusCode, ptr0, len0, ptr1, len1, ptr2, len2, isLikeNone(bodySize) ? Number.MAX_SAFE_INTEGER : (bodySize) >>> 0, ptr3, ptr4, len4, ptr5, len5, ptr6, len6, ptr7, len7, isLikeNone(isAllowed) ? 0xFFFFFF : isAllowed ? 1 : 0, isLikeNone(noindexDetected) ? 0xFFFFFF : noindexDetected ? 1 : 0, isLikeNone(nofollowDetected) ? 0xFFFFFF : nofollowDetected ? 1 : 0, isLikeNone(isPdf) ? 0xFFFFFF : isPdf ? 1 : 0, isLikeNone(wasSkipped) ? 0xFFFFFF : wasSkipped ? 1 : 0, isLikeNone(authHeaderSent) ? 0xFFFFFF : authHeaderSent ? 1 : 0, ptr8, len8, isLikeNone(jsRenderHint) ? 0xFFFFFF : jsRenderHint ? 1 : 0, isLikeNone(browserUsed) ? 0xFFFFFF : browserUsed ? 1 : 0, ptr9, len9, !isLikeNone(crawlDelay), isLikeNone(crawlDelay) ? BigInt(0) : crawlDelay, ptr10, len10, ptr11, len11, ptr12, ptr13, isLikeNone(extractedData) ? 0 : addToExternrefTable0(extractedData), ptr14, ptr15, len15, ptr16, ptr17);
7363
8094
  this.__wbg_ptr = ret;
7364
8095
  WasmScrapeResultFinalization.register(this, this.__wbg_ptr, this);
7365
8096
  return this;
@@ -7379,6 +8110,10 @@ export class WasmScrapeResult {
7379
8110
  return ret !== 0;
7380
8111
  }
7381
8112
  /**
8113
+ * Returns a detached copy of `responseMeta`.
8114
+ *
8115
+ * Changes to the returned value do not update this object. To update `responseMeta`,
8116
+ * read it, modify the copy, then assign the copy back to `responseMeta`.
7382
8117
  * @returns {WasmResponseMeta | undefined}
7383
8118
  */
7384
8119
  get responseMeta() {
@@ -7398,6 +8133,9 @@ export class WasmScrapeResult {
7398
8133
  return v1;
7399
8134
  }
7400
8135
  /**
8136
+ * Takes ownership of every element in `assets`.
8137
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8138
+ * element with `copyForTransfer()` before passing the array.
7401
8139
  * @param {WasmDownloadedAsset[]} value
7402
8140
  */
7403
8141
  set assets(value) {
@@ -7424,15 +8162,11 @@ export class WasmScrapeResult {
7424
8162
  wasm.wasmscraperesult_set_browserUsed(this.__wbg_ptr, value);
7425
8163
  }
7426
8164
  /**
7427
- * @param {WasmBrowserExtras | null} [value]
8165
+ * @param {WasmBrowserExtras} value
7428
8166
  */
7429
8167
  set browser(value) {
7430
- let ptr0 = 0;
7431
- if (!isLikeNone(value)) {
7432
- _assertClass(value, WasmBrowserExtras);
7433
- ptr0 = value.__destroy_into_raw();
7434
- }
7435
- wasm.wasmscraperesult_set_browser(this.__wbg_ptr, ptr0);
8168
+ _assertClass(value, WasmBrowserExtras);
8169
+ wasm.wasmscraperesult_set_browser(this.__wbg_ptr, value.__wbg_ptr);
7436
8170
  }
7437
8171
  /**
7438
8172
  * @param {string} value
@@ -7457,15 +8191,11 @@ export class WasmScrapeResult {
7457
8191
  wasm.wasmscraperesult_set_detectedCharset(this.__wbg_ptr, ptr0, len0);
7458
8192
  }
7459
8193
  /**
7460
- * @param {WasmDownloadedDocument | null} [value]
8194
+ * @param {WasmDownloadedDocument} value
7461
8195
  */
7462
8196
  set downloadedDocument(value) {
7463
- let ptr0 = 0;
7464
- if (!isLikeNone(value)) {
7465
- _assertClass(value, WasmDownloadedDocument);
7466
- ptr0 = value.__destroy_into_raw();
7467
- }
7468
- wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, ptr0);
8197
+ _assertClass(value, WasmDownloadedDocument);
8198
+ wasm.wasmscraperesult_set_downloadedDocument(this.__wbg_ptr, value.__wbg_ptr);
7469
8199
  }
7470
8200
  /**
7471
8201
  * @param {any | null} [value]
@@ -7474,17 +8204,16 @@ export class WasmScrapeResult {
7474
8204
  wasm.wasmscraperesult_set_extractedData(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
7475
8205
  }
7476
8206
  /**
7477
- * @param {WasmExtractionMeta | null} [value]
8207
+ * @param {WasmExtractionMeta} value
7478
8208
  */
7479
8209
  set extractionMeta(value) {
7480
- let ptr0 = 0;
7481
- if (!isLikeNone(value)) {
7482
- _assertClass(value, WasmExtractionMeta);
7483
- ptr0 = value.__destroy_into_raw();
7484
- }
7485
- wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, ptr0);
8210
+ _assertClass(value, WasmExtractionMeta);
8211
+ wasm.wasmscraperesult_set_extractionMeta(this.__wbg_ptr, value.__wbg_ptr);
7486
8212
  }
7487
8213
  /**
8214
+ * Takes ownership of every element in `feeds`.
8215
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8216
+ * element with `copyForTransfer()` before passing the array.
7488
8217
  * @param {WasmFeedInfo[]} value
7489
8218
  */
7490
8219
  set feeds(value) {
@@ -7509,6 +8238,9 @@ export class WasmScrapeResult {
7509
8238
  wasm.wasmscraperesult_set_html(this.__wbg_ptr, ptr0, len0);
7510
8239
  }
7511
8240
  /**
8241
+ * Takes ownership of every element in `images`.
8242
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8243
+ * element with `copyForTransfer()` before passing the array.
7512
8244
  * @param {WasmImageInfo[]} value
7513
8245
  */
7514
8246
  set images(value) {
@@ -7535,6 +8267,9 @@ export class WasmScrapeResult {
7535
8267
  wasm.wasmscraperesult_set_jsRenderHint(this.__wbg_ptr, value);
7536
8268
  }
7537
8269
  /**
8270
+ * Takes ownership of every element in `jsonLd`.
8271
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8272
+ * element with `copyForTransfer()` before passing the array.
7538
8273
  * @param {WasmJsonLdEntry[]} value
7539
8274
  */
7540
8275
  set jsonLd(value) {
@@ -7543,6 +8278,9 @@ export class WasmScrapeResult {
7543
8278
  wasm.wasmscraperesult_set_jsonLd(this.__wbg_ptr, ptr0, len0);
7544
8279
  }
7545
8280
  /**
8281
+ * Takes ownership of every element in `links`.
8282
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8283
+ * element with `copyForTransfer()` before passing the array.
7546
8284
  * @param {WasmLinkInfo[]} value
7547
8285
  */
7548
8286
  set links(value) {
@@ -7551,23 +8289,18 @@ export class WasmScrapeResult {
7551
8289
  wasm.wasmscraperesult_set_links(this.__wbg_ptr, ptr0, len0);
7552
8290
  }
7553
8291
  /**
7554
- * @param {WasmMarkdownResult | null} [value]
8292
+ * @param {WasmMarkdownResult} value
7555
8293
  */
7556
8294
  set markdown(value) {
7557
- let ptr0 = 0;
7558
- if (!isLikeNone(value)) {
7559
- _assertClass(value, WasmMarkdownResult);
7560
- ptr0 = value.__destroy_into_raw();
7561
- }
7562
- wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, ptr0);
8295
+ _assertClass(value, WasmMarkdownResult);
8296
+ wasm.wasmscraperesult_set_markdown(this.__wbg_ptr, value.__wbg_ptr);
7563
8297
  }
7564
8298
  /**
7565
8299
  * @param {WasmPageMetadata} value
7566
8300
  */
7567
8301
  set metadata(value) {
7568
8302
  _assertClass(value, WasmPageMetadata);
7569
- var ptr0 = value.__destroy_into_raw();
7570
- wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, ptr0);
8303
+ wasm.wasmscraperesult_set_metadata(this.__wbg_ptr, value.__wbg_ptr);
7571
8304
  }
7572
8305
  /**
7573
8306
  * @param {boolean} value
@@ -7582,15 +8315,11 @@ export class WasmScrapeResult {
7582
8315
  wasm.wasmscraperesult_set_noindexDetected(this.__wbg_ptr, value);
7583
8316
  }
7584
8317
  /**
7585
- * @param {WasmResponseMeta | null} [value]
8318
+ * @param {WasmResponseMeta} value
7586
8319
  */
7587
8320
  set responseMeta(value) {
7588
- let ptr0 = 0;
7589
- if (!isLikeNone(value)) {
7590
- _assertClass(value, WasmResponseMeta);
7591
- ptr0 = value.__destroy_into_raw();
7592
- }
7593
- wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, ptr0);
8321
+ _assertClass(value, WasmResponseMeta);
8322
+ wasm.wasmscraperesult_set_responseMeta(this.__wbg_ptr, value.__wbg_ptr);
7594
8323
  }
7595
8324
  /**
7596
8325
  * @param {string | null} [value]
@@ -7600,6 +8329,14 @@ export class WasmScrapeResult {
7600
8329
  var len0 = WASM_VECTOR_LEN;
7601
8330
  wasm.wasmscraperesult_set_screenshotBase64(this.__wbg_ptr, ptr0, len0);
7602
8331
  }
8332
+ /**
8333
+ * @param {string[]} value
8334
+ */
8335
+ set ssrfRefusedUrls(value) {
8336
+ const ptr0 = passArrayJsValueToWasm0(value, wasm.__wbindgen_malloc);
8337
+ const len0 = WASM_VECTOR_LEN;
8338
+ wasm.wasmscraperesult_set_ssrfRefusedUrls(this.__wbg_ptr, ptr0, len0);
8339
+ }
7603
8340
  /**
7604
8341
  * @param {number} value
7605
8342
  */
@@ -7620,6 +8357,15 @@ export class WasmScrapeResult {
7620
8357
  var len0 = WASM_VECTOR_LEN;
7621
8358
  wasm.wasmscraperesult_set_xRobotsTag(this.__wbg_ptr, ptr0, len0);
7622
8359
  }
8360
+ /**
8361
+ * @returns {string[]}
8362
+ */
8363
+ get ssrfRefusedUrls() {
8364
+ const ret = wasm.wasmscraperesult_ssrfRefusedUrls(this.__wbg_ptr);
8365
+ var v1 = getArrayJsValueFromWasm0(ret[0], ret[1]);
8366
+ wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
8367
+ return v1;
8368
+ }
7623
8369
  /**
7624
8370
  * @returns {number}
7625
8371
  */
@@ -7696,6 +8442,17 @@ export class WasmSitemapUrl {
7696
8442
  }
7697
8443
  return v1;
7698
8444
  }
8445
+ /**
8446
+ * Return an independent handle for an ownership-taking API.
8447
+ *
8448
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8449
+ * handle must remain usable.
8450
+ * @returns {WasmSitemapUrl}
8451
+ */
8452
+ copyForTransfer() {
8453
+ const ret = wasm.wasmsitemapurl_copyForTransfer(this.__wbg_ptr);
8454
+ return WasmSitemapUrl.__wrap(ret);
8455
+ }
7699
8456
  /**
7700
8457
  * @returns {WasmSitemapUrl}
7701
8458
  */
@@ -7824,6 +8581,17 @@ export class WasmSsrfPolicy {
7824
8581
  const ret = wasm.wasmssrfpolicy_allowlist(this.__wbg_ptr);
7825
8582
  return ret;
7826
8583
  }
8584
+ /**
8585
+ * Return an independent handle for an ownership-taking API.
8586
+ *
8587
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8588
+ * handle must remain usable.
8589
+ * @returns {WasmSsrfPolicy}
8590
+ */
8591
+ copyForTransfer() {
8592
+ const ret = wasm.wasmssrfpolicy_copyForTransfer(this.__wbg_ptr);
8593
+ return WasmSsrfPolicy.__wrap(ret);
8594
+ }
7827
8595
  /**
7828
8596
  * @returns {WasmSsrfPolicy}
7829
8597
  */
@@ -7838,6 +8606,13 @@ export class WasmSsrfPolicy {
7838
8606
  const ret = wasm.wasmssrfpolicy_denyPrivate(this.__wbg_ptr);
7839
8607
  return ret !== 0;
7840
8608
  }
8609
+ /**
8610
+ * @returns {any}
8611
+ */
8612
+ get denylist() {
8613
+ const ret = wasm.wasmssrfpolicy_denylist(this.__wbg_ptr);
8614
+ return ret;
8615
+ }
7841
8616
  /**
7842
8617
  * Create a policy from environment variables.
7843
8618
  *
@@ -7850,13 +8625,13 @@ export class WasmSsrfPolicy {
7850
8625
  * - Rust-side SSRF checking is unenforceable and redundant in a wasm32 context.
7851
8626
  * - For testing and localhost access, the host's network sandbox is the enforcing boundary.
7852
8627
  *
7853
- * **Node.js caveat:** `deny_private` (whatever its value) has no effect on hostname-based
7854
- * requests under `wasm32`. There is no DNS resolution on this target, so `validate_url`
7855
- * only ever checks a literal IP host; a domain name falls straight through to `Ok(())`. In a
7856
- * browser this is covered by same-origin/CORS. Node's `fetch` enforces no CORS, so a Node
7857
- * service embedding this wasm module can be driven to internal hosts by domain name even
7858
- * though `deny_private = true`. Do not rely on this policy to stop that in Node — enforce
7859
- * egress restrictions (network policy, firewall, proxy allowlist) outside the process.
8628
+ * **Node.js caveat:** `deny_private` and `denylist` have no effect on hostname-based requests
8629
+ * under `wasm32`. There is no DNS resolution on this target, so `validate_url` only ever
8630
+ * checks a literal IP host; a domain name falls straight through to `Ok(())`. In a browser
8631
+ * this is covered by same-origin/CORS. Node's `fetch` enforces no CORS, so a Node service
8632
+ * embedding this wasm module can be driven to internal hosts by domain name despite the
8633
+ * policy. Enforce egress restrictions (network policy, firewall, proxy allowlist) outside
8634
+ * the process.
7860
8635
  * @returns {WasmSsrfPolicy}
7861
8636
  */
7862
8637
  static fromEnv() {
@@ -7873,13 +8648,14 @@ export class WasmSsrfPolicy {
7873
8648
  /**
7874
8649
  * @param {boolean | null} [denyPrivate]
7875
8650
  * @param {any | null} [allowlist]
8651
+ * @param {any | null} [denylist]
7876
8652
  * @param {number | null} [maxRedirects]
7877
8653
  * @param {string[] | null} [schemeAllowlist]
7878
8654
  */
7879
- constructor(denyPrivate, allowlist, maxRedirects, schemeAllowlist) {
8655
+ constructor(denyPrivate, allowlist, denylist, maxRedirects, schemeAllowlist) {
7880
8656
  var ptr0 = isLikeNone(schemeAllowlist) ? 0 : passArrayJsValueToWasm0(schemeAllowlist, wasm.__wbindgen_malloc);
7881
8657
  var len0 = WASM_VECTOR_LEN;
7882
- const ret = wasm.wasmssrfpolicy_new(isLikeNone(denyPrivate) ? 0xFFFFFF : denyPrivate ? 1 : 0, isLikeNone(allowlist) ? 0 : addToExternrefTable0(allowlist), isLikeNone(maxRedirects) ? 0xFFFFFF : maxRedirects, ptr0, len0);
8658
+ 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);
7883
8659
  this.__wbg_ptr = ret;
7884
8660
  WasmSsrfPolicyFinalization.register(this, this.__wbg_ptr, this);
7885
8661
  return this;
@@ -7905,6 +8681,12 @@ export class WasmSsrfPolicy {
7905
8681
  set denyPrivate(value) {
7906
8682
  wasm.wasmssrfpolicy_set_denyPrivate(this.__wbg_ptr, value);
7907
8683
  }
8684
+ /**
8685
+ * @param {any} value
8686
+ */
8687
+ set denylist(value) {
8688
+ wasm.wasmssrfpolicy_set_denylist(this.__wbg_ptr, value);
8689
+ }
7908
8690
  /**
7909
8691
  * @param {number} value
7910
8692
  */
@@ -8577,13 +9359,13 @@ export function __wbg_wasmsitemapurl_unwrap(arg0) {
8577
9359
  return ret;
8578
9360
  }
8579
9361
  export function __wbindgen_generic_0000000000000001(arg0, arg1) {
8580
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1152, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
9362
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1336, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
8581
9363
  const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2eedacf566f3748c);
8582
9364
  return ret;
8583
9365
  }
8584
9366
  export function __wbindgen_generic_0000000000000002(arg0, arg1) {
8585
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1044, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
8586
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h21c8118e1fe083d1);
9367
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 1227, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
9368
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h3a7ccac3e94bbb5c);
8587
9369
  return ret;
8588
9370
  }
8589
9371
  export function __wbindgen_generic_0000000000000003(arg0) {
@@ -8615,8 +9397,8 @@ export function __wbindgen_init_externref_table() {
8615
9397
  table.set(offset + 2, true);
8616
9398
  table.set(offset + 3, false);
8617
9399
  }
8618
- function wasm_bindgen__convert__closures_____invoke__h21c8118e1fe083d1(arg0, arg1) {
8619
- wasm.wasm_bindgen__convert__closures_____invoke__h21c8118e1fe083d1(arg0, arg1);
9400
+ function wasm_bindgen__convert__closures_____invoke__h3a7ccac3e94bbb5c(arg0, arg1) {
9401
+ wasm.wasm_bindgen__convert__closures_____invoke__h3a7ccac3e94bbb5c(arg0, arg1);
8620
9402
  }
8621
9403
 
8622
9404
  function wasm_bindgen__convert__closures_____invoke__h2eedacf566f3748c(arg0, arg1, arg2) {