@xberg-io/liter-llm-wasm 2.1.1 → 2.1.4

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.
package/liter_llm_wasm.js CHANGED
@@ -158,6 +158,9 @@ export class WasmAssistantMessage {
158
158
  const ptr = this.__destroy_into_raw();
159
159
  wasm.__wbg_wasmassistantmessage_free(ptr, 0);
160
160
  }
161
+ clearFunctionCall() {
162
+ wasm.wasmassistantmessage_clearFunctionCall(this.__wbg_ptr);
163
+ }
161
164
  /**
162
165
  * @returns {string | undefined}
163
166
  */
@@ -170,6 +173,17 @@ export class WasmAssistantMessage {
170
173
  }
171
174
  return v1;
172
175
  }
176
+ /**
177
+ * Return an independent handle for an ownership-taking API.
178
+ *
179
+ * Use `copyForTransfer()` for each class value placed in an array when the original
180
+ * handle must remain usable.
181
+ * @returns {WasmAssistantMessage}
182
+ */
183
+ copyForTransfer() {
184
+ const ret = wasm.wasmassistantmessage_copyForTransfer(this.__wbg_ptr);
185
+ return WasmAssistantMessage.__wrap(ret);
186
+ }
173
187
  /**
174
188
  * @returns {WasmAssistantMessage}
175
189
  */
@@ -178,6 +192,10 @@ export class WasmAssistantMessage {
178
192
  return WasmAssistantMessage.__wrap(ret);
179
193
  }
180
194
  /**
195
+ * Returns a detached copy of `functionCall`.
196
+ *
197
+ * Changes to the returned value do not update this object. To update `functionCall`,
198
+ * read it, modify the copy, then assign the copy back to `functionCall`.
181
199
  * @returns {WasmFunctionCall | undefined}
182
200
  */
