@dbx-tools/google-rs 0.6.188

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/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@dbx-tools/google-rs",
3
+ "description": "Node bindings for dbx-tools-google",
4
+ "repository": {
5
+ "type": "git",
6
+ "url": "git+https://github.com/reggie-db/dbx-tools.git",
7
+ "directory": "packages/js/node/google-rs"
8
+ },
9
+ "dependencies": {
10
+ "@dbx-tools/core-rs": "0.6.188",
11
+ "@dbx-tools/shared-core": "0.6.188",
12
+ "@ubjs/core": "0.31.0-5",
13
+ "@ubjs/node": "0.31.0-5"
14
+ },
15
+ "main": "./lib/index.js",
16
+ "license": "Apache-2.0",
17
+ "version": "0.6.188",
18
+ "types": "./index.ts",
19
+ "type": "module",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./index.ts",
23
+ "default": "./lib/index.js"
24
+ },
25
+ "./package.json": "./package.json"
26
+ },
27
+ "files": [
28
+ "index.ts",
29
+ "src",
30
+ "lib"
31
+ ],
32
+ "optionalDependencies": {
33
+ "@dbx-tools/google-rs-linux-x64-gnu": "0.6.188",
34
+ "@dbx-tools/google-rs-linux-arm64-gnu": "0.6.188",
35
+ "@dbx-tools/google-rs-darwin-x64": "0.6.188",
36
+ "@dbx-tools/google-rs-darwin-arm64": "0.6.188",
37
+ "@dbx-tools/google-rs-win32-x64-msvc": "0.6.188"
38
+ },
39
+ "dbxToolsConfig": {
40
+ "uniffi": true,
41
+ "tags": [
42
+ "node"
43
+ ]
44
+ },
45
+ "//": "~~ Generated by projen. To modify, edit .projenrc.js and run \"bunx projen\".",
46
+ "private": false
47
+ }
@@ -0,0 +1,456 @@
1
+ // GENERATED by UniFFI binding generation - DO NOT EDIT.
2
+ // Regenerated from the dbx-tools-google Rust exports.
3
+ // Hand edits are overwritten on the next watch; this file is read-only.
4
+
5
+ /* eslint-disable */
6
+ // @ts-nocheck
7
+ // This file was autogenerated by some hot garbage in the `uniffi-bindgen-react-native` crate.
8
+ // Trust me, you don't want to mess with it!
9
+ import lib from "@ubjs/node";
10
+ const { UniffiNativeModule, FfiType, resolveLibPath } = lib;
11
+
12
+ import {
13
+ type StructuralEquality as UniffiStructuralEquality,
14
+ type UniffiForeignFuture as RuntimeUniffiForeignFuture,
15
+ type UniffiRustCallStatus,
16
+ type UniffiGcObject,
17
+ type UniffiRustFutureContinuationCallback as RuntimeUniffiRustFutureContinuationCallback,
18
+ type UniffiResult,
19
+ } from '@ubjs/core';
20
+
21
+ const DEFINITIONS = {
22
+ symbols: {
23
+ rustbuffer_alloc: "ffi_dbx_tools_google_rustbuffer_alloc",
24
+ rustbuffer_free: "ffi_dbx_tools_google_rustbuffer_free",
25
+ rustbuffer_from_bytes: "ffi_dbx_tools_google_rustbuffer_from_bytes",
26
+ },
27
+ functions: {
28
+ "ffi_dbx_tools_google_rust_future_poll_u8": {
29
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
30
+ ret: FfiType.Void,
31
+ hasRustCallStatus: false,
32
+ },
33
+ "ffi_dbx_tools_google_rust_future_cancel_u8": {
34
+ args: [FfiType.Handle],
35
+ ret: FfiType.Void,
36
+ hasRustCallStatus: false,
37
+ },
38
+ "ffi_dbx_tools_google_rust_future_complete_u8": {
39
+ args: [FfiType.Handle],
40
+ ret: FfiType.UInt8,
41
+ hasRustCallStatus: true,
42
+ },
43
+ "ffi_dbx_tools_google_rust_future_free_u8": {
44
+ args: [FfiType.Handle],
45
+ ret: FfiType.Void,
46
+ hasRustCallStatus: false,
47
+ },
48
+ "ffi_dbx_tools_google_rust_future_poll_i8": {
49
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
50
+ ret: FfiType.Void,
51
+ hasRustCallStatus: false,
52
+ },
53
+ "ffi_dbx_tools_google_rust_future_cancel_i8": {
54
+ args: [FfiType.Handle],
55
+ ret: FfiType.Void,
56
+ hasRustCallStatus: false,
57
+ },
58
+ "ffi_dbx_tools_google_rust_future_complete_i8": {
59
+ args: [FfiType.Handle],
60
+ ret: FfiType.Int8,
61
+ hasRustCallStatus: true,
62
+ },
63
+ "ffi_dbx_tools_google_rust_future_free_i8": {
64
+ args: [FfiType.Handle],
65
+ ret: FfiType.Void,
66
+ hasRustCallStatus: false,
67
+ },
68
+ "ffi_dbx_tools_google_rust_future_poll_u16": {
69
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
70
+ ret: FfiType.Void,
71
+ hasRustCallStatus: false,
72
+ },
73
+ "ffi_dbx_tools_google_rust_future_cancel_u16": {
74
+ args: [FfiType.Handle],
75
+ ret: FfiType.Void,
76
+ hasRustCallStatus: false,
77
+ },
78
+ "ffi_dbx_tools_google_rust_future_complete_u16": {
79
+ args: [FfiType.Handle],
80
+ ret: FfiType.UInt16,
81
+ hasRustCallStatus: true,
82
+ },
83
+ "ffi_dbx_tools_google_rust_future_free_u16": {
84
+ args: [FfiType.Handle],
85
+ ret: FfiType.Void,
86
+ hasRustCallStatus: false,
87
+ },
88
+ "ffi_dbx_tools_google_rust_future_poll_i16": {
89
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
90
+ ret: FfiType.Void,
91
+ hasRustCallStatus: false,
92
+ },
93
+ "ffi_dbx_tools_google_rust_future_cancel_i16": {
94
+ args: [FfiType.Handle],
95
+ ret: FfiType.Void,
96
+ hasRustCallStatus: false,
97
+ },
98
+ "ffi_dbx_tools_google_rust_future_complete_i16": {
99
+ args: [FfiType.Handle],
100
+ ret: FfiType.Int16,
101
+ hasRustCallStatus: true,
102
+ },
103
+ "ffi_dbx_tools_google_rust_future_free_i16": {
104
+ args: [FfiType.Handle],
105
+ ret: FfiType.Void,
106
+ hasRustCallStatus: false,
107
+ },
108
+ "ffi_dbx_tools_google_rust_future_poll_u32": {
109
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
110
+ ret: FfiType.Void,
111
+ hasRustCallStatus: false,
112
+ },
113
+ "ffi_dbx_tools_google_rust_future_cancel_u32": {
114
+ args: [FfiType.Handle],
115
+ ret: FfiType.Void,
116
+ hasRustCallStatus: false,
117
+ },
118
+ "ffi_dbx_tools_google_rust_future_complete_u32": {
119
+ args: [FfiType.Handle],
120
+ ret: FfiType.UInt32,
121
+ hasRustCallStatus: true,
122
+ },
123
+ "ffi_dbx_tools_google_rust_future_free_u32": {
124
+ args: [FfiType.Handle],
125
+ ret: FfiType.Void,
126
+ hasRustCallStatus: false,
127
+ },
128
+ "ffi_dbx_tools_google_rust_future_poll_i32": {
129
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
130
+ ret: FfiType.Void,
131
+ hasRustCallStatus: false,
132
+ },
133
+ "ffi_dbx_tools_google_rust_future_cancel_i32": {
134
+ args: [FfiType.Handle],
135
+ ret: FfiType.Void,
136
+ hasRustCallStatus: false,
137
+ },
138
+ "ffi_dbx_tools_google_rust_future_complete_i32": {
139
+ args: [FfiType.Handle],
140
+ ret: FfiType.Int32,
141
+ hasRustCallStatus: true,
142
+ },
143
+ "ffi_dbx_tools_google_rust_future_free_i32": {
144
+ args: [FfiType.Handle],
145
+ ret: FfiType.Void,
146
+ hasRustCallStatus: false,
147
+ },
148
+ "ffi_dbx_tools_google_rust_future_poll_u64": {
149
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
150
+ ret: FfiType.Void,
151
+ hasRustCallStatus: false,
152
+ },
153
+ "ffi_dbx_tools_google_rust_future_cancel_u64": {
154
+ args: [FfiType.Handle],
155
+ ret: FfiType.Void,
156
+ hasRustCallStatus: false,
157
+ },
158
+ "ffi_dbx_tools_google_rust_future_complete_u64": {
159
+ args: [FfiType.Handle],
160
+ ret: FfiType.Handle,
161
+ hasRustCallStatus: true,
162
+ },
163
+ "ffi_dbx_tools_google_rust_future_free_u64": {
164
+ args: [FfiType.Handle],
165
+ ret: FfiType.Void,
166
+ hasRustCallStatus: false,
167
+ },
168
+ "ffi_dbx_tools_google_rust_future_poll_i64": {
169
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
170
+ ret: FfiType.Void,
171
+ hasRustCallStatus: false,
172
+ },
173
+ "ffi_dbx_tools_google_rust_future_cancel_i64": {
174
+ args: [FfiType.Handle],
175
+ ret: FfiType.Void,
176
+ hasRustCallStatus: false,
177
+ },
178
+ "ffi_dbx_tools_google_rust_future_complete_i64": {
179
+ args: [FfiType.Handle],
180
+ ret: FfiType.Int64,
181
+ hasRustCallStatus: true,
182
+ },
183
+ "ffi_dbx_tools_google_rust_future_free_i64": {
184
+ args: [FfiType.Handle],
185
+ ret: FfiType.Void,
186
+ hasRustCallStatus: false,
187
+ },
188
+ "ffi_dbx_tools_google_rust_future_poll_f32": {
189
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
190
+ ret: FfiType.Void,
191
+ hasRustCallStatus: false,
192
+ },
193
+ "ffi_dbx_tools_google_rust_future_cancel_f32": {
194
+ args: [FfiType.Handle],
195
+ ret: FfiType.Void,
196
+ hasRustCallStatus: false,
197
+ },
198
+ "ffi_dbx_tools_google_rust_future_complete_f32": {
199
+ args: [FfiType.Handle],
200
+ ret: FfiType.Float32,
201
+ hasRustCallStatus: true,
202
+ },
203
+ "ffi_dbx_tools_google_rust_future_free_f32": {
204
+ args: [FfiType.Handle],
205
+ ret: FfiType.Void,
206
+ hasRustCallStatus: false,
207
+ },
208
+ "ffi_dbx_tools_google_rust_future_poll_f64": {
209
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
210
+ ret: FfiType.Void,
211
+ hasRustCallStatus: false,
212
+ },
213
+ "ffi_dbx_tools_google_rust_future_cancel_f64": {
214
+ args: [FfiType.Handle],
215
+ ret: FfiType.Void,
216
+ hasRustCallStatus: false,
217
+ },
218
+ "ffi_dbx_tools_google_rust_future_complete_f64": {
219
+ args: [FfiType.Handle],
220
+ ret: FfiType.Float64,
221
+ hasRustCallStatus: true,
222
+ },
223
+ "ffi_dbx_tools_google_rust_future_free_f64": {
224
+ args: [FfiType.Handle],
225
+ ret: FfiType.Void,
226
+ hasRustCallStatus: false,
227
+ },
228
+ "ffi_dbx_tools_google_rust_future_poll_rust_buffer": {
229
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
230
+ ret: FfiType.Void,
231
+ hasRustCallStatus: false,
232
+ },
233
+ "ffi_dbx_tools_google_rust_future_cancel_rust_buffer": {
234
+ args: [FfiType.Handle],
235
+ ret: FfiType.Void,
236
+ hasRustCallStatus: false,
237
+ },
238
+ "ffi_dbx_tools_google_rust_future_complete_rust_buffer": {
239
+ args: [FfiType.Handle],
240
+ ret: FfiType.RustBuffer,
241
+ hasRustCallStatus: true,
242
+ },
243
+ "ffi_dbx_tools_google_rust_future_free_rust_buffer": {
244
+ args: [FfiType.Handle],
245
+ ret: FfiType.Void,
246
+ hasRustCallStatus: false,
247
+ },
248
+ "ffi_dbx_tools_google_rust_future_poll_void": {
249
+ args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
250
+ ret: FfiType.Void,
251
+ hasRustCallStatus: false,
252
+ },
253
+ "ffi_dbx_tools_google_rust_future_cancel_void": {
254
+ args: [FfiType.Handle],
255
+ ret: FfiType.Void,
256
+ hasRustCallStatus: false,
257
+ },
258
+ "ffi_dbx_tools_google_rust_future_complete_void": {
259
+ args: [FfiType.Handle],
260
+ ret: FfiType.Void,
261
+ hasRustCallStatus: true,
262
+ },
263
+ "ffi_dbx_tools_google_rust_future_free_void": {
264
+ args: [FfiType.Handle],
265
+ ret: FfiType.Void,
266
+ hasRustCallStatus: false,
267
+ },
268
+ "uniffi_dbx_tools_google_fn_clone_googleauth": {
269
+ args: [FfiType.Handle],
270
+ ret: FfiType.Handle,
271
+ hasRustCallStatus: true,
272
+ },
273
+ "uniffi_dbx_tools_google_fn_free_googleauth": {
274
+ args: [FfiType.Handle],
275
+ ret: FfiType.Void,
276
+ hasRustCallStatus: true,
277
+ },
278
+ "uniffi_dbx_tools_google_fn_func_create_google_auth": {
279
+ args: [FfiType.RustBuffer],
280
+ ret: FfiType.Handle,
281
+ hasRustCallStatus: false,
282
+ },
283
+ "uniffi_dbx_tools_google_fn_method_googleauth_force_refresh_token": {
284
+ args: [FfiType.Handle],
285
+ ret: FfiType.Handle,
286
+ hasRustCallStatus: false,
287
+ },
288
+ "uniffi_dbx_tools_google_fn_method_googleauth_logout": {
289
+ args: [FfiType.Handle],
290
+ ret: FfiType.Handle,
291
+ hasRustCallStatus: false,
292
+ },
293
+ "uniffi_dbx_tools_google_fn_method_googleauth_refresh_rejected_token": {
294
+ args: [FfiType.Handle, FfiType.RustBuffer],
295
+ ret: FfiType.Handle,
296
+ hasRustCallStatus: false,
297
+ },
298
+ "uniffi_dbx_tools_google_fn_method_googleauth_status": {
299
+ args: [FfiType.Handle],
300
+ ret: FfiType.RustBuffer,
301
+ hasRustCallStatus: true,
302
+ },
303
+ "uniffi_dbx_tools_google_fn_method_googleauth_token": {
304
+ args: [FfiType.Handle],
305
+ ret: FfiType.Handle,
306
+ hasRustCallStatus: false,
307
+ },
308
+ "ffi_dbx_tools_google_uniffi_contract_version": {
309
+ args: [],
310
+ ret: FfiType.UInt32,
311
+ hasRustCallStatus: false,
312
+ },
313
+ "uniffi_dbx_tools_google_checksum_func_create_google_auth": {
314
+ args: [],
315
+ ret: FfiType.UInt16,
316
+ hasRustCallStatus: false,
317
+ },
318
+ "uniffi_dbx_tools_google_checksum_method_googleauth_force_refresh_token": {
319
+ args: [],
320
+ ret: FfiType.UInt16,
321
+ hasRustCallStatus: false,
322
+ },
323
+ "uniffi_dbx_tools_google_checksum_method_googleauth_logout": {
324
+ args: [],
325
+ ret: FfiType.UInt16,
326
+ hasRustCallStatus: false,
327
+ },
328
+ "uniffi_dbx_tools_google_checksum_method_googleauth_refresh_rejected_token": {
329
+ args: [],
330
+ ret: FfiType.UInt16,
331
+ hasRustCallStatus: false,
332
+ },
333
+ "uniffi_dbx_tools_google_checksum_method_googleauth_status": {
334
+ args: [],
335
+ ret: FfiType.UInt16,
336
+ hasRustCallStatus: false,
337
+ },
338
+ "uniffi_dbx_tools_google_checksum_method_googleauth_token": {
339
+ args: [],
340
+ ret: FfiType.UInt16,
341
+ hasRustCallStatus: false,
342
+ },
343
+ },
344
+ callbacks: {
345
+ "RustFutureContinuationCallback": {
346
+ args: [FfiType.Handle, FfiType.Int8],
347
+ ret: FfiType.Void,
348
+ hasRustCallStatus: false,
349
+ },
350
+ "ForeignFutureDroppedCallback": {
351
+ args: [FfiType.Handle],
352
+ ret: FfiType.Void,
353
+ hasRustCallStatus: false,
354
+ },
355
+ },
356
+ structs: {
357
+ "ForeignFutureDroppedCallbackStruct": [
358
+ { name: "handle", type: FfiType.Handle },
359
+ { name: "free", type: FfiType.Callback("ForeignFutureDroppedCallback") },
360
+ ],
361
+ },
362
+ } as const;
363
+
364
+ interface NativeModuleInterface {
365
+ ffi_dbx_tools_google_rust_future_poll_u8(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
366
+ ffi_dbx_tools_google_rust_future_cancel_u8(handle: bigint): void;
367
+ ffi_dbx_tools_google_rust_future_complete_u8(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
368
+ ffi_dbx_tools_google_rust_future_free_u8(handle: bigint): void;
369
+ ffi_dbx_tools_google_rust_future_poll_i8(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
370
+ ffi_dbx_tools_google_rust_future_cancel_i8(handle: bigint): void;
371
+ ffi_dbx_tools_google_rust_future_complete_i8(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
372
+ ffi_dbx_tools_google_rust_future_free_i8(handle: bigint): void;
373
+ ffi_dbx_tools_google_rust_future_poll_u16(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
374
+ ffi_dbx_tools_google_rust_future_cancel_u16(handle: bigint): void;
375
+ ffi_dbx_tools_google_rust_future_complete_u16(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
376
+ ffi_dbx_tools_google_rust_future_free_u16(handle: bigint): void;
377
+ ffi_dbx_tools_google_rust_future_poll_i16(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
378
+ ffi_dbx_tools_google_rust_future_cancel_i16(handle: bigint): void;
379
+ ffi_dbx_tools_google_rust_future_complete_i16(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
380
+ ffi_dbx_tools_google_rust_future_free_i16(handle: bigint): void;
381
+ ffi_dbx_tools_google_rust_future_poll_u32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
382
+ ffi_dbx_tools_google_rust_future_cancel_u32(handle: bigint): void;
383
+ ffi_dbx_tools_google_rust_future_complete_u32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
384
+ ffi_dbx_tools_google_rust_future_free_u32(handle: bigint): void;
385
+ ffi_dbx_tools_google_rust_future_poll_i32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
386
+ ffi_dbx_tools_google_rust_future_cancel_i32(handle: bigint): void;
387
+ ffi_dbx_tools_google_rust_future_complete_i32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
388
+ ffi_dbx_tools_google_rust_future_free_i32(handle: bigint): void;
389
+ ffi_dbx_tools_google_rust_future_poll_u64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
390
+ ffi_dbx_tools_google_rust_future_cancel_u64(handle: bigint): void;
391
+ ffi_dbx_tools_google_rust_future_complete_u64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
392
+ ffi_dbx_tools_google_rust_future_free_u64(handle: bigint): void;
393
+ ffi_dbx_tools_google_rust_future_poll_i64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
394
+ ffi_dbx_tools_google_rust_future_cancel_i64(handle: bigint): void;
395
+ ffi_dbx_tools_google_rust_future_complete_i64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
396
+ ffi_dbx_tools_google_rust_future_free_i64(handle: bigint): void;
397
+ ffi_dbx_tools_google_rust_future_poll_f32(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
398
+ ffi_dbx_tools_google_rust_future_cancel_f32(handle: bigint): void;
399
+ ffi_dbx_tools_google_rust_future_complete_f32(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
400
+ ffi_dbx_tools_google_rust_future_free_f32(handle: bigint): void;
401
+ ffi_dbx_tools_google_rust_future_poll_f64(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
402
+ ffi_dbx_tools_google_rust_future_cancel_f64(handle: bigint): void;
403
+ ffi_dbx_tools_google_rust_future_complete_f64(handle: bigint, uniffi_out_err: UniffiRustCallStatus): number;
404
+ ffi_dbx_tools_google_rust_future_free_f64(handle: bigint): void;
405
+ ffi_dbx_tools_google_rust_future_poll_rust_buffer(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
406
+ ffi_dbx_tools_google_rust_future_cancel_rust_buffer(handle: bigint): void;
407
+ ffi_dbx_tools_google_rust_future_complete_rust_buffer(handle: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
408
+ ffi_dbx_tools_google_rust_future_free_rust_buffer(handle: bigint): void;
409
+ ffi_dbx_tools_google_rust_future_poll_void(handle: bigint, callback: UniffiRustFutureContinuationCallback, callbackData: bigint): void;
410
+ ffi_dbx_tools_google_rust_future_cancel_void(handle: bigint): void;
411
+ ffi_dbx_tools_google_rust_future_complete_void(handle: bigint, uniffi_out_err: UniffiRustCallStatus): void;
412
+ ffi_dbx_tools_google_rust_future_free_void(handle: bigint): void;
413
+ uniffi_dbx_tools_google_fn_clone_googleauth(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): bigint;
414
+ uniffi_dbx_tools_google_fn_free_googleauth(ptr: bigint, uniffi_out_err: UniffiRustCallStatus): void;
415
+ uniffi_dbx_tools_google_fn_func_create_google_auth(options: Uint8Array): bigint;
416
+ uniffi_dbx_tools_google_fn_method_googleauth_force_refresh_token(uniffiSelf: bigint): bigint;
417
+ uniffi_dbx_tools_google_fn_method_googleauth_logout(uniffiSelf: bigint): bigint;
418
+ uniffi_dbx_tools_google_fn_method_googleauth_refresh_rejected_token(uniffiSelf: bigint, staleAccessToken: Uint8Array): bigint;
419
+ uniffi_dbx_tools_google_fn_method_googleauth_status(uniffiSelf: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
420
+ uniffi_dbx_tools_google_fn_method_googleauth_token(uniffiSelf: bigint): bigint;
421
+ ffi_dbx_tools_google_uniffi_contract_version(): number;
422
+ uniffi_dbx_tools_google_checksum_func_create_google_auth(): number;
423
+ uniffi_dbx_tools_google_checksum_method_googleauth_force_refresh_token(): number;
424
+ uniffi_dbx_tools_google_checksum_method_googleauth_logout(): number;
425
+ uniffi_dbx_tools_google_checksum_method_googleauth_refresh_rejected_token(): number;
426
+ uniffi_dbx_tools_google_checksum_method_googleauth_status(): number;
427
+ uniffi_dbx_tools_google_checksum_method_googleauth_token(): number;
428
+ // Codegen call sites use these via `nativeModule().rustbuffer_alloc(...)`
429
+ // and `nativeModule().rustbuffer_free(...)`. The runtime's registered
430
+ // module exposes them as method properties.
431
+ rustbuffer_alloc(n: number): Uint8Array;
432
+ rustbuffer_free(view: Uint8Array): void;
433
+ }
434
+ let _nativeModule: NativeModuleInterface | undefined;
435
+ const getter: () => NativeModuleInterface = () => {
436
+ if (!_nativeModule) {
437
+ const libPath = resolveLibPath({
438
+ crateName: "dbx_tools_google",
439
+ callerUrl: import.meta.url,
440
+ npmPackageBase: "@dbx-tools/google-rs-",
441
+ tripleStyle: "node",
442
+ });
443
+ const mod_ = UniffiNativeModule.open(libPath);
444
+ _nativeModule = mod_.register(DEFINITIONS) as unknown as NativeModuleInterface;
445
+ }
446
+ return _nativeModule;
447
+ };
448
+ export default getter;
449
+
450
+ // Structs and function types for calling back into Typescript from Rust.
451
+ export type UniffiRustFutureContinuationCallback = (data: bigint, pollResult: number) => void;
452
+ export type UniffiForeignFutureDroppedCallback = (handle: bigint) => void;
453
+ export type UniffiForeignFutureDroppedCallbackStruct = {
454
+ handle: bigint;
455
+ free: UniffiForeignFutureDroppedCallback;
456
+ };