@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.
@@ -128,7 +128,25 @@ export class IntoUnderlyingSource {
128
128
  export class WasmAssistantMessage {
129
129
  free(): void;
130
130
  [Symbol.dispose](): void;
131
+ clearFunctionCall(): void;
132
+ /**
133
+ * Return an independent handle for an ownership-taking API.
134
+ *
135
+ * Use `copyForTransfer()` for each class value placed in an array when the original
136
+ * handle must remain usable.
137
+ */
138
+ copyForTransfer(): WasmAssistantMessage;
131
139
  static default(): WasmAssistantMessage;
140
+ /**
141
+ * Takes ownership of `functionCall`.
142
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
143
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
144
+ * keep a handle you already hold, build with `default()` and assign the property instead:
145
+ * the generated setter borrows and leaves your handle alive.
146
+ * Takes ownership of every element in `toolCalls`.
147
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
148
+ * copy each retained element with `copyForTransfer()` before passing the array.
149
+ */
132
150
  constructor(content?: string | null, name?: string | null, toolCalls?: WasmToolCall[] | null, refusal?: string | null, functionCall?: WasmFunctionCall | null, reasoningContent?: string | null);
133
151
  /**
134
152
  * Return all `AssistantPart.OutputAudio` parts in the response.
@@ -158,15 +176,32 @@ export class WasmAssistantMessage {
158
176
  text(): string | undefined;
159
177
  get content(): string | undefined;
160
178
  set content(value: string | null | undefined);
179
+ /**
180
+ * Returns a detached copy of `functionCall`.
181
+ *
182
+ * Changes to the returned value do not update this object. To update `functionCall`,
183
+ * read it, modify the copy, then assign the copy back to `functionCall`.
184
+ */
161
185
  get functionCall(): WasmFunctionCall | undefined;
162
- set functionCall(value: WasmFunctionCall | null | undefined);
186
+ set functionCall(value: WasmFunctionCall);
163
187
  get name(): string | undefined;
164
188
  set name(value: string | null | undefined);
165
189
  get reasoningContent(): string | undefined;
166
190
  set reasoningContent(value: string | null | undefined);
167
191
  get refusal(): string | undefined;
168
192
  set refusal(value: string | null | undefined);
193
+ /**
194
+ * Returns detached copies of the elements in `toolCalls`.
195
+ *
196
+ * Changes to the returned values do not update this object. Modify the copies,
197
+ * then assign the array back to `toolCalls`.
198
+ */
169
199
  get toolCalls(): Array<any> | undefined;
200
+ /**
201
+ * Takes ownership of every element in `toolCalls`.
202
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
203
+ * element with `copyForTransfer()` before passing the array.
204
+ */
170
205
  set toolCalls(value: WasmToolCall[] | null | undefined);
171
206
  }
172
207
 
@@ -179,12 +214,14 @@ export class WasmAssistantMessage {
179
214
  export class WasmAssistantPart {
180
215
  free(): void;
181
216
  [Symbol.dispose](): void;
217
+ clearAudio(): void;
218
+ clearImageUrl(): void;
182
219
  static default(): WasmAssistantPart;
183
220
  constructor();
184
221
  get audio(): WasmAudioContent | undefined;
185
- set audio(value: WasmAudioContent | null | undefined);
222
+ set audio(value: WasmAudioContent);
186
223
  get imageUrl(): WasmImageUrl | undefined;
187
- set imageUrl(value: WasmImageUrl | null | undefined);
224
+ set imageUrl(value: WasmImageUrl);
188
225
  get refusal(): string | undefined;
189
226
  set refusal(value: string | null | undefined);
190
227
  get text(): string | undefined;
@@ -201,6 +238,13 @@ export class WasmAssistantPart {
201
238
  export class WasmAudioContent {
202
239
  free(): void;
203
240
  [Symbol.dispose](): void;
241
+ /**
242
+ * Return an independent handle for an ownership-taking API.
243
+ *
244
+ * Use `copyForTransfer()` for each class value placed in an array when the original
245
+ * handle must remain usable.
246
+ */
247
+ copyForTransfer(): WasmAudioContent;
204
248
  static default(): WasmAudioContent;
205
249
  constructor(data?: string | null, format?: string | null);
206
250
  data: string;
@@ -213,6 +257,13 @@ export class WasmAudioContent {
213
257
  export class WasmAuthConfig {
214
258
  free(): void;
215
259
  [Symbol.dispose](): void;
260
+ /**
261
+ * Return an independent handle for an ownership-taking API.
262
+ *
263
+ * Use `copyForTransfer()` for each class value placed in an array when the original
264
+ * handle must remain usable.
265
+ */
266
+ copyForTransfer(): WasmAuthConfig;
216
267
  static default(): WasmAuthConfig;
217
268
  constructor(authType: WasmAuthType, envVar?: string | null);
218
269
  get authType(): string;
@@ -250,6 +301,13 @@ export enum WasmAuthType {
250
301
  export class WasmBatchListQuery {
251
302
  free(): void;
252
303
  [Symbol.dispose](): void;
304
+ /**
305
+ * Return an independent handle for an ownership-taking API.
306
+ *
307
+ * Use `copyForTransfer()` for each class value placed in an array when the original
308
+ * handle must remain usable.
309
+ */
310
+ copyForTransfer(): WasmBatchListQuery;
253
311
  static default(): WasmBatchListQuery;
254
312
  constructor(limit?: number | null, after?: string | null);
255
313
  get after(): string | undefined;
@@ -264,8 +322,26 @@ export class WasmBatchListQuery {
264
322
  export class WasmBatchListResponse {
265
323
  free(): void;
266
324
  [Symbol.dispose](): void;
325
+ /**
326
+ * Return an independent handle for an ownership-taking API.
327
+ *
328
+ * Use `copyForTransfer()` for each class value placed in an array when the original
329
+ * handle must remain usable.
330
+ */
331
+ copyForTransfer(): WasmBatchListResponse;
267
332
  static default(): WasmBatchListResponse;
333
+ /**
334
+ * Takes ownership of every element in `data`.
335
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
336
+ * copy each retained element with `copyForTransfer()` before passing the array.
337
+ */
268
338
  constructor(object?: string | null, data?: WasmBatchObject[] | null, hasMore?: boolean | null, firstId?: string | null, lastId?: string | null);
339
+ /**
340
+ * Returns detached copies of the elements in `data`.
341
+ *
342
+ * Changes to the returned values do not update this object. Modify the copies,
343
+ * then assign the array back to `data`.
344
+ */
269
345
  data: WasmBatchObject[];
270
346
  get firstId(): string | undefined;
271
347
  set firstId(value: string | null | undefined);
@@ -282,7 +358,22 @@ export class WasmBatchListResponse {
282
358
  export class WasmBatchObject {
283
359
  free(): void;
284
360
  [Symbol.dispose](): void;
361
+ clearRequestCounts(): void;
362
+ /**
363
+ * Return an independent handle for an ownership-taking API.
364
+ *
365
+ * Use `copyForTransfer()` for each class value placed in an array when the original
366
+ * handle must remain usable.
367
+ */
368
+ copyForTransfer(): WasmBatchObject;
285
369
  static default(): WasmBatchObject;
370
+ /**
371
+ * Takes ownership of `requestCounts`.
372
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
373
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
374
+ * keep a handle you already hold, build with `default()` and assign the property instead:
375
+ * the generated setter borrows and leaves your handle alive.
376
+ */
286
377
  constructor(id?: string | null, object?: string | null, endpoint?: string | null, inputFileId?: string | null, completionWindow?: string | null, status?: WasmBatchStatus | null, createdAt?: bigint | null, outputFileId?: string | null, errorFileId?: string | null, completedAt?: bigint | null, failedAt?: bigint | null, expiredAt?: bigint | null, requestCounts?: WasmBatchRequestCounts | null, metadata?: any | null);
287
378
  get completedAt(): bigint | undefined;
288
379
  set completedAt(value: bigint | null | undefined);
@@ -302,8 +393,14 @@ export class WasmBatchObject {
302
393
  object: string;
303
394
  get outputFileId(): string | undefined;
304
395
  set outputFileId(value: string | null | undefined);
396
+ /**
397
+ * Returns a detached copy of `requestCounts`.
398
+ *
399
+ * Changes to the returned value do not update this object. To update `requestCounts`,
400
+ * read it, modify the copy, then assign the copy back to `requestCounts`.
401
+ */
305
402
  get requestCounts(): WasmBatchRequestCounts | undefined;
306
- set requestCounts(value: WasmBatchRequestCounts | null | undefined);
403
+ set requestCounts(value: WasmBatchRequestCounts);
307
404
  get status(): string;
308
405
  set status(value: WasmBatchStatus);
309
406
  }
@@ -314,6 +411,13 @@ export class WasmBatchObject {
314
411
  export class WasmBatchRequestCounts {
315
412
  free(): void;
316
413
  [Symbol.dispose](): void;
414
+ /**
415
+ * Return an independent handle for an ownership-taking API.
416
+ *
417
+ * Use `copyForTransfer()` for each class value placed in an array when the original
418
+ * handle must remain usable.
419
+ */
420
+ copyForTransfer(): WasmBatchRequestCounts;
317
421
  static default(): WasmBatchRequestCounts;
318
422
  constructor(total?: bigint | null, completed?: bigint | null, failed?: bigint | null);
319
423
  completed: bigint;
@@ -354,6 +458,13 @@ export enum WasmBatchStatus {
354
458
  export class WasmBedrockConfig {
355
459
  free(): void;
356
460
  [Symbol.dispose](): void;
461
+ /**
462
+ * Return an independent handle for an ownership-taking API.
463
+ *
464
+ * Use `copyForTransfer()` for each class value placed in an array when the original
465
+ * handle must remain usable.
466
+ */
467
+ copyForTransfer(): WasmBedrockConfig;
357
468
  static default(): WasmBedrockConfig;
358
469
  constructor(region?: string | null, crossRegionPrefix?: string | null, accessKeyId?: string | null, secretAccessKey?: string | null, sessionToken?: string | null);
359
470
  get accessKeyId(): string | undefined;
@@ -377,6 +488,13 @@ export class WasmBedrockConfig {
377
488
  export class WasmCatalogRefreshConfig {
378
489
  free(): void;
379
490
  [Symbol.dispose](): void;
491
+ /**
492
+ * Return an independent handle for an ownership-taking API.
493
+ *
494
+ * Use `copyForTransfer()` for each class value placed in an array when the original
495
+ * handle must remain usable.
496
+ */
497
+ copyForTransfer(): WasmCatalogRefreshConfig;
380
498
  static default(): WasmCatalogRefreshConfig;
381
499
  constructor(enabled?: boolean | null, sourceUrl?: string | null, ttlSeconds?: bigint | null, cachePath?: string | null);
382
500
  get cachePath(): string | undefined;
@@ -392,8 +510,32 @@ export class WasmCatalogRefreshConfig {
392
510
  export class WasmChatCompletionChunk {
393
511
  free(): void;
394
512
  [Symbol.dispose](): void;
513
+ clearUsage(): void;
514
+ /**
515
+ * Return an independent handle for an ownership-taking API.
516
+ *
517
+ * Use `copyForTransfer()` for each class value placed in an array when the original
518
+ * handle must remain usable.
519
+ */
520
+ copyForTransfer(): WasmChatCompletionChunk;
395
521
  static default(): WasmChatCompletionChunk;
522
+ /**
523
+ * Takes ownership of `usage`.
524
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
525
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
526
+ * keep a handle you already hold, build with `default()` and assign the property instead:
527
+ * the generated setter borrows and leaves your handle alive.
528
+ * Takes ownership of every element in `choices`.
529
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
530
+ * copy each retained element with `copyForTransfer()` before passing the array.
531
+ */
396
532
  constructor(id?: string | null, object?: string | null, created?: bigint | null, model?: string | null, choices?: WasmStreamChoice[] | null, usage?: WasmUsage | null, systemFingerprint?: string | null, serviceTier?: string | null);
533
+ /**
534
+ * Returns detached copies of the elements in `choices`.
535
+ *
536
+ * Changes to the returned values do not update this object. Modify the copies,
537
+ * then assign the array back to `choices`.
538
+ */
397
539
  choices: WasmStreamChoice[];
398
540
  created: bigint;
399
541
  id: string;
@@ -403,8 +545,14 @@ export class WasmChatCompletionChunk {
403
545
  set serviceTier(value: string | null | undefined);
404
546
  get systemFingerprint(): string | undefined;
405
547
  set systemFingerprint(value: string | null | undefined);
548
+ /**
549
+ * Returns a detached copy of `usage`.
550
+ *
551
+ * Changes to the returned value do not update this object. To update `usage`,
552
+ * read it, modify the copy, then assign the copy back to `usage`.
553
+ */
406
554
  get usage(): WasmUsage | undefined;
407
- set usage(value: WasmUsage | null | undefined);
555
+ set usage(value: WasmUsage);
408
556
  }
409
557
 
410
558
  /**
@@ -413,7 +561,25 @@ export class WasmChatCompletionChunk {
413
561
  export class WasmChatCompletionRequest {
414
562
  free(): void;
415
563
  [Symbol.dispose](): void;
564
+ clearStreamOptions(): void;
565
+ /**
566
+ * Return an independent handle for an ownership-taking API.
567
+ *
568
+ * Use `copyForTransfer()` for each class value placed in an array when the original
569
+ * handle must remain usable.
570
+ */
571
+ copyForTransfer(): WasmChatCompletionRequest;
416
572
  static default(): WasmChatCompletionRequest;
573
+ /**
574
+ * Takes ownership of `streamOptions`.
575
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
576
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
577
+ * keep a handle you already hold, build with `default()` and assign the property instead:
578
+ * the generated setter borrows and leaves your handle alive.
579
+ * Takes ownership of every element in `tools`.
580
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
581
+ * copy each retained element with `copyForTransfer()` before passing the array.
582
+ */
417
583
  constructor(model?: string | null, messages?: any | null, temperature?: number | null, topP?: number | null, n?: number | null, stream?: boolean | null, stop?: any | null, maxTokens?: bigint | null, presencePenalty?: number | null, frequencyPenalty?: number | null, logitBias?: any | null, user?: string | null, tools?: WasmChatCompletionTool[] | null, toolChoice?: any | null, parallelToolCalls?: boolean | null, responseFormat?: any | null, streamOptions?: WasmStreamOptions | null, seed?: bigint | null, reasoningEffort?: WasmReasoningEffort | null, modalities?: WasmModality[] | null, logprobs?: boolean | null, topLogprobs?: number | null, maxCompletionTokens?: bigint | null, serviceTier?: string | null, store?: boolean | null, metadata?: any | null, prediction?: any | null, audio?: any | null, webSearchOptions?: any | null, extraBody?: any | null);
418
584
  get audio(): any | undefined;
419
585
  set audio(value: any | null | undefined);
@@ -455,15 +621,32 @@ export class WasmChatCompletionRequest {
455
621
  set stop(value: WasmStopSequence | null | undefined);
456
622
  get store(): boolean | undefined;
457
623
  set store(value: boolean | null | undefined);
624
+ /**
625
+ * Returns a detached copy of `streamOptions`.
626
+ *
627
+ * Changes to the returned value do not update this object. To update `streamOptions`,
628
+ * read it, modify the copy, then assign the copy back to `streamOptions`.
629
+ */
458
630
  get streamOptions(): WasmStreamOptions | undefined;
459
- set streamOptions(value: WasmStreamOptions | null | undefined);
631
+ set streamOptions(value: WasmStreamOptions);
460
632
  get stream(): boolean | undefined;
461
633
  set stream(value: boolean | null | undefined);
462
634
  get temperature(): number | undefined;
463
635
  set temperature(value: number | null | undefined);
464
636
  get toolChoice(): WasmToolChoice | undefined;
465
637
  set toolChoice(value: WasmToolChoice | null | undefined);
638
+ /**
639
+ * Returns detached copies of the elements in `tools`.
640
+ *
641
+ * Changes to the returned values do not update this object. Modify the copies,
642
+ * then assign the array back to `tools`.
643
+ */
466
644
  get tools(): Array<any> | undefined;
645
+ /**
646
+ * Takes ownership of every element in `tools`.
647
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
648
+ * element with `copyForTransfer()` before passing the array.
649
+ */
467
650
  set tools(value: WasmChatCompletionTool[] | null | undefined);
468
651
  get topLogprobs(): number | undefined;
469
652
  set topLogprobs(value: number | null | undefined);
@@ -481,8 +664,32 @@ export class WasmChatCompletionRequest {
481
664
  export class WasmChatCompletionResponse {
482
665
  free(): void;
483
666
  [Symbol.dispose](): void;
667
+ clearUsage(): void;
668
+ /**
669
+ * Return an independent handle for an ownership-taking API.
670
+ *
671
+ * Use `copyForTransfer()` for each class value placed in an array when the original
672
+ * handle must remain usable.
673
+ */
674
+ copyForTransfer(): WasmChatCompletionResponse;
484
675
  static default(): WasmChatCompletionResponse;
676
+ /**
677
+ * Takes ownership of `usage`.
678
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
679
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
680
+ * keep a handle you already hold, build with `default()` and assign the property instead:
681
+ * the generated setter borrows and leaves your handle alive.
682
+ * Takes ownership of every element in `choices`.
683
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
684
+ * copy each retained element with `copyForTransfer()` before passing the array.
685
+ */
485
686
  constructor(id?: string | null, object?: string | null, created?: bigint | null, model?: string | null, choices?: WasmChoice[] | null, usage?: WasmUsage | null, systemFingerprint?: string | null, serviceTier?: string | null);
687
+ /**
688
+ * Returns detached copies of the elements in `choices`.
689
+ *
690
+ * Changes to the returned values do not update this object. Modify the copies,
691
+ * then assign the array back to `choices`.
692
+ */
486
693
  choices: WasmChoice[];
487
694
  created: bigint;
488
695
  id: string;
@@ -492,8 +699,14 @@ export class WasmChatCompletionResponse {
492
699
  set serviceTier(value: string | null | undefined);
493
700
  get systemFingerprint(): string | undefined;
494
701
  set systemFingerprint(value: string | null | undefined);
702
+ /**
703
+ * Returns a detached copy of `usage`.
704
+ *
705
+ * Changes to the returned value do not update this object. To update `usage`,
706
+ * read it, modify the copy, then assign the copy back to `usage`.
707
+ */
495
708
  get usage(): WasmUsage | undefined;
496
- set usage(value: WasmUsage | null | undefined);
709
+ set usage(value: WasmUsage);
497
710
  }
498
711
 
499
712
  /**
@@ -502,8 +715,21 @@ export class WasmChatCompletionResponse {
502
715
  export class WasmChatCompletionTool {
503
716
  free(): void;
504
717
  [Symbol.dispose](): void;
718
+ /**
719
+ * Return an independent handle for an ownership-taking API.
720
+ *
721
+ * Use `copyForTransfer()` for each class value placed in an array when the original
722
+ * handle must remain usable.
723
+ */
724
+ copyForTransfer(): WasmChatCompletionTool;
505
725
  static default(): WasmChatCompletionTool;
506
726
  constructor(toolType: WasmToolType, _function: WasmFunctionDefinition);
727
+ /**
728
+ * Returns a detached copy of `function`.
729
+ *
730
+ * Changes to the returned value do not update this object. To update `function`,
731
+ * read it, modify the copy, then assign the copy back to `function`.
732
+ */
507
733
  function: WasmFunctionDefinition;
508
734
  get toolType(): string;
509
735
  set toolType(value: WasmToolType);
@@ -515,13 +741,33 @@ export class WasmChatCompletionTool {
515
741
  export class WasmChoice {
516
742
  free(): void;
517
743
  [Symbol.dispose](): void;
744
+ /**
745
+ * Return an independent handle for an ownership-taking API.
746
+ *
747
+ * Use `copyForTransfer()` for each class value placed in an array when the original
748
+ * handle must remain usable.
749
+ */
750
+ copyForTransfer(): WasmChoice;
518
751
  static default(): WasmChoice;
752
+ /**
753
+ * Takes ownership of `message`.
754
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
755
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
756
+ * keep a handle you already hold, build with `default()` and assign the property instead:
757
+ * the generated setter borrows and leaves your handle alive.
758
+ */
519
759
  constructor(index?: number | null, message?: WasmAssistantMessage | null, finishReason?: WasmFinishReason | null, logprobs?: any | null);
520
760
  get finishReason(): string | undefined;
521
761
  set finishReason(value: WasmFinishReason | null | undefined);
522
762
  index: number;
523
763
  get logprobs(): any | undefined;
524
764
  set logprobs(value: any | null | undefined);
765
+ /**
766
+ * Returns a detached copy of `message`.
767
+ *
768
+ * Changes to the returned value do not update this object. To update `message`,
769
+ * read it, modify the copy, then assign the copy back to `message`.
770
+ */
525
771
  message: WasmAssistantMessage;
526
772
  }
527
773
 
@@ -531,14 +777,17 @@ export class WasmChoice {
531
777
  export class WasmContentPart {
532
778
  free(): void;
533
779
  [Symbol.dispose](): void;
780
+ clearDocument(): void;
781
+ clearImageUrl(): void;
782
+ clearInputAudio(): void;
534
783
  static default(): WasmContentPart;
535
784
  constructor();
536
785
  get document(): WasmDocumentContent | undefined;
537
- set document(value: WasmDocumentContent | null | undefined);
786
+ set document(value: WasmDocumentContent);
538
787
  get imageUrl(): WasmImageUrl | undefined;
539
- set imageUrl(value: WasmImageUrl | null | undefined);
788
+ set imageUrl(value: WasmImageUrl);
540
789
  get inputAudio(): WasmAudioContent | undefined;
541
- set inputAudio(value: WasmAudioContent | null | undefined);
790
+ set inputAudio(value: WasmAudioContent);
542
791
  get text(): string | undefined;
543
792
  set text(value: string | null | undefined);
544
793
  type: string;
@@ -550,6 +799,13 @@ export class WasmContentPart {
550
799
  export class WasmCreateBatchRequest {
551
800
  free(): void;
552
801
  [Symbol.dispose](): void;
802
+ /**
803
+ * Return an independent handle for an ownership-taking API.
804
+ *
805
+ * Use `copyForTransfer()` for each class value placed in an array when the original
806
+ * handle must remain usable.
807
+ */
808
+ copyForTransfer(): WasmCreateBatchRequest;
553
809
  static default(): WasmCreateBatchRequest;
554
810
  constructor(inputFileId?: string | null, endpoint?: string | null, completionWindow?: string | null, metadata?: any | null);
555
811
  completionWindow: string;
@@ -565,6 +821,13 @@ export class WasmCreateBatchRequest {
565
821
  export class WasmCreateFileRequest {
566
822
  free(): void;
567
823
  [Symbol.dispose](): void;
824
+ /**
825
+ * Return an independent handle for an ownership-taking API.
826
+ *
827
+ * Use `copyForTransfer()` for each class value placed in an array when the original
828
+ * handle must remain usable.
829
+ */
830
+ copyForTransfer(): WasmCreateFileRequest;
568
831
  static default(): WasmCreateFileRequest;
569
832
  constructor(file?: string | null, purpose?: WasmFilePurpose | null, filename?: string | null);
570
833
  file: string;
@@ -580,6 +843,13 @@ export class WasmCreateFileRequest {
580
843
  export class WasmCreateImageRequest {
581
844
  free(): void;
582
845
  [Symbol.dispose](): void;
846
+ /**
847
+ * Return an independent handle for an ownership-taking API.
848
+ *
849
+ * Use `copyForTransfer()` for each class value placed in an array when the original
850
+ * handle must remain usable.
851
+ */
852
+ copyForTransfer(): WasmCreateImageRequest;
583
853
  static default(): WasmCreateImageRequest;
584
854
  constructor(prompt?: string | null, model?: string | null, n?: number | null, size?: string | null, quality?: string | null, style?: string | null, responseFormat?: string | null, user?: string | null);
585
855
  get model(): string | undefined;
@@ -622,7 +892,19 @@ export class WasmCreateImageRequest {
622
892
  export class WasmCreateResponseRequest {
623
893
  free(): void;
624
894
  [Symbol.dispose](): void;
895
+ /**
896
+ * Return an independent handle for an ownership-taking API.
897
+ *
898
+ * Use `copyForTransfer()` for each class value placed in an array when the original
899
+ * handle must remain usable.
900
+ */
901
+ copyForTransfer(): WasmCreateResponseRequest;
625
902
  static default(): WasmCreateResponseRequest;
903
+ /**
904
+ * Takes ownership of every element in `tools`.
905
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
906
+ * copy each retained element with `copyForTransfer()` before passing the array.
907
+ */
626
908
  constructor(model?: string | null, input?: any | null, instructions?: string | null, tools?: WasmResponseTool[] | null, temperature?: number | null, maxOutputTokens?: bigint | null, metadata?: any | null, extraBody?: any | null, stream?: boolean | null);
627
909
  get extraBody(): any | undefined;
628
910
  set extraBody(value: any | null | undefined);
@@ -638,7 +920,18 @@ export class WasmCreateResponseRequest {
638
920
  set stream(value: boolean | null | undefined);
639
921
  get temperature(): number | undefined;
640
922
  set temperature(value: number | null | undefined);
923
+ /**
924
+ * Returns detached copies of the elements in `tools`.
925
+ *
926
+ * Changes to the returned values do not update this object. Modify the copies,
927
+ * then assign the array back to `tools`.
928
+ */
641
929
  get tools(): Array<any> | undefined;
930
+ /**
931
+ * Takes ownership of every element in `tools`.
932
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
933
+ * element with `copyForTransfer()` before passing the array.
934
+ */
642
935
  set tools(value: WasmResponseTool[] | null | undefined);
643
936
  }
644
937
 
@@ -648,6 +941,13 @@ export class WasmCreateResponseRequest {
648
941
  export class WasmCreateSpeechRequest {
649
942
  free(): void;
650
943
  [Symbol.dispose](): void;
944
+ /**
945
+ * Return an independent handle for an ownership-taking API.
946
+ *
947
+ * Use `copyForTransfer()` for each class value placed in an array when the original
948
+ * handle must remain usable.
949
+ */
950
+ copyForTransfer(): WasmCreateSpeechRequest;
651
951
  static default(): WasmCreateSpeechRequest;
652
952
  constructor(model?: string | null, input?: string | null, voice?: string | null, responseFormat?: string | null, speed?: number | null);
653
953
  input: string;
@@ -665,6 +965,13 @@ export class WasmCreateSpeechRequest {
665
965
  export class WasmCreateTranscriptionRequest {
666
966
  free(): void;
667
967
  [Symbol.dispose](): void;
968
+ /**
969
+ * Return an independent handle for an ownership-taking API.
970
+ *
971
+ * Use `copyForTransfer()` for each class value placed in an array when the original
972
+ * handle must remain usable.
973
+ */
974
+ copyForTransfer(): WasmCreateTranscriptionRequest;
668
975
  static default(): WasmCreateTranscriptionRequest;
669
976
  constructor(model?: string | null, file?: string | null, language?: string | null, prompt?: string | null, responseFormat?: string | null, temperature?: number | null);
670
977
  file: string;
@@ -685,6 +992,13 @@ export class WasmCreateTranscriptionRequest {
685
992
  export class WasmCustomProviderConfig {
686
993
  free(): void;
687
994
  [Symbol.dispose](): void;
995
+ /**
996
+ * Return an independent handle for an ownership-taking API.
997
+ *
998
+ * Use `copyForTransfer()` for each class value placed in an array when the original
999
+ * handle must remain usable.
1000
+ */
1001
+ copyForTransfer(): WasmCustomProviderConfig;
688
1002
  static default(): WasmCustomProviderConfig;
689
1003
  constructor(name: string, baseUrl: string, authHeader: any, modelPrefixes: string[]);
690
1004
  authHeader: any;
@@ -702,6 +1016,13 @@ export class WasmCustomProviderConfig {
702
1016
  export class WasmDecodedDataUrl {
703
1017
  free(): void;
704
1018
  [Symbol.dispose](): void;
1019
+ /**
1020
+ * Return an independent handle for an ownership-taking API.
1021
+ *
1022
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1023
+ * handle must remain usable.
1024
+ */
1025
+ copyForTransfer(): WasmDecodedDataUrl;
705
1026
  static default(): WasmDecodedDataUrl;
706
1027
  constructor(mime?: string | null, data?: Uint8Array | null);
707
1028
  data: Uint8Array;
@@ -711,7 +1032,7 @@ export class WasmDecodedDataUrl {
711
1032
  /**
712
1033
  * Default client implementation backed by `reqwest`.
713
1034
  *
714
- * Sends requests to 165 LLM providers with automatic provider detection
1035
+ * Sends requests to 174 LLM providers with automatic provider detection
715
1036
  * and per-request routing. The provider is resolved at construction time
716
1037
  * from `model_hint` (or defaults to OpenAI), but individual requests can
717
1038
  * override the provider via model name prefix (e.g. `"anthropic/claude-3-5-sonnet"`
@@ -733,6 +1054,13 @@ export class WasmDefaultClient {
733
1054
  cancelResponse(response_id: string): Promise<WasmResponseObject>;
734
1055
  chatStream(req: WasmChatCompletionRequest): Promise<ChatStreamIterator>;
735
1056
  chat(req: WasmChatCompletionRequest): Promise<WasmChatCompletionResponse>;
1057
+ /**
1058
+ * Return an independent handle for an ownership-taking API.
1059
+ *
1060
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1061
+ * handle must remain usable.
1062
+ */
1063
+ copyForTransfer(): WasmDefaultClient;
736
1064
  createBatch(req: WasmCreateBatchRequest): Promise<WasmBatchObject>;
737
1065
  createFile(req: WasmCreateFileRequest): Promise<WasmFileObject>;
738
1066
  createResponse(req: WasmCreateResponseRequest): Promise<WasmResponseObject>;
@@ -776,6 +1104,13 @@ export class WasmDefaultClient {
776
1104
  export class WasmDeleteResponse {
777
1105
  free(): void;
778
1106
  [Symbol.dispose](): void;
1107
+ /**
1108
+ * Return an independent handle for an ownership-taking API.
1109
+ *
1110
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1111
+ * handle must remain usable.
1112
+ */
1113
+ copyForTransfer(): WasmDeleteResponse;
779
1114
  static default(): WasmDeleteResponse;
780
1115
  constructor(id?: string | null, object?: string | null, deleted?: boolean | null);
781
1116
  deleted: boolean;
@@ -789,6 +1124,13 @@ export class WasmDeleteResponse {
789
1124
  export class WasmDeveloperMessage {
790
1125
  free(): void;
791
1126
  [Symbol.dispose](): void;
1127
+ /**
1128
+ * Return an independent handle for an ownership-taking API.
1129
+ *
1130
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1131
+ * handle must remain usable.
1132
+ */
1133
+ copyForTransfer(): WasmDeveloperMessage;
792
1134
  static default(): WasmDeveloperMessage;
793
1135
  constructor(content?: string | null, name?: string | null);
794
1136
  content: string;
@@ -802,6 +1144,13 @@ export class WasmDeveloperMessage {
802
1144
  export class WasmDocumentContent {
803
1145
  free(): void;
804
1146
  [Symbol.dispose](): void;
1147
+ /**
1148
+ * Return an independent handle for an ownership-taking API.
1149
+ *
1150
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1151
+ * handle must remain usable.
1152
+ */
1153
+ copyForTransfer(): WasmDocumentContent;
805
1154
  static default(): WasmDocumentContent;
806
1155
  constructor(data?: string | null, mediaType?: string | null);
807
1156
  data: string;
@@ -814,12 +1163,13 @@ export class WasmDocumentContent {
814
1163
  export class WasmEmbeddingContentPart {
815
1164
  free(): void;
816
1165
  [Symbol.dispose](): void;
1166
+ clearImageUrl(): void;
817
1167
  static default(): WasmEmbeddingContentPart;
818
1168
  constructor();
819
1169
  get imageBase64(): string | undefined;
820
1170
  set imageBase64(value: string | null | undefined);
821
1171
  get imageUrl(): WasmImageUrl | undefined;
822
- set imageUrl(value: WasmImageUrl | null | undefined);
1172
+ set imageUrl(value: WasmImageUrl);
823
1173
  get text(): string | undefined;
824
1174
  set text(value: string | null | undefined);
825
1175
  type: string;
@@ -839,6 +1189,13 @@ export enum WasmEmbeddingFormat {
839
1189
  export class WasmEmbeddingObject {
840
1190
  free(): void;
841
1191
  [Symbol.dispose](): void;
1192
+ /**
1193
+ * Return an independent handle for an ownership-taking API.
1194
+ *
1195
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1196
+ * handle must remain usable.
1197
+ */
1198
+ copyForTransfer(): WasmEmbeddingObject;
842
1199
  static default(): WasmEmbeddingObject;
843
1200
  constructor(object: string, embedding: Float32Array, index: number);
844
1201
  embedding: Float32Array;
@@ -852,6 +1209,13 @@ export class WasmEmbeddingObject {
852
1209
  export class WasmEmbeddingRequest {
853
1210
  free(): void;
854
1211
  [Symbol.dispose](): void;
1212
+ /**
1213
+ * Return an independent handle for an ownership-taking API.
1214
+ *
1215
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1216
+ * handle must remain usable.
1217
+ */
1218
+ copyForTransfer(): WasmEmbeddingRequest;
855
1219
  static default(): WasmEmbeddingRequest;
856
1220
  constructor(model?: string | null, input?: any | null, encodingFormat?: WasmEmbeddingFormat | null, dimensions?: number | null, user?: string | null);
857
1221
  get dimensions(): number | undefined;
@@ -870,13 +1234,43 @@ export class WasmEmbeddingRequest {
870
1234
  export class WasmEmbeddingResponse {
871
1235
  free(): void;
872
1236
  [Symbol.dispose](): void;
1237
+ clearUsage(): void;
1238
+ /**
1239
+ * Return an independent handle for an ownership-taking API.
1240
+ *
1241
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1242
+ * handle must remain usable.
1243
+ */
1244
+ copyForTransfer(): WasmEmbeddingResponse;
873
1245
  static default(): WasmEmbeddingResponse;
1246
+ /**
1247
+ * Takes ownership of `usage`.
1248
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1249
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1250
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1251
+ * the generated setter borrows and leaves your handle alive.
1252
+ * Takes ownership of every element in `data`.
1253
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1254
+ * copy each retained element with `copyForTransfer()` before passing the array.
1255
+ */
874
1256
  constructor(object: string, data: WasmEmbeddingObject[], model: string, usage?: WasmUsage | null);
1257
+ /**
1258
+ * Returns detached copies of the elements in `data`.
1259
+ *
1260
+ * Changes to the returned values do not update this object. Modify the copies,
1261
+ * then assign the array back to `data`.
1262
+ */
875
1263
  data: WasmEmbeddingObject[];
876
1264
  model: string;
877
1265
  object: string;
1266
+ /**
1267
+ * Returns a detached copy of `usage`.
1268
+ *
1269
+ * Changes to the returned value do not update this object. To update `usage`,
1270
+ * read it, modify the copy, then assign the copy back to `usage`.
1271
+ */
878
1272
  get usage(): WasmUsage | undefined;
879
- set usage(value: WasmUsage | null | undefined);
1273
+ set usage(value: WasmUsage);
880
1274
  }
881
1275
 
882
1276
  /**
@@ -885,6 +1279,13 @@ export class WasmEmbeddingResponse {
885
1279
  export class WasmFileListQuery {
886
1280
  free(): void;
887
1281
  [Symbol.dispose](): void;
1282
+ /**
1283
+ * Return an independent handle for an ownership-taking API.
1284
+ *
1285
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1286
+ * handle must remain usable.
1287
+ */
1288
+ copyForTransfer(): WasmFileListQuery;
888
1289
  static default(): WasmFileListQuery;
889
1290
  constructor(purpose?: string | null, limit?: number | null, after?: string | null);
890
1291
  get after(): string | undefined;
@@ -901,8 +1302,26 @@ export class WasmFileListQuery {
901
1302
  export class WasmFileListResponse {
902
1303
  free(): void;
903
1304
  [Symbol.dispose](): void;
1305
+ /**
1306
+ * Return an independent handle for an ownership-taking API.
1307
+ *
1308
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1309
+ * handle must remain usable.
1310
+ */
1311
+ copyForTransfer(): WasmFileListResponse;
904
1312
  static default(): WasmFileListResponse;
1313
+ /**
1314
+ * Takes ownership of every element in `data`.
1315
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1316
+ * copy each retained element with `copyForTransfer()` before passing the array.
1317
+ */
905
1318
  constructor(object?: string | null, data?: WasmFileObject[] | null, hasMore?: boolean | null);
1319
+ /**
1320
+ * Returns detached copies of the elements in `data`.
1321
+ *
1322
+ * Changes to the returned values do not update this object. Modify the copies,
1323
+ * then assign the array back to `data`.
1324
+ */
906
1325
  data: WasmFileObject[];
907
1326
  get hasMore(): boolean | undefined;
908
1327
  set hasMore(value: boolean | null | undefined);
@@ -915,6 +1334,13 @@ export class WasmFileListResponse {
915
1334
  export class WasmFileObject {
916
1335
  free(): void;
917
1336
  [Symbol.dispose](): void;
1337
+ /**
1338
+ * Return an independent handle for an ownership-taking API.
1339
+ *
1340
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1341
+ * handle must remain usable.
1342
+ */
1343
+ copyForTransfer(): WasmFileObject;
918
1344
  static default(): WasmFileObject;
919
1345
  constructor(id?: string | null, object?: string | null, bytes?: bigint | null, createdAt?: bigint | null, filename?: string | null, purpose?: string | null, status?: string | null);
920
1346
  bytes: bigint;
@@ -955,6 +1381,13 @@ export enum WasmFinishReason {
955
1381
  export class WasmFunctionCall {
956
1382
  free(): void;
957
1383
  [Symbol.dispose](): void;
1384
+ /**
1385
+ * Return an independent handle for an ownership-taking API.
1386
+ *
1387
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1388
+ * handle must remain usable.
1389
+ */
1390
+ copyForTransfer(): WasmFunctionCall;
958
1391
  static default(): WasmFunctionCall;
959
1392
  constructor(name: string, _arguments: string);
960
1393
  arguments: string;
@@ -967,6 +1400,13 @@ export class WasmFunctionCall {
967
1400
  export class WasmFunctionDefinition {
968
1401
  free(): void;
969
1402
  [Symbol.dispose](): void;
1403
+ /**
1404
+ * Return an independent handle for an ownership-taking API.
1405
+ *
1406
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1407
+ * handle must remain usable.
1408
+ */
1409
+ copyForTransfer(): WasmFunctionDefinition;
970
1410
  static default(): WasmFunctionDefinition;
971
1411
  constructor(name: string, description?: string | null, parameters?: any | null, strict?: boolean | null);
972
1412
  get description(): string | undefined;
@@ -984,6 +1424,13 @@ export class WasmFunctionDefinition {
984
1424
  export class WasmFunctionMessage {
985
1425
  free(): void;
986
1426
  [Symbol.dispose](): void;
1427
+ /**
1428
+ * Return an independent handle for an ownership-taking API.
1429
+ *
1430
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1431
+ * handle must remain usable.
1432
+ */
1433
+ copyForTransfer(): WasmFunctionMessage;
987
1434
  static default(): WasmFunctionMessage;
988
1435
  constructor(content?: string | null, name?: string | null);
989
1436
  content: string;
@@ -996,6 +1443,13 @@ export class WasmFunctionMessage {
996
1443
  export class WasmImage {
997
1444
  free(): void;
998
1445
  [Symbol.dispose](): void;
1446
+ /**
1447
+ * Return an independent handle for an ownership-taking API.
1448
+ *
1449
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1450
+ * handle must remain usable.
1451
+ */
1452
+ copyForTransfer(): WasmImage;
999
1453
  static default(): WasmImage;
1000
1454
  constructor(url?: string | null, b64Json?: string | null, revisedPrompt?: string | null);
1001
1455
  get b64Json(): string | undefined;
@@ -1027,6 +1481,13 @@ export enum WasmImageDetail {
1027
1481
  export class WasmImageUrl {
1028
1482
  free(): void;
1029
1483
  [Symbol.dispose](): void;
1484
+ /**
1485
+ * Return an independent handle for an ownership-taking API.
1486
+ *
1487
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1488
+ * handle must remain usable.
1489
+ */
1490
+ copyForTransfer(): WasmImageUrl;
1030
1491
  static default(): WasmImageUrl;
1031
1492
  constructor(url?: string | null, detail?: WasmImageDetail | null);
1032
1493
  get detail(): string | undefined;
@@ -1040,9 +1501,27 @@ export class WasmImageUrl {
1040
1501
  export class WasmImagesResponse {
1041
1502
  free(): void;
1042
1503
  [Symbol.dispose](): void;
1504
+ /**
1505
+ * Return an independent handle for an ownership-taking API.
1506
+ *
1507
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1508
+ * handle must remain usable.
1509
+ */
1510
+ copyForTransfer(): WasmImagesResponse;
1043
1511
  static default(): WasmImagesResponse;
1512
+ /**
1513
+ * Takes ownership of every element in `data`.
1514
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1515
+ * copy each retained element with `copyForTransfer()` before passing the array.
1516
+ */
1044
1517
  constructor(created?: bigint | null, data?: WasmImage[] | null);
1045
1518
  created: bigint;
1519
+ /**
1520
+ * Returns detached copies of the elements in `data`.
1521
+ *
1522
+ * Changes to the returned values do not update this object. Modify the copies,
1523
+ * then assign the array back to `data`.
1524
+ */
1046
1525
  data: WasmImage[];
1047
1526
  }
1048
1527
 
@@ -1052,6 +1531,13 @@ export class WasmImagesResponse {
1052
1531
  export class WasmJsonSchemaFormat {
1053
1532
  free(): void;
1054
1533
  [Symbol.dispose](): void;
1534
+ /**
1535
+ * Return an independent handle for an ownership-taking API.
1536
+ *
1537
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1538
+ * handle must remain usable.
1539
+ */
1540
+ copyForTransfer(): WasmJsonSchemaFormat;
1055
1541
  static default(): WasmJsonSchemaFormat;
1056
1542
  constructor(name?: string | null, schema?: any | null, description?: string | null, strict?: boolean | null);
1057
1543
  get description(): string | undefined;
@@ -1063,7 +1549,7 @@ export class WasmJsonSchemaFormat {
1063
1549
  }
1064
1550
 
1065
1551
  /**
1066
- * Opaque WASM handle for [`liter_llm::error::LiterLlmError`] that exposes introspection methods.
1552
+ * Opaque WASM handle for [`liter_llm::LiterLlmError`] that exposes introspection methods.
1067
1553
  */
1068
1554
  export class WasmLiterLlmError {
1069
1555
  private constructor();
@@ -1077,6 +1563,10 @@ export class WasmLiterLlmError {
1077
1563
  * Returns `true` if the error is transient and a retry may succeed.
1078
1564
  */
1079
1565
  isTransient(): boolean;
1566
+ /**
1567
+ * `retry_after` in whole milliseconds (undefined when absent).
1568
+ */
1569
+ retryAfter(): bigint | undefined;
1080
1570
  /**
1081
1571
  * HTTP status code for this error variant.
1082
1572
  */
@@ -1089,6 +1579,13 @@ export class WasmLiterLlmError {
1089
1579
  export class WasmLlmBudgetConfig {
1090
1580
  free(): void;
1091
1581
  [Symbol.dispose](): void;
1582
+ /**
1583
+ * Return an independent handle for an ownership-taking API.
1584
+ *
1585
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1586
+ * handle must remain usable.
1587
+ */
1588
+ copyForTransfer(): WasmLlmBudgetConfig;
1092
1589
  static default(): WasmLlmBudgetConfig;
1093
1590
  constructor(globalLimit?: number | null, modelLimits?: any | null, enforcement?: string | null);
1094
1591
  get enforcement(): string | undefined;
@@ -1105,6 +1602,13 @@ export class WasmLlmBudgetConfig {
1105
1602
  export class WasmLlmCacheConfig {
1106
1603
  free(): void;
1107
1604
  [Symbol.dispose](): void;
1605
+ /**
1606
+ * Return an independent handle for an ownership-taking API.
1607
+ *
1608
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1609
+ * handle must remain usable.
1610
+ */
1611
+ copyForTransfer(): WasmLlmCacheConfig;
1108
1612
  static default(): WasmLlmCacheConfig;
1109
1613
  constructor(maxEntries?: number | null, ttlSeconds?: bigint | null, backend?: string | null, backendConfig?: any | null);
1110
1614
  get backendConfig(): any | undefined;
@@ -1136,18 +1640,58 @@ export class WasmLlmCacheConfig {
1136
1640
  export class WasmLlmConfig {
1137
1641
  free(): void;
1138
1642
  [Symbol.dispose](): void;
1643
+ clearBedrock(): void;
1644
+ clearBudget(): void;
1645
+ clearCache(): void;
1646
+ clearInFlightLimit(): void;
1647
+ clearRateLimit(): void;
1648
+ /**
1649
+ * Return an independent handle for an ownership-taking API.
1650
+ *
1651
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1652
+ * handle must remain usable.
1653
+ */
1654
+ copyForTransfer(): WasmLlmConfig;
1139
1655
  static default(): WasmLlmConfig;
1656
+ /**
1657
+ * Takes ownership of `cache`, `budget`, `rateLimit`, `inFlightLimit`, `bedrock`.
1658
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
1659
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
1660
+ * keep a handle you already hold, build with `default()` and assign the property instead:
1661
+ * the generated setter borrows and leaves your handle alive.
1662
+ * Takes ownership of every element in `providers`.
1663
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1664
+ * copy each retained element with `copyForTransfer()` before passing the array.
1665
+ */
1140
1666
  constructor(model?: string | null, apiKey?: string | null, baseUrl?: string | null, timeoutSecs?: bigint | null, maxRetries?: number | null, temperature?: number | null, maxTokens?: bigint | null, loadEnv?: boolean | null, headers?: any | null, providers?: WasmLlmProviderConfig[] | null, cache?: WasmLlmCacheConfig | null, budget?: WasmLlmBudgetConfig | null, rateLimit?: WasmLlmRateLimitConfig | null, inFlightLimit?: WasmLlmInFlightLimitConfig | null, costTracking?: boolean | null, tracing?: boolean | null, cooldownSecs?: bigint | null, healthCheckSecs?: bigint | null, bedrock?: WasmBedrockConfig | null);
1141
1667
  get apiKey(): string | undefined;
1142
1668
  set apiKey(value: string | null | undefined);
1143
1669
  get baseUrl(): string | undefined;
1144
1670
  set baseUrl(value: string | null | undefined);
1671
+ /**
1672
+ * Returns a detached copy of `bedrock`.
1673
+ *
1674
+ * Changes to the returned value do not update this object. To update `bedrock`,
1675
+ * read it, modify the copy, then assign the copy back to `bedrock`.
1676
+ */
1145
1677
  get bedrock(): WasmBedrockConfig | undefined;
1146
- set bedrock(value: WasmBedrockConfig | null | undefined);
1678
+ set bedrock(value: WasmBedrockConfig);
1679
+ /**
1680
+ * Returns a detached copy of `budget`.
1681
+ *
1682
+ * Changes to the returned value do not update this object. To update `budget`,
1683
+ * read it, modify the copy, then assign the copy back to `budget`.
1684
+ */
1147
1685
  get budget(): WasmLlmBudgetConfig | undefined;
1148
- set budget(value: WasmLlmBudgetConfig | null | undefined);
1686
+ set budget(value: WasmLlmBudgetConfig);
1687
+ /**
1688
+ * Returns a detached copy of `cache`.
1689
+ *
1690
+ * Changes to the returned value do not update this object. To update `cache`,
1691
+ * read it, modify the copy, then assign the copy back to `cache`.
1692
+ */
1149
1693
  get cache(): WasmLlmCacheConfig | undefined;
1150
- set cache(value: WasmLlmCacheConfig | null | undefined);
1694
+ set cache(value: WasmLlmCacheConfig);
1151
1695
  get cooldownSecs(): bigint | undefined;
1152
1696
  set cooldownSecs(value: bigint | null | undefined);
1153
1697
  get costTracking(): boolean | undefined;
@@ -1156,8 +1700,14 @@ export class WasmLlmConfig {
1156
1700
  set headers(value: any | null | undefined);
1157
1701
  get healthCheckSecs(): bigint | undefined;
1158
1702
  set healthCheckSecs(value: bigint | null | undefined);
1703
+ /**
1704
+ * Returns a detached copy of `inFlightLimit`.
1705
+ *
1706
+ * Changes to the returned value do not update this object. To update `inFlightLimit`,
1707
+ * read it, modify the copy, then assign the copy back to `inFlightLimit`.
1708
+ */
1159
1709
  get inFlightLimit(): WasmLlmInFlightLimitConfig | undefined;
1160
- set inFlightLimit(value: WasmLlmInFlightLimitConfig | null | undefined);
1710
+ set inFlightLimit(value: WasmLlmInFlightLimitConfig);
1161
1711
  get loadEnv(): boolean | undefined;
1162
1712
  set loadEnv(value: boolean | null | undefined);
1163
1713
  get maxRetries(): number | undefined;
@@ -1165,10 +1715,27 @@ export class WasmLlmConfig {
1165
1715
  get maxTokens(): bigint | undefined;
1166
1716
  set maxTokens(value: bigint | null | undefined);
1167
1717
  model: string;
1718
+ /**
1719
+ * Returns detached copies of the elements in `providers`.
1720
+ *
1721
+ * Changes to the returned values do not update this object. Modify the copies,
1722
+ * then assign the array back to `providers`.
1723
+ */
1168
1724
  get providers(): Array<any> | undefined;
1725
+ /**
1726
+ * Takes ownership of every element in `providers`.
1727
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
1728
+ * element with `copyForTransfer()` before passing the array.
1729
+ */
1169
1730
  set providers(value: WasmLlmProviderConfig[] | null | undefined);
1731
+ /**
1732
+ * Returns a detached copy of `rateLimit`.
1733
+ *
1734
+ * Changes to the returned value do not update this object. To update `rateLimit`,
1735
+ * read it, modify the copy, then assign the copy back to `rateLimit`.
1736
+ */
1170
1737
  get rateLimit(): WasmLlmRateLimitConfig | undefined;
1171
- set rateLimit(value: WasmLlmRateLimitConfig | null | undefined);
1738
+ set rateLimit(value: WasmLlmRateLimitConfig);
1172
1739
  get temperature(): number | undefined;
1173
1740
  set temperature(value: number | null | undefined);
1174
1741
  get timeoutSecs(): bigint | undefined;
@@ -1183,6 +1750,13 @@ export class WasmLlmConfig {
1183
1750
  export class WasmLlmInFlightLimitConfig {
1184
1751
  free(): void;
1185
1752
  [Symbol.dispose](): void;
1753
+ /**
1754
+ * Return an independent handle for an ownership-taking API.
1755
+ *
1756
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1757
+ * handle must remain usable.
1758
+ */
1759
+ copyForTransfer(): WasmLlmInFlightLimitConfig;
1186
1760
  static default(): WasmLlmInFlightLimitConfig;
1187
1761
  constructor(maxInFlight?: number | null);
1188
1762
  get maxInFlight(): number | undefined;
@@ -1195,6 +1769,13 @@ export class WasmLlmInFlightLimitConfig {
1195
1769
  export class WasmLlmProviderConfig {
1196
1770
  free(): void;
1197
1771
  [Symbol.dispose](): void;
1772
+ /**
1773
+ * Return an independent handle for an ownership-taking API.
1774
+ *
1775
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1776
+ * handle must remain usable.
1777
+ */
1778
+ copyForTransfer(): WasmLlmProviderConfig;
1198
1779
  static default(): WasmLlmProviderConfig;
1199
1780
  constructor(name?: string | null, baseUrl?: string | null, modelPrefixes?: string[] | null, authHeader?: string | null);
1200
1781
  get authHeader(): string | undefined;
@@ -1210,6 +1791,13 @@ export class WasmLlmProviderConfig {
1210
1791
  export class WasmLlmRateLimitConfig {
1211
1792
  free(): void;
1212
1793
  [Symbol.dispose](): void;
1794
+ /**
1795
+ * Return an independent handle for an ownership-taking API.
1796
+ *
1797
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1798
+ * handle must remain usable.
1799
+ */
1800
+ copyForTransfer(): WasmLlmRateLimitConfig;
1213
1801
  static default(): WasmLlmRateLimitConfig;
1214
1802
  constructor(rpm?: number | null, tpm?: bigint | null, windowSeconds?: bigint | null);
1215
1803
  get rpm(): number | undefined;
@@ -1245,7 +1833,19 @@ export enum WasmModality {
1245
1833
  export class WasmModelInfo {
1246
1834
  free(): void;
1247
1835
  [Symbol.dispose](): void;
1836
+ /**
1837
+ * Return an independent handle for an ownership-taking API.
1838
+ *
1839
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1840
+ * handle must remain usable.
1841
+ */
1842
+ copyForTransfer(): WasmModelInfo;
1248
1843
  static default(): WasmModelInfo;
1844
+ /**
1845
+ * Takes ownership of every element in `tiers`.
1846
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1847
+ * copy each retained element with `copyForTransfer()` before passing the array.
1848
+ */
1249
1849
  constructor(inputCostPerToken?: number | null, outputCostPerToken?: number | null, tiers?: WasmModelTier[] | null, cacheReadInputTokenCost?: number | null, cacheCreationInputTokenCost?: number | null, inputCostPerAudioToken?: number | null, outputCostPerAudioToken?: number | null, outputCostPerReasoningToken?: number | null, maxTokens?: bigint | null, maxInputTokens?: bigint | null, maxOutputTokens?: bigint | null, mode?: string | null, supportsVision?: boolean | null, supportsFunctionCalling?: boolean | null, supportsReasoning?: boolean | null, supportsStructuredOutput?: boolean | null, supportsAudioInput?: boolean | null, supportsAudioOutput?: boolean | null, supportsPromptCaching?: boolean | null);
1250
1850
  get cacheCreationInputTokenCost(): number | undefined;
1251
1851
  set cacheCreationInputTokenCost(value: number | null | undefined);
@@ -1281,6 +1881,12 @@ export class WasmModelInfo {
1281
1881
  set supportsStructuredOutput(value: boolean | null | undefined);
1282
1882
  get supportsVision(): boolean | undefined;
1283
1883
  set supportsVision(value: boolean | null | undefined);
1884
+ /**
1885
+ * Returns detached copies of the elements in `tiers`.
1886
+ *
1887
+ * Changes to the returned values do not update this object. Modify the copies,
1888
+ * then assign the array back to `tiers`.
1889
+ */
1284
1890
  tiers: WasmModelTier[];
1285
1891
  }
1286
1892
 
@@ -1290,6 +1896,13 @@ export class WasmModelInfo {
1290
1896
  export class WasmModelObject {
1291
1897
  free(): void;
1292
1898
  [Symbol.dispose](): void;
1899
+ /**
1900
+ * Return an independent handle for an ownership-taking API.
1901
+ *
1902
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1903
+ * handle must remain usable.
1904
+ */
1905
+ copyForTransfer(): WasmModelObject;
1293
1906
  static default(): WasmModelObject;
1294
1907
  constructor(id?: string | null, object?: string | null, created?: bigint | null, ownedBy?: string | null);
1295
1908
  created: bigint;
@@ -1305,6 +1918,13 @@ export class WasmModelObject {
1305
1918
  export class WasmModelTier {
1306
1919
  free(): void;
1307
1920
  [Symbol.dispose](): void;
1921
+ /**
1922
+ * Return an independent handle for an ownership-taking API.
1923
+ *
1924
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1925
+ * handle must remain usable.
1926
+ */
1927
+ copyForTransfer(): WasmModelTier;
1308
1928
  static default(): WasmModelTier;
1309
1929
  constructor(minContextTokens?: bigint | null, inputCostPerToken?: number | null, outputCostPerToken?: number | null, cacheReadInputTokenCost?: number | null, cacheCreationInputTokenCost?: number | null, inputCostPerAudioToken?: number | null, outputCostPerAudioToken?: number | null, outputCostPerReasoningToken?: number | null);
1310
1930
  get cacheCreationInputTokenCost(): number | undefined;
@@ -1328,8 +1948,26 @@ export class WasmModelTier {
1328
1948
  export class WasmModelsListResponse {
1329
1949
  free(): void;
1330
1950
  [Symbol.dispose](): void;
1951
+ /**
1952
+ * Return an independent handle for an ownership-taking API.
1953
+ *
1954
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1955
+ * handle must remain usable.
1956
+ */
1957
+ copyForTransfer(): WasmModelsListResponse;
1331
1958
  static default(): WasmModelsListResponse;
1959
+ /**
1960
+ * Takes ownership of every element in `data`.
1961
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
1962
+ * copy each retained element with `copyForTransfer()` before passing the array.
1963
+ */
1332
1964
  constructor(object?: string | null, data?: WasmModelObject[] | null);
1965
+ /**
1966
+ * Returns detached copies of the elements in `data`.
1967
+ *
1968
+ * Changes to the returned values do not update this object. Modify the copies,
1969
+ * then assign the array back to `data`.
1970
+ */
1333
1971
  data: WasmModelObject[];
1334
1972
  object: string;
1335
1973
  }
@@ -1340,6 +1978,13 @@ export class WasmModelsListResponse {
1340
1978
  export class WasmModerationCategories {
1341
1979
  free(): void;
1342
1980
  [Symbol.dispose](): void;
1981
+ /**
1982
+ * Return an independent handle for an ownership-taking API.
1983
+ *
1984
+ * Use `copyForTransfer()` for each class value placed in an array when the original
1985
+ * handle must remain usable.
1986
+ */
1987
+ copyForTransfer(): WasmModerationCategories;
1343
1988
  static default(): WasmModerationCategories;
1344
1989
  constructor(sexual?: boolean | null, hate?: boolean | null, harassment?: boolean | null, selfHarm?: boolean | null, sexualMinors?: boolean | null, hateThreatening?: boolean | null, violenceGraphic?: boolean | null, selfHarmIntent?: boolean | null, selfHarmInstructions?: boolean | null, harassmentThreatening?: boolean | null, violence?: boolean | null);
1345
1990
  harassmentThreatening: boolean;
@@ -1361,6 +2006,13 @@ export class WasmModerationCategories {
1361
2006
  export class WasmModerationCategoryScores {
1362
2007
  free(): void;
1363
2008
  [Symbol.dispose](): void;
2009
+ /**
2010
+ * Return an independent handle for an ownership-taking API.
2011
+ *
2012
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2013
+ * handle must remain usable.
2014
+ */
2015
+ copyForTransfer(): WasmModerationCategoryScores;
1364
2016
  static default(): WasmModerationCategoryScores;
1365
2017
  constructor(sexual?: number | null, hate?: number | null, harassment?: number | null, selfHarm?: number | null, sexualMinors?: number | null, hateThreatening?: number | null, violenceGraphic?: number | null, selfHarmIntent?: number | null, selfHarmInstructions?: number | null, harassmentThreatening?: number | null, violence?: number | null);
1366
2018
  harassmentThreatening: number;
@@ -1382,6 +2034,13 @@ export class WasmModerationCategoryScores {
1382
2034
  export class WasmModerationRequest {
1383
2035
  free(): void;
1384
2036
  [Symbol.dispose](): void;
2037
+ /**
2038
+ * Return an independent handle for an ownership-taking API.
2039
+ *
2040
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2041
+ * handle must remain usable.
2042
+ */
2043
+ copyForTransfer(): WasmModerationRequest;
1385
2044
  static default(): WasmModerationRequest;
1386
2045
  constructor(input?: any | null, model?: string | null);
1387
2046
  input: WasmModerationInput;
@@ -1395,10 +2054,28 @@ export class WasmModerationRequest {
1395
2054
  export class WasmModerationResponse {
1396
2055
  free(): void;
1397
2056
  [Symbol.dispose](): void;
2057
+ /**
2058
+ * Return an independent handle for an ownership-taking API.
2059
+ *
2060
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2061
+ * handle must remain usable.
2062
+ */
2063
+ copyForTransfer(): WasmModerationResponse;
1398
2064
  static default(): WasmModerationResponse;
2065
+ /**
2066
+ * Takes ownership of every element in `results`.
2067
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2068
+ * copy each retained element with `copyForTransfer()` before passing the array.
2069
+ */
1399
2070
  constructor(id: string, model: string, results: WasmModerationResult[]);
1400
2071
  id: string;
1401
2072
  model: string;
2073
+ /**
2074
+ * Returns detached copies of the elements in `results`.
2075
+ *
2076
+ * Changes to the returned values do not update this object. Modify the copies,
2077
+ * then assign the array back to `results`.
2078
+ */
1402
2079
  results: WasmModerationResult[];
1403
2080
  }
1404
2081
 
@@ -1408,9 +2085,28 @@ export class WasmModerationResponse {
1408
2085
  export class WasmModerationResult {
1409
2086
  free(): void;
1410
2087
  [Symbol.dispose](): void;
2088
+ /**
2089
+ * Return an independent handle for an ownership-taking API.
2090
+ *
2091
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2092
+ * handle must remain usable.
2093
+ */
2094
+ copyForTransfer(): WasmModerationResult;
1411
2095
  static default(): WasmModerationResult;
1412
2096
  constructor(flagged: boolean, categories: WasmModerationCategories, categoryScores: WasmModerationCategoryScores);
2097
+ /**
2098
+ * Returns a detached copy of `categories`.
2099
+ *
2100
+ * Changes to the returned value do not update this object. To update `categories`,
2101
+ * read it, modify the copy, then assign the copy back to `categories`.
2102
+ */
1413
2103
  categories: WasmModerationCategories;
2104
+ /**
2105
+ * Returns a detached copy of `categoryScores`.
2106
+ *
2107
+ * Changes to the returned value do not update this object. To update `categoryScores`,
2108
+ * read it, modify the copy, then assign the copy back to `categoryScores`.
2109
+ */
1414
2110
  categoryScores: WasmModerationCategoryScores;
1415
2111
  flagged: boolean;
1416
2112
  }
@@ -1438,6 +2134,13 @@ export class WasmOcrDocument {
1438
2134
  export class WasmOcrImage {
1439
2135
  free(): void;
1440
2136
  [Symbol.dispose](): void;
2137
+ /**
2138
+ * Return an independent handle for an ownership-taking API.
2139
+ *
2140
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2141
+ * handle must remain usable.
2142
+ */
2143
+ copyForTransfer(): WasmOcrImage;
1441
2144
  static default(): WasmOcrImage;
1442
2145
  constructor(id: string, imageBase64?: string | null);
1443
2146
  id: string;
@@ -1451,11 +2154,46 @@ export class WasmOcrImage {
1451
2154
  export class WasmOcrPage {
1452
2155
  free(): void;
1453
2156
  [Symbol.dispose](): void;
2157
+ clearDimensions(): void;
2158
+ /**
2159
+ * Return an independent handle for an ownership-taking API.
2160
+ *
2161
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2162
+ * handle must remain usable.
2163
+ */
2164
+ copyForTransfer(): WasmOcrPage;
1454
2165
  static default(): WasmOcrPage;
2166
+ /**
2167
+ * Takes ownership of `dimensions`.
2168
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2169
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2170
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2171
+ * the generated setter borrows and leaves your handle alive.
2172
+ * Takes ownership of every element in `images`.
2173
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2174
+ * copy each retained element with `copyForTransfer()` before passing the array.
2175
+ */
1455
2176
  constructor(index: number, markdown: string, images?: WasmOcrImage[] | null, dimensions?: WasmPageDimensions | null);
2177
+ /**
2178
+ * Returns a detached copy of `dimensions`.
2179
+ *
2180
+ * Changes to the returned value do not update this object. To update `dimensions`,
2181
+ * read it, modify the copy, then assign the copy back to `dimensions`.
2182
+ */
1456
2183
  get dimensions(): WasmPageDimensions | undefined;
1457
- set dimensions(value: WasmPageDimensions | null | undefined);
2184
+ set dimensions(value: WasmPageDimensions);
2185
+ /**
2186
+ * Returns detached copies of the elements in `images`.
2187
+ *
2188
+ * Changes to the returned values do not update this object. Modify the copies,
2189
+ * then assign the array back to `images`.
2190
+ */
1458
2191
  get images(): Array<any> | undefined;
2192
+ /**
2193
+ * Takes ownership of every element in `images`.
2194
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
2195
+ * element with `copyForTransfer()` before passing the array.
2196
+ */
1459
2197
  set images(value: WasmOcrImage[] | null | undefined);
1460
2198
  index: number;
1461
2199
  markdown: string;
@@ -1467,6 +2205,13 @@ export class WasmOcrPage {
1467
2205
  export class WasmOcrRequest {
1468
2206
  free(): void;
1469
2207
  [Symbol.dispose](): void;
2208
+ /**
2209
+ * Return an independent handle for an ownership-taking API.
2210
+ *
2211
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2212
+ * handle must remain usable.
2213
+ */
2214
+ copyForTransfer(): WasmOcrRequest;
1470
2215
  static default(): WasmOcrRequest;
1471
2216
  constructor(model?: string | null, document?: any | null, pages?: Uint32Array | null, includeImageBase64?: boolean | null);
1472
2217
  document: any;
@@ -1483,12 +2228,42 @@ export class WasmOcrRequest {
1483
2228
  export class WasmOcrResponse {
1484
2229
  free(): void;
1485
2230
  [Symbol.dispose](): void;
2231
+ clearUsage(): void;
2232
+ /**
2233
+ * Return an independent handle for an ownership-taking API.
2234
+ *
2235
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2236
+ * handle must remain usable.
2237
+ */
2238
+ copyForTransfer(): WasmOcrResponse;
1486
2239
  static default(): WasmOcrResponse;
2240
+ /**
2241
+ * Takes ownership of `usage`.
2242
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2243
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2244
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2245
+ * the generated setter borrows and leaves your handle alive.
2246
+ * Takes ownership of every element in `pages`.
2247
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2248
+ * copy each retained element with `copyForTransfer()` before passing the array.
2249
+ */
1487
2250
  constructor(pages: WasmOcrPage[], model: string, usage?: WasmUsage | null);
1488
2251
  model: string;
2252
+ /**
2253
+ * Returns detached copies of the elements in `pages`.
2254
+ *
2255
+ * Changes to the returned values do not update this object. Modify the copies,
2256
+ * then assign the array back to `pages`.
2257
+ */
1489
2258
  pages: WasmOcrPage[];
2259
+ /**
2260
+ * Returns a detached copy of `usage`.
2261
+ *
2262
+ * Changes to the returned value do not update this object. To update `usage`,
2263
+ * read it, modify the copy, then assign the copy back to `usage`.
2264
+ */
1490
2265
  get usage(): WasmUsage | undefined;
1491
- set usage(value: WasmUsage | null | undefined);
2266
+ set usage(value: WasmUsage);
1492
2267
  }
1493
2268
 
1494
2269
  /**
@@ -1497,6 +2272,13 @@ export class WasmOcrResponse {
1497
2272
  export class WasmPageDimensions {
1498
2273
  free(): void;
1499
2274
  [Symbol.dispose](): void;
2275
+ /**
2276
+ * Return an independent handle for an ownership-taking API.
2277
+ *
2278
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2279
+ * handle must remain usable.
2280
+ */
2281
+ copyForTransfer(): WasmPageDimensions;
1500
2282
  static default(): WasmPageDimensions;
1501
2283
  constructor(width: number, height: number);
1502
2284
  height: number;
@@ -1514,6 +2296,13 @@ export class WasmPageDimensions {
1514
2296
  export class WasmPromptTokensDetails {
1515
2297
  free(): void;
1516
2298
  [Symbol.dispose](): void;
2299
+ /**
2300
+ * Return an independent handle for an ownership-taking API.
2301
+ *
2302
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2303
+ * handle must remain usable.
2304
+ */
2305
+ copyForTransfer(): WasmPromptTokensDetails;
1517
2306
  static default(): WasmPromptTokensDetails;
1518
2307
  constructor(cachedTokens?: bigint | null, audioTokens?: bigint | null);
1519
2308
  audioTokens: bigint;
@@ -1536,6 +2325,13 @@ export class WasmPromptTokensDetails {
1536
2325
  export class WasmProviderCapabilities {
1537
2326
  free(): void;
1538
2327
  [Symbol.dispose](): void;
2328
+ /**
2329
+ * Return an independent handle for an ownership-taking API.
2330
+ *
2331
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2332
+ * handle must remain usable.
2333
+ */
2334
+ copyForTransfer(): WasmProviderCapabilities;
1539
2335
  static default(): WasmProviderCapabilities;
1540
2336
  constructor(vision?: boolean | null, reasoning?: boolean | null, structuredOutput?: boolean | null, functionCalling?: boolean | null, audioIn?: boolean | null, audioOut?: boolean | null, videoIn?: boolean | null);
1541
2337
  audioIn: boolean;
@@ -1556,10 +2352,31 @@ export class WasmProviderCapabilities {
1556
2352
  export class WasmProviderConfig {
1557
2353
  free(): void;
1558
2354
  [Symbol.dispose](): void;
2355
+ clearAuth(): void;
2356
+ /**
2357
+ * Return an independent handle for an ownership-taking API.
2358
+ *
2359
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2360
+ * handle must remain usable.
2361
+ */
2362
+ copyForTransfer(): WasmProviderConfig;
1559
2363
  static default(): WasmProviderConfig;
2364
+ /**
2365
+ * Takes ownership of `auth`.
2366
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2367
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2368
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2369
+ * the generated setter borrows and leaves your handle alive.
2370
+ */
1560
2371
  constructor(name: string, displayName?: string | null, baseUrl?: string | null, auth?: WasmAuthConfig | null, endpoints?: string[] | null, modelPrefixes?: string[] | null, paramMappings?: any | null);
2372
+ /**
2373
+ * Returns a detached copy of `auth`.
2374
+ *
2375
+ * Changes to the returned value do not update this object. To update `auth`,
2376
+ * read it, modify the copy, then assign the copy back to `auth`.
2377
+ */
1561
2378
  get auth(): WasmAuthConfig | undefined;
1562
- set auth(value: WasmAuthConfig | null | undefined);
2379
+ set auth(value: WasmAuthConfig);
1563
2380
  get baseUrl(): string | undefined;
1564
2381
  set baseUrl(value: string | null | undefined);
1565
2382
  get displayName(): string | undefined;
@@ -1599,6 +2416,13 @@ export enum WasmRefreshOutcome {
1599
2416
  export class WasmRerankRequest {
1600
2417
  free(): void;
1601
2418
  [Symbol.dispose](): void;
2419
+ /**
2420
+ * Return an independent handle for an ownership-taking API.
2421
+ *
2422
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2423
+ * handle must remain usable.
2424
+ */
2425
+ copyForTransfer(): WasmRerankRequest;
1602
2426
  static default(): WasmRerankRequest;
1603
2427
  constructor(model?: string | null, query?: string | null, documents?: any | null, topN?: number | null, returnDocuments?: boolean | null);
1604
2428
  documents: any;
@@ -1616,12 +2440,30 @@ export class WasmRerankRequest {
1616
2440
  export class WasmRerankResponse {
1617
2441
  free(): void;
1618
2442
  [Symbol.dispose](): void;
2443
+ /**
2444
+ * Return an independent handle for an ownership-taking API.
2445
+ *
2446
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2447
+ * handle must remain usable.
2448
+ */
2449
+ copyForTransfer(): WasmRerankResponse;
1619
2450
  static default(): WasmRerankResponse;
2451
+ /**
2452
+ * Takes ownership of every element in `results`.
2453
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2454
+ * copy each retained element with `copyForTransfer()` before passing the array.
2455
+ */
1620
2456
  constructor(results: WasmRerankResult[], id?: string | null, meta?: any | null);
1621
2457
  get id(): string | undefined;
1622
2458
  set id(value: string | null | undefined);
1623
2459
  get meta(): any | undefined;
1624
2460
  set meta(value: any | null | undefined);
2461
+ /**
2462
+ * Returns detached copies of the elements in `results`.
2463
+ *
2464
+ * Changes to the returned values do not update this object. Modify the copies,
2465
+ * then assign the array back to `results`.
2466
+ */
1625
2467
  results: WasmRerankResult[];
1626
2468
  }
1627
2469
 
@@ -1631,10 +2473,31 @@ export class WasmRerankResponse {
1631
2473
  export class WasmRerankResult {
1632
2474
  free(): void;
1633
2475
  [Symbol.dispose](): void;
2476
+ clearDocument(): void;
2477
+ /**
2478
+ * Return an independent handle for an ownership-taking API.
2479
+ *
2480
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2481
+ * handle must remain usable.
2482
+ */
2483
+ copyForTransfer(): WasmRerankResult;
1634
2484
  static default(): WasmRerankResult;
2485
+ /**
2486
+ * Takes ownership of `document`.
2487
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2488
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2489
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2490
+ * the generated setter borrows and leaves your handle alive.
2491
+ */
1635
2492
  constructor(index: number, relevanceScore: number, document?: WasmRerankResultDocument | null);
2493
+ /**
2494
+ * Returns a detached copy of `document`.
2495
+ *
2496
+ * Changes to the returned value do not update this object. To update `document`,
2497
+ * read it, modify the copy, then assign the copy back to `document`.
2498
+ */
1636
2499
  get document(): WasmRerankResultDocument | undefined;
1637
- set document(value: WasmRerankResultDocument | null | undefined);
2500
+ set document(value: WasmRerankResultDocument);
1638
2501
  index: number;
1639
2502
  relevanceScore: number;
1640
2503
  }
@@ -1645,6 +2508,13 @@ export class WasmRerankResult {
1645
2508
  export class WasmRerankResultDocument {
1646
2509
  free(): void;
1647
2510
  [Symbol.dispose](): void;
2511
+ /**
2512
+ * Return an independent handle for an ownership-taking API.
2513
+ *
2514
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2515
+ * handle must remain usable.
2516
+ */
2517
+ copyForTransfer(): WasmRerankResultDocument;
1648
2518
  static default(): WasmRerankResultDocument;
1649
2519
  constructor(text: string);
1650
2520
  text: string;
@@ -1673,10 +2543,11 @@ export class WasmRerankResultDocument {
1673
2543
  export class WasmResponseFormat {
1674
2544
  free(): void;
1675
2545
  [Symbol.dispose](): void;
2546
+ clearJsonSchema(): void;
1676
2547
  static default(): WasmResponseFormat;
1677
2548
  constructor();
1678
2549
  get jsonSchema(): WasmJsonSchemaFormat | undefined;
1679
- set jsonSchema(value: WasmJsonSchemaFormat | null | undefined);
2550
+ set jsonSchema(value: WasmJsonSchemaFormat);
1680
2551
  type: string;
1681
2552
  }
1682
2553
 
@@ -1686,7 +2557,25 @@ export class WasmResponseFormat {
1686
2557
  export class WasmResponseObject {
1687
2558
  free(): void;
1688
2559
  [Symbol.dispose](): void;
2560
+ clearUsage(): void;
2561
+ /**
2562
+ * Return an independent handle for an ownership-taking API.
2563
+ *
2564
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2565
+ * handle must remain usable.
2566
+ */
2567
+ copyForTransfer(): WasmResponseObject;
1689
2568
  static default(): WasmResponseObject;
2569
+ /**
2570
+ * Takes ownership of `usage`.
2571
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2572
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2573
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2574
+ * the generated setter borrows and leaves your handle alive.
2575
+ * Takes ownership of every element in `output`.
2576
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2577
+ * copy each retained element with `copyForTransfer()` before passing the array.
2578
+ */
1690
2579
  constructor(id?: string | null, object?: string | null, createdAt?: bigint | null, model?: string | null, status?: string | null, output?: WasmResponseOutputItem[] | null, usage?: WasmResponseUsage | null, error?: any | null);
1691
2580
  createdAt: bigint;
1692
2581
  get error(): any | undefined;
@@ -1694,10 +2583,22 @@ export class WasmResponseObject {
1694
2583
  id: string;
1695
2584
  model: string;
1696
2585
  object: string;
2586
+ /**
2587
+ * Returns detached copies of the elements in `output`.
2588
+ *
2589
+ * Changes to the returned values do not update this object. Modify the copies,
2590
+ * then assign the array back to `output`.
2591
+ */
1697
2592
  output: WasmResponseOutputItem[];
1698
2593
  status: string;
2594
+ /**
2595
+ * Returns a detached copy of `usage`.
2596
+ *
2597
+ * Changes to the returned value do not update this object. To update `usage`,
2598
+ * read it, modify the copy, then assign the copy back to `usage`.
2599
+ */
1699
2600
  get usage(): WasmResponseUsage | undefined;
1700
- set usage(value: WasmResponseUsage | null | undefined);
2601
+ set usage(value: WasmResponseUsage);
1701
2602
  }
1702
2603
 
1703
2604
  /**
@@ -1706,6 +2607,13 @@ export class WasmResponseObject {
1706
2607
  export class WasmResponseOutputItem {
1707
2608
  free(): void;
1708
2609
  [Symbol.dispose](): void;
2610
+ /**
2611
+ * Return an independent handle for an ownership-taking API.
2612
+ *
2613
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2614
+ * handle must remain usable.
2615
+ */
2616
+ copyForTransfer(): WasmResponseOutputItem;
1709
2617
  static default(): WasmResponseOutputItem;
1710
2618
  constructor(itemType?: string | null, content?: any | null);
1711
2619
  content: any;
@@ -1718,6 +2626,13 @@ export class WasmResponseOutputItem {
1718
2626
  export class WasmResponseTool {
1719
2627
  free(): void;
1720
2628
  [Symbol.dispose](): void;
2629
+ /**
2630
+ * Return an independent handle for an ownership-taking API.
2631
+ *
2632
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2633
+ * handle must remain usable.
2634
+ */
2635
+ copyForTransfer(): WasmResponseTool;
1721
2636
  static default(): WasmResponseTool;
1722
2637
  constructor(toolType?: string | null, config?: any | null);
1723
2638
  config: any;
@@ -1730,6 +2645,13 @@ export class WasmResponseTool {
1730
2645
  export class WasmResponseUsage {
1731
2646
  free(): void;
1732
2647
  [Symbol.dispose](): void;
2648
+ /**
2649
+ * Return an independent handle for an ownership-taking API.
2650
+ *
2651
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2652
+ * handle must remain usable.
2653
+ */
2654
+ copyForTransfer(): WasmResponseUsage;
1733
2655
  static default(): WasmResponseUsage;
1734
2656
  constructor(inputTokens?: bigint | null, outputTokens?: bigint | null, totalTokens?: bigint | null);
1735
2657
  inputTokens: bigint;
@@ -1743,6 +2665,13 @@ export class WasmResponseUsage {
1743
2665
  export class WasmSearchRequest {
1744
2666
  free(): void;
1745
2667
  [Symbol.dispose](): void;
2668
+ /**
2669
+ * Return an independent handle for an ownership-taking API.
2670
+ *
2671
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2672
+ * handle must remain usable.
2673
+ */
2674
+ copyForTransfer(): WasmSearchRequest;
1746
2675
  static default(): WasmSearchRequest;
1747
2676
  constructor(model?: string | null, query?: string | null, maxResults?: number | null, searchDomainFilter?: string[] | null, country?: string | null);
1748
2677
  get country(): string | undefined;
@@ -1761,9 +2690,27 @@ export class WasmSearchRequest {
1761
2690
  export class WasmSearchResponse {
1762
2691
  free(): void;
1763
2692
  [Symbol.dispose](): void;
2693
+ /**
2694
+ * Return an independent handle for an ownership-taking API.
2695
+ *
2696
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2697
+ * handle must remain usable.
2698
+ */
2699
+ copyForTransfer(): WasmSearchResponse;
1764
2700
  static default(): WasmSearchResponse;
2701
+ /**
2702
+ * Takes ownership of every element in `results`.
2703
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2704
+ * copy each retained element with `copyForTransfer()` before passing the array.
2705
+ */
1765
2706
  constructor(results: WasmSearchResult[], model: string);
1766
2707
  model: string;
2708
+ /**
2709
+ * Returns detached copies of the elements in `results`.
2710
+ *
2711
+ * Changes to the returned values do not update this object. Modify the copies,
2712
+ * then assign the array back to `results`.
2713
+ */
1767
2714
  results: WasmSearchResult[];
1768
2715
  }
1769
2716
 
@@ -1773,6 +2720,13 @@ export class WasmSearchResponse {
1773
2720
  export class WasmSearchResult {
1774
2721
  free(): void;
1775
2722
  [Symbol.dispose](): void;
2723
+ /**
2724
+ * Return an independent handle for an ownership-taking API.
2725
+ *
2726
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2727
+ * handle must remain usable.
2728
+ */
2729
+ copyForTransfer(): WasmSearchResult;
1776
2730
  static default(): WasmSearchResult;
1777
2731
  constructor(title: string, url: string, snippet: string, date?: string | null);
1778
2732
  get date(): string | undefined;
@@ -1788,6 +2742,13 @@ export class WasmSearchResult {
1788
2742
  export class WasmSpecificFunction {
1789
2743
  free(): void;
1790
2744
  [Symbol.dispose](): void;
2745
+ /**
2746
+ * Return an independent handle for an ownership-taking API.
2747
+ *
2748
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2749
+ * handle must remain usable.
2750
+ */
2751
+ copyForTransfer(): WasmSpecificFunction;
1791
2752
  static default(): WasmSpecificFunction;
1792
2753
  constructor(name?: string | null);
1793
2754
  name: string;
@@ -1799,10 +2760,30 @@ export class WasmSpecificFunction {
1799
2760
  export class WasmSpecificToolChoice {
1800
2761
  free(): void;
1801
2762
  [Symbol.dispose](): void;
2763
+ /**
2764
+ * Return an independent handle for an ownership-taking API.
2765
+ *
2766
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2767
+ * handle must remain usable.
2768
+ */
2769
+ copyForTransfer(): WasmSpecificToolChoice;
1802
2770
  static default(): WasmSpecificToolChoice;
2771
+ /**
2772
+ * Takes ownership of `function`.
2773
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2774
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2775
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2776
+ * the generated setter borrows and leaves your handle alive.
2777
+ */
1803
2778
  constructor(choiceType?: WasmToolType | null, _function?: WasmSpecificFunction | null);
1804
2779
  get choiceType(): string;
1805
2780
  set choiceType(value: WasmToolType);
2781
+ /**
2782
+ * Returns a detached copy of `function`.
2783
+ *
2784
+ * Changes to the returned value do not update this object. To update `function`,
2785
+ * read it, modify the copy, then assign the copy back to `function`.
2786
+ */
1806
2787
  function: WasmSpecificFunction;
1807
2788
  }
1808
2789
 
@@ -1812,8 +2793,28 @@ export class WasmSpecificToolChoice {
1812
2793
  export class WasmStreamChoice {
1813
2794
  free(): void;
1814
2795
  [Symbol.dispose](): void;
2796
+ /**
2797
+ * Return an independent handle for an ownership-taking API.
2798
+ *
2799
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2800
+ * handle must remain usable.
2801
+ */
2802
+ copyForTransfer(): WasmStreamChoice;
1815
2803
  static default(): WasmStreamChoice;
2804
+ /**
2805
+ * Takes ownership of `delta`.
2806
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2807
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2808
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2809
+ * the generated setter borrows and leaves your handle alive.
2810
+ */
1816
2811
  constructor(index?: number | null, delta?: WasmStreamDelta | null, finishReason?: WasmFinishReason | null);
2812
+ /**
2813
+ * Returns a detached copy of `delta`.
2814
+ *
2815
+ * Changes to the returned value do not update this object. To update `delta`,
2816
+ * read it, modify the copy, then assign the copy back to `delta`.
2817
+ */
1817
2818
  delta: WasmStreamDelta;
1818
2819
  get finishReason(): string | undefined;
1819
2820
  set finishReason(value: WasmFinishReason | null | undefined);
@@ -1826,19 +2827,54 @@ export class WasmStreamChoice {
1826
2827
  export class WasmStreamDelta {
1827
2828
  free(): void;
1828
2829
  [Symbol.dispose](): void;
2830
+ clearFunctionCall(): void;
2831
+ /**
2832
+ * Return an independent handle for an ownership-taking API.
2833
+ *
2834
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2835
+ * handle must remain usable.
2836
+ */
2837
+ copyForTransfer(): WasmStreamDelta;
1829
2838
  static default(): WasmStreamDelta;
2839
+ /**
2840
+ * Takes ownership of `functionCall`.
2841
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2842
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2843
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2844
+ * the generated setter borrows and leaves your handle alive.
2845
+ * Takes ownership of every element in `toolCalls`.
2846
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
2847
+ * copy each retained element with `copyForTransfer()` before passing the array.
2848
+ */
1830
2849
  constructor(role?: string | null, content?: string | null, toolCalls?: WasmStreamToolCall[] | null, functionCall?: WasmStreamFunctionCall | null, refusal?: string | null, reasoningContent?: string | null);
1831
2850
  get content(): string | undefined;
1832
2851
  set content(value: string | null | undefined);
2852
+ /**
2853
+ * Returns a detached copy of `functionCall`.
2854
+ *
2855
+ * Changes to the returned value do not update this object. To update `functionCall`,
2856
+ * read it, modify the copy, then assign the copy back to `functionCall`.
2857
+ */
1833
2858
  get functionCall(): WasmStreamFunctionCall | undefined;
1834
- set functionCall(value: WasmStreamFunctionCall | null | undefined);
2859
+ set functionCall(value: WasmStreamFunctionCall);
1835
2860
  get reasoningContent(): string | undefined;
1836
2861
  set reasoningContent(value: string | null | undefined);
1837
2862
  get refusal(): string | undefined;
1838
2863
  set refusal(value: string | null | undefined);
1839
2864
  get role(): string | undefined;
1840
2865
  set role(value: string | null | undefined);
2866
+ /**
2867
+ * Returns detached copies of the elements in `toolCalls`.
2868
+ *
2869
+ * Changes to the returned values do not update this object. Modify the copies,
2870
+ * then assign the array back to `toolCalls`.
2871
+ */
1841
2872
  get toolCalls(): Array<any> | undefined;
2873
+ /**
2874
+ * Takes ownership of every element in `toolCalls`.
2875
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
2876
+ * element with `copyForTransfer()` before passing the array.
2877
+ */
1842
2878
  set toolCalls(value: WasmStreamToolCall[] | null | undefined);
1843
2879
  }
1844
2880
 
@@ -1861,6 +2897,13 @@ export enum WasmStreamFormat {
1861
2897
  export class WasmStreamFunctionCall {
1862
2898
  free(): void;
1863
2899
  [Symbol.dispose](): void;
2900
+ /**
2901
+ * Return an independent handle for an ownership-taking API.
2902
+ *
2903
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2904
+ * handle must remain usable.
2905
+ */
2906
+ copyForTransfer(): WasmStreamFunctionCall;
1864
2907
  static default(): WasmStreamFunctionCall;
1865
2908
  constructor(name?: string | null, _arguments?: string | null);
1866
2909
  get arguments(): string | undefined;
@@ -1875,6 +2918,13 @@ export class WasmStreamFunctionCall {
1875
2918
  export class WasmStreamOptions {
1876
2919
  free(): void;
1877
2920
  [Symbol.dispose](): void;
2921
+ /**
2922
+ * Return an independent handle for an ownership-taking API.
2923
+ *
2924
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2925
+ * handle must remain usable.
2926
+ */
2927
+ copyForTransfer(): WasmStreamOptions;
1878
2928
  static default(): WasmStreamOptions;
1879
2929
  constructor(includeUsage?: boolean | null);
1880
2930
  get includeUsage(): boolean | undefined;
@@ -1887,12 +2937,33 @@ export class WasmStreamOptions {
1887
2937
  export class WasmStreamToolCall {
1888
2938
  free(): void;
1889
2939
  [Symbol.dispose](): void;
2940
+ clearFunction(): void;
2941
+ /**
2942
+ * Return an independent handle for an ownership-taking API.
2943
+ *
2944
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2945
+ * handle must remain usable.
2946
+ */
2947
+ copyForTransfer(): WasmStreamToolCall;
1890
2948
  static default(): WasmStreamToolCall;
2949
+ /**
2950
+ * Takes ownership of `function`.
2951
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
2952
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
2953
+ * keep a handle you already hold, build with `default()` and assign the property instead:
2954
+ * the generated setter borrows and leaves your handle alive.
2955
+ */
1891
2956
  constructor(index?: number | null, id?: string | null, callType?: WasmToolType | null, _function?: WasmStreamFunctionCall | null);
1892
2957
  get callType(): string | undefined;
1893
2958
  set callType(value: WasmToolType | null | undefined);
2959
+ /**
2960
+ * Returns a detached copy of `function`.
2961
+ *
2962
+ * Changes to the returned value do not update this object. To update `function`,
2963
+ * read it, modify the copy, then assign the copy back to `function`.
2964
+ */
1894
2965
  get function(): WasmStreamFunctionCall | undefined;
1895
- set function(value: WasmStreamFunctionCall | null | undefined);
2966
+ set function(value: WasmStreamFunctionCall);
1896
2967
  get id(): string | undefined;
1897
2968
  set id(value: string | null | undefined);
1898
2969
  index: number;
@@ -1904,6 +2975,13 @@ export class WasmStreamToolCall {
1904
2975
  export class WasmSystemMessage {
1905
2976
  free(): void;
1906
2977
  [Symbol.dispose](): void;
2978
+ /**
2979
+ * Return an independent handle for an ownership-taking API.
2980
+ *
2981
+ * Use `copyForTransfer()` for each class value placed in an array when the original
2982
+ * handle must remain usable.
2983
+ */
2984
+ copyForTransfer(): WasmSystemMessage;
1907
2985
  static default(): WasmSystemMessage;
1908
2986
  constructor(content?: any | null, name?: string | null);
1909
2987
  content: WasmUserContent;
@@ -1917,10 +2995,23 @@ export class WasmSystemMessage {
1917
2995
  export class WasmToolCall {
1918
2996
  free(): void;
1919
2997
  [Symbol.dispose](): void;
2998
+ /**
2999
+ * Return an independent handle for an ownership-taking API.
3000
+ *
3001
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3002
+ * handle must remain usable.
3003
+ */
3004
+ copyForTransfer(): WasmToolCall;
1920
3005
  static default(): WasmToolCall;
1921
3006
  constructor(id: string, callType: WasmToolType, _function: WasmFunctionCall);
1922
3007
  get callType(): string;
1923
3008
  set callType(value: WasmToolType);
3009
+ /**
3010
+ * Returns a detached copy of `function`.
3011
+ *
3012
+ * Changes to the returned value do not update this object. To update `function`,
3013
+ * read it, modify the copy, then assign the copy back to `function`.
3014
+ */
1924
3015
  function: WasmFunctionCall;
1925
3016
  id: string;
1926
3017
  }
@@ -1940,6 +3031,13 @@ export enum WasmToolChoiceMode {
1940
3031
  export class WasmToolMessage {
1941
3032
  free(): void;
1942
3033
  [Symbol.dispose](): void;
3034
+ /**
3035
+ * Return an independent handle for an ownership-taking API.
3036
+ *
3037
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3038
+ * handle must remain usable.
3039
+ */
3040
+ copyForTransfer(): WasmToolMessage;
1943
3041
  static default(): WasmToolMessage;
1944
3042
  constructor(content?: any | null, toolCallId?: string | null, name?: string | null);
1945
3043
  content: WasmUserContent;
@@ -1965,13 +3063,36 @@ export enum WasmToolType {
1965
3063
  export class WasmTranscriptionResponse {
1966
3064
  free(): void;
1967
3065
  [Symbol.dispose](): void;
3066
+ /**
3067
+ * Return an independent handle for an ownership-taking API.
3068
+ *
3069
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3070
+ * handle must remain usable.
3071
+ */
3072
+ copyForTransfer(): WasmTranscriptionResponse;
1968
3073
  static default(): WasmTranscriptionResponse;
3074
+ /**
3075
+ * Takes ownership of every element in `segments`.
3076
+ * wasm-bindgen cannot borrow class values nested in an array. To keep those handles,
3077
+ * copy each retained element with `copyForTransfer()` before passing the array.
3078
+ */
1969
3079
  constructor(text?: string | null, language?: string | null, duration?: number | null, segments?: WasmTranscriptionSegment[] | null);
1970
3080
  get duration(): number | undefined;
1971
3081
  set duration(value: number | null | undefined);
1972
3082
  get language(): string | undefined;
1973
3083
  set language(value: string | null | undefined);
3084
+ /**
3085
+ * Returns detached copies of the elements in `segments`.
3086
+ *
3087
+ * Changes to the returned values do not update this object. Modify the copies,
3088
+ * then assign the array back to `segments`.
3089
+ */
1974
3090
  get segments(): Array<any> | undefined;
3091
+ /**
3092
+ * Takes ownership of every element in `segments`.
3093
+ * wasm-bindgen cannot borrow class values nested in an array; copy each retained
3094
+ * element with `copyForTransfer()` before passing the array.
3095
+ */
1975
3096
  set segments(value: WasmTranscriptionSegment[] | null | undefined);
1976
3097
  text: string;
1977
3098
  }
@@ -1982,6 +3103,13 @@ export class WasmTranscriptionResponse {
1982
3103
  export class WasmTranscriptionSegment {
1983
3104
  free(): void;
1984
3105
  [Symbol.dispose](): void;
3106
+ /**
3107
+ * Return an independent handle for an ownership-taking API.
3108
+ *
3109
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3110
+ * handle must remain usable.
3111
+ */
3112
+ copyForTransfer(): WasmTranscriptionSegment;
1985
3113
  static default(): WasmTranscriptionSegment;
1986
3114
  constructor(id?: number | null, start?: number | null, end?: number | null, text?: string | null);
1987
3115
  end: number;
@@ -1996,11 +3124,32 @@ export class WasmTranscriptionSegment {
1996
3124
  export class WasmUsage {
1997
3125
  free(): void;
1998
3126
  [Symbol.dispose](): void;
3127
+ clearPromptTokensDetails(): void;
3128
+ /**
3129
+ * Return an independent handle for an ownership-taking API.
3130
+ *
3131
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3132
+ * handle must remain usable.
3133
+ */
3134
+ copyForTransfer(): WasmUsage;
1999
3135
  static default(): WasmUsage;
3136
+ /**
3137
+ * Takes ownership of `promptTokensDetails`.
3138
+ * wasm-bindgen lowers a by-value class argument through `__destroy_into_raw()`, so each
3139
+ * of those handles is dead once this returns. Passing a freshly built value is fine. To
3140
+ * keep a handle you already hold, build with `default()` and assign the property instead:
3141
+ * the generated setter borrows and leaves your handle alive.
3142
+ */
2000
3143
  constructor(promptTokens?: bigint | null, completionTokens?: bigint | null, totalTokens?: bigint | null, promptTokensDetails?: WasmPromptTokensDetails | null);
2001
3144
  completionTokens: bigint;
3145
+ /**
3146
+ * Returns a detached copy of `promptTokensDetails`.
3147
+ *
3148
+ * Changes to the returned value do not update this object. To update `promptTokensDetails`,
3149
+ * read it, modify the copy, then assign the copy back to `promptTokensDetails`.
3150
+ */
2002
3151
  get promptTokensDetails(): WasmPromptTokensDetails | undefined;
2003
- set promptTokensDetails(value: WasmPromptTokensDetails | null | undefined);
3152
+ set promptTokensDetails(value: WasmPromptTokensDetails);
2004
3153
  promptTokens: bigint;
2005
3154
  totalTokens: bigint;
2006
3155
  }
@@ -2011,6 +3160,13 @@ export class WasmUsage {
2011
3160
  export class WasmUserMessage {
2012
3161
  free(): void;
2013
3162
  [Symbol.dispose](): void;
3163
+ /**
3164
+ * Return an independent handle for an ownership-taking API.
3165
+ *
3166
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3167
+ * handle must remain usable.
3168
+ */
3169
+ copyForTransfer(): WasmUserMessage;
2014
3170
  static default(): WasmUserMessage;
2015
3171
  constructor(content?: any | null, name?: string | null);
2016
3172
  content: WasmUserContent;
@@ -2027,6 +3183,13 @@ export class WasmUserMessage {
2027
3183
  export class WasmWaitForBatchConfig {
2028
3184
  free(): void;
2029
3185
  [Symbol.dispose](): void;
3186
+ /**
3187
+ * Return an independent handle for an ownership-taking API.
3188
+ *
3189
+ * Use `copyForTransfer()` for each class value placed in an array when the original
3190
+ * handle must remain usable.
3191
+ */
3192
+ copyForTransfer(): WasmWaitForBatchConfig;
2030
3193
  static default(): WasmWaitForBatchConfig;
2031
3194
  constructor(initialIntervalSecs?: number | null, maxIntervalSecs?: number | null, backoffMultiplier?: number | null, timeoutSecs?: number | null);
2032
3195
  backoffMultiplier: number;
@@ -2048,7 +3211,7 @@ export function allProviders(): WasmProviderConfig[];
2048
3211
  /**
2049
3212
  * Return the capability flags for a named provider.
2050
3213
  *
2051
- * Performs an O(n) linear scan over the embedded registry (165 entries).
3214
+ * Performs an O(n) linear scan over the embedded registry (174 entries).
2052
3215
  * Returns an owned value so bindings can pass capability data without
2053
3216
  * borrowing registry internals.
2054
3217
  *
@@ -2153,11 +3316,19 @@ export function createClient(api_key: string, base_url?: string | null, timeout_
2153
3316
  * Create a new LLM client from a JSON string.
2154
3317
  *
2155
3318
  * The JSON object accepts the same fields as `liter-llm.toml` (snake_case).
3319
+ * Middleware keys (`cache`, `budget`, `cooldown_secs`, `rate_limit`,
3320
+ * `in_flight_limit`, `health_check_secs`, `cost_tracking`, `tracing`) are
3321
+ * applied: the returned client routes the `LlmClient` methods (`chat`,
3322
+ * `chat_stream`, `embed`, `list_models`, `image_generate`, `speech`,
3323
+ * `transcribe`, `moderate`, `rerank`, `search`, `ocr`) through the managed
3324
+ * Tower stack. File, batch and response operations bypass it. Each `providers`
3325
+ * entry is registered process-wide via `register_custom_provider`.
2156
3326
  *
2157
3327
  * # Errors
2158
3328
  *
2159
- * Returns `LiterLlmError.BadRequest` if `json` is not valid JSON or
2160
- * contains unknown fields.
3329
+ * Returns `LiterLlmError.BadRequest` if `json` is not valid JSON, contains
3330
+ * unknown fields, or sets middleware keys in a build without the `tower` and
3331
+ * `native-http` features. Provider registration failures are propagated.
2161
3332
  */
2162
3333
  export function createClientFromJson(json: string): WasmDefaultClient;
2163
3334
 
@@ -2397,7 +3568,9 @@ export interface InitOutput {
2397
3568
  readonly refreshCatalog: (a: number) => any;
2398
3569
  readonly registerCustomProvider: (a: number) => [number, number];
2399
3570
  readonly unregisterCustomProvider: (a: number, b: number) => [number, number, number];
3571
+ readonly wasmassistantmessage_clearFunctionCall: (a: number) => void;
2400
3572
  readonly wasmassistantmessage_content: (a: number) => [number, number];
3573
+ readonly wasmassistantmessage_copyForTransfer: (a: number) => number;
2401
3574
  readonly wasmassistantmessage_default: () => number;
2402
3575
  readonly wasmassistantmessage_functionCall: (a: number) => number;
2403
3576
  readonly wasmassistantmessage_name: (a: number) => [number, number];
@@ -2417,6 +3590,8 @@ export interface InitOutput {
2417
3590
  readonly wasmassistantmessage_text: (a: number) => [number, number];
2418
3591
  readonly wasmassistantmessage_toolCalls: (a: number) => any;
2419
3592
  readonly wasmassistantpart_audio: (a: number) => number;
3593
+ readonly wasmassistantpart_clearAudio: (a: number) => void;
3594
+ readonly wasmassistantpart_clearImageUrl: (a: number) => void;
2420
3595
  readonly wasmassistantpart_default: () => number;
2421
3596
  readonly wasmassistantpart_imageUrl: (a: number) => number;
2422
3597
  readonly wasmassistantpart_new: () => number;
@@ -2428,6 +3603,7 @@ export interface InitOutput {
2428
3603
  readonly wasmassistantpart_set_type: (a: number, b: number, c: number) => void;
2429
3604
  readonly wasmassistantpart_text: (a: number) => [number, number];
2430
3605
  readonly wasmassistantpart_type: (a: number) => [number, number];
3606
+ readonly wasmaudiocontent_copyForTransfer: (a: number) => number;
2431
3607
  readonly wasmaudiocontent_data: (a: number) => [number, number];
2432
3608
  readonly wasmaudiocontent_default: () => number;
2433
3609
  readonly wasmaudiocontent_format: (a: number) => [number, number];
@@ -2435,6 +3611,7 @@ export interface InitOutput {
2435
3611
  readonly wasmaudiocontent_set_data: (a: number, b: number, c: number) => void;
2436
3612
  readonly wasmaudiocontent_set_format: (a: number, b: number, c: number) => void;
2437
3613
  readonly wasmauthconfig_authType: (a: number) => [number, number];
3614
+ readonly wasmauthconfig_copyForTransfer: (a: number) => number;
2438
3615
  readonly wasmauthconfig_default: () => number;
2439
3616
  readonly wasmauthconfig_envVar: (a: number) => [number, number];
2440
3617
  readonly wasmauthconfig_new: (a: number, b: number, c: number) => number;
@@ -2447,11 +3624,13 @@ export interface InitOutput {
2447
3624
  readonly wasmauthheaderformat_set_type: (a: number, b: number, c: number) => void;
2448
3625
  readonly wasmauthheaderformat_type: (a: number) => [number, number];
2449
3626
  readonly wasmbatchlistquery_after: (a: number) => [number, number];
3627
+ readonly wasmbatchlistquery_copyForTransfer: (a: number) => number;
2450
3628
  readonly wasmbatchlistquery_default: () => number;
2451
3629
  readonly wasmbatchlistquery_limit: (a: number) => number;
2452
3630
  readonly wasmbatchlistquery_new: (a: number, b: number, c: number) => number;
2453
3631
  readonly wasmbatchlistquery_set_after: (a: number, b: number, c: number) => void;
2454
3632
  readonly wasmbatchlistquery_set_limit: (a: number, b: number) => void;
3633
+ readonly wasmbatchlistresponse_copyForTransfer: (a: number) => number;
2455
3634
  readonly wasmbatchlistresponse_data: (a: number) => [number, number];
2456
3635
  readonly wasmbatchlistresponse_default: () => number;
2457
3636
  readonly wasmbatchlistresponse_firstId: (a: number) => [number, number];
@@ -2464,8 +3643,10 @@ export interface InitOutput {
2464
3643
  readonly wasmbatchlistresponse_set_hasMore: (a: number, b: number) => void;
2465
3644
  readonly wasmbatchlistresponse_set_lastId: (a: number, b: number, c: number) => void;
2466
3645
  readonly wasmbatchlistresponse_set_object: (a: number, b: number, c: number) => void;
3646
+ readonly wasmbatchobject_clearRequestCounts: (a: number) => void;
2467
3647
  readonly wasmbatchobject_completedAt: (a: number) => [number, bigint];
2468
3648
  readonly wasmbatchobject_completionWindow: (a: number) => [number, number];
3649
+ readonly wasmbatchobject_copyForTransfer: (a: number) => number;
2469
3650
  readonly wasmbatchobject_createdAt: (a: number) => bigint;
2470
3651
  readonly wasmbatchobject_default: () => number;
2471
3652
  readonly wasmbatchobject_endpoint: (a: number) => [number, number];
@@ -2495,6 +3676,7 @@ export interface InitOutput {
2495
3676
  readonly wasmbatchobject_set_status: (a: number, b: number) => void;
2496
3677
  readonly wasmbatchobject_status: (a: number) => [number, number];
2497
3678
  readonly wasmbatchrequestcounts_completed: (a: number) => bigint;
3679
+ readonly wasmbatchrequestcounts_copyForTransfer: (a: number) => number;
2498
3680
  readonly wasmbatchrequestcounts_default: () => number;
2499
3681
  readonly wasmbatchrequestcounts_failed: (a: number) => bigint;
2500
3682
  readonly wasmbatchrequestcounts_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint) => number;
@@ -2503,6 +3685,7 @@ export interface InitOutput {
2503
3685
  readonly wasmbatchrequestcounts_set_total: (a: number, b: bigint) => void;
2504
3686
  readonly wasmbatchrequestcounts_total: (a: number) => bigint;
2505
3687
  readonly wasmbedrockconfig_accessKeyId: (a: number) => [number, number];
3688
+ readonly wasmbedrockconfig_copyForTransfer: (a: number) => number;
2506
3689
  readonly wasmbedrockconfig_crossRegionPrefix: (a: number) => [number, number];
2507
3690
  readonly wasmbedrockconfig_default: () => number;
2508
3691
  readonly wasmbedrockconfig_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => number;
@@ -2515,6 +3698,7 @@ export interface InitOutput {
2515
3698
  readonly wasmbedrockconfig_set_secretAccessKey: (a: number, b: number, c: number) => void;
2516
3699
  readonly wasmbedrockconfig_set_sessionToken: (a: number, b: number, c: number) => void;
2517
3700
  readonly wasmcatalogrefreshconfig_cachePath: (a: number) => [number, number];
3701
+ readonly wasmcatalogrefreshconfig_copyForTransfer: (a: number) => number;
2518
3702
  readonly wasmcatalogrefreshconfig_default: () => number;
2519
3703
  readonly wasmcatalogrefreshconfig_enabled: (a: number) => number;
2520
3704
  readonly wasmcatalogrefreshconfig_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => number;
@@ -2525,6 +3709,8 @@ export interface InitOutput {
2525
3709
  readonly wasmcatalogrefreshconfig_sourceUrl: (a: number) => [number, number];
2526
3710
  readonly wasmcatalogrefreshconfig_ttlSeconds: (a: number) => bigint;
2527
3711
  readonly wasmchatcompletionchunk_choices: (a: number) => [number, number];
3712
+ readonly wasmchatcompletionchunk_clearUsage: (a: number) => void;
3713
+ readonly wasmchatcompletionchunk_copyForTransfer: (a: number) => number;
2528
3714
  readonly wasmchatcompletionchunk_created: (a: number) => bigint;
2529
3715
  readonly wasmchatcompletionchunk_default: () => number;
2530
3716
  readonly wasmchatcompletionchunk_id: (a: number) => [number, number];
@@ -2543,6 +3729,8 @@ export interface InitOutput {
2543
3729
  readonly wasmchatcompletionchunk_systemFingerprint: (a: number) => [number, number];
2544
3730
  readonly wasmchatcompletionchunk_usage: (a: number) => number;
2545
3731
  readonly wasmchatcompletionrequest_audio: (a: number) => any;
3732
+ readonly wasmchatcompletionrequest_clearStreamOptions: (a: number) => void;
3733
+ readonly wasmchatcompletionrequest_copyForTransfer: (a: number) => number;
2546
3734
  readonly wasmchatcompletionrequest_default: () => number;
2547
3735
  readonly wasmchatcompletionrequest_extraBody: (a: number) => any;
2548
3736
  readonly wasmchatcompletionrequest_frequencyPenalty: (a: number) => [number, number];
@@ -2605,6 +3793,8 @@ export interface InitOutput {
2605
3793
  readonly wasmchatcompletionrequest_user: (a: number) => [number, number];
2606
3794
  readonly wasmchatcompletionrequest_webSearchOptions: (a: number) => any;
2607
3795
  readonly wasmchatcompletionresponse_choices: (a: number) => [number, number];
3796
+ readonly wasmchatcompletionresponse_clearUsage: (a: number) => void;
3797
+ readonly wasmchatcompletionresponse_copyForTransfer: (a: number) => number;
2608
3798
  readonly wasmchatcompletionresponse_created: (a: number) => bigint;
2609
3799
  readonly wasmchatcompletionresponse_default: () => number;
2610
3800
  readonly wasmchatcompletionresponse_id: (a: number) => [number, number];
@@ -2622,12 +3812,14 @@ export interface InitOutput {
2622
3812
  readonly wasmchatcompletionresponse_set_usage: (a: number, b: number) => void;
2623
3813
  readonly wasmchatcompletionresponse_systemFingerprint: (a: number) => [number, number];
2624
3814
  readonly wasmchatcompletionresponse_usage: (a: number) => number;
3815
+ readonly wasmchatcompletiontool_copyForTransfer: (a: number) => number;
2625
3816
  readonly wasmchatcompletiontool_default: () => number;
2626
3817
  readonly wasmchatcompletiontool_function: (a: number) => number;
2627
3818
  readonly wasmchatcompletiontool_new: (a: number, b: number) => number;
2628
3819
  readonly wasmchatcompletiontool_set_function: (a: number, b: number) => void;
2629
3820
  readonly wasmchatcompletiontool_set_toolType: (a: number, b: number) => void;
2630
3821
  readonly wasmchatcompletiontool_toolType: (a: number) => [number, number];
3822
+ readonly wasmchoice_copyForTransfer: (a: number) => number;
2631
3823
  readonly wasmchoice_default: () => number;
2632
3824
  readonly wasmchoice_finishReason: (a: number) => [number, number];
2633
3825
  readonly wasmchoice_index: (a: number) => number;
@@ -2638,6 +3830,9 @@ export interface InitOutput {
2638
3830
  readonly wasmchoice_set_index: (a: number, b: number) => void;
2639
3831
  readonly wasmchoice_set_logprobs: (a: number, b: number) => void;
2640
3832
  readonly wasmchoice_set_message: (a: number, b: number) => void;
3833
+ readonly wasmcontentpart_clearDocument: (a: number) => void;
3834
+ readonly wasmcontentpart_clearImageUrl: (a: number) => void;
3835
+ readonly wasmcontentpart_clearInputAudio: (a: number) => void;
2641
3836
  readonly wasmcontentpart_default: () => number;
2642
3837
  readonly wasmcontentpart_document: (a: number) => number;
2643
3838
  readonly wasmcontentpart_imageUrl: (a: number) => number;
@@ -2651,6 +3846,7 @@ export interface InitOutput {
2651
3846
  readonly wasmcontentpart_text: (a: number) => [number, number];
2652
3847
  readonly wasmcontentpart_type: (a: number) => [number, number];
2653
3848
  readonly wasmcreatebatchrequest_completionWindow: (a: number) => [number, number];
3849
+ readonly wasmcreatebatchrequest_copyForTransfer: (a: number) => number;
2654
3850
  readonly wasmcreatebatchrequest_default: () => number;
2655
3851
  readonly wasmcreatebatchrequest_endpoint: (a: number) => [number, number];
2656
3852
  readonly wasmcreatebatchrequest_inputFileId: (a: number) => [number, number];
@@ -2660,6 +3856,7 @@ export interface InitOutput {
2660
3856
  readonly wasmcreatebatchrequest_set_endpoint: (a: number, b: number, c: number) => void;
2661
3857
  readonly wasmcreatebatchrequest_set_inputFileId: (a: number, b: number, c: number) => void;
2662
3858
  readonly wasmcreatebatchrequest_set_metadata: (a: number, b: number) => void;
3859
+ readonly wasmcreatefilerequest_copyForTransfer: (a: number) => number;
2663
3860
  readonly wasmcreatefilerequest_default: () => number;
2664
3861
  readonly wasmcreatefilerequest_file: (a: number) => [number, number];
2665
3862
  readonly wasmcreatefilerequest_filename: (a: number) => [number, number];
@@ -2668,6 +3865,7 @@ export interface InitOutput {
2668
3865
  readonly wasmcreatefilerequest_set_file: (a: number, b: number, c: number) => void;
2669
3866
  readonly wasmcreatefilerequest_set_filename: (a: number, b: number, c: number) => void;
2670
3867
  readonly wasmcreatefilerequest_set_purpose: (a: number, b: number) => void;
3868
+ readonly wasmcreateimagerequest_copyForTransfer: (a: number) => number;
2671
3869
  readonly wasmcreateimagerequest_default: () => number;
2672
3870
  readonly wasmcreateimagerequest_model: (a: number) => [number, number];
2673
3871
  readonly wasmcreateimagerequest_n: (a: number) => number;
@@ -2686,6 +3884,7 @@ export interface InitOutput {
2686
3884
  readonly wasmcreateimagerequest_size: (a: number) => [number, number];
2687
3885
  readonly wasmcreateimagerequest_style: (a: number) => [number, number];
2688
3886
  readonly wasmcreateimagerequest_user: (a: number) => [number, number];
3887
+ readonly wasmcreateresponserequest_copyForTransfer: (a: number) => number;
2689
3888
  readonly wasmcreateresponserequest_default: () => number;
2690
3889
  readonly wasmcreateresponserequest_extraBody: (a: number) => any;
2691
3890
  readonly wasmcreateresponserequest_input: (a: number) => any;
@@ -2706,6 +3905,7 @@ export interface InitOutput {
2706
3905
  readonly wasmcreateresponserequest_stream: (a: number) => number;
2707
3906
  readonly wasmcreateresponserequest_temperature: (a: number) => [number, number];
2708
3907
  readonly wasmcreateresponserequest_tools: (a: number) => any;
3908
+ readonly wasmcreatespeechrequest_copyForTransfer: (a: number) => number;
2709
3909
  readonly wasmcreatespeechrequest_default: () => number;
2710
3910
  readonly wasmcreatespeechrequest_input: (a: number) => [number, number];
2711
3911
  readonly wasmcreatespeechrequest_model: (a: number) => [number, number];
@@ -2718,6 +3918,7 @@ export interface InitOutput {
2718
3918
  readonly wasmcreatespeechrequest_set_voice: (a: number, b: number, c: number) => void;
2719
3919
  readonly wasmcreatespeechrequest_speed: (a: number) => [number, number];
2720
3920
  readonly wasmcreatespeechrequest_voice: (a: number) => [number, number];
3921
+ readonly wasmcreatetranscriptionrequest_copyForTransfer: (a: number) => number;
2721
3922
  readonly wasmcreatetranscriptionrequest_default: () => number;
2722
3923
  readonly wasmcreatetranscriptionrequest_file: (a: number) => [number, number];
2723
3924
  readonly wasmcreatetranscriptionrequest_language: (a: number) => [number, number];
@@ -2734,6 +3935,7 @@ export interface InitOutput {
2734
3935
  readonly wasmcreatetranscriptionrequest_temperature: (a: number) => [number, number];
2735
3936
  readonly wasmcustomproviderconfig_authHeader: (a: number) => any;
2736
3937
  readonly wasmcustomproviderconfig_baseUrl: (a: number) => [number, number];
3938
+ readonly wasmcustomproviderconfig_copyForTransfer: (a: number) => number;
2737
3939
  readonly wasmcustomproviderconfig_default: () => number;
2738
3940
  readonly wasmcustomproviderconfig_modelPrefixes: (a: number) => [number, number];
2739
3941
  readonly wasmcustomproviderconfig_name: (a: number) => [number, number];
@@ -2742,6 +3944,7 @@ export interface InitOutput {
2742
3944
  readonly wasmcustomproviderconfig_set_baseUrl: (a: number, b: number, c: number) => void;
2743
3945
  readonly wasmcustomproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
2744
3946
  readonly wasmcustomproviderconfig_set_name: (a: number, b: number, c: number) => void;
3947
+ readonly wasmdecodeddataurl_copyForTransfer: (a: number) => number;
2745
3948
  readonly wasmdecodeddataurl_data: (a: number) => [number, number];
2746
3949
  readonly wasmdecodeddataurl_default: () => number;
2747
3950
  readonly wasmdecodeddataurl_mime: (a: number) => [number, number];
@@ -2752,6 +3955,7 @@ export interface InitOutput {
2752
3955
  readonly wasmdefaultclient_cancelResponse: (a: number, b: number, c: number) => any;
2753
3956
  readonly wasmdefaultclient_chat: (a: number, b: number) => any;
2754
3957
  readonly wasmdefaultclient_chatStream: (a: number, b: number) => any;
3958
+ readonly wasmdefaultclient_copyForTransfer: (a: number) => number;
2755
3959
  readonly wasmdefaultclient_createBatch: (a: number, b: number) => any;
2756
3960
  readonly wasmdefaultclient_createFile: (a: number, b: number) => any;
2757
3961
  readonly wasmdefaultclient_createResponse: (a: number, b: number) => any;
@@ -2773,6 +3977,7 @@ export interface InitOutput {
2773
3977
  readonly wasmdefaultclient_speech: (a: number, b: number) => any;
2774
3978
  readonly wasmdefaultclient_transcribe: (a: number, b: number) => any;
2775
3979
  readonly wasmdefaultclient_waitForBatch: (a: number, b: number, c: number, d: number) => any;
3980
+ readonly wasmdeleteresponse_copyForTransfer: (a: number) => number;
2776
3981
  readonly wasmdeleteresponse_default: () => number;
2777
3982
  readonly wasmdeleteresponse_deleted: (a: number) => number;
2778
3983
  readonly wasmdeleteresponse_id: (a: number) => [number, number];
@@ -2782,17 +3987,20 @@ export interface InitOutput {
2782
3987
  readonly wasmdeleteresponse_set_id: (a: number, b: number, c: number) => void;
2783
3988
  readonly wasmdeleteresponse_set_object: (a: number, b: number, c: number) => void;
2784
3989
  readonly wasmdevelopermessage_content: (a: number) => [number, number];
3990
+ readonly wasmdevelopermessage_copyForTransfer: (a: number) => number;
2785
3991
  readonly wasmdevelopermessage_default: () => number;
2786
3992
  readonly wasmdevelopermessage_name: (a: number) => [number, number];
2787
3993
  readonly wasmdevelopermessage_new: (a: number, b: number, c: number, d: number) => number;
2788
3994
  readonly wasmdevelopermessage_set_content: (a: number, b: number, c: number) => void;
2789
3995
  readonly wasmdevelopermessage_set_name: (a: number, b: number, c: number) => void;
3996
+ readonly wasmdocumentcontent_copyForTransfer: (a: number) => number;
2790
3997
  readonly wasmdocumentcontent_data: (a: number) => [number, number];
2791
3998
  readonly wasmdocumentcontent_default: () => number;
2792
3999
  readonly wasmdocumentcontent_mediaType: (a: number) => [number, number];
2793
4000
  readonly wasmdocumentcontent_new: (a: number, b: number, c: number, d: number) => number;
2794
4001
  readonly wasmdocumentcontent_set_data: (a: number, b: number, c: number) => void;
2795
4002
  readonly wasmdocumentcontent_set_mediaType: (a: number, b: number, c: number) => void;
4003
+ readonly wasmembeddingcontentpart_clearImageUrl: (a: number) => void;
2796
4004
  readonly wasmembeddingcontentpart_default: () => number;
2797
4005
  readonly wasmembeddingcontentpart_imageBase64: (a: number) => [number, number];
2798
4006
  readonly wasmembeddingcontentpart_imageUrl: (a: number) => number;
@@ -2803,6 +4011,7 @@ export interface InitOutput {
2803
4011
  readonly wasmembeddingcontentpart_set_type: (a: number, b: number, c: number) => void;
2804
4012
  readonly wasmembeddingcontentpart_text: (a: number) => [number, number];
2805
4013
  readonly wasmembeddingcontentpart_type: (a: number) => [number, number];
4014
+ readonly wasmembeddingobject_copyForTransfer: (a: number) => number;
2806
4015
  readonly wasmembeddingobject_default: () => number;
2807
4016
  readonly wasmembeddingobject_embedding: (a: number) => [number, number];
2808
4017
  readonly wasmembeddingobject_index: (a: number) => number;
@@ -2811,6 +4020,7 @@ export interface InitOutput {
2811
4020
  readonly wasmembeddingobject_set_embedding: (a: number, b: number, c: number) => void;
2812
4021
  readonly wasmembeddingobject_set_index: (a: number, b: number) => void;
2813
4022
  readonly wasmembeddingobject_set_object: (a: number, b: number, c: number) => void;
4023
+ readonly wasmembeddingrequest_copyForTransfer: (a: number) => number;
2814
4024
  readonly wasmembeddingrequest_default: () => number;
2815
4025
  readonly wasmembeddingrequest_dimensions: (a: number) => number;
2816
4026
  readonly wasmembeddingrequest_encodingFormat: (a: number) => [number, number];
@@ -2823,6 +4033,8 @@ export interface InitOutput {
2823
4033
  readonly wasmembeddingrequest_set_model: (a: number, b: number, c: number) => void;
2824
4034
  readonly wasmembeddingrequest_set_user: (a: number, b: number, c: number) => void;
2825
4035
  readonly wasmembeddingrequest_user: (a: number) => [number, number];
4036
+ readonly wasmembeddingresponse_clearUsage: (a: number) => void;
4037
+ readonly wasmembeddingresponse_copyForTransfer: (a: number) => number;
2826
4038
  readonly wasmembeddingresponse_data: (a: number) => [number, number];
2827
4039
  readonly wasmembeddingresponse_default: () => number;
2828
4040
  readonly wasmembeddingresponse_model: (a: number) => [number, number];
@@ -2834,6 +4046,7 @@ export interface InitOutput {
2834
4046
  readonly wasmembeddingresponse_set_usage: (a: number, b: number) => void;
2835
4047
  readonly wasmembeddingresponse_usage: (a: number) => number;
2836
4048
  readonly wasmfilelistquery_after: (a: number) => [number, number];
4049
+ readonly wasmfilelistquery_copyForTransfer: (a: number) => number;
2837
4050
  readonly wasmfilelistquery_default: () => number;
2838
4051
  readonly wasmfilelistquery_limit: (a: number) => number;
2839
4052
  readonly wasmfilelistquery_new: (a: number, b: number, c: number, d: number, e: number) => number;
@@ -2841,6 +4054,7 @@ export interface InitOutput {
2841
4054
  readonly wasmfilelistquery_set_after: (a: number, b: number, c: number) => void;
2842
4055
  readonly wasmfilelistquery_set_limit: (a: number, b: number) => void;
2843
4056
  readonly wasmfilelistquery_set_purpose: (a: number, b: number, c: number) => void;
4057
+ readonly wasmfilelistresponse_copyForTransfer: (a: number) => number;
2844
4058
  readonly wasmfilelistresponse_data: (a: number) => [number, number];
2845
4059
  readonly wasmfilelistresponse_default: () => number;
2846
4060
  readonly wasmfilelistresponse_hasMore: (a: number) => number;
@@ -2850,6 +4064,7 @@ export interface InitOutput {
2850
4064
  readonly wasmfilelistresponse_set_hasMore: (a: number, b: number) => void;
2851
4065
  readonly wasmfilelistresponse_set_object: (a: number, b: number, c: number) => void;
2852
4066
  readonly wasmfileobject_bytes: (a: number) => bigint;
4067
+ readonly wasmfileobject_copyForTransfer: (a: number) => number;
2853
4068
  readonly wasmfileobject_createdAt: (a: number) => bigint;
2854
4069
  readonly wasmfileobject_default: () => number;
2855
4070
  readonly wasmfileobject_filename: (a: number) => [number, number];
@@ -2866,11 +4081,13 @@ export interface InitOutput {
2866
4081
  readonly wasmfileobject_set_status: (a: number, b: number, c: number) => void;
2867
4082
  readonly wasmfileobject_status: (a: number) => [number, number];
2868
4083
  readonly wasmfunctioncall_arguments: (a: number) => [number, number];
4084
+ readonly wasmfunctioncall_copyForTransfer: (a: number) => number;
2869
4085
  readonly wasmfunctioncall_default: () => number;
2870
4086
  readonly wasmfunctioncall_name: (a: number) => [number, number];
2871
4087
  readonly wasmfunctioncall_new: (a: number, b: number, c: number, d: number) => number;
2872
4088
  readonly wasmfunctioncall_set_arguments: (a: number, b: number, c: number) => void;
2873
4089
  readonly wasmfunctioncall_set_name: (a: number, b: number, c: number) => void;
4090
+ readonly wasmfunctiondefinition_copyForTransfer: (a: number) => number;
2874
4091
  readonly wasmfunctiondefinition_default: () => number;
2875
4092
  readonly wasmfunctiondefinition_description: (a: number) => [number, number];
2876
4093
  readonly wasmfunctiondefinition_name: (a: number) => [number, number];
@@ -2882,12 +4099,14 @@ export interface InitOutput {
2882
4099
  readonly wasmfunctiondefinition_set_strict: (a: number, b: number) => void;
2883
4100
  readonly wasmfunctiondefinition_strict: (a: number) => number;
2884
4101
  readonly wasmfunctionmessage_content: (a: number) => [number, number];
4102
+ readonly wasmfunctionmessage_copyForTransfer: (a: number) => number;
2885
4103
  readonly wasmfunctionmessage_default: () => number;
2886
4104
  readonly wasmfunctionmessage_name: (a: number) => [number, number];
2887
4105
  readonly wasmfunctionmessage_new: (a: number, b: number, c: number, d: number) => number;
2888
4106
  readonly wasmfunctionmessage_set_content: (a: number, b: number, c: number) => void;
2889
4107
  readonly wasmfunctionmessage_set_name: (a: number, b: number, c: number) => void;
2890
4108
  readonly wasmimage_b64Json: (a: number) => [number, number];
4109
+ readonly wasmimage_copyForTransfer: (a: number) => number;
2891
4110
  readonly wasmimage_default: () => number;
2892
4111
  readonly wasmimage_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
2893
4112
  readonly wasmimage_revisedPrompt: (a: number) => [number, number];
@@ -2895,18 +4114,21 @@ export interface InitOutput {
2895
4114
  readonly wasmimage_set_revisedPrompt: (a: number, b: number, c: number) => void;
2896
4115
  readonly wasmimage_set_url: (a: number, b: number, c: number) => void;
2897
4116
  readonly wasmimage_url: (a: number) => [number, number];
4117
+ readonly wasmimagesresponse_copyForTransfer: (a: number) => number;
2898
4118
  readonly wasmimagesresponse_created: (a: number) => bigint;
2899
4119
  readonly wasmimagesresponse_data: (a: number) => [number, number];
2900
4120
  readonly wasmimagesresponse_default: () => number;
2901
4121
  readonly wasmimagesresponse_new: (a: number, b: bigint, c: number, d: number) => number;
2902
4122
  readonly wasmimagesresponse_set_created: (a: number, b: bigint) => void;
2903
4123
  readonly wasmimagesresponse_set_data: (a: number, b: number, c: number) => void;
4124
+ readonly wasmimageurl_copyForTransfer: (a: number) => number;
2904
4125
  readonly wasmimageurl_default: () => number;
2905
4126
  readonly wasmimageurl_detail: (a: number) => [number, number];
2906
4127
  readonly wasmimageurl_new: (a: number, b: number, c: number) => number;
2907
4128
  readonly wasmimageurl_set_detail: (a: number, b: number) => void;
2908
4129
  readonly wasmimageurl_set_url: (a: number, b: number, c: number) => void;
2909
4130
  readonly wasmimageurl_url: (a: number) => [number, number];
4131
+ readonly wasmjsonschemaformat_copyForTransfer: (a: number) => number;
2910
4132
  readonly wasmjsonschemaformat_default: () => number;
2911
4133
  readonly wasmjsonschemaformat_description: (a: number) => [number, number];
2912
4134
  readonly wasmjsonschemaformat_name: (a: number) => [number, number];
@@ -2919,7 +4141,9 @@ export interface InitOutput {
2919
4141
  readonly wasmjsonschemaformat_strict: (a: number) => number;
2920
4142
  readonly wasmliterllmerror_errorType: (a: number) => [number, number];
2921
4143
  readonly wasmliterllmerror_isTransient: (a: number) => number;
4144
+ readonly wasmliterllmerror_retryAfter: (a: number) => [number, bigint];
2922
4145
  readonly wasmliterllmerror_statusCode: (a: number) => number;
4146
+ readonly wasmllmbudgetconfig_copyForTransfer: (a: number) => number;
2923
4147
  readonly wasmllmbudgetconfig_default: () => number;
2924
4148
  readonly wasmllmbudgetconfig_enforcement: (a: number) => [number, number];
2925
4149
  readonly wasmllmbudgetconfig_globalLimit: (a: number) => [number, number];
@@ -2930,6 +4154,7 @@ export interface InitOutput {
2930
4154
  readonly wasmllmbudgetconfig_set_modelLimits: (a: number, b: number) => void;
2931
4155
  readonly wasmllmcacheconfig_backend: (a: number) => [number, number];
2932
4156
  readonly wasmllmcacheconfig_backendConfig: (a: number) => any;
4157
+ readonly wasmllmcacheconfig_copyForTransfer: (a: number) => number;
2933
4158
  readonly wasmllmcacheconfig_default: () => number;
2934
4159
  readonly wasmllmcacheconfig_maxEntries: (a: number) => number;
2935
4160
  readonly wasmllmcacheconfig_new: (a: number, b: number, c: bigint, d: number, e: number, f: number) => number;
@@ -2943,7 +4168,13 @@ export interface InitOutput {
2943
4168
  readonly wasmllmconfig_bedrock: (a: number) => number;
2944
4169
  readonly wasmllmconfig_budget: (a: number) => number;
2945
4170
  readonly wasmllmconfig_cache: (a: number) => number;
4171
+ readonly wasmllmconfig_clearBedrock: (a: number) => void;
4172
+ readonly wasmllmconfig_clearBudget: (a: number) => void;
4173
+ readonly wasmllmconfig_clearCache: (a: number) => void;
4174
+ readonly wasmllmconfig_clearInFlightLimit: (a: number) => void;
4175
+ readonly wasmllmconfig_clearRateLimit: (a: number) => void;
2946
4176
  readonly wasmllmconfig_cooldownSecs: (a: number) => [number, bigint];
4177
+ readonly wasmllmconfig_copyForTransfer: (a: number) => number;
2947
4178
  readonly wasmllmconfig_costTracking: (a: number) => number;
2948
4179
  readonly wasmllmconfig_default: () => number;
2949
4180
  readonly wasmllmconfig_headers: (a: number) => any;
@@ -2978,12 +4209,14 @@ export interface InitOutput {
2978
4209
  readonly wasmllmconfig_temperature: (a: number) => [number, number];
2979
4210
  readonly wasmllmconfig_timeoutSecs: (a: number) => [number, bigint];
2980
4211
  readonly wasmllmconfig_tracing: (a: number) => number;
4212
+ readonly wasmllminflightlimitconfig_copyForTransfer: (a: number) => number;
2981
4213
  readonly wasmllminflightlimitconfig_default: () => number;
2982
4214
  readonly wasmllminflightlimitconfig_maxInFlight: (a: number) => number;
2983
4215
  readonly wasmllminflightlimitconfig_new: (a: number) => number;
2984
4216
  readonly wasmllminflightlimitconfig_set_maxInFlight: (a: number, b: number) => void;
2985
4217
  readonly wasmllmproviderconfig_authHeader: (a: number) => [number, number];
2986
4218
  readonly wasmllmproviderconfig_baseUrl: (a: number) => [number, number];
4219
+ readonly wasmllmproviderconfig_copyForTransfer: (a: number) => number;
2987
4220
  readonly wasmllmproviderconfig_default: () => number;
2988
4221
  readonly wasmllmproviderconfig_modelPrefixes: (a: number) => [number, number];
2989
4222
  readonly wasmllmproviderconfig_name: (a: number) => [number, number];
@@ -2992,6 +4225,7 @@ export interface InitOutput {
2992
4225
  readonly wasmllmproviderconfig_set_baseUrl: (a: number, b: number, c: number) => void;
2993
4226
  readonly wasmllmproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
2994
4227
  readonly wasmllmproviderconfig_set_name: (a: number, b: number, c: number) => void;
4228
+ readonly wasmllmratelimitconfig_copyForTransfer: (a: number) => number;
2995
4229
  readonly wasmllmratelimitconfig_default: () => number;
2996
4230
  readonly wasmllmratelimitconfig_new: (a: number, b: number, c: bigint, d: number, e: bigint) => number;
2997
4231
  readonly wasmllmratelimitconfig_rpm: (a: number) => number;
@@ -3002,6 +4236,7 @@ export interface InitOutput {
3002
4236
  readonly wasmllmratelimitconfig_windowSeconds: (a: number) => [number, bigint];
3003
4237
  readonly wasmmodelinfo_cacheCreationInputTokenCost: (a: number) => [number, number];
3004
4238
  readonly wasmmodelinfo_cacheReadInputTokenCost: (a: number) => [number, number];
4239
+ readonly wasmmodelinfo_copyForTransfer: (a: number) => number;
3005
4240
  readonly wasmmodelinfo_default: () => number;
3006
4241
  readonly wasmmodelinfo_inputCostPerAudioToken: (a: number) => [number, number];
3007
4242
  readonly wasmmodelinfo_inputCostPerToken: (a: number) => number;
@@ -3040,6 +4275,7 @@ export interface InitOutput {
3040
4275
  readonly wasmmodelinfo_supportsStructuredOutput: (a: number) => number;
3041
4276
  readonly wasmmodelinfo_supportsVision: (a: number) => number;
3042
4277
  readonly wasmmodelinfo_tiers: (a: number) => [number, number];
4278
+ readonly wasmmodelobject_copyForTransfer: (a: number) => number;
3043
4279
  readonly wasmmodelobject_created: (a: number) => bigint;
3044
4280
  readonly wasmmodelobject_default: () => number;
3045
4281
  readonly wasmmodelobject_id: (a: number) => [number, number];
@@ -3050,6 +4286,7 @@ export interface InitOutput {
3050
4286
  readonly wasmmodelobject_set_id: (a: number, b: number, c: number) => void;
3051
4287
  readonly wasmmodelobject_set_object: (a: number, b: number, c: number) => void;
3052
4288
  readonly wasmmodelobject_set_ownedBy: (a: number, b: number, c: number) => void;
4289
+ readonly wasmmodelslistresponse_copyForTransfer: (a: number) => number;
3053
4290
  readonly wasmmodelslistresponse_data: (a: number) => [number, number];
3054
4291
  readonly wasmmodelslistresponse_default: () => number;
3055
4292
  readonly wasmmodelslistresponse_new: (a: number, b: number, c: number, d: number) => number;
@@ -3058,6 +4295,7 @@ export interface InitOutput {
3058
4295
  readonly wasmmodelslistresponse_set_object: (a: number, b: number, c: number) => void;
3059
4296
  readonly wasmmodeltier_cacheCreationInputTokenCost: (a: number) => [number, number];
3060
4297
  readonly wasmmodeltier_cacheReadInputTokenCost: (a: number) => [number, number];
4298
+ readonly wasmmodeltier_copyForTransfer: (a: number) => number;
3061
4299
  readonly wasmmodeltier_default: () => number;
3062
4300
  readonly wasmmodeltier_inputCostPerAudioToken: (a: number) => [number, number];
3063
4301
  readonly wasmmodeltier_inputCostPerToken: (a: number) => number;
@@ -3074,6 +4312,7 @@ export interface InitOutput {
3074
4312
  readonly wasmmodeltier_set_outputCostPerAudioToken: (a: number, b: number, c: number) => void;
3075
4313
  readonly wasmmodeltier_set_outputCostPerReasoningToken: (a: number, b: number, c: number) => void;
3076
4314
  readonly wasmmodeltier_set_outputCostPerToken: (a: number, b: number) => void;
4315
+ readonly wasmmoderationcategories_copyForTransfer: (a: number) => number;
3077
4316
  readonly wasmmoderationcategories_default: () => number;
3078
4317
  readonly wasmmoderationcategories_harassment: (a: number) => number;
3079
4318
  readonly wasmmoderationcategories_harassmentThreatening: (a: number) => number;
@@ -3098,6 +4337,7 @@ export interface InitOutput {
3098
4337
  readonly wasmmoderationcategories_sexualMinors: (a: number) => number;
3099
4338
  readonly wasmmoderationcategories_violence: (a: number) => number;
3100
4339
  readonly wasmmoderationcategories_violenceGraphic: (a: number) => number;
4340
+ readonly wasmmoderationcategoryscores_copyForTransfer: (a: number) => number;
3101
4341
  readonly wasmmoderationcategoryscores_default: () => number;
3102
4342
  readonly wasmmoderationcategoryscores_harassment: (a: number) => number;
3103
4343
  readonly wasmmoderationcategoryscores_harassmentThreatening: (a: number) => number;
@@ -3122,12 +4362,14 @@ export interface InitOutput {
3122
4362
  readonly wasmmoderationcategoryscores_sexualMinors: (a: number) => number;
3123
4363
  readonly wasmmoderationcategoryscores_violence: (a: number) => number;
3124
4364
  readonly wasmmoderationcategoryscores_violenceGraphic: (a: number) => number;
4365
+ readonly wasmmoderationrequest_copyForTransfer: (a: number) => number;
3125
4366
  readonly wasmmoderationrequest_default: () => number;
3126
4367
  readonly wasmmoderationrequest_input: (a: number) => any;
3127
4368
  readonly wasmmoderationrequest_model: (a: number) => [number, number];
3128
4369
  readonly wasmmoderationrequest_new: (a: number, b: number, c: number) => number;
3129
4370
  readonly wasmmoderationrequest_set_input: (a: number, b: any) => void;
3130
4371
  readonly wasmmoderationrequest_set_model: (a: number, b: number, c: number) => void;
4372
+ readonly wasmmoderationresponse_copyForTransfer: (a: number) => number;
3131
4373
  readonly wasmmoderationresponse_default: () => number;
3132
4374
  readonly wasmmoderationresponse_id: (a: number) => [number, number];
3133
4375
  readonly wasmmoderationresponse_model: (a: number) => [number, number];
@@ -3138,6 +4380,7 @@ export interface InitOutput {
3138
4380
  readonly wasmmoderationresponse_set_results: (a: number, b: number, c: number) => void;
3139
4381
  readonly wasmmoderationresult_categories: (a: number) => number;
3140
4382
  readonly wasmmoderationresult_categoryScores: (a: number) => number;
4383
+ readonly wasmmoderationresult_copyForTransfer: (a: number) => number;
3141
4384
  readonly wasmmoderationresult_default: () => number;
3142
4385
  readonly wasmmoderationresult_flagged: (a: number) => number;
3143
4386
  readonly wasmmoderationresult_new: (a: number, b: number, c: number) => number;
@@ -3154,12 +4397,15 @@ export interface InitOutput {
3154
4397
  readonly wasmocrdocument_set_url: (a: number, b: number, c: number) => void;
3155
4398
  readonly wasmocrdocument_type: (a: number) => [number, number];
3156
4399
  readonly wasmocrdocument_url: (a: number) => [number, number];
4400
+ readonly wasmocrimage_copyForTransfer: (a: number) => number;
3157
4401
  readonly wasmocrimage_default: () => number;
3158
4402
  readonly wasmocrimage_id: (a: number) => [number, number];
3159
4403
  readonly wasmocrimage_imageBase64: (a: number) => [number, number];
3160
4404
  readonly wasmocrimage_new: (a: number, b: number, c: number, d: number) => number;
3161
4405
  readonly wasmocrimage_set_id: (a: number, b: number, c: number) => void;
3162
4406
  readonly wasmocrimage_set_imageBase64: (a: number, b: number, c: number) => void;
4407
+ readonly wasmocrpage_clearDimensions: (a: number) => void;
4408
+ readonly wasmocrpage_copyForTransfer: (a: number) => number;
3163
4409
  readonly wasmocrpage_default: () => number;
3164
4410
  readonly wasmocrpage_dimensions: (a: number) => number;
3165
4411
  readonly wasmocrpage_images: (a: number) => any;
@@ -3170,6 +4416,7 @@ export interface InitOutput {
3170
4416
  readonly wasmocrpage_set_images: (a: number, b: number, c: number) => void;
3171
4417
  readonly wasmocrpage_set_index: (a: number, b: number) => void;
3172
4418
  readonly wasmocrpage_set_markdown: (a: number, b: number, c: number) => void;
4419
+ readonly wasmocrrequest_copyForTransfer: (a: number) => number;
3173
4420
  readonly wasmocrrequest_default: () => number;
3174
4421
  readonly wasmocrrequest_document: (a: number) => any;
3175
4422
  readonly wasmocrrequest_includeImageBase64: (a: number) => number;
@@ -3180,6 +4427,8 @@ export interface InitOutput {
3180
4427
  readonly wasmocrrequest_set_includeImageBase64: (a: number, b: number) => void;
3181
4428
  readonly wasmocrrequest_set_model: (a: number, b: number, c: number) => void;
3182
4429
  readonly wasmocrrequest_set_pages: (a: number, b: number, c: number) => void;
4430
+ readonly wasmocrresponse_clearUsage: (a: number) => void;
4431
+ readonly wasmocrresponse_copyForTransfer: (a: number) => number;
3183
4432
  readonly wasmocrresponse_default: () => number;
3184
4433
  readonly wasmocrresponse_model: (a: number) => [number, number];
3185
4434
  readonly wasmocrresponse_new: (a: number, b: number, c: number, d: number, e: number) => number;
@@ -3188,6 +4437,7 @@ export interface InitOutput {
3188
4437
  readonly wasmocrresponse_set_pages: (a: number, b: number, c: number) => void;
3189
4438
  readonly wasmocrresponse_set_usage: (a: number, b: number) => void;
3190
4439
  readonly wasmocrresponse_usage: (a: number) => number;
4440
+ readonly wasmpagedimensions_copyForTransfer: (a: number) => number;
3191
4441
  readonly wasmpagedimensions_default: () => number;
3192
4442
  readonly wasmpagedimensions_height: (a: number) => number;
3193
4443
  readonly wasmpagedimensions_new: (a: number, b: number) => number;
@@ -3196,12 +4446,14 @@ export interface InitOutput {
3196
4446
  readonly wasmpagedimensions_width: (a: number) => number;
3197
4447
  readonly wasmprompttokensdetails_audioTokens: (a: number) => bigint;
3198
4448
  readonly wasmprompttokensdetails_cachedTokens: (a: number) => bigint;
4449
+ readonly wasmprompttokensdetails_copyForTransfer: (a: number) => number;
3199
4450
  readonly wasmprompttokensdetails_default: () => number;
3200
4451
  readonly wasmprompttokensdetails_new: (a: number, b: bigint, c: number, d: bigint) => number;
3201
4452
  readonly wasmprompttokensdetails_set_audioTokens: (a: number, b: bigint) => void;
3202
4453
  readonly wasmprompttokensdetails_set_cachedTokens: (a: number, b: bigint) => void;
3203
4454
  readonly wasmprovidercapabilities_audioIn: (a: number) => number;
3204
4455
  readonly wasmprovidercapabilities_audioOut: (a: number) => number;
4456
+ readonly wasmprovidercapabilities_copyForTransfer: (a: number) => number;
3205
4457
  readonly wasmprovidercapabilities_default: () => number;
3206
4458
  readonly wasmprovidercapabilities_functionCalling: (a: number) => number;
3207
4459
  readonly wasmprovidercapabilities_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
@@ -3218,6 +4470,8 @@ export interface InitOutput {
3218
4470
  readonly wasmprovidercapabilities_vision: (a: number) => number;
3219
4471
  readonly wasmproviderconfig_auth: (a: number) => number;
3220
4472
  readonly wasmproviderconfig_baseUrl: (a: number) => [number, number];
4473
+ readonly wasmproviderconfig_clearAuth: (a: number) => void;
4474
+ readonly wasmproviderconfig_copyForTransfer: (a: number) => number;
3221
4475
  readonly wasmproviderconfig_default: () => number;
3222
4476
  readonly wasmproviderconfig_displayName: (a: number) => [number, number];
3223
4477
  readonly wasmproviderconfig_endpoints: (a: number) => [number, number];
@@ -3232,6 +4486,7 @@ export interface InitOutput {
3232
4486
  readonly wasmproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
3233
4487
  readonly wasmproviderconfig_set_name: (a: number, b: number, c: number) => void;
3234
4488
  readonly wasmproviderconfig_set_paramMappings: (a: number, b: number) => void;
4489
+ readonly wasmrerankrequest_copyForTransfer: (a: number) => number;
3235
4490
  readonly wasmrerankrequest_default: () => number;
3236
4491
  readonly wasmrerankrequest_documents: (a: number) => any;
3237
4492
  readonly wasmrerankrequest_model: (a: number) => [number, number];
@@ -3244,6 +4499,7 @@ export interface InitOutput {
3244
4499
  readonly wasmrerankrequest_set_returnDocuments: (a: number, b: number) => void;
3245
4500
  readonly wasmrerankrequest_set_topN: (a: number, b: number) => void;
3246
4501
  readonly wasmrerankrequest_topN: (a: number) => number;
4502
+ readonly wasmrerankresponse_copyForTransfer: (a: number) => number;
3247
4503
  readonly wasmrerankresponse_default: () => number;
3248
4504
  readonly wasmrerankresponse_id: (a: number) => [number, number];
3249
4505
  readonly wasmrerankresponse_meta: (a: number) => any;
@@ -3252,6 +4508,8 @@ export interface InitOutput {
3252
4508
  readonly wasmrerankresponse_set_id: (a: number, b: number, c: number) => void;
3253
4509
  readonly wasmrerankresponse_set_meta: (a: number, b: number) => void;
3254
4510
  readonly wasmrerankresponse_set_results: (a: number, b: number, c: number) => void;
4511
+ readonly wasmrerankresult_clearDocument: (a: number) => void;
4512
+ readonly wasmrerankresult_copyForTransfer: (a: number) => number;
3255
4513
  readonly wasmrerankresult_default: () => number;
3256
4514
  readonly wasmrerankresult_document: (a: number) => number;
3257
4515
  readonly wasmrerankresult_index: (a: number) => number;
@@ -3260,16 +4518,20 @@ export interface InitOutput {
3260
4518
  readonly wasmrerankresult_set_document: (a: number, b: number) => void;
3261
4519
  readonly wasmrerankresult_set_index: (a: number, b: number) => void;
3262
4520
  readonly wasmrerankresult_set_relevanceScore: (a: number, b: number) => void;
4521
+ readonly wasmrerankresultdocument_copyForTransfer: (a: number) => number;
3263
4522
  readonly wasmrerankresultdocument_default: () => number;
3264
4523
  readonly wasmrerankresultdocument_new: (a: number, b: number) => number;
3265
4524
  readonly wasmrerankresultdocument_set_text: (a: number, b: number, c: number) => void;
3266
4525
  readonly wasmrerankresultdocument_text: (a: number) => [number, number];
4526
+ readonly wasmresponseformat_clearJsonSchema: (a: number) => void;
3267
4527
  readonly wasmresponseformat_default: () => number;
3268
4528
  readonly wasmresponseformat_jsonSchema: (a: number) => number;
3269
4529
  readonly wasmresponseformat_new: () => number;
3270
4530
  readonly wasmresponseformat_set_jsonSchema: (a: number, b: number) => void;
3271
4531
  readonly wasmresponseformat_set_type: (a: number, b: number, c: number) => void;
3272
4532
  readonly wasmresponseformat_type: (a: number) => [number, number];
4533
+ readonly wasmresponseobject_clearUsage: (a: number) => void;
4534
+ readonly wasmresponseobject_copyForTransfer: (a: number) => number;
3273
4535
  readonly wasmresponseobject_createdAt: (a: number) => bigint;
3274
4536
  readonly wasmresponseobject_default: () => number;
3275
4537
  readonly wasmresponseobject_error: (a: number) => any;
@@ -3289,17 +4551,20 @@ export interface InitOutput {
3289
4551
  readonly wasmresponseobject_status: (a: number) => [number, number];
3290
4552
  readonly wasmresponseobject_usage: (a: number) => number;
3291
4553
  readonly wasmresponseoutputitem_content: (a: number) => any;
4554
+ readonly wasmresponseoutputitem_copyForTransfer: (a: number) => number;
3292
4555
  readonly wasmresponseoutputitem_default: () => number;
3293
4556
  readonly wasmresponseoutputitem_itemType: (a: number) => [number, number];
3294
4557
  readonly wasmresponseoutputitem_new: (a: number, b: number, c: number) => number;
3295
4558
  readonly wasmresponseoutputitem_set_content: (a: number, b: any) => void;
3296
4559
  readonly wasmresponseoutputitem_set_itemType: (a: number, b: number, c: number) => void;
3297
4560
  readonly wasmresponsetool_config: (a: number) => any;
4561
+ readonly wasmresponsetool_copyForTransfer: (a: number) => number;
3298
4562
  readonly wasmresponsetool_default: () => number;
3299
4563
  readonly wasmresponsetool_new: (a: number, b: number, c: number) => number;
3300
4564
  readonly wasmresponsetool_set_config: (a: number, b: any) => void;
3301
4565
  readonly wasmresponsetool_set_toolType: (a: number, b: number, c: number) => void;
3302
4566
  readonly wasmresponsetool_toolType: (a: number) => [number, number];
4567
+ readonly wasmresponseusage_copyForTransfer: (a: number) => number;
3303
4568
  readonly wasmresponseusage_default: () => number;
3304
4569
  readonly wasmresponseusage_inputTokens: (a: number) => bigint;
3305
4570
  readonly wasmresponseusage_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint) => number;
@@ -3308,6 +4573,7 @@ export interface InitOutput {
3308
4573
  readonly wasmresponseusage_set_outputTokens: (a: number, b: bigint) => void;
3309
4574
  readonly wasmresponseusage_set_totalTokens: (a: number, b: bigint) => void;
3310
4575
  readonly wasmresponseusage_totalTokens: (a: number) => bigint;
4576
+ readonly wasmsearchrequest_copyForTransfer: (a: number) => number;
3311
4577
  readonly wasmsearchrequest_country: (a: number) => [number, number];
3312
4578
  readonly wasmsearchrequest_default: () => number;
3313
4579
  readonly wasmsearchrequest_maxResults: (a: number) => number;
@@ -3320,12 +4586,14 @@ export interface InitOutput {
3320
4586
  readonly wasmsearchrequest_set_model: (a: number, b: number, c: number) => void;
3321
4587
  readonly wasmsearchrequest_set_query: (a: number, b: number, c: number) => void;
3322
4588
  readonly wasmsearchrequest_set_searchDomainFilter: (a: number, b: number, c: number) => void;
4589
+ readonly wasmsearchresponse_copyForTransfer: (a: number) => number;
3323
4590
  readonly wasmsearchresponse_default: () => number;
3324
4591
  readonly wasmsearchresponse_model: (a: number) => [number, number];
3325
4592
  readonly wasmsearchresponse_new: (a: number, b: number, c: number, d: number) => number;
3326
4593
  readonly wasmsearchresponse_results: (a: number) => [number, number];
3327
4594
  readonly wasmsearchresponse_set_model: (a: number, b: number, c: number) => void;
3328
4595
  readonly wasmsearchresponse_set_results: (a: number, b: number, c: number) => void;
4596
+ readonly wasmsearchresult_copyForTransfer: (a: number) => number;
3329
4597
  readonly wasmsearchresult_date: (a: number) => [number, number];
3330
4598
  readonly wasmsearchresult_default: () => number;
3331
4599
  readonly wasmsearchresult_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
@@ -3336,16 +4604,19 @@ export interface InitOutput {
3336
4604
  readonly wasmsearchresult_snippet: (a: number) => [number, number];
3337
4605
  readonly wasmsearchresult_title: (a: number) => [number, number];
3338
4606
  readonly wasmsearchresult_url: (a: number) => [number, number];
4607
+ readonly wasmspecificfunction_copyForTransfer: (a: number) => number;
3339
4608
  readonly wasmspecificfunction_default: () => number;
3340
4609
  readonly wasmspecificfunction_name: (a: number) => [number, number];
3341
4610
  readonly wasmspecificfunction_new: (a: number, b: number) => number;
3342
4611
  readonly wasmspecificfunction_set_name: (a: number, b: number, c: number) => void;
3343
4612
  readonly wasmspecifictoolchoice_choiceType: (a: number) => [number, number];
4613
+ readonly wasmspecifictoolchoice_copyForTransfer: (a: number) => number;
3344
4614
  readonly wasmspecifictoolchoice_default: () => number;
3345
4615
  readonly wasmspecifictoolchoice_function: (a: number) => number;
3346
4616
  readonly wasmspecifictoolchoice_new: (a: number, b: number) => number;
3347
4617
  readonly wasmspecifictoolchoice_set_choiceType: (a: number, b: number) => void;
3348
4618
  readonly wasmspecifictoolchoice_set_function: (a: number, b: number) => void;
4619
+ readonly wasmstreamchoice_copyForTransfer: (a: number) => number;
3349
4620
  readonly wasmstreamchoice_default: () => number;
3350
4621
  readonly wasmstreamchoice_delta: (a: number) => number;
3351
4622
  readonly wasmstreamchoice_finishReason: (a: number) => [number, number];
@@ -3354,7 +4625,9 @@ export interface InitOutput {
3354
4625
  readonly wasmstreamchoice_set_delta: (a: number, b: number) => void;
3355
4626
  readonly wasmstreamchoice_set_finishReason: (a: number, b: number) => void;
3356
4627
  readonly wasmstreamchoice_set_index: (a: number, b: number) => void;
4628
+ readonly wasmstreamdelta_clearFunctionCall: (a: number) => void;
3357
4629
  readonly wasmstreamdelta_content: (a: number) => [number, number];
4630
+ readonly wasmstreamdelta_copyForTransfer: (a: number) => number;
3358
4631
  readonly wasmstreamdelta_default: () => number;
3359
4632
  readonly wasmstreamdelta_functionCall: (a: number) => number;
3360
4633
  readonly wasmstreamdelta_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number, k: number) => number;
@@ -3369,16 +4642,20 @@ export interface InitOutput {
3369
4642
  readonly wasmstreamdelta_set_toolCalls: (a: number, b: number, c: number) => void;
3370
4643
  readonly wasmstreamdelta_toolCalls: (a: number) => any;
3371
4644
  readonly wasmstreamfunctioncall_arguments: (a: number) => [number, number];
4645
+ readonly wasmstreamfunctioncall_copyForTransfer: (a: number) => number;
3372
4646
  readonly wasmstreamfunctioncall_default: () => number;
3373
4647
  readonly wasmstreamfunctioncall_name: (a: number) => [number, number];
3374
4648
  readonly wasmstreamfunctioncall_new: (a: number, b: number, c: number, d: number) => number;
3375
4649
  readonly wasmstreamfunctioncall_set_arguments: (a: number, b: number, c: number) => void;
3376
4650
  readonly wasmstreamfunctioncall_set_name: (a: number, b: number, c: number) => void;
4651
+ readonly wasmstreamoptions_copyForTransfer: (a: number) => number;
3377
4652
  readonly wasmstreamoptions_default: () => number;
3378
4653
  readonly wasmstreamoptions_includeUsage: (a: number) => number;
3379
4654
  readonly wasmstreamoptions_new: (a: number) => number;
3380
4655
  readonly wasmstreamoptions_set_includeUsage: (a: number, b: number) => void;
3381
4656
  readonly wasmstreamtoolcall_callType: (a: number) => [number, number];
4657
+ readonly wasmstreamtoolcall_clearFunction: (a: number) => void;
4658
+ readonly wasmstreamtoolcall_copyForTransfer: (a: number) => number;
3382
4659
  readonly wasmstreamtoolcall_default: () => number;
3383
4660
  readonly wasmstreamtoolcall_function: (a: number) => number;
3384
4661
  readonly wasmstreamtoolcall_id: (a: number) => [number, number];
@@ -3389,12 +4666,14 @@ export interface InitOutput {
3389
4666
  readonly wasmstreamtoolcall_set_id: (a: number, b: number, c: number) => void;
3390
4667
  readonly wasmstreamtoolcall_set_index: (a: number, b: number) => void;
3391
4668
  readonly wasmsystemmessage_content: (a: number) => any;
4669
+ readonly wasmsystemmessage_copyForTransfer: (a: number) => number;
3392
4670
  readonly wasmsystemmessage_default: () => number;
3393
4671
  readonly wasmsystemmessage_name: (a: number) => [number, number];
3394
4672
  readonly wasmsystemmessage_new: (a: number, b: number, c: number) => number;
3395
4673
  readonly wasmsystemmessage_set_content: (a: number, b: any) => void;
3396
4674
  readonly wasmsystemmessage_set_name: (a: number, b: number, c: number) => void;
3397
4675
  readonly wasmtoolcall_callType: (a: number) => [number, number];
4676
+ readonly wasmtoolcall_copyForTransfer: (a: number) => number;
3398
4677
  readonly wasmtoolcall_default: () => number;
3399
4678
  readonly wasmtoolcall_function: (a: number) => number;
3400
4679
  readonly wasmtoolcall_id: (a: number) => [number, number];
@@ -3403,6 +4682,7 @@ export interface InitOutput {
3403
4682
  readonly wasmtoolcall_set_function: (a: number, b: number) => void;
3404
4683
  readonly wasmtoolcall_set_id: (a: number, b: number, c: number) => void;
3405
4684
  readonly wasmtoolmessage_content: (a: number) => any;
4685
+ readonly wasmtoolmessage_copyForTransfer: (a: number) => number;
3406
4686
  readonly wasmtoolmessage_default: () => number;
3407
4687
  readonly wasmtoolmessage_name: (a: number) => [number, number];
3408
4688
  readonly wasmtoolmessage_new: (a: number, b: number, c: number, d: number, e: number) => number;
@@ -3410,6 +4690,7 @@ export interface InitOutput {
3410
4690
  readonly wasmtoolmessage_set_name: (a: number, b: number, c: number) => void;
3411
4691
  readonly wasmtoolmessage_set_toolCallId: (a: number, b: number, c: number) => void;
3412
4692
  readonly wasmtoolmessage_toolCallId: (a: number) => [number, number];
4693
+ readonly wasmtranscriptionresponse_copyForTransfer: (a: number) => number;
3413
4694
  readonly wasmtranscriptionresponse_default: () => number;
3414
4695
  readonly wasmtranscriptionresponse_duration: (a: number) => [number, number];
3415
4696
  readonly wasmtranscriptionresponse_language: (a: number) => [number, number];
@@ -3420,6 +4701,7 @@ export interface InitOutput {
3420
4701
  readonly wasmtranscriptionresponse_set_segments: (a: number, b: number, c: number) => void;
3421
4702
  readonly wasmtranscriptionresponse_set_text: (a: number, b: number, c: number) => void;
3422
4703
  readonly wasmtranscriptionresponse_text: (a: number) => [number, number];
4704
+ readonly wasmtranscriptionsegment_copyForTransfer: (a: number) => number;
3423
4705
  readonly wasmtranscriptionsegment_default: () => number;
3424
4706
  readonly wasmtranscriptionsegment_end: (a: number) => number;
3425
4707
  readonly wasmtranscriptionsegment_id: (a: number) => number;
@@ -3430,7 +4712,9 @@ export interface InitOutput {
3430
4712
  readonly wasmtranscriptionsegment_set_text: (a: number, b: number, c: number) => void;
3431
4713
  readonly wasmtranscriptionsegment_start: (a: number) => number;
3432
4714
  readonly wasmtranscriptionsegment_text: (a: number) => [number, number];
4715
+ readonly wasmusage_clearPromptTokensDetails: (a: number) => void;
3433
4716
  readonly wasmusage_completionTokens: (a: number) => bigint;
4717
+ readonly wasmusage_copyForTransfer: (a: number) => number;
3434
4718
  readonly wasmusage_default: () => number;
3435
4719
  readonly wasmusage_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number) => number;
3436
4720
  readonly wasmusage_promptTokens: (a: number) => bigint;
@@ -3441,12 +4725,14 @@ export interface InitOutput {
3441
4725
  readonly wasmusage_set_totalTokens: (a: number, b: bigint) => void;
3442
4726
  readonly wasmusage_totalTokens: (a: number) => bigint;
3443
4727
  readonly wasmusermessage_content: (a: number) => any;
4728
+ readonly wasmusermessage_copyForTransfer: (a: number) => number;
3444
4729
  readonly wasmusermessage_default: () => number;
3445
4730
  readonly wasmusermessage_name: (a: number) => [number, number];
3446
4731
  readonly wasmusermessage_new: (a: number, b: number, c: number) => number;
3447
4732
  readonly wasmusermessage_set_content: (a: number, b: any) => void;
3448
4733
  readonly wasmusermessage_set_name: (a: number, b: number, c: number) => void;
3449
4734
  readonly wasmwaitforbatchconfig_backoffMultiplier: (a: number) => number;
4735
+ readonly wasmwaitforbatchconfig_copyForTransfer: (a: number) => number;
3450
4736
  readonly wasmwaitforbatchconfig_default: () => number;
3451
4737
  readonly wasmwaitforbatchconfig_initialIntervalSecs: (a: number) => number;
3452
4738
  readonly wasmwaitforbatchconfig_maxIntervalSecs: (a: number) => number;
@@ -3456,11 +4742,11 @@ export interface InitOutput {
3456
4742
  readonly wasmwaitforbatchconfig_set_maxIntervalSecs: (a: number, b: number) => void;
3457
4743
  readonly wasmwaitforbatchconfig_set_timeoutSecs: (a: number, b: number, c: number) => void;
3458
4744
  readonly wasmwaitforbatchconfig_timeoutSecs: (a: number) => [number, number];
3459
- readonly wasm_bindgen__convert__closures_____invoke__h02a7923578afc9b7: (a: number, b: number, c: any) => [number, number];
3460
- readonly wasm_bindgen__convert__closures_____invoke__h587dbcc500240430: (a: number, b: number, c: any, d: any) => void;
3461
- readonly wasm_bindgen__convert__closures_____invoke__hdbfd17fbffcf2c62: (a: number, b: number, c: any) => void;
3462
- readonly wasm_bindgen__convert__closures_____invoke__h2b32076d58b95548: (a: number, b: number) => void;
3463
- readonly wasm_bindgen__convert__closures_____invoke__h53a93f9ee7253a16: (a: number, b: number) => void;
4745
+ readonly wasm_bindgen__convert__closures_____invoke__h14136a31f7a759a2: (a: number, b: number, c: any, d: any) => void;
4746
+ readonly wasm_bindgen__convert__closures_____invoke__h49dc34f70620523b: (a: number, b: number, c: any) => [number, number];
4747
+ readonly wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0: (a: number, b: number, c: any) => void;
4748
+ readonly wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8: (a: number, b: number) => void;
4749
+ readonly wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6: (a: number, b: number) => void;
3464
4750
  readonly __wbindgen_malloc: (a: number, b: number) => number;
3465
4751
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
3466
4752
  readonly __wbindgen_exn_store: (a: number) => void;