@xberg-io/liter-llm-wasm 2.1.2 → 2.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/liter_llm_wasm.d.ts +1114 -6
- package/liter_llm_wasm.js +1311 -13
- package/liter_llm_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/liter_llm_wasm.d.ts
CHANGED
|
@@ -129,6 +129,13 @@ export class WasmAssistantMessage {
|
|
|
129
129
|
free(): void;
|
|
130
130
|
[Symbol.dispose](): void;
|
|
131
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;
|
|
132
139
|
static default(): WasmAssistantMessage;
|
|
133
140
|
/**
|
|
134
141
|
* Takes ownership of `functionCall`.
|
|
@@ -136,6 +143,9 @@ export class WasmAssistantMessage {
|
|
|
136
143
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
137
144
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
138
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.
|
|
139
149
|
*/
|
|
140
150
|
constructor(content?: string | null, name?: string | null, toolCalls?: WasmToolCall[] | null, refusal?: string | null, functionCall?: WasmFunctionCall | null, reasoningContent?: string | null);
|
|
141
151
|
/**
|
|
@@ -166,6 +176,12 @@ export class WasmAssistantMessage {
|
|
|
166
176
|
text(): string | undefined;
|
|
167
177
|
get content(): string | undefined;
|
|
168
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
|
+
*/
|
|
169
185
|
get functionCall(): WasmFunctionCall | undefined;
|
|
170
186
|
set functionCall(value: WasmFunctionCall);
|
|
171
187
|
get name(): string | undefined;
|
|
@@ -174,7 +190,18 @@ export class WasmAssistantMessage {
|
|
|
174
190
|
set reasoningContent(value: string | null | undefined);
|
|
175
191
|
get refusal(): string | undefined;
|
|
176
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
|
+
*/
|
|
177
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
|
+
*/
|
|
178
205
|
set toolCalls(value: WasmToolCall[] | null | undefined);
|
|
179
206
|
}
|
|
180
207
|
|
|
@@ -211,6 +238,13 @@ export class WasmAssistantPart {
|
|
|
211
238
|
export class WasmAudioContent {
|
|
212
239
|
free(): void;
|
|
213
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;
|
|
214
248
|
static default(): WasmAudioContent;
|
|
215
249
|
constructor(data?: string | null, format?: string | null);
|
|
216
250
|
data: string;
|
|
@@ -223,6 +257,13 @@ export class WasmAudioContent {
|
|
|
223
257
|
export class WasmAuthConfig {
|
|
224
258
|
free(): void;
|
|
225
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;
|
|
226
267
|
static default(): WasmAuthConfig;
|
|
227
268
|
constructor(authType: WasmAuthType, envVar?: string | null);
|
|
228
269
|
get authType(): string;
|
|
@@ -260,6 +301,13 @@ export enum WasmAuthType {
|
|
|
260
301
|
export class WasmBatchListQuery {
|
|
261
302
|
free(): void;
|
|
262
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;
|
|
263
311
|
static default(): WasmBatchListQuery;
|
|
264
312
|
constructor(limit?: number | null, after?: string | null);
|
|
265
313
|
get after(): string | undefined;
|
|
@@ -274,8 +322,26 @@ export class WasmBatchListQuery {
|
|
|
274
322
|
export class WasmBatchListResponse {
|
|
275
323
|
free(): void;
|
|
276
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;
|
|
277
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
|
+
*/
|
|
278
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
|
+
*/
|
|
279
345
|
data: WasmBatchObject[];
|
|
280
346
|
get firstId(): string | undefined;
|
|
281
347
|
set firstId(value: string | null | undefined);
|
|
@@ -293,6 +359,13 @@ export class WasmBatchObject {
|
|
|
293
359
|
free(): void;
|
|
294
360
|
[Symbol.dispose](): void;
|
|
295
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;
|
|
296
369
|
static default(): WasmBatchObject;
|
|
297
370
|
/**
|
|
298
371
|
* Takes ownership of `requestCounts`.
|
|
@@ -320,6 +393,12 @@ export class WasmBatchObject {
|
|
|
320
393
|
object: string;
|
|
321
394
|
get outputFileId(): string | undefined;
|
|
322
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
|
+
*/
|
|
323
402
|
get requestCounts(): WasmBatchRequestCounts | undefined;
|
|
324
403
|
set requestCounts(value: WasmBatchRequestCounts);
|
|
325
404
|
get status(): string;
|
|
@@ -332,6 +411,13 @@ export class WasmBatchObject {
|
|
|
332
411
|
export class WasmBatchRequestCounts {
|
|
333
412
|
free(): void;
|
|
334
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;
|
|
335
421
|
static default(): WasmBatchRequestCounts;
|
|
336
422
|
constructor(total?: bigint | null, completed?: bigint | null, failed?: bigint | null);
|
|
337
423
|
completed: bigint;
|
|
@@ -372,6 +458,13 @@ export enum WasmBatchStatus {
|
|
|
372
458
|
export class WasmBedrockConfig {
|
|
373
459
|
free(): void;
|
|
374
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;
|
|
375
468
|
static default(): WasmBedrockConfig;
|
|
376
469
|
constructor(region?: string | null, crossRegionPrefix?: string | null, accessKeyId?: string | null, secretAccessKey?: string | null, sessionToken?: string | null);
|
|
377
470
|
get accessKeyId(): string | undefined;
|
|
@@ -395,6 +488,13 @@ export class WasmBedrockConfig {
|
|
|
395
488
|
export class WasmCatalogRefreshConfig {
|
|
396
489
|
free(): void;
|
|
397
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;
|
|
398
498
|
static default(): WasmCatalogRefreshConfig;
|
|
399
499
|
constructor(enabled?: boolean | null, sourceUrl?: string | null, ttlSeconds?: bigint | null, cachePath?: string | null);
|
|
400
500
|
get cachePath(): string | undefined;
|
|
@@ -411,6 +511,13 @@ export class WasmChatCompletionChunk {
|
|
|
411
511
|
free(): void;
|
|
412
512
|
[Symbol.dispose](): void;
|
|
413
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;
|
|
414
521
|
static default(): WasmChatCompletionChunk;
|
|
415
522
|
/**
|
|
416
523
|
* Takes ownership of `usage`.
|
|
@@ -418,8 +525,17 @@ export class WasmChatCompletionChunk {
|
|
|
418
525
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
419
526
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
420
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.
|
|
421
531
|
*/
|
|
422
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
|
+
*/
|
|
423
539
|
choices: WasmStreamChoice[];
|
|
424
540
|
created: bigint;
|
|
425
541
|
id: string;
|
|
@@ -429,6 +545,12 @@ export class WasmChatCompletionChunk {
|
|
|
429
545
|
set serviceTier(value: string | null | undefined);
|
|
430
546
|
get systemFingerprint(): string | undefined;
|
|
431
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
|
+
*/
|
|
432
554
|
get usage(): WasmUsage | undefined;
|
|
433
555
|
set usage(value: WasmUsage);
|
|
434
556
|
}
|
|
@@ -440,6 +562,13 @@ export class WasmChatCompletionRequest {
|
|
|
440
562
|
free(): void;
|
|
441
563
|
[Symbol.dispose](): void;
|
|
442
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;
|
|
443
572
|
static default(): WasmChatCompletionRequest;
|
|
444
573
|
/**
|
|
445
574
|
* Takes ownership of `streamOptions`.
|
|
@@ -447,6 +576,9 @@ export class WasmChatCompletionRequest {
|
|
|
447
576
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
448
577
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
449
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.
|
|
450
582
|
*/
|
|
451
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);
|
|
452
584
|
get audio(): any | undefined;
|
|
@@ -489,6 +621,12 @@ export class WasmChatCompletionRequest {
|
|
|
489
621
|
set stop(value: WasmStopSequence | null | undefined);
|
|
490
622
|
get store(): boolean | undefined;
|
|
491
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
|
+
*/
|
|
492
630
|
get streamOptions(): WasmStreamOptions | undefined;
|
|
493
631
|
set streamOptions(value: WasmStreamOptions);
|
|
494
632
|
get stream(): boolean | undefined;
|
|
@@ -497,7 +635,18 @@ export class WasmChatCompletionRequest {
|
|
|
497
635
|
set temperature(value: number | null | undefined);
|
|
498
636
|
get toolChoice(): WasmToolChoice | undefined;
|
|
499
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
|
+
*/
|
|
500
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
|
+
*/
|
|
501
650
|
set tools(value: WasmChatCompletionTool[] | null | undefined);
|
|
502
651
|
get topLogprobs(): number | undefined;
|
|
503
652
|
set topLogprobs(value: number | null | undefined);
|
|
@@ -516,6 +665,13 @@ export class WasmChatCompletionResponse {
|
|
|
516
665
|
free(): void;
|
|
517
666
|
[Symbol.dispose](): void;
|
|
518
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;
|
|
519
675
|
static default(): WasmChatCompletionResponse;
|
|
520
676
|
/**
|
|
521
677
|
* Takes ownership of `usage`.
|
|
@@ -523,8 +679,17 @@ export class WasmChatCompletionResponse {
|
|
|
523
679
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
524
680
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
525
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.
|
|
526
685
|
*/
|
|
527
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
|
+
*/
|
|
528
693
|
choices: WasmChoice[];
|
|
529
694
|
created: bigint;
|
|
530
695
|
id: string;
|
|
@@ -534,6 +699,12 @@ export class WasmChatCompletionResponse {
|
|
|
534
699
|
set serviceTier(value: string | null | undefined);
|
|
535
700
|
get systemFingerprint(): string | undefined;
|
|
536
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
|
+
*/
|
|
537
708
|
get usage(): WasmUsage | undefined;
|
|
538
709
|
set usage(value: WasmUsage);
|
|
539
710
|
}
|
|
@@ -544,8 +715,21 @@ export class WasmChatCompletionResponse {
|
|
|
544
715
|
export class WasmChatCompletionTool {
|
|
545
716
|
free(): void;
|
|
546
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;
|
|
547
725
|
static default(): WasmChatCompletionTool;
|
|
548
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
|
+
*/
|
|
549
733
|
function: WasmFunctionDefinition;
|
|
550
734
|
get toolType(): string;
|
|
551
735
|
set toolType(value: WasmToolType);
|
|
@@ -557,6 +741,13 @@ export class WasmChatCompletionTool {
|
|
|
557
741
|
export class WasmChoice {
|
|
558
742
|
free(): void;
|
|
559
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;
|
|
560
751
|
static default(): WasmChoice;
|
|
561
752
|
/**
|
|
562
753
|
* Takes ownership of `message`.
|
|
@@ -571,6 +762,12 @@ export class WasmChoice {
|
|
|
571
762
|
index: number;
|
|
572
763
|
get logprobs(): any | undefined;
|
|
573
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
|
+
*/
|
|
574
771
|
message: WasmAssistantMessage;
|
|
575
772
|
}
|
|
576
773
|
|
|
@@ -602,6 +799,13 @@ export class WasmContentPart {
|
|
|
602
799
|
export class WasmCreateBatchRequest {
|
|
603
800
|
free(): void;
|
|
604
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;
|
|
605
809
|
static default(): WasmCreateBatchRequest;
|
|
606
810
|
constructor(inputFileId?: string | null, endpoint?: string | null, completionWindow?: string | null, metadata?: any | null);
|
|
607
811
|
completionWindow: string;
|
|
@@ -617,6 +821,13 @@ export class WasmCreateBatchRequest {
|
|
|
617
821
|
export class WasmCreateFileRequest {
|
|
618
822
|
free(): void;
|
|
619
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;
|
|
620
831
|
static default(): WasmCreateFileRequest;
|
|
621
832
|
constructor(file?: string | null, purpose?: WasmFilePurpose | null, filename?: string | null);
|
|
622
833
|
file: string;
|
|
@@ -632,6 +843,13 @@ export class WasmCreateFileRequest {
|
|
|
632
843
|
export class WasmCreateImageRequest {
|
|
633
844
|
free(): void;
|
|
634
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;
|
|
635
853
|
static default(): WasmCreateImageRequest;
|
|
636
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);
|
|
637
855
|
get model(): string | undefined;
|
|
@@ -674,7 +892,19 @@ export class WasmCreateImageRequest {
|
|
|
674
892
|
export class WasmCreateResponseRequest {
|
|
675
893
|
free(): void;
|
|
676
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;
|
|
677
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
|
+
*/
|
|
678
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);
|
|
679
909
|
get extraBody(): any | undefined;
|
|
680
910
|
set extraBody(value: any | null | undefined);
|
|
@@ -690,7 +920,18 @@ export class WasmCreateResponseRequest {
|
|
|
690
920
|
set stream(value: boolean | null | undefined);
|
|
691
921
|
get temperature(): number | undefined;
|
|
692
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
|
+
*/
|
|
693
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
|
+
*/
|
|
694
935
|
set tools(value: WasmResponseTool[] | null | undefined);
|
|
695
936
|
}
|
|
696
937
|
|
|
@@ -700,6 +941,13 @@ export class WasmCreateResponseRequest {
|
|
|
700
941
|
export class WasmCreateSpeechRequest {
|
|
701
942
|
free(): void;
|
|
702
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;
|
|
703
951
|
static default(): WasmCreateSpeechRequest;
|
|
704
952
|
constructor(model?: string | null, input?: string | null, voice?: string | null, responseFormat?: string | null, speed?: number | null);
|
|
705
953
|
input: string;
|
|
@@ -717,6 +965,13 @@ export class WasmCreateSpeechRequest {
|
|
|
717
965
|
export class WasmCreateTranscriptionRequest {
|
|
718
966
|
free(): void;
|
|
719
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;
|
|
720
975
|
static default(): WasmCreateTranscriptionRequest;
|
|
721
976
|
constructor(model?: string | null, file?: string | null, language?: string | null, prompt?: string | null, responseFormat?: string | null, temperature?: number | null);
|
|
722
977
|
file: string;
|
|
@@ -737,6 +992,13 @@ export class WasmCreateTranscriptionRequest {
|
|
|
737
992
|
export class WasmCustomProviderConfig {
|
|
738
993
|
free(): void;
|
|
739
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;
|
|
740
1002
|
static default(): WasmCustomProviderConfig;
|
|
741
1003
|
constructor(name: string, baseUrl: string, authHeader: any, modelPrefixes: string[]);
|
|
742
1004
|
authHeader: any;
|
|
@@ -754,6 +1016,13 @@ export class WasmCustomProviderConfig {
|
|
|
754
1016
|
export class WasmDecodedDataUrl {
|
|
755
1017
|
free(): void;
|
|
756
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;
|
|
757
1026
|
static default(): WasmDecodedDataUrl;
|
|
758
1027
|
constructor(mime?: string | null, data?: Uint8Array | null);
|
|
759
1028
|
data: Uint8Array;
|
|
@@ -763,7 +1032,7 @@ export class WasmDecodedDataUrl {
|
|
|
763
1032
|
/**
|
|
764
1033
|
* Default client implementation backed by `reqwest`.
|
|
765
1034
|
*
|
|
766
|
-
* Sends requests to
|
|
1035
|
+
* Sends requests to 174 LLM providers with automatic provider detection
|
|
767
1036
|
* and per-request routing. The provider is resolved at construction time
|
|
768
1037
|
* from `model_hint` (or defaults to OpenAI), but individual requests can
|
|
769
1038
|
* override the provider via model name prefix (e.g. `"anthropic/claude-3-5-sonnet"`
|
|
@@ -785,6 +1054,13 @@ export class WasmDefaultClient {
|
|
|
785
1054
|
cancelResponse(response_id: string): Promise<WasmResponseObject>;
|
|
786
1055
|
chatStream(req: WasmChatCompletionRequest): Promise<ChatStreamIterator>;
|
|
787
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;
|
|
788
1064
|
createBatch(req: WasmCreateBatchRequest): Promise<WasmBatchObject>;
|
|
789
1065
|
createFile(req: WasmCreateFileRequest): Promise<WasmFileObject>;
|
|
790
1066
|
createResponse(req: WasmCreateResponseRequest): Promise<WasmResponseObject>;
|
|
@@ -828,6 +1104,13 @@ export class WasmDefaultClient {
|
|
|
828
1104
|
export class WasmDeleteResponse {
|
|
829
1105
|
free(): void;
|
|
830
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;
|
|
831
1114
|
static default(): WasmDeleteResponse;
|
|
832
1115
|
constructor(id?: string | null, object?: string | null, deleted?: boolean | null);
|
|
833
1116
|
deleted: boolean;
|
|
@@ -841,6 +1124,13 @@ export class WasmDeleteResponse {
|
|
|
841
1124
|
export class WasmDeveloperMessage {
|
|
842
1125
|
free(): void;
|
|
843
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;
|
|
844
1134
|
static default(): WasmDeveloperMessage;
|
|
845
1135
|
constructor(content?: string | null, name?: string | null);
|
|
846
1136
|
content: string;
|
|
@@ -854,6 +1144,13 @@ export class WasmDeveloperMessage {
|
|
|
854
1144
|
export class WasmDocumentContent {
|
|
855
1145
|
free(): void;
|
|
856
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;
|
|
857
1154
|
static default(): WasmDocumentContent;
|
|
858
1155
|
constructor(data?: string | null, mediaType?: string | null);
|
|
859
1156
|
data: string;
|
|
@@ -892,6 +1189,13 @@ export enum WasmEmbeddingFormat {
|
|
|
892
1189
|
export class WasmEmbeddingObject {
|
|
893
1190
|
free(): void;
|
|
894
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;
|
|
895
1199
|
static default(): WasmEmbeddingObject;
|
|
896
1200
|
constructor(object: string, embedding: Float32Array, index: number);
|
|
897
1201
|
embedding: Float32Array;
|
|
@@ -905,6 +1209,13 @@ export class WasmEmbeddingObject {
|
|
|
905
1209
|
export class WasmEmbeddingRequest {
|
|
906
1210
|
free(): void;
|
|
907
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;
|
|
908
1219
|
static default(): WasmEmbeddingRequest;
|
|
909
1220
|
constructor(model?: string | null, input?: any | null, encodingFormat?: WasmEmbeddingFormat | null, dimensions?: number | null, user?: string | null);
|
|
910
1221
|
get dimensions(): number | undefined;
|
|
@@ -924,6 +1235,13 @@ export class WasmEmbeddingResponse {
|
|
|
924
1235
|
free(): void;
|
|
925
1236
|
[Symbol.dispose](): void;
|
|
926
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;
|
|
927
1245
|
static default(): WasmEmbeddingResponse;
|
|
928
1246
|
/**
|
|
929
1247
|
* Takes ownership of `usage`.
|
|
@@ -931,11 +1249,26 @@ export class WasmEmbeddingResponse {
|
|
|
931
1249
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
932
1250
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
933
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.
|
|
934
1255
|
*/
|
|
935
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
|
+
*/
|
|
936
1263
|
data: WasmEmbeddingObject[];
|
|
937
1264
|
model: string;
|
|
938
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
|
+
*/
|
|
939
1272
|
get usage(): WasmUsage | undefined;
|
|
940
1273
|
set usage(value: WasmUsage);
|
|
941
1274
|
}
|
|
@@ -946,6 +1279,13 @@ export class WasmEmbeddingResponse {
|
|
|
946
1279
|
export class WasmFileListQuery {
|
|
947
1280
|
free(): void;
|
|
948
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;
|
|
949
1289
|
static default(): WasmFileListQuery;
|
|
950
1290
|
constructor(purpose?: string | null, limit?: number | null, after?: string | null);
|
|
951
1291
|
get after(): string | undefined;
|
|
@@ -962,8 +1302,26 @@ export class WasmFileListQuery {
|
|
|
962
1302
|
export class WasmFileListResponse {
|
|
963
1303
|
free(): void;
|
|
964
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;
|
|
965
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
|
+
*/
|
|
966
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
|
+
*/
|
|
967
1325
|
data: WasmFileObject[];
|
|
968
1326
|
get hasMore(): boolean | undefined;
|
|
969
1327
|
set hasMore(value: boolean | null | undefined);
|
|
@@ -976,6 +1334,13 @@ export class WasmFileListResponse {
|
|
|
976
1334
|
export class WasmFileObject {
|
|
977
1335
|
free(): void;
|
|
978
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;
|
|
979
1344
|
static default(): WasmFileObject;
|
|
980
1345
|
constructor(id?: string | null, object?: string | null, bytes?: bigint | null, createdAt?: bigint | null, filename?: string | null, purpose?: string | null, status?: string | null);
|
|
981
1346
|
bytes: bigint;
|
|
@@ -1016,6 +1381,13 @@ export enum WasmFinishReason {
|
|
|
1016
1381
|
export class WasmFunctionCall {
|
|
1017
1382
|
free(): void;
|
|
1018
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;
|
|
1019
1391
|
static default(): WasmFunctionCall;
|
|
1020
1392
|
constructor(name: string, _arguments: string);
|
|
1021
1393
|
arguments: string;
|
|
@@ -1028,6 +1400,13 @@ export class WasmFunctionCall {
|
|
|
1028
1400
|
export class WasmFunctionDefinition {
|
|
1029
1401
|
free(): void;
|
|
1030
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;
|
|
1031
1410
|
static default(): WasmFunctionDefinition;
|
|
1032
1411
|
constructor(name: string, description?: string | null, parameters?: any | null, strict?: boolean | null);
|
|
1033
1412
|
get description(): string | undefined;
|
|
@@ -1045,6 +1424,13 @@ export class WasmFunctionDefinition {
|
|
|
1045
1424
|
export class WasmFunctionMessage {
|
|
1046
1425
|
free(): void;
|
|
1047
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;
|
|
1048
1434
|
static default(): WasmFunctionMessage;
|
|
1049
1435
|
constructor(content?: string | null, name?: string | null);
|
|
1050
1436
|
content: string;
|
|
@@ -1057,6 +1443,13 @@ export class WasmFunctionMessage {
|
|
|
1057
1443
|
export class WasmImage {
|
|
1058
1444
|
free(): void;
|
|
1059
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;
|
|
1060
1453
|
static default(): WasmImage;
|
|
1061
1454
|
constructor(url?: string | null, b64Json?: string | null, revisedPrompt?: string | null);
|
|
1062
1455
|
get b64Json(): string | undefined;
|
|
@@ -1088,6 +1481,13 @@ export enum WasmImageDetail {
|
|
|
1088
1481
|
export class WasmImageUrl {
|
|
1089
1482
|
free(): void;
|
|
1090
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;
|
|
1091
1491
|
static default(): WasmImageUrl;
|
|
1092
1492
|
constructor(url?: string | null, detail?: WasmImageDetail | null);
|
|
1093
1493
|
get detail(): string | undefined;
|
|
@@ -1101,9 +1501,27 @@ export class WasmImageUrl {
|
|
|
1101
1501
|
export class WasmImagesResponse {
|
|
1102
1502
|
free(): void;
|
|
1103
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;
|
|
1104
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
|
+
*/
|
|
1105
1517
|
constructor(created?: bigint | null, data?: WasmImage[] | null);
|
|
1106
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
|
+
*/
|
|
1107
1525
|
data: WasmImage[];
|
|
1108
1526
|
}
|
|
1109
1527
|
|
|
@@ -1113,6 +1531,13 @@ export class WasmImagesResponse {
|
|
|
1113
1531
|
export class WasmJsonSchemaFormat {
|
|
1114
1532
|
free(): void;
|
|
1115
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;
|
|
1116
1541
|
static default(): WasmJsonSchemaFormat;
|
|
1117
1542
|
constructor(name?: string | null, schema?: any | null, description?: string | null, strict?: boolean | null);
|
|
1118
1543
|
get description(): string | undefined;
|
|
@@ -1124,7 +1549,7 @@ export class WasmJsonSchemaFormat {
|
|
|
1124
1549
|
}
|
|
1125
1550
|
|
|
1126
1551
|
/**
|
|
1127
|
-
* Opaque WASM handle for [`liter_llm::
|
|
1552
|
+
* Opaque WASM handle for [`liter_llm::LiterLlmError`] that exposes introspection methods.
|
|
1128
1553
|
*/
|
|
1129
1554
|
export class WasmLiterLlmError {
|
|
1130
1555
|
private constructor();
|
|
@@ -1138,6 +1563,10 @@ export class WasmLiterLlmError {
|
|
|
1138
1563
|
* Returns `true` if the error is transient and a retry may succeed.
|
|
1139
1564
|
*/
|
|
1140
1565
|
isTransient(): boolean;
|
|
1566
|
+
/**
|
|
1567
|
+
* `retry_after` in whole milliseconds (undefined when absent).
|
|
1568
|
+
*/
|
|
1569
|
+
retryAfter(): bigint | undefined;
|
|
1141
1570
|
/**
|
|
1142
1571
|
* HTTP status code for this error variant.
|
|
1143
1572
|
*/
|
|
@@ -1150,6 +1579,13 @@ export class WasmLiterLlmError {
|
|
|
1150
1579
|
export class WasmLlmBudgetConfig {
|
|
1151
1580
|
free(): void;
|
|
1152
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;
|
|
1153
1589
|
static default(): WasmLlmBudgetConfig;
|
|
1154
1590
|
constructor(globalLimit?: number | null, modelLimits?: any | null, enforcement?: string | null);
|
|
1155
1591
|
get enforcement(): string | undefined;
|
|
@@ -1166,6 +1602,13 @@ export class WasmLlmBudgetConfig {
|
|
|
1166
1602
|
export class WasmLlmCacheConfig {
|
|
1167
1603
|
free(): void;
|
|
1168
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;
|
|
1169
1612
|
static default(): WasmLlmCacheConfig;
|
|
1170
1613
|
constructor(maxEntries?: number | null, ttlSeconds?: bigint | null, backend?: string | null, backendConfig?: any | null);
|
|
1171
1614
|
get backendConfig(): any | undefined;
|
|
@@ -1202,6 +1645,13 @@ export class WasmLlmConfig {
|
|
|
1202
1645
|
clearCache(): void;
|
|
1203
1646
|
clearInFlightLimit(): void;
|
|
1204
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;
|
|
1205
1655
|
static default(): WasmLlmConfig;
|
|
1206
1656
|
/**
|
|
1207
1657
|
* Takes ownership of `cache`, `budget`, `rateLimit`, `inFlightLimit`, `bedrock`.
|
|
@@ -1209,16 +1659,37 @@ export class WasmLlmConfig {
|
|
|
1209
1659
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
1210
1660
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1211
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.
|
|
1212
1665
|
*/
|
|
1213
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);
|
|
1214
1667
|
get apiKey(): string | undefined;
|
|
1215
1668
|
set apiKey(value: string | null | undefined);
|
|
1216
1669
|
get baseUrl(): string | undefined;
|
|
1217
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
|
+
*/
|
|
1218
1677
|
get bedrock(): WasmBedrockConfig | undefined;
|
|
1219
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
|
+
*/
|
|
1220
1685
|
get budget(): WasmLlmBudgetConfig | undefined;
|
|
1221
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
|
+
*/
|
|
1222
1693
|
get cache(): WasmLlmCacheConfig | undefined;
|
|
1223
1694
|
set cache(value: WasmLlmCacheConfig);
|
|
1224
1695
|
get cooldownSecs(): bigint | undefined;
|
|
@@ -1229,6 +1700,12 @@ export class WasmLlmConfig {
|
|
|
1229
1700
|
set headers(value: any | null | undefined);
|
|
1230
1701
|
get healthCheckSecs(): bigint | undefined;
|
|
1231
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
|
+
*/
|
|
1232
1709
|
get inFlightLimit(): WasmLlmInFlightLimitConfig | undefined;
|
|
1233
1710
|
set inFlightLimit(value: WasmLlmInFlightLimitConfig);
|
|
1234
1711
|
get loadEnv(): boolean | undefined;
|
|
@@ -1238,8 +1715,25 @@ export class WasmLlmConfig {
|
|
|
1238
1715
|
get maxTokens(): bigint | undefined;
|
|
1239
1716
|
set maxTokens(value: bigint | null | undefined);
|
|
1240
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
|
+
*/
|
|
1241
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
|
+
*/
|
|
1242
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
|
+
*/
|
|
1243
1737
|
get rateLimit(): WasmLlmRateLimitConfig | undefined;
|
|
1244
1738
|
set rateLimit(value: WasmLlmRateLimitConfig);
|
|
1245
1739
|
get temperature(): number | undefined;
|
|
@@ -1256,6 +1750,13 @@ export class WasmLlmConfig {
|
|
|
1256
1750
|
export class WasmLlmInFlightLimitConfig {
|
|
1257
1751
|
free(): void;
|
|
1258
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;
|
|
1259
1760
|
static default(): WasmLlmInFlightLimitConfig;
|
|
1260
1761
|
constructor(maxInFlight?: number | null);
|
|
1261
1762
|
get maxInFlight(): number | undefined;
|
|
@@ -1268,6 +1769,13 @@ export class WasmLlmInFlightLimitConfig {
|
|
|
1268
1769
|
export class WasmLlmProviderConfig {
|
|
1269
1770
|
free(): void;
|
|
1270
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;
|
|
1271
1779
|
static default(): WasmLlmProviderConfig;
|
|
1272
1780
|
constructor(name?: string | null, baseUrl?: string | null, modelPrefixes?: string[] | null, authHeader?: string | null);
|
|
1273
1781
|
get authHeader(): string | undefined;
|
|
@@ -1283,6 +1791,13 @@ export class WasmLlmProviderConfig {
|
|
|
1283
1791
|
export class WasmLlmRateLimitConfig {
|
|
1284
1792
|
free(): void;
|
|
1285
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;
|
|
1286
1801
|
static default(): WasmLlmRateLimitConfig;
|
|
1287
1802
|
constructor(rpm?: number | null, tpm?: bigint | null, windowSeconds?: bigint | null);
|
|
1288
1803
|
get rpm(): number | undefined;
|
|
@@ -1318,7 +1833,19 @@ export enum WasmModality {
|
|
|
1318
1833
|
export class WasmModelInfo {
|
|
1319
1834
|
free(): void;
|
|
1320
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;
|
|
1321
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
|
+
*/
|
|
1322
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);
|
|
1323
1850
|
get cacheCreationInputTokenCost(): number | undefined;
|
|
1324
1851
|
set cacheCreationInputTokenCost(value: number | null | undefined);
|
|
@@ -1354,6 +1881,12 @@ export class WasmModelInfo {
|
|
|
1354
1881
|
set supportsStructuredOutput(value: boolean | null | undefined);
|
|
1355
1882
|
get supportsVision(): boolean | undefined;
|
|
1356
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
|
+
*/
|
|
1357
1890
|
tiers: WasmModelTier[];
|
|
1358
1891
|
}
|
|
1359
1892
|
|
|
@@ -1363,6 +1896,13 @@ export class WasmModelInfo {
|
|
|
1363
1896
|
export class WasmModelObject {
|
|
1364
1897
|
free(): void;
|
|
1365
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;
|
|
1366
1906
|
static default(): WasmModelObject;
|
|
1367
1907
|
constructor(id?: string | null, object?: string | null, created?: bigint | null, ownedBy?: string | null);
|
|
1368
1908
|
created: bigint;
|
|
@@ -1378,6 +1918,13 @@ export class WasmModelObject {
|
|
|
1378
1918
|
export class WasmModelTier {
|
|
1379
1919
|
free(): void;
|
|
1380
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;
|
|
1381
1928
|
static default(): WasmModelTier;
|
|
1382
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);
|
|
1383
1930
|
get cacheCreationInputTokenCost(): number | undefined;
|
|
@@ -1401,8 +1948,26 @@ export class WasmModelTier {
|
|
|
1401
1948
|
export class WasmModelsListResponse {
|
|
1402
1949
|
free(): void;
|
|
1403
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;
|
|
1404
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
|
+
*/
|
|
1405
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
|
+
*/
|
|
1406
1971
|
data: WasmModelObject[];
|
|
1407
1972
|
object: string;
|
|
1408
1973
|
}
|
|
@@ -1413,6 +1978,13 @@ export class WasmModelsListResponse {
|
|
|
1413
1978
|
export class WasmModerationCategories {
|
|
1414
1979
|
free(): void;
|
|
1415
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;
|
|
1416
1988
|
static default(): WasmModerationCategories;
|
|
1417
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);
|
|
1418
1990
|
harassmentThreatening: boolean;
|
|
@@ -1434,6 +2006,13 @@ export class WasmModerationCategories {
|
|
|
1434
2006
|
export class WasmModerationCategoryScores {
|
|
1435
2007
|
free(): void;
|
|
1436
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;
|
|
1437
2016
|
static default(): WasmModerationCategoryScores;
|
|
1438
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);
|
|
1439
2018
|
harassmentThreatening: number;
|
|
@@ -1455,6 +2034,13 @@ export class WasmModerationCategoryScores {
|
|
|
1455
2034
|
export class WasmModerationRequest {
|
|
1456
2035
|
free(): void;
|
|
1457
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;
|
|
1458
2044
|
static default(): WasmModerationRequest;
|
|
1459
2045
|
constructor(input?: any | null, model?: string | null);
|
|
1460
2046
|
input: WasmModerationInput;
|
|
@@ -1468,10 +2054,28 @@ export class WasmModerationRequest {
|
|
|
1468
2054
|
export class WasmModerationResponse {
|
|
1469
2055
|
free(): void;
|
|
1470
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;
|
|
1471
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
|
+
*/
|
|
1472
2070
|
constructor(id: string, model: string, results: WasmModerationResult[]);
|
|
1473
2071
|
id: string;
|
|
1474
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
|
+
*/
|
|
1475
2079
|
results: WasmModerationResult[];
|
|
1476
2080
|
}
|
|
1477
2081
|
|
|
@@ -1481,9 +2085,28 @@ export class WasmModerationResponse {
|
|
|
1481
2085
|
export class WasmModerationResult {
|
|
1482
2086
|
free(): void;
|
|
1483
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;
|
|
1484
2095
|
static default(): WasmModerationResult;
|
|
1485
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
|
+
*/
|
|
1486
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
|
+
*/
|
|
1487
2110
|
categoryScores: WasmModerationCategoryScores;
|
|
1488
2111
|
flagged: boolean;
|
|
1489
2112
|
}
|
|
@@ -1511,6 +2134,13 @@ export class WasmOcrDocument {
|
|
|
1511
2134
|
export class WasmOcrImage {
|
|
1512
2135
|
free(): void;
|
|
1513
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;
|
|
1514
2144
|
static default(): WasmOcrImage;
|
|
1515
2145
|
constructor(id: string, imageBase64?: string | null);
|
|
1516
2146
|
id: string;
|
|
@@ -1525,6 +2155,13 @@ export class WasmOcrPage {
|
|
|
1525
2155
|
free(): void;
|
|
1526
2156
|
[Symbol.dispose](): void;
|
|
1527
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;
|
|
1528
2165
|
static default(): WasmOcrPage;
|
|
1529
2166
|
/**
|
|
1530
2167
|
* Takes ownership of `dimensions`.
|
|
@@ -1532,11 +2169,31 @@ export class WasmOcrPage {
|
|
|
1532
2169
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
1533
2170
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1534
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.
|
|
1535
2175
|
*/
|
|
1536
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
|
+
*/
|
|
1537
2183
|
get dimensions(): WasmPageDimensions | undefined;
|
|
1538
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
|
+
*/
|
|
1539
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
|
+
*/
|
|
1540
2197
|
set images(value: WasmOcrImage[] | null | undefined);
|
|
1541
2198
|
index: number;
|
|
1542
2199
|
markdown: string;
|
|
@@ -1548,6 +2205,13 @@ export class WasmOcrPage {
|
|
|
1548
2205
|
export class WasmOcrRequest {
|
|
1549
2206
|
free(): void;
|
|
1550
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;
|
|
1551
2215
|
static default(): WasmOcrRequest;
|
|
1552
2216
|
constructor(model?: string | null, document?: any | null, pages?: Uint32Array | null, includeImageBase64?: boolean | null);
|
|
1553
2217
|
document: any;
|
|
@@ -1565,6 +2229,13 @@ export class WasmOcrResponse {
|
|
|
1565
2229
|
free(): void;
|
|
1566
2230
|
[Symbol.dispose](): void;
|
|
1567
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;
|
|
1568
2239
|
static default(): WasmOcrResponse;
|
|
1569
2240
|
/**
|
|
1570
2241
|
* Takes ownership of `usage`.
|
|
@@ -1572,10 +2243,25 @@ export class WasmOcrResponse {
|
|
|
1572
2243
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
1573
2244
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1574
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.
|
|
1575
2249
|
*/
|
|
1576
2250
|
constructor(pages: WasmOcrPage[], model: string, usage?: WasmUsage | null);
|
|
1577
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
|
+
*/
|
|
1578
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
|
+
*/
|
|
1579
2265
|
get usage(): WasmUsage | undefined;
|
|
1580
2266
|
set usage(value: WasmUsage);
|
|
1581
2267
|
}
|
|
@@ -1586,6 +2272,13 @@ export class WasmOcrResponse {
|
|
|
1586
2272
|
export class WasmPageDimensions {
|
|
1587
2273
|
free(): void;
|
|
1588
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;
|
|
1589
2282
|
static default(): WasmPageDimensions;
|
|
1590
2283
|
constructor(width: number, height: number);
|
|
1591
2284
|
height: number;
|
|
@@ -1603,6 +2296,13 @@ export class WasmPageDimensions {
|
|
|
1603
2296
|
export class WasmPromptTokensDetails {
|
|
1604
2297
|
free(): void;
|
|
1605
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;
|
|
1606
2306
|
static default(): WasmPromptTokensDetails;
|
|
1607
2307
|
constructor(cachedTokens?: bigint | null, audioTokens?: bigint | null);
|
|
1608
2308
|
audioTokens: bigint;
|
|
@@ -1625,6 +2325,13 @@ export class WasmPromptTokensDetails {
|
|
|
1625
2325
|
export class WasmProviderCapabilities {
|
|
1626
2326
|
free(): void;
|
|
1627
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;
|
|
1628
2335
|
static default(): WasmProviderCapabilities;
|
|
1629
2336
|
constructor(vision?: boolean | null, reasoning?: boolean | null, structuredOutput?: boolean | null, functionCalling?: boolean | null, audioIn?: boolean | null, audioOut?: boolean | null, videoIn?: boolean | null);
|
|
1630
2337
|
audioIn: boolean;
|
|
@@ -1646,6 +2353,13 @@ export class WasmProviderConfig {
|
|
|
1646
2353
|
free(): void;
|
|
1647
2354
|
[Symbol.dispose](): void;
|
|
1648
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;
|
|
1649
2363
|
static default(): WasmProviderConfig;
|
|
1650
2364
|
/**
|
|
1651
2365
|
* Takes ownership of `auth`.
|
|
@@ -1655,6 +2369,12 @@ export class WasmProviderConfig {
|
|
|
1655
2369
|
* the generated setter borrows and leaves your handle alive.
|
|
1656
2370
|
*/
|
|
1657
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
|
+
*/
|
|
1658
2378
|
get auth(): WasmAuthConfig | undefined;
|
|
1659
2379
|
set auth(value: WasmAuthConfig);
|
|
1660
2380
|
get baseUrl(): string | undefined;
|
|
@@ -1696,6 +2416,13 @@ export enum WasmRefreshOutcome {
|
|
|
1696
2416
|
export class WasmRerankRequest {
|
|
1697
2417
|
free(): void;
|
|
1698
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;
|
|
1699
2426
|
static default(): WasmRerankRequest;
|
|
1700
2427
|
constructor(model?: string | null, query?: string | null, documents?: any | null, topN?: number | null, returnDocuments?: boolean | null);
|
|
1701
2428
|
documents: any;
|
|
@@ -1713,12 +2440,30 @@ export class WasmRerankRequest {
|
|
|
1713
2440
|
export class WasmRerankResponse {
|
|
1714
2441
|
free(): void;
|
|
1715
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;
|
|
1716
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
|
+
*/
|
|
1717
2456
|
constructor(results: WasmRerankResult[], id?: string | null, meta?: any | null);
|
|
1718
2457
|
get id(): string | undefined;
|
|
1719
2458
|
set id(value: string | null | undefined);
|
|
1720
2459
|
get meta(): any | undefined;
|
|
1721
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
|
+
*/
|
|
1722
2467
|
results: WasmRerankResult[];
|
|
1723
2468
|
}
|
|
1724
2469
|
|
|
@@ -1729,6 +2474,13 @@ export class WasmRerankResult {
|
|
|
1729
2474
|
free(): void;
|
|
1730
2475
|
[Symbol.dispose](): void;
|
|
1731
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;
|
|
1732
2484
|
static default(): WasmRerankResult;
|
|
1733
2485
|
/**
|
|
1734
2486
|
* Takes ownership of `document`.
|
|
@@ -1738,6 +2490,12 @@ export class WasmRerankResult {
|
|
|
1738
2490
|
* the generated setter borrows and leaves your handle alive.
|
|
1739
2491
|
*/
|
|
1740
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
|
+
*/
|
|
1741
2499
|
get document(): WasmRerankResultDocument | undefined;
|
|
1742
2500
|
set document(value: WasmRerankResultDocument);
|
|
1743
2501
|
index: number;
|
|
@@ -1750,6 +2508,13 @@ export class WasmRerankResult {
|
|
|
1750
2508
|
export class WasmRerankResultDocument {
|
|
1751
2509
|
free(): void;
|
|
1752
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;
|
|
1753
2518
|
static default(): WasmRerankResultDocument;
|
|
1754
2519
|
constructor(text: string);
|
|
1755
2520
|
text: string;
|
|
@@ -1793,6 +2558,13 @@ export class WasmResponseObject {
|
|
|
1793
2558
|
free(): void;
|
|
1794
2559
|
[Symbol.dispose](): void;
|
|
1795
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;
|
|
1796
2568
|
static default(): WasmResponseObject;
|
|
1797
2569
|
/**
|
|
1798
2570
|
* Takes ownership of `usage`.
|
|
@@ -1800,6 +2572,9 @@ export class WasmResponseObject {
|
|
|
1800
2572
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
1801
2573
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1802
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.
|
|
1803
2578
|
*/
|
|
1804
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);
|
|
1805
2580
|
createdAt: bigint;
|
|
@@ -1808,8 +2583,20 @@ export class WasmResponseObject {
|
|
|
1808
2583
|
id: string;
|
|
1809
2584
|
model: string;
|
|
1810
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
|
+
*/
|
|
1811
2592
|
output: WasmResponseOutputItem[];
|
|
1812
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
|
+
*/
|
|
1813
2600
|
get usage(): WasmResponseUsage | undefined;
|
|
1814
2601
|
set usage(value: WasmResponseUsage);
|
|
1815
2602
|
}
|
|
@@ -1820,6 +2607,13 @@ export class WasmResponseObject {
|
|
|
1820
2607
|
export class WasmResponseOutputItem {
|
|
1821
2608
|
free(): void;
|
|
1822
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;
|
|
1823
2617
|
static default(): WasmResponseOutputItem;
|
|
1824
2618
|
constructor(itemType?: string | null, content?: any | null);
|
|
1825
2619
|
content: any;
|
|
@@ -1832,6 +2626,13 @@ export class WasmResponseOutputItem {
|
|
|
1832
2626
|
export class WasmResponseTool {
|
|
1833
2627
|
free(): void;
|
|
1834
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;
|
|
1835
2636
|
static default(): WasmResponseTool;
|
|
1836
2637
|
constructor(toolType?: string | null, config?: any | null);
|
|
1837
2638
|
config: any;
|
|
@@ -1844,6 +2645,13 @@ export class WasmResponseTool {
|
|
|
1844
2645
|
export class WasmResponseUsage {
|
|
1845
2646
|
free(): void;
|
|
1846
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;
|
|
1847
2655
|
static default(): WasmResponseUsage;
|
|
1848
2656
|
constructor(inputTokens?: bigint | null, outputTokens?: bigint | null, totalTokens?: bigint | null);
|
|
1849
2657
|
inputTokens: bigint;
|
|
@@ -1857,6 +2665,13 @@ export class WasmResponseUsage {
|
|
|
1857
2665
|
export class WasmSearchRequest {
|
|
1858
2666
|
free(): void;
|
|
1859
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;
|
|
1860
2675
|
static default(): WasmSearchRequest;
|
|
1861
2676
|
constructor(model?: string | null, query?: string | null, maxResults?: number | null, searchDomainFilter?: string[] | null, country?: string | null);
|
|
1862
2677
|
get country(): string | undefined;
|
|
@@ -1875,9 +2690,27 @@ export class WasmSearchRequest {
|
|
|
1875
2690
|
export class WasmSearchResponse {
|
|
1876
2691
|
free(): void;
|
|
1877
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;
|
|
1878
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
|
+
*/
|
|
1879
2706
|
constructor(results: WasmSearchResult[], model: string);
|
|
1880
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
|
+
*/
|
|
1881
2714
|
results: WasmSearchResult[];
|
|
1882
2715
|
}
|
|
1883
2716
|
|
|
@@ -1887,6 +2720,13 @@ export class WasmSearchResponse {
|
|
|
1887
2720
|
export class WasmSearchResult {
|
|
1888
2721
|
free(): void;
|
|
1889
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;
|
|
1890
2730
|
static default(): WasmSearchResult;
|
|
1891
2731
|
constructor(title: string, url: string, snippet: string, date?: string | null);
|
|
1892
2732
|
get date(): string | undefined;
|
|
@@ -1902,6 +2742,13 @@ export class WasmSearchResult {
|
|
|
1902
2742
|
export class WasmSpecificFunction {
|
|
1903
2743
|
free(): void;
|
|
1904
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;
|
|
1905
2752
|
static default(): WasmSpecificFunction;
|
|
1906
2753
|
constructor(name?: string | null);
|
|
1907
2754
|
name: string;
|
|
@@ -1913,6 +2760,13 @@ export class WasmSpecificFunction {
|
|
|
1913
2760
|
export class WasmSpecificToolChoice {
|
|
1914
2761
|
free(): void;
|
|
1915
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;
|
|
1916
2770
|
static default(): WasmSpecificToolChoice;
|
|
1917
2771
|
/**
|
|
1918
2772
|
* Takes ownership of `function`.
|
|
@@ -1924,6 +2778,12 @@ export class WasmSpecificToolChoice {
|
|
|
1924
2778
|
constructor(choiceType?: WasmToolType | null, _function?: WasmSpecificFunction | null);
|
|
1925
2779
|
get choiceType(): string;
|
|
1926
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
|
+
*/
|
|
1927
2787
|
function: WasmSpecificFunction;
|
|
1928
2788
|
}
|
|
1929
2789
|
|
|
@@ -1933,6 +2793,13 @@ export class WasmSpecificToolChoice {
|
|
|
1933
2793
|
export class WasmStreamChoice {
|
|
1934
2794
|
free(): void;
|
|
1935
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;
|
|
1936
2803
|
static default(): WasmStreamChoice;
|
|
1937
2804
|
/**
|
|
1938
2805
|
* Takes ownership of `delta`.
|
|
@@ -1942,6 +2809,12 @@ export class WasmStreamChoice {
|
|
|
1942
2809
|
* the generated setter borrows and leaves your handle alive.
|
|
1943
2810
|
*/
|
|
1944
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
|
+
*/
|
|
1945
2818
|
delta: WasmStreamDelta;
|
|
1946
2819
|
get finishReason(): string | undefined;
|
|
1947
2820
|
set finishReason(value: WasmFinishReason | null | undefined);
|
|
@@ -1955,6 +2828,13 @@ export class WasmStreamDelta {
|
|
|
1955
2828
|
free(): void;
|
|
1956
2829
|
[Symbol.dispose](): void;
|
|
1957
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;
|
|
1958
2838
|
static default(): WasmStreamDelta;
|
|
1959
2839
|
/**
|
|
1960
2840
|
* Takes ownership of `functionCall`.
|
|
@@ -1962,10 +2842,19 @@ export class WasmStreamDelta {
|
|
|
1962
2842
|
* of those handles is dead once this returns. Passing a freshly built value is fine. To
|
|
1963
2843
|
* keep a handle you already hold, build with `default()` and assign the property instead:
|
|
1964
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.
|
|
1965
2848
|
*/
|
|
1966
2849
|
constructor(role?: string | null, content?: string | null, toolCalls?: WasmStreamToolCall[] | null, functionCall?: WasmStreamFunctionCall | null, refusal?: string | null, reasoningContent?: string | null);
|
|
1967
2850
|
get content(): string | undefined;
|
|
1968
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
|
+
*/
|
|
1969
2858
|
get functionCall(): WasmStreamFunctionCall | undefined;
|
|
1970
2859
|
set functionCall(value: WasmStreamFunctionCall);
|
|
1971
2860
|
get reasoningContent(): string | undefined;
|
|
@@ -1974,7 +2863,18 @@ export class WasmStreamDelta {
|
|
|
1974
2863
|
set refusal(value: string | null | undefined);
|
|
1975
2864
|
get role(): string | undefined;
|
|
1976
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
|
+
*/
|
|
1977
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
|
+
*/
|
|
1978
2878
|
set toolCalls(value: WasmStreamToolCall[] | null | undefined);
|
|
1979
2879
|
}
|
|
1980
2880
|
|
|
@@ -1997,6 +2897,13 @@ export enum WasmStreamFormat {
|
|
|
1997
2897
|
export class WasmStreamFunctionCall {
|
|
1998
2898
|
free(): void;
|
|
1999
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;
|
|
2000
2907
|
static default(): WasmStreamFunctionCall;
|
|
2001
2908
|
constructor(name?: string | null, _arguments?: string | null);
|
|
2002
2909
|
get arguments(): string | undefined;
|
|
@@ -2011,6 +2918,13 @@ export class WasmStreamFunctionCall {
|
|
|
2011
2918
|
export class WasmStreamOptions {
|
|
2012
2919
|
free(): void;
|
|
2013
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;
|
|
2014
2928
|
static default(): WasmStreamOptions;
|
|
2015
2929
|
constructor(includeUsage?: boolean | null);
|
|
2016
2930
|
get includeUsage(): boolean | undefined;
|
|
@@ -2024,6 +2938,13 @@ export class WasmStreamToolCall {
|
|
|
2024
2938
|
free(): void;
|
|
2025
2939
|
[Symbol.dispose](): void;
|
|
2026
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;
|
|
2027
2948
|
static default(): WasmStreamToolCall;
|
|
2028
2949
|
/**
|
|
2029
2950
|
* Takes ownership of `function`.
|
|
@@ -2035,6 +2956,12 @@ export class WasmStreamToolCall {
|
|
|
2035
2956
|
constructor(index?: number | null, id?: string | null, callType?: WasmToolType | null, _function?: WasmStreamFunctionCall | null);
|
|
2036
2957
|
get callType(): string | undefined;
|
|
2037
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
|
+
*/
|
|
2038
2965
|
get function(): WasmStreamFunctionCall | undefined;
|
|
2039
2966
|
set function(value: WasmStreamFunctionCall);
|
|
2040
2967
|
get id(): string | undefined;
|
|
@@ -2048,6 +2975,13 @@ export class WasmStreamToolCall {
|
|
|
2048
2975
|
export class WasmSystemMessage {
|
|
2049
2976
|
free(): void;
|
|
2050
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;
|
|
2051
2985
|
static default(): WasmSystemMessage;
|
|
2052
2986
|
constructor(content?: any | null, name?: string | null);
|
|
2053
2987
|
content: WasmUserContent;
|
|
@@ -2061,10 +2995,23 @@ export class WasmSystemMessage {
|
|
|
2061
2995
|
export class WasmToolCall {
|
|
2062
2996
|
free(): void;
|
|
2063
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;
|
|
2064
3005
|
static default(): WasmToolCall;
|
|
2065
3006
|
constructor(id: string, callType: WasmToolType, _function: WasmFunctionCall);
|
|
2066
3007
|
get callType(): string;
|
|
2067
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
|
+
*/
|
|
2068
3015
|
function: WasmFunctionCall;
|
|
2069
3016
|
id: string;
|
|
2070
3017
|
}
|
|
@@ -2084,6 +3031,13 @@ export enum WasmToolChoiceMode {
|
|
|
2084
3031
|
export class WasmToolMessage {
|
|
2085
3032
|
free(): void;
|
|
2086
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;
|
|
2087
3041
|
static default(): WasmToolMessage;
|
|
2088
3042
|
constructor(content?: any | null, toolCallId?: string | null, name?: string | null);
|
|
2089
3043
|
content: WasmUserContent;
|
|
@@ -2109,13 +3063,36 @@ export enum WasmToolType {
|
|
|
2109
3063
|
export class WasmTranscriptionResponse {
|
|
2110
3064
|
free(): void;
|
|
2111
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;
|
|
2112
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
|
+
*/
|
|
2113
3079
|
constructor(text?: string | null, language?: string | null, duration?: number | null, segments?: WasmTranscriptionSegment[] | null);
|
|
2114
3080
|
get duration(): number | undefined;
|
|
2115
3081
|
set duration(value: number | null | undefined);
|
|
2116
3082
|
get language(): string | undefined;
|
|
2117
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
|
+
*/
|
|
2118
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
|
+
*/
|
|
2119
3096
|
set segments(value: WasmTranscriptionSegment[] | null | undefined);
|
|
2120
3097
|
text: string;
|
|
2121
3098
|
}
|
|
@@ -2126,6 +3103,13 @@ export class WasmTranscriptionResponse {
|
|
|
2126
3103
|
export class WasmTranscriptionSegment {
|
|
2127
3104
|
free(): void;
|
|
2128
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;
|
|
2129
3113
|
static default(): WasmTranscriptionSegment;
|
|
2130
3114
|
constructor(id?: number | null, start?: number | null, end?: number | null, text?: string | null);
|
|
2131
3115
|
end: number;
|
|
@@ -2141,6 +3125,13 @@ export class WasmUsage {
|
|
|
2141
3125
|
free(): void;
|
|
2142
3126
|
[Symbol.dispose](): void;
|
|
2143
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;
|
|
2144
3135
|
static default(): WasmUsage;
|
|
2145
3136
|
/**
|
|
2146
3137
|
* Takes ownership of `promptTokensDetails`.
|
|
@@ -2151,6 +3142,12 @@ export class WasmUsage {
|
|
|
2151
3142
|
*/
|
|
2152
3143
|
constructor(promptTokens?: bigint | null, completionTokens?: bigint | null, totalTokens?: bigint | null, promptTokensDetails?: WasmPromptTokensDetails | null);
|
|
2153
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
|
+
*/
|
|
2154
3151
|
get promptTokensDetails(): WasmPromptTokensDetails | undefined;
|
|
2155
3152
|
set promptTokensDetails(value: WasmPromptTokensDetails);
|
|
2156
3153
|
promptTokens: bigint;
|
|
@@ -2163,6 +3160,13 @@ export class WasmUsage {
|
|
|
2163
3160
|
export class WasmUserMessage {
|
|
2164
3161
|
free(): void;
|
|
2165
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;
|
|
2166
3170
|
static default(): WasmUserMessage;
|
|
2167
3171
|
constructor(content?: any | null, name?: string | null);
|
|
2168
3172
|
content: WasmUserContent;
|
|
@@ -2179,6 +3183,13 @@ export class WasmUserMessage {
|
|
|
2179
3183
|
export class WasmWaitForBatchConfig {
|
|
2180
3184
|
free(): void;
|
|
2181
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;
|
|
2182
3193
|
static default(): WasmWaitForBatchConfig;
|
|
2183
3194
|
constructor(initialIntervalSecs?: number | null, maxIntervalSecs?: number | null, backoffMultiplier?: number | null, timeoutSecs?: number | null);
|
|
2184
3195
|
backoffMultiplier: number;
|
|
@@ -2200,7 +3211,7 @@ export function allProviders(): WasmProviderConfig[];
|
|
|
2200
3211
|
/**
|
|
2201
3212
|
* Return the capability flags for a named provider.
|
|
2202
3213
|
*
|
|
2203
|
-
* Performs an O(n) linear scan over the embedded registry (
|
|
3214
|
+
* Performs an O(n) linear scan over the embedded registry (174 entries).
|
|
2204
3215
|
* Returns an owned value so bindings can pass capability data without
|
|
2205
3216
|
* borrowing registry internals.
|
|
2206
3217
|
*
|
|
@@ -2305,11 +3316,19 @@ export function createClient(api_key: string, base_url?: string | null, timeout_
|
|
|
2305
3316
|
* Create a new LLM client from a JSON string.
|
|
2306
3317
|
*
|
|
2307
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`.
|
|
2308
3326
|
*
|
|
2309
3327
|
* # Errors
|
|
2310
3328
|
*
|
|
2311
|
-
* Returns `LiterLlmError.BadRequest` if `json` is not valid JSON
|
|
2312
|
-
*
|
|
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.
|
|
2313
3332
|
*/
|
|
2314
3333
|
export function createClientFromJson(json: string): WasmDefaultClient;
|
|
2315
3334
|
|
|
@@ -2551,6 +3570,7 @@ export interface InitOutput {
|
|
|
2551
3570
|
readonly unregisterCustomProvider: (a: number, b: number) => [number, number, number];
|
|
2552
3571
|
readonly wasmassistantmessage_clearFunctionCall: (a: number) => void;
|
|
2553
3572
|
readonly wasmassistantmessage_content: (a: number) => [number, number];
|
|
3573
|
+
readonly wasmassistantmessage_copyForTransfer: (a: number) => number;
|
|
2554
3574
|
readonly wasmassistantmessage_default: () => number;
|
|
2555
3575
|
readonly wasmassistantmessage_functionCall: (a: number) => number;
|
|
2556
3576
|
readonly wasmassistantmessage_name: (a: number) => [number, number];
|
|
@@ -2583,6 +3603,7 @@ export interface InitOutput {
|
|
|
2583
3603
|
readonly wasmassistantpart_set_type: (a: number, b: number, c: number) => void;
|
|
2584
3604
|
readonly wasmassistantpart_text: (a: number) => [number, number];
|
|
2585
3605
|
readonly wasmassistantpart_type: (a: number) => [number, number];
|
|
3606
|
+
readonly wasmaudiocontent_copyForTransfer: (a: number) => number;
|
|
2586
3607
|
readonly wasmaudiocontent_data: (a: number) => [number, number];
|
|
2587
3608
|
readonly wasmaudiocontent_default: () => number;
|
|
2588
3609
|
readonly wasmaudiocontent_format: (a: number) => [number, number];
|
|
@@ -2590,6 +3611,7 @@ export interface InitOutput {
|
|
|
2590
3611
|
readonly wasmaudiocontent_set_data: (a: number, b: number, c: number) => void;
|
|
2591
3612
|
readonly wasmaudiocontent_set_format: (a: number, b: number, c: number) => void;
|
|
2592
3613
|
readonly wasmauthconfig_authType: (a: number) => [number, number];
|
|
3614
|
+
readonly wasmauthconfig_copyForTransfer: (a: number) => number;
|
|
2593
3615
|
readonly wasmauthconfig_default: () => number;
|
|
2594
3616
|
readonly wasmauthconfig_envVar: (a: number) => [number, number];
|
|
2595
3617
|
readonly wasmauthconfig_new: (a: number, b: number, c: number) => number;
|
|
@@ -2602,11 +3624,13 @@ export interface InitOutput {
|
|
|
2602
3624
|
readonly wasmauthheaderformat_set_type: (a: number, b: number, c: number) => void;
|
|
2603
3625
|
readonly wasmauthheaderformat_type: (a: number) => [number, number];
|
|
2604
3626
|
readonly wasmbatchlistquery_after: (a: number) => [number, number];
|
|
3627
|
+
readonly wasmbatchlistquery_copyForTransfer: (a: number) => number;
|
|
2605
3628
|
readonly wasmbatchlistquery_default: () => number;
|
|
2606
3629
|
readonly wasmbatchlistquery_limit: (a: number) => number;
|
|
2607
3630
|
readonly wasmbatchlistquery_new: (a: number, b: number, c: number) => number;
|
|
2608
3631
|
readonly wasmbatchlistquery_set_after: (a: number, b: number, c: number) => void;
|
|
2609
3632
|
readonly wasmbatchlistquery_set_limit: (a: number, b: number) => void;
|
|
3633
|
+
readonly wasmbatchlistresponse_copyForTransfer: (a: number) => number;
|
|
2610
3634
|
readonly wasmbatchlistresponse_data: (a: number) => [number, number];
|
|
2611
3635
|
readonly wasmbatchlistresponse_default: () => number;
|
|
2612
3636
|
readonly wasmbatchlistresponse_firstId: (a: number) => [number, number];
|
|
@@ -2622,6 +3646,7 @@ export interface InitOutput {
|
|
|
2622
3646
|
readonly wasmbatchobject_clearRequestCounts: (a: number) => void;
|
|
2623
3647
|
readonly wasmbatchobject_completedAt: (a: number) => [number, bigint];
|
|
2624
3648
|
readonly wasmbatchobject_completionWindow: (a: number) => [number, number];
|
|
3649
|
+
readonly wasmbatchobject_copyForTransfer: (a: number) => number;
|
|
2625
3650
|
readonly wasmbatchobject_createdAt: (a: number) => bigint;
|
|
2626
3651
|
readonly wasmbatchobject_default: () => number;
|
|
2627
3652
|
readonly wasmbatchobject_endpoint: (a: number) => [number, number];
|
|
@@ -2651,6 +3676,7 @@ export interface InitOutput {
|
|
|
2651
3676
|
readonly wasmbatchobject_set_status: (a: number, b: number) => void;
|
|
2652
3677
|
readonly wasmbatchobject_status: (a: number) => [number, number];
|
|
2653
3678
|
readonly wasmbatchrequestcounts_completed: (a: number) => bigint;
|
|
3679
|
+
readonly wasmbatchrequestcounts_copyForTransfer: (a: number) => number;
|
|
2654
3680
|
readonly wasmbatchrequestcounts_default: () => number;
|
|
2655
3681
|
readonly wasmbatchrequestcounts_failed: (a: number) => bigint;
|
|
2656
3682
|
readonly wasmbatchrequestcounts_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint) => number;
|
|
@@ -2659,6 +3685,7 @@ export interface InitOutput {
|
|
|
2659
3685
|
readonly wasmbatchrequestcounts_set_total: (a: number, b: bigint) => void;
|
|
2660
3686
|
readonly wasmbatchrequestcounts_total: (a: number) => bigint;
|
|
2661
3687
|
readonly wasmbedrockconfig_accessKeyId: (a: number) => [number, number];
|
|
3688
|
+
readonly wasmbedrockconfig_copyForTransfer: (a: number) => number;
|
|
2662
3689
|
readonly wasmbedrockconfig_crossRegionPrefix: (a: number) => [number, number];
|
|
2663
3690
|
readonly wasmbedrockconfig_default: () => number;
|
|
2664
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;
|
|
@@ -2671,6 +3698,7 @@ export interface InitOutput {
|
|
|
2671
3698
|
readonly wasmbedrockconfig_set_secretAccessKey: (a: number, b: number, c: number) => void;
|
|
2672
3699
|
readonly wasmbedrockconfig_set_sessionToken: (a: number, b: number, c: number) => void;
|
|
2673
3700
|
readonly wasmcatalogrefreshconfig_cachePath: (a: number) => [number, number];
|
|
3701
|
+
readonly wasmcatalogrefreshconfig_copyForTransfer: (a: number) => number;
|
|
2674
3702
|
readonly wasmcatalogrefreshconfig_default: () => number;
|
|
2675
3703
|
readonly wasmcatalogrefreshconfig_enabled: (a: number) => number;
|
|
2676
3704
|
readonly wasmcatalogrefreshconfig_new: (a: number, b: number, c: number, d: number, e: bigint, f: number, g: number) => number;
|
|
@@ -2682,6 +3710,7 @@ export interface InitOutput {
|
|
|
2682
3710
|
readonly wasmcatalogrefreshconfig_ttlSeconds: (a: number) => bigint;
|
|
2683
3711
|
readonly wasmchatcompletionchunk_choices: (a: number) => [number, number];
|
|
2684
3712
|
readonly wasmchatcompletionchunk_clearUsage: (a: number) => void;
|
|
3713
|
+
readonly wasmchatcompletionchunk_copyForTransfer: (a: number) => number;
|
|
2685
3714
|
readonly wasmchatcompletionchunk_created: (a: number) => bigint;
|
|
2686
3715
|
readonly wasmchatcompletionchunk_default: () => number;
|
|
2687
3716
|
readonly wasmchatcompletionchunk_id: (a: number) => [number, number];
|
|
@@ -2701,6 +3730,7 @@ export interface InitOutput {
|
|
|
2701
3730
|
readonly wasmchatcompletionchunk_usage: (a: number) => number;
|
|
2702
3731
|
readonly wasmchatcompletionrequest_audio: (a: number) => any;
|
|
2703
3732
|
readonly wasmchatcompletionrequest_clearStreamOptions: (a: number) => void;
|
|
3733
|
+
readonly wasmchatcompletionrequest_copyForTransfer: (a: number) => number;
|
|
2704
3734
|
readonly wasmchatcompletionrequest_default: () => number;
|
|
2705
3735
|
readonly wasmchatcompletionrequest_extraBody: (a: number) => any;
|
|
2706
3736
|
readonly wasmchatcompletionrequest_frequencyPenalty: (a: number) => [number, number];
|
|
@@ -2764,6 +3794,7 @@ export interface InitOutput {
|
|
|
2764
3794
|
readonly wasmchatcompletionrequest_webSearchOptions: (a: number) => any;
|
|
2765
3795
|
readonly wasmchatcompletionresponse_choices: (a: number) => [number, number];
|
|
2766
3796
|
readonly wasmchatcompletionresponse_clearUsage: (a: number) => void;
|
|
3797
|
+
readonly wasmchatcompletionresponse_copyForTransfer: (a: number) => number;
|
|
2767
3798
|
readonly wasmchatcompletionresponse_created: (a: number) => bigint;
|
|
2768
3799
|
readonly wasmchatcompletionresponse_default: () => number;
|
|
2769
3800
|
readonly wasmchatcompletionresponse_id: (a: number) => [number, number];
|
|
@@ -2781,12 +3812,14 @@ export interface InitOutput {
|
|
|
2781
3812
|
readonly wasmchatcompletionresponse_set_usage: (a: number, b: number) => void;
|
|
2782
3813
|
readonly wasmchatcompletionresponse_systemFingerprint: (a: number) => [number, number];
|
|
2783
3814
|
readonly wasmchatcompletionresponse_usage: (a: number) => number;
|
|
3815
|
+
readonly wasmchatcompletiontool_copyForTransfer: (a: number) => number;
|
|
2784
3816
|
readonly wasmchatcompletiontool_default: () => number;
|
|
2785
3817
|
readonly wasmchatcompletiontool_function: (a: number) => number;
|
|
2786
3818
|
readonly wasmchatcompletiontool_new: (a: number, b: number) => number;
|
|
2787
3819
|
readonly wasmchatcompletiontool_set_function: (a: number, b: number) => void;
|
|
2788
3820
|
readonly wasmchatcompletiontool_set_toolType: (a: number, b: number) => void;
|
|
2789
3821
|
readonly wasmchatcompletiontool_toolType: (a: number) => [number, number];
|
|
3822
|
+
readonly wasmchoice_copyForTransfer: (a: number) => number;
|
|
2790
3823
|
readonly wasmchoice_default: () => number;
|
|
2791
3824
|
readonly wasmchoice_finishReason: (a: number) => [number, number];
|
|
2792
3825
|
readonly wasmchoice_index: (a: number) => number;
|
|
@@ -2813,6 +3846,7 @@ export interface InitOutput {
|
|
|
2813
3846
|
readonly wasmcontentpart_text: (a: number) => [number, number];
|
|
2814
3847
|
readonly wasmcontentpart_type: (a: number) => [number, number];
|
|
2815
3848
|
readonly wasmcreatebatchrequest_completionWindow: (a: number) => [number, number];
|
|
3849
|
+
readonly wasmcreatebatchrequest_copyForTransfer: (a: number) => number;
|
|
2816
3850
|
readonly wasmcreatebatchrequest_default: () => number;
|
|
2817
3851
|
readonly wasmcreatebatchrequest_endpoint: (a: number) => [number, number];
|
|
2818
3852
|
readonly wasmcreatebatchrequest_inputFileId: (a: number) => [number, number];
|
|
@@ -2822,6 +3856,7 @@ export interface InitOutput {
|
|
|
2822
3856
|
readonly wasmcreatebatchrequest_set_endpoint: (a: number, b: number, c: number) => void;
|
|
2823
3857
|
readonly wasmcreatebatchrequest_set_inputFileId: (a: number, b: number, c: number) => void;
|
|
2824
3858
|
readonly wasmcreatebatchrequest_set_metadata: (a: number, b: number) => void;
|
|
3859
|
+
readonly wasmcreatefilerequest_copyForTransfer: (a: number) => number;
|
|
2825
3860
|
readonly wasmcreatefilerequest_default: () => number;
|
|
2826
3861
|
readonly wasmcreatefilerequest_file: (a: number) => [number, number];
|
|
2827
3862
|
readonly wasmcreatefilerequest_filename: (a: number) => [number, number];
|
|
@@ -2830,6 +3865,7 @@ export interface InitOutput {
|
|
|
2830
3865
|
readonly wasmcreatefilerequest_set_file: (a: number, b: number, c: number) => void;
|
|
2831
3866
|
readonly wasmcreatefilerequest_set_filename: (a: number, b: number, c: number) => void;
|
|
2832
3867
|
readonly wasmcreatefilerequest_set_purpose: (a: number, b: number) => void;
|
|
3868
|
+
readonly wasmcreateimagerequest_copyForTransfer: (a: number) => number;
|
|
2833
3869
|
readonly wasmcreateimagerequest_default: () => number;
|
|
2834
3870
|
readonly wasmcreateimagerequest_model: (a: number) => [number, number];
|
|
2835
3871
|
readonly wasmcreateimagerequest_n: (a: number) => number;
|
|
@@ -2848,6 +3884,7 @@ export interface InitOutput {
|
|
|
2848
3884
|
readonly wasmcreateimagerequest_size: (a: number) => [number, number];
|
|
2849
3885
|
readonly wasmcreateimagerequest_style: (a: number) => [number, number];
|
|
2850
3886
|
readonly wasmcreateimagerequest_user: (a: number) => [number, number];
|
|
3887
|
+
readonly wasmcreateresponserequest_copyForTransfer: (a: number) => number;
|
|
2851
3888
|
readonly wasmcreateresponserequest_default: () => number;
|
|
2852
3889
|
readonly wasmcreateresponserequest_extraBody: (a: number) => any;
|
|
2853
3890
|
readonly wasmcreateresponserequest_input: (a: number) => any;
|
|
@@ -2868,6 +3905,7 @@ export interface InitOutput {
|
|
|
2868
3905
|
readonly wasmcreateresponserequest_stream: (a: number) => number;
|
|
2869
3906
|
readonly wasmcreateresponserequest_temperature: (a: number) => [number, number];
|
|
2870
3907
|
readonly wasmcreateresponserequest_tools: (a: number) => any;
|
|
3908
|
+
readonly wasmcreatespeechrequest_copyForTransfer: (a: number) => number;
|
|
2871
3909
|
readonly wasmcreatespeechrequest_default: () => number;
|
|
2872
3910
|
readonly wasmcreatespeechrequest_input: (a: number) => [number, number];
|
|
2873
3911
|
readonly wasmcreatespeechrequest_model: (a: number) => [number, number];
|
|
@@ -2880,6 +3918,7 @@ export interface InitOutput {
|
|
|
2880
3918
|
readonly wasmcreatespeechrequest_set_voice: (a: number, b: number, c: number) => void;
|
|
2881
3919
|
readonly wasmcreatespeechrequest_speed: (a: number) => [number, number];
|
|
2882
3920
|
readonly wasmcreatespeechrequest_voice: (a: number) => [number, number];
|
|
3921
|
+
readonly wasmcreatetranscriptionrequest_copyForTransfer: (a: number) => number;
|
|
2883
3922
|
readonly wasmcreatetranscriptionrequest_default: () => number;
|
|
2884
3923
|
readonly wasmcreatetranscriptionrequest_file: (a: number) => [number, number];
|
|
2885
3924
|
readonly wasmcreatetranscriptionrequest_language: (a: number) => [number, number];
|
|
@@ -2896,6 +3935,7 @@ export interface InitOutput {
|
|
|
2896
3935
|
readonly wasmcreatetranscriptionrequest_temperature: (a: number) => [number, number];
|
|
2897
3936
|
readonly wasmcustomproviderconfig_authHeader: (a: number) => any;
|
|
2898
3937
|
readonly wasmcustomproviderconfig_baseUrl: (a: number) => [number, number];
|
|
3938
|
+
readonly wasmcustomproviderconfig_copyForTransfer: (a: number) => number;
|
|
2899
3939
|
readonly wasmcustomproviderconfig_default: () => number;
|
|
2900
3940
|
readonly wasmcustomproviderconfig_modelPrefixes: (a: number) => [number, number];
|
|
2901
3941
|
readonly wasmcustomproviderconfig_name: (a: number) => [number, number];
|
|
@@ -2904,6 +3944,7 @@ export interface InitOutput {
|
|
|
2904
3944
|
readonly wasmcustomproviderconfig_set_baseUrl: (a: number, b: number, c: number) => void;
|
|
2905
3945
|
readonly wasmcustomproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
|
|
2906
3946
|
readonly wasmcustomproviderconfig_set_name: (a: number, b: number, c: number) => void;
|
|
3947
|
+
readonly wasmdecodeddataurl_copyForTransfer: (a: number) => number;
|
|
2907
3948
|
readonly wasmdecodeddataurl_data: (a: number) => [number, number];
|
|
2908
3949
|
readonly wasmdecodeddataurl_default: () => number;
|
|
2909
3950
|
readonly wasmdecodeddataurl_mime: (a: number) => [number, number];
|
|
@@ -2914,6 +3955,7 @@ export interface InitOutput {
|
|
|
2914
3955
|
readonly wasmdefaultclient_cancelResponse: (a: number, b: number, c: number) => any;
|
|
2915
3956
|
readonly wasmdefaultclient_chat: (a: number, b: number) => any;
|
|
2916
3957
|
readonly wasmdefaultclient_chatStream: (a: number, b: number) => any;
|
|
3958
|
+
readonly wasmdefaultclient_copyForTransfer: (a: number) => number;
|
|
2917
3959
|
readonly wasmdefaultclient_createBatch: (a: number, b: number) => any;
|
|
2918
3960
|
readonly wasmdefaultclient_createFile: (a: number, b: number) => any;
|
|
2919
3961
|
readonly wasmdefaultclient_createResponse: (a: number, b: number) => any;
|
|
@@ -2935,6 +3977,7 @@ export interface InitOutput {
|
|
|
2935
3977
|
readonly wasmdefaultclient_speech: (a: number, b: number) => any;
|
|
2936
3978
|
readonly wasmdefaultclient_transcribe: (a: number, b: number) => any;
|
|
2937
3979
|
readonly wasmdefaultclient_waitForBatch: (a: number, b: number, c: number, d: number) => any;
|
|
3980
|
+
readonly wasmdeleteresponse_copyForTransfer: (a: number) => number;
|
|
2938
3981
|
readonly wasmdeleteresponse_default: () => number;
|
|
2939
3982
|
readonly wasmdeleteresponse_deleted: (a: number) => number;
|
|
2940
3983
|
readonly wasmdeleteresponse_id: (a: number) => [number, number];
|
|
@@ -2944,11 +3987,13 @@ export interface InitOutput {
|
|
|
2944
3987
|
readonly wasmdeleteresponse_set_id: (a: number, b: number, c: number) => void;
|
|
2945
3988
|
readonly wasmdeleteresponse_set_object: (a: number, b: number, c: number) => void;
|
|
2946
3989
|
readonly wasmdevelopermessage_content: (a: number) => [number, number];
|
|
3990
|
+
readonly wasmdevelopermessage_copyForTransfer: (a: number) => number;
|
|
2947
3991
|
readonly wasmdevelopermessage_default: () => number;
|
|
2948
3992
|
readonly wasmdevelopermessage_name: (a: number) => [number, number];
|
|
2949
3993
|
readonly wasmdevelopermessage_new: (a: number, b: number, c: number, d: number) => number;
|
|
2950
3994
|
readonly wasmdevelopermessage_set_content: (a: number, b: number, c: number) => void;
|
|
2951
3995
|
readonly wasmdevelopermessage_set_name: (a: number, b: number, c: number) => void;
|
|
3996
|
+
readonly wasmdocumentcontent_copyForTransfer: (a: number) => number;
|
|
2952
3997
|
readonly wasmdocumentcontent_data: (a: number) => [number, number];
|
|
2953
3998
|
readonly wasmdocumentcontent_default: () => number;
|
|
2954
3999
|
readonly wasmdocumentcontent_mediaType: (a: number) => [number, number];
|
|
@@ -2966,6 +4011,7 @@ export interface InitOutput {
|
|
|
2966
4011
|
readonly wasmembeddingcontentpart_set_type: (a: number, b: number, c: number) => void;
|
|
2967
4012
|
readonly wasmembeddingcontentpart_text: (a: number) => [number, number];
|
|
2968
4013
|
readonly wasmembeddingcontentpart_type: (a: number) => [number, number];
|
|
4014
|
+
readonly wasmembeddingobject_copyForTransfer: (a: number) => number;
|
|
2969
4015
|
readonly wasmembeddingobject_default: () => number;
|
|
2970
4016
|
readonly wasmembeddingobject_embedding: (a: number) => [number, number];
|
|
2971
4017
|
readonly wasmembeddingobject_index: (a: number) => number;
|
|
@@ -2974,6 +4020,7 @@ export interface InitOutput {
|
|
|
2974
4020
|
readonly wasmembeddingobject_set_embedding: (a: number, b: number, c: number) => void;
|
|
2975
4021
|
readonly wasmembeddingobject_set_index: (a: number, b: number) => void;
|
|
2976
4022
|
readonly wasmembeddingobject_set_object: (a: number, b: number, c: number) => void;
|
|
4023
|
+
readonly wasmembeddingrequest_copyForTransfer: (a: number) => number;
|
|
2977
4024
|
readonly wasmembeddingrequest_default: () => number;
|
|
2978
4025
|
readonly wasmembeddingrequest_dimensions: (a: number) => number;
|
|
2979
4026
|
readonly wasmembeddingrequest_encodingFormat: (a: number) => [number, number];
|
|
@@ -2987,6 +4034,7 @@ export interface InitOutput {
|
|
|
2987
4034
|
readonly wasmembeddingrequest_set_user: (a: number, b: number, c: number) => void;
|
|
2988
4035
|
readonly wasmembeddingrequest_user: (a: number) => [number, number];
|
|
2989
4036
|
readonly wasmembeddingresponse_clearUsage: (a: number) => void;
|
|
4037
|
+
readonly wasmembeddingresponse_copyForTransfer: (a: number) => number;
|
|
2990
4038
|
readonly wasmembeddingresponse_data: (a: number) => [number, number];
|
|
2991
4039
|
readonly wasmembeddingresponse_default: () => number;
|
|
2992
4040
|
readonly wasmembeddingresponse_model: (a: number) => [number, number];
|
|
@@ -2998,6 +4046,7 @@ export interface InitOutput {
|
|
|
2998
4046
|
readonly wasmembeddingresponse_set_usage: (a: number, b: number) => void;
|
|
2999
4047
|
readonly wasmembeddingresponse_usage: (a: number) => number;
|
|
3000
4048
|
readonly wasmfilelistquery_after: (a: number) => [number, number];
|
|
4049
|
+
readonly wasmfilelistquery_copyForTransfer: (a: number) => number;
|
|
3001
4050
|
readonly wasmfilelistquery_default: () => number;
|
|
3002
4051
|
readonly wasmfilelistquery_limit: (a: number) => number;
|
|
3003
4052
|
readonly wasmfilelistquery_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -3005,6 +4054,7 @@ export interface InitOutput {
|
|
|
3005
4054
|
readonly wasmfilelistquery_set_after: (a: number, b: number, c: number) => void;
|
|
3006
4055
|
readonly wasmfilelistquery_set_limit: (a: number, b: number) => void;
|
|
3007
4056
|
readonly wasmfilelistquery_set_purpose: (a: number, b: number, c: number) => void;
|
|
4057
|
+
readonly wasmfilelistresponse_copyForTransfer: (a: number) => number;
|
|
3008
4058
|
readonly wasmfilelistresponse_data: (a: number) => [number, number];
|
|
3009
4059
|
readonly wasmfilelistresponse_default: () => number;
|
|
3010
4060
|
readonly wasmfilelistresponse_hasMore: (a: number) => number;
|
|
@@ -3014,6 +4064,7 @@ export interface InitOutput {
|
|
|
3014
4064
|
readonly wasmfilelistresponse_set_hasMore: (a: number, b: number) => void;
|
|
3015
4065
|
readonly wasmfilelistresponse_set_object: (a: number, b: number, c: number) => void;
|
|
3016
4066
|
readonly wasmfileobject_bytes: (a: number) => bigint;
|
|
4067
|
+
readonly wasmfileobject_copyForTransfer: (a: number) => number;
|
|
3017
4068
|
readonly wasmfileobject_createdAt: (a: number) => bigint;
|
|
3018
4069
|
readonly wasmfileobject_default: () => number;
|
|
3019
4070
|
readonly wasmfileobject_filename: (a: number) => [number, number];
|
|
@@ -3030,11 +4081,13 @@ export interface InitOutput {
|
|
|
3030
4081
|
readonly wasmfileobject_set_status: (a: number, b: number, c: number) => void;
|
|
3031
4082
|
readonly wasmfileobject_status: (a: number) => [number, number];
|
|
3032
4083
|
readonly wasmfunctioncall_arguments: (a: number) => [number, number];
|
|
4084
|
+
readonly wasmfunctioncall_copyForTransfer: (a: number) => number;
|
|
3033
4085
|
readonly wasmfunctioncall_default: () => number;
|
|
3034
4086
|
readonly wasmfunctioncall_name: (a: number) => [number, number];
|
|
3035
4087
|
readonly wasmfunctioncall_new: (a: number, b: number, c: number, d: number) => number;
|
|
3036
4088
|
readonly wasmfunctioncall_set_arguments: (a: number, b: number, c: number) => void;
|
|
3037
4089
|
readonly wasmfunctioncall_set_name: (a: number, b: number, c: number) => void;
|
|
4090
|
+
readonly wasmfunctiondefinition_copyForTransfer: (a: number) => number;
|
|
3038
4091
|
readonly wasmfunctiondefinition_default: () => number;
|
|
3039
4092
|
readonly wasmfunctiondefinition_description: (a: number) => [number, number];
|
|
3040
4093
|
readonly wasmfunctiondefinition_name: (a: number) => [number, number];
|
|
@@ -3046,12 +4099,14 @@ export interface InitOutput {
|
|
|
3046
4099
|
readonly wasmfunctiondefinition_set_strict: (a: number, b: number) => void;
|
|
3047
4100
|
readonly wasmfunctiondefinition_strict: (a: number) => number;
|
|
3048
4101
|
readonly wasmfunctionmessage_content: (a: number) => [number, number];
|
|
4102
|
+
readonly wasmfunctionmessage_copyForTransfer: (a: number) => number;
|
|
3049
4103
|
readonly wasmfunctionmessage_default: () => number;
|
|
3050
4104
|
readonly wasmfunctionmessage_name: (a: number) => [number, number];
|
|
3051
4105
|
readonly wasmfunctionmessage_new: (a: number, b: number, c: number, d: number) => number;
|
|
3052
4106
|
readonly wasmfunctionmessage_set_content: (a: number, b: number, c: number) => void;
|
|
3053
4107
|
readonly wasmfunctionmessage_set_name: (a: number, b: number, c: number) => void;
|
|
3054
4108
|
readonly wasmimage_b64Json: (a: number) => [number, number];
|
|
4109
|
+
readonly wasmimage_copyForTransfer: (a: number) => number;
|
|
3055
4110
|
readonly wasmimage_default: () => number;
|
|
3056
4111
|
readonly wasmimage_new: (a: number, b: number, c: number, d: number, e: number, f: number) => number;
|
|
3057
4112
|
readonly wasmimage_revisedPrompt: (a: number) => [number, number];
|
|
@@ -3059,18 +4114,21 @@ export interface InitOutput {
|
|
|
3059
4114
|
readonly wasmimage_set_revisedPrompt: (a: number, b: number, c: number) => void;
|
|
3060
4115
|
readonly wasmimage_set_url: (a: number, b: number, c: number) => void;
|
|
3061
4116
|
readonly wasmimage_url: (a: number) => [number, number];
|
|
4117
|
+
readonly wasmimagesresponse_copyForTransfer: (a: number) => number;
|
|
3062
4118
|
readonly wasmimagesresponse_created: (a: number) => bigint;
|
|
3063
4119
|
readonly wasmimagesresponse_data: (a: number) => [number, number];
|
|
3064
4120
|
readonly wasmimagesresponse_default: () => number;
|
|
3065
4121
|
readonly wasmimagesresponse_new: (a: number, b: bigint, c: number, d: number) => number;
|
|
3066
4122
|
readonly wasmimagesresponse_set_created: (a: number, b: bigint) => void;
|
|
3067
4123
|
readonly wasmimagesresponse_set_data: (a: number, b: number, c: number) => void;
|
|
4124
|
+
readonly wasmimageurl_copyForTransfer: (a: number) => number;
|
|
3068
4125
|
readonly wasmimageurl_default: () => number;
|
|
3069
4126
|
readonly wasmimageurl_detail: (a: number) => [number, number];
|
|
3070
4127
|
readonly wasmimageurl_new: (a: number, b: number, c: number) => number;
|
|
3071
4128
|
readonly wasmimageurl_set_detail: (a: number, b: number) => void;
|
|
3072
4129
|
readonly wasmimageurl_set_url: (a: number, b: number, c: number) => void;
|
|
3073
4130
|
readonly wasmimageurl_url: (a: number) => [number, number];
|
|
4131
|
+
readonly wasmjsonschemaformat_copyForTransfer: (a: number) => number;
|
|
3074
4132
|
readonly wasmjsonschemaformat_default: () => number;
|
|
3075
4133
|
readonly wasmjsonschemaformat_description: (a: number) => [number, number];
|
|
3076
4134
|
readonly wasmjsonschemaformat_name: (a: number) => [number, number];
|
|
@@ -3083,7 +4141,9 @@ export interface InitOutput {
|
|
|
3083
4141
|
readonly wasmjsonschemaformat_strict: (a: number) => number;
|
|
3084
4142
|
readonly wasmliterllmerror_errorType: (a: number) => [number, number];
|
|
3085
4143
|
readonly wasmliterllmerror_isTransient: (a: number) => number;
|
|
4144
|
+
readonly wasmliterllmerror_retryAfter: (a: number) => [number, bigint];
|
|
3086
4145
|
readonly wasmliterllmerror_statusCode: (a: number) => number;
|
|
4146
|
+
readonly wasmllmbudgetconfig_copyForTransfer: (a: number) => number;
|
|
3087
4147
|
readonly wasmllmbudgetconfig_default: () => number;
|
|
3088
4148
|
readonly wasmllmbudgetconfig_enforcement: (a: number) => [number, number];
|
|
3089
4149
|
readonly wasmllmbudgetconfig_globalLimit: (a: number) => [number, number];
|
|
@@ -3094,6 +4154,7 @@ export interface InitOutput {
|
|
|
3094
4154
|
readonly wasmllmbudgetconfig_set_modelLimits: (a: number, b: number) => void;
|
|
3095
4155
|
readonly wasmllmcacheconfig_backend: (a: number) => [number, number];
|
|
3096
4156
|
readonly wasmllmcacheconfig_backendConfig: (a: number) => any;
|
|
4157
|
+
readonly wasmllmcacheconfig_copyForTransfer: (a: number) => number;
|
|
3097
4158
|
readonly wasmllmcacheconfig_default: () => number;
|
|
3098
4159
|
readonly wasmllmcacheconfig_maxEntries: (a: number) => number;
|
|
3099
4160
|
readonly wasmllmcacheconfig_new: (a: number, b: number, c: bigint, d: number, e: number, f: number) => number;
|
|
@@ -3113,6 +4174,7 @@ export interface InitOutput {
|
|
|
3113
4174
|
readonly wasmllmconfig_clearInFlightLimit: (a: number) => void;
|
|
3114
4175
|
readonly wasmllmconfig_clearRateLimit: (a: number) => void;
|
|
3115
4176
|
readonly wasmllmconfig_cooldownSecs: (a: number) => [number, bigint];
|
|
4177
|
+
readonly wasmllmconfig_copyForTransfer: (a: number) => number;
|
|
3116
4178
|
readonly wasmllmconfig_costTracking: (a: number) => number;
|
|
3117
4179
|
readonly wasmllmconfig_default: () => number;
|
|
3118
4180
|
readonly wasmllmconfig_headers: (a: number) => any;
|
|
@@ -3147,12 +4209,14 @@ export interface InitOutput {
|
|
|
3147
4209
|
readonly wasmllmconfig_temperature: (a: number) => [number, number];
|
|
3148
4210
|
readonly wasmllmconfig_timeoutSecs: (a: number) => [number, bigint];
|
|
3149
4211
|
readonly wasmllmconfig_tracing: (a: number) => number;
|
|
4212
|
+
readonly wasmllminflightlimitconfig_copyForTransfer: (a: number) => number;
|
|
3150
4213
|
readonly wasmllminflightlimitconfig_default: () => number;
|
|
3151
4214
|
readonly wasmllminflightlimitconfig_maxInFlight: (a: number) => number;
|
|
3152
4215
|
readonly wasmllminflightlimitconfig_new: (a: number) => number;
|
|
3153
4216
|
readonly wasmllminflightlimitconfig_set_maxInFlight: (a: number, b: number) => void;
|
|
3154
4217
|
readonly wasmllmproviderconfig_authHeader: (a: number) => [number, number];
|
|
3155
4218
|
readonly wasmllmproviderconfig_baseUrl: (a: number) => [number, number];
|
|
4219
|
+
readonly wasmllmproviderconfig_copyForTransfer: (a: number) => number;
|
|
3156
4220
|
readonly wasmllmproviderconfig_default: () => number;
|
|
3157
4221
|
readonly wasmllmproviderconfig_modelPrefixes: (a: number) => [number, number];
|
|
3158
4222
|
readonly wasmllmproviderconfig_name: (a: number) => [number, number];
|
|
@@ -3161,6 +4225,7 @@ export interface InitOutput {
|
|
|
3161
4225
|
readonly wasmllmproviderconfig_set_baseUrl: (a: number, b: number, c: number) => void;
|
|
3162
4226
|
readonly wasmllmproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
|
|
3163
4227
|
readonly wasmllmproviderconfig_set_name: (a: number, b: number, c: number) => void;
|
|
4228
|
+
readonly wasmllmratelimitconfig_copyForTransfer: (a: number) => number;
|
|
3164
4229
|
readonly wasmllmratelimitconfig_default: () => number;
|
|
3165
4230
|
readonly wasmllmratelimitconfig_new: (a: number, b: number, c: bigint, d: number, e: bigint) => number;
|
|
3166
4231
|
readonly wasmllmratelimitconfig_rpm: (a: number) => number;
|
|
@@ -3171,6 +4236,7 @@ export interface InitOutput {
|
|
|
3171
4236
|
readonly wasmllmratelimitconfig_windowSeconds: (a: number) => [number, bigint];
|
|
3172
4237
|
readonly wasmmodelinfo_cacheCreationInputTokenCost: (a: number) => [number, number];
|
|
3173
4238
|
readonly wasmmodelinfo_cacheReadInputTokenCost: (a: number) => [number, number];
|
|
4239
|
+
readonly wasmmodelinfo_copyForTransfer: (a: number) => number;
|
|
3174
4240
|
readonly wasmmodelinfo_default: () => number;
|
|
3175
4241
|
readonly wasmmodelinfo_inputCostPerAudioToken: (a: number) => [number, number];
|
|
3176
4242
|
readonly wasmmodelinfo_inputCostPerToken: (a: number) => number;
|
|
@@ -3209,6 +4275,7 @@ export interface InitOutput {
|
|
|
3209
4275
|
readonly wasmmodelinfo_supportsStructuredOutput: (a: number) => number;
|
|
3210
4276
|
readonly wasmmodelinfo_supportsVision: (a: number) => number;
|
|
3211
4277
|
readonly wasmmodelinfo_tiers: (a: number) => [number, number];
|
|
4278
|
+
readonly wasmmodelobject_copyForTransfer: (a: number) => number;
|
|
3212
4279
|
readonly wasmmodelobject_created: (a: number) => bigint;
|
|
3213
4280
|
readonly wasmmodelobject_default: () => number;
|
|
3214
4281
|
readonly wasmmodelobject_id: (a: number) => [number, number];
|
|
@@ -3219,6 +4286,7 @@ export interface InitOutput {
|
|
|
3219
4286
|
readonly wasmmodelobject_set_id: (a: number, b: number, c: number) => void;
|
|
3220
4287
|
readonly wasmmodelobject_set_object: (a: number, b: number, c: number) => void;
|
|
3221
4288
|
readonly wasmmodelobject_set_ownedBy: (a: number, b: number, c: number) => void;
|
|
4289
|
+
readonly wasmmodelslistresponse_copyForTransfer: (a: number) => number;
|
|
3222
4290
|
readonly wasmmodelslistresponse_data: (a: number) => [number, number];
|
|
3223
4291
|
readonly wasmmodelslistresponse_default: () => number;
|
|
3224
4292
|
readonly wasmmodelslistresponse_new: (a: number, b: number, c: number, d: number) => number;
|
|
@@ -3227,6 +4295,7 @@ export interface InitOutput {
|
|
|
3227
4295
|
readonly wasmmodelslistresponse_set_object: (a: number, b: number, c: number) => void;
|
|
3228
4296
|
readonly wasmmodeltier_cacheCreationInputTokenCost: (a: number) => [number, number];
|
|
3229
4297
|
readonly wasmmodeltier_cacheReadInputTokenCost: (a: number) => [number, number];
|
|
4298
|
+
readonly wasmmodeltier_copyForTransfer: (a: number) => number;
|
|
3230
4299
|
readonly wasmmodeltier_default: () => number;
|
|
3231
4300
|
readonly wasmmodeltier_inputCostPerAudioToken: (a: number) => [number, number];
|
|
3232
4301
|
readonly wasmmodeltier_inputCostPerToken: (a: number) => number;
|
|
@@ -3243,6 +4312,7 @@ export interface InitOutput {
|
|
|
3243
4312
|
readonly wasmmodeltier_set_outputCostPerAudioToken: (a: number, b: number, c: number) => void;
|
|
3244
4313
|
readonly wasmmodeltier_set_outputCostPerReasoningToken: (a: number, b: number, c: number) => void;
|
|
3245
4314
|
readonly wasmmodeltier_set_outputCostPerToken: (a: number, b: number) => void;
|
|
4315
|
+
readonly wasmmoderationcategories_copyForTransfer: (a: number) => number;
|
|
3246
4316
|
readonly wasmmoderationcategories_default: () => number;
|
|
3247
4317
|
readonly wasmmoderationcategories_harassment: (a: number) => number;
|
|
3248
4318
|
readonly wasmmoderationcategories_harassmentThreatening: (a: number) => number;
|
|
@@ -3267,6 +4337,7 @@ export interface InitOutput {
|
|
|
3267
4337
|
readonly wasmmoderationcategories_sexualMinors: (a: number) => number;
|
|
3268
4338
|
readonly wasmmoderationcategories_violence: (a: number) => number;
|
|
3269
4339
|
readonly wasmmoderationcategories_violenceGraphic: (a: number) => number;
|
|
4340
|
+
readonly wasmmoderationcategoryscores_copyForTransfer: (a: number) => number;
|
|
3270
4341
|
readonly wasmmoderationcategoryscores_default: () => number;
|
|
3271
4342
|
readonly wasmmoderationcategoryscores_harassment: (a: number) => number;
|
|
3272
4343
|
readonly wasmmoderationcategoryscores_harassmentThreatening: (a: number) => number;
|
|
@@ -3291,12 +4362,14 @@ export interface InitOutput {
|
|
|
3291
4362
|
readonly wasmmoderationcategoryscores_sexualMinors: (a: number) => number;
|
|
3292
4363
|
readonly wasmmoderationcategoryscores_violence: (a: number) => number;
|
|
3293
4364
|
readonly wasmmoderationcategoryscores_violenceGraphic: (a: number) => number;
|
|
4365
|
+
readonly wasmmoderationrequest_copyForTransfer: (a: number) => number;
|
|
3294
4366
|
readonly wasmmoderationrequest_default: () => number;
|
|
3295
4367
|
readonly wasmmoderationrequest_input: (a: number) => any;
|
|
3296
4368
|
readonly wasmmoderationrequest_model: (a: number) => [number, number];
|
|
3297
4369
|
readonly wasmmoderationrequest_new: (a: number, b: number, c: number) => number;
|
|
3298
4370
|
readonly wasmmoderationrequest_set_input: (a: number, b: any) => void;
|
|
3299
4371
|
readonly wasmmoderationrequest_set_model: (a: number, b: number, c: number) => void;
|
|
4372
|
+
readonly wasmmoderationresponse_copyForTransfer: (a: number) => number;
|
|
3300
4373
|
readonly wasmmoderationresponse_default: () => number;
|
|
3301
4374
|
readonly wasmmoderationresponse_id: (a: number) => [number, number];
|
|
3302
4375
|
readonly wasmmoderationresponse_model: (a: number) => [number, number];
|
|
@@ -3307,6 +4380,7 @@ export interface InitOutput {
|
|
|
3307
4380
|
readonly wasmmoderationresponse_set_results: (a: number, b: number, c: number) => void;
|
|
3308
4381
|
readonly wasmmoderationresult_categories: (a: number) => number;
|
|
3309
4382
|
readonly wasmmoderationresult_categoryScores: (a: number) => number;
|
|
4383
|
+
readonly wasmmoderationresult_copyForTransfer: (a: number) => number;
|
|
3310
4384
|
readonly wasmmoderationresult_default: () => number;
|
|
3311
4385
|
readonly wasmmoderationresult_flagged: (a: number) => number;
|
|
3312
4386
|
readonly wasmmoderationresult_new: (a: number, b: number, c: number) => number;
|
|
@@ -3323,6 +4397,7 @@ export interface InitOutput {
|
|
|
3323
4397
|
readonly wasmocrdocument_set_url: (a: number, b: number, c: number) => void;
|
|
3324
4398
|
readonly wasmocrdocument_type: (a: number) => [number, number];
|
|
3325
4399
|
readonly wasmocrdocument_url: (a: number) => [number, number];
|
|
4400
|
+
readonly wasmocrimage_copyForTransfer: (a: number) => number;
|
|
3326
4401
|
readonly wasmocrimage_default: () => number;
|
|
3327
4402
|
readonly wasmocrimage_id: (a: number) => [number, number];
|
|
3328
4403
|
readonly wasmocrimage_imageBase64: (a: number) => [number, number];
|
|
@@ -3330,6 +4405,7 @@ export interface InitOutput {
|
|
|
3330
4405
|
readonly wasmocrimage_set_id: (a: number, b: number, c: number) => void;
|
|
3331
4406
|
readonly wasmocrimage_set_imageBase64: (a: number, b: number, c: number) => void;
|
|
3332
4407
|
readonly wasmocrpage_clearDimensions: (a: number) => void;
|
|
4408
|
+
readonly wasmocrpage_copyForTransfer: (a: number) => number;
|
|
3333
4409
|
readonly wasmocrpage_default: () => number;
|
|
3334
4410
|
readonly wasmocrpage_dimensions: (a: number) => number;
|
|
3335
4411
|
readonly wasmocrpage_images: (a: number) => any;
|
|
@@ -3340,6 +4416,7 @@ export interface InitOutput {
|
|
|
3340
4416
|
readonly wasmocrpage_set_images: (a: number, b: number, c: number) => void;
|
|
3341
4417
|
readonly wasmocrpage_set_index: (a: number, b: number) => void;
|
|
3342
4418
|
readonly wasmocrpage_set_markdown: (a: number, b: number, c: number) => void;
|
|
4419
|
+
readonly wasmocrrequest_copyForTransfer: (a: number) => number;
|
|
3343
4420
|
readonly wasmocrrequest_default: () => number;
|
|
3344
4421
|
readonly wasmocrrequest_document: (a: number) => any;
|
|
3345
4422
|
readonly wasmocrrequest_includeImageBase64: (a: number) => number;
|
|
@@ -3351,6 +4428,7 @@ export interface InitOutput {
|
|
|
3351
4428
|
readonly wasmocrrequest_set_model: (a: number, b: number, c: number) => void;
|
|
3352
4429
|
readonly wasmocrrequest_set_pages: (a: number, b: number, c: number) => void;
|
|
3353
4430
|
readonly wasmocrresponse_clearUsage: (a: number) => void;
|
|
4431
|
+
readonly wasmocrresponse_copyForTransfer: (a: number) => number;
|
|
3354
4432
|
readonly wasmocrresponse_default: () => number;
|
|
3355
4433
|
readonly wasmocrresponse_model: (a: number) => [number, number];
|
|
3356
4434
|
readonly wasmocrresponse_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -3359,6 +4437,7 @@ export interface InitOutput {
|
|
|
3359
4437
|
readonly wasmocrresponse_set_pages: (a: number, b: number, c: number) => void;
|
|
3360
4438
|
readonly wasmocrresponse_set_usage: (a: number, b: number) => void;
|
|
3361
4439
|
readonly wasmocrresponse_usage: (a: number) => number;
|
|
4440
|
+
readonly wasmpagedimensions_copyForTransfer: (a: number) => number;
|
|
3362
4441
|
readonly wasmpagedimensions_default: () => number;
|
|
3363
4442
|
readonly wasmpagedimensions_height: (a: number) => number;
|
|
3364
4443
|
readonly wasmpagedimensions_new: (a: number, b: number) => number;
|
|
@@ -3367,12 +4446,14 @@ export interface InitOutput {
|
|
|
3367
4446
|
readonly wasmpagedimensions_width: (a: number) => number;
|
|
3368
4447
|
readonly wasmprompttokensdetails_audioTokens: (a: number) => bigint;
|
|
3369
4448
|
readonly wasmprompttokensdetails_cachedTokens: (a: number) => bigint;
|
|
4449
|
+
readonly wasmprompttokensdetails_copyForTransfer: (a: number) => number;
|
|
3370
4450
|
readonly wasmprompttokensdetails_default: () => number;
|
|
3371
4451
|
readonly wasmprompttokensdetails_new: (a: number, b: bigint, c: number, d: bigint) => number;
|
|
3372
4452
|
readonly wasmprompttokensdetails_set_audioTokens: (a: number, b: bigint) => void;
|
|
3373
4453
|
readonly wasmprompttokensdetails_set_cachedTokens: (a: number, b: bigint) => void;
|
|
3374
4454
|
readonly wasmprovidercapabilities_audioIn: (a: number) => number;
|
|
3375
4455
|
readonly wasmprovidercapabilities_audioOut: (a: number) => number;
|
|
4456
|
+
readonly wasmprovidercapabilities_copyForTransfer: (a: number) => number;
|
|
3376
4457
|
readonly wasmprovidercapabilities_default: () => number;
|
|
3377
4458
|
readonly wasmprovidercapabilities_functionCalling: (a: number) => number;
|
|
3378
4459
|
readonly wasmprovidercapabilities_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => number;
|
|
@@ -3390,6 +4471,7 @@ export interface InitOutput {
|
|
|
3390
4471
|
readonly wasmproviderconfig_auth: (a: number) => number;
|
|
3391
4472
|
readonly wasmproviderconfig_baseUrl: (a: number) => [number, number];
|
|
3392
4473
|
readonly wasmproviderconfig_clearAuth: (a: number) => void;
|
|
4474
|
+
readonly wasmproviderconfig_copyForTransfer: (a: number) => number;
|
|
3393
4475
|
readonly wasmproviderconfig_default: () => number;
|
|
3394
4476
|
readonly wasmproviderconfig_displayName: (a: number) => [number, number];
|
|
3395
4477
|
readonly wasmproviderconfig_endpoints: (a: number) => [number, number];
|
|
@@ -3404,6 +4486,7 @@ export interface InitOutput {
|
|
|
3404
4486
|
readonly wasmproviderconfig_set_modelPrefixes: (a: number, b: number, c: number) => void;
|
|
3405
4487
|
readonly wasmproviderconfig_set_name: (a: number, b: number, c: number) => void;
|
|
3406
4488
|
readonly wasmproviderconfig_set_paramMappings: (a: number, b: number) => void;
|
|
4489
|
+
readonly wasmrerankrequest_copyForTransfer: (a: number) => number;
|
|
3407
4490
|
readonly wasmrerankrequest_default: () => number;
|
|
3408
4491
|
readonly wasmrerankrequest_documents: (a: number) => any;
|
|
3409
4492
|
readonly wasmrerankrequest_model: (a: number) => [number, number];
|
|
@@ -3416,6 +4499,7 @@ export interface InitOutput {
|
|
|
3416
4499
|
readonly wasmrerankrequest_set_returnDocuments: (a: number, b: number) => void;
|
|
3417
4500
|
readonly wasmrerankrequest_set_topN: (a: number, b: number) => void;
|
|
3418
4501
|
readonly wasmrerankrequest_topN: (a: number) => number;
|
|
4502
|
+
readonly wasmrerankresponse_copyForTransfer: (a: number) => number;
|
|
3419
4503
|
readonly wasmrerankresponse_default: () => number;
|
|
3420
4504
|
readonly wasmrerankresponse_id: (a: number) => [number, number];
|
|
3421
4505
|
readonly wasmrerankresponse_meta: (a: number) => any;
|
|
@@ -3425,6 +4509,7 @@ export interface InitOutput {
|
|
|
3425
4509
|
readonly wasmrerankresponse_set_meta: (a: number, b: number) => void;
|
|
3426
4510
|
readonly wasmrerankresponse_set_results: (a: number, b: number, c: number) => void;
|
|
3427
4511
|
readonly wasmrerankresult_clearDocument: (a: number) => void;
|
|
4512
|
+
readonly wasmrerankresult_copyForTransfer: (a: number) => number;
|
|
3428
4513
|
readonly wasmrerankresult_default: () => number;
|
|
3429
4514
|
readonly wasmrerankresult_document: (a: number) => number;
|
|
3430
4515
|
readonly wasmrerankresult_index: (a: number) => number;
|
|
@@ -3433,6 +4518,7 @@ export interface InitOutput {
|
|
|
3433
4518
|
readonly wasmrerankresult_set_document: (a: number, b: number) => void;
|
|
3434
4519
|
readonly wasmrerankresult_set_index: (a: number, b: number) => void;
|
|
3435
4520
|
readonly wasmrerankresult_set_relevanceScore: (a: number, b: number) => void;
|
|
4521
|
+
readonly wasmrerankresultdocument_copyForTransfer: (a: number) => number;
|
|
3436
4522
|
readonly wasmrerankresultdocument_default: () => number;
|
|
3437
4523
|
readonly wasmrerankresultdocument_new: (a: number, b: number) => number;
|
|
3438
4524
|
readonly wasmrerankresultdocument_set_text: (a: number, b: number, c: number) => void;
|
|
@@ -3445,6 +4531,7 @@ export interface InitOutput {
|
|
|
3445
4531
|
readonly wasmresponseformat_set_type: (a: number, b: number, c: number) => void;
|
|
3446
4532
|
readonly wasmresponseformat_type: (a: number) => [number, number];
|
|
3447
4533
|
readonly wasmresponseobject_clearUsage: (a: number) => void;
|
|
4534
|
+
readonly wasmresponseobject_copyForTransfer: (a: number) => number;
|
|
3448
4535
|
readonly wasmresponseobject_createdAt: (a: number) => bigint;
|
|
3449
4536
|
readonly wasmresponseobject_default: () => number;
|
|
3450
4537
|
readonly wasmresponseobject_error: (a: number) => any;
|
|
@@ -3464,17 +4551,20 @@ export interface InitOutput {
|
|
|
3464
4551
|
readonly wasmresponseobject_status: (a: number) => [number, number];
|
|
3465
4552
|
readonly wasmresponseobject_usage: (a: number) => number;
|
|
3466
4553
|
readonly wasmresponseoutputitem_content: (a: number) => any;
|
|
4554
|
+
readonly wasmresponseoutputitem_copyForTransfer: (a: number) => number;
|
|
3467
4555
|
readonly wasmresponseoutputitem_default: () => number;
|
|
3468
4556
|
readonly wasmresponseoutputitem_itemType: (a: number) => [number, number];
|
|
3469
4557
|
readonly wasmresponseoutputitem_new: (a: number, b: number, c: number) => number;
|
|
3470
4558
|
readonly wasmresponseoutputitem_set_content: (a: number, b: any) => void;
|
|
3471
4559
|
readonly wasmresponseoutputitem_set_itemType: (a: number, b: number, c: number) => void;
|
|
3472
4560
|
readonly wasmresponsetool_config: (a: number) => any;
|
|
4561
|
+
readonly wasmresponsetool_copyForTransfer: (a: number) => number;
|
|
3473
4562
|
readonly wasmresponsetool_default: () => number;
|
|
3474
4563
|
readonly wasmresponsetool_new: (a: number, b: number, c: number) => number;
|
|
3475
4564
|
readonly wasmresponsetool_set_config: (a: number, b: any) => void;
|
|
3476
4565
|
readonly wasmresponsetool_set_toolType: (a: number, b: number, c: number) => void;
|
|
3477
4566
|
readonly wasmresponsetool_toolType: (a: number) => [number, number];
|
|
4567
|
+
readonly wasmresponseusage_copyForTransfer: (a: number) => number;
|
|
3478
4568
|
readonly wasmresponseusage_default: () => number;
|
|
3479
4569
|
readonly wasmresponseusage_inputTokens: (a: number) => bigint;
|
|
3480
4570
|
readonly wasmresponseusage_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint) => number;
|
|
@@ -3483,6 +4573,7 @@ export interface InitOutput {
|
|
|
3483
4573
|
readonly wasmresponseusage_set_outputTokens: (a: number, b: bigint) => void;
|
|
3484
4574
|
readonly wasmresponseusage_set_totalTokens: (a: number, b: bigint) => void;
|
|
3485
4575
|
readonly wasmresponseusage_totalTokens: (a: number) => bigint;
|
|
4576
|
+
readonly wasmsearchrequest_copyForTransfer: (a: number) => number;
|
|
3486
4577
|
readonly wasmsearchrequest_country: (a: number) => [number, number];
|
|
3487
4578
|
readonly wasmsearchrequest_default: () => number;
|
|
3488
4579
|
readonly wasmsearchrequest_maxResults: (a: number) => number;
|
|
@@ -3495,12 +4586,14 @@ export interface InitOutput {
|
|
|
3495
4586
|
readonly wasmsearchrequest_set_model: (a: number, b: number, c: number) => void;
|
|
3496
4587
|
readonly wasmsearchrequest_set_query: (a: number, b: number, c: number) => void;
|
|
3497
4588
|
readonly wasmsearchrequest_set_searchDomainFilter: (a: number, b: number, c: number) => void;
|
|
4589
|
+
readonly wasmsearchresponse_copyForTransfer: (a: number) => number;
|
|
3498
4590
|
readonly wasmsearchresponse_default: () => number;
|
|
3499
4591
|
readonly wasmsearchresponse_model: (a: number) => [number, number];
|
|
3500
4592
|
readonly wasmsearchresponse_new: (a: number, b: number, c: number, d: number) => number;
|
|
3501
4593
|
readonly wasmsearchresponse_results: (a: number) => [number, number];
|
|
3502
4594
|
readonly wasmsearchresponse_set_model: (a: number, b: number, c: number) => void;
|
|
3503
4595
|
readonly wasmsearchresponse_set_results: (a: number, b: number, c: number) => void;
|
|
4596
|
+
readonly wasmsearchresult_copyForTransfer: (a: number) => number;
|
|
3504
4597
|
readonly wasmsearchresult_date: (a: number) => [number, number];
|
|
3505
4598
|
readonly wasmsearchresult_default: () => number;
|
|
3506
4599
|
readonly wasmsearchresult_new: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => number;
|
|
@@ -3511,16 +4604,19 @@ export interface InitOutput {
|
|
|
3511
4604
|
readonly wasmsearchresult_snippet: (a: number) => [number, number];
|
|
3512
4605
|
readonly wasmsearchresult_title: (a: number) => [number, number];
|
|
3513
4606
|
readonly wasmsearchresult_url: (a: number) => [number, number];
|
|
4607
|
+
readonly wasmspecificfunction_copyForTransfer: (a: number) => number;
|
|
3514
4608
|
readonly wasmspecificfunction_default: () => number;
|
|
3515
4609
|
readonly wasmspecificfunction_name: (a: number) => [number, number];
|
|
3516
4610
|
readonly wasmspecificfunction_new: (a: number, b: number) => number;
|
|
3517
4611
|
readonly wasmspecificfunction_set_name: (a: number, b: number, c: number) => void;
|
|
3518
4612
|
readonly wasmspecifictoolchoice_choiceType: (a: number) => [number, number];
|
|
4613
|
+
readonly wasmspecifictoolchoice_copyForTransfer: (a: number) => number;
|
|
3519
4614
|
readonly wasmspecifictoolchoice_default: () => number;
|
|
3520
4615
|
readonly wasmspecifictoolchoice_function: (a: number) => number;
|
|
3521
4616
|
readonly wasmspecifictoolchoice_new: (a: number, b: number) => number;
|
|
3522
4617
|
readonly wasmspecifictoolchoice_set_choiceType: (a: number, b: number) => void;
|
|
3523
4618
|
readonly wasmspecifictoolchoice_set_function: (a: number, b: number) => void;
|
|
4619
|
+
readonly wasmstreamchoice_copyForTransfer: (a: number) => number;
|
|
3524
4620
|
readonly wasmstreamchoice_default: () => number;
|
|
3525
4621
|
readonly wasmstreamchoice_delta: (a: number) => number;
|
|
3526
4622
|
readonly wasmstreamchoice_finishReason: (a: number) => [number, number];
|
|
@@ -3531,6 +4627,7 @@ export interface InitOutput {
|
|
|
3531
4627
|
readonly wasmstreamchoice_set_index: (a: number, b: number) => void;
|
|
3532
4628
|
readonly wasmstreamdelta_clearFunctionCall: (a: number) => void;
|
|
3533
4629
|
readonly wasmstreamdelta_content: (a: number) => [number, number];
|
|
4630
|
+
readonly wasmstreamdelta_copyForTransfer: (a: number) => number;
|
|
3534
4631
|
readonly wasmstreamdelta_default: () => number;
|
|
3535
4632
|
readonly wasmstreamdelta_functionCall: (a: number) => number;
|
|
3536
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;
|
|
@@ -3545,17 +4642,20 @@ export interface InitOutput {
|
|
|
3545
4642
|
readonly wasmstreamdelta_set_toolCalls: (a: number, b: number, c: number) => void;
|
|
3546
4643
|
readonly wasmstreamdelta_toolCalls: (a: number) => any;
|
|
3547
4644
|
readonly wasmstreamfunctioncall_arguments: (a: number) => [number, number];
|
|
4645
|
+
readonly wasmstreamfunctioncall_copyForTransfer: (a: number) => number;
|
|
3548
4646
|
readonly wasmstreamfunctioncall_default: () => number;
|
|
3549
4647
|
readonly wasmstreamfunctioncall_name: (a: number) => [number, number];
|
|
3550
4648
|
readonly wasmstreamfunctioncall_new: (a: number, b: number, c: number, d: number) => number;
|
|
3551
4649
|
readonly wasmstreamfunctioncall_set_arguments: (a: number, b: number, c: number) => void;
|
|
3552
4650
|
readonly wasmstreamfunctioncall_set_name: (a: number, b: number, c: number) => void;
|
|
4651
|
+
readonly wasmstreamoptions_copyForTransfer: (a: number) => number;
|
|
3553
4652
|
readonly wasmstreamoptions_default: () => number;
|
|
3554
4653
|
readonly wasmstreamoptions_includeUsage: (a: number) => number;
|
|
3555
4654
|
readonly wasmstreamoptions_new: (a: number) => number;
|
|
3556
4655
|
readonly wasmstreamoptions_set_includeUsage: (a: number, b: number) => void;
|
|
3557
4656
|
readonly wasmstreamtoolcall_callType: (a: number) => [number, number];
|
|
3558
4657
|
readonly wasmstreamtoolcall_clearFunction: (a: number) => void;
|
|
4658
|
+
readonly wasmstreamtoolcall_copyForTransfer: (a: number) => number;
|
|
3559
4659
|
readonly wasmstreamtoolcall_default: () => number;
|
|
3560
4660
|
readonly wasmstreamtoolcall_function: (a: number) => number;
|
|
3561
4661
|
readonly wasmstreamtoolcall_id: (a: number) => [number, number];
|
|
@@ -3566,12 +4666,14 @@ export interface InitOutput {
|
|
|
3566
4666
|
readonly wasmstreamtoolcall_set_id: (a: number, b: number, c: number) => void;
|
|
3567
4667
|
readonly wasmstreamtoolcall_set_index: (a: number, b: number) => void;
|
|
3568
4668
|
readonly wasmsystemmessage_content: (a: number) => any;
|
|
4669
|
+
readonly wasmsystemmessage_copyForTransfer: (a: number) => number;
|
|
3569
4670
|
readonly wasmsystemmessage_default: () => number;
|
|
3570
4671
|
readonly wasmsystemmessage_name: (a: number) => [number, number];
|
|
3571
4672
|
readonly wasmsystemmessage_new: (a: number, b: number, c: number) => number;
|
|
3572
4673
|
readonly wasmsystemmessage_set_content: (a: number, b: any) => void;
|
|
3573
4674
|
readonly wasmsystemmessage_set_name: (a: number, b: number, c: number) => void;
|
|
3574
4675
|
readonly wasmtoolcall_callType: (a: number) => [number, number];
|
|
4676
|
+
readonly wasmtoolcall_copyForTransfer: (a: number) => number;
|
|
3575
4677
|
readonly wasmtoolcall_default: () => number;
|
|
3576
4678
|
readonly wasmtoolcall_function: (a: number) => number;
|
|
3577
4679
|
readonly wasmtoolcall_id: (a: number) => [number, number];
|
|
@@ -3580,6 +4682,7 @@ export interface InitOutput {
|
|
|
3580
4682
|
readonly wasmtoolcall_set_function: (a: number, b: number) => void;
|
|
3581
4683
|
readonly wasmtoolcall_set_id: (a: number, b: number, c: number) => void;
|
|
3582
4684
|
readonly wasmtoolmessage_content: (a: number) => any;
|
|
4685
|
+
readonly wasmtoolmessage_copyForTransfer: (a: number) => number;
|
|
3583
4686
|
readonly wasmtoolmessage_default: () => number;
|
|
3584
4687
|
readonly wasmtoolmessage_name: (a: number) => [number, number];
|
|
3585
4688
|
readonly wasmtoolmessage_new: (a: number, b: number, c: number, d: number, e: number) => number;
|
|
@@ -3587,6 +4690,7 @@ export interface InitOutput {
|
|
|
3587
4690
|
readonly wasmtoolmessage_set_name: (a: number, b: number, c: number) => void;
|
|
3588
4691
|
readonly wasmtoolmessage_set_toolCallId: (a: number, b: number, c: number) => void;
|
|
3589
4692
|
readonly wasmtoolmessage_toolCallId: (a: number) => [number, number];
|
|
4693
|
+
readonly wasmtranscriptionresponse_copyForTransfer: (a: number) => number;
|
|
3590
4694
|
readonly wasmtranscriptionresponse_default: () => number;
|
|
3591
4695
|
readonly wasmtranscriptionresponse_duration: (a: number) => [number, number];
|
|
3592
4696
|
readonly wasmtranscriptionresponse_language: (a: number) => [number, number];
|
|
@@ -3597,6 +4701,7 @@ export interface InitOutput {
|
|
|
3597
4701
|
readonly wasmtranscriptionresponse_set_segments: (a: number, b: number, c: number) => void;
|
|
3598
4702
|
readonly wasmtranscriptionresponse_set_text: (a: number, b: number, c: number) => void;
|
|
3599
4703
|
readonly wasmtranscriptionresponse_text: (a: number) => [number, number];
|
|
4704
|
+
readonly wasmtranscriptionsegment_copyForTransfer: (a: number) => number;
|
|
3600
4705
|
readonly wasmtranscriptionsegment_default: () => number;
|
|
3601
4706
|
readonly wasmtranscriptionsegment_end: (a: number) => number;
|
|
3602
4707
|
readonly wasmtranscriptionsegment_id: (a: number) => number;
|
|
@@ -3609,6 +4714,7 @@ export interface InitOutput {
|
|
|
3609
4714
|
readonly wasmtranscriptionsegment_text: (a: number) => [number, number];
|
|
3610
4715
|
readonly wasmusage_clearPromptTokensDetails: (a: number) => void;
|
|
3611
4716
|
readonly wasmusage_completionTokens: (a: number) => bigint;
|
|
4717
|
+
readonly wasmusage_copyForTransfer: (a: number) => number;
|
|
3612
4718
|
readonly wasmusage_default: () => number;
|
|
3613
4719
|
readonly wasmusage_new: (a: number, b: bigint, c: number, d: bigint, e: number, f: bigint, g: number) => number;
|
|
3614
4720
|
readonly wasmusage_promptTokens: (a: number) => bigint;
|
|
@@ -3619,12 +4725,14 @@ export interface InitOutput {
|
|
|
3619
4725
|
readonly wasmusage_set_totalTokens: (a: number, b: bigint) => void;
|
|
3620
4726
|
readonly wasmusage_totalTokens: (a: number) => bigint;
|
|
3621
4727
|
readonly wasmusermessage_content: (a: number) => any;
|
|
4728
|
+
readonly wasmusermessage_copyForTransfer: (a: number) => number;
|
|
3622
4729
|
readonly wasmusermessage_default: () => number;
|
|
3623
4730
|
readonly wasmusermessage_name: (a: number) => [number, number];
|
|
3624
4731
|
readonly wasmusermessage_new: (a: number, b: number, c: number) => number;
|
|
3625
4732
|
readonly wasmusermessage_set_content: (a: number, b: any) => void;
|
|
3626
4733
|
readonly wasmusermessage_set_name: (a: number, b: number, c: number) => void;
|
|
3627
4734
|
readonly wasmwaitforbatchconfig_backoffMultiplier: (a: number) => number;
|
|
4735
|
+
readonly wasmwaitforbatchconfig_copyForTransfer: (a: number) => number;
|
|
3628
4736
|
readonly wasmwaitforbatchconfig_default: () => number;
|
|
3629
4737
|
readonly wasmwaitforbatchconfig_initialIntervalSecs: (a: number) => number;
|
|
3630
4738
|
readonly wasmwaitforbatchconfig_maxIntervalSecs: (a: number) => number;
|
|
@@ -3638,7 +4746,7 @@ export interface InitOutput {
|
|
|
3638
4746
|
readonly wasm_bindgen__convert__closures_____invoke__h49dc34f70620523b: (a: number, b: number, c: any) => [number, number];
|
|
3639
4747
|
readonly wasm_bindgen__convert__closures_____invoke__h8663a1be0a3e38b0: (a: number, b: number, c: any) => void;
|
|
3640
4748
|
readonly wasm_bindgen__convert__closures_____invoke__h28ae67068accb1e8: (a: number, b: number) => void;
|
|
3641
|
-
readonly
|
|
4749
|
+
readonly wasm_bindgen__convert__closures_____invoke__h4366f5359ad471a6: (a: number, b: number) => void;
|
|
3642
4750
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
3643
4751
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
3644
4752
|
readonly __wbindgen_exn_store: (a: number) => void;
|