183
201
  get functionCall() {
@@ -197,6 +215,14 @@ export class WasmAssistantMessage {
197
215
  return v1;
198
216
  }
199
217
  /**
218
+ * Takes ownership of `functionCall`.
219
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
220
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
221
+ * keep a handle you already hold, build with `default()` and assign the property instead:
222
+ * the generated setter borrows and leaves your handle alive.
223
+ * Takes ownership of every element in `toolCalls`.
224
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
225
+ * copy each retained element with `copyForTransfer()` before passing the array.
200
226
  * @param {string | null} [content]
201
227
  * @param {string | null} [name]
202
228
  * @param {WasmToolCall[] | null} [toolCalls]
@@ -307,15 +333,11 @@ export class WasmAssistantMessage {
307
333
  wasm.wasmassistantmessage_set_content(this.__wbg_ptr, ptr0, len0);
308
334
  }
309
335
  /**
310
- * @param {WasmFunctionCall | null} [value]
336
+ * @param {WasmFunctionCall} value
311
337
  */
312
338
  set functionCall(value) {
313
- let ptr0 = 0;
314
- if (!isLikeNone(value)) {
315
- _assertClass(value, WasmFunctionCall);
316
- ptr0 = value.__destroy_into_raw();
317
- }
318
- wasm.wasmassistantmessage_set_functionCall(this.__wbg_ptr, ptr0);
339
+ _assertClass(value, WasmFunctionCall);
340
+ wasm.wasmassistantmessage_set_functionCall(this.__wbg_ptr, value.__wbg_ptr);
319
341
  }
320
342
  /**
321
343
  * @param {string | null} [value]
@@ -342,6 +364,9 @@ export class WasmAssistantMessage {
342
364
  wasm.wasmassistantmessage_set_refusal(this.__wbg_ptr, ptr0, len0);
343
365
  }
344
366
  /**
367
+ * Takes ownership of every element in `toolCalls`.
368
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
369
+ * element with `copyForTransfer()` before passing the array.
345
370
  * @param {WasmToolCall[] | null} [value]
346
371
  */
347
372
  set toolCalls(value) {
@@ -366,6 +391,10 @@ export class WasmAssistantMessage {
366
391
  return v1;
367
392
  }
368
393
  /**
394
+ * Returns detached copies of the elements in `toolCalls`.
395
+ *
396
+ * Changes to the returned values do not update this object. Modify the copies,
397
+ * then assign the array back to `toolCalls`.
369
398
  * @returns {Array<any> | undefined}
370
399
  */
371
400
  get toolCalls() {
@@ -405,6 +434,12 @@ export class WasmAssistantPart {
405
434
  const ret = wasm.wasmassistantpart_audio(this.__wbg_ptr);
406
435
  return ret === 0 ? undefined : WasmAudioContent.__wrap(ret);
407
436
  }
437
+ clearAudio() {
438
+ wasm.wasmassistantpart_clearAudio(this.__wbg_ptr);
439
+ }
440
+ clearImageUrl() {
441
+ wasm.wasmassistantpart_clearImageUrl(this.__wbg_ptr);
442
+ }
408
443
  /**
409
444
  * @returns {WasmAssistantPart}
410
445
  */
@@ -438,26 +473,18 @@ export class WasmAssistantPart {
438
473
  return v1;
439
474
  }
440
475
  /**
441
- * @param {WasmAudioContent | null} [value]
476
+ * @param {WasmAudioContent} value
442
477
  */
443
478
  set audio(value) {
444
- let ptr0 = 0;
445
- if (!isLikeNone(value)) {
446
- _assertClass(value, WasmAudioContent);
447
- ptr0 = value.__destroy_into_raw();
448
- }
449
- wasm.wasmassistantpart_set_audio(this.__wbg_ptr, ptr0);
479
+ _assertClass(value, WasmAudioContent);
480
+ wasm.wasmassistantpart_set_audio(this.__wbg_ptr, value.__wbg_ptr);
450
481
  }
451
482
  /**
452
- * @param {WasmImageUrl | null} [value]
483
+ * @param {WasmImageUrl} value
453
484
  */
454
485
  set imageUrl(value) {
455
- let ptr0 = 0;
456
- if (!isLikeNone(value)) {
457
- _assertClass(value, WasmImageUrl);
458
- ptr0 = value.__destroy_into_raw();
459
- }
460
- wasm.wasmassistantpart_set_imageUrl(this.__wbg_ptr, ptr0);
486
+ _assertClass(value, WasmImageUrl);
487
+ wasm.wasmassistantpart_set_imageUrl(this.__wbg_ptr, value.__wbg_ptr);
461
488
  }
462
489
  /**
463
490
  * @param {string | null} [value]
@@ -536,6 +563,17 @@ export class WasmAudioContent {
536
563
  const ptr = this.__destroy_into_raw();
537
564
  wasm.__wbg_wasmaudiocontent_free(ptr, 0);
538
565
  }
566
+ /**
567
+ * Return an independent handle for an ownership-taking API.
568
+ *
569
+ * Use `copyForTransfer()` for each class value placed in an array when the original
570
+ * handle must remain usable.
571
+ * @returns {WasmAudioContent}
572
+ */
573
+ copyForTransfer() {
574
+ const ret = wasm.wasmaudiocontent_copyForTransfer(this.__wbg_ptr);
575
+ return WasmAudioContent.__wrap(ret);
576
+ }
539
577
  /**
540
578
  * @returns {string}
541
579
  */
@@ -641,6 +679,17 @@ export class WasmAuthConfig {
641
679
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
642
680
  }
643
681
  }
682
+ /**
683
+ * Return an independent handle for an ownership-taking API.
684
+ *
685
+ * Use `copyForTransfer()` for each class value placed in an array when the original
686
+ * handle must remain usable.
687
+ * @returns {WasmAuthConfig}
688
+ */
689
+ copyForTransfer() {
690
+ const ret = wasm.wasmauthconfig_copyForTransfer(this.__wbg_ptr);
691
+ return WasmAuthConfig.__wrap(ret);
692
+ }
644
693
  /**
645
694
  * @returns {WasmAuthConfig}
646
695
  */
@@ -811,6 +860,17 @@ export class WasmBatchListQuery {
811
860
  }
812
861
  return v1;
813
862
  }
863
+ /**
864
+ * Return an independent handle for an ownership-taking API.
865
+ *
866
+ * Use `copyForTransfer()` for each class value placed in an array when the original
867
+ * handle must remain usable.
868
+ * @returns {WasmBatchListQuery}
869
+ */
870
+ copyForTransfer() {
871
+ const ret = wasm.wasmbatchlistquery_copyForTransfer(this.__wbg_ptr);
872
+ return WasmBatchListQuery.__wrap(ret);
873
+ }
814
874
  /**
815
875
  * @returns {WasmBatchListQuery}
816
876
  */
@@ -875,6 +935,21 @@ export class WasmBatchListResponse {
875
935
  wasm.__wbg_wasmbatchlistresponse_free(ptr, 0);
876
936
  }
877
937
  /**
938
+ * Return an independent handle for an ownership-taking API.
939
+ *
940
+ * Use `copyForTransfer()` for each class value placed in an array when the original
941
+ * handle must remain usable.
942
+ * @returns {WasmBatchListResponse}
943
+ */
944
+ copyForTransfer() {
945
+ const ret = wasm.wasmbatchlistresponse_copyForTransfer(this.__wbg_ptr);
946
+ return WasmBatchListResponse.__wrap(ret);
947
+ }
948
+ /**
949
+ * Returns detached copies of the elements in `data`.
950
+ *
951
+ * Changes to the returned values do not update this object. Modify the copies,
952
+ * then assign the array back to `data`.
878
953
  * @returns {WasmBatchObject[]}
879
954
  */
880
955
  get data() {
@@ -922,6 +997,9 @@ export class WasmBatchListResponse {
922
997
  return v1;
923
998
  }
924
999
  /**
1000
+ * Takes ownership of every element in `data`.
1001
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1002
+ * copy each retained element with `copyForTransfer()` before passing the array.
925
1003
  * @param {string | null} [object]
926
1004
  * @param {WasmBatchObject[] | null} [data]
927
1005
  * @param {boolean | null} [hasMore]
@@ -958,6 +1036,9 @@ export class WasmBatchListResponse {
958
1036
  }
959
1037
  }
960
1038
  /**
1039
+ * Takes ownership of every element in `data`.
1040
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1041
+ * element with `copyForTransfer()` before passing the array.
961
1042
  * @param {WasmBatchObject[]} value
962
1043
  */
963
1044
  set data(value) {
@@ -1024,6 +1105,9 @@ export class WasmBatchObject {
1024
1105
  const ptr = this.__destroy_into_raw();
1025
1106
  wasm.__wbg_wasmbatchobject_free(ptr, 0);
1026
1107
  }
1108
+ clearRequestCounts() {
1109
+ wasm.wasmbatchobject_clearRequestCounts(this.__wbg_ptr);
1110
+ }
1027
1111
  /**
1028
1112
  * @returns {bigint | undefined}
1029
1113
  */
@@ -1046,6 +1130,17 @@ export class WasmBatchObject {
1046
1130
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
1047
1131
  }
1048
1132
  }
1133
+ /**
1134
+ * Return an independent handle for an ownership-taking API.
1135
+ *
1136
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1137
+ * handle must remain usable.
1138
+ * @returns {WasmBatchObject}
1139
+ */
1140
+ copyForTransfer() {
1141
+ const ret = wasm.wasmbatchobject_copyForTransfer(this.__wbg_ptr);
1142
+ return WasmBatchObject.__wrap(ret);
1143
+ }
1049
1144
  /**
1050
1145
  * @returns {bigint}
1051
1146
  */
@@ -1139,6 +1234,11 @@ export class WasmBatchObject {
1139
1234
  return ret;
1140
1235
  }
1141
1236
  /**
1237
+ * Takes ownership of `requestCounts`.
1238
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1239
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1240
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1241
+ * the generated setter borrows and leaves your handle alive.
1142
1242
  * @param {string | null} [id]
1143
1243
  * @param {string | null} [object]
1144
1244
  * @param {string | null} [endpoint]
@@ -1207,6 +1307,10 @@ export class WasmBatchObject {
1207
1307
  return v1;
1208
1308
  }
1209
1309
  /**
1310
+ * Returns a detached copy of `requestCounts`.
1311
+ *
1312
+ * Changes to the returned value do not update this object. To update `requestCounts`,
1313
+ * read it, modify the copy, then assign the copy back to `requestCounts`.
1210
1314
  * @returns {WasmBatchRequestCounts | undefined}
1211
1315
  */
1212
1316
  get requestCounts() {
@@ -1300,15 +1404,11 @@ export class WasmBatchObject {
1300
1404
  wasm.wasmbatchobject_set_outputFileId(this.__wbg_ptr, ptr0, len0);
1301
1405
  }
1302
1406
  /**
1303
- * @param {WasmBatchRequestCounts | null} [value]
1407
+ * @param {WasmBatchRequestCounts} value
1304
1408
  */
1305
1409
  set requestCounts(value) {
1306
- let ptr0 = 0;
1307
- if (!isLikeNone(value)) {
1308
- _assertClass(value, WasmBatchRequestCounts);
1309
- ptr0 = value.__destroy_into_raw();
1310
- }
1311
- wasm.wasmbatchobject_set_requestCounts(this.__wbg_ptr, ptr0);
1410
+ _assertClass(value, WasmBatchRequestCounts);
1411
+ wasm.wasmbatchobject_set_requestCounts(this.__wbg_ptr, value.__wbg_ptr);
1312
1412
  }
1313
1413
  /**
1314
1414
  * @param {WasmBatchStatus} value
@@ -1361,6 +1461,17 @@ export class WasmBatchRequestCounts {
1361
1461
  const ret = wasm.wasmbatchrequestcounts_completed(this.__wbg_ptr);
1362
1462
  return BigInt.asUintN(64, ret);
1363
1463
  }
1464
+ /**
1465
+ * Return an independent handle for an ownership-taking API.
1466
+ *
1467
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1468
+ * handle must remain usable.
1469
+ * @returns {WasmBatchRequestCounts}
1470
+ */
1471
+ copyForTransfer() {
1472
+ const ret = wasm.wasmbatchrequestcounts_copyForTransfer(this.__wbg_ptr);
1473
+ return WasmBatchRequestCounts.__wrap(ret);
1474
+ }
1364
1475
  /**
1365
1476
  * @returns {WasmBatchRequestCounts}
1366
1477
  */
@@ -1474,6 +1585,17 @@ export class WasmBedrockConfig {
1474
1585
  }
1475
1586
  return v1;
1476
1587
  }
1588
+ /**
1589
+ * Return an independent handle for an ownership-taking API.
1590
+ *
1591
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1592
+ * handle must remain usable.
1593
+ * @returns {WasmBedrockConfig}
1594
+ */
1595
+ copyForTransfer() {
1596
+ const ret = wasm.wasmbedrockconfig_copyForTransfer(this.__wbg_ptr);
1597
+ return WasmBedrockConfig.__wrap(ret);
1598
+ }
1477
1599
  /**
1478
1600
  * @returns {string | undefined}
1479
1601
  */
@@ -1630,6 +1752,17 @@ export class WasmCatalogRefreshConfig {
1630
1752
  }
1631
1753
  return v1;
1632
1754
  }
1755
+ /**
1756
+ * Return an independent handle for an ownership-taking API.
1757
+ *
1758
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1759
+ * handle must remain usable.
1760
+ * @returns {WasmCatalogRefreshConfig}
1761
+ */
1762
+ copyForTransfer() {
1763
+ const ret = wasm.wasmcatalogrefreshconfig_copyForTransfer(this.__wbg_ptr);
1764
+ return WasmCatalogRefreshConfig.__wrap(ret);
1765
+ }
1633
1766
  /**
1634
1767
  * @returns {WasmCatalogRefreshConfig}
1635
1768
  */
@@ -1734,6 +1867,10 @@ export class WasmChatCompletionChunk {
1734
1867
  wasm.__wbg_wasmchatcompletionchunk_free(ptr, 0);
1735
1868
  }
1736
1869
  /**
1870
+ * Returns detached copies of the elements in `choices`.
1871
+ *
1872
+ * Changes to the returned values do not update this object. Modify the copies,
1873
+ * then assign the array back to `choices`.
1737
1874
  * @returns {WasmStreamChoice[]}
1738
1875
  */
1739
1876
  get choices() {
@@ -1742,6 +1879,20 @@ export class WasmChatCompletionChunk {
1742
1879
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
1743
1880
  return v1;
1744
1881
  }
1882
+ clearUsage() {
1883
+ wasm.wasmchatcompletionchunk_clearUsage(this.__wbg_ptr);
1884
+ }
1885
+ /**
1886
+ * Return an independent handle for an ownership-taking API.
1887
+ *
1888
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1889
+ * handle must remain usable.
1890
+ * @returns {WasmChatCompletionChunk}
1891
+ */
1892
+ copyForTransfer() {
1893
+ const ret = wasm.wasmchatcompletionchunk_copyForTransfer(this.__wbg_ptr);
1894
+ return WasmChatCompletionChunk.__wrap(ret);
1895
+ }
1745
1896
  /**
1746
1897
  * @returns {bigint}
1747
1898
  */
@@ -1787,6 +1938,14 @@ export class WasmChatCompletionChunk {
1787
1938
  }
1788
1939
  }
1789
1940
  /**
1941
+ * Takes ownership of `usage`.
1942
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1943
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1944
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1945
+ * the generated setter borrows and leaves your handle alive.
1946
+ * Takes ownership of every element in `choices`.
1947
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1948
+ * copy each retained element with `copyForTransfer()` before passing the array.
1790
1949
  * @param {string | null} [id]
1791
1950
  * @param {string | null} [object]
1792
1951
  * @param {bigint | null} [created]
@@ -1847,6 +2006,9 @@ export class WasmChatCompletionChunk {
1847
2006
  return v1;
1848
2007
  }
1849
2008
  /**
2009
+ * Takes ownership of every element in `choices`.
2010
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
2011
+ * element with `copyForTransfer()` before passing the array.
1850
2012
  * @param {WasmStreamChoice[]} value
1851
2013
  */
1852
2014
  set choices(value) {
@@ -1901,15 +2063,11 @@ export class WasmChatCompletionChunk {
1901
2063
  wasm.wasmchatcompletionchunk_set_systemFingerprint(this.__wbg_ptr, ptr0, len0);
1902
2064
  }
1903
2065
  /**
1904
- * @param {WasmUsage | null} [value]
2066
+ * @param {WasmUsage} value
1905
2067
  */
1906
2068
  set usage(value) {
1907
- let ptr0 = 0;
1908
- if (!isLikeNone(value)) {
1909
- _assertClass(value, WasmUsage);
1910
- ptr0 = value.__destroy_into_raw();
1911
- }
1912
- wasm.wasmchatcompletionchunk_set_usage(this.__wbg_ptr, ptr0);
2069
+ _assertClass(value, WasmUsage);
2070
+ wasm.wasmchatcompletionchunk_set_usage(this.__wbg_ptr, value.__wbg_ptr);
1913
2071
  }
1914
2072
  /**
1915
2073
  * @returns {string | undefined}
@@ -1924,6 +2082,10 @@ export class WasmChatCompletionChunk {
1924
2082
  return v1;
1925
2083
  }
1926
2084
  /**
2085
+ * Returns a detached copy of `usage`.
2086
+ *
2087
+ * Changes to the returned value do not update this object. To update `usage`,
2088
+ * read it, modify the copy, then assign the copy back to `usage`.
1927
2089
  * @returns {WasmUsage | undefined}
1928
2090
  */
1929
2091
  get usage() {
@@ -1960,6 +2122,20 @@ export class WasmChatCompletionRequest {
1960
2122
  const ret = wasm.wasmchatcompletionrequest_audio(this.__wbg_ptr);
1961
2123
  return ret;
1962
2124
  }
2125
+ clearStreamOptions() {
2126
+ wasm.wasmchatcompletionrequest_clearStreamOptions(this.__wbg_ptr);
2127
+ }
2128
+ /**
2129
+ * Return an independent handle for an ownership-taking API.
2130
+ *
2131
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2132
+ * handle must remain usable.
2133
+ * @returns {WasmChatCompletionRequest}
2134
+ */
2135
+ copyForTransfer() {
2136
+ const ret = wasm.wasmchatcompletionrequest_copyForTransfer(this.__wbg_ptr);
2137
+ return WasmChatCompletionRequest.__wrap(ret);
2138
+ }
1963
2139
  /**
1964
2140
  * @returns {WasmChatCompletionRequest}
1965
2141
  */
@@ -2058,6 +2234,14 @@ export class WasmChatCompletionRequest {
2058
2234
  return ret === Number.MAX_SAFE_INTEGER ? undefined : ret;
2059
2235
  }
2060
2236
  /**
2237
+ * Takes ownership of `streamOptions`.
2238
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2239
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2240
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2241
+ * the generated setter borrows and leaves your handle alive.
2242
+ * Takes ownership of every element in `tools`.
2243
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2244
+ * copy each retained element with `copyForTransfer()` before passing the array.
2061
2245
  * @param {string | null} [model]
2062
2246
  * @param {any | null} [messages]
2063
2247
  * @param {number | null} [temperature]
@@ -2302,15 +2486,11 @@ export class WasmChatCompletionRequest {
2302
2486
  wasm.wasmchatcompletionrequest_set_store(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
2303
2487
  }
2304
2488
  /**
2305
- * @param {WasmStreamOptions | null} [value]
2489
+ * @param {WasmStreamOptions} value
2306
2490
  */
2307
2491
  set streamOptions(value) {
2308
- let ptr0 = 0;
2309
- if (!isLikeNone(value)) {
2310
- _assertClass(value, WasmStreamOptions);
2311
- ptr0 = value.__destroy_into_raw();
2312
- }
2313
- wasm.wasmchatcompletionrequest_set_streamOptions(this.__wbg_ptr, ptr0);
2492
+ _assertClass(value, WasmStreamOptions);
2493
+ wasm.wasmchatcompletionrequest_set_streamOptions(this.__wbg_ptr, value.__wbg_ptr);
2314
2494
  }
2315
2495
  /**
2316
2496
  * @param {boolean | null} [value]
@@ -2331,6 +2511,9 @@ export class WasmChatCompletionRequest {
2331
2511
  wasm.wasmchatcompletionrequest_set_toolChoice(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
2332
2512
  }
2333
2513
  /**
2514
+ * Takes ownership of every element in `tools`.
2515
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
2516
+ * element with `copyForTransfer()` before passing the array.
2334
2517
  * @param {WasmChatCompletionTool[] | null} [value]
2335
2518
  */
2336
2519
  set tools(value) {
@@ -2379,6 +2562,10 @@ export class WasmChatCompletionRequest {
2379
2562
  return ret === 0xFFFFFF ? undefined : ret !== 0;
2380
2563
  }
2381
2564
  /**
2565
+ * Returns a detached copy of `streamOptions`.
2566
+ *
2567
+ * Changes to the returned value do not update this object. To update `streamOptions`,
2568
+ * read it, modify the copy, then assign the copy back to `streamOptions`.
2382
2569
  * @returns {WasmStreamOptions | undefined}
2383
2570
  */
2384
2571
  get streamOptions() {
@@ -2407,6 +2594,10 @@ export class WasmChatCompletionRequest {
2407
2594
  return ret;
2408
2595
  }
2409
2596
  /**
2597
+ * Returns detached copies of the elements in `tools`.
2598
+ *
2599
+ * Changes to the returned values do not update this object. Modify the copies,
2600
+ * then assign the array back to `tools`.
2410
2601
  * @returns {Array<any> | undefined}
2411
2602
  */
2412
2603
  get tools() {
@@ -2470,6 +2661,10 @@ export class WasmChatCompletionResponse {
2470
2661
  wasm.__wbg_wasmchatcompletionresponse_free(ptr, 0);
2471
2662
  }
2472
2663
  /**
2664
+ * Returns detached copies of the elements in `choices`.
2665
+ *
2666
+ * Changes to the returned values do not update this object. Modify the copies,
2667
+ * then assign the array back to `choices`.
2473
2668
  * @returns {WasmChoice[]}
2474
2669
  */
2475
2670
  get choices() {
@@ -2478,6 +2673,20 @@ export class WasmChatCompletionResponse {
2478
2673
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
2479
2674
  return v1;
2480
2675
  }
2676
+ clearUsage() {
2677
+ wasm.wasmchatcompletionresponse_clearUsage(this.__wbg_ptr);
2678
+ }
2679
+ /**
2680
+ * Return an independent handle for an ownership-taking API.
2681
+ *
2682
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2683
+ * handle must remain usable.
2684
+ * @returns {WasmChatCompletionResponse}
2685
+ */
2686
+ copyForTransfer() {
2687
+ const ret = wasm.wasmchatcompletionresponse_copyForTransfer(this.__wbg_ptr);
2688
+ return WasmChatCompletionResponse.__wrap(ret);
2689
+ }
2481
2690
  /**
2482
2691
  * @returns {bigint}
2483
2692
  */
@@ -2523,6 +2732,14 @@ export class WasmChatCompletionResponse {
2523
2732
  }
2524
2733
  }
2525
2734
  /**
2735
+ * Takes ownership of `usage`.
2736
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2737
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2738
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2739
+ * the generated setter borrows and leaves your handle alive.
2740
+ * Takes ownership of every element in `choices`.
2741
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2742
+ * copy each retained element with `copyForTransfer()` before passing the array.
2526
2743
  * @param {string | null} [id]
2527
2744
  * @param {string | null} [object]
2528
2745
  * @param {bigint | null} [created]
@@ -2583,6 +2800,9 @@ export class WasmChatCompletionResponse {
2583
2800
  return v1;
2584
2801
  }
2585
2802
  /**
2803
+ * Takes ownership of every element in `choices`.
2804
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
2805
+ * element with `copyForTransfer()` before passing the array.
2586
2806
  * @param {WasmChoice[]} value
2587
2807
  */
2588
2808
  set choices(value) {
@@ -2637,15 +2857,11 @@ export class WasmChatCompletionResponse {
2637
2857
  wasm.wasmchatcompletionresponse_set_systemFingerprint(this.__wbg_ptr, ptr0, len0);
2638
2858
  }
2639
2859
  /**
2640
- * @param {WasmUsage | null} [value]
2860
+ * @param {WasmUsage} value
2641
2861
  */
2642
2862
  set usage(value) {
2643
- let ptr0 = 0;
2644
- if (!isLikeNone(value)) {
2645
- _assertClass(value, WasmUsage);
2646
- ptr0 = value.__destroy_into_raw();
2647
- }
2648
- wasm.wasmchatcompletionresponse_set_usage(this.__wbg_ptr, ptr0);
2863
+ _assertClass(value, WasmUsage);
2864
+ wasm.wasmchatcompletionresponse_set_usage(this.__wbg_ptr, value.__wbg_ptr);
2649
2865
  }
2650
2866
  /**
2651
2867
  * @returns {string | undefined}
@@ -2660,6 +2876,10 @@ export class WasmChatCompletionResponse {
2660
2876
  return v1;
2661
2877
  }
2662
2878
  /**
2879
+ * Returns a detached copy of `usage`.
2880
+ *
2881
+ * Changes to the returned value do not update this object. To update `usage`,
2882
+ * read it, modify the copy, then assign the copy back to `usage`.
2663
2883
  * @returns {WasmUsage | undefined}
2664
2884
  */
2665
2885
  get usage() {
@@ -2695,6 +2915,17 @@ export class WasmChatCompletionTool {
2695
2915
  const ptr = this.__destroy_into_raw();
2696
2916
  wasm.__wbg_wasmchatcompletiontool_free(ptr, 0);
2697
2917
  }
2918
+ /**
2919
+ * Return an independent handle for an ownership-taking API.
2920
+ *
2921
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2922
+ * handle must remain usable.
2923
+ * @returns {WasmChatCompletionTool}
2924
+ */
2925
+ copyForTransfer() {
2926
+ const ret = wasm.wasmchatcompletiontool_copyForTransfer(this.__wbg_ptr);
2927
+ return WasmChatCompletionTool.__wrap(ret);
2928
+ }
2698
2929
  /**
2699
2930
  * @returns {WasmChatCompletionTool}
2700
2931
  */
@@ -2703,6 +2934,10 @@ export class WasmChatCompletionTool {
2703
2934
  return WasmChatCompletionTool.__wrap(ret);
2704
2935
  }
2705
2936
  /**
2937
+ * Returns a detached copy of `function`.
2938
+ *
2939
+ * Changes to the returned value do not update this object. To update `function`,
2940
+ * read it, modify the copy, then assign the copy back to `function`.
2706
2941
  * @returns {WasmFunctionDefinition}
2707
2942
  */
2708
2943
  get function() {
@@ -2715,8 +2950,7 @@ export class WasmChatCompletionTool {
2715
2950
  */
2716
2951
  constructor(toolType, _function) {
2717
2952
  _assertClass(_function, WasmFunctionDefinition);
2718
- var ptr0 = _function.__destroy_into_raw();
2719
- const ret = wasm.wasmchatcompletiontool_new(toolType, ptr0);
2953
+ const ret = wasm.wasmchatcompletiontool_new(toolType, _function.__wbg_ptr);
2720
2954
  this.__wbg_ptr = ret;
2721
2955
  WasmChatCompletionToolFinalization.register(this, this.__wbg_ptr, this);
2722
2956
  return this;
@@ -2726,8 +2960,7 @@ export class WasmChatCompletionTool {
2726
2960
  */
2727
2961
  set function(value) {
2728
2962
  _assertClass(value, WasmFunctionDefinition);
2729
- var ptr0 = value.__destroy_into_raw();
2730
- wasm.wasmchatcompletiontool_set_function(this.__wbg_ptr, ptr0);
2963
+ wasm.wasmchatcompletiontool_set_function(this.__wbg_ptr, value.__wbg_ptr);
2731
2964
  }
2732
2965
  /**
2733
2966
  * @param {WasmToolType} value
@@ -2779,6 +3012,17 @@ export class WasmChoice {
2779
3012
  const ptr = this.__destroy_into_raw();
2780
3013
  wasm.__wbg_wasmchoice_free(ptr, 0);
2781
3014
  }
3015
+ /**
3016
+ * Return an independent handle for an ownership-taking API.
3017
+ *
3018
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3019
+ * handle must remain usable.
3020
+ * @returns {WasmChoice}
3021
+ */
3022
+ copyForTransfer() {
3023
+ const ret = wasm.wasmchoice_copyForTransfer(this.__wbg_ptr);
3024
+ return WasmChoice.__wrap(ret);
3025
+ }
2782
3026
  /**
2783
3027
  * @returns {WasmChoice}
2784
3028
  */
@@ -2813,6 +3057,10 @@ export class WasmChoice {
2813
3057
  return ret;
2814
3058
  }
2815
3059
  /**
3060
+ * Returns a detached copy of `message`.
3061
+ *
3062
+ * Changes to the returned value do not update this object. To update `message`,
3063
+ * read it, modify the copy, then assign the copy back to `message`.
2816
3064
  * @returns {WasmAssistantMessage}
2817
3065
  */
2818
3066
  get message() {
@@ -2820,6 +3068,11 @@ export class WasmChoice {
2820
3068
  return WasmAssistantMessage.__wrap(ret);
2821
3069
  }
2822
3070
  /**
3071
+ * Takes ownership of `message`.
3072
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
3073
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
3074
+ * keep a handle you already hold, build with `default()` and assign the property instead:
3075
+ * the generated setter borrows and leaves your handle alive.
2823
3076
  * @param {number | null} [index]
2824
3077
  * @param {WasmAssistantMessage | null} [message]
2825
3078
  * @param {WasmFinishReason | null} [finishReason]
@@ -2859,8 +3112,7 @@ export class WasmChoice {
2859
3112
  */
2860
3113
  set message(value) {
2861
3114
  _assertClass(value, WasmAssistantMessage);
2862
- var ptr0 = value.__destroy_into_raw();
2863
- wasm.wasmchoice_set_message(this.__wbg_ptr, ptr0);
3115
+ wasm.wasmchoice_set_message(this.__wbg_ptr, value.__wbg_ptr);
2864
3116
  }
2865
3117
  }
2866
3118
  if (Symbol.dispose) WasmChoice.prototype[Symbol.dispose] = WasmChoice.prototype.free;
@@ -2885,6 +3137,15 @@ export class WasmContentPart {
2885
3137
  const ptr = this.__destroy_into_raw();
2886
3138
  wasm.__wbg_wasmcontentpart_free(ptr, 0);
2887
3139
  }
3140
+ clearDocument() {
3141
+ wasm.wasmcontentpart_clearDocument(this.__wbg_ptr);
3142
+ }
3143
+ clearImageUrl() {
3144
+ wasm.wasmcontentpart_clearImageUrl(this.__wbg_ptr);
3145
+ }
3146
+ clearInputAudio() {
3147
+ wasm.wasmcontentpart_clearInputAudio(this.__wbg_ptr);
3148
+ }
2888
3149
  /**
2889
3150
  * @returns {WasmContentPart}
2890
3151
  */
@@ -2920,37 +3181,25 @@ export class WasmContentPart {
2920
3181
  return this;
2921
3182
  }
2922
3183
  /**
2923
- * @param {WasmDocumentContent | null} [value]
3184
+ * @param {WasmDocumentContent} value
2924
3185
  */
2925
3186
  set document(value) {
2926
- let ptr0 = 0;
2927
- if (!isLikeNone(value)) {
2928
- _assertClass(value, WasmDocumentContent);
2929
- ptr0 = value.__destroy_into_raw();
2930
- }
2931
- wasm.wasmcontentpart_set_document(this.__wbg_ptr, ptr0);
3187
+ _assertClass(value, WasmDocumentContent);
3188
+ wasm.wasmcontentpart_set_document(this.__wbg_ptr, value.__wbg_ptr);
2932
3189
  }
2933
3190
  /**
2934
- * @param {WasmImageUrl | null} [value]
3191
+ * @param {WasmImageUrl} value
2935
3192
  */
2936
3193
  set imageUrl(value) {
2937
- let ptr0 = 0;
2938
- if (!isLikeNone(value)) {
2939
- _assertClass(value, WasmImageUrl);
2940
- ptr0 = value.__destroy_into_raw();
2941
- }
2942
- wasm.wasmcontentpart_set_imageUrl(this.__wbg_ptr, ptr0);
3194
+ _assertClass(value, WasmImageUrl);
3195
+ wasm.wasmcontentpart_set_imageUrl(this.__wbg_ptr, value.__wbg_ptr);
2943
3196
  }
2944
3197
  /**
2945
- * @param {WasmAudioContent | null} [value]
3198
+ * @param {WasmAudioContent} value
2946
3199
  */
2947
3200
  set inputAudio(value) {
2948
- let ptr0 = 0;
2949
- if (!isLikeNone(value)) {
2950
- _assertClass(value, WasmAudioContent);
2951
- ptr0 = value.__destroy_into_raw();
2952
- }
2953
- wasm.wasmcontentpart_set_inputAudio(this.__wbg_ptr, ptr0);
3201
+ _assertClass(value, WasmAudioContent);
3202
+ wasm.wasmcontentpart_set_inputAudio(this.__wbg_ptr, value.__wbg_ptr);
2954
3203
  }
2955
3204
  /**
2956
3205
  * @param {string | null} [value]
@@ -3033,6 +3282,17 @@ export class WasmCreateBatchRequest {
3033
3282
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
3034
3283
  }
3035
3284
  }
3285
+ /**
3286
+ * Return an independent handle for an ownership-taking API.
3287
+ *
3288
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3289
+ * handle must remain usable.
3290
+ * @returns {WasmCreateBatchRequest}
3291
+ */
3292
+ copyForTransfer() {
3293
+ const ret = wasm.wasmcreatebatchrequest_copyForTransfer(this.__wbg_ptr);
3294
+ return WasmCreateBatchRequest.__wrap(ret);
3295
+ }
3036
3296
  /**
3037
3297
  * @returns {WasmCreateBatchRequest}
3038
3298
  */
@@ -3148,6 +3408,17 @@ export class WasmCreateFileRequest {
3148
3408
  const ptr = this.__destroy_into_raw();
3149
3409
  wasm.__wbg_wasmcreatefilerequest_free(ptr, 0);
3150
3410
  }
3411
+ /**
3412
+ * Return an independent handle for an ownership-taking API.
3413
+ *
3414
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3415
+ * handle must remain usable.
3416
+ * @returns {WasmCreateFileRequest}
3417
+ */
3418
+ copyForTransfer() {
3419
+ const ret = wasm.wasmcreatefilerequest_copyForTransfer(this.__wbg_ptr);
3420
+ return WasmCreateFileRequest.__wrap(ret);
3421
+ }
3151
3422
  /**
3152
3423
  * @returns {WasmCreateFileRequest}
3153
3424
  */
@@ -3257,6 +3528,17 @@ export class WasmCreateImageRequest {
3257
3528
  const ptr = this.__destroy_into_raw();
3258
3529
  wasm.__wbg_wasmcreateimagerequest_free(ptr, 0);
3259
3530
  }
3531
+ /**
3532
+ * Return an independent handle for an ownership-taking API.
3533
+ *
3534
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3535
+ * handle must remain usable.
3536
+ * @returns {WasmCreateImageRequest}
3537
+ */
3538
+ copyForTransfer() {
3539
+ const ret = wasm.wasmcreateimagerequest_copyForTransfer(this.__wbg_ptr);
3540
+ return WasmCreateImageRequest.__wrap(ret);
3541
+ }
3260
3542
  /**
3261
3543
  * @returns {WasmCreateImageRequest}
3262
3544
  */
@@ -3490,6 +3772,17 @@ export class WasmCreateResponseRequest {
3490
3772
  const ptr = this.__destroy_into_raw();
3491
3773
  wasm.__wbg_wasmcreateresponserequest_free(ptr, 0);
3492
3774
  }
3775
+ /**
3776
+ * Return an independent handle for an ownership-taking API.
3777
+ *
3778
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3779
+ * handle must remain usable.
3780
+ * @returns {WasmCreateResponseRequest}
3781
+ */
3782
+ copyForTransfer() {
3783
+ const ret = wasm.wasmcreateresponserequest_copyForTransfer(this.__wbg_ptr);
3784
+ return WasmCreateResponseRequest.__wrap(ret);
3785
+ }
3493
3786
  /**
3494
3787
  * @returns {WasmCreateResponseRequest}
3495
3788
  */
@@ -3553,6 +3846,9 @@ export class WasmCreateResponseRequest {
3553
3846
  }
3554
3847
  }
3555
3848
  /**
3849
+ * Takes ownership of every element in `tools`.
3850
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3851
+ * copy each retained element with `copyForTransfer()` before passing the array.
3556
3852
  * @param {string | null} [model]
3557
3853
  * @param {any | null} [input]
3558
3854
  * @param {string | null} [instructions]
@@ -3628,6 +3924,9 @@ export class WasmCreateResponseRequest {
3628
3924
  wasm.wasmcreateresponserequest_set_temperature(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? 0 : value);
3629
3925
  }
3630
3926
  /**
3927
+ * Takes ownership of every element in `tools`.
3928
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3929
+ * element with `copyForTransfer()` before passing the array.
3631
3930
  * @param {WasmResponseTool[] | null} [value]
3632
3931
  */
3633
3932
  set tools(value) {
@@ -3650,6 +3949,10 @@ export class WasmCreateResponseRequest {
3650
3949
  return ret[0] === 0 ? undefined : ret[1];
3651
3950
  }
3652
3951
  /**
3952
+ * Returns detached copies of the elements in `tools`.
3953
+ *
3954
+ * Changes to the returned values do not update this object. Modify the copies,
3955
+ * then assign the array back to `tools`.
3653
3956
  * @returns {Array<any> | undefined}
3654
3957
  */
3655
3958
  get tools() {
@@ -3679,6 +3982,17 @@ export class WasmCreateSpeechRequest {
3679
3982
  const ptr = this.__destroy_into_raw();
3680
3983
  wasm.__wbg_wasmcreatespeechrequest_free(ptr, 0);
3681
3984
  }
3985
+ /**
3986
+ * Return an independent handle for an ownership-taking API.
3987
+ *
3988
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3989
+ * handle must remain usable.
3990
+ * @returns {WasmCreateSpeechRequest}
3991
+ */
3992
+ copyForTransfer() {
3993
+ const ret = wasm.wasmcreatespeechrequest_copyForTransfer(this.__wbg_ptr);
3994
+ return WasmCreateSpeechRequest.__wrap(ret);
3995
+ }
3682
3996
  /**
3683
3997
  * @returns {WasmCreateSpeechRequest}
3684
3998
  */
@@ -3832,6 +4146,17 @@ export class WasmCreateTranscriptionRequest {
3832
4146
  const ptr = this.__destroy_into_raw();
3833
4147
  wasm.__wbg_wasmcreatetranscriptionrequest_free(ptr, 0);
3834
4148
  }
4149
+ /**
4150
+ * Return an independent handle for an ownership-taking API.
4151
+ *
4152
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4153
+ * handle must remain usable.
4154
+ * @returns {WasmCreateTranscriptionRequest}
4155
+ */
4156
+ copyForTransfer() {
4157
+ const ret = wasm.wasmcreatetranscriptionrequest_copyForTransfer(this.__wbg_ptr);
4158
+ return WasmCreateTranscriptionRequest.__wrap(ret);
4159
+ }
3835
4160
  /**
3836
4161
  * @returns {WasmCreateTranscriptionRequest}
3837
4162
  */
@@ -4027,6 +4352,17 @@ export class WasmCustomProviderConfig {
4027
4352
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4028
4353
  }
4029
4354
  }
4355
+ /**
4356
+ * Return an independent handle for an ownership-taking API.
4357
+ *
4358
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4359
+ * handle must remain usable.
4360
+ * @returns {WasmCustomProviderConfig}
4361
+ */
4362
+ copyForTransfer() {
4363
+ const ret = wasm.wasmcustomproviderconfig_copyForTransfer(this.__wbg_ptr);
4364
+ return WasmCustomProviderConfig.__wrap(ret);
4365
+ }
4030
4366
  /**
4031
4367
  * @returns {WasmCustomProviderConfig}
4032
4368
  */
@@ -4132,6 +4468,17 @@ export class WasmDecodedDataUrl {
4132
4468
  const ptr = this.__destroy_into_raw();
4133
4469
  wasm.__wbg_wasmdecodeddataurl_free(ptr, 0);
4134
4470
  }
4471
+ /**
4472
+ * Return an independent handle for an ownership-taking API.
4473
+ *
4474
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4475
+ * handle must remain usable.
4476
+ * @returns {WasmDecodedDataUrl}
4477
+ */
4478
+ copyForTransfer() {
4479
+ const ret = wasm.wasmdecodeddataurl_copyForTransfer(this.__wbg_ptr);
4480
+ return WasmDecodedDataUrl.__wrap(ret);
4481
+ }
4135
4482
  /**
4136
4483
  * @returns {Uint8Array}
4137
4484
  */
@@ -4199,7 +4546,7 @@ if (Symbol.dispose) WasmDecodedDataUrl.prototype[Symbol.dispose] = WasmDecodedDa
4199
4546
  /**
4200
4547
  * Default client implementation backed by `reqwest`.
4201
4548
  *
4202
- * Sends requests to 165 LLM providers with automatic provider detection
4549
+ * Sends requests to 174 LLM providers with automatic provider detection
4203
4550
  * and per-request routing. The provider is resolved at construction time
4204
4551
  * from `model_hint` (or defaults to OpenAI), but individual requests can
4205
4552
  * override the provider via model name prefix (e.g. `"anthropic/claude-3-5-sonnet"`
@@ -4270,6 +4617,17 @@ export class WasmDefaultClient {
4270
4617
  const ret = wasm.wasmdefaultclient_chat(this.__wbg_ptr, ptr0);
4271
4618
  return ret;
4272
4619
  }
4620
+ /**
4621
+ * Return an independent handle for an ownership-taking API.
4622
+ *
4623
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4624
+ * handle must remain usable.
4625
+ * @returns {WasmDefaultClient}
4626
+ */
4627
+ copyForTransfer() {
4628
+ const ret = wasm.wasmdefaultclient_copyForTransfer(this.__wbg_ptr);
4629
+ return WasmDefaultClient.__wrap(ret);
4630
+ }
4273
4631
  /**
4274
4632
  * @param {WasmCreateBatchRequest} req
4275
4633
  * @returns {Promise<WasmBatchObject>}
@@ -4521,6 +4879,17 @@ export class WasmDeleteResponse {
4521
4879
  const ptr = this.__destroy_into_raw();
4522
4880
  wasm.__wbg_wasmdeleteresponse_free(ptr, 0);
4523
4881
  }
4882
+ /**
4883
+ * Return an independent handle for an ownership-taking API.
4884
+ *
4885
+ * Use `copyForTransfer()` for each class value placed in an array when the original
4886
+ * handle must remain usable.
4887
+ * @returns {WasmDeleteResponse}
4888
+ */
4889
+ copyForTransfer() {
4890
+ const ret = wasm.wasmdeleteresponse_copyForTransfer(this.__wbg_ptr);
4891
+ return WasmDeleteResponse.__wrap(ret);
4892
+ }
4524
4893
  /**
4525
4894
  * @returns {WasmDeleteResponse}
4526
4895
  */
@@ -4640,6 +5009,17 @@ export class WasmDeveloperMessage {
4640
5009
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
4641
5010
  }
4642
5011
  }
5012
+ /**
5013
+ * Return an independent handle for an ownership-taking API.
5014
+ *
5015
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5016
+ * handle must remain usable.
5017
+ * @returns {WasmDeveloperMessage}
5018
+ */
5019
+ copyForTransfer() {
5020
+ const ret = wasm.wasmdevelopermessage_copyForTransfer(this.__wbg_ptr);
5021
+ return WasmDeveloperMessage.__wrap(ret);
5022
+ }
4643
5023
  /**
4644
5024
  * @returns {WasmDeveloperMessage}
4645
5025
  */
@@ -4712,6 +5092,17 @@ export class WasmDocumentContent {
4712
5092
  const ptr = this.__destroy_into_raw();
4713
5093
  wasm.__wbg_wasmdocumentcontent_free(ptr, 0);
4714
5094
  }
5095
+ /**
5096
+ * Return an independent handle for an ownership-taking API.
5097
+ *
5098
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5099
+ * handle must remain usable.
5100
+ * @returns {WasmDocumentContent}
5101
+ */
5102
+ copyForTransfer() {
5103
+ const ret = wasm.wasmdocumentcontent_copyForTransfer(this.__wbg_ptr);
5104
+ return WasmDocumentContent.__wrap(ret);
5105
+ }
4715
5106
  /**
4716
5107
  * @returns {string}
4717
5108
  */
@@ -4802,6 +5193,9 @@ export class WasmEmbeddingContentPart {
4802
5193
  const ptr = this.__destroy_into_raw();
4803
5194
  wasm.__wbg_wasmembeddingcontentpart_free(ptr, 0);
4804
5195
  }
5196
+ clearImageUrl() {
5197
+ wasm.wasmembeddingcontentpart_clearImageUrl(this.__wbg_ptr);
5198
+ }
4805
5199
  /**
4806
5200
  * @returns {WasmEmbeddingContentPart}
4807
5201
  */
@@ -4843,15 +5237,11 @@ export class WasmEmbeddingContentPart {
4843
5237
  wasm.wasmembeddingcontentpart_set_imageBase64(this.__wbg_ptr, ptr0, len0);
4844
5238
  }
4845
5239
  /**
4846
- * @param {WasmImageUrl | null} [value]
5240
+ * @param {WasmImageUrl} value
4847
5241
  */
4848
5242
  set imageUrl(value) {
4849
- let ptr0 = 0;
4850
- if (!isLikeNone(value)) {
4851
- _assertClass(value, WasmImageUrl);
4852
- ptr0 = value.__destroy_into_raw();
4853
- }
4854
- wasm.wasmembeddingcontentpart_set_imageUrl(this.__wbg_ptr, ptr0);
5243
+ _assertClass(value, WasmImageUrl);
5244
+ wasm.wasmembeddingcontentpart_set_imageUrl(this.__wbg_ptr, value.__wbg_ptr);
4855
5245
  }
4856
5246
  /**
4857
5247
  * @param {string | null} [value]
@@ -4934,6 +5324,17 @@ export class WasmEmbeddingObject {
4934
5324
  const ptr = this.__destroy_into_raw();
4935
5325
  wasm.__wbg_wasmembeddingobject_free(ptr, 0);
4936
5326
  }
5327
+ /**
5328
+ * Return an independent handle for an ownership-taking API.
5329
+ *
5330
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5331
+ * handle must remain usable.
5332
+ * @returns {WasmEmbeddingObject}
5333
+ */
5334
+ copyForTransfer() {
5335
+ const ret = wasm.wasmembeddingobject_copyForTransfer(this.__wbg_ptr);
5336
+ return WasmEmbeddingObject.__wrap(ret);
5337
+ }
4937
5338
  /**
4938
5339
  * @returns {WasmEmbeddingObject}
4939
5340
  */
@@ -5032,6 +5433,17 @@ export class WasmEmbeddingRequest {
5032
5433
  const ptr = this.__destroy_into_raw();
5033
5434
  wasm.__wbg_wasmembeddingrequest_free(ptr, 0);
5034
5435
  }
5436
+ /**
5437
+ * Return an independent handle for an ownership-taking API.
5438
+ *
5439
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5440
+ * handle must remain usable.
5441
+ * @returns {WasmEmbeddingRequest}
5442
+ */
5443
+ copyForTransfer() {
5444
+ const ret = wasm.wasmembeddingrequest_copyForTransfer(this.__wbg_ptr);
5445
+ return WasmEmbeddingRequest.__wrap(ret);
5446
+ }
5035
5447
  /**
5036
5448
  * @returns {WasmEmbeddingRequest}
5037
5449
  */
@@ -5166,7 +5578,25 @@ export class WasmEmbeddingResponse {
5166
5578
  const ptr = this.__destroy_into_raw();
5167
5579
  wasm.__wbg_wasmembeddingresponse_free(ptr, 0);
5168
5580
  }
5581
+ clearUsage() {
5582
+ wasm.wasmembeddingresponse_clearUsage(this.__wbg_ptr);
5583
+ }
5584
+ /**
5585
+ * Return an independent handle for an ownership-taking API.
5586
+ *
5587
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5588
+ * handle must remain usable.
5589
+ * @returns {WasmEmbeddingResponse}
5590
+ */
5591
+ copyForTransfer() {
5592
+ const ret = wasm.wasmembeddingresponse_copyForTransfer(this.__wbg_ptr);
5593
+ return WasmEmbeddingResponse.__wrap(ret);
5594
+ }
5169
5595
  /**
5596
+ * Returns detached copies of the elements in `data`.
5597
+ *
5598
+ * Changes to the returned values do not update this object. Modify the copies,
5599
+ * then assign the array back to `data`.
5170
5600
  * @returns {WasmEmbeddingObject[]}
5171
5601
  */
5172
5602
  get data() {
@@ -5198,6 +5628,14 @@ export class WasmEmbeddingResponse {
5198
5628
  }
5199
5629
  }
5200
5630
  /**
5631
+ * Takes ownership of `usage`.
5632
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
5633
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
5634
+ * keep a handle you already hold, build with `default()` and assign the property instead:
5635
+ * the generated setter borrows and leaves your handle alive.
5636
+ * Takes ownership of every element in `data`.
5637
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5638
+ * copy each retained element with `copyForTransfer()` before passing the array.
5201
5639
  * @param {string} object
5202
5640
  * @param {WasmEmbeddingObject[]} data
5203
5641
  * @param {string} model
@@ -5236,6 +5674,9 @@ export class WasmEmbeddingResponse {
5236
5674
  }
5237
5675
  }
5238
5676
  /**
5677
+ * Takes ownership of every element in `data`.
5678
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5679
+ * element with `copyForTransfer()` before passing the array.
5239
5680
  * @param {WasmEmbeddingObject[]} value
5240
5681
  */
5241
5682
  set data(value) {
@@ -5260,17 +5701,17 @@ export class WasmEmbeddingResponse {
5260
5701
  wasm.wasmembeddingresponse_set_object(this.__wbg_ptr, ptr0, len0);
5261
5702
  }
5262
5703
  /**
5263
- * @param {WasmUsage | null} [value]
5704
+ * @param {WasmUsage} value
5264
5705
  */
5265
5706
  set usage(value) {
5266
- let ptr0 = 0;
5267
- if (!isLikeNone(value)) {
5268
- _assertClass(value, WasmUsage);
5269
- ptr0 = value.__destroy_into_raw();
5270
- }
5271
- wasm.wasmembeddingresponse_set_usage(this.__wbg_ptr, ptr0);
5707
+ _assertClass(value, WasmUsage);
5708
+ wasm.wasmembeddingresponse_set_usage(this.__wbg_ptr, value.__wbg_ptr);
5272
5709
  }
5273
5710
  /**
5711
+ * Returns a detached copy of `usage`.
5712
+ *
5713
+ * Changes to the returned value do not update this object. To update `usage`,
5714
+ * read it, modify the copy, then assign the copy back to `usage`.
5274
5715
  * @returns {WasmUsage | undefined}
5275
5716
  */
5276
5717
  get usage() {
@@ -5312,6 +5753,17 @@ export class WasmFileListQuery {
5312
5753
  }
5313
5754
  return v1;
5314
5755
  }
5756
+ /**
5757
+ * Return an independent handle for an ownership-taking API.
5758
+ *
5759
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5760
+ * handle must remain usable.
5761
+ * @returns {WasmFileListQuery}
5762
+ */
5763
+ copyForTransfer() {
5764
+ const ret = wasm.wasmfilelistquery_copyForTransfer(this.__wbg_ptr);
5765
+ return WasmFileListQuery.__wrap(ret);
5766
+ }
5315
5767
  /**
5316
5768
  * @returns {WasmFileListQuery}
5317
5769
  */
@@ -5399,6 +5851,21 @@ export class WasmFileListResponse {
5399
5851
  wasm.__wbg_wasmfilelistresponse_free(ptr, 0);
5400
5852
  }
5401
5853
  /**
5854
+ * Return an independent handle for an ownership-taking API.
5855
+ *
5856
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5857
+ * handle must remain usable.
5858
+ * @returns {WasmFileListResponse}
5859
+ */
5860
+ copyForTransfer() {
5861
+ const ret = wasm.wasmfilelistresponse_copyForTransfer(this.__wbg_ptr);
5862
+ return WasmFileListResponse.__wrap(ret);
5863
+ }
5864
+ /**
5865
+ * Returns detached copies of the elements in `data`.
5866
+ *
5867
+ * Changes to the returned values do not update this object. Modify the copies,
5868
+ * then assign the array back to `data`.
5402
5869
  * @returns {WasmFileObject[]}
5403
5870
  */
5404
5871
  get data() {
@@ -5422,6 +5889,9 @@ export class WasmFileListResponse {
5422
5889
  return ret === 0xFFFFFF ? undefined : ret !== 0;
5423
5890
  }
5424
5891
  /**
5892
+ * Takes ownership of every element in `data`.
5893
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
5894
+ * copy each retained element with `copyForTransfer()` before passing the array.
5425
5895
  * @param {string | null} [object]
5426
5896
  * @param {WasmFileObject[] | null} [data]
5427
5897
  * @param {boolean | null} [hasMore]
@@ -5452,6 +5922,9 @@ export class WasmFileListResponse {
5452
5922
  }
5453
5923
  }
5454
5924
  /**
5925
+ * Takes ownership of every element in `data`.
5926
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
5927
+ * element with `copyForTransfer()` before passing the array.
5455
5928
  * @param {WasmFileObject[]} value
5456
5929
  */
5457
5930
  set data(value) {
@@ -5509,6 +5982,17 @@ export class WasmFileObject {
5509
5982
  const ret = wasm.wasmfileobject_bytes(this.__wbg_ptr);
5510
5983
  return BigInt.asUintN(64, ret);
5511
5984
  }
5985
+ /**
5986
+ * Return an independent handle for an ownership-taking API.
5987
+ *
5988
+ * Use `copyForTransfer()` for each class value placed in an array when the original
5989
+ * handle must remain usable.
5990
+ * @returns {WasmFileObject}
5991
+ */
5992
+ copyForTransfer() {
5993
+ const ret = wasm.wasmfileobject_copyForTransfer(this.__wbg_ptr);
5994
+ return WasmFileObject.__wrap(ret);
5995
+ }
5512
5996
  /**
5513
5997
  * @returns {bigint}
5514
5998
  */
@@ -5734,6 +6218,17 @@ export class WasmFunctionCall {
5734
6218
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5735
6219
  }
5736
6220
  }
6221
+ /**
6222
+ * Return an independent handle for an ownership-taking API.
6223
+ *
6224
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6225
+ * handle must remain usable.
6226
+ * @returns {WasmFunctionCall}
6227
+ */
6228
+ copyForTransfer() {
6229
+ const ret = wasm.wasmfunctioncall_copyForTransfer(this.__wbg_ptr);
6230
+ return WasmFunctionCall.__wrap(ret);
6231
+ }
5737
6232
  /**
5738
6233
  * @returns {WasmFunctionCall}
5739
6234
  */
@@ -5809,6 +6304,17 @@ export class WasmFunctionDefinition {
5809
6304
  const ptr = this.__destroy_into_raw();
5810
6305
  wasm.__wbg_wasmfunctiondefinition_free(ptr, 0);
5811
6306
  }
6307
+ /**
6308
+ * Return an independent handle for an ownership-taking API.
6309
+ *
6310
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6311
+ * handle must remain usable.
6312
+ * @returns {WasmFunctionDefinition}
6313
+ */
6314
+ copyForTransfer() {
6315
+ const ret = wasm.wasmfunctiondefinition_copyForTransfer(this.__wbg_ptr);
6316
+ return WasmFunctionDefinition.__wrap(ret);
6317
+ }
5812
6318
  /**
5813
6319
  * @returns {WasmFunctionDefinition}
5814
6320
  */
@@ -5939,6 +6445,17 @@ export class WasmFunctionMessage {
5939
6445
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
5940
6446
  }
5941
6447
  }
6448
+ /**
6449
+ * Return an independent handle for an ownership-taking API.
6450
+ *
6451
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6452
+ * handle must remain usable.
6453
+ * @returns {WasmFunctionMessage}
6454
+ */
6455
+ copyForTransfer() {
6456
+ const ret = wasm.wasmfunctionmessage_copyForTransfer(this.__wbg_ptr);
6457
+ return WasmFunctionMessage.__wrap(ret);
6458
+ }
5942
6459
  /**
5943
6460
  * @returns {WasmFunctionMessage}
5944
6461
  */
@@ -6032,6 +6549,17 @@ export class WasmImage {
6032
6549
  }
6033
6550
  return v1;
6034
6551
  }
6552
+ /**
6553
+ * Return an independent handle for an ownership-taking API.
6554
+ *
6555
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6556
+ * handle must remain usable.
6557
+ * @returns {WasmImage}
6558
+ */
6559
+ copyForTransfer() {
6560
+ const ret = wasm.wasmimage_copyForTransfer(this.__wbg_ptr);
6561
+ return WasmImage.__wrap(ret);
6562
+ }
6035
6563
  /**
6036
6564
  * @returns {WasmImage}
6037
6565
  */
@@ -6143,6 +6671,17 @@ export class WasmImageUrl {
6143
6671
  const ptr = this.__destroy_into_raw();
6144
6672
  wasm.__wbg_wasmimageurl_free(ptr, 0);
6145
6673
  }
6674
+ /**
6675
+ * Return an independent handle for an ownership-taking API.
6676
+ *
6677
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6678
+ * handle must remain usable.
6679
+ * @returns {WasmImageUrl}
6680
+ */
6681
+ copyForTransfer() {
6682
+ const ret = wasm.wasmimageurl_copyForTransfer(this.__wbg_ptr);
6683
+ return WasmImageUrl.__wrap(ret);
6684
+ }
6146
6685
  /**
6147
6686
  * @returns {WasmImageUrl}
6148
6687
  */
@@ -6226,6 +6765,17 @@ export class WasmImagesResponse {
6226
6765
  const ptr = this.__destroy_into_raw();
6227
6766
  wasm.__wbg_wasmimagesresponse_free(ptr, 0);
6228
6767
  }
6768
+ /**
6769
+ * Return an independent handle for an ownership-taking API.
6770
+ *
6771
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6772
+ * handle must remain usable.
6773
+ * @returns {WasmImagesResponse}
6774
+ */
6775
+ copyForTransfer() {
6776
+ const ret = wasm.wasmimagesresponse_copyForTransfer(this.__wbg_ptr);
6777
+ return WasmImagesResponse.__wrap(ret);
6778
+ }
6229
6779
  /**
6230
6780
  * @returns {bigint}
6231
6781
  */
@@ -6234,6 +6784,10 @@ export class WasmImagesResponse {
6234
6784
  return BigInt.asUintN(64, ret);
6235
6785
  }
6236
6786
  /**
6787
+ * Returns detached copies of the elements in `data`.
6788
+ *
6789
+ * Changes to the returned values do not update this object. Modify the copies,
6790
+ * then assign the array back to `data`.
6237
6791
  * @returns {WasmImage[]}
6238
6792
  */
6239
6793
  get data() {
@@ -6250,6 +6804,9 @@ export class WasmImagesResponse {
6250
6804
  return WasmImagesResponse.__wrap(ret);
6251
6805
  }
6252
6806
  /**
6807
+ * Takes ownership of every element in `data`.
6808
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
6809
+ * copy each retained element with `copyForTransfer()` before passing the array.
6253
6810
  * @param {bigint | null} [created]
6254
6811
  * @param {WasmImage[] | null} [data]
6255
6812
  */
@@ -6268,6 +6825,9 @@ export class WasmImagesResponse {
6268
6825
  wasm.wasmimagesresponse_set_created(this.__wbg_ptr, value);
6269
6826
  }
6270
6827
  /**
6828
+ * Takes ownership of every element in `data`.
6829
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
6830
+ * element with `copyForTransfer()` before passing the array.
6271
6831
  * @param {WasmImage[]} value
6272
6832
  */
6273
6833
  set data(value) {
@@ -6298,6 +6858,17 @@ export class WasmJsonSchemaFormat {
6298
6858
  const ptr = this.__destroy_into_raw();
6299
6859
  wasm.__wbg_wasmjsonschemaformat_free(ptr, 0);
6300
6860
  }
6861
+ /**
6862
+ * Return an independent handle for an ownership-taking API.
6863
+ *
6864
+ * Use `copyForTransfer()` for each class value placed in an array when the original
6865
+ * handle must remain usable.
6866
+ * @returns {WasmJsonSchemaFormat}
6867
+ */
6868
+ copyForTransfer() {
6869
+ const ret = wasm.wasmjsonschemaformat_copyForTransfer(this.__wbg_ptr);
6870
+ return WasmJsonSchemaFormat.__wrap(ret);
6871
+ }
6301
6872
  /**
6302
6873
  * @returns {WasmJsonSchemaFormat}
6303
6874
  */
@@ -6394,7 +6965,7 @@ export class WasmJsonSchemaFormat {
6394
6965
  if (Symbol.dispose) WasmJsonSchemaFormat.prototype[Symbol.dispose] = WasmJsonSchemaFormat.prototype.free;
6395
6966
 
6396
6967
  /**
6397
- * Opaque WASM handle for [`liter_llm::error::LiterLlmError`] that exposes introspection methods.
6968
+ * Opaque WASM handle for [`liter_llm::LiterLlmError`] that exposes introspection methods.
6398
6969
  */
6399
6970
  export class WasmLiterLlmError {
6400
6971
  __destroy_into_raw() {
@@ -6431,6 +7002,14 @@ export class WasmLiterLlmError {
6431
7002
  const ret = wasm.wasmliterllmerror_isTransient(this.__wbg_ptr);
6432
7003
  return ret !== 0;
6433
7004
  }
7005
+ /**
7006
+ * `retry_after` in whole milliseconds (undefined when absent).
7007
+ * @returns {bigint | undefined}
7008
+ */
7009
+ retryAfter() {
7010
+ const ret = wasm.wasmliterllmerror_retryAfter(this.__wbg_ptr);
7011
+ return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
7012
+ }
6434
7013
  /**
6435
7014
  * HTTP status code for this error variant.
6436
7015
  * @returns {number}
@@ -6462,6 +7041,17 @@ export class WasmLlmBudgetConfig {
6462
7041
  const ptr = this.__destroy_into_raw();
6463
7042
  wasm.__wbg_wasmllmbudgetconfig_free(ptr, 0);
6464
7043
  }
7044
+ /**
7045
+ * Return an independent handle for an ownership-taking API.
7046
+ *
7047
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7048
+ * handle must remain usable.
7049
+ * @returns {WasmLlmBudgetConfig}
7050
+ */
7051
+ copyForTransfer() {
7052
+ const ret = wasm.wasmllmbudgetconfig_copyForTransfer(this.__wbg_ptr);
7053
+ return WasmLlmBudgetConfig.__wrap(ret);
7054
+ }
6465
7055
  /**
6466
7056
  * @returns {WasmLlmBudgetConfig}
6467
7057
  */
@@ -6570,6 +7160,17 @@ export class WasmLlmCacheConfig {
6570
7160
  }
6571
7161
  return v1;
6572
7162
  }
7163
+ /**
7164
+ * Return an independent handle for an ownership-taking API.
7165
+ *
7166
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7167
+ * handle must remain usable.
7168
+ * @returns {WasmLlmCacheConfig}
7169
+ */
7170
+ copyForTransfer() {
7171
+ const ret = wasm.wasmllmcacheconfig_copyForTransfer(this.__wbg_ptr);
7172
+ return WasmLlmCacheConfig.__wrap(ret);
7173
+ }
6573
7174
  /**
6574
7175
  * @returns {WasmLlmCacheConfig}
6575
7176
  */
@@ -6692,6 +7293,10 @@ export class WasmLlmConfig {
6692
7293
  return v1;
6693
7294
  }
6694
7295
  /**
7296
+ * Returns a detached copy of `bedrock`.
7297
+ *
7298
+ * Changes to the returned value do not update this object. To update `bedrock`,
7299
+ * read it, modify the copy, then assign the copy back to `bedrock`.
6695
7300
  * @returns {WasmBedrockConfig | undefined}
6696
7301
  */
6697
7302
  get bedrock() {
@@ -6699,6 +7304,10 @@ export class WasmLlmConfig {
6699
7304
  return ret === 0 ? undefined : WasmBedrockConfig.__wrap(ret);
6700
7305
  }
6701
7306
  /**
7307
+ * Returns a detached copy of `budget`.
7308
+ *
7309
+ * Changes to the returned value do not update this object. To update `budget`,
7310
+ * read it, modify the copy, then assign the copy back to `budget`.
6702
7311
  * @returns {WasmLlmBudgetConfig | undefined}
6703
7312
  */
6704
7313
  get budget() {
@@ -6706,12 +7315,31 @@ export class WasmLlmConfig {
6706
7315
  return ret === 0 ? undefined : WasmLlmBudgetConfig.__wrap(ret);
6707
7316
  }
6708
7317
  /**
7318
+ * Returns a detached copy of `cache`.
7319
+ *
7320
+ * Changes to the returned value do not update this object. To update `cache`,
7321
+ * read it, modify the copy, then assign the copy back to `cache`.
6709
7322
  * @returns {WasmLlmCacheConfig | undefined}
6710
7323
  */
6711
7324
  get cache() {
6712
7325
  const ret = wasm.wasmllmconfig_cache(this.__wbg_ptr);
6713
7326
  return ret === 0 ? undefined : WasmLlmCacheConfig.__wrap(ret);
6714
7327
  }
7328
+ clearBedrock() {
7329
+ wasm.wasmllmconfig_clearBedrock(this.__wbg_ptr);
7330
+ }
7331
+ clearBudget() {
7332
+ wasm.wasmllmconfig_clearBudget(this.__wbg_ptr);
7333
+ }
7334
+ clearCache() {
7335
+ wasm.wasmllmconfig_clearCache(this.__wbg_ptr);
7336
+ }
7337
+ clearInFlightLimit() {
7338
+ wasm.wasmllmconfig_clearInFlightLimit(this.__wbg_ptr);
7339
+ }
7340
+ clearRateLimit() {
7341
+ wasm.wasmllmconfig_clearRateLimit(this.__wbg_ptr);
7342
+ }
6715
7343
  /**
6716
7344
  * @returns {bigint | undefined}
6717
7345
  */
@@ -6719,6 +7347,17 @@ export class WasmLlmConfig {
6719
7347
  const ret = wasm.wasmllmconfig_cooldownSecs(this.__wbg_ptr);
6720
7348
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
6721
7349
  }
7350
+ /**
7351
+ * Return an independent handle for an ownership-taking API.
7352
+ *
7353
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7354
+ * handle must remain usable.
7355
+ * @returns {WasmLlmConfig}
7356
+ */
7357
+ copyForTransfer() {
7358
+ const ret = wasm.wasmllmconfig_copyForTransfer(this.__wbg_ptr);
7359
+ return WasmLlmConfig.__wrap(ret);
7360
+ }
6722
7361
  /**
6723
7362
  * @returns {boolean | undefined}
6724
7363
  */
@@ -6748,6 +7387,10 @@ export class WasmLlmConfig {
6748
7387
  return ret[0] === 0 ? undefined : BigInt.asUintN(64, ret[1]);
6749
7388
  }
6750
7389
  /**
7390
+ * Returns a detached copy of `inFlightLimit`.
7391
+ *
7392
+ * Changes to the returned value do not update this object. To update `inFlightLimit`,
7393
+ * read it, modify the copy, then assign the copy back to `inFlightLimit`.
6751
7394
  * @returns {WasmLlmInFlightLimitConfig | undefined}
6752
7395
  */
6753
7396
  get inFlightLimit() {
@@ -6791,6 +7434,14 @@ export class WasmLlmConfig {
6791
7434
  }
6792
7435
  }
6793
7436
  /**
7437
+ * Takes ownership of `cache`, `budget`, `rateLimit`, `inFlightLimit`, `bedrock`.
7438
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
7439
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
7440
+ * keep a handle you already hold, build with `default()` and assign the property instead:
7441
+ * the generated setter borrows and leaves your handle alive.
7442
+ * Takes ownership of every element in `providers`.
7443
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
7444
+ * copy each retained element with `copyForTransfer()` before passing the array.
6794
7445
  * @param {string | null} [model]
6795
7446
  * @param {string | null} [apiKey]
6796
7447
  * @param {string | null} [baseUrl]
@@ -6851,6 +7502,10 @@ export class WasmLlmConfig {
6851
7502
  return this;
6852
7503
  }
6853
7504
  /**
7505
+ * Returns detached copies of the elements in `providers`.
7506
+ *
7507
+ * Changes to the returned values do not update this object. Modify the copies,
7508
+ * then assign the array back to `providers`.
6854
7509
  * @returns {Array<any> | undefined}
6855
7510
  */
6856
7511
  get providers() {
@@ -6858,6 +7513,10 @@ export class WasmLlmConfig {
6858
7513
  return ret;
6859
7514
  }
6860
7515
  /**
7516
+ * Returns a detached copy of `rateLimit`.
7517
+ *
7518
+ * Changes to the returned value do not update this object. To update `rateLimit`,
7519
+ * read it, modify the copy, then assign the copy back to `rateLimit`.
6861
7520
  * @returns {WasmLlmRateLimitConfig | undefined}
6862
7521
  */
6863
7522
  get rateLimit() {
@@ -6881,37 +7540,25 @@ export class WasmLlmConfig {
6881
7540
  wasm.wasmllmconfig_set_baseUrl(this.__wbg_ptr, ptr0, len0);
6882
7541
  }
6883
7542
  /**
6884
- * @param {WasmBedrockConfig | null} [value]
7543
+ * @param {WasmBedrockConfig} value
6885
7544
  */
6886
7545
  set bedrock(value) {
6887
- let ptr0 = 0;
6888
- if (!isLikeNone(value)) {
6889
- _assertClass(value, WasmBedrockConfig);
6890
- ptr0 = value.__destroy_into_raw();
6891
- }
6892
- wasm.wasmllmconfig_set_bedrock(this.__wbg_ptr, ptr0);
7546
+ _assertClass(value, WasmBedrockConfig);
7547
+ wasm.wasmllmconfig_set_bedrock(this.__wbg_ptr, value.__wbg_ptr);
6893
7548
  }
6894
7549
  /**
6895
- * @param {WasmLlmBudgetConfig | null} [value]
7550
+ * @param {WasmLlmBudgetConfig} value
6896
7551
  */
6897
7552
  set budget(value) {
6898
- let ptr0 = 0;
6899
- if (!isLikeNone(value)) {
6900
- _assertClass(value, WasmLlmBudgetConfig);
6901
- ptr0 = value.__destroy_into_raw();
6902
- }
6903
- wasm.wasmllmconfig_set_budget(this.__wbg_ptr, ptr0);
7553
+ _assertClass(value, WasmLlmBudgetConfig);
7554
+ wasm.wasmllmconfig_set_budget(this.__wbg_ptr, value.__wbg_ptr);
6904
7555
  }
6905
7556
  /**
6906
- * @param {WasmLlmCacheConfig | null} [value]
7557
+ * @param {WasmLlmCacheConfig} value
6907
7558
  */
6908
7559
  set cache(value) {
6909
- let ptr0 = 0;
6910
- if (!isLikeNone(value)) {
6911
- _assertClass(value, WasmLlmCacheConfig);
6912
- ptr0 = value.__destroy_into_raw();
6913
- }
6914
- wasm.wasmllmconfig_set_cache(this.__wbg_ptr, ptr0);
7560
+ _assertClass(value, WasmLlmCacheConfig);
7561
+ wasm.wasmllmconfig_set_cache(this.__wbg_ptr, value.__wbg_ptr);
6915
7562
  }
6916
7563
  /**
6917
7564
  * @param {bigint | null} [value]
@@ -6938,15 +7585,11 @@ export class WasmLlmConfig {
6938
7585
  wasm.wasmllmconfig_set_healthCheckSecs(this.__wbg_ptr, !isLikeNone(value), isLikeNone(value) ? BigInt(0) : value);
6939
7586
  }
6940
7587
  /**
6941
- * @param {WasmLlmInFlightLimitConfig | null} [value]
7588
+ * @param {WasmLlmInFlightLimitConfig} value
6942
7589
  */
6943
7590
  set inFlightLimit(value) {
6944
- let ptr0 = 0;
6945
- if (!isLikeNone(value)) {
6946
- _assertClass(value, WasmLlmInFlightLimitConfig);
6947
- ptr0 = value.__destroy_into_raw();
6948
- }
6949
- wasm.wasmllmconfig_set_inFlightLimit(this.__wbg_ptr, ptr0);
7591
+ _assertClass(value, WasmLlmInFlightLimitConfig);
7592
+ wasm.wasmllmconfig_set_inFlightLimit(this.__wbg_ptr, value.__wbg_ptr);
6950
7593
  }
6951
7594
  /**
6952
7595
  * @param {boolean | null} [value]
@@ -6975,6 +7618,9 @@ export class WasmLlmConfig {
6975
7618
  wasm.wasmllmconfig_set_model(this.__wbg_ptr, ptr0, len0);
6976
7619
  }
6977
7620
  /**
7621
+ * Takes ownership of every element in `providers`.
7622
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
7623
+ * element with `copyForTransfer()` before passing the array.
6978
7624
  * @param {WasmLlmProviderConfig[] | null} [value]
6979
7625
  */
6980
7626
  set providers(value) {
@@ -6983,15 +7629,11 @@ export class WasmLlmConfig {
6983
7629
  wasm.wasmllmconfig_set_providers(this.__wbg_ptr, ptr0, len0);
6984
7630
  }
6985
7631
  /**
6986
- * @param {WasmLlmRateLimitConfig | null} [value]
7632
+ * @param {WasmLlmRateLimitConfig} value
6987
7633
  */
6988
7634
  set rateLimit(value) {
6989
- let ptr0 = 0;
6990
- if (!isLikeNone(value)) {
6991
- _assertClass(value, WasmLlmRateLimitConfig);
6992
- ptr0 = value.__destroy_into_raw();
6993
- }
6994
- wasm.wasmllmconfig_set_rateLimit(this.__wbg_ptr, ptr0);
7635
+ _assertClass(value, WasmLlmRateLimitConfig);
7636
+ wasm.wasmllmconfig_set_rateLimit(this.__wbg_ptr, value.__wbg_ptr);
6995
7637
  }
6996
7638
  /**
6997
7639
  * @param {number | null} [value]
@@ -7055,6 +7697,17 @@ export class WasmLlmInFlightLimitConfig {
7055
7697
  const ptr = this.__destroy_into_raw();
7056
7698
  wasm.__wbg_wasmllminflightlimitconfig_free(ptr, 0);
7057
7699
  }
7700
+ /**
7701
+ * Return an independent handle for an ownership-taking API.
7702
+ *
7703
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7704
+ * handle must remain usable.
7705
+ * @returns {WasmLlmInFlightLimitConfig}
7706
+ */
7707
+ copyForTransfer() {
7708
+ const ret = wasm.wasmllminflightlimitconfig_copyForTransfer(this.__wbg_ptr);
7709
+ return WasmLlmInFlightLimitConfig.__wrap(ret);
7710
+ }
7058
7711
  /**
7059
7712
  * @returns {WasmLlmInFlightLimitConfig}
7060
7713
  */
@@ -7140,6 +7793,17 @@ export class WasmLlmProviderConfig {
7140
7793
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
7141
7794
  }
7142
7795
  }
7796
+ /**
7797
+ * Return an independent handle for an ownership-taking API.
7798
+ *
7799
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7800
+ * handle must remain usable.
7801
+ * @returns {WasmLlmProviderConfig}
7802
+ */
7803
+ copyForTransfer() {
7804
+ const ret = wasm.wasmllmproviderconfig_copyForTransfer(this.__wbg_ptr);
7805
+ return WasmLlmProviderConfig.__wrap(ret);
7806
+ }
7143
7807
  /**
7144
7808
  * @returns {WasmLlmProviderConfig}
7145
7809
  */
@@ -7246,6 +7910,17 @@ export class WasmLlmRateLimitConfig {
7246
7910
  const ptr = this.__destroy_into_raw();
7247
7911
  wasm.__wbg_wasmllmratelimitconfig_free(ptr, 0);
7248
7912
  }
7913
+ /**
7914
+ * Return an independent handle for an ownership-taking API.
7915
+ *
7916
+ * Use `copyForTransfer()` for each class value placed in an array when the original
7917
+ * handle must remain usable.
7918
+ * @returns {WasmLlmRateLimitConfig}
7919
+ */
7920
+ copyForTransfer() {
7921
+ const ret = wasm.wasmllmratelimitconfig_copyForTransfer(this.__wbg_ptr);
7922
+ return WasmLlmRateLimitConfig.__wrap(ret);
7923
+ }
7249
7924
  /**
7250
7925
  * @returns {WasmLlmRateLimitConfig}
7251
7926
  */
@@ -7360,6 +8035,17 @@ export class WasmModelInfo {
7360
8035
  const ret = wasm.wasmmodelinfo_cacheReadInputTokenCost(this.__wbg_ptr);
7361
8036
  return ret[0] === 0 ? undefined : ret[1];
7362
8037
  }
8038
+ /**
8039
+ * Return an independent handle for an ownership-taking API.
8040
+ *
8041
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8042
+ * handle must remain usable.
8043
+ * @returns {WasmModelInfo}
8044
+ */
8045
+ copyForTransfer() {
8046
+ const ret = wasm.wasmmodelinfo_copyForTransfer(this.__wbg_ptr);
8047
+ return WasmModelInfo.__wrap(ret);
8048
+ }
7363
8049
  /**
7364
8050
  * @returns {WasmModelInfo}
7365
8051
  */
@@ -7415,6 +8101,9 @@ export class WasmModelInfo {
7415
8101
  return v1;
7416
8102
  }
7417
8103
  /**
8104
+ * Takes ownership of every element in `tiers`.
8105
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
8106
+ * copy each retained element with `copyForTransfer()` before passing the array.
7418
8107
  * @param {number | null} [inputCostPerToken]
7419
8108
  * @param {number | null} [outputCostPerToken]
7420
8109
  * @param {WasmModelTier[] | null} [tiers]
@@ -7577,6 +8266,9 @@ export class WasmModelInfo {
7577
8266
  wasm.wasmmodelinfo_set_supportsVision(this.__wbg_ptr, isLikeNone(value) ? 0xFFFFFF : value ? 1 : 0);
7578
8267
  }
7579
8268
  /**
8269
+ * Takes ownership of every element in `tiers`.
8270
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8271
+ * element with `copyForTransfer()` before passing the array.
7580
8272
  * @param {WasmModelTier[]} value
7581
8273
  */
7582
8274
  set tiers(value) {
@@ -7634,6 +8326,10 @@ export class WasmModelInfo {
7634
8326
  return ret === 0xFFFFFF ? undefined : ret !== 0;
7635
8327
  }
7636
8328
  /**
8329
+ * Returns detached copies of the elements in `tiers`.
8330
+ *
8331
+ * Changes to the returned values do not update this object. Modify the copies,
8332
+ * then assign the array back to `tiers`.
7637
8333
  * @returns {WasmModelTier[]}
7638
8334
  */
7639
8335
  get tiers() {
@@ -7671,6 +8367,17 @@ export class WasmModelObject {
7671
8367
  const ptr = this.__destroy_into_raw();
7672
8368
  wasm.__wbg_wasmmodelobject_free(ptr, 0);
7673
8369
  }
8370
+ /**
8371
+ * Return an independent handle for an ownership-taking API.
8372
+ *
8373
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8374
+ * handle must remain usable.
8375
+ * @returns {WasmModelObject}
8376
+ */
8377
+ copyForTransfer() {
8378
+ const ret = wasm.wasmmodelobject_copyForTransfer(this.__wbg_ptr);
8379
+ return WasmModelObject.__wrap(ret);
8380
+ }
7674
8381
  /**
7675
8382
  * @returns {bigint}
7676
8383
  */
@@ -7822,6 +8529,17 @@ export class WasmModelTier {
7822
8529
  const ret = wasm.wasmmodeltier_cacheReadInputTokenCost(this.__wbg_ptr);
7823
8530
  return ret[0] === 0 ? undefined : ret[1];
7824
8531
  }
8532
+ /**
8533
+ * Return an independent handle for an ownership-taking API.
8534
+ *
8535
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8536
+ * handle must remain usable.
8537
+ * @returns {WasmModelTier}
8538
+ */
8539
+ copyForTransfer() {
8540
+ const ret = wasm.wasmmodeltier_copyForTransfer(this.__wbg_ptr);
8541
+ return WasmModelTier.__wrap(ret);
8542
+ }
7825
8543
  /**
7826
8544
  * @returns {WasmModelTier}
7827
8545
  */
@@ -7959,6 +8677,21 @@ export class WasmModelsListResponse {
7959
8677
  wasm.__wbg_wasmmodelslistresponse_free(ptr, 0);
7960
8678
  }
7961
8679
  /**
8680
+ * Return an independent handle for an ownership-taking API.
8681
+ *
8682
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8683
+ * handle must remain usable.
8684
+ * @returns {WasmModelsListResponse}
8685
+ */
8686
+ copyForTransfer() {
8687
+ const ret = wasm.wasmmodelslistresponse_copyForTransfer(this.__wbg_ptr);
8688
+ return WasmModelsListResponse.__wrap(ret);
8689
+ }
8690
+ /**
8691
+ * Returns detached copies of the elements in `data`.
8692
+ *
8693
+ * Changes to the returned values do not update this object. Modify the copies,
8694
+ * then assign the array back to `data`.
7962
8695
  * @returns {WasmModelObject[]}
7963
8696
  */
7964
8697
  get data() {
@@ -7975,6 +8708,9 @@ export class WasmModelsListResponse {
7975
8708
  return WasmModelsListResponse.__wrap(ret);
7976
8709
  }
7977
8710
  /**
8711
+ * Takes ownership of every element in `data`.
8712
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
8713
+ * copy each retained element with `copyForTransfer()` before passing the array.
7978
8714
  * @param {string | null} [object]
7979
8715
  * @param {WasmModelObject[] | null} [data]
7980
8716
  */
@@ -8004,6 +8740,9 @@ export class WasmModelsListResponse {
8004
8740
  }
8005
8741
  }
8006
8742
  /**
8743
+ * Takes ownership of every element in `data`.
8744
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
8745
+ * element with `copyForTransfer()` before passing the array.
8007
8746
  * @param {WasmModelObject[]} value
8008
8747
  */
8009
8748
  set data(value) {
@@ -8042,6 +8781,17 @@ export class WasmModerationCategories {
8042
8781
  const ptr = this.__destroy_into_raw();
8043
8782
  wasm.__wbg_wasmmoderationcategories_free(ptr, 0);
8044
8783
  }
8784
+ /**
8785
+ * Return an independent handle for an ownership-taking API.
8786
+ *
8787
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8788
+ * handle must remain usable.
8789
+ * @returns {WasmModerationCategories}
8790
+ */
8791
+ copyForTransfer() {
8792
+ const ret = wasm.wasmmoderationcategories_copyForTransfer(this.__wbg_ptr);
8793
+ return WasmModerationCategories.__wrap(ret);
8794
+ }
8045
8795
  /**
8046
8796
  * @returns {WasmModerationCategories}
8047
8797
  */
@@ -8234,6 +8984,17 @@ export class WasmModerationCategoryScores {
8234
8984
  const ptr = this.__destroy_into_raw();
8235
8985
  wasm.__wbg_wasmmoderationcategoryscores_free(ptr, 0);
8236
8986
  }
8987
+ /**
8988
+ * Return an independent handle for an ownership-taking API.
8989
+ *
8990
+ * Use `copyForTransfer()` for each class value placed in an array when the original
8991
+ * handle must remain usable.
8992
+ * @returns {WasmModerationCategoryScores}
8993
+ */
8994
+ copyForTransfer() {
8995
+ const ret = wasm.wasmmoderationcategoryscores_copyForTransfer(this.__wbg_ptr);
8996
+ return WasmModerationCategoryScores.__wrap(ret);
8997
+ }
8237
8998
  /**
8238
8999
  * @returns {WasmModerationCategoryScores}
8239
9000
  */
@@ -8426,6 +9187,17 @@ export class WasmModerationRequest {
8426
9187
  const ptr = this.__destroy_into_raw();
8427
9188
  wasm.__wbg_wasmmoderationrequest_free(ptr, 0);
8428
9189
  }
9190
+ /**
9191
+ * Return an independent handle for an ownership-taking API.
9192
+ *
9193
+ * Use `copyForTransfer()` for each class value placed in an array when the original
9194
+ * handle must remain usable.
9195
+ * @returns {WasmModerationRequest}
9196
+ */
9197
+ copyForTransfer() {
9198
+ const ret = wasm.wasmmoderationrequest_copyForTransfer(this.__wbg_ptr);
9199
+ return WasmModerationRequest.__wrap(ret);
9200
+ }
8429
9201
  /**
8430
9202
  * @returns {WasmModerationRequest}
8431
9203
  */
@@ -8501,6 +9273,17 @@ export class WasmModerationResponse {
8501
9273
  const ptr = this.__destroy_into_raw();
8502
9274
  wasm.__wbg_wasmmoderationresponse_free(ptr, 0);
8503
9275
  }
9276
+ /**
9277
+ * Return an independent handle for an ownership-taking API.
9278
+ *
9279
+ * Use `copyForTransfer()` for each class value placed in an array when the original
9280
+ * handle must remain usable.
9281
+ * @returns {WasmModerationResponse}
9282
+ */
9283
+ copyForTransfer() {
9284
+ const ret = wasm.wasmmoderationresponse_copyForTransfer(this.__wbg_ptr);
9285
+ return WasmModerationResponse.__wrap(ret);
9286
+ }
8504
9287
  /**
8505
9288
  * @returns {WasmModerationResponse}
8506
9289
  */
@@ -8539,6 +9322,9 @@ export class WasmModerationResponse {
8539
9322
  }
8540
9323
  }
8541
9324
  /**
9325
+ * Takes ownership of every element in `results`.
9326
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
9327
+ * copy each retained element with `copyForTransfer()` before passing the array.
8542
9328
  * @param {string} id
8543
9329
  * @param {string} model
8544
9330
  * @param {WasmModerationResult[]} results
@@ -8556,6 +9342,10 @@ export class WasmModerationResponse {
8556
9342
  return this;
8557
9343
  }
8558
9344
  /**
9345
+ * Returns detached copies of the elements in `results`.
9346
+ *
9347
+ * Changes to the returned values do not update this object. Modify the copies,
9348
+ * then assign the array back to `results`.
8559
9349
  * @returns {WasmModerationResult[]}
8560
9350
  */
8561
9351
  get results() {
@@ -8581,6 +9371,9 @@ export class WasmModerationResponse {
8581
9371
  wasm.wasmmoderationresponse_set_model(this.__wbg_ptr, ptr0, len0);
8582
9372
  }
8583
9373
  /**
9374
+ * Takes ownership of every element in `results`.
9375
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
9376
+ * element with `copyForTransfer()` before passing the array.
8584
9377
  * @param {WasmModerationResult[]} value
8585
9378
  */
8586
9379
  set results(value) {
@@ -8618,6 +9411,10 @@ export class WasmModerationResult {
8618
9411
  wasm.__wbg_wasmmoderationresult_free(ptr, 0);
8619
9412
  }
8620
9413
  /**
9414
+ * Returns a detached copy of `categories`.
9415
+ *
9416
+ * Changes to the returned value do not update this object. To update `categories`,
9417
+ * read it, modify the copy, then assign the copy back to `categories`.
8621
9418
  * @returns {WasmModerationCategories}
8622
9419
  */
8623
9420
  get categories() {
@@ -8625,12 +9422,27 @@ export class WasmModerationResult {
8625
9422
  return WasmModerationCategories.__wrap(ret);
8626
9423
  }
8627
9424
  /**
9425
+ * Returns a detached copy of `categoryScores`.
9426
+ *
9427
+ * Changes to the returned value do not update this object. To update `categoryScores`,
9428
+ * read it, modify the copy, then assign the copy back to `categoryScores`.
8628
9429
  * @returns {WasmModerationCategoryScores}
8629
9430
  */
8630
9431
  get categoryScores() {
8631
9432
  const ret = wasm.wasmmoderationresult_categoryScores(this.__wbg_ptr);
8632
9433
  return WasmModerationCategoryScores.__wrap(ret);
8633
9434
  }
9435
+ /**
9436
+ * Return an independent handle for an ownership-taking API.
9437
+ *
9438
+ * Use `copyForTransfer()` for each class value placed in an array when the original
9439
+ * handle must remain usable.
9440
+ * @returns {WasmModerationResult}
9441
+ */
9442
+ copyForTransfer() {
9443
+ const ret = wasm.wasmmoderationresult_copyForTransfer(this.__wbg_ptr);
9444
+ return WasmModerationResult.__wrap(ret);
9445
+ }
8634
9446
  /**
8635
9447
  * @returns {WasmModerationResult}
8636
9448
  */
@@ -8652,10 +9464,8 @@ export class WasmModerationResult {
8652
9464
  */
8653
9465
  constructor(flagged, categories, categoryScores) {
8654
9466
  _assertClass(categories, WasmModerationCategories);
8655
- var ptr0 = categories.__destroy_into_raw();
8656
9467
  _assertClass(categoryScores, WasmModerationCategoryScores);
8657
- var ptr1 = categoryScores.__destroy_into_raw();
8658
- const ret = wasm.wasmmoderationresult_new(flagged, ptr0, ptr1);
9468
+ const ret = wasm.wasmmoderationresult_new(flagged, categories.__wbg_ptr, categoryScores.__wbg_ptr);
8659
9469
  this.__wbg_ptr = ret;
8660
9470
  WasmModerationResultFinalization.register(this, this.__wbg_ptr, this);
8661
9471
  return this;
@@ -8665,16 +9475,14 @@ export class WasmModerationResult {
8665
9475
  */
8666
9476
  set categories(value) {
8667
9477
  _assertClass(value, WasmModerationCategories);
8668
- var ptr0 = value.__destroy_into_raw();
8669
- wasm.wasmmoderationresult_set_categories(this.__wbg_ptr, ptr0);
9478
+ wasm.wasmmoderationresult_set_categories(this.__wbg_ptr, value.__wbg_ptr);
8670
9479
  }
8671
9480
  /**
8672
9481
  * @param {WasmModerationCategoryScores} value
8673
9482
  */
8674
9483
  set categoryScores(value) {
8675
9484
  _assertClass(value, WasmModerationCategoryScores);
8676
- var ptr0 = value.__destroy_into_raw();
8677
- wasm.wasmmoderationresult_set_categoryScores(this.__wbg_ptr, ptr0);
9485
+ wasm.wasmmoderationresult_set_categoryScores(this.__wbg_ptr, value.__wbg_ptr);
8678
9486
  }
8679
9487
  /**
8680
9488
  * @param {boolean} value
@@ -8830,6 +9638,17 @@ export class WasmOcrImage {
8830
9638
  const ptr = this.__destroy_into_raw();
8831
9639
  wasm.__wbg_wasmocrimage_free(ptr, 0);
8832
9640
  }
9641
+ /**
9642
+ * Return an independent handle for an ownership-taking API.
9643
+ *
9644
+ * Use `copyForTransfer()` for each class value placed in an array when the original
9645
+ * handle must remain usable.
9646
+ * @returns {WasmOcrImage}
9647
+ */
9648
+ copyForTransfer() {
9649
+ const ret = wasm.wasmocrimage_copyForTransfer(this.__wbg_ptr);
9650
+ return WasmOcrImage.__wrap(ret);
9651
+ }
8833
9652
  /**
8834
9653
  * @returns {WasmOcrImage}
8835
9654
  */
@@ -8923,6 +9742,20 @@ export class WasmOcrPage {
8923
9742
  const ptr = this.__destroy_into_raw();
8924
9743
  wasm.__wbg_wasmocrpage_free(ptr, 0);
8925
9744
  }
9745
+ clearDimensions() {
9746
+ wasm.wasmocrpage_clearDimensions(this.__wbg_ptr);
9747
+ }
9748
+ /**
9749
+ * Return an independent handle for an ownership-taking API.
9750
+ *
9751
+ * Use `copyForTransfer()` for each class value placed in an array when the original
9752
+ * handle must remain usable.
9753
+ * @returns {WasmOcrPage}
9754
+ */
9755
+ copyForTransfer() {
9756
+ const ret = wasm.wasmocrpage_copyForTransfer(this.__wbg_ptr);
9757
+ return WasmOcrPage.__wrap(ret);
9758
+ }
8926
9759
  /**
8927
9760
  * @returns {WasmOcrPage}
8928
9761
  */
@@ -8931,6 +9764,10 @@ export class WasmOcrPage {
8931
9764
  return WasmOcrPage.__wrap(ret);
8932
9765
  }
8933
9766
  /**
9767
+ * Returns a detached copy of `dimensions`.
9768
+ *
9769
+ * Changes to the returned value do not update this object. To update `dimensions`,
9770
+ * read it, modify the copy, then assign the copy back to `dimensions`.
8934
9771
  * @returns {WasmPageDimensions | undefined}
8935
9772
  */
8936
9773
  get dimensions() {
@@ -8938,6 +9775,10 @@ export class WasmOcrPage {
8938
9775
  return ret === 0 ? undefined : WasmPageDimensions.__wrap(ret);
8939
9776
  }
8940
9777
  /**
9778
+ * Returns detached copies of the elements in `images`.
9779
+ *
9780
+ * Changes to the returned values do not update this object. Modify the copies,
9781
+ * then assign the array back to `images`.
8941
9782
  * @returns {Array<any> | undefined}
8942
9783
  */
8943
9784
  get images() {
@@ -8967,6 +9808,14 @@ export class WasmOcrPage {
8967
9808
  }
8968
9809
  }
8969
9810
  /**
9811
+ * Takes ownership of `dimensions`.
9812
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
9813
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
9814
+ * keep a handle you already hold, build with `default()` and assign the property instead:
9815
+ * the generated setter borrows and leaves your handle alive.
9816
+ * Takes ownership of every element in `images`.
9817
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
9818
+ * copy each retained element with `copyForTransfer()` before passing the array.
8970
9819
  * @param {number} index
8971
9820
  * @param {string} markdown
8972
9821
  * @param {WasmOcrImage[] | null} [images]
@@ -8988,17 +9837,16 @@ export class WasmOcrPage {
8988
9837
  return this;
8989
9838
  }
8990
9839
  /**
8991
- * @param {WasmPageDimensions | null} [value]
9840
+ * @param {WasmPageDimensions} value
8992
9841
  */
8993
9842
  set dimensions(value) {
8994
- let ptr0 = 0;
8995
- if (!isLikeNone(value)) {
8996
- _assertClass(value, WasmPageDimensions);
8997
- ptr0 = value.__destroy_into_raw();
8998
- }
8999
- wasm.wasmocrpage_set_dimensions(this.__wbg_ptr, ptr0);
9843
+ _assertClass(value, WasmPageDimensions);
9844
+ wasm.wasmocrpage_set_dimensions(this.__wbg_ptr, value.__wbg_ptr);
9000
9845
  }
9001
9846
  /**
9847
+ * Takes ownership of every element in `images`.
9848
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
9849
+ * element with `copyForTransfer()` before passing the array.
9002
9850
  * @param {WasmOcrImage[] | null} [value]
9003
9851
  */
9004
9852
  set images(value) {
@@ -9043,6 +9891,17 @@ export class WasmOcrRequest {
9043
9891
  const ptr = this.__destroy_into_raw();
9044
9892
  wasm.__wbg_wasmocrrequest_free(ptr, 0);
9045
9893
  }
9894
+ /**
9895
+ * Return an independent handle for an ownership-taking API.
9896
+ *
9897
+ * Use `copyForTransfer()` for each class value placed in an array when the original
9898
+ * handle must remain usable.
9899
+ * @returns {WasmOcrRequest}
9900
+ */
9901
+ copyForTransfer() {
9902
+ const ret = wasm.wasmocrrequest_copyForTransfer(this.__wbg_ptr);
9903
+ return WasmOcrRequest.__wrap(ret);
9904
+ }
9046
9905
  /**
9047
9906
  * @returns {WasmOcrRequest}
9048
9907
  */
@@ -9158,6 +10017,20 @@ export class WasmOcrResponse {
9158
10017
  const ptr = this.__destroy_into_raw();
9159
10018
  wasm.__wbg_wasmocrresponse_free(ptr, 0);
9160
10019
  }
10020
+ clearUsage() {
10021
+ wasm.wasmocrresponse_clearUsage(this.__wbg_ptr);
10022
+ }
10023
+ /**
10024
+ * Return an independent handle for an ownership-taking API.
10025
+ *
10026
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10027
+ * handle must remain usable.
10028
+ * @returns {WasmOcrResponse}
10029
+ */
10030
+ copyForTransfer() {
10031
+ const ret = wasm.wasmocrresponse_copyForTransfer(this.__wbg_ptr);
10032
+ return WasmOcrResponse.__wrap(ret);
10033
+ }
9161
10034
  /**
9162
10035
  * @returns {WasmOcrResponse}
9163
10036
  */
@@ -9181,6 +10054,14 @@ export class WasmOcrResponse {
9181
10054
  }
9182
10055
  }
9183
10056
  /**
10057
+ * Takes ownership of `usage`.
10058
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
10059
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
10060
+ * keep a handle you already hold, build with `default()` and assign the property instead:
10061
+ * the generated setter borrows and leaves your handle alive.
10062
+ * Takes ownership of every element in `pages`.
10063
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
10064
+ * copy each retained element with `copyForTransfer()` before passing the array.
9184
10065
  * @param {WasmOcrPage[]} pages
9185
10066
  * @param {string} model
9186
10067
  * @param {WasmUsage | null} [usage]
@@ -9201,6 +10082,10 @@ export class WasmOcrResponse {
9201
10082
  return this;
9202
10083
  }
9203
10084
  /**
10085
+ * Returns detached copies of the elements in `pages`.
10086
+ *
10087
+ * Changes to the returned values do not update this object. Modify the copies,
10088
+ * then assign the array back to `pages`.
9204
10089
  * @returns {WasmOcrPage[]}
9205
10090
  */
9206
10091
  get pages() {
@@ -9218,6 +10103,9 @@ export class WasmOcrResponse {
9218
10103
  wasm.wasmocrresponse_set_model(this.__wbg_ptr, ptr0, len0);
9219
10104
  }
9220
10105
  /**
10106
+ * Takes ownership of every element in `pages`.
10107
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
10108
+ * element with `copyForTransfer()` before passing the array.
9221
10109
  * @param {WasmOcrPage[]} value
9222
10110
  */
9223
10111
  set pages(value) {
@@ -9226,17 +10114,17 @@ export class WasmOcrResponse {
9226
10114
  wasm.wasmocrresponse_set_pages(this.__wbg_ptr, ptr0, len0);
9227
10115
  }
9228
10116
  /**
9229
- * @param {WasmUsage | null} [value]
10117
+ * @param {WasmUsage} value
9230
10118
  */
9231
10119
  set usage(value) {
9232
- let ptr0 = 0;
9233
- if (!isLikeNone(value)) {
9234
- _assertClass(value, WasmUsage);
9235
- ptr0 = value.__destroy_into_raw();
9236
- }
9237
- wasm.wasmocrresponse_set_usage(this.__wbg_ptr, ptr0);
10120
+ _assertClass(value, WasmUsage);
10121
+ wasm.wasmocrresponse_set_usage(this.__wbg_ptr, value.__wbg_ptr);
9238
10122
  }
9239
10123
  /**
10124
+ * Returns a detached copy of `usage`.
10125
+ *
10126
+ * Changes to the returned value do not update this object. To update `usage`,
10127
+ * read it, modify the copy, then assign the copy back to `usage`.
9240
10128
  * @returns {WasmUsage | undefined}
9241
10129
  */
9242
10130
  get usage() {
@@ -9266,6 +10154,17 @@ export class WasmPageDimensions {
9266
10154
  const ptr = this.__destroy_into_raw();
9267
10155
  wasm.__wbg_wasmpagedimensions_free(ptr, 0);
9268
10156
  }
10157
+ /**
10158
+ * Return an independent handle for an ownership-taking API.
10159
+ *
10160
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10161
+ * handle must remain usable.
10162
+ * @returns {WasmPageDimensions}
10163
+ */
10164
+ copyForTransfer() {
10165
+ const ret = wasm.wasmpagedimensions_copyForTransfer(this.__wbg_ptr);
10166
+ return WasmPageDimensions.__wrap(ret);
10167
+ }
9269
10168
  /**
9270
10169
  * @returns {WasmPageDimensions}
9271
10170
  */
@@ -9351,6 +10250,17 @@ export class WasmPromptTokensDetails {
9351
10250
  const ret = wasm.wasmprompttokensdetails_cachedTokens(this.__wbg_ptr);
9352
10251
  return BigInt.asUintN(64, ret);
9353
10252
  }
10253
+ /**
10254
+ * Return an independent handle for an ownership-taking API.
10255
+ *
10256
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10257
+ * handle must remain usable.
10258
+ * @returns {WasmPromptTokensDetails}
10259
+ */
10260
+ copyForTransfer() {
10261
+ const ret = wasm.wasmprompttokensdetails_copyForTransfer(this.__wbg_ptr);
10262
+ return WasmPromptTokensDetails.__wrap(ret);
10263
+ }
9354
10264
  /**
9355
10265
  * @returns {WasmPromptTokensDetails}
9356
10266
  */
@@ -9427,6 +10337,17 @@ export class WasmProviderCapabilities {
9427
10337
  const ret = wasm.wasmprovidercapabilities_audioOut(this.__wbg_ptr);
9428
10338
  return ret !== 0;
9429
10339
  }
10340
+ /**
10341
+ * Return an independent handle for an ownership-taking API.
10342
+ *
10343
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10344
+ * handle must remain usable.
10345
+ * @returns {WasmProviderCapabilities}
10346
+ */
10347
+ copyForTransfer() {
10348
+ const ret = wasm.wasmprovidercapabilities_copyForTransfer(this.__wbg_ptr);
10349
+ return WasmProviderCapabilities.__wrap(ret);
10350
+ }
9430
10351
  /**
9431
10352
  * @returns {WasmProviderCapabilities}
9432
10353
  */
@@ -9553,6 +10474,10 @@ export class WasmProviderConfig {
9553
10474
  wasm.__wbg_wasmproviderconfig_free(ptr, 0);
9554
10475
  }
9555
10476
  /**
10477
+ * Returns a detached copy of `auth`.
10478
+ *
10479
+ * Changes to the returned value do not update this object. To update `auth`,
10480
+ * read it, modify the copy, then assign the copy back to `auth`.
9556
10481
  * @returns {WasmAuthConfig | undefined}
9557
10482
  */
9558
10483
  get auth() {
@@ -9571,6 +10496,20 @@ export class WasmProviderConfig {
9571
10496
  }
9572
10497
  return v1;
9573
10498
  }
10499
+ clearAuth() {
10500
+ wasm.wasmproviderconfig_clearAuth(this.__wbg_ptr);
10501
+ }
10502
+ /**
10503
+ * Return an independent handle for an ownership-taking API.
10504
+ *
10505
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10506
+ * handle must remain usable.
10507
+ * @returns {WasmProviderConfig}
10508
+ */
10509
+ copyForTransfer() {
10510
+ const ret = wasm.wasmproviderconfig_copyForTransfer(this.__wbg_ptr);
10511
+ return WasmProviderConfig.__wrap(ret);
10512
+ }
9574
10513
  /**
9575
10514
  * @returns {WasmProviderConfig}
9576
10515
  */
@@ -9630,6 +10569,11 @@ export class WasmProviderConfig {
9630
10569
  }
9631
10570
  }
9632
10571
  /**
10572
+ * Takes ownership of `auth`.
10573
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
10574
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
10575
+ * keep a handle you already hold, build with `default()` and assign the property instead:
10576
+ * the generated setter borrows and leaves your handle alive.
9633
10577
  * @param {string} name
9634
10578
  * @param {string | null} [displayName]
9635
10579
  * @param {string | null} [baseUrl]
@@ -9667,15 +10611,11 @@ export class WasmProviderConfig {
9667
10611
  return ret;
9668
10612
  }
9669
10613
  /**
9670
- * @param {WasmAuthConfig | null} [value]
10614
+ * @param {WasmAuthConfig} value
9671
10615
  */
9672
10616
  set auth(value) {
9673
- let ptr0 = 0;
9674
- if (!isLikeNone(value)) {
9675
- _assertClass(value, WasmAuthConfig);
9676
- ptr0 = value.__destroy_into_raw();
9677
- }
9678
- wasm.wasmproviderconfig_set_auth(this.__wbg_ptr, ptr0);
10617
+ _assertClass(value, WasmAuthConfig);
10618
+ wasm.wasmproviderconfig_set_auth(this.__wbg_ptr, value.__wbg_ptr);
9679
10619
  }
9680
10620
  /**
9681
10621
  * @param {string | null} [value]
@@ -9768,6 +10708,17 @@ export class WasmRerankRequest {
9768
10708
  const ptr = this.__destroy_into_raw();
9769
10709
  wasm.__wbg_wasmrerankrequest_free(ptr, 0);
9770
10710
  }
10711
+ /**
10712
+ * Return an independent handle for an ownership-taking API.
10713
+ *
10714
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10715
+ * handle must remain usable.
10716
+ * @returns {WasmRerankRequest}
10717
+ */
10718
+ copyForTransfer() {
10719
+ const ret = wasm.wasmrerankrequest_copyForTransfer(this.__wbg_ptr);
10720
+ return WasmRerankRequest.__wrap(ret);
10721
+ }
9771
10722
  /**
9772
10723
  * @returns {WasmRerankRequest}
9773
10724
  */
@@ -9900,6 +10851,17 @@ export class WasmRerankResponse {
9900
10851
  const ptr = this.__destroy_into_raw();
9901
10852
  wasm.__wbg_wasmrerankresponse_free(ptr, 0);
9902
10853
  }
10854
+ /**
10855
+ * Return an independent handle for an ownership-taking API.
10856
+ *
10857
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10858
+ * handle must remain usable.
10859
+ * @returns {WasmRerankResponse}
10860
+ */
10861
+ copyForTransfer() {
10862
+ const ret = wasm.wasmrerankresponse_copyForTransfer(this.__wbg_ptr);
10863
+ return WasmRerankResponse.__wrap(ret);
10864
+ }
9903
10865
  /**
9904
10866
  * @returns {WasmRerankResponse}
9905
10867
  */
@@ -9927,6 +10889,9 @@ export class WasmRerankResponse {
9927
10889
  return ret;
9928
10890
  }
9929
10891
  /**
10892
+ * Takes ownership of every element in `results`.
10893
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
10894
+ * copy each retained element with `copyForTransfer()` before passing the array.
9930
10895
  * @param {WasmRerankResult[]} results
9931
10896
  * @param {string | null} [id]
9932
10897
  * @param {any | null} [meta]
@@ -9942,6 +10907,10 @@ export class WasmRerankResponse {
9942
10907
  return this;
9943
10908
  }
9944
10909
  /**
10910
+ * Returns detached copies of the elements in `results`.
10911
+ *
10912
+ * Changes to the returned values do not update this object. Modify the copies,
10913
+ * then assign the array back to `results`.
9945
10914
  * @returns {WasmRerankResult[]}
9946
10915
  */
9947
10916
  get results() {
@@ -9965,6 +10934,9 @@ export class WasmRerankResponse {
9965
10934
  wasm.wasmrerankresponse_set_meta(this.__wbg_ptr, isLikeNone(value) ? 0 : addToExternrefTable0(value));
9966
10935
  }
9967
10936
  /**
10937
+ * Takes ownership of every element in `results`.
10938
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
10939
+ * element with `copyForTransfer()` before passing the array.
9968
10940
  * @param {WasmRerankResult[]} value
9969
10941
  */
9970
10942
  set results(value) {
@@ -10001,6 +10973,20 @@ export class WasmRerankResult {
10001
10973
  const ptr = this.__destroy_into_raw();
10002
10974
  wasm.__wbg_wasmrerankresult_free(ptr, 0);
10003
10975
  }
10976
+ clearDocument() {
10977
+ wasm.wasmrerankresult_clearDocument(this.__wbg_ptr);
10978
+ }
10979
+ /**
10980
+ * Return an independent handle for an ownership-taking API.
10981
+ *
10982
+ * Use `copyForTransfer()` for each class value placed in an array when the original
10983
+ * handle must remain usable.
10984
+ * @returns {WasmRerankResult}
10985
+ */
10986
+ copyForTransfer() {
10987
+ const ret = wasm.wasmrerankresult_copyForTransfer(this.__wbg_ptr);
10988
+ return WasmRerankResult.__wrap(ret);
10989
+ }
10004
10990
  /**
10005
10991
  * @returns {WasmRerankResult}
10006
10992
  */
@@ -10009,6 +10995,10 @@ export class WasmRerankResult {
10009
10995
  return WasmRerankResult.__wrap(ret);
10010
10996
  }
10011
10997
  /**
10998
+ * Returns a detached copy of `document`.
10999
+ *
11000
+ * Changes to the returned value do not update this object. To update `document`,
11001
+ * read it, modify the copy, then assign the copy back to `document`.
10012
11002
  * @returns {WasmRerankResultDocument | undefined}
10013
11003
  */
10014
11004
  get document() {
@@ -10023,6 +11013,11 @@ export class WasmRerankResult {
10023
11013
  return ret >>> 0;
10024
11014
  }
10025
11015
  /**
11016
+ * Takes ownership of `document`.
11017
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
11018
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
11019
+ * keep a handle you already hold, build with `default()` and assign the property instead:
11020
+ * the generated setter borrows and leaves your handle alive.
10026
11021
  * @param {number} index
10027
11022
  * @param {number} relevanceScore
10028
11023
  * @param {WasmRerankResultDocument | null} [document]
@@ -10046,15 +11041,11 @@ export class WasmRerankResult {
10046
11041
  return ret;
10047
11042
  }
10048
11043
  /**
10049
- * @param {WasmRerankResultDocument | null} [value]
11044
+ * @param {WasmRerankResultDocument} value
10050
11045
  */
10051
11046
  set document(value) {
10052
- let ptr0 = 0;
10053
- if (!isLikeNone(value)) {
10054
- _assertClass(value, WasmRerankResultDocument);
10055
- ptr0 = value.__destroy_into_raw();
10056
- }
10057
- wasm.wasmrerankresult_set_document(this.__wbg_ptr, ptr0);
11047
+ _assertClass(value, WasmRerankResultDocument);
11048
+ wasm.wasmrerankresult_set_document(this.__wbg_ptr, value.__wbg_ptr);
10058
11049
  }
10059
11050
  /**
10060
11051
  * @param {number} value
@@ -10091,6 +11082,17 @@ export class WasmRerankResultDocument {
10091
11082
  const ptr = this.__destroy_into_raw();
10092
11083
  wasm.__wbg_wasmrerankresultdocument_free(ptr, 0);
10093
11084
  }
11085
+ /**
11086
+ * Return an independent handle for an ownership-taking API.
11087
+ *
11088
+ * Use `copyForTransfer()` for each class value placed in an array when the original
11089
+ * handle must remain usable.
11090
+ * @returns {WasmRerankResultDocument}
11091
+ */
11092
+ copyForTransfer() {
11093
+ const ret = wasm.wasmrerankresultdocument_copyForTransfer(this.__wbg_ptr);
11094
+ return WasmRerankResultDocument.__wrap(ret);
11095
+ }
10094
11096
  /**
10095
11097
  * @returns {WasmRerankResultDocument}
10096
11098
  */
@@ -10172,6 +11174,9 @@ export class WasmResponseFormat {
10172
11174
  const ptr = this.__destroy_into_raw();
10173
11175
  wasm.__wbg_wasmresponseformat_free(ptr, 0);
10174
11176
  }
11177
+ clearJsonSchema() {
11178
+ wasm.wasmresponseformat_clearJsonSchema(this.__wbg_ptr);
11179
+ }
10175
11180
  /**
10176
11181
  * @returns {WasmResponseFormat}
10177
11182
  */
@@ -10193,15 +11198,11 @@ export class WasmResponseFormat {
10193
11198
  return this;
10194
11199
  }
10195
11200
  /**
10196
- * @param {WasmJsonSchemaFormat | null} [value]
11201
+ * @param {WasmJsonSchemaFormat} value
10197
11202
  */
10198
11203
  set jsonSchema(value) {
10199
- let ptr0 = 0;
10200
- if (!isLikeNone(value)) {
10201
- _assertClass(value, WasmJsonSchemaFormat);
10202
- ptr0 = value.__destroy_into_raw();
10203
- }
10204
- wasm.wasmresponseformat_set_jsonSchema(this.__wbg_ptr, ptr0);
11204
+ _assertClass(value, WasmJsonSchemaFormat);
11205
+ wasm.wasmresponseformat_set_jsonSchema(this.__wbg_ptr, value.__wbg_ptr);
10205
11206
  }
10206
11207
  /**
10207
11208
  * @param {string} value
@@ -10249,6 +11250,20 @@ export class WasmResponseObject {
10249
11250
  const ptr = this.__destroy_into_raw();
10250
11251
  wasm.__wbg_wasmresponseobject_free(ptr, 0);
10251
11252
  }
11253
+ clearUsage() {
11254
+ wasm.wasmresponseobject_clearUsage(this.__wbg_ptr);
11255
+ }
11256
+ /**
11257
+ * Return an independent handle for an ownership-taking API.
11258
+ *
11259
+ * Use `copyForTransfer()` for each class value placed in an array when the original
11260
+ * handle must remain usable.
11261
+ * @returns {WasmResponseObject}
11262
+ */
11263
+ copyForTransfer() {
11264
+ const ret = wasm.wasmresponseobject_copyForTransfer(this.__wbg_ptr);
11265
+ return WasmResponseObject.__wrap(ret);
11266
+ }
10252
11267
  /**
10253
11268
  * @returns {bigint}
10254
11269
  */
@@ -10301,6 +11316,14 @@ export class WasmResponseObject {
10301
11316
  }
10302
11317
  }
10303
11318
  /**
11319
+ * Takes ownership of `usage`.
11320
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
11321
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
11322
+ * keep a handle you already hold, build with `default()` and assign the property instead:
11323
+ * the generated setter borrows and leaves your handle alive.
11324
+ * Takes ownership of every element in `output`.
11325
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
11326
+ * copy each retained element with `copyForTransfer()` before passing the array.
10304
11327
  * @param {string | null} [id]
10305
11328
  * @param {string | null} [object]
10306
11329
  * @param {bigint | null} [createdAt]
@@ -10347,6 +11370,10 @@ export class WasmResponseObject {
10347
11370
  }
10348
11371
  }
10349
11372
  /**
11373
+ * Returns detached copies of the elements in `output`.
11374
+ *
11375
+ * Changes to the returned values do not update this object. Modify the copies,
11376
+ * then assign the array back to `output`.
10350
11377
  * @returns {WasmResponseOutputItem[]}
10351
11378
  */
10352
11379
  get output() {
@@ -10392,6 +11419,9 @@ export class WasmResponseObject {
10392
11419
  wasm.wasmresponseobject_set_object(this.__wbg_ptr, ptr0, len0);
10393
11420
  }
10394
11421
  /**
11422
+ * Takes ownership of every element in `output`.
11423
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
11424
+ * element with `copyForTransfer()` before passing the array.
10395
11425
  * @param {WasmResponseOutputItem[]} value
10396
11426
  */
10397
11427
  set output(value) {
@@ -10408,15 +11438,11 @@ export class WasmResponseObject {
10408
11438
  wasm.wasmresponseobject_set_status(this.__wbg_ptr, ptr0, len0);
10409
11439
  }
10410
11440
  /**
10411
- * @param {WasmResponseUsage | null} [value]
11441
+ * @param {WasmResponseUsage} value
10412
11442
  */
10413
11443
  set usage(value) {
10414
- let ptr0 = 0;
10415
- if (!isLikeNone(value)) {
10416
- _assertClass(value, WasmResponseUsage);
10417
- ptr0 = value.__destroy_into_raw();
10418
- }
10419
- wasm.wasmresponseobject_set_usage(this.__wbg_ptr, ptr0);
11444
+ _assertClass(value, WasmResponseUsage);
11445
+ wasm.wasmresponseobject_set_usage(this.__wbg_ptr, value.__wbg_ptr);
10420
11446
  }
10421
11447
  /**
10422
11448
  * @returns {string}
@@ -10434,6 +11460,10 @@ export class WasmResponseObject {
10434
11460
  }
10435
11461
  }
10436
11462
  /**
11463
+ * Returns a detached copy of `usage`.
11464
+ *
11465
+ * Changes to the returned value do not update this object. To update `usage`,
11466
+ * read it, modify the copy, then assign the copy back to `usage`.
10437
11467
  * @returns {WasmResponseUsage | undefined}
10438
11468
  */
10439
11469
  get usage() {
@@ -10476,6 +11506,17 @@ export class WasmResponseOutputItem {
10476
11506
  const ret = wasm.wasmresponseoutputitem_content(this.__wbg_ptr);
10477
11507
  return ret;
10478
11508
  }
11509
+ /**
11510
+ * Return an independent handle for an ownership-taking API.
11511
+ *
11512
+ * Use `copyForTransfer()` for each class value placed in an array when the original
11513
+ * handle must remain usable.
11514
+ * @returns {WasmResponseOutputItem}
11515
+ */
11516
+ copyForTransfer() {
11517
+ const ret = wasm.wasmresponseoutputitem_copyForTransfer(this.__wbg_ptr);
11518
+ return WasmResponseOutputItem.__wrap(ret);
11519
+ }
10479
11520
  /**
10480
11521
  * @returns {WasmResponseOutputItem}
10481
11522
  */
@@ -10560,6 +11601,17 @@ export class WasmResponseTool {
10560
11601
  const ret = wasm.wasmresponsetool_config(this.__wbg_ptr);
10561
11602
  return ret;
10562
11603
  }
11604
+ /**
11605
+ * Return an independent handle for an ownership-taking API.
11606
+ *
11607
+ * Use `copyForTransfer()` for each class value placed in an array when the original
11608
+ * handle must remain usable.
11609
+ * @returns {WasmResponseTool}
11610
+ */
11611
+ copyForTransfer() {
11612
+ const ret = wasm.wasmresponsetool_copyForTransfer(this.__wbg_ptr);
11613
+ return WasmResponseTool.__wrap(ret);
11614
+ }
10563
11615
  /**
10564
11616
  * @returns {WasmResponseTool}
10565
11617
  */
@@ -10631,6 +11683,17 @@ export class WasmResponseUsage {
10631
11683
  const ptr = this.__destroy_into_raw();
10632
11684
  wasm.__wbg_wasmresponseusage_free(ptr, 0);
10633
11685
  }
11686
+ /**
11687
+ * Return an independent handle for an ownership-taking API.
11688
+ *
11689
+ * Use `copyForTransfer()` for each class value placed in an array when the original
11690
+ * handle must remain usable.
11691
+ * @returns {WasmResponseUsage}
11692
+ */
11693
+ copyForTransfer() {
11694
+ const ret = wasm.wasmresponseusage_copyForTransfer(this.__wbg_ptr);
11695
+ return WasmResponseUsage.__wrap(ret);
11696
+ }
10634
11697
  /**
10635
11698
  * @returns {WasmResponseUsage}
10636
11699
  */
@@ -10711,6 +11774,17 @@ export class WasmSearchRequest {
10711
11774
  const ptr = this.__destroy_into_raw();
10712
11775
  wasm.__wbg_wasmsearchrequest_free(ptr, 0);
10713
11776
  }
11777
+ /**
11778
+ * Return an independent handle for an ownership-taking API.
11779
+ *
11780
+ * Use `copyForTransfer()` for each class value placed in an array when the original
11781
+ * handle must remain usable.
11782
+ * @returns {WasmSearchRequest}
11783
+ */
11784
+ copyForTransfer() {
11785
+ const ret = wasm.wasmsearchrequest_copyForTransfer(this.__wbg_ptr);
11786
+ return WasmSearchRequest.__wrap(ret);
11787
+ }
10714
11788
  /**
10715
11789
  * @returns {string | undefined}
10716
11790
  */
@@ -10861,6 +11935,17 @@ export class WasmSearchResponse {
10861
11935
  const ptr = this.__destroy_into_raw();
10862
11936
  wasm.__wbg_wasmsearchresponse_free(ptr, 0);
10863
11937
  }
11938
+ /**
11939
+ * Return an independent handle for an ownership-taking API.
11940
+ *
11941
+ * Use `copyForTransfer()` for each class value placed in an array when the original
11942
+ * handle must remain usable.
11943
+ * @returns {WasmSearchResponse}
11944
+ */
11945
+ copyForTransfer() {
11946
+ const ret = wasm.wasmsearchresponse_copyForTransfer(this.__wbg_ptr);
11947
+ return WasmSearchResponse.__wrap(ret);
11948
+ }
10864
11949
  /**
10865
11950
  * @returns {WasmSearchResponse}
10866
11951
  */
@@ -10884,6 +11969,9 @@ export class WasmSearchResponse {
10884
11969
  }
10885
11970
  }
10886
11971
  /**
11972
+ * Takes ownership of every element in `results`.
11973
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
11974
+ * copy each retained element with `copyForTransfer()` before passing the array.
10887
11975
  * @param {WasmSearchResult[]} results
10888
11976
  * @param {string} model
10889
11977
  */
@@ -10898,6 +11986,10 @@ export class WasmSearchResponse {
10898
11986
  return this;
10899
11987
  }
10900
11988
  /**
11989
+ * Returns detached copies of the elements in `results`.
11990
+ *
11991
+ * Changes to the returned values do not update this object. Modify the copies,
11992
+ * then assign the array back to `results`.
10901
11993
  * @returns {WasmSearchResult[]}
10902
11994
  */
10903
11995
  get results() {
@@ -10915,6 +12007,9 @@ export class WasmSearchResponse {
10915
12007
  wasm.wasmsearchresponse_set_model(this.__wbg_ptr, ptr0, len0);
10916
12008
  }
10917
12009
  /**
12010
+ * Takes ownership of every element in `results`.
12011
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
12012
+ * element with `copyForTransfer()` before passing the array.
10918
12013
  * @param {WasmSearchResult[]} value
10919
12014
  */
10920
12015
  set results(value) {
@@ -10951,6 +12046,17 @@ export class WasmSearchResult {
10951
12046
  const ptr = this.__destroy_into_raw();
10952
12047
  wasm.__wbg_wasmsearchresult_free(ptr, 0);
10953
12048
  }
12049
+ /**
12050
+ * Return an independent handle for an ownership-taking API.
12051
+ *
12052
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12053
+ * handle must remain usable.
12054
+ * @returns {WasmSearchResult}
12055
+ */
12056
+ copyForTransfer() {
12057
+ const ret = wasm.wasmsearchresult_copyForTransfer(this.__wbg_ptr);
12058
+ return WasmSearchResult.__wrap(ret);
12059
+ }
10954
12060
  /**
10955
12061
  * @returns {string | undefined}
10956
12062
  */
@@ -11090,6 +12196,17 @@ export class WasmSpecificFunction {
11090
12196
  const ptr = this.__destroy_into_raw();
11091
12197
  wasm.__wbg_wasmspecificfunction_free(ptr, 0);
11092
12198
  }
12199
+ /**
12200
+ * Return an independent handle for an ownership-taking API.
12201
+ *
12202
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12203
+ * handle must remain usable.
12204
+ * @returns {WasmSpecificFunction}
12205
+ */
12206
+ copyForTransfer() {
12207
+ const ret = wasm.wasmspecificfunction_copyForTransfer(this.__wbg_ptr);
12208
+ return WasmSpecificFunction.__wrap(ret);
12209
+ }
11093
12210
  /**
11094
12211
  * @returns {WasmSpecificFunction}
11095
12212
  */
@@ -11169,6 +12286,17 @@ export class WasmSpecificToolChoice {
11169
12286
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
11170
12287
  }
11171
12288
  }
12289
+ /**
12290
+ * Return an independent handle for an ownership-taking API.
12291
+ *
12292
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12293
+ * handle must remain usable.
12294
+ * @returns {WasmSpecificToolChoice}
12295
+ */
12296
+ copyForTransfer() {
12297
+ const ret = wasm.wasmspecifictoolchoice_copyForTransfer(this.__wbg_ptr);
12298
+ return WasmSpecificToolChoice.__wrap(ret);
12299
+ }
11172
12300
  /**
11173
12301
  * @returns {WasmSpecificToolChoice}
11174
12302
  */
@@ -11177,6 +12305,10 @@ export class WasmSpecificToolChoice {
11177
12305
  return WasmSpecificToolChoice.__wrap(ret);
11178
12306
  }
11179
12307
  /**
12308
+ * Returns a detached copy of `function`.
12309
+ *
12310
+ * Changes to the returned value do not update this object. To update `function`,
12311
+ * read it, modify the copy, then assign the copy back to `function`.
11180
12312
  * @returns {WasmSpecificFunction}
11181
12313
  */
11182
12314
  get function() {
@@ -11184,6 +12316,11 @@ export class WasmSpecificToolChoice {
11184
12316
  return WasmSpecificFunction.__wrap(ret);
11185
12317
  }
11186
12318
  /**
12319
+ * Takes ownership of `function`.
12320
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
12321
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
12322
+ * keep a handle you already hold, build with `default()` and assign the property instead:
12323
+ * the generated setter borrows and leaves your handle alive.
11187
12324
  * @param {WasmToolType | null} [choiceType]
11188
12325
  * @param {WasmSpecificFunction | null} [_function]
11189
12326
  */
@@ -11209,8 +12346,7 @@ export class WasmSpecificToolChoice {
11209
12346
  */
11210
12347
  set function(value) {
11211
12348
  _assertClass(value, WasmSpecificFunction);
11212
- var ptr0 = value.__destroy_into_raw();
11213
- wasm.wasmspecifictoolchoice_set_function(this.__wbg_ptr, ptr0);
12349
+ wasm.wasmspecifictoolchoice_set_function(this.__wbg_ptr, value.__wbg_ptr);
11214
12350
  }
11215
12351
  }
11216
12352
  if (Symbol.dispose) WasmSpecificToolChoice.prototype[Symbol.dispose] = WasmSpecificToolChoice.prototype.free;
@@ -11241,6 +12377,17 @@ export class WasmStreamChoice {
11241
12377
  const ptr = this.__destroy_into_raw();
11242
12378
  wasm.__wbg_wasmstreamchoice_free(ptr, 0);
11243
12379
  }
12380
+ /**
12381
+ * Return an independent handle for an ownership-taking API.
12382
+ *
12383
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12384
+ * handle must remain usable.
12385
+ * @returns {WasmStreamChoice}
12386
+ */
12387
+ copyForTransfer() {
12388
+ const ret = wasm.wasmstreamchoice_copyForTransfer(this.__wbg_ptr);
12389
+ return WasmStreamChoice.__wrap(ret);
12390
+ }
11244
12391
  /**
11245
12392
  * @returns {WasmStreamChoice}
11246
12393
  */
@@ -11249,6 +12396,10 @@ export class WasmStreamChoice {
11249
12396
  return WasmStreamChoice.__wrap(ret);
11250
12397
  }
11251
12398
  /**
12399
+ * Returns a detached copy of `delta`.
12400
+ *
12401
+ * Changes to the returned value do not update this object. To update `delta`,
12402
+ * read it, modify the copy, then assign the copy back to `delta`.
11252
12403
  * @returns {WasmStreamDelta}
11253
12404
  */
11254
12405
  get delta() {
@@ -11275,6 +12426,11 @@ export class WasmStreamChoice {
11275
12426
  return ret >>> 0;
11276
12427
  }
11277
12428
  /**
12429
+ * Takes ownership of `delta`.
12430
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
12431
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
12432
+ * keep a handle you already hold, build with `default()` and assign the property instead:
12433
+ * the generated setter borrows and leaves your handle alive.
11278
12434
  * @param {number | null} [index]
11279
12435
  * @param {WasmStreamDelta | null} [delta]
11280
12436
  * @param {WasmFinishReason | null} [finishReason]
@@ -11295,8 +12451,7 @@ export class WasmStreamChoice {
11295
12451
  */
11296
12452
  set delta(value) {
11297
12453
  _assertClass(value, WasmStreamDelta);
11298
- var ptr0 = value.__destroy_into_raw();
11299
- wasm.wasmstreamchoice_set_delta(this.__wbg_ptr, ptr0);
12454
+ wasm.wasmstreamchoice_set_delta(this.__wbg_ptr, value.__wbg_ptr);
11300
12455
  }
11301
12456
  /**
11302
12457
  * @param {WasmFinishReason | null} [value]
@@ -11333,6 +12488,9 @@ export class WasmStreamDelta {
11333
12488
  const ptr = this.__destroy_into_raw();
11334
12489
  wasm.__wbg_wasmstreamdelta_free(ptr, 0);
11335
12490
  }
12491
+ clearFunctionCall() {
12492
+ wasm.wasmstreamdelta_clearFunctionCall(this.__wbg_ptr);
12493
+ }
11336
12494
  /**
11337
12495
  * @returns {string | undefined}
11338
12496
  */
@@ -11345,6 +12503,17 @@ export class WasmStreamDelta {
11345
12503
  }
11346
12504
  return v1;
11347
12505
  }
12506
+ /**
12507
+ * Return an independent handle for an ownership-taking API.
12508
+ *
12509
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12510
+ * handle must remain usable.
12511
+ * @returns {WasmStreamDelta}
12512
+ */
12513
+ copyForTransfer() {
12514
+ const ret = wasm.wasmstreamdelta_copyForTransfer(this.__wbg_ptr);
12515
+ return WasmStreamDelta.__wrap(ret);
12516
+ }
11348
12517
  /**
11349
12518
  * @returns {WasmStreamDelta}
11350
12519
  */
@@ -11353,6 +12522,10 @@ export class WasmStreamDelta {
11353
12522
  return WasmStreamDelta.__wrap(ret);
11354
12523
  }
11355
12524
  /**
12525
+ * Returns a detached copy of `functionCall`.
12526
+ *
12527
+ * Changes to the returned value do not update this object. To update `functionCall`,
12528
+ * read it, modify the copy, then assign the copy back to `functionCall`.
11356
12529
  * @returns {WasmStreamFunctionCall | undefined}
11357
12530
  */
11358
12531
  get functionCall() {
@@ -11360,6 +12533,14 @@ export class WasmStreamDelta {
11360
12533
  return ret === 0 ? undefined : WasmStreamFunctionCall.__wrap(ret);
11361
12534
  }
11362
12535
  /**
12536
+ * Takes ownership of `functionCall`.
12537
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
12538
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
12539
+ * keep a handle you already hold, build with `default()` and assign the property instead:
12540
+ * the generated setter borrows and leaves your handle alive.
12541
+ * Takes ownership of every element in `toolCalls`.
12542
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
12543
+ * copy each retained element with `copyForTransfer()` before passing the array.
11363
12544
  * @param {string | null} [role]
11364
12545
  * @param {string | null} [content]
11365
12546
  * @param {WasmStreamToolCall[] | null} [toolCalls]
@@ -11433,15 +12614,11 @@ export class WasmStreamDelta {
11433
12614
  wasm.wasmstreamdelta_set_content(this.__wbg_ptr, ptr0, len0);
11434
12615
  }
11435
12616
  /**
11436
- * @param {WasmStreamFunctionCall | null} [value]
12617
+ * @param {WasmStreamFunctionCall} value
11437
12618
  */
11438
12619
  set functionCall(value) {
11439
- let ptr0 = 0;
11440
- if (!isLikeNone(value)) {
11441
- _assertClass(value, WasmStreamFunctionCall);
11442
- ptr0 = value.__destroy_into_raw();
11443
- }
11444
- wasm.wasmstreamdelta_set_functionCall(this.__wbg_ptr, ptr0);
12620
+ _assertClass(value, WasmStreamFunctionCall);
12621
+ wasm.wasmstreamdelta_set_functionCall(this.__wbg_ptr, value.__wbg_ptr);
11445
12622
  }
11446
12623
  /**
11447
12624
  * @param {string | null} [value]
@@ -11468,6 +12645,9 @@ export class WasmStreamDelta {
11468
12645
  wasm.wasmstreamdelta_set_role(this.__wbg_ptr, ptr0, len0);
11469
12646
  }
11470
12647
  /**
12648
+ * Takes ownership of every element in `toolCalls`.
12649
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
12650
+ * element with `copyForTransfer()` before passing the array.
11471
12651
  * @param {WasmStreamToolCall[] | null} [value]
11472
12652
  */
11473
12653
  set toolCalls(value) {
@@ -11476,6 +12656,10 @@ export class WasmStreamDelta {
11476
12656
  wasm.wasmstreamdelta_set_toolCalls(this.__wbg_ptr, ptr0, len0);
11477
12657
  }
11478
12658
  /**
12659
+ * Returns detached copies of the elements in `toolCalls`.
12660
+ *
12661
+ * Changes to the returned values do not update this object. Modify the copies,
12662
+ * then assign the array back to `toolCalls`.
11479
12663
  * @returns {Array<any> | undefined}
11480
12664
  */
11481
12665
  get toolCalls() {
@@ -11531,6 +12715,17 @@ export class WasmStreamFunctionCall {
11531
12715
  }
11532
12716
  return v1;
11533
12717
  }
12718
+ /**
12719
+ * Return an independent handle for an ownership-taking API.
12720
+ *
12721
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12722
+ * handle must remain usable.
12723
+ * @returns {WasmStreamFunctionCall}
12724
+ */
12725
+ copyForTransfer() {
12726
+ const ret = wasm.wasmstreamfunctioncall_copyForTransfer(this.__wbg_ptr);
12727
+ return WasmStreamFunctionCall.__wrap(ret);
12728
+ }
11534
12729
  /**
11535
12730
  * @returns {WasmStreamFunctionCall}
11536
12731
  */
@@ -11603,6 +12798,17 @@ export class WasmStreamOptions {
11603
12798
  const ptr = this.__destroy_into_raw();
11604
12799
  wasm.__wbg_wasmstreamoptions_free(ptr, 0);
11605
12800
  }
12801
+ /**
12802
+ * Return an independent handle for an ownership-taking API.
12803
+ *
12804
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12805
+ * handle must remain usable.
12806
+ * @returns {WasmStreamOptions}
12807
+ */
12808
+ copyForTransfer() {
12809
+ const ret = wasm.wasmstreamoptions_copyForTransfer(this.__wbg_ptr);
12810
+ return WasmStreamOptions.__wrap(ret);
12811
+ }
11606
12812
  /**
11607
12813
  * @returns {WasmStreamOptions}
11608
12814
  */
@@ -11673,6 +12879,20 @@ export class WasmStreamToolCall {
11673
12879
  }
11674
12880
  return v1;
11675
12881
  }
12882
+ clearFunction() {
12883
+ wasm.wasmstreamtoolcall_clearFunction(this.__wbg_ptr);
12884
+ }
12885
+ /**
12886
+ * Return an independent handle for an ownership-taking API.
12887
+ *
12888
+ * Use `copyForTransfer()` for each class value placed in an array when the original
12889
+ * handle must remain usable.
12890
+ * @returns {WasmStreamToolCall}
12891
+ */
12892
+ copyForTransfer() {
12893
+ const ret = wasm.wasmstreamtoolcall_copyForTransfer(this.__wbg_ptr);
12894
+ return WasmStreamToolCall.__wrap(ret);
12895
+ }
11676
12896
  /**
11677
12897
  * @returns {WasmStreamToolCall}
11678
12898
  */
@@ -11681,6 +12901,10 @@ export class WasmStreamToolCall {
11681
12901
  return WasmStreamToolCall.__wrap(ret);
11682
12902
  }
11683
12903
  /**
12904
+ * Returns a detached copy of `function`.
12905
+ *
12906
+ * Changes to the returned value do not update this object. To update `function`,
12907
+ * read it, modify the copy, then assign the copy back to `function`.
11684
12908
  * @returns {WasmStreamFunctionCall | undefined}
11685
12909
  */
11686
12910
  get function() {
@@ -11707,6 +12931,11 @@ export class WasmStreamToolCall {
11707
12931
  return ret >>> 0;
11708
12932
  }
11709
12933
  /**
12934
+ * Takes ownership of `function`.
12935
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
12936
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
12937
+ * keep a handle you already hold, build with `default()` and assign the property instead:
12938
+ * the generated setter borrows and leaves your handle alive.
11710
12939
  * @param {number | null} [index]
11711
12940
  * @param {string | null} [id]
11712
12941
  * @param {WasmToolType | null} [callType]
@@ -11732,15 +12961,11 @@ export class WasmStreamToolCall {
11732
12961
  wasm.wasmstreamtoolcall_set_callType(this.__wbg_ptr, isLikeNone(value) ? 1 : value);
11733
12962
  }
11734
12963
  /**
11735
- * @param {WasmStreamFunctionCall | null} [value]
12964
+ * @param {WasmStreamFunctionCall} value
11736
12965
  */
11737
12966
  set function(value) {
11738
- let ptr0 = 0;
11739
- if (!isLikeNone(value)) {
11740
- _assertClass(value, WasmStreamFunctionCall);
11741
- ptr0 = value.__destroy_into_raw();
11742
- }
11743
- wasm.wasmstreamtoolcall_set_function(this.__wbg_ptr, ptr0);
12967
+ _assertClass(value, WasmStreamFunctionCall);
12968
+ wasm.wasmstreamtoolcall_set_function(this.__wbg_ptr, value.__wbg_ptr);
11744
12969
  }
11745
12970
  /**
11746
12971
  * @param {string | null} [value]
@@ -11786,6 +13011,17 @@ export class WasmSystemMessage {
11786
13011
  const ret = wasm.wasmsystemmessage_content(this.__wbg_ptr);
11787
13012
  return ret;
11788
13013
  }
13014
+ /**
13015
+ * Return an independent handle for an ownership-taking API.
13016
+ *
13017
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13018
+ * handle must remain usable.
13019
+ * @returns {WasmSystemMessage}
13020
+ */
13021
+ copyForTransfer() {
13022
+ const ret = wasm.wasmsystemmessage_copyForTransfer(this.__wbg_ptr);
13023
+ return WasmSystemMessage.__wrap(ret);
13024
+ }
11789
13025
  /**
11790
13026
  * @returns {WasmSystemMessage}
11791
13027
  */
@@ -11875,6 +13111,17 @@ export class WasmToolCall {
11875
13111
  wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
11876
13112
  }
11877
13113
  }
13114
+ /**
13115
+ * Return an independent handle for an ownership-taking API.
13116
+ *
13117
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13118
+ * handle must remain usable.
13119
+ * @returns {WasmToolCall}
13120
+ */
13121
+ copyForTransfer() {
13122
+ const ret = wasm.wasmtoolcall_copyForTransfer(this.__wbg_ptr);
13123
+ return WasmToolCall.__wrap(ret);
13124
+ }
11878
13125
  /**
11879
13126
  * @returns {WasmToolCall}
11880
13127
  */
@@ -11883,6 +13130,10 @@ export class WasmToolCall {
11883
13130
  return WasmToolCall.__wrap(ret);
11884
13131
  }
11885
13132
  /**
13133
+ * Returns a detached copy of `function`.
13134
+ *
13135
+ * Changes to the returned value do not update this object. To update `function`,
13136
+ * read it, modify the copy, then assign the copy back to `function`.
11886
13137
  * @returns {WasmFunctionCall}
11887
13138
  */
11888
13139
  get function() {
@@ -11913,8 +13164,7 @@ export class WasmToolCall {
11913
13164
  const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
11914
13165
  const len0 = WASM_VECTOR_LEN;
11915
13166
  _assertClass(_function, WasmFunctionCall);
11916
- var ptr1 = _function.__destroy_into_raw();
11917
- const ret = wasm.wasmtoolcall_new(ptr0, len0, callType, ptr1);
13167
+ const ret = wasm.wasmtoolcall_new(ptr0, len0, callType, _function.__wbg_ptr);
11918
13168
  this.__wbg_ptr = ret;
11919
13169
  WasmToolCallFinalization.register(this, this.__wbg_ptr, this);
11920
13170
  return this;
@@ -11930,8 +13180,7 @@ export class WasmToolCall {
11930
13180
  */
11931
13181
  set function(value) {
11932
13182
  _assertClass(value, WasmFunctionCall);
11933
- var ptr0 = value.__destroy_into_raw();
11934
- wasm.wasmtoolcall_set_function(this.__wbg_ptr, ptr0);
13183
+ wasm.wasmtoolcall_set_function(this.__wbg_ptr, value.__wbg_ptr);
11935
13184
  }
11936
13185
  /**
11937
13186
  * @param {string} value
@@ -11981,6 +13230,17 @@ export class WasmToolMessage {
11981
13230
  const ret = wasm.wasmtoolmessage_content(this.__wbg_ptr);
11982
13231
  return ret;
11983
13232
  }
13233
+ /**
13234
+ * Return an independent handle for an ownership-taking API.
13235
+ *
13236
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13237
+ * handle must remain usable.
13238
+ * @returns {WasmToolMessage}
13239
+ */
13240
+ copyForTransfer() {
13241
+ const ret = wasm.wasmtoolmessage_copyForTransfer(this.__wbg_ptr);
13242
+ return WasmToolMessage.__wrap(ret);
13243
+ }
11984
13244
  /**
11985
13245
  * @returns {WasmToolMessage}
11986
13246
  */
@@ -12087,6 +13347,17 @@ export class WasmTranscriptionResponse {
12087
13347
  const ptr = this.__destroy_into_raw();
12088
13348
  wasm.__wbg_wasmtranscriptionresponse_free(ptr, 0);
12089
13349
  }
13350
+ /**
13351
+ * Return an independent handle for an ownership-taking API.
13352
+ *
13353
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13354
+ * handle must remain usable.
13355
+ * @returns {WasmTranscriptionResponse}
13356
+ */
13357
+ copyForTransfer() {
13358
+ const ret = wasm.wasmtranscriptionresponse_copyForTransfer(this.__wbg_ptr);
13359
+ return WasmTranscriptionResponse.__wrap(ret);
13360
+ }
12090
13361
  /**
12091
13362
  * @returns {WasmTranscriptionResponse}
12092
13363
  */
@@ -12114,6 +13385,9 @@ export class WasmTranscriptionResponse {
12114
13385
  return v1;
12115
13386
  }
12116
13387
  /**
13388
+ * Takes ownership of every element in `segments`.
13389
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
13390
+ * copy each retained element with `copyForTransfer()` before passing the array.
12117
13391
  * @param {string | null} [text]
12118
13392
  * @param {string | null} [language]
12119
13393
  * @param {number | null} [duration]
@@ -12132,6 +13406,10 @@ export class WasmTranscriptionResponse {
12132
13406
  return this;
12133
13407
  }
12134
13408
  /**
13409
+ * Returns detached copies of the elements in `segments`.
13410
+ *
13411
+ * Changes to the returned values do not update this object. Modify the copies,
13412
+ * then assign the array back to `segments`.
12135
13413
  * @returns {Array<any> | undefined}
12136
13414
  */
12137
13415
  get segments() {
@@ -12153,6 +13431,9 @@ export class WasmTranscriptionResponse {
12153
13431
  wasm.wasmtranscriptionresponse_set_language(this.__wbg_ptr, ptr0, len0);
12154
13432
  }
12155
13433
  /**
13434
+ * Takes ownership of every element in `segments`.
13435
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
13436
+ * element with `copyForTransfer()` before passing the array.
12156
13437
  * @param {WasmTranscriptionSegment[] | null} [value]
12157
13438
  */
12158
13439
  set segments(value) {
@@ -12212,6 +13493,17 @@ export class WasmTranscriptionSegment {
12212
13493
  const ptr = this.__destroy_into_raw();
12213
13494
  wasm.__wbg_wasmtranscriptionsegment_free(ptr, 0);
12214
13495
  }
13496
+ /**
13497
+ * Return an independent handle for an ownership-taking API.
13498
+ *
13499
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13500
+ * handle must remain usable.
13501
+ * @returns {WasmTranscriptionSegment}
13502
+ */
13503
+ copyForTransfer() {
13504
+ const ret = wasm.wasmtranscriptionsegment_copyForTransfer(this.__wbg_ptr);
13505
+ return WasmTranscriptionSegment.__wrap(ret);
13506
+ }
12215
13507
  /**
12216
13508
  * @returns {WasmTranscriptionSegment}
12217
13509
  */
@@ -12318,6 +13610,9 @@ export class WasmUsage {
12318
13610
  const ptr = this.__destroy_into_raw();
12319
13611
  wasm.__wbg_wasmusage_free(ptr, 0);
12320
13612
  }
13613
+ clearPromptTokensDetails() {
13614
+ wasm.wasmusage_clearPromptTokensDetails(this.__wbg_ptr);
13615
+ }
12321
13616
  /**
12322
13617
  * @returns {bigint}
12323
13618
  */
@@ -12325,6 +13620,17 @@ export class WasmUsage {
12325
13620
  const ret = wasm.wasmusage_completionTokens(this.__wbg_ptr);
12326
13621
  return BigInt.asUintN(64, ret);
12327
13622
  }
13623
+ /**
13624
+ * Return an independent handle for an ownership-taking API.
13625
+ *
13626
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13627
+ * handle must remain usable.
13628
+ * @returns {WasmUsage}
13629
+ */
13630
+ copyForTransfer() {
13631
+ const ret = wasm.wasmusage_copyForTransfer(this.__wbg_ptr);
13632
+ return WasmUsage.__wrap(ret);
13633
+ }
12328
13634
  /**
12329
13635
  * @returns {WasmUsage}
12330
13636
  */
@@ -12333,6 +13639,11 @@ export class WasmUsage {
12333
13639
  return WasmUsage.__wrap(ret);
12334
13640
  }
12335
13641
  /**
13642
+ * Takes ownership of `promptTokensDetails`.
13643
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
13644
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
13645
+ * keep a handle you already hold, build with `default()` and assign the property instead:
13646
+ * the generated setter borrows and leaves your handle alive.
12336
13647
  * @param {bigint | null} [promptTokens]
12337
13648
  * @param {bigint | null} [completionTokens]
12338
13649
  * @param {bigint | null} [totalTokens]
@@ -12350,6 +13661,10 @@ export class WasmUsage {
12350
13661
  return this;
12351
13662
  }
12352
13663
  /**
13664
+ * Returns a detached copy of `promptTokensDetails`.
13665
+ *
13666
+ * Changes to the returned value do not update this object. To update `promptTokensDetails`,
13667
+ * read it, modify the copy, then assign the copy back to `promptTokensDetails`.
12353
13668
  * @returns {WasmPromptTokensDetails | undefined}
12354
13669
  */
12355
13670
  get promptTokensDetails() {
@@ -12370,15 +13685,11 @@ export class WasmUsage {
12370
13685
  wasm.wasmusage_set_completionTokens(this.__wbg_ptr, value);
12371
13686
  }
12372
13687
  /**
12373
- * @param {WasmPromptTokensDetails | null} [value]
13688
+ * @param {WasmPromptTokensDetails} value
12374
13689
  */
12375
13690
  set promptTokensDetails(value) {
12376
- let ptr0 = 0;
12377
- if (!isLikeNone(value)) {
12378
- _assertClass(value, WasmPromptTokensDetails);
12379
- ptr0 = value.__destroy_into_raw();
12380
- }
12381
- wasm.wasmusage_set_promptTokensDetails(this.__wbg_ptr, ptr0);
13691
+ _assertClass(value, WasmPromptTokensDetails);
13692
+ wasm.wasmusage_set_promptTokensDetails(this.__wbg_ptr, value.__wbg_ptr);
12382
13693
  }
12383
13694
  /**
12384
13695
  * @param {bigint} value
@@ -12429,6 +13740,17 @@ export class WasmUserMessage {
12429
13740
  const ret = wasm.wasmusermessage_content(this.__wbg_ptr);
12430
13741
  return ret;
12431
13742
  }
13743
+ /**
13744
+ * Return an independent handle for an ownership-taking API.
13745
+ *
13746
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13747
+ * handle must remain usable.
13748
+ * @returns {WasmUserMessage}
13749
+ */
13750
+ copyForTransfer() {
13751
+ const ret = wasm.wasmusermessage_copyForTransfer(this.__wbg_ptr);
13752
+ return WasmUserMessage.__wrap(ret);
13753
+ }
12432
13754
  /**
12433
13755
  * @returns {WasmUserMessage}
12434
13756
  */
@@ -12507,6 +13829,17 @@ export class WasmWaitForBatchConfig {
12507
13829
  const ret = wasm.wasmwaitforbatchconfig_backoffMultiplier(this.__wbg_ptr);
12508
13830
  return ret;
12509
13831
  }
13832
+ /**
13833
+ * Return an independent handle for an ownership-taking API.
13834
+ *
13835
+ * Use `copyForTransfer()` for each class value placed in an array when the original
13836
+ * handle must remain usable.
13837
+ * @returns {WasmWaitForBatchConfig}
13838
+ */
13839
+ copyForTransfer() {
13840
+ const ret = wasm.wasmwaitforbatchconfig_copyForTransfer(this.__wbg_ptr);
13841
+ return WasmWaitForBatchConfig.__wrap(ret);
13842
+ }
12510
13843
  /**
12511
13844
  * @returns {WasmWaitForBatchConfig}
12512
13845
  */
@@ -12595,7 +13928,7 @@ export function allProviders() {
12595
13928
  /**
12596
13929
  * Return the capability flags for a named provider.
12597
13930
  *
12598
- * Performs an O(n) linear scan over the embedded registry (165 entries).
13931
+ * Performs an O(n) linear scan over the embedded registry (174 entries).
12599
13932
  * Returns an owned value so bindings can pass capability data without
12600
13933
  * borrowing registry internals.
12601
13934
  *
@@ -12768,11 +14101,19 @@ export function createClient(api_key, base_url, timeout_secs, max_retries, model
12768
14101
  * Create a new LLM client from a JSON string.
12769
14102
  *
12770
14103
  * The JSON object accepts the same fields as `liter-llm.toml` (snake_case).
14104
+ * Middleware keys (`cache`, `budget`, `cooldown_secs`, `rate_limit`,
14105
+ * `in_flight_limit`, `health_check_secs`, `cost_tracking`, `tracing`) are
14106
+ * applied: the returned client routes the `LlmClient` methods (`chat`,
14107
+ * `chat_stream`, `embed`, `list_models`, `image_generate`, `speech`,
14108
+ * `transcribe`, `moderate`, `rerank`, `search`, `ocr`) through the managed
14109
+ * Tower stack. File, batch and response operations bypass it. Each `providers`
14110
+ * entry is registered process-wide via `register_custom_provider`.
12771
14111
  *
12772
14112
  * # Errors
12773
14113
  *
12774
- * Returns `LiterLlmError.BadRequest` if `json` is not valid JSON or
12775
- * contains unknown fields.
14114
+ * Returns `LiterLlmError.BadRequest` if `json` is not valid JSON, contains
14115
+ * unknown fields, or sets middleware keys in a build without the `tower` and
14116
+ * `native-http` features. Provider registration failures are propagated.
12776
14117
  * @param {string} json
12777
14118
  * @returns {WasmDefaultClient}
12778
14119
  */
@@ -12961,68 +14302,78 @@ export function unregisterCustomProvider(name) {
12961
14302
  function __wbg_get_imports() {
12962
14303
  const import0 = {
12963
14304
  __proto__: null,
12964
- __wbg_Error_67e7344beaa85059: function(arg0, arg1) {
14305
+ __wbg_Error_30c8987f7c2ed4e2: function(arg0, arg1) {
12965
14306
  const ret = Error(getStringFromWasm0(arg0, arg1));
12966
14307
  return ret;
12967
14308
  },
12968
- __wbg___wbindgen_bigint_get_as_i64_b482365c149396c8: function(arg0, arg1) {
14309
+ __wbg_String_8564e559799eccda: function(arg0, arg1) {
14310
+ const ret = String(arg1);
14311
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
14312
+ const len1 = WASM_VECTOR_LEN;
14313
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
14314
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
14315
+ },
14316
+ __wbg___wbindgen_bigint_get_as_i64_a2383202b9353e4c: function(arg0, arg1) {
12969
14317
  const v = arg1;
12970
14318
  const ret = typeof(v) === 'bigint' ? v : undefined;
12971
14319
  getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
12972
14320
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
12973
14321
  },
12974
- __wbg___wbindgen_boolean_get_7a12af2b3f899c5a: function(arg0) {
14322
+ __wbg___wbindgen_boolean_get_5b446f51afd21013: function(arg0) {
12975
14323
  const v = arg0;
12976
14324
  const ret = typeof(v) === 'boolean' ? v : undefined;
12977
14325
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
12978
14326
  },
12979
- __wbg___wbindgen_debug_string_0e68cf47c9cbd9b0: function(arg0, arg1) {
14327
+ __wbg___wbindgen_debug_string_4687d8d8c2017d52: function(arg0, arg1) {
12980
14328
  const ret = debugString(arg1);
12981
14329
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
12982
14330
  const len1 = WASM_VECTOR_LEN;
12983
14331
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
12984
14332
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
12985
14333
  },
12986
- __wbg___wbindgen_in_50072d4d6e45c193: function(arg0, arg1) {
14334
+ __wbg___wbindgen_in_92f62ee1427d9e49: function(arg0, arg1) {
12987
14335
  const ret = arg0 in arg1;
12988
14336
  return ret;
12989
14337
  },
12990
- __wbg___wbindgen_is_bigint_60fc0336cb14f5d7: function(arg0) {
14338
+ __wbg___wbindgen_is_bigint_b123553bed3bb382: function(arg0) {
12991
14339
  const ret = typeof(arg0) === 'bigint';
12992
14340
  return ret;
12993
14341
  },
12994
- __wbg___wbindgen_is_function_fcda5e3902d732fe: function(arg0) {
14342
+ __wbg___wbindgen_is_function_1f9d30630b8b1d3d: function(arg0) {
12995
14343
  const ret = typeof(arg0) === 'function';
12996
14344
  return ret;
12997
14345
  },
12998
- __wbg___wbindgen_is_object_edb6b15aa3afe12e: function(arg0) {
14346
+ __wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
12999
14347
  const val = arg0;
13000
14348
  const ret = typeof(val) === 'object' && val !== null;
13001
14349
  return ret;
13002
14350
  },
13003
- __wbg___wbindgen_is_string_c4f7cb494a2a21f1: function(arg0) {
14351
+ __wbg___wbindgen_is_string_90b56bc79aad6f6c: function(arg0) {
13004
14352
  const ret = typeof(arg0) === 'string';
13005
14353
  return ret;
13006
14354
  },
13007
- __wbg___wbindgen_is_undefined_8c687d0b90d5b524: function(arg0) {
14355
+ __wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
13008
14356
  const ret = arg0 === undefined;
13009
14357
  return ret;
13010
14358
  },
13011
- __wbg___wbindgen_jsval_eq_9fdcd3c0a860dd3b: function(arg0, arg1) {
14359
+ __wbg___wbindgen_jsval_eq_02babf21faa37971: function(arg0, arg1) {
13012
14360
  const ret = arg0 === arg1;
13013
14361
  return ret;
13014
14362
  },
13015
- __wbg___wbindgen_jsval_loose_eq_3c30021c243b64cd: function(arg0, arg1) {
14363
+ __wbg___wbindgen_jsval_loose_eq_677f21e468d6b461: function(arg0, arg1) {
13016
14364
  const ret = arg0 == arg1;
13017
14365
  return ret;
13018
14366
  },
13019
- __wbg___wbindgen_number_get_1dc732b810cb937c: function(arg0, arg1) {
14367
+ __wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
13020
14368
  const obj = arg1;
13021
14369
  const ret = typeof(obj) === 'number' ? obj : undefined;
13022
14370
  getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
13023
14371
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
13024
14372
  },
13025
- __wbg___wbindgen_string_get_92ab86bb19cbc12f: function(arg0, arg1) {
14373
+ __wbg___wbindgen_rethrow_cb2e88c6b2a16733: function(arg0) {
14374
+ throw arg0;
14375
+ },
14376
+ __wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
13026
14377
  const obj = arg1;
13027
14378
  const ret = typeof(obj) === 'string' ? obj : undefined;
13028
14379
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -13030,67 +14381,67 @@ function __wbg_get_imports() {
13030
14381
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
13031
14382
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
13032
14383
  },
13033
- __wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
14384
+ __wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
13034
14385
  throw new Error(getStringFromWasm0(arg0, arg1));
13035
14386
  },
13036
- __wbg__wbg_cb_unref_997e73d32238e655: function(arg0) {
14387
+ __wbg__wbg_cb_unref_dcc1a90847f04c41: function(arg0) {
13037
14388
  arg0._wbg_cb_unref();
13038
14389
  },
13039
- __wbg_abort_03f8c5804715cb9a: function(arg0, arg1) {
14390
+ __wbg_abort_334e7f918b7c5047: function(arg0, arg1) {
13040
14391
  arg0.abort(arg1);
13041
14392
  },
13042
- __wbg_abort_76dea11221098ae5: function(arg0) {
14393
+ __wbg_abort_f78b99d80248bacb: function(arg0) {
13043
14394
  arg0.abort();
13044
14395
  },
13045
- __wbg_append_66f1ae7ff7ad65c3: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
14396
+ __wbg_append_1938ed58fb5613b8: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
13046
14397
  arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
13047
14398
  }, arguments); },
13048
- __wbg_append_8e87c13f0f08f8cd: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
13049
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
13050
- }, arguments); },
13051
- __wbg_append_df9039bc9160a880: function() { return handleError(function (arg0, arg1, arg2, arg3) {
14399
+ __wbg_append_627a9b311ac9993b: function() { return handleError(function (arg0, arg1, arg2, arg3) {
13052
14400
  arg0.append(getStringFromWasm0(arg1, arg2), arg3);
13053
14401
  }, arguments); },
13054
- __wbg_append_e6bfd64552783e08: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
14402
+ __wbg_append_9b7024062a618f5d: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
14403
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
14404
+ }, arguments); },
14405
+ __wbg_append_cfa1814e91387699: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4, arg5) {
13055
14406
  arg0.append(getStringFromWasm0(arg1, arg2), arg3, getStringFromWasm0(arg4, arg5));
13056
14407
  }, arguments); },
13057
- __wbg_arrayBuffer_06f3da76f071d37f: function() { return handleError(function (arg0) {
14408
+ __wbg_arrayBuffer_f07be74819944ea2: function() { return handleError(function (arg0) {
13058
14409
  const ret = arg0.arrayBuffer();
13059
14410
  return ret;
13060
14411
  }, arguments); },
13061
- __wbg_body_9ee03724e9ad0639: function(arg0) {
14412
+ __wbg_body_4e088733babc630d: function(arg0) {
13062
14413
  const ret = arg0.body;
13063
14414
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
13064
14415
  },
13065
- __wbg_buffer_4a989bded7035f57: function(arg0) {
14416
+ __wbg_buffer_56ec2905a66f58b9: function(arg0) {
13066
14417
  const ret = arg0.buffer;
13067
14418
  return ret;
13068
14419
  },
13069
- __wbg_byobRequest_f161fc37241dd3d4: function(arg0) {
14420
+ __wbg_byobRequest_54f7ce41d584549a: function(arg0) {
13070
14421
  const ret = arg0.byobRequest;
13071
14422
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
13072
14423
  },
13073
- __wbg_byteLength_0ddb1795e2c7e689: function(arg0) {
14424
+ __wbg_byteLength_9f985b8373f1f3fe: function(arg0) {
13074
14425
  const ret = arg0.byteLength;
13075
14426
  return ret;
13076
14427
  },
13077
- __wbg_byteOffset_46eb015f52b6ad7d: function(arg0) {
14428
+ __wbg_byteOffset_0bd5a6a03553639c: function(arg0) {
13078
14429
  const ret = arg0.byteOffset;
13079
14430
  return ret;
13080
14431
  },
13081
- __wbg_call_269c5566fbede3eb: function() { return handleError(function (arg0, arg1) {
13082
- const ret = arg0.call(arg1);
14432
+ __wbg_call_187d372bd5fdd4aa: function() { return handleError(function (arg0, arg1, arg2) {
14433
+ const ret = arg0.call(arg1, arg2);
13083
14434
  return ret;
13084
14435
  }, arguments); },
13085
- __wbg_call_6bcf8d3e20937e46: function() { return handleError(function (arg0, arg1, arg2) {
13086
- const ret = arg0.call(arg1, arg2);
14436
+ __wbg_call_6137034ef55c9d0f: function() { return handleError(function (arg0, arg1) {
14437
+ const ret = arg0.call(arg1);
13087
14438
  return ret;
13088
14439
  }, arguments); },
13089
- __wbg_cancel_c076350a7e8954be: function(arg0) {
14440
+ __wbg_cancel_7c2a08c8db4c73f3: function(arg0) {
13090
14441
  const ret = arg0.cancel();
13091
14442
  return ret;
13092
14443
  },
13093
- __wbg_catch_e2134ef6dcdb69ed: function(arg0, arg1) {
14444
+ __wbg_catch_92594c2d17f55f12: function(arg0, arg1) {
13094
14445
  const ret = arg0.catch(arg1);
13095
14446
  return ret;
13096
14447
  },
@@ -13106,32 +14457,32 @@ function __wbg_get_imports() {
13106
14457
  const ret = clearTimeout(arg0);
13107
14458
  return ret;
13108
14459
  },
13109
- __wbg_close_22882088c136df25: function() { return handleError(function (arg0) {
14460
+ __wbg_close_185286988f30f252: function() { return handleError(function (arg0) {
13110
14461
  arg0.close();
13111
14462
  }, arguments); },
13112
- __wbg_close_8b609460dd26e367: function() { return handleError(function (arg0) {
14463
+ __wbg_close_748f26698dabe269: function() { return handleError(function (arg0) {
13113
14464
  arg0.close();
13114
14465
  }, arguments); },
13115
- __wbg_done_cffed884d87aa22e: function(arg0) {
14466
+ __wbg_done_b41a1d26cdb37fb6: function(arg0) {
13116
14467
  const ret = arg0.done;
13117
14468
  return ret;
13118
14469
  },
13119
- __wbg_enqueue_6cb545d22db14f33: function() { return handleError(function (arg0, arg1) {
14470
+ __wbg_enqueue_4a01c128f9a0de16: function() { return handleError(function (arg0, arg1) {
13120
14471
  arg0.enqueue(arg1);
13121
14472
  }, arguments); },
13122
- __wbg_entries_972a87586902cf87: function(arg0) {
13123
- const ret = Object.entries(arg0);
14473
+ __wbg_entries_b55ec7e0dc443355: function(arg0) {
14474
+ const ret = arg0.entries();
13124
14475
  return ret;
13125
14476
  },
13126
- __wbg_entries_f9de04c09a57314e: function(arg0) {
13127
- const ret = arg0.entries();
14477
+ __wbg_entries_fb6397112b1de25f: function(arg0) {
14478
+ const ret = Object.entries(arg0);
13128
14479
  return ret;
13129
14480
  },
13130
14481
  __wbg_fetch_7a37768ab67c5bd8: function(arg0) {
13131
14482
  const ret = fetch(arg0);
13132
14483
  return ret;
13133
14484
  },
13134
- __wbg_fetch_920242d59bac2026: function(arg0, arg1) {
14485
+ __wbg_fetch_efc64baf325b084d: function(arg0, arg1) {
13135
14486
  const ret = arg0.fetch(arg1);
13136
14487
  return ret;
13137
14488
  },
@@ -13139,35 +14490,35 @@ function __wbg_get_imports() {
13139
14490
  const ret = arg0.getReader();
13140
14491
  return ret;
13141
14492
  }, arguments); },
13142
- __wbg_get_6cf5a4d4d8ad3c5a: function() { return handleError(function (arg0, arg1) {
14493
+ __wbg_get_658f6698067d9515: function() { return handleError(function (arg0, arg1) {
13143
14494
  const ret = Reflect.get(arg0, arg1);
13144
14495
  return ret;
13145
14496
  }, arguments); },
13146
- __wbg_get_b1f0ab13c737f856: function(arg0, arg1) {
14497
+ __wbg_get_6c896e0571ddae51: function(arg0, arg1) {
13147
14498
  const ret = arg0[arg1 >>> 0];
13148
14499
  return ret;
13149
14500
  },
13150
- __wbg_get_done_a668aa62d81fad70: function(arg0) {
14501
+ __wbg_get_done_7020b91c987365c7: function(arg0) {
13151
14502
  const ret = arg0.done;
13152
14503
  return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
13153
14504
  },
13154
- __wbg_get_unchecked_363572bdd397d473: function(arg0, arg1) {
14505
+ __wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
13155
14506
  const ret = arg0[arg1 >>> 0];
13156
14507
  return ret;
13157
14508
  },
13158
- __wbg_get_value_6c62a77c168d825a: function(arg0) {
14509
+ __wbg_get_value_87fbd6ad1283f2e7: function(arg0) {
13159
14510
  const ret = arg0.value;
13160
14511
  return ret;
13161
14512
  },
13162
- __wbg_has_464f8b9416279d65: function() { return handleError(function (arg0, arg1) {
14513
+ __wbg_has_5d6706e5209576c1: function() { return handleError(function (arg0, arg1) {
13163
14514
  const ret = Reflect.has(arg0, arg1);
13164
14515
  return ret;
13165
14516
  }, arguments); },
13166
- __wbg_headers_2594464ff62969f3: function(arg0) {
14517
+ __wbg_headers_eba93595f8944c2f: function(arg0) {
13167
14518
  const ret = arg0.headers;
13168
14519
  return ret;
13169
14520
  },
13170
- __wbg_instanceof_ArrayBuffer_d4ff01f8247925ae: function(arg0) {
14521
+ __wbg_instanceof_ArrayBuffer_a99f175873e5d9b8: function(arg0) {
13171
14522
  let result;
13172
14523
  try {
13173
14524
  result = arg0 instanceof ArrayBuffer;
@@ -13177,7 +14528,7 @@ function __wbg_get_imports() {
13177
14528
  const ret = result;
13178
14529
  return ret;
13179
14530
  },
13180
- __wbg_instanceof_Map_1ff6a2b54c899f0d: function(arg0) {
14531
+ __wbg_instanceof_Map_b2611749102d7ba3: function(arg0) {
13181
14532
  let result;
13182
14533
  try {
13183
14534
  result = arg0 instanceof Map;
@@ -13187,7 +14538,7 @@ function __wbg_get_imports() {
13187
14538
  const ret = result;
13188
14539
  return ret;
13189
14540
  },
13190
- __wbg_instanceof_Response_6366a785e400039b: function(arg0) {
14541
+ __wbg_instanceof_Response_b8758567269c30b2: function(arg0) {
13191
14542
  let result;
13192
14543
  try {
13193
14544
  result = arg0 instanceof Response;
@@ -13197,7 +14548,7 @@ function __wbg_get_imports() {
13197
14548
  const ret = result;
13198
14549
  return ret;
13199
14550
  },
13200
- __wbg_instanceof_Uint8Array_598adc0fef426aa8: function(arg0) {
14551
+ __wbg_instanceof_Uint8Array_828cef2aaacafc31: function(arg0) {
13201
14552
  let result;
13202
14553
  try {
13203
14554
  result = arg0 instanceof Uint8Array;
@@ -13207,70 +14558,70 @@ function __wbg_get_imports() {
13207
14558
  const ret = result;
13208
14559
  return ret;
13209
14560
  },
13210
- __wbg_isArray_5674713bb7b79043: function(arg0) {
14561
+ __wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
13211
14562
  const ret = Array.isArray(arg0);
13212
14563
  return ret;
13213
14564
  },
13214
- __wbg_isSafeInteger_8f51c743827d1ec5: function(arg0) {
14565
+ __wbg_isSafeInteger_717808ad6a54bd9e: function(arg0) {
13215
14566
  const ret = Number.isSafeInteger(arg0);
13216
14567
  return ret;
13217
14568
  },
13218
- __wbg_iterator_22ddeb808cf55a6f: function() {
14569
+ __wbg_iterator_e3c31c892080e444: function() {
13219
14570
  const ret = Symbol.iterator;
13220
14571
  return ret;
13221
14572
  },
13222
- __wbg_length_31bdaf014f5fbde2: function(arg0) {
14573
+ __wbg_length_7f3c00c40364105e: function(arg0) {
13223
14574
  const ret = arg0.length;
13224
14575
  return ret;
13225
14576
  },
13226
- __wbg_length_4e1adc0d42e23620: function(arg0) {
14577
+ __wbg_length_d4bdea10311bd9cf: function(arg0) {
13227
14578
  const ret = arg0.length;
13228
14579
  return ret;
13229
14580
  },
13230
- __wbg_new_0afe64b4dc16ab74: function() { return handleError(function () {
13231
- const ret = new Headers();
13232
- return ret;
13233
- }, arguments); },
13234
- __wbg_new_1da3429bc3c4541c: function(arg0) {
14581
+ __wbg_new_1dbf7428bba60a42: function(arg0) {
13235
14582
  const ret = new Uint8Array(arg0);
13236
14583
  return ret;
13237
14584
  },
13238
- __wbg_new_44f0ed775ff3a5ad: function() { return handleError(function () {
13239
- const ret = new FormData();
13240
- return ret;
13241
- }, arguments); },
13242
- __wbg_new_8d36e20aa758e411: function() {
14585
+ __wbg_new_28744009d011f847: function() {
13243
14586
  const ret = new Map();
13244
14587
  return ret;
13245
14588
  },
13246
- __wbg_new_a32a1ab6c6655abe: function(arg0, arg1) {
13247
- const ret = new Error(getStringFromWasm0(arg0, arg1));
13248
- return ret;
13249
- },
13250
- __wbg_new_baa0a0207935dd43: function() { return handleError(function () {
14589
+ __wbg_new_2e41357094e99294: function() { return handleError(function () {
13251
14590
  const ret = new AbortController();
13252
14591
  return ret;
13253
14592
  }, arguments); },
13254
- __wbg_new_bebc3f4757acf305: function() {
14593
+ __wbg_new_343a093a3c2ffb4e: function(arg0, arg1) {
14594
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
14595
+ return ret;
14596
+ },
14597
+ __wbg_new_617a8cdb8bb1130e: function() {
13255
14598
  const ret = new Object();
13256
14599
  return ret;
13257
14600
  },
13258
- __wbg_new_ffa92086ea89f79c: function() {
14601
+ __wbg_new_83ca405eae412a62: function() { return handleError(function () {
14602
+ const ret = new Headers();
14603
+ return ret;
14604
+ }, arguments); },
14605
+ __wbg_new_d429ac7f5b1a2c5c: function() { return handleError(function () {
14606
+ const ret = new FormData();
14607
+ return ret;
14608
+ }, arguments); },
14609
+ __wbg_new_ee2291f50781bf1d: function() {
13259
14610
  const ret = new Array();
13260
14611
  return ret;
13261
14612
  },
13262
- __wbg_new_from_slice_4ee02165f9de919e: function(arg0, arg1) {
14613
+ __wbg_new_from_slice_9a868026ffa4208a: function(arg0, arg1) {
13263
14614
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
13264
14615
  return ret;
13265
14616
  },
13266
- __wbg_new_typed_6f8b0d724fe26c07: function(arg0, arg1) {
14617
+ __wbg_new_typed_b01cb72a8af741a3: function(arg0, arg1) {
13267
14618
  try {
13268
14619
  var state0 = {a: arg0, b: arg1};
13269
14620
  var cb0 = (arg0, arg1) => {
13270
14621
  const a = state0.a;
13271
14622
  state0.a = 0;
13272
14623
  try {
13273
- return wasm_bindgen__convert__closures_____invoke__h587dbcc500240430(a, state0.b, arg0, arg1);
14624
+ return wasm_bindgen__convert__closures_____invoke__h14136a31f7a759a2(a, state0.b, arg0, arg1);
13274
14625
  } finally {
13275
14626
  state0.a = a;
13276
14627
  }
@@ -13281,23 +14632,23 @@ function __wbg_get_imports() {
13281
14632
  state0.a = 0;
13282
14633
  }
13283
14634
  },
13284
- __wbg_new_with_byte_offset_and_length_492c969e8b5da8a4: function(arg0, arg1, arg2) {
14635
+ __wbg_new_with_byte_offset_and_length_2f5d7fc2a828b74d: function(arg0, arg1, arg2) {
13285
14636
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
13286
14637
  return ret;
13287
14638
  },
13288
- __wbg_new_with_str_and_init_2f31a77deda127fd: function() { return handleError(function (arg0, arg1, arg2) {
14639
+ __wbg_new_with_str_and_init_4618dee4e950224f: function() { return handleError(function (arg0, arg1, arg2) {
13289
14640
  const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
13290
14641
  return ret;
13291
14642
  }, arguments); },
13292
- __wbg_new_with_u8_array_sequence_and_options_19dab14721682b5e: function() { return handleError(function (arg0, arg1) {
14643
+ __wbg_new_with_u8_array_sequence_and_options_fccc08fe93f4b8fd: function() { return handleError(function (arg0, arg1) {
13293
14644
  const ret = new Blob(arg0, arg1);
13294
14645
  return ret;
13295
14646
  }, arguments); },
13296
- __wbg_next_95053e306b1c3aed: function(arg0) {
14647
+ __wbg_next_33784799010f1bbe: function(arg0) {
13297
14648
  const ret = arg0.next;
13298
14649
  return ret;
13299
14650
  },
13300
- __wbg_next_f31ecb8646d2c605: function() { return handleError(function (arg0) {
14651
+ __wbg_next_f4aac29c42af995c: function() { return handleError(function (arg0) {
13301
14652
  const ret = arg0.next();
13302
14653
  return ret;
13303
14654
  }, arguments); },
@@ -13305,7 +14656,7 @@ function __wbg_get_imports() {
13305
14656
  const ret = arg0.now();
13306
14657
  return ret;
13307
14658
  },
13308
- __wbg_parse_6937a9050adfb0e1: function() { return handleError(function (arg0, arg1) {
14659
+ __wbg_parse_0fc53dead14b3b42: function() { return handleError(function (arg0, arg1) {
13309
14660
  const ret = JSON.parse(getStringFromWasm0(arg0, arg1));
13310
14661
  return ret;
13311
14662
  }, arguments); },
@@ -13313,32 +14664,32 @@ function __wbg_get_imports() {
13313
14664
  const ret = arg0.performance;
13314
14665
  return ret;
13315
14666
  },
13316
- __wbg_prototypesetcall_ae9f5e7459250748: function(arg0, arg1, arg2) {
14667
+ __wbg_prototypesetcall_bc27214492979395: function(arg0, arg1, arg2) {
13317
14668
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
13318
14669
  },
13319
- __wbg_push_bfdf956ba476f65b: function(arg0, arg1) {
14670
+ __wbg_push_2baf45db356cf468: function(arg0, arg1) {
13320
14671
  const ret = arg0.push(arg1);
13321
14672
  return ret;
13322
14673
  },
13323
- __wbg_queueMicrotask_85c90f6987555d65: function(arg0) {
14674
+ __wbg_queueMicrotask_9833f9a49df95a49: function(arg0) {
13324
14675
  const ret = arg0.queueMicrotask;
13325
14676
  return ret;
13326
14677
  },
13327
- __wbg_queueMicrotask_f6a1fa10b81d1fc0: function(arg0) {
14678
+ __wbg_queueMicrotask_a72f977e97f23c5f: function(arg0) {
13328
14679
  queueMicrotask(arg0);
13329
14680
  },
13330
- __wbg_read_31091533ffadf971: function(arg0) {
14681
+ __wbg_read_2a943774344c9728: function(arg0) {
13331
14682
  const ret = arg0.read();
13332
14683
  return ret;
13333
14684
  },
13334
- __wbg_releaseLock_1538945f5f183d9f: function(arg0) {
14685
+ __wbg_releaseLock_eb64cd83aa9fcfe4: function(arg0) {
13335
14686
  arg0.releaseLock();
13336
14687
  },
13337
- __wbg_resolve_35ec7e0c6af4c82c: function(arg0) {
14688
+ __wbg_resolve_0076e10020304ede: function(arg0) {
13338
14689
  const ret = Promise.resolve(arg0);
13339
14690
  return ret;
13340
14691
  },
13341
- __wbg_respond_83a71686e927ca32: function() { return handleError(function (arg0, arg1) {
14692
+ __wbg_respond_c102fabcc79e5ef0: function() { return handleError(function (arg0, arg1) {
13342
14693
  arg0.respond(arg1 >>> 0);
13343
14694
  }, arguments); },
13344
14695
  __wbg_setTimeout_56bcdccbad22fd44: function() { return handleError(function (arg0, arg1) {
@@ -13349,97 +14700,97 @@ function __wbg_get_imports() {
13349
14700
  const ret = setTimeout(arg0, arg1);
13350
14701
  return ret;
13351
14702
  },
13352
- __wbg_set_13d25b81ab403f5e: function(arg0, arg1, arg2) {
13353
- arg0[arg1 >>> 0] = arg2;
13354
- },
13355
- __wbg_set_5f2ad37e5e02dc7b: function(arg0, arg1, arg2) {
14703
+ __wbg_set_575d3ddb70fe831d: function(arg0, arg1, arg2) {
13356
14704
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
13357
14705
  },
14706
+ __wbg_set_6ae97e73113c4f0b: function(arg0, arg1, arg2) {
14707
+ const ret = arg0.set(arg1, arg2);
14708
+ return ret;
14709
+ },
13358
14710
  __wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
13359
14711
  arg0[arg1] = arg2;
13360
14712
  },
13361
- __wbg_set_bf6dde4923b9b059: function(arg0, arg1, arg2) {
13362
- const ret = arg0.set(arg1, arg2);
13363
- return ret;
14713
+ __wbg_set_bea140a88be9b277: function(arg0, arg1, arg2) {
14714
+ arg0[arg1 >>> 0] = arg2;
13364
14715
  },
13365
- __wbg_set_body_f39cee72c74a5b02: function(arg0, arg1) {
14716
+ __wbg_set_body_1fb0f1008bfc7df6: function(arg0, arg1) {
13366
14717
  arg0.body = arg1;
13367
14718
  },
13368
- __wbg_set_cache_6e8c35a5ed76edb1: function(arg0, arg1) {
14719
+ __wbg_set_cache_7507c4cc5938ccc7: function(arg0, arg1) {
13369
14720
  arg0.cache = __wbindgen_enum_RequestCache[arg1];
13370
14721
  },
13371
- __wbg_set_credentials_bf1d3e014213a571: function(arg0, arg1) {
14722
+ __wbg_set_credentials_e0dcce31ca532b7d: function(arg0, arg1) {
13372
14723
  arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
13373
14724
  },
13374
- __wbg_set_headers_31d373f68f28bf76: function(arg0, arg1) {
14725
+ __wbg_set_headers_40ad33dcf016613f: function(arg0, arg1) {
13375
14726
  arg0.headers = arg1;
13376
14727
  },
13377
- __wbg_set_method_82e6c3c083da0734: function(arg0, arg1, arg2) {
14728
+ __wbg_set_method_dcb32343247ec427: function(arg0, arg1, arg2) {
13378
14729
  arg0.method = getStringFromWasm0(arg1, arg2);
13379
14730
  },
13380
- __wbg_set_mode_f7e56ed768d0ade0: function(arg0, arg1) {
14731
+ __wbg_set_mode_74e772635acb96ec: function(arg0, arg1) {
13381
14732
  arg0.mode = __wbindgen_enum_RequestMode[arg1];
13382
14733
  },
13383
- __wbg_set_referrer_13cf56bbccbb2ceb: function(arg0, arg1, arg2) {
14734
+ __wbg_set_referrer_efd0fb956d6b70b2: function(arg0, arg1, arg2) {
13384
14735
  arg0.referrer = getStringFromWasm0(arg1, arg2);
13385
14736
  },
13386
- __wbg_set_referrer_policy_dac1caa6e937479a: function(arg0, arg1) {
14737
+ __wbg_set_referrer_policy_465382f52c1a03d3: function(arg0, arg1) {
13387
14738
  arg0.referrerPolicy = __wbindgen_enum_ReferrerPolicy[arg1];
13388
14739
  },
13389
- __wbg_set_signal_f4b32f40f19786f4: function(arg0, arg1) {
14740
+ __wbg_set_signal_2dbd377604627f26: function(arg0, arg1) {
13390
14741
  arg0.signal = arg1;
13391
14742
  },
13392
- __wbg_set_type_69954a3c7c11a724: function(arg0, arg1, arg2) {
14743
+ __wbg_set_type_dcf75b2afa60c694: function(arg0, arg1, arg2) {
13393
14744
  arg0.type = getStringFromWasm0(arg1, arg2);
13394
14745
  },
13395
- __wbg_signal_45367c6c2255877a: function(arg0) {
14746
+ __wbg_signal_e5a49a2d9c65b7f6: function(arg0) {
13396
14747
  const ret = arg0.signal;
13397
14748
  return ret;
13398
14749
  },
13399
- __wbg_static_accessor_GLOBAL_8eb4cd83130a11a0: function() {
14750
+ __wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
13400
14751
  const ret = typeof global === 'undefined' ? null : global;
13401
14752
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
13402
14753
  },
13403
- __wbg_static_accessor_GLOBAL_THIS_1e7044f654e934db: function() {
14754
+ __wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
13404
14755
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
13405
14756
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
13406
14757
  },
13407
- __wbg_static_accessor_SELF_d8b50611246a6d92: function() {
14758
+ __wbg_static_accessor_SELF_0b583911f537483a: function() {
13408
14759
  const ret = typeof self === 'undefined' ? null : self;
13409
14760
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
13410
14761
  },
13411
- __wbg_static_accessor_WINDOW_fd0bc376bf0f8b42: function() {
14762
+ __wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
13412
14763
  const ret = typeof window === 'undefined' ? null : window;
13413
14764
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
13414
14765
  },
13415
- __wbg_status_88ccc72fe7bea621: function(arg0) {
14766
+ __wbg_status_ce0a98d3c57125f3: function(arg0) {
13416
14767
  const ret = arg0.status;
13417
14768
  return ret;
13418
14769
  },
13419
- __wbg_text_b00323a194b10fa8: function() { return handleError(function (arg0) {
14770
+ __wbg_text_ff3f476b3d6b1246: function() { return handleError(function (arg0) {
13420
14771
  const ret = arg0.text();
13421
14772
  return ret;
13422
14773
  }, arguments); },
13423
- __wbg_then_7a850dae4493f353: function(arg0, arg1, arg2) {
14774
+ __wbg_then_c949d5a25a4e78f8: function(arg0, arg1, arg2) {
13424
14775
  const ret = arg0.then(arg1, arg2);
13425
14776
  return ret;
13426
14777
  },
13427
- __wbg_then_b830475380919203: function(arg0, arg1) {
14778
+ __wbg_then_e71170d78fcf8954: function(arg0, arg1) {
13428
14779
  const ret = arg0.then(arg1);
13429
14780
  return ret;
13430
14781
  },
13431
- __wbg_url_f1948b0d7f881e02: function(arg0, arg1) {
14782
+ __wbg_url_8e28edeab4cd6bed: function(arg0, arg1) {
13432
14783
  const ret = arg1.url;
13433
14784
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
13434
14785
  const len1 = WASM_VECTOR_LEN;
13435
14786
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
13436
14787
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
13437
14788
  },
13438
- __wbg_value_c227f843d21da141: function(arg0) {
14789
+ __wbg_value_f3c585ee8f5ba40c: function(arg0) {
13439
14790
  const ret = arg0.value;
13440
14791
  return ret;
13441
14792
  },
13442
- __wbg_view_d8c7b26e4d4650f1: function(arg0) {
14793
+ __wbg_view_9c570f33e8d6ab96: function(arg0) {
13443
14794
  const ret = arg0.view;
13444
14795
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
13445
14796
  },
@@ -13672,23 +15023,23 @@ function __wbg_get_imports() {
13672
15023
  return ret;
13673
15024
  },
13674
15025
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
13675
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 923, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13676
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__hdbfd17fbffcf2c62);
15026
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 958, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
15027
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0);
13677
15028
  return ret;
13678
15029
  },
13679
15030
  __wbindgen_generic_0000000000000002: function(arg0, arg1) {
13680
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 938, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
13681
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h02a7923578afc9b7);
15031
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 976, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
15032
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h49dc34f70620523b);
13682
15033
  return ret;
13683
15034
  },
13684
15035
  __wbindgen_generic_0000000000000003: function(arg0, arg1) {
13685
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 838, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13686
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h53a93f9ee7253a16);
15036
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 873, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
15037
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8);
13687
15038
  return ret;
13688
15039
  },
13689
15040
  __wbindgen_generic_0000000000000004: function(arg0, arg1) {
13690
- // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 871, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
13691
- const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h2b32076d58b95548);
15041
+ // Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [], shim_idx: 906, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
15042
+ const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6);
13692
15043
  return ret;
13693
15044
  },
13694
15045
  __wbindgen_generic_0000000000000005: function(arg0) {
@@ -13734,27 +15085,27 @@ function __wbg_get_imports() {
13734
15085
  };
13735
15086
  }
13736
15087
 
13737
- function wasm_bindgen__convert__closures_____invoke__h53a93f9ee7253a16(arg0, arg1) {
13738
- wasm.wasm_bindgen__convert__closures_____invoke__h53a93f9ee7253a16(arg0, arg1);
15088
+ function wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8(arg0, arg1) {
15089
+ wasm.wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8(arg0, arg1);
13739
15090
  }
13740
15091
 
13741
- function wasm_bindgen__convert__closures_____invoke__h2b32076d58b95548(arg0, arg1) {
13742
- wasm.wasm_bindgen__convert__closures_____invoke__h2b32076d58b95548(arg0, arg1);
15092
+ function wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6(arg0, arg1) {
15093
+ wasm.wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6(arg0, arg1);
13743
15094
  }
13744
15095
 
13745
- function wasm_bindgen__convert__closures_____invoke__hdbfd17fbffcf2c62(arg0, arg1, arg2) {
13746
- wasm.wasm_bindgen__convert__closures_____invoke__hdbfd17fbffcf2c62(arg0, arg1, arg2);
15096
+ function wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0(arg0, arg1, arg2) {
15097
+ wasm.wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0(arg0, arg1, arg2);
13747
15098
  }
13748
15099
 
13749
- function wasm_bindgen__convert__closures_____invoke__h02a7923578afc9b7(arg0, arg1, arg2) {
13750
- const ret = wasm.wasm_bindgen__convert__closures_____invoke__h02a7923578afc9b7(arg0, arg1, arg2);
15100
+ function wasm_bindgen__convert__closures_____invoke__h49dc34f70620523b(arg0, arg1, arg2) {
15101
+ const ret = wasm.wasm_bindgen__convert__closures_____invoke__h49dc34f70620523b(arg0, arg1, arg2);
13751
15102
  if (ret[1]) {
13752
15103
  throw takeFromExternrefTable0(ret[0]);
13753
15104
  }
13754
15105
  }
13755
15106
 
13756
- function wasm_bindgen__convert__closures_____invoke__h587dbcc500240430(arg0, arg1, arg2, arg3) {
13757
- wasm.wasm_bindgen__convert__closures_____invoke__h587dbcc500240430(arg0, arg1, arg2, arg3);
15107
+ function wasm_bindgen__convert__closures_____invoke__h14136a31f7a759a2(arg0, arg1, arg2, arg3) {
15108
+ wasm.wasm_bindgen__convert__closures_____invoke__h14136a31f7a759a2(arg0, arg1, arg2, arg3);
13758
15109
  }
13759
15110
 
13760
15111