react-native-nobodywho 5.0.0 → 6.0.0
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/Nobodywho.podspec +25 -20
- package/README.md +8 -8
- package/android/CMakeLists.txt +4 -15
- package/android/build.gradle +4 -5
- package/android/proguard-rules.pro +6 -0
- package/android/src/main/AndroidManifest.xml +4 -1
- package/android/src/main/AndroidManifestNew.xml +3 -0
- package/{generated/cpp → cpp/generated}/nobodywho.cpp +424 -66
- package/{generated/cpp → cpp/generated}/nobodywho.hpp +26 -2
- package/cpp/react-native-nobodywho.cpp +1 -1
- package/package.json +28 -14
- package/src/generated/index.ts +2 -0
- package/src/generated/jsi/nobodywho-ffi.ts +937 -0
- package/src/generated/jsi/nobodywho.ts +7421 -0
- package/src/index.ts +23 -0
- package/src/{chat.ts → wrapper/chat.ts} +1 -1
- package/src/wrapper/convert_value.ts +47 -0
- package/src/{cross_encoder.ts → wrapper/cross_encoder.ts} +1 -1
- package/src/wrapper/decision.ts +112 -0
- package/src/{encoder.ts → wrapper/encoder.ts} +1 -1
- package/src/{wrapper.ts → wrapper/index.ts} +11 -24
- package/src/{message.ts → wrapper/message.ts} +1 -1
- package/src/{model.ts → wrapper/model.ts} +3 -2
- package/src/{prompt.ts → wrapper/prompt.ts} +1 -1
- package/src/{sampler_presets.ts → wrapper/sampler_presets.ts} +1 -1
- package/src/{speech_to_text.ts → wrapper/speech_to_text.ts} +2 -2
- package/src/{streaming.ts → wrapper/streaming.ts} +1 -1
- package/src/{text_to_speech.ts → wrapper/text_to_speech.ts} +1 -1
- package/src/{tool.ts → wrapper/tool.ts} +2 -51
- package/src/{vad.ts → wrapper/vad.ts} +3 -3
- package/ubrn.config.yaml +26 -5
- package/cpp/nobodywho-react-native.cpp +0 -16
- package/cpp/nobodywho-react-native.h +0 -15
- package/generated/ts/nobodywho-ffi.ts +0 -414
- package/generated/ts/nobodywho.ts +0 -5470
- package/src/index.tsx +0 -41
|
@@ -1,414 +0,0 @@
|
|
|
1
|
-
// This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
|
|
2
|
-
// Trust me, you don't want to mess with it!
|
|
3
|
-
|
|
4
|
-
/* tslint:disable */
|
|
5
|
-
/* eslint-disable */
|
|
6
|
-
// @ts-nocheck
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
type StructuralEquality as UniffiStructuralEquality,
|
|
10
|
-
type UniffiForeignFuture as RuntimeUniffiForeignFuture,
|
|
11
|
-
type UniffiRustCallStatus,
|
|
12
|
-
type UniffiGcObject,
|
|
13
|
-
type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback,
|
|
14
|
-
type UniffiResult,
|
|
15
|
-
} from 'uniffi-bindgen-react-native';
|
|
16
|
-
|
|
17
|
-
interface NativeModuleInterface {
|
|
18
|
-
ubrn_uniffi_internal_fn_func_ffi__string_to_byte_length(string: string, uniffi_out_err: UniffiRustCallStatus): number;
|
|
19
|
-
ubrn_uniffi_internal_fn_func_ffi__string_to_arraybuffer(string: string, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
20
|
-
ubrn_uniffi_internal_fn_func_ffi__arraybuffer_to_string(buffer: Uint8Array, uniffi_out_err: UniffiRustCallStatus): string;
|
|
21
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
22
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rustchat(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
23
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustchat_new(model: bigint, systemPrompt: Uint8Array, contextSize: number, templateVariables: Uint8Array, tools: Uint8Array, sampler: Uint8Array, mtp: Uint8Array, threadCount: Uint8Array, contextShift: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
24
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask(ptr: bigint, message: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
25
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_json_prompt(ptr: bigint, json: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
26
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_ask_with_prompt(ptr: bigint, parts: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
27
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_complete(ptr: bigint, messages: Uint8Array, options: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
28
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_chat_history(ptr: bigint): bigint;
|
|
29
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_sampler_config_json(ptr: bigint): bigint;
|
|
30
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_stats(ptr: bigint): bigint;
|
|
31
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_system_prompt(ptr: bigint): bigint;
|
|
32
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_get_template_variables(ptr: bigint): bigint;
|
|
33
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_mtp_acceptance_rate(ptr: bigint): bigint;
|
|
34
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_context(ptr: bigint, systemPrompt: Uint8Array, tools: Uint8Array): bigint;
|
|
35
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_reset_history(ptr: bigint): bigint;
|
|
36
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_chat_history(ptr: bigint, messages: Uint8Array): bigint;
|
|
37
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_context_shift(ptr: bigint, options: Uint8Array): bigint;
|
|
38
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_sampler_config(ptr: bigint, sampler: bigint): bigint;
|
|
39
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_system_prompt(ptr: bigint, systemPrompt: Uint8Array): bigint;
|
|
40
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_template_variable(ptr: bigint, name: Uint8Array, value: number): bigint;
|
|
41
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_set_tools(ptr: bigint, tools: Uint8Array): bigint;
|
|
42
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_stop_generation(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
43
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize(ptr: bigint, message: Uint8Array): bigint;
|
|
44
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustchat_tokenize_with_prompt(ptr: bigint, parts: Uint8Array): bigint;
|
|
45
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustcrossencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
46
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rustcrossencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
47
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustcrossencoder_new(model: bigint, contextSize: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
48
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank(ptr: bigint, query: Uint8Array, documents: Uint8Array): bigint;
|
|
49
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustcrossencoder_rank_and_sort_json(ptr: bigint, query: Uint8Array, documents: Uint8Array): bigint;
|
|
50
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
51
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rustencoder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
52
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustencoder_new(model: bigint, contextSize: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
53
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode(ptr: bigint, text: Uint8Array): bigint;
|
|
54
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustencoder_encode_batch(ptr: bigint, texts: Uint8Array): bigint;
|
|
55
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
56
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rustmodel(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
57
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_max_ctx(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
58
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustmodel_source(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
59
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
60
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotext(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
61
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustspeechtotext_new(source: Uint8Array, language: Uint8Array, quantization: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
62
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_file(ptr: bigint, path: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
63
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotext_transcribe_pcm(ptr: bigint, samples: Uint8Array, sampleRate: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
64
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustspeechtotextstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
65
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rustspeechtotextstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
66
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_completed(ptr: bigint): bigint;
|
|
67
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustspeechtotextstream_next_token(ptr: bigint): bigint;
|
|
68
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttexttospeech(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
69
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttexttospeech(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
70
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttexttospeech_new(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, precision: Uint8Array, temperature: Uint8Array, huggingfaceToken: Uint8Array, device: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
71
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize(ptr: bigint, text: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
72
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttexttospeech_synthesize_async(ptr: bigint, text: Uint8Array): bigint;
|
|
73
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
74
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttokenstream(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
75
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_completed(ptr: bigint): bigint;
|
|
76
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttokenstream_next_token(ptr: bigint): bigint;
|
|
77
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rusttool(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
78
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rusttool(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
79
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttool_new(name: Uint8Array, description: Uint8Array, parameters: Uint8Array, callback: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
80
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rusttool_new_async(name: Uint8Array, description: Uint8Array, parameters: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
81
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_get_schema_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
82
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_next_pending_call(ptr: bigint): bigint;
|
|
83
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rusttool_resolve_pending_call(ptr: bigint, callId: Uint8Array, result: Uint8Array, uniffi_out_err: UniffiRustCallStatus): void;
|
|
84
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_rustvoiceactivitydetection(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
85
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_rustvoiceactivitydetection(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
86
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_rustvoiceactivitydetection_new(source: Uint8Array, sampleRate: number, threshold: Uint8Array, minSilenceDurationMs: Uint8Array, minSpeechDurationMs: Uint8Array, prerollDurationMs: Uint8Array, device: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
87
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_finish(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
88
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_push(ptr: bigint, chunk: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
89
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_rustvoiceactivitydetection_segment(ptr: bigint, samples: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
90
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
91
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_samplerbuilder(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
92
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerbuilder_new(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
93
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_grammar(ptr: bigint, grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
94
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_json_schema(ptr: bigint, schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
95
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_constrain_with_regex(ptr: bigint, pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
96
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dist(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
97
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dry(ptr: bigint, multiplier: number, base: number, allowedLength: number, penaltyLastN: number, seqBreakers: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
98
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_dynamic_temperature(ptr: bigint, temperature: number, delta: number, exponent: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
99
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_greedy(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
100
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
101
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_logit_bias(ptr: bigint, biases: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
102
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_min_p(ptr: bigint, minP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
103
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v1(ptr: bigint, tau: number, eta: number, m: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
104
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_mirostat_v2(ptr: bigint, tau: number, eta: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
105
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_penalties(ptr: bigint, penaltyLastN: number, penaltyRepeat: number, penaltyFreq: number, penaltyPresent: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
106
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_seed(ptr: bigint, seed: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
107
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_temperature(ptr: bigint, temperature: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
108
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_k(ptr: bigint, topK: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
109
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_n_sigma(ptr: bigint, n: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
110
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_top_p(ptr: bigint, topP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
111
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_typical_p(ptr: bigint, typP: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
112
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerbuilder_xtc(ptr: bigint, xtcProbability: number, xtcThreshold: number, minKeep: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
113
|
-
ubrn_uniffi_nobodywho_uniffi_fn_clone_samplerconfig(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
114
|
-
ubrn_uniffi_nobodywho_uniffi_fn_free_samplerconfig(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
115
|
-
ubrn_uniffi_nobodywho_uniffi_fn_constructor_samplerconfig_from_json(jsonStr: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
116
|
-
ubrn_uniffi_nobodywho_uniffi_fn_method_samplerconfig_to_json(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
117
|
-
ubrn_uniffi_nobodywho_uniffi_fn_init_callback_vtable_rustdownloadprogresscallback(vtable: UniffiVTableCallbackInterfaceRustDownloadProgressCallback): void;
|
|
118
|
-
ubrn_uniffi_nobodywho_uniffi_fn_init_callback_vtable_rusttoolcallback(vtable: UniffiVTableCallbackInterfaceRustToolCallback): void;
|
|
119
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_cosine_similarity(a: Uint8Array, b: Uint8Array, uniffi_out_err: UniffiRustCallStatus): number;
|
|
120
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_download_model(modelPath: Uint8Array, headers: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
121
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_get_cached_models(uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
122
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_load_model(modelPath: Uint8Array, useGpu: number, projectionModelPath: Uint8Array, draftModelPath: Uint8Array, onDownloadProgress: Uint8Array): bigint;
|
|
123
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_load_speech_to_text(source: Uint8Array, language: Uint8Array, quantization: Uint8Array): bigint;
|
|
124
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_load_text_to_speech(source: Uint8Array, architecture: Uint8Array, voice: Uint8Array, language: Uint8Array, speed: Uint8Array, steps: Uint8Array, silenceDuration: Uint8Array, precision: Uint8Array, temperature: Uint8Array, huggingfaceToken: Uint8Array, device: Uint8Array): bigint;
|
|
125
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_load_voice_activity_detection(source: Uint8Array, sampleRate: number, threshold: Uint8Array, minSilenceDurationMs: Uint8Array, minSpeechDurationMs: Uint8Array, prerollDurationMs: Uint8Array, device: Uint8Array): bigint;
|
|
126
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_grammar(grammar: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
127
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_json_schema(schema: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
128
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_constrain_with_regex(pattern: Uint8Array, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
129
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_default(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
130
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_dry(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
131
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_greedy(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
132
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_json(uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
133
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_temperature(temperature: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
134
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_top_k(topK: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
135
|
-
ubrn_uniffi_nobodywho_uniffi_fn_func_sampler_preset_top_p(topP: number, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
136
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_u8(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
137
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u8(handle: bigint): void;
|
|
138
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_u8(handle: bigint): void;
|
|
139
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_u8(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
140
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_i8(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
141
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i8(handle: bigint): void;
|
|
142
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_i8(handle: bigint): void;
|
|
143
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_i8(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
144
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_u16(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
145
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u16(handle: bigint): void;
|
|
146
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_u16(handle: bigint): void;
|
|
147
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_u16(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
148
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_i16(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
149
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i16(handle: bigint): void;
|
|
150
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_i16(handle: bigint): void;
|
|
151
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_i16(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
152
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_u32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
153
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u32(handle: bigint): void;
|
|
154
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_u32(handle: bigint): void;
|
|
155
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_u32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
156
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_i32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
157
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i32(handle: bigint): void;
|
|
158
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_i32(handle: bigint): void;
|
|
159
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_i32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
160
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_u64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
161
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_u64(handle: bigint): void;
|
|
162
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_u64(handle: bigint): void;
|
|
163
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_u64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
164
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_i64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
165
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_i64(handle: bigint): void;
|
|
166
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_i64(handle: bigint): void;
|
|
167
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_i64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
|
|
168
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_f32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
169
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_f32(handle: bigint): void;
|
|
170
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_f32(handle: bigint): void;
|
|
171
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_f32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
172
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_f64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
173
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_f64(handle: bigint): void;
|
|
174
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_f64(handle: bigint): void;
|
|
175
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_f64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
|
|
176
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_rust_buffer(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
177
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_rust_buffer(handle: bigint): void;
|
|
178
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_rust_buffer(handle: bigint): void;
|
|
179
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_rust_buffer(handle: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
|
|
180
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_poll_void(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
|
|
181
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_cancel_void(handle: bigint): void;
|
|
182
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_free_void(handle: bigint): void;
|
|
183
|
-
ubrn_ffi_nobodywho_uniffi_rust_future_complete_void(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
|
|
184
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_cosine_similarity(): number;
|
|
185
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_download_model(): number;
|
|
186
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_get_cached_models(): number;
|
|
187
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_model(): number;
|
|
188
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_speech_to_text(): number;
|
|
189
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_text_to_speech(): number;
|
|
190
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_load_voice_activity_detection(): number;
|
|
191
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_grammar(): number;
|
|
192
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_json_schema(): number;
|
|
193
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_constrain_with_regex(): number;
|
|
194
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_default(): number;
|
|
195
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_dry(): number;
|
|
196
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_greedy(): number;
|
|
197
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_json(): number;
|
|
198
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_temperature(): number;
|
|
199
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_k(): number;
|
|
200
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_func_sampler_preset_top_p(): number;
|
|
201
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask(): number;
|
|
202
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_json_prompt(): number;
|
|
203
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_ask_with_prompt(): number;
|
|
204
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_complete(): number;
|
|
205
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_chat_history(): number;
|
|
206
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_sampler_config_json(): number;
|
|
207
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_stats(): number;
|
|
208
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_system_prompt(): number;
|
|
209
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_get_template_variables(): number;
|
|
210
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_mtp_acceptance_rate(): number;
|
|
211
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_context(): number;
|
|
212
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_reset_history(): number;
|
|
213
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_chat_history(): number;
|
|
214
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_context_shift(): number;
|
|
215
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_sampler_config(): number;
|
|
216
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_system_prompt(): number;
|
|
217
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_template_variable(): number;
|
|
218
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_set_tools(): number;
|
|
219
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_stop_generation(): number;
|
|
220
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize(): number;
|
|
221
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustchat_tokenize_with_prompt(): number;
|
|
222
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank(): number;
|
|
223
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustcrossencoder_rank_and_sort_json(): number;
|
|
224
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode(): number;
|
|
225
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustencoder_encode_batch(): number;
|
|
226
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_max_ctx(): number;
|
|
227
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustmodel_source(): number;
|
|
228
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_file(): number;
|
|
229
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotext_transcribe_pcm(): number;
|
|
230
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_completed(): number;
|
|
231
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustspeechtotextstream_next_token(): number;
|
|
232
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize(): number;
|
|
233
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttexttospeech_synthesize_async(): number;
|
|
234
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_completed(): number;
|
|
235
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttokenstream_next_token(): number;
|
|
236
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_get_schema_json(): number;
|
|
237
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_next_pending_call(): number;
|
|
238
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttool_resolve_pending_call(): number;
|
|
239
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_finish(): number;
|
|
240
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_push(): number;
|
|
241
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustvoiceactivitydetection_segment(): number;
|
|
242
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_grammar(): number;
|
|
243
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_json_schema(): number;
|
|
244
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_constrain_with_regex(): number;
|
|
245
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dist(): number;
|
|
246
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dry(): number;
|
|
247
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_dynamic_temperature(): number;
|
|
248
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_greedy(): number;
|
|
249
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_json(): number;
|
|
250
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_logit_bias(): number;
|
|
251
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_min_p(): number;
|
|
252
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v1(): number;
|
|
253
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_mirostat_v2(): number;
|
|
254
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_penalties(): number;
|
|
255
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_seed(): number;
|
|
256
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_temperature(): number;
|
|
257
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_k(): number;
|
|
258
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_n_sigma(): number;
|
|
259
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_top_p(): number;
|
|
260
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_typical_p(): number;
|
|
261
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerbuilder_xtc(): number;
|
|
262
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_samplerconfig_to_json(): number;
|
|
263
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustchat_new(): number;
|
|
264
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustcrossencoder_new(): number;
|
|
265
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustencoder_new(): number;
|
|
266
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustspeechtotext_new(): number;
|
|
267
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttexttospeech_new(): number;
|
|
268
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new(): number;
|
|
269
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rusttool_new_async(): number;
|
|
270
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_rustvoiceactivitydetection_new(): number;
|
|
271
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerbuilder_new(): number;
|
|
272
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_constructor_samplerconfig_from_json(): number;
|
|
273
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rustdownloadprogresscallback_on_download_progress(): number;
|
|
274
|
-
ubrn_uniffi_nobodywho_uniffi_checksum_method_rusttoolcallback_call(): number;
|
|
275
|
-
ubrn_ffi_nobodywho_uniffi_uniffi_contract_version(): number;
|
|
276
|
-
ubrn_uniffi_internal_fn_method_rustchat_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
277
|
-
ubrn_uniffi_internal_fn_method_rustcrossencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
278
|
-
ubrn_uniffi_internal_fn_method_rustencoder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
279
|
-
ubrn_uniffi_internal_fn_method_rustmodel_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
280
|
-
ubrn_uniffi_internal_fn_method_rustspeechtotext_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
281
|
-
ubrn_uniffi_internal_fn_method_rustspeechtotextstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
282
|
-
ubrn_uniffi_internal_fn_method_rusttexttospeech_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
283
|
-
ubrn_uniffi_internal_fn_method_rusttokenstream_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
284
|
-
ubrn_uniffi_internal_fn_method_rusttool_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
285
|
-
ubrn_uniffi_internal_fn_method_rustvoiceactivitydetection_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
286
|
-
ubrn_uniffi_internal_fn_method_samplerbuilder_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
287
|
-
ubrn_uniffi_internal_fn_method_samplerconfig_ffi__bless_pointer(pointer: bigint, uniffi_out_err: UniffiRustCallStatus): UniffiGcObject;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
// Casting globalThis to any allows us to look for `NativeNobodywho`
|
|
291
|
-
// if it was added via JSI.
|
|
292
|
-
//
|
|
293
|
-
// We use a getter here rather than simply `globalThis.NativeNobodywho` so that
|
|
294
|
-
// if/when the startup sequence isn't just so, an empty value isn't inadvertantly cached.
|
|
295
|
-
const getter: () => NativeModuleInterface = () => (globalThis as any).NativeNobodywho;
|
|
296
|
-
export default getter;
|
|
297
|
-
|
|
298
|
-
// Structs and function types for calling back into Typescript from Rust.
|
|
299
|
-
export type UniffiRustFutureContinuationCallback = (data: bigint, pollResult: number) => void;
|
|
300
|
-
export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
|
|
301
|
-
type UniffiCallbackInterfaceFree = (handle: bigint) => void;
|
|
302
|
-
type UniffiCallbackInterfaceClone = (handle: bigint) => UniffiResult<void>
|
|
303
|
-
;
|
|
304
|
-
export type UniffiForeignFutureDroppedCallbackStruct = {
|
|
305
|
-
handle: bigint;
|
|
306
|
-
free: UniffiForeignFutureDroppedCallback;
|
|
307
|
-
};
|
|
308
|
-
export type UniffiForeignFutureResultU8 = {
|
|
309
|
-
returnValue: number;
|
|
310
|
-
callStatus: UniffiRustCallStatus;
|
|
311
|
-
};
|
|
312
|
-
export type UniffiForeignFutureCompleteU8 = (callbackData: bigint, result: UniffiForeignFutureResultU8) => void;
|
|
313
|
-
export type UniffiForeignFutureResultI8 = {
|
|
314
|
-
returnValue: number;
|
|
315
|
-
callStatus: UniffiRustCallStatus;
|
|
316
|
-
};
|
|
317
|
-
export type UniffiForeignFutureCompleteI8 = (callbackData: bigint, result: UniffiForeignFutureResultI8) => void;
|
|
318
|
-
export type UniffiForeignFutureResultU16 = {
|
|
319
|
-
returnValue: number;
|
|
320
|
-
callStatus: UniffiRustCallStatus;
|
|
321
|
-
};
|
|
322
|
-
export type UniffiForeignFutureCompleteU16 = (callbackData: bigint, result: UniffiForeignFutureResultU16) => void;
|
|
323
|
-
export type UniffiForeignFutureResultI16 = {
|
|
324
|
-
returnValue: number;
|
|
325
|
-
callStatus: UniffiRustCallStatus;
|
|
326
|
-
};
|
|
327
|
-
export type UniffiForeignFutureCompleteI16 = (callbackData: bigint, result: UniffiForeignFutureResultI16) => void;
|
|
328
|
-
export type UniffiForeignFutureResultU32 = {
|
|
329
|
-
returnValue: number;
|
|
330
|
-
callStatus: UniffiRustCallStatus;
|
|
331
|
-
};
|
|
332
|
-
export type UniffiForeignFutureCompleteU32 = (callbackData: bigint, result: UniffiForeignFutureResultU32) => void;
|
|
333
|
-
export type UniffiForeignFutureResultI32 = {
|
|
334
|
-
returnValue: number;
|
|
335
|
-
callStatus: UniffiRustCallStatus;
|
|
336
|
-
};
|
|
337
|
-
export type UniffiForeignFutureCompleteI32 = (callbackData: bigint, result: UniffiForeignFutureResultI32) => void;
|
|
338
|
-
export type UniffiForeignFutureResultU64 = {
|
|
339
|
-
returnValue: bigint;
|
|
340
|
-
callStatus: UniffiRustCallStatus;
|
|
341
|
-
};
|
|
342
|
-
export type UniffiForeignFutureCompleteU64 = (callbackData: bigint, result: UniffiForeignFutureResultU64) => void;
|
|
343
|
-
export type UniffiForeignFutureResultI64 = {
|
|
344
|
-
returnValue: bigint;
|
|
345
|
-
callStatus: UniffiRustCallStatus;
|
|
346
|
-
};
|
|
347
|
-
export type UniffiForeignFutureCompleteI64 = (callbackData: bigint, result: UniffiForeignFutureResultI64) => void;
|
|
348
|
-
export type UniffiForeignFutureResultF32 = {
|
|
349
|
-
returnValue: number;
|
|
350
|
-
callStatus: UniffiRustCallStatus;
|
|
351
|
-
};
|
|
352
|
-
export type UniffiForeignFutureCompleteF32 = (callbackData: bigint, result: UniffiForeignFutureResultF32) => void;
|
|
353
|
-
export type UniffiForeignFutureResultF64 = {
|
|
354
|
-
returnValue: number;
|
|
355
|
-
callStatus: UniffiRustCallStatus;
|
|
356
|
-
};
|
|
357
|
-
export type UniffiForeignFutureCompleteF64 = (callbackData: bigint, result: UniffiForeignFutureResultF64) => void;
|
|
358
|
-
export type UniffiForeignFutureResultRustBuffer = {
|
|
359
|
-
returnValue: Uint8Array;
|
|
360
|
-
callStatus: UniffiRustCallStatus;
|
|
361
|
-
};
|
|
362
|
-
export type UniffiForeignFutureCompleteRustBuffer = (callbackData: bigint, result: UniffiForeignFutureResultRustBuffer) => void;
|
|
363
|
-
export type UniffiForeignFutureResultVoid = {
|
|
364
|
-
callStatus: UniffiRustCallStatus;
|
|
365
|
-
};
|
|
366
|
-
export type UniffiForeignFutureCompleteVoid = (callbackData: bigint, result: UniffiForeignFutureResultVoid) => void;
|
|
367
|
-
type UniffiCallbackInterfaceRustDownloadProgressCallbackMethod0 = (uniffiHandle: bigint, downloaded: bigint, total: bigint) => UniffiResult<void>
|
|
368
|
-
;
|
|
369
|
-
type UniffiCallbackInterfaceRustToolCallbackMethod0 = (uniffiHandle: bigint, argumentsJson: Uint8Array) => Uint8Array
|
|
370
|
-
;
|
|
371
|
-
export type UniffiVTableCallbackInterfaceRustDownloadProgressCallback = {
|
|
372
|
-
uniffiFree: UniffiCallbackInterfaceFree;
|
|
373
|
-
uniffiClone: UniffiCallbackInterfaceClone;
|
|
374
|
-
onDownloadProgress: UniffiCallbackInterfaceRustDownloadProgressCallbackMethod0;
|
|
375
|
-
};
|
|
376
|
-
export type UniffiVTableCallbackInterfaceRustToolCallback = {
|
|
377
|
-
uniffiFree: UniffiCallbackInterfaceFree;
|
|
378
|
-
uniffiClone: UniffiCallbackInterfaceClone;
|
|
379
|
-
call: UniffiCallbackInterfaceRustToolCallbackMethod0;
|
|
380
|
-
};
|
|
381
|
-
|
|
382
|
-
// UniffiRustFutureContinuationCallback is generated as part of the component interface's
|
|
383
|
-
// ffi_definitions. However, we need it in the runtime.
|
|
384
|
-
// We could:
|
|
385
|
-
// (a) do some complicated template logic to ensure the declaration is not generated here (possible)
|
|
386
|
-
// (b) import the generated declaration into the runtime (m a y b e) or…
|
|
387
|
-
// (c) generate the declaration anyway, and use a different declaration in the runtime.
|
|
388
|
-
//
|
|
389
|
-
// We chose (c) here as the simplest. In addition, we perform a compile time check that
|
|
390
|
-
// the two versions of `UniffiRustFutureContinuationCallback` are structurally equivalent.
|
|
391
|
-
//
|
|
392
|
-
// If you see the error:
|
|
393
|
-
// ```
|
|
394
|
-
// Type 'true' is not assignable to type 'false'.(2322)
|
|
395
|
-
// ```
|
|
396
|
-
// Then a new version of uniffi has changed the signature of the callback. Most likely, code in
|
|
397
|
-
// `typescript/src/async-rust-call.ts` will need to be changed.
|
|
398
|
-
//
|
|
399
|
-
// If you see the error:
|
|
400
|
-
// ```
|
|
401
|
-
// Cannot find name 'UniffiRustFutureContinuationCallback'. Did you mean 'RuntimeUniffiRustFutureContinuationCallback'?(2552)
|
|
402
|
-
// ```
|
|
403
|
-
// then you may not be using callbacks or promises, and uniffi is now not generating Futures and callbacks.
|
|
404
|
-
// You should not generate this if that is the case.
|
|
405
|
-
//
|
|
406
|
-
// ('You' being the bindings generator maintainer).
|
|
407
|
-
const isRustFutureContinuationCallbackTypeCompatible: UniffiStructuralEquality<
|
|
408
|
-
RuntimeUniffiRustFutureContinuationCallback,
|
|
409
|
-
UniffiRustFutureContinuationCallback
|
|
410
|
-
> = true;
|
|
411
|
-
const isUniffiForeignFutureTypeCompatible: UniffiStructuralEquality<
|
|
412
|
-
RuntimeUniffiForeignFuture,
|
|
413
|
-
UniffiForeignFuture
|
|
414
|
-
> = true;
|