@dbx-tools/auth 0.6.182 → 0.9.28
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/LICENSE +202 -0
- package/README.md +116 -32
- package/index.ts +26 -2
- package/lib/exports.d.ts +2 -0
- package/lib/exports.js +3 -0
- package/lib/index.d.ts +27 -0
- package/lib/index.js +26 -1595
- package/lib/src/_logging.d.ts +10 -0
- package/lib/src/_logging.js +38 -0
- package/lib/src/_profile-core.d.ts +28 -0
- package/lib/src/_profile-core.js +216 -0
- package/lib/src/_profile.d.ts +15 -0
- package/lib/src/_profile.js +236 -0
- package/lib/src/databricks-auth.d.ts +11 -0
- package/lib/src/databricks-auth.js +314 -0
- package/lib/src/databricks-cli.d.ts +28 -0
- package/lib/src/databricks-cli.js +239 -0
- package/lib/src/errors.d.ts +7 -0
- package/lib/src/errors.js +14 -0
- package/lib/src/generated/databricks-cli-assets.json +33 -0
- package/lib/src/http-client.d.ts +23 -0
- package/lib/src/http-client.js +116 -0
- package/lib/src/lifecycle.d.ts +26 -0
- package/lib/src/lifecycle.js +229 -0
- package/lib/src/node-storage.d.ts +20 -0
- package/lib/src/node-storage.js +207 -0
- package/lib/src/personal-access-token.d.ts +11 -0
- package/lib/src/personal-access-token.js +30 -0
- package/lib/src/service-principal.d.ts +24 -0
- package/lib/src/service-principal.js +69 -0
- package/lib/src/storage.d.ts +20 -0
- package/lib/src/storage.js +98 -0
- package/lib/src/types.d.ts +157 -0
- package/lib/src/types.js +67 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/package.json +39 -16
- package/src/_logging.ts +42 -0
- package/src/_profile-core.ts +258 -0
- package/src/_profile.ts +319 -0
- package/src/databricks-auth.ts +416 -0
- package/src/databricks-cli.ts +298 -0
- package/src/errors.ts +16 -0
- package/src/generated/databricks-cli-assets.json +33 -0
- package/src/http-client.ts +147 -0
- package/src/lifecycle.ts +239 -0
- package/src/node-storage.ts +230 -0
- package/src/personal-access-token.ts +34 -0
- package/src/service-principal.ts +96 -0
- package/src/storage.ts +104 -0
- package/src/types.ts +188 -0
- package/src/_bindings-ffi.ts +0 -715
- package/src/_bindings.ts +0 -1794
- package/src/bindings.ts +0 -12
package/lib/index.js
CHANGED
|
@@ -1,1595 +1,26 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
args: [FfiType.Handle],
|
|
28
|
-
ret: FfiType.Void,
|
|
29
|
-
hasRustCallStatus: false
|
|
30
|
-
},
|
|
31
|
-
ffi_dbx_tools_auth_rust_future_poll_i8: {
|
|
32
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
33
|
-
ret: FfiType.Void,
|
|
34
|
-
hasRustCallStatus: false
|
|
35
|
-
},
|
|
36
|
-
ffi_dbx_tools_auth_rust_future_cancel_i8: {
|
|
37
|
-
args: [FfiType.Handle],
|
|
38
|
-
ret: FfiType.Void,
|
|
39
|
-
hasRustCallStatus: false
|
|
40
|
-
},
|
|
41
|
-
ffi_dbx_tools_auth_rust_future_complete_i8: {
|
|
42
|
-
args: [FfiType.Handle],
|
|
43
|
-
ret: FfiType.Int8,
|
|
44
|
-
hasRustCallStatus: true
|
|
45
|
-
},
|
|
46
|
-
ffi_dbx_tools_auth_rust_future_free_i8: {
|
|
47
|
-
args: [FfiType.Handle],
|
|
48
|
-
ret: FfiType.Void,
|
|
49
|
-
hasRustCallStatus: false
|
|
50
|
-
},
|
|
51
|
-
ffi_dbx_tools_auth_rust_future_poll_u16: {
|
|
52
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
53
|
-
ret: FfiType.Void,
|
|
54
|
-
hasRustCallStatus: false
|
|
55
|
-
},
|
|
56
|
-
ffi_dbx_tools_auth_rust_future_cancel_u16: {
|
|
57
|
-
args: [FfiType.Handle],
|
|
58
|
-
ret: FfiType.Void,
|
|
59
|
-
hasRustCallStatus: false
|
|
60
|
-
},
|
|
61
|
-
ffi_dbx_tools_auth_rust_future_complete_u16: {
|
|
62
|
-
args: [FfiType.Handle],
|
|
63
|
-
ret: FfiType.UInt16,
|
|
64
|
-
hasRustCallStatus: true
|
|
65
|
-
},
|
|
66
|
-
ffi_dbx_tools_auth_rust_future_free_u16: {
|
|
67
|
-
args: [FfiType.Handle],
|
|
68
|
-
ret: FfiType.Void,
|
|
69
|
-
hasRustCallStatus: false
|
|
70
|
-
},
|
|
71
|
-
ffi_dbx_tools_auth_rust_future_poll_i16: {
|
|
72
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
73
|
-
ret: FfiType.Void,
|
|
74
|
-
hasRustCallStatus: false
|
|
75
|
-
},
|
|
76
|
-
ffi_dbx_tools_auth_rust_future_cancel_i16: {
|
|
77
|
-
args: [FfiType.Handle],
|
|
78
|
-
ret: FfiType.Void,
|
|
79
|
-
hasRustCallStatus: false
|
|
80
|
-
},
|
|
81
|
-
ffi_dbx_tools_auth_rust_future_complete_i16: {
|
|
82
|
-
args: [FfiType.Handle],
|
|
83
|
-
ret: FfiType.Int16,
|
|
84
|
-
hasRustCallStatus: true
|
|
85
|
-
},
|
|
86
|
-
ffi_dbx_tools_auth_rust_future_free_i16: {
|
|
87
|
-
args: [FfiType.Handle],
|
|
88
|
-
ret: FfiType.Void,
|
|
89
|
-
hasRustCallStatus: false
|
|
90
|
-
},
|
|
91
|
-
ffi_dbx_tools_auth_rust_future_poll_u32: {
|
|
92
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
93
|
-
ret: FfiType.Void,
|
|
94
|
-
hasRustCallStatus: false
|
|
95
|
-
},
|
|
96
|
-
ffi_dbx_tools_auth_rust_future_cancel_u32: {
|
|
97
|
-
args: [FfiType.Handle],
|
|
98
|
-
ret: FfiType.Void,
|
|
99
|
-
hasRustCallStatus: false
|
|
100
|
-
},
|
|
101
|
-
ffi_dbx_tools_auth_rust_future_complete_u32: {
|
|
102
|
-
args: [FfiType.Handle],
|
|
103
|
-
ret: FfiType.UInt32,
|
|
104
|
-
hasRustCallStatus: true
|
|
105
|
-
},
|
|
106
|
-
ffi_dbx_tools_auth_rust_future_free_u32: {
|
|
107
|
-
args: [FfiType.Handle],
|
|
108
|
-
ret: FfiType.Void,
|
|
109
|
-
hasRustCallStatus: false
|
|
110
|
-
},
|
|
111
|
-
ffi_dbx_tools_auth_rust_future_poll_i32: {
|
|
112
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
113
|
-
ret: FfiType.Void,
|
|
114
|
-
hasRustCallStatus: false
|
|
115
|
-
},
|
|
116
|
-
ffi_dbx_tools_auth_rust_future_cancel_i32: {
|
|
117
|
-
args: [FfiType.Handle],
|
|
118
|
-
ret: FfiType.Void,
|
|
119
|
-
hasRustCallStatus: false
|
|
120
|
-
},
|
|
121
|
-
ffi_dbx_tools_auth_rust_future_complete_i32: {
|
|
122
|
-
args: [FfiType.Handle],
|
|
123
|
-
ret: FfiType.Int32,
|
|
124
|
-
hasRustCallStatus: true
|
|
125
|
-
},
|
|
126
|
-
ffi_dbx_tools_auth_rust_future_free_i32: {
|
|
127
|
-
args: [FfiType.Handle],
|
|
128
|
-
ret: FfiType.Void,
|
|
129
|
-
hasRustCallStatus: false
|
|
130
|
-
},
|
|
131
|
-
ffi_dbx_tools_auth_rust_future_poll_u64: {
|
|
132
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
133
|
-
ret: FfiType.Void,
|
|
134
|
-
hasRustCallStatus: false
|
|
135
|
-
},
|
|
136
|
-
ffi_dbx_tools_auth_rust_future_cancel_u64: {
|
|
137
|
-
args: [FfiType.Handle],
|
|
138
|
-
ret: FfiType.Void,
|
|
139
|
-
hasRustCallStatus: false
|
|
140
|
-
},
|
|
141
|
-
ffi_dbx_tools_auth_rust_future_complete_u64: {
|
|
142
|
-
args: [FfiType.Handle],
|
|
143
|
-
ret: FfiType.Handle,
|
|
144
|
-
hasRustCallStatus: true
|
|
145
|
-
},
|
|
146
|
-
ffi_dbx_tools_auth_rust_future_free_u64: {
|
|
147
|
-
args: [FfiType.Handle],
|
|
148
|
-
ret: FfiType.Void,
|
|
149
|
-
hasRustCallStatus: false
|
|
150
|
-
},
|
|
151
|
-
ffi_dbx_tools_auth_rust_future_poll_i64: {
|
|
152
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
153
|
-
ret: FfiType.Void,
|
|
154
|
-
hasRustCallStatus: false
|
|
155
|
-
},
|
|
156
|
-
ffi_dbx_tools_auth_rust_future_cancel_i64: {
|
|
157
|
-
args: [FfiType.Handle],
|
|
158
|
-
ret: FfiType.Void,
|
|
159
|
-
hasRustCallStatus: false
|
|
160
|
-
},
|
|
161
|
-
ffi_dbx_tools_auth_rust_future_complete_i64: {
|
|
162
|
-
args: [FfiType.Handle],
|
|
163
|
-
ret: FfiType.Int64,
|
|
164
|
-
hasRustCallStatus: true
|
|
165
|
-
},
|
|
166
|
-
ffi_dbx_tools_auth_rust_future_free_i64: {
|
|
167
|
-
args: [FfiType.Handle],
|
|
168
|
-
ret: FfiType.Void,
|
|
169
|
-
hasRustCallStatus: false
|
|
170
|
-
},
|
|
171
|
-
ffi_dbx_tools_auth_rust_future_poll_f32: {
|
|
172
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
173
|
-
ret: FfiType.Void,
|
|
174
|
-
hasRustCallStatus: false
|
|
175
|
-
},
|
|
176
|
-
ffi_dbx_tools_auth_rust_future_cancel_f32: {
|
|
177
|
-
args: [FfiType.Handle],
|
|
178
|
-
ret: FfiType.Void,
|
|
179
|
-
hasRustCallStatus: false
|
|
180
|
-
},
|
|
181
|
-
ffi_dbx_tools_auth_rust_future_complete_f32: {
|
|
182
|
-
args: [FfiType.Handle],
|
|
183
|
-
ret: FfiType.Float32,
|
|
184
|
-
hasRustCallStatus: true
|
|
185
|
-
},
|
|
186
|
-
ffi_dbx_tools_auth_rust_future_free_f32: {
|
|
187
|
-
args: [FfiType.Handle],
|
|
188
|
-
ret: FfiType.Void,
|
|
189
|
-
hasRustCallStatus: false
|
|
190
|
-
},
|
|
191
|
-
ffi_dbx_tools_auth_rust_future_poll_f64: {
|
|
192
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
193
|
-
ret: FfiType.Void,
|
|
194
|
-
hasRustCallStatus: false
|
|
195
|
-
},
|
|
196
|
-
ffi_dbx_tools_auth_rust_future_cancel_f64: {
|
|
197
|
-
args: [FfiType.Handle],
|
|
198
|
-
ret: FfiType.Void,
|
|
199
|
-
hasRustCallStatus: false
|
|
200
|
-
},
|
|
201
|
-
ffi_dbx_tools_auth_rust_future_complete_f64: {
|
|
202
|
-
args: [FfiType.Handle],
|
|
203
|
-
ret: FfiType.Float64,
|
|
204
|
-
hasRustCallStatus: true
|
|
205
|
-
},
|
|
206
|
-
ffi_dbx_tools_auth_rust_future_free_f64: {
|
|
207
|
-
args: [FfiType.Handle],
|
|
208
|
-
ret: FfiType.Void,
|
|
209
|
-
hasRustCallStatus: false
|
|
210
|
-
},
|
|
211
|
-
ffi_dbx_tools_auth_rust_future_poll_rust_buffer: {
|
|
212
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
213
|
-
ret: FfiType.Void,
|
|
214
|
-
hasRustCallStatus: false
|
|
215
|
-
},
|
|
216
|
-
ffi_dbx_tools_auth_rust_future_cancel_rust_buffer: {
|
|
217
|
-
args: [FfiType.Handle],
|
|
218
|
-
ret: FfiType.Void,
|
|
219
|
-
hasRustCallStatus: false
|
|
220
|
-
},
|
|
221
|
-
ffi_dbx_tools_auth_rust_future_complete_rust_buffer: {
|
|
222
|
-
args: [FfiType.Handle],
|
|
223
|
-
ret: FfiType.RustBuffer,
|
|
224
|
-
hasRustCallStatus: true
|
|
225
|
-
},
|
|
226
|
-
ffi_dbx_tools_auth_rust_future_free_rust_buffer: {
|
|
227
|
-
args: [FfiType.Handle],
|
|
228
|
-
ret: FfiType.Void,
|
|
229
|
-
hasRustCallStatus: false
|
|
230
|
-
},
|
|
231
|
-
ffi_dbx_tools_auth_rust_future_poll_void: {
|
|
232
|
-
args: [FfiType.Handle, FfiType.Callback("RustFutureContinuationCallback"), FfiType.Handle],
|
|
233
|
-
ret: FfiType.Void,
|
|
234
|
-
hasRustCallStatus: false
|
|
235
|
-
},
|
|
236
|
-
ffi_dbx_tools_auth_rust_future_cancel_void: {
|
|
237
|
-
args: [FfiType.Handle],
|
|
238
|
-
ret: FfiType.Void,
|
|
239
|
-
hasRustCallStatus: false
|
|
240
|
-
},
|
|
241
|
-
ffi_dbx_tools_auth_rust_future_complete_void: {
|
|
242
|
-
args: [FfiType.Handle],
|
|
243
|
-
ret: FfiType.Void,
|
|
244
|
-
hasRustCallStatus: true
|
|
245
|
-
},
|
|
246
|
-
ffi_dbx_tools_auth_rust_future_free_void: {
|
|
247
|
-
args: [FfiType.Handle],
|
|
248
|
-
ret: FfiType.Void,
|
|
249
|
-
hasRustCallStatus: false
|
|
250
|
-
},
|
|
251
|
-
uniffi_dbx_tools_auth_fn_clone_providerauth: {
|
|
252
|
-
args: [FfiType.Handle],
|
|
253
|
-
ret: FfiType.Handle,
|
|
254
|
-
hasRustCallStatus: true
|
|
255
|
-
},
|
|
256
|
-
uniffi_dbx_tools_auth_fn_free_providerauth: {
|
|
257
|
-
args: [FfiType.Handle],
|
|
258
|
-
ret: FfiType.Void,
|
|
259
|
-
hasRustCallStatus: true
|
|
260
|
-
},
|
|
261
|
-
uniffi_dbx_tools_auth_fn_clone_storageadapter: {
|
|
262
|
-
args: [FfiType.Handle],
|
|
263
|
-
ret: FfiType.Handle,
|
|
264
|
-
hasRustCallStatus: true
|
|
265
|
-
},
|
|
266
|
-
uniffi_dbx_tools_auth_fn_free_storageadapter: {
|
|
267
|
-
args: [FfiType.Handle],
|
|
268
|
-
ret: FfiType.Void,
|
|
269
|
-
hasRustCallStatus: true
|
|
270
|
-
},
|
|
271
|
-
uniffi_dbx_tools_auth_fn_clone_storagehandle: {
|
|
272
|
-
args: [FfiType.Handle],
|
|
273
|
-
ret: FfiType.Handle,
|
|
274
|
-
hasRustCallStatus: true
|
|
275
|
-
},
|
|
276
|
-
uniffi_dbx_tools_auth_fn_free_storagehandle: {
|
|
277
|
-
args: [FfiType.Handle],
|
|
278
|
-
ret: FfiType.Void,
|
|
279
|
-
hasRustCallStatus: true
|
|
280
|
-
},
|
|
281
|
-
uniffi_dbx_tools_auth_fn_init_callback_vtable_storageadapter: {
|
|
282
|
-
args: [FfiType.Reference(FfiType.Struct("VTableCallbackInterfaceDbxToolsAuthStorageAdapter"))],
|
|
283
|
-
ret: FfiType.Void,
|
|
284
|
-
hasRustCallStatus: false
|
|
285
|
-
},
|
|
286
|
-
uniffi_dbx_tools_auth_fn_func_canonical_scopes: {
|
|
287
|
-
args: [FfiType.RustBuffer],
|
|
288
|
-
ret: FfiType.RustBuffer,
|
|
289
|
-
hasRustCallStatus: true
|
|
290
|
-
},
|
|
291
|
-
uniffi_dbx_tools_auth_fn_func_create_provider_auth: {
|
|
292
|
-
args: [FfiType.RustBuffer],
|
|
293
|
-
ret: FfiType.Handle,
|
|
294
|
-
hasRustCallStatus: false
|
|
295
|
-
},
|
|
296
|
-
uniffi_dbx_tools_auth_fn_func_create_provider_auth_with_storage: {
|
|
297
|
-
args: [FfiType.RustBuffer, FfiType.Handle],
|
|
298
|
-
ret: FfiType.Handle,
|
|
299
|
-
hasRustCallStatus: false
|
|
300
|
-
},
|
|
301
|
-
uniffi_dbx_tools_auth_fn_func_create_storage_handle: {
|
|
302
|
-
args: [FfiType.Handle],
|
|
303
|
-
ret: FfiType.Handle,
|
|
304
|
-
hasRustCallStatus: true
|
|
305
|
-
},
|
|
306
|
-
uniffi_dbx_tools_auth_fn_func_credential_key: {
|
|
307
|
-
args: [FfiType.RustBuffer, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
308
|
-
ret: FfiType.RustBuffer,
|
|
309
|
-
hasRustCallStatus: true
|
|
310
|
-
},
|
|
311
|
-
uniffi_dbx_tools_auth_fn_method_providerauth_force_refresh_token: {
|
|
312
|
-
args: [FfiType.Handle],
|
|
313
|
-
ret: FfiType.Handle,
|
|
314
|
-
hasRustCallStatus: false
|
|
315
|
-
},
|
|
316
|
-
uniffi_dbx_tools_auth_fn_method_providerauth_logout: {
|
|
317
|
-
args: [FfiType.Handle],
|
|
318
|
-
ret: FfiType.Handle,
|
|
319
|
-
hasRustCallStatus: false
|
|
320
|
-
},
|
|
321
|
-
uniffi_dbx_tools_auth_fn_method_providerauth_refresh_rejected_token: {
|
|
322
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
323
|
-
ret: FfiType.Handle,
|
|
324
|
-
hasRustCallStatus: false
|
|
325
|
-
},
|
|
326
|
-
uniffi_dbx_tools_auth_fn_method_providerauth_token: {
|
|
327
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
328
|
-
ret: FfiType.Handle,
|
|
329
|
-
hasRustCallStatus: false
|
|
330
|
-
},
|
|
331
|
-
uniffi_dbx_tools_auth_fn_method_storageadapter_load: {
|
|
332
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
333
|
-
ret: FfiType.Handle,
|
|
334
|
-
hasRustCallStatus: false
|
|
335
|
-
},
|
|
336
|
-
uniffi_dbx_tools_auth_fn_method_storageadapter_prepare_write: {
|
|
337
|
-
args: [FfiType.Handle],
|
|
338
|
-
ret: FfiType.Handle,
|
|
339
|
-
hasRustCallStatus: false
|
|
340
|
-
},
|
|
341
|
-
uniffi_dbx_tools_auth_fn_method_storageadapter_save: {
|
|
342
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer],
|
|
343
|
-
ret: FfiType.Handle,
|
|
344
|
-
hasRustCallStatus: false
|
|
345
|
-
},
|
|
346
|
-
uniffi_dbx_tools_auth_fn_method_storageadapter_remove: {
|
|
347
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
348
|
-
ret: FfiType.Handle,
|
|
349
|
-
hasRustCallStatus: false
|
|
350
|
-
},
|
|
351
|
-
uniffi_dbx_tools_auth_fn_method_storageadapter_acquire_lock: {
|
|
352
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64],
|
|
353
|
-
ret: FfiType.Handle,
|
|
354
|
-
hasRustCallStatus: false
|
|
355
|
-
},
|
|
356
|
-
uniffi_dbx_tools_auth_fn_method_storageadapter_release_lock: {
|
|
357
|
-
args: [FfiType.Handle, FfiType.RustBuffer],
|
|
358
|
-
ret: FfiType.Handle,
|
|
359
|
-
hasRustCallStatus: false
|
|
360
|
-
},
|
|
361
|
-
uniffi_dbx_tools_auth_fn_method_storageadapter_name: {
|
|
362
|
-
args: [FfiType.Handle],
|
|
363
|
-
ret: FfiType.RustBuffer,
|
|
364
|
-
hasRustCallStatus: true
|
|
365
|
-
},
|
|
366
|
-
ffi_dbx_tools_auth_uniffi_contract_version: {
|
|
367
|
-
args: [],
|
|
368
|
-
ret: FfiType.UInt32,
|
|
369
|
-
hasRustCallStatus: false
|
|
370
|
-
},
|
|
371
|
-
uniffi_dbx_tools_auth_checksum_func_canonical_scopes: {
|
|
372
|
-
args: [],
|
|
373
|
-
ret: FfiType.UInt16,
|
|
374
|
-
hasRustCallStatus: false
|
|
375
|
-
},
|
|
376
|
-
uniffi_dbx_tools_auth_checksum_func_create_provider_auth: {
|
|
377
|
-
args: [],
|
|
378
|
-
ret: FfiType.UInt16,
|
|
379
|
-
hasRustCallStatus: false
|
|
380
|
-
},
|
|
381
|
-
uniffi_dbx_tools_auth_checksum_func_create_provider_auth_with_storage: {
|
|
382
|
-
args: [],
|
|
383
|
-
ret: FfiType.UInt16,
|
|
384
|
-
hasRustCallStatus: false
|
|
385
|
-
},
|
|
386
|
-
uniffi_dbx_tools_auth_checksum_func_create_storage_handle: {
|
|
387
|
-
args: [],
|
|
388
|
-
ret: FfiType.UInt16,
|
|
389
|
-
hasRustCallStatus: false
|
|
390
|
-
},
|
|
391
|
-
uniffi_dbx_tools_auth_checksum_func_credential_key: {
|
|
392
|
-
args: [],
|
|
393
|
-
ret: FfiType.UInt16,
|
|
394
|
-
hasRustCallStatus: false
|
|
395
|
-
},
|
|
396
|
-
uniffi_dbx_tools_auth_checksum_method_providerauth_force_refresh_token: {
|
|
397
|
-
args: [],
|
|
398
|
-
ret: FfiType.UInt16,
|
|
399
|
-
hasRustCallStatus: false
|
|
400
|
-
},
|
|
401
|
-
uniffi_dbx_tools_auth_checksum_method_providerauth_logout: {
|
|
402
|
-
args: [],
|
|
403
|
-
ret: FfiType.UInt16,
|
|
404
|
-
hasRustCallStatus: false
|
|
405
|
-
},
|
|
406
|
-
uniffi_dbx_tools_auth_checksum_method_providerauth_refresh_rejected_token: {
|
|
407
|
-
args: [],
|
|
408
|
-
ret: FfiType.UInt16,
|
|
409
|
-
hasRustCallStatus: false
|
|
410
|
-
},
|
|
411
|
-
uniffi_dbx_tools_auth_checksum_method_providerauth_token: {
|
|
412
|
-
args: [],
|
|
413
|
-
ret: FfiType.UInt16,
|
|
414
|
-
hasRustCallStatus: false
|
|
415
|
-
},
|
|
416
|
-
uniffi_dbx_tools_auth_checksum_method_storageadapter_load: {
|
|
417
|
-
args: [],
|
|
418
|
-
ret: FfiType.UInt16,
|
|
419
|
-
hasRustCallStatus: false
|
|
420
|
-
},
|
|
421
|
-
uniffi_dbx_tools_auth_checksum_method_storageadapter_prepare_write: {
|
|
422
|
-
args: [],
|
|
423
|
-
ret: FfiType.UInt16,
|
|
424
|
-
hasRustCallStatus: false
|
|
425
|
-
},
|
|
426
|
-
uniffi_dbx_tools_auth_checksum_method_storageadapter_save: {
|
|
427
|
-
args: [],
|
|
428
|
-
ret: FfiType.UInt16,
|
|
429
|
-
hasRustCallStatus: false
|
|
430
|
-
},
|
|
431
|
-
uniffi_dbx_tools_auth_checksum_method_storageadapter_remove: {
|
|
432
|
-
args: [],
|
|
433
|
-
ret: FfiType.UInt16,
|
|
434
|
-
hasRustCallStatus: false
|
|
435
|
-
},
|
|
436
|
-
uniffi_dbx_tools_auth_checksum_method_storageadapter_acquire_lock: {
|
|
437
|
-
args: [],
|
|
438
|
-
ret: FfiType.UInt16,
|
|
439
|
-
hasRustCallStatus: false
|
|
440
|
-
},
|
|
441
|
-
uniffi_dbx_tools_auth_checksum_method_storageadapter_release_lock: {
|
|
442
|
-
args: [],
|
|
443
|
-
ret: FfiType.UInt16,
|
|
444
|
-
hasRustCallStatus: false
|
|
445
|
-
},
|
|
446
|
-
uniffi_dbx_tools_auth_checksum_method_storageadapter_name: {
|
|
447
|
-
args: [],
|
|
448
|
-
ret: FfiType.UInt16,
|
|
449
|
-
hasRustCallStatus: false
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
callbacks: {
|
|
453
|
-
RustFutureContinuationCallback: {
|
|
454
|
-
args: [FfiType.Handle, FfiType.Int8],
|
|
455
|
-
ret: FfiType.Void,
|
|
456
|
-
hasRustCallStatus: false
|
|
457
|
-
},
|
|
458
|
-
ForeignFutureDroppedCallback: {
|
|
459
|
-
args: [FfiType.Handle],
|
|
460
|
-
ret: FfiType.Void,
|
|
461
|
-
hasRustCallStatus: false
|
|
462
|
-
},
|
|
463
|
-
ForeignFutureCompleterust_buffer: {
|
|
464
|
-
args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultRustBuffer")],
|
|
465
|
-
ret: FfiType.Void,
|
|
466
|
-
hasRustCallStatus: false
|
|
467
|
-
},
|
|
468
|
-
CallbackInterfaceDbxToolsAuthStorageAdapterMethod0: {
|
|
469
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
470
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
471
|
-
hasRustCallStatus: false,
|
|
472
|
-
outReturn: true
|
|
473
|
-
},
|
|
474
|
-
ForeignFutureCompletevoid: {
|
|
475
|
-
args: [FfiType.Handle, FfiType.Struct("ForeignFutureResultVoid")],
|
|
476
|
-
ret: FfiType.Void,
|
|
477
|
-
hasRustCallStatus: false
|
|
478
|
-
},
|
|
479
|
-
CallbackInterfaceDbxToolsAuthStorageAdapterMethod1: {
|
|
480
|
-
args: [FfiType.Handle, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
481
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
482
|
-
hasRustCallStatus: false,
|
|
483
|
-
outReturn: true
|
|
484
|
-
},
|
|
485
|
-
CallbackInterfaceDbxToolsAuthStorageAdapterMethod2: {
|
|
486
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
487
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
488
|
-
hasRustCallStatus: false,
|
|
489
|
-
outReturn: true
|
|
490
|
-
},
|
|
491
|
-
CallbackInterfaceDbxToolsAuthStorageAdapterMethod3: {
|
|
492
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
493
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
494
|
-
hasRustCallStatus: false,
|
|
495
|
-
outReturn: true
|
|
496
|
-
},
|
|
497
|
-
CallbackInterfaceDbxToolsAuthStorageAdapterMethod4: {
|
|
498
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.UInt64, FfiType.Callback("ForeignFutureCompleterust_buffer"), FfiType.Handle],
|
|
499
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
500
|
-
hasRustCallStatus: false,
|
|
501
|
-
outReturn: true
|
|
502
|
-
},
|
|
503
|
-
CallbackInterfaceDbxToolsAuthStorageAdapterMethod5: {
|
|
504
|
-
args: [FfiType.Handle, FfiType.RustBuffer, FfiType.Callback("ForeignFutureCompletevoid"), FfiType.Handle],
|
|
505
|
-
ret: FfiType.Struct("ForeignFutureDroppedCallbackStruct"),
|
|
506
|
-
hasRustCallStatus: false,
|
|
507
|
-
outReturn: true
|
|
508
|
-
},
|
|
509
|
-
CallbackInterfaceDbxToolsAuthStorageAdapterMethod6: {
|
|
510
|
-
args: [FfiType.Handle],
|
|
511
|
-
ret: FfiType.RustBuffer,
|
|
512
|
-
hasRustCallStatus: true,
|
|
513
|
-
outReturn: true
|
|
514
|
-
},
|
|
515
|
-
CallbackInterfaceCloneDbxToolsAuth_StorageAdapter: {
|
|
516
|
-
args: [FfiType.Handle],
|
|
517
|
-
ret: FfiType.Handle,
|
|
518
|
-
hasRustCallStatus: false
|
|
519
|
-
},
|
|
520
|
-
CallbackInterfaceFreeDbxToolsAuth_StorageAdapter: {
|
|
521
|
-
args: [FfiType.Handle],
|
|
522
|
-
ret: FfiType.Void,
|
|
523
|
-
hasRustCallStatus: false
|
|
524
|
-
}
|
|
525
|
-
},
|
|
526
|
-
structs: {
|
|
527
|
-
ForeignFutureDroppedCallbackStruct: [
|
|
528
|
-
{ name: "handle", type: FfiType.Handle },
|
|
529
|
-
{ name: "free", type: FfiType.Callback("ForeignFutureDroppedCallback") }
|
|
530
|
-
],
|
|
531
|
-
ForeignFutureResultRustBuffer: [
|
|
532
|
-
{ name: "return_value", type: FfiType.RustBuffer },
|
|
533
|
-
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
534
|
-
],
|
|
535
|
-
ForeignFutureResultVoid: [
|
|
536
|
-
{ name: "call_status", type: FfiType.RustCallStatus }
|
|
537
|
-
],
|
|
538
|
-
VTableCallbackInterfaceDbxToolsAuthStorageAdapter: [
|
|
539
|
-
{ name: "uniffi_free", type: FfiType.Callback("CallbackInterfaceFreeDbxToolsAuth_StorageAdapter") },
|
|
540
|
-
{ name: "uniffi_clone", type: FfiType.Callback("CallbackInterfaceCloneDbxToolsAuth_StorageAdapter") },
|
|
541
|
-
{ name: "load", type: FfiType.Callback("CallbackInterfaceDbxToolsAuthStorageAdapterMethod0") },
|
|
542
|
-
{ name: "prepare_write", type: FfiType.Callback("CallbackInterfaceDbxToolsAuthStorageAdapterMethod1") },
|
|
543
|
-
{ name: "save", type: FfiType.Callback("CallbackInterfaceDbxToolsAuthStorageAdapterMethod2") },
|
|
544
|
-
{ name: "remove", type: FfiType.Callback("CallbackInterfaceDbxToolsAuthStorageAdapterMethod3") },
|
|
545
|
-
{ name: "acquire_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsAuthStorageAdapterMethod4") },
|
|
546
|
-
{ name: "release_lock", type: FfiType.Callback("CallbackInterfaceDbxToolsAuthStorageAdapterMethod5") },
|
|
547
|
-
{ name: "name", type: FfiType.Callback("CallbackInterfaceDbxToolsAuthStorageAdapterMethod6") }
|
|
548
|
-
]
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
var _nativeModule;
|
|
552
|
-
var getter = () => {
|
|
553
|
-
if (!_nativeModule) {
|
|
554
|
-
const libPath = resolveLibPath({
|
|
555
|
-
crateName: "dbx_tools_auth",
|
|
556
|
-
callerUrl: import.meta.url,
|
|
557
|
-
npmPackageBase: "@dbx-tools/auth-",
|
|
558
|
-
tripleStyle: "node"
|
|
559
|
-
});
|
|
560
|
-
const mod_ = UniffiNativeModule.open(libPath);
|
|
561
|
-
_nativeModule = mod_.register(DEFINITIONS);
|
|
562
|
-
}
|
|
563
|
-
return _nativeModule;
|
|
564
|
-
};
|
|
565
|
-
var _bindings_ffi_default = getter;
|
|
566
|
-
|
|
567
|
-
// src/_bindings.ts
|
|
568
|
-
import {
|
|
569
|
-
AbstractFfiConverterByteArray,
|
|
570
|
-
FfiConverterArray,
|
|
571
|
-
FfiConverterBool,
|
|
572
|
-
FfiConverterInt64,
|
|
573
|
-
FfiConverterObject,
|
|
574
|
-
FfiConverterObjectWithCallbacks,
|
|
575
|
-
FfiConverterOptional,
|
|
576
|
-
FfiConverterUInt64,
|
|
577
|
-
UniffiAbstractObject,
|
|
578
|
-
UniffiError,
|
|
579
|
-
UniffiInternalError,
|
|
580
|
-
UniffiResult,
|
|
581
|
-
UniffiRustCaller,
|
|
582
|
-
destructorGuardSymbol,
|
|
583
|
-
pointerLiteralSymbol,
|
|
584
|
-
uniffiCreateFfiConverterString,
|
|
585
|
-
uniffiCreateRecord,
|
|
586
|
-
uniffiRustCallAsync,
|
|
587
|
-
uniffiTraitInterfaceCall,
|
|
588
|
-
uniffiTraitInterfaceCallAsyncWithError,
|
|
589
|
-
uniffiTypeNameSymbol
|
|
590
|
-
} from "@ubjs/core";
|
|
591
|
-
var uniffiCaller = new UniffiRustCaller(() => ({ code: 0 }));
|
|
592
|
-
var uniffiIsDebug = typeof process !== "object" || process?.env?.NODE_ENV !== "production" || false;
|
|
593
|
-
function canonicalScopes(scopes) {
|
|
594
|
-
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
595
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_func_canonical_scopes(FfiConverterSequenceString.lower(scopes, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
596
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
597
|
-
try {
|
|
598
|
-
return FfiConverterSequenceString.lift(__rb);
|
|
599
|
-
} finally {
|
|
600
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
async function createProviderAuth(options, asyncOpts_) {
|
|
604
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
605
|
-
try {
|
|
606
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
607
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_func_create_provider_auth(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc));
|
|
608
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
609
|
-
} catch (__error) {
|
|
610
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
611
|
-
__error.stack = __stack;
|
|
612
|
-
}
|
|
613
|
-
throw __error;
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
async function createProviderAuthWithStorage(options, storage, asyncOpts_) {
|
|
617
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
618
|
-
try {
|
|
619
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
620
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_func_create_provider_auth_with_storage(FfiConverterTypeProviderOptions.lower(options, _bindings_ffi_default().rustbuffer_alloc), FfiConverterTypeStorageHandle.lower(storage, _bindings_ffi_default().rustbuffer_alloc));
|
|
621
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_u64, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_u64, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_u64, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_u64, FfiConverterTypeProviderAuth.lift.bind(FfiConverterTypeProviderAuth), FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
622
|
-
} catch (__error) {
|
|
623
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
624
|
-
__error.stack = __stack;
|
|
625
|
-
}
|
|
626
|
-
throw __error;
|
|
627
|
-
}
|
|
628
|
-
}
|
|
629
|
-
function createStorageHandle(storage) {
|
|
630
|
-
return FfiConverterTypeStorageHandle.lift(uniffiCaller.rustCall((callStatus) => {
|
|
631
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_func_create_storage_handle(FfiConverterTypeStorageAdapter.lower(storage, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
632
|
-
}, FfiConverterString.lift.bind(FfiConverterString)));
|
|
633
|
-
}
|
|
634
|
-
function credentialKey(provider, profile, scopes) {
|
|
635
|
-
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
636
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_func_credential_key(FfiConverterString.lower(provider, _bindings_ffi_default().rustbuffer_alloc), FfiConverterOptionalString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterSequenceString.lower(scopes, _bindings_ffi_default().rustbuffer_alloc), callStatus);
|
|
637
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
638
|
-
try {
|
|
639
|
-
return FfiConverterString.lift(__rb);
|
|
640
|
-
} finally {
|
|
641
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
642
|
-
}
|
|
643
|
-
}
|
|
644
|
-
var stringConverter = (() => {
|
|
645
|
-
const encoder = new TextEncoder;
|
|
646
|
-
const decoder = new TextDecoder;
|
|
647
|
-
return {
|
|
648
|
-
stringToBytes: (s) => encoder.encode(s),
|
|
649
|
-
bytesToString: (ab) => decoder.decode(ab),
|
|
650
|
-
stringByteLength: (s) => encoder.encode(s).byteLength,
|
|
651
|
-
writeStringIntoBuffer: (s, buf, offset) => {
|
|
652
|
-
const view = new Uint8Array(buf.arrayBuffer, offset, buf.arrayBuffer.byteLength - offset);
|
|
653
|
-
return encoder.encodeInto(s, view).written;
|
|
654
|
-
},
|
|
655
|
-
readStringFromBuffer: (buf, offset, length) => decoder.decode(new Uint8Array(buf.arrayBuffer, offset, length))
|
|
656
|
-
};
|
|
657
|
-
})();
|
|
658
|
-
var FfiConverterString = uniffiCreateFfiConverterString(stringConverter);
|
|
659
|
-
var AccessToken = (() => {
|
|
660
|
-
const defaults = () => ({});
|
|
661
|
-
const create = (() => {
|
|
662
|
-
return uniffiCreateRecord(defaults);
|
|
663
|
-
})();
|
|
664
|
-
return Object.freeze({
|
|
665
|
-
create,
|
|
666
|
-
new: create,
|
|
667
|
-
defaults: () => Object.freeze(defaults())
|
|
668
|
-
});
|
|
669
|
-
})();
|
|
670
|
-
var FfiConverterTypeAccessToken = (() => {
|
|
671
|
-
|
|
672
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
673
|
-
readFromCursor(c) {
|
|
674
|
-
return {
|
|
675
|
-
accessToken: FfiConverterString.readFromCursor(c),
|
|
676
|
-
tokenType: FfiConverterString.readFromCursor(c),
|
|
677
|
-
expiry: FfiConverterOptionalString.readFromCursor(c),
|
|
678
|
-
scopes: FfiConverterSequenceString.readFromCursor(c)
|
|
679
|
-
};
|
|
680
|
-
}
|
|
681
|
-
writeIntoCursor(value, c) {
|
|
682
|
-
FfiConverterString.writeIntoCursor(value.accessToken, c);
|
|
683
|
-
FfiConverterString.writeIntoCursor(value.tokenType, c);
|
|
684
|
-
FfiConverterOptionalString.writeIntoCursor(value.expiry, c);
|
|
685
|
-
FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
|
|
686
|
-
}
|
|
687
|
-
allocationSize(value) {
|
|
688
|
-
return FfiConverterString.allocationSize(value.accessToken) + FfiConverterString.allocationSize(value.tokenType) + FfiConverterOptionalString.allocationSize(value.expiry) + FfiConverterSequenceString.allocationSize(value.scopes);
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
return new FFIConverter;
|
|
692
|
-
})();
|
|
693
|
-
var AuthOptions = (() => {
|
|
694
|
-
const defaults = () => ({
|
|
695
|
-
refreshBufferSeconds: BigInt("300"),
|
|
696
|
-
lockTimeoutSeconds: BigInt("30"),
|
|
697
|
-
loginTimeoutSeconds: BigInt("3600"),
|
|
698
|
-
callbackImageSrc: undefined
|
|
699
|
-
});
|
|
700
|
-
const create = (() => {
|
|
701
|
-
return uniffiCreateRecord(defaults);
|
|
702
|
-
})();
|
|
703
|
-
return Object.freeze({
|
|
704
|
-
create,
|
|
705
|
-
new: create,
|
|
706
|
-
defaults: () => Object.freeze(defaults())
|
|
707
|
-
});
|
|
708
|
-
})();
|
|
709
|
-
var FfiConverterTypeAuthOptions = (() => {
|
|
710
|
-
|
|
711
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
712
|
-
readFromCursor(c) {
|
|
713
|
-
return {
|
|
714
|
-
refreshBufferSeconds: FfiConverterInt64.readFromCursor(c),
|
|
715
|
-
lockTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
|
|
716
|
-
loginTimeoutSeconds: FfiConverterUInt64.readFromCursor(c),
|
|
717
|
-
callbackImageSrc: FfiConverterOptionalString.readFromCursor(c)
|
|
718
|
-
};
|
|
719
|
-
}
|
|
720
|
-
writeIntoCursor(value, c) {
|
|
721
|
-
FfiConverterInt64.writeIntoCursor(value.refreshBufferSeconds, c);
|
|
722
|
-
FfiConverterUInt64.writeIntoCursor(value.lockTimeoutSeconds, c);
|
|
723
|
-
FfiConverterUInt64.writeIntoCursor(value.loginTimeoutSeconds, c);
|
|
724
|
-
FfiConverterOptionalString.writeIntoCursor(value.callbackImageSrc, c);
|
|
725
|
-
}
|
|
726
|
-
allocationSize(value) {
|
|
727
|
-
return FfiConverterInt64.allocationSize(value.refreshBufferSeconds) + FfiConverterUInt64.allocationSize(value.lockTimeoutSeconds) + FfiConverterUInt64.allocationSize(value.loginTimeoutSeconds) + FfiConverterOptionalString.allocationSize(value.callbackImageSrc);
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
return new FFIConverter;
|
|
731
|
-
})();
|
|
732
|
-
var OAuthGrant;
|
|
733
|
-
((OAuthGrant2) => {
|
|
734
|
-
OAuthGrant2[OAuthGrant2["AuthorizationCode"] = 0] = "AuthorizationCode";
|
|
735
|
-
OAuthGrant2[OAuthGrant2["ClientCredentials"] = 1] = "ClientCredentials";
|
|
736
|
-
})(OAuthGrant ||= {});
|
|
737
|
-
var FfiConverterTypeOAuthGrant = (() => {
|
|
738
|
-
|
|
739
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
740
|
-
readFromCursor(c) {
|
|
741
|
-
switch (c.readI32()) {
|
|
742
|
-
case 1:
|
|
743
|
-
return 0 /* AuthorizationCode */;
|
|
744
|
-
case 2:
|
|
745
|
-
return 1 /* ClientCredentials */;
|
|
746
|
-
default:
|
|
747
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
writeIntoCursor(value, c) {
|
|
751
|
-
switch (value) {
|
|
752
|
-
case 0 /* AuthorizationCode */:
|
|
753
|
-
return c.writeI32(1);
|
|
754
|
-
case 1 /* ClientCredentials */:
|
|
755
|
-
return c.writeI32(2);
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
allocationSize(value) {
|
|
759
|
-
return 4;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
return new FFIConverter;
|
|
763
|
-
})();
|
|
764
|
-
var Storage;
|
|
765
|
-
((Storage2) => {
|
|
766
|
-
Storage2[Storage2["Auto"] = 0] = "Auto";
|
|
767
|
-
Storage2[Storage2["Memory"] = 1] = "Memory";
|
|
768
|
-
Storage2[Storage2["File"] = 2] = "File";
|
|
769
|
-
})(Storage ||= {});
|
|
770
|
-
var FfiConverterTypeStorage = (() => {
|
|
771
|
-
|
|
772
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
773
|
-
readFromCursor(c) {
|
|
774
|
-
switch (c.readI32()) {
|
|
775
|
-
case 1:
|
|
776
|
-
return 0 /* Auto */;
|
|
777
|
-
case 2:
|
|
778
|
-
return 1 /* Memory */;
|
|
779
|
-
case 3:
|
|
780
|
-
return 2 /* File */;
|
|
781
|
-
default:
|
|
782
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
783
|
-
}
|
|
784
|
-
}
|
|
785
|
-
writeIntoCursor(value, c) {
|
|
786
|
-
switch (value) {
|
|
787
|
-
case 0 /* Auto */:
|
|
788
|
-
return c.writeI32(1);
|
|
789
|
-
case 1 /* Memory */:
|
|
790
|
-
return c.writeI32(2);
|
|
791
|
-
case 2 /* File */:
|
|
792
|
-
return c.writeI32(3);
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
allocationSize(value) {
|
|
796
|
-
return 4;
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
return new FFIConverter;
|
|
800
|
-
})();
|
|
801
|
-
var FileLayout;
|
|
802
|
-
((FileLayout2) => {
|
|
803
|
-
FileLayout2[FileLayout2["Single"] = 0] = "Single";
|
|
804
|
-
FileLayout2[FileLayout2["PerCredential"] = 1] = "PerCredential";
|
|
805
|
-
})(FileLayout ||= {});
|
|
806
|
-
var FfiConverterTypeFileLayout = (() => {
|
|
807
|
-
|
|
808
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
809
|
-
readFromCursor(c) {
|
|
810
|
-
switch (c.readI32()) {
|
|
811
|
-
case 1:
|
|
812
|
-
return 0 /* Single */;
|
|
813
|
-
case 2:
|
|
814
|
-
return 1 /* PerCredential */;
|
|
815
|
-
default:
|
|
816
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
817
|
-
}
|
|
818
|
-
}
|
|
819
|
-
writeIntoCursor(value, c) {
|
|
820
|
-
switch (value) {
|
|
821
|
-
case 0 /* Single */:
|
|
822
|
-
return c.writeI32(1);
|
|
823
|
-
case 1 /* PerCredential */:
|
|
824
|
-
return c.writeI32(2);
|
|
825
|
-
}
|
|
826
|
-
}
|
|
827
|
-
allocationSize(value) {
|
|
828
|
-
return 4;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
return new FFIConverter;
|
|
832
|
-
})();
|
|
833
|
-
var ProviderOptions = (() => {
|
|
834
|
-
const defaults = () => ({
|
|
835
|
-
authorizationEndpoint: undefined,
|
|
836
|
-
clientSecret: undefined,
|
|
837
|
-
profile: undefined,
|
|
838
|
-
scopes: [],
|
|
839
|
-
grant: undefined,
|
|
840
|
-
cacheDir: undefined,
|
|
841
|
-
storage: undefined,
|
|
842
|
-
fileLayout: undefined,
|
|
843
|
-
auth: undefined
|
|
844
|
-
});
|
|
845
|
-
const create = (() => {
|
|
846
|
-
return uniffiCreateRecord(defaults);
|
|
847
|
-
})();
|
|
848
|
-
return Object.freeze({
|
|
849
|
-
create,
|
|
850
|
-
new: create,
|
|
851
|
-
defaults: () => Object.freeze(defaults())
|
|
852
|
-
});
|
|
853
|
-
})();
|
|
854
|
-
var FfiConverterTypeProviderOptions = (() => {
|
|
855
|
-
|
|
856
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
857
|
-
readFromCursor(c) {
|
|
858
|
-
return {
|
|
859
|
-
provider: FfiConverterString.readFromCursor(c),
|
|
860
|
-
clientId: FfiConverterString.readFromCursor(c),
|
|
861
|
-
tokenEndpoint: FfiConverterString.readFromCursor(c),
|
|
862
|
-
authorizationEndpoint: FfiConverterOptionalString.readFromCursor(c),
|
|
863
|
-
clientSecret: FfiConverterOptionalString.readFromCursor(c),
|
|
864
|
-
profile: FfiConverterOptionalString.readFromCursor(c),
|
|
865
|
-
scopes: FfiConverterSequenceString.readFromCursor(c),
|
|
866
|
-
grant: FfiConverterOptionalTypeOAuthGrant.readFromCursor(c),
|
|
867
|
-
cacheDir: FfiConverterOptionalString.readFromCursor(c),
|
|
868
|
-
storage: FfiConverterOptionalTypeStorage.readFromCursor(c),
|
|
869
|
-
fileLayout: FfiConverterOptionalTypeFileLayout.readFromCursor(c),
|
|
870
|
-
auth: FfiConverterOptionalTypeAuthOptions.readFromCursor(c)
|
|
871
|
-
};
|
|
872
|
-
}
|
|
873
|
-
writeIntoCursor(value, c) {
|
|
874
|
-
FfiConverterString.writeIntoCursor(value.provider, c);
|
|
875
|
-
FfiConverterString.writeIntoCursor(value.clientId, c);
|
|
876
|
-
FfiConverterString.writeIntoCursor(value.tokenEndpoint, c);
|
|
877
|
-
FfiConverterOptionalString.writeIntoCursor(value.authorizationEndpoint, c);
|
|
878
|
-
FfiConverterOptionalString.writeIntoCursor(value.clientSecret, c);
|
|
879
|
-
FfiConverterOptionalString.writeIntoCursor(value.profile, c);
|
|
880
|
-
FfiConverterSequenceString.writeIntoCursor(value.scopes, c);
|
|
881
|
-
FfiConverterOptionalTypeOAuthGrant.writeIntoCursor(value.grant, c);
|
|
882
|
-
FfiConverterOptionalString.writeIntoCursor(value.cacheDir, c);
|
|
883
|
-
FfiConverterOptionalTypeStorage.writeIntoCursor(value.storage, c);
|
|
884
|
-
FfiConverterOptionalTypeFileLayout.writeIntoCursor(value.fileLayout, c);
|
|
885
|
-
FfiConverterOptionalTypeAuthOptions.writeIntoCursor(value.auth, c);
|
|
886
|
-
}
|
|
887
|
-
allocationSize(value) {
|
|
888
|
-
return FfiConverterString.allocationSize(value.provider) + FfiConverterString.allocationSize(value.clientId) + FfiConverterString.allocationSize(value.tokenEndpoint) + FfiConverterOptionalString.allocationSize(value.authorizationEndpoint) + FfiConverterOptionalString.allocationSize(value.clientSecret) + FfiConverterOptionalString.allocationSize(value.profile) + FfiConverterSequenceString.allocationSize(value.scopes) + FfiConverterOptionalTypeOAuthGrant.allocationSize(value.grant) + FfiConverterOptionalString.allocationSize(value.cacheDir) + FfiConverterOptionalTypeStorage.allocationSize(value.storage) + FfiConverterOptionalTypeFileLayout.allocationSize(value.fileLayout) + FfiConverterOptionalTypeAuthOptions.allocationSize(value.auth);
|
|
889
|
-
}
|
|
890
|
-
}
|
|
891
|
-
return new FFIConverter;
|
|
892
|
-
})();
|
|
893
|
-
var AuthError_Tags;
|
|
894
|
-
((AuthError_Tags2) => {
|
|
895
|
-
AuthError_Tags2["Failure"] = "Failure";
|
|
896
|
-
})(AuthError_Tags ||= {});
|
|
897
|
-
var AuthError = (() => {
|
|
898
|
-
|
|
899
|
-
class Failure_ extends UniffiError {
|
|
900
|
-
[uniffiTypeNameSymbol] = "AuthError";
|
|
901
|
-
tag = "Failure" /* Failure */;
|
|
902
|
-
inner;
|
|
903
|
-
constructor(inner) {
|
|
904
|
-
super("AuthError", "Failure");
|
|
905
|
-
this.inner = Object.freeze(inner);
|
|
906
|
-
}
|
|
907
|
-
static new(inner) {
|
|
908
|
-
return new Failure_(inner);
|
|
909
|
-
}
|
|
910
|
-
static instanceOf(obj) {
|
|
911
|
-
return obj.tag === "Failure" /* Failure */;
|
|
912
|
-
}
|
|
913
|
-
static hasInner(obj) {
|
|
914
|
-
return Failure_.instanceOf(obj);
|
|
915
|
-
}
|
|
916
|
-
static getInner(obj) {
|
|
917
|
-
return obj.inner;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
function instanceOf(obj) {
|
|
921
|
-
return obj[uniffiTypeNameSymbol] === "AuthError";
|
|
922
|
-
}
|
|
923
|
-
return Object.freeze({
|
|
924
|
-
instanceOf,
|
|
925
|
-
Failure: Failure_
|
|
926
|
-
});
|
|
927
|
-
})();
|
|
928
|
-
var FfiConverterTypeAuthError = (() => {
|
|
929
|
-
|
|
930
|
-
class FFIConverter extends AbstractFfiConverterByteArray {
|
|
931
|
-
readFromCursor(c) {
|
|
932
|
-
switch (c.readI32()) {
|
|
933
|
-
case 1:
|
|
934
|
-
return new AuthError.Failure({ message: FfiConverterString.readFromCursor(c) });
|
|
935
|
-
default:
|
|
936
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
writeIntoCursor(value, c) {
|
|
940
|
-
switch (value.tag) {
|
|
941
|
-
case "Failure" /* Failure */: {
|
|
942
|
-
c.writeI32(1);
|
|
943
|
-
const inner = value.inner;
|
|
944
|
-
FfiConverterString.writeIntoCursor(inner.message, c);
|
|
945
|
-
return;
|
|
946
|
-
}
|
|
947
|
-
default:
|
|
948
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
allocationSize(value) {
|
|
952
|
-
switch (value.tag) {
|
|
953
|
-
case "Failure" /* Failure */: {
|
|
954
|
-
const inner = value.inner;
|
|
955
|
-
let size = 4;
|
|
956
|
-
size += FfiConverterString.allocationSize(inner.message);
|
|
957
|
-
return size;
|
|
958
|
-
}
|
|
959
|
-
default:
|
|
960
|
-
throw new UniffiInternalError.UnexpectedEnumCase;
|
|
961
|
-
}
|
|
962
|
-
}
|
|
963
|
-
}
|
|
964
|
-
return new FFIConverter;
|
|
965
|
-
})();
|
|
966
|
-
|
|
967
|
-
class ProviderAuth extends UniffiAbstractObject {
|
|
968
|
-
[uniffiTypeNameSymbol] = "ProviderAuth";
|
|
969
|
-
[destructorGuardSymbol];
|
|
970
|
-
[pointerLiteralSymbol];
|
|
971
|
-
constructor(pointer) {
|
|
972
|
-
super();
|
|
973
|
-
this[pointerLiteralSymbol] = pointer;
|
|
974
|
-
this[destructorGuardSymbol] = uniffiTypeProviderAuthObjectFactory.bless(pointer);
|
|
975
|
-
}
|
|
976
|
-
async forceRefreshToken(asyncOpts_) {
|
|
977
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
978
|
-
try {
|
|
979
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
980
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_providerauth_force_refresh_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
|
|
981
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_rust_buffer, (__rb) => {
|
|
982
|
-
try {
|
|
983
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
984
|
-
} finally {
|
|
985
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
986
|
-
}
|
|
987
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
988
|
-
} catch (__error) {
|
|
989
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
990
|
-
__error.stack = __stack;
|
|
991
|
-
}
|
|
992
|
-
throw __error;
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
async logout(asyncOpts_) {
|
|
996
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
997
|
-
try {
|
|
998
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
999
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_providerauth_logout(uniffiTypeProviderAuthObjectFactory.clonePointer(this));
|
|
1000
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1001
|
-
} catch (__error) {
|
|
1002
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1003
|
-
__error.stack = __stack;
|
|
1004
|
-
}
|
|
1005
|
-
throw __error;
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
async refreshRejectedToken(staleAccessToken, asyncOpts_) {
|
|
1009
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1010
|
-
try {
|
|
1011
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1012
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_providerauth_refresh_rejected_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterString.lower(staleAccessToken, _bindings_ffi_default().rustbuffer_alloc));
|
|
1013
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_rust_buffer, (__rb) => {
|
|
1014
|
-
try {
|
|
1015
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1016
|
-
} finally {
|
|
1017
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1018
|
-
}
|
|
1019
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1020
|
-
} catch (__error) {
|
|
1021
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1022
|
-
__error.stack = __stack;
|
|
1023
|
-
}
|
|
1024
|
-
throw __error;
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
async token(login = undefined, asyncOpts_) {
|
|
1028
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1029
|
-
try {
|
|
1030
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1031
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_providerauth_token(uniffiTypeProviderAuthObjectFactory.clonePointer(this), FfiConverterOptionalBoolean.lower(login, _bindings_ffi_default().rustbuffer_alloc));
|
|
1032
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_rust_buffer, (__rb) => {
|
|
1033
|
-
try {
|
|
1034
|
-
return FfiConverterTypeAccessToken.lift(__rb);
|
|
1035
|
-
} finally {
|
|
1036
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1037
|
-
}
|
|
1038
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1039
|
-
} catch (__error) {
|
|
1040
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1041
|
-
__error.stack = __stack;
|
|
1042
|
-
}
|
|
1043
|
-
throw __error;
|
|
1044
|
-
}
|
|
1045
|
-
}
|
|
1046
|
-
uniffiDestroy() {
|
|
1047
|
-
const ptr = this[destructorGuardSymbol];
|
|
1048
|
-
if (ptr !== undefined) {
|
|
1049
|
-
const pointer = uniffiTypeProviderAuthObjectFactory.pointer(this);
|
|
1050
|
-
uniffiTypeProviderAuthObjectFactory.freePointer(pointer);
|
|
1051
|
-
uniffiTypeProviderAuthObjectFactory.unbless(ptr);
|
|
1052
|
-
delete this[destructorGuardSymbol];
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
static instanceOf(obj_) {
|
|
1056
|
-
return uniffiTypeProviderAuthObjectFactory.isConcreteType(obj_);
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
var uniffiTypeProviderAuthObjectFactory = (() => {
|
|
1060
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1061
|
-
uniffiTypeProviderAuthObjectFactory.freePointer(heldValue);
|
|
1062
|
-
}) : null;
|
|
1063
|
-
return {
|
|
1064
|
-
create(pointer) {
|
|
1065
|
-
const instance = Object.create(ProviderAuth.prototype);
|
|
1066
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
1067
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1068
|
-
instance[uniffiTypeNameSymbol] = "ProviderAuth";
|
|
1069
|
-
return instance;
|
|
1070
|
-
},
|
|
1071
|
-
bless(p) {
|
|
1072
|
-
const ptr = {
|
|
1073
|
-
p,
|
|
1074
|
-
markDestroyed: () => {
|
|
1075
|
-
return;
|
|
1076
|
-
}
|
|
1077
|
-
};
|
|
1078
|
-
if (registry) {
|
|
1079
|
-
registry.register(ptr, p, ptr);
|
|
1080
|
-
}
|
|
1081
|
-
return ptr;
|
|
1082
|
-
},
|
|
1083
|
-
unbless(ptr_) {
|
|
1084
|
-
if (registry) {
|
|
1085
|
-
registry.unregister(ptr_);
|
|
1086
|
-
}
|
|
1087
|
-
},
|
|
1088
|
-
pointer(obj_) {
|
|
1089
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1090
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1091
|
-
}
|
|
1092
|
-
return obj_[pointerLiteralSymbol];
|
|
1093
|
-
},
|
|
1094
|
-
clonePointer(obj_) {
|
|
1095
|
-
const pointer = this.pointer(obj_);
|
|
1096
|
-
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_auth_fn_clone_providerauth(pointer, callStatus), FfiConverterString.lift);
|
|
1097
|
-
},
|
|
1098
|
-
freePointer(pointer) {
|
|
1099
|
-
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_auth_fn_free_providerauth(pointer, callStatus), FfiConverterString.lift);
|
|
1100
|
-
},
|
|
1101
|
-
isConcreteType(obj_) {
|
|
1102
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "ProviderAuth";
|
|
1103
|
-
}
|
|
1104
|
-
};
|
|
1105
|
-
})();
|
|
1106
|
-
var FfiConverterTypeProviderAuth = new FfiConverterObject(uniffiTypeProviderAuthObjectFactory);
|
|
1107
|
-
|
|
1108
|
-
class StorageAdapterImpl extends UniffiAbstractObject {
|
|
1109
|
-
[uniffiTypeNameSymbol] = "StorageAdapterImpl";
|
|
1110
|
-
[destructorGuardSymbol];
|
|
1111
|
-
[pointerLiteralSymbol];
|
|
1112
|
-
constructor(pointer) {
|
|
1113
|
-
super();
|
|
1114
|
-
this[pointerLiteralSymbol] = pointer;
|
|
1115
|
-
this[destructorGuardSymbol] = uniffiTypeStorageAdapterImplObjectFactory.bless(pointer);
|
|
1116
|
-
}
|
|
1117
|
-
async load(profile, asyncOpts_) {
|
|
1118
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1119
|
-
try {
|
|
1120
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1121
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_storageadapter_load(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
|
|
1122
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_rust_buffer, (__rb) => {
|
|
1123
|
-
try {
|
|
1124
|
-
return FfiConverterOptionalString.lift(__rb);
|
|
1125
|
-
} finally {
|
|
1126
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1127
|
-
}
|
|
1128
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1129
|
-
} catch (__error) {
|
|
1130
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1131
|
-
__error.stack = __stack;
|
|
1132
|
-
}
|
|
1133
|
-
throw __error;
|
|
1134
|
-
}
|
|
1135
|
-
}
|
|
1136
|
-
async prepareWrite(asyncOpts_) {
|
|
1137
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1138
|
-
try {
|
|
1139
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1140
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_storageadapter_prepare_write(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this));
|
|
1141
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1142
|
-
} catch (__error) {
|
|
1143
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1144
|
-
__error.stack = __stack;
|
|
1145
|
-
}
|
|
1146
|
-
throw __error;
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
async save(profile, token, asyncOpts_) {
|
|
1150
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1151
|
-
try {
|
|
1152
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1153
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_storageadapter_save(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterString.lower(token, _bindings_ffi_default().rustbuffer_alloc));
|
|
1154
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1155
|
-
} catch (__error) {
|
|
1156
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1157
|
-
__error.stack = __stack;
|
|
1158
|
-
}
|
|
1159
|
-
throw __error;
|
|
1160
|
-
}
|
|
1161
|
-
}
|
|
1162
|
-
async remove(profile, asyncOpts_) {
|
|
1163
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1164
|
-
try {
|
|
1165
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1166
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_storageadapter_remove(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc));
|
|
1167
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1168
|
-
} catch (__error) {
|
|
1169
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1170
|
-
__error.stack = __stack;
|
|
1171
|
-
}
|
|
1172
|
-
throw __error;
|
|
1173
|
-
}
|
|
1174
|
-
}
|
|
1175
|
-
async acquireLock(profile, timeoutMillis, asyncOpts_) {
|
|
1176
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1177
|
-
try {
|
|
1178
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1179
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_storageadapter_acquire_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(profile, _bindings_ffi_default().rustbuffer_alloc), FfiConverterUInt64.lower(timeoutMillis, _bindings_ffi_default().rustbuffer_alloc));
|
|
1180
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_rust_buffer, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_rust_buffer, (__rb) => {
|
|
1181
|
-
try {
|
|
1182
|
-
return FfiConverterString.lift(__rb);
|
|
1183
|
-
} finally {
|
|
1184
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1185
|
-
}
|
|
1186
|
-
}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1187
|
-
} catch (__error) {
|
|
1188
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1189
|
-
__error.stack = __stack;
|
|
1190
|
-
}
|
|
1191
|
-
throw __error;
|
|
1192
|
-
}
|
|
1193
|
-
}
|
|
1194
|
-
async releaseLock(lease, asyncOpts_) {
|
|
1195
|
-
const __stack = uniffiIsDebug ? new Error().stack : undefined;
|
|
1196
|
-
try {
|
|
1197
|
-
return await uniffiRustCallAsync(uniffiCaller, () => {
|
|
1198
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_storageadapter_release_lock(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), FfiConverterString.lower(lease, _bindings_ffi_default().rustbuffer_alloc));
|
|
1199
|
-
}, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_poll_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_cancel_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_complete_void, _bindings_ffi_default().ffi_dbx_tools_auth_rust_future_free_void, (_v) => {}, FfiConverterString.lift.bind(FfiConverterString), asyncOpts_, FfiConverterTypeAuthError.lift.bind(FfiConverterTypeAuthError));
|
|
1200
|
-
} catch (__error) {
|
|
1201
|
-
if (uniffiIsDebug && __error instanceof Error) {
|
|
1202
|
-
__error.stack = __stack;
|
|
1203
|
-
}
|
|
1204
|
-
throw __error;
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
name() {
|
|
1208
|
-
const __rb = uniffiCaller.rustCall((callStatus) => {
|
|
1209
|
-
return _bindings_ffi_default().uniffi_dbx_tools_auth_fn_method_storageadapter_name(uniffiTypeStorageAdapterImplObjectFactory.clonePointer(this), callStatus);
|
|
1210
|
-
}, FfiConverterString.lift.bind(FfiConverterString));
|
|
1211
|
-
try {
|
|
1212
|
-
return FfiConverterString.lift(__rb);
|
|
1213
|
-
} finally {
|
|
1214
|
-
_bindings_ffi_default().rustbuffer_free(__rb);
|
|
1215
|
-
}
|
|
1216
|
-
}
|
|
1217
|
-
uniffiDestroy() {
|
|
1218
|
-
const ptr = this[destructorGuardSymbol];
|
|
1219
|
-
if (ptr !== undefined) {
|
|
1220
|
-
const pointer = uniffiTypeStorageAdapterImplObjectFactory.pointer(this);
|
|
1221
|
-
uniffiTypeStorageAdapterImplObjectFactory.freePointer(pointer);
|
|
1222
|
-
uniffiTypeStorageAdapterImplObjectFactory.unbless(ptr);
|
|
1223
|
-
delete this[destructorGuardSymbol];
|
|
1224
|
-
}
|
|
1225
|
-
}
|
|
1226
|
-
static instanceOf(obj_) {
|
|
1227
|
-
return uniffiTypeStorageAdapterImplObjectFactory.isConcreteType(obj_);
|
|
1228
|
-
}
|
|
1229
|
-
}
|
|
1230
|
-
var uniffiTypeStorageAdapterImplObjectFactory = (() => {
|
|
1231
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1232
|
-
uniffiTypeStorageAdapterImplObjectFactory.freePointer(heldValue);
|
|
1233
|
-
}) : null;
|
|
1234
|
-
return {
|
|
1235
|
-
create(pointer) {
|
|
1236
|
-
const instance = Object.create(StorageAdapterImpl.prototype);
|
|
1237
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
1238
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1239
|
-
instance[uniffiTypeNameSymbol] = "StorageAdapterImpl";
|
|
1240
|
-
return instance;
|
|
1241
|
-
},
|
|
1242
|
-
bless(p) {
|
|
1243
|
-
const ptr = {
|
|
1244
|
-
p,
|
|
1245
|
-
markDestroyed: () => {
|
|
1246
|
-
return;
|
|
1247
|
-
}
|
|
1248
|
-
};
|
|
1249
|
-
if (registry) {
|
|
1250
|
-
registry.register(ptr, p, ptr);
|
|
1251
|
-
}
|
|
1252
|
-
return ptr;
|
|
1253
|
-
},
|
|
1254
|
-
unbless(ptr_) {
|
|
1255
|
-
if (registry) {
|
|
1256
|
-
registry.unregister(ptr_);
|
|
1257
|
-
}
|
|
1258
|
-
},
|
|
1259
|
-
pointer(obj_) {
|
|
1260
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1261
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1262
|
-
}
|
|
1263
|
-
return obj_[pointerLiteralSymbol];
|
|
1264
|
-
},
|
|
1265
|
-
clonePointer(obj_) {
|
|
1266
|
-
const pointer = this.pointer(obj_);
|
|
1267
|
-
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_auth_fn_clone_storageadapter(pointer, callStatus), FfiConverterString.lift);
|
|
1268
|
-
},
|
|
1269
|
-
freePointer(pointer) {
|
|
1270
|
-
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_auth_fn_free_storageadapter(pointer, callStatus), FfiConverterString.lift);
|
|
1271
|
-
},
|
|
1272
|
-
isConcreteType(obj_) {
|
|
1273
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageAdapterImpl";
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
})();
|
|
1277
|
-
var FfiConverterTypeStorageAdapter = new FfiConverterObjectWithCallbacks(uniffiTypeStorageAdapterImplObjectFactory);
|
|
1278
|
-
var uniffiCallbackInterfaceStorageAdapter = {
|
|
1279
|
-
vtable: {
|
|
1280
|
-
load: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1281
|
-
const uniffiMakeCall = async (signal) => {
|
|
1282
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1283
|
-
return await jsCallback.load(FfiConverterString.lift(profile), { signal });
|
|
1284
|
-
};
|
|
1285
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1286
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1287
|
-
return_value: FfiConverterOptionalString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
|
|
1288
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1289
|
-
});
|
|
1290
|
-
};
|
|
1291
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1292
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1293
|
-
return_value: new Uint8Array(0),
|
|
1294
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1295
|
-
});
|
|
1296
|
-
};
|
|
1297
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1298
|
-
return uniffiForeignFuture;
|
|
1299
|
-
},
|
|
1300
|
-
prepare_write: (uniffiHandle, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1301
|
-
const uniffiMakeCall = async (signal) => {
|
|
1302
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1303
|
-
return await jsCallback.prepareWrite({ signal });
|
|
1304
|
-
};
|
|
1305
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1306
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1307
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1308
|
-
});
|
|
1309
|
-
};
|
|
1310
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1311
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1312
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1313
|
-
});
|
|
1314
|
-
};
|
|
1315
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1316
|
-
return uniffiForeignFuture;
|
|
1317
|
-
},
|
|
1318
|
-
save: (uniffiHandle, profile, token, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1319
|
-
const uniffiMakeCall = async (signal) => {
|
|
1320
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1321
|
-
return await jsCallback.save(FfiConverterString.lift(profile), FfiConverterString.lift(token), { signal });
|
|
1322
|
-
};
|
|
1323
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1324
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1325
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1326
|
-
});
|
|
1327
|
-
};
|
|
1328
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1329
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1330
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1331
|
-
});
|
|
1332
|
-
};
|
|
1333
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1334
|
-
return uniffiForeignFuture;
|
|
1335
|
-
},
|
|
1336
|
-
remove: (uniffiHandle, profile, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1337
|
-
const uniffiMakeCall = async (signal) => {
|
|
1338
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1339
|
-
return await jsCallback.remove(FfiConverterString.lift(profile), { signal });
|
|
1340
|
-
};
|
|
1341
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1342
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1343
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1344
|
-
});
|
|
1345
|
-
};
|
|
1346
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1347
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1348
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1349
|
-
});
|
|
1350
|
-
};
|
|
1351
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1352
|
-
return uniffiForeignFuture;
|
|
1353
|
-
},
|
|
1354
|
-
acquire_lock: (uniffiHandle, profile, timeoutMillis, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1355
|
-
const uniffiMakeCall = async (signal) => {
|
|
1356
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1357
|
-
return await jsCallback.acquireLock(FfiConverterString.lift(profile), FfiConverterUInt64.lift(timeoutMillis), { signal });
|
|
1358
|
-
};
|
|
1359
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1360
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1361
|
-
return_value: FfiConverterString.lower(returnValue, _bindings_ffi_default().rustbuffer_alloc),
|
|
1362
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1363
|
-
});
|
|
1364
|
-
};
|
|
1365
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1366
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1367
|
-
return_value: new Uint8Array(0),
|
|
1368
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1369
|
-
});
|
|
1370
|
-
};
|
|
1371
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1372
|
-
return uniffiForeignFuture;
|
|
1373
|
-
},
|
|
1374
|
-
release_lock: (uniffiHandle, lease, uniffiFutureCallback, uniffiCallbackData) => {
|
|
1375
|
-
const uniffiMakeCall = async (signal) => {
|
|
1376
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1377
|
-
return await jsCallback.releaseLock(FfiConverterString.lift(lease), { signal });
|
|
1378
|
-
};
|
|
1379
|
-
const uniffiHandleSuccess = (returnValue) => {
|
|
1380
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1381
|
-
call_status: uniffiCaller.createCallStatus()
|
|
1382
|
-
});
|
|
1383
|
-
};
|
|
1384
|
-
const uniffiHandleError = (code, errorBuf) => {
|
|
1385
|
-
uniffiFutureCallback.call(uniffiFutureCallback, uniffiCallbackData, {
|
|
1386
|
-
call_status: uniffiCaller.createErrorStatus(code, errorBuf)
|
|
1387
|
-
});
|
|
1388
|
-
};
|
|
1389
|
-
const uniffiForeignFuture = uniffiTraitInterfaceCallAsyncWithError(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, AuthError.instanceOf, FfiConverterTypeAuthError.lower.bind(FfiConverterTypeAuthError), FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1390
|
-
return uniffiForeignFuture;
|
|
1391
|
-
},
|
|
1392
|
-
name: (uniffiHandle) => {
|
|
1393
|
-
const uniffiMakeCall = () => {
|
|
1394
|
-
const jsCallback = FfiConverterTypeStorageAdapter.lift(uniffiHandle);
|
|
1395
|
-
return jsCallback.name();
|
|
1396
|
-
};
|
|
1397
|
-
const uniffiResult = UniffiResult.ready();
|
|
1398
|
-
const uniffiHandleSuccess = (obj) => {
|
|
1399
|
-
UniffiResult.writeSuccess(uniffiResult, FfiConverterString.lower(obj, _bindings_ffi_default().rustbuffer_alloc));
|
|
1400
|
-
};
|
|
1401
|
-
const uniffiHandleError = (code, errBuf) => {
|
|
1402
|
-
UniffiResult.writeError(uniffiResult, code, errBuf);
|
|
1403
|
-
};
|
|
1404
|
-
uniffiTraitInterfaceCall(uniffiMakeCall, uniffiHandleSuccess, uniffiHandleError, FfiConverterString.lower.bind(FfiConverterString), _bindings_ffi_default().rustbuffer_alloc);
|
|
1405
|
-
return uniffiResult;
|
|
1406
|
-
},
|
|
1407
|
-
uniffi_free: (uniffiHandle) => {
|
|
1408
|
-
FfiConverterTypeStorageAdapter.drop(uniffiHandle);
|
|
1409
|
-
},
|
|
1410
|
-
uniffi_clone: (uniffiHandle) => {
|
|
1411
|
-
return FfiConverterTypeStorageAdapter.clone(uniffiHandle);
|
|
1412
|
-
}
|
|
1413
|
-
},
|
|
1414
|
-
register: () => {
|
|
1415
|
-
_bindings_ffi_default().uniffi_dbx_tools_auth_fn_init_callback_vtable_storageadapter(uniffiCallbackInterfaceStorageAdapter.vtable);
|
|
1416
|
-
}
|
|
1417
|
-
};
|
|
1418
|
-
|
|
1419
|
-
class StorageHandle extends UniffiAbstractObject {
|
|
1420
|
-
[uniffiTypeNameSymbol] = "StorageHandle";
|
|
1421
|
-
[destructorGuardSymbol];
|
|
1422
|
-
[pointerLiteralSymbol];
|
|
1423
|
-
constructor(pointer) {
|
|
1424
|
-
super();
|
|
1425
|
-
this[pointerLiteralSymbol] = pointer;
|
|
1426
|
-
this[destructorGuardSymbol] = uniffiTypeStorageHandleObjectFactory.bless(pointer);
|
|
1427
|
-
}
|
|
1428
|
-
uniffiDestroy() {
|
|
1429
|
-
const ptr = this[destructorGuardSymbol];
|
|
1430
|
-
if (ptr !== undefined) {
|
|
1431
|
-
const pointer = uniffiTypeStorageHandleObjectFactory.pointer(this);
|
|
1432
|
-
uniffiTypeStorageHandleObjectFactory.freePointer(pointer);
|
|
1433
|
-
uniffiTypeStorageHandleObjectFactory.unbless(ptr);
|
|
1434
|
-
delete this[destructorGuardSymbol];
|
|
1435
|
-
}
|
|
1436
|
-
}
|
|
1437
|
-
static instanceOf(obj_) {
|
|
1438
|
-
return uniffiTypeStorageHandleObjectFactory.isConcreteType(obj_);
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
var uniffiTypeStorageHandleObjectFactory = (() => {
|
|
1442
|
-
const registry = typeof FinalizationRegistry !== "undefined" ? new FinalizationRegistry((heldValue) => {
|
|
1443
|
-
uniffiTypeStorageHandleObjectFactory.freePointer(heldValue);
|
|
1444
|
-
}) : null;
|
|
1445
|
-
return {
|
|
1446
|
-
create(pointer) {
|
|
1447
|
-
const instance = Object.create(StorageHandle.prototype);
|
|
1448
|
-
instance[pointerLiteralSymbol] = pointer;
|
|
1449
|
-
instance[destructorGuardSymbol] = this.bless(pointer);
|
|
1450
|
-
instance[uniffiTypeNameSymbol] = "StorageHandle";
|
|
1451
|
-
return instance;
|
|
1452
|
-
},
|
|
1453
|
-
bless(p) {
|
|
1454
|
-
const ptr = {
|
|
1455
|
-
p,
|
|
1456
|
-
markDestroyed: () => {
|
|
1457
|
-
return;
|
|
1458
|
-
}
|
|
1459
|
-
};
|
|
1460
|
-
if (registry) {
|
|
1461
|
-
registry.register(ptr, p, ptr);
|
|
1462
|
-
}
|
|
1463
|
-
return ptr;
|
|
1464
|
-
},
|
|
1465
|
-
unbless(ptr_) {
|
|
1466
|
-
if (registry) {
|
|
1467
|
-
registry.unregister(ptr_);
|
|
1468
|
-
}
|
|
1469
|
-
},
|
|
1470
|
-
pointer(obj_) {
|
|
1471
|
-
if (obj_[destructorGuardSymbol] === undefined) {
|
|
1472
|
-
throw new UniffiInternalError.UnexpectedNullPointer;
|
|
1473
|
-
}
|
|
1474
|
-
return obj_[pointerLiteralSymbol];
|
|
1475
|
-
},
|
|
1476
|
-
clonePointer(obj_) {
|
|
1477
|
-
const pointer = this.pointer(obj_);
|
|
1478
|
-
return uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_auth_fn_clone_storagehandle(pointer, callStatus), FfiConverterString.lift);
|
|
1479
|
-
},
|
|
1480
|
-
freePointer(pointer) {
|
|
1481
|
-
uniffiCaller.rustCall((callStatus) => _bindings_ffi_default().uniffi_dbx_tools_auth_fn_free_storagehandle(pointer, callStatus), FfiConverterString.lift);
|
|
1482
|
-
},
|
|
1483
|
-
isConcreteType(obj_) {
|
|
1484
|
-
return obj_[destructorGuardSymbol] && obj_[uniffiTypeNameSymbol] === "StorageHandle";
|
|
1485
|
-
}
|
|
1486
|
-
};
|
|
1487
|
-
})();
|
|
1488
|
-
var FfiConverterTypeStorageHandle = new FfiConverterObject(uniffiTypeStorageHandleObjectFactory);
|
|
1489
|
-
var FfiConverterOptionalString = new FfiConverterOptional(FfiConverterString);
|
|
1490
|
-
var FfiConverterSequenceString = new FfiConverterArray(FfiConverterString);
|
|
1491
|
-
var FfiConverterOptionalTypeOAuthGrant = new FfiConverterOptional(FfiConverterTypeOAuthGrant);
|
|
1492
|
-
var FfiConverterOptionalTypeStorage = new FfiConverterOptional(FfiConverterTypeStorage);
|
|
1493
|
-
var FfiConverterOptionalTypeFileLayout = new FfiConverterOptional(FfiConverterTypeFileLayout);
|
|
1494
|
-
var FfiConverterOptionalTypeAuthOptions = new FfiConverterOptional(FfiConverterTypeAuthOptions);
|
|
1495
|
-
var FfiConverterOptionalBoolean = new FfiConverterOptional(FfiConverterBool);
|
|
1496
|
-
function uniffiEnsureInitialized() {
|
|
1497
|
-
const bindingsContractVersion = 30;
|
|
1498
|
-
const scaffoldingContractVersion = _bindings_ffi_default().ffi_dbx_tools_auth_uniffi_contract_version();
|
|
1499
|
-
if (bindingsContractVersion !== scaffoldingContractVersion) {
|
|
1500
|
-
throw new UniffiInternalError.ContractVersionMismatch(scaffoldingContractVersion, bindingsContractVersion);
|
|
1501
|
-
}
|
|
1502
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_func_canonical_scopes() !== 18689) {
|
|
1503
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_func_canonical_scopes");
|
|
1504
|
-
}
|
|
1505
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_func_create_provider_auth() !== 20751) {
|
|
1506
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_func_create_provider_auth");
|
|
1507
|
-
}
|
|
1508
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_func_create_provider_auth_with_storage() !== 25852) {
|
|
1509
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_func_create_provider_auth_with_storage");
|
|
1510
|
-
}
|
|
1511
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_func_create_storage_handle() !== 15844) {
|
|
1512
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_func_create_storage_handle");
|
|
1513
|
-
}
|
|
1514
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_func_credential_key() !== 22562) {
|
|
1515
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_func_credential_key");
|
|
1516
|
-
}
|
|
1517
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_providerauth_force_refresh_token() !== 35205) {
|
|
1518
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_providerauth_force_refresh_token");
|
|
1519
|
-
}
|
|
1520
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_providerauth_logout() !== 58116) {
|
|
1521
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_providerauth_logout");
|
|
1522
|
-
}
|
|
1523
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_providerauth_refresh_rejected_token() !== 40032) {
|
|
1524
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_providerauth_refresh_rejected_token");
|
|
1525
|
-
}
|
|
1526
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_providerauth_token() !== 54952) {
|
|
1527
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_providerauth_token");
|
|
1528
|
-
}
|
|
1529
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_storageadapter_load() !== 2549) {
|
|
1530
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_storageadapter_load");
|
|
1531
|
-
}
|
|
1532
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_storageadapter_prepare_write() !== 1371) {
|
|
1533
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_storageadapter_prepare_write");
|
|
1534
|
-
}
|
|
1535
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_storageadapter_save() !== 50464) {
|
|
1536
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_storageadapter_save");
|
|
1537
|
-
}
|
|
1538
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_storageadapter_remove() !== 46592) {
|
|
1539
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_storageadapter_remove");
|
|
1540
|
-
}
|
|
1541
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_storageadapter_acquire_lock() !== 13715) {
|
|
1542
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_storageadapter_acquire_lock");
|
|
1543
|
-
}
|
|
1544
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_storageadapter_release_lock() !== 42072) {
|
|
1545
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_storageadapter_release_lock");
|
|
1546
|
-
}
|
|
1547
|
-
if (_bindings_ffi_default().uniffi_dbx_tools_auth_checksum_method_storageadapter_name() !== 674) {
|
|
1548
|
-
throw new UniffiInternalError.ApiChecksumMismatch("uniffi_dbx_tools_auth_checksum_method_storageadapter_name");
|
|
1549
|
-
}
|
|
1550
|
-
uniffiCallbackInterfaceStorageAdapter.register();
|
|
1551
|
-
}
|
|
1552
|
-
var _bindings_default = Object.freeze({
|
|
1553
|
-
initialize: uniffiEnsureInitialized,
|
|
1554
|
-
converters: {
|
|
1555
|
-
FfiConverterTypeAccessToken,
|
|
1556
|
-
FfiConverterTypeAuthError,
|
|
1557
|
-
FfiConverterTypeAuthOptions,
|
|
1558
|
-
FfiConverterTypeFileLayout,
|
|
1559
|
-
FfiConverterTypeOAuthGrant,
|
|
1560
|
-
FfiConverterTypeProviderAuth,
|
|
1561
|
-
FfiConverterTypeProviderOptions,
|
|
1562
|
-
FfiConverterTypeStorage,
|
|
1563
|
-
FfiConverterTypeStorageAdapter,
|
|
1564
|
-
FfiConverterTypeStorageHandle
|
|
1565
|
-
}
|
|
1566
|
-
});
|
|
1567
|
-
// src/bindings.ts
|
|
1568
|
-
_bindings_default.initialize();
|
|
1569
|
-
async function uniffiInitAsync() {}
|
|
1570
|
-
|
|
1571
|
-
// index.ts
|
|
1572
|
-
var PACKAGE_IDENTIFIER = "@dbx-tools/auth";
|
|
1573
|
-
var PACKAGE_VERSION = "0.6.182";
|
|
1574
|
-
export {
|
|
1575
|
-
_bindings_default as uniffiModule,
|
|
1576
|
-
uniffiInitAsync,
|
|
1577
|
-
credentialKey,
|
|
1578
|
-
createStorageHandle,
|
|
1579
|
-
createProviderAuthWithStorage,
|
|
1580
|
-
createProviderAuth,
|
|
1581
|
-
canonicalScopes,
|
|
1582
|
-
StorageHandle,
|
|
1583
|
-
StorageAdapterImpl,
|
|
1584
|
-
Storage,
|
|
1585
|
-
ProviderOptions,
|
|
1586
|
-
ProviderAuth,
|
|
1587
|
-
PACKAGE_VERSION,
|
|
1588
|
-
PACKAGE_IDENTIFIER,
|
|
1589
|
-
OAuthGrant,
|
|
1590
|
-
FileLayout,
|
|
1591
|
-
AuthOptions,
|
|
1592
|
-
AuthError_Tags,
|
|
1593
|
-
AuthError,
|
|
1594
|
-
AccessToken
|
|
1595
|
-
};
|
|
1
|
+
// GENERATED by projen watch - DO NOT EDIT.
|
|
2
|
+
// Regenerated from the exporting modules in ./src.
|
|
3
|
+
// Hand edits are overwritten on the next watch; this file is read-only.
|
|
4
|
+
export const PACKAGE_IDENTIFIER = "@dbx-tools/auth";
|
|
5
|
+
export const PACKAGE_VERSION = "0.9.28";
|
|
6
|
+
export * as databricksAuth from "./src/databricks-auth.js";
|
|
7
|
+
export * as databricksCli from "./src/databricks-cli.js";
|
|
8
|
+
export * as errors from "./src/errors.js";
|
|
9
|
+
export * as httpClient from "./src/http-client.js";
|
|
10
|
+
export * as lifecycle from "./src/lifecycle.js";
|
|
11
|
+
export * as nodeStorage from "./src/node-storage.js";
|
|
12
|
+
export * as personalAccessToken from "./src/personal-access-token.js";
|
|
13
|
+
export * as servicePrincipal from "./src/service-principal.js";
|
|
14
|
+
export * as storage from "./src/storage.js";
|
|
15
|
+
export * as types from "./src/types.js";
|
|
16
|
+
export { DatabricksCliProvider } from "./src/databricks-cli.js";
|
|
17
|
+
export { AuthError } from "./src/errors.js";
|
|
18
|
+
export { DatabricksClient } from "./src/http-client.js";
|
|
19
|
+
export { TokenLifecycle } from "./src/lifecycle.js";
|
|
20
|
+
export { FileCredentialStore } from "./src/node-storage.js";
|
|
21
|
+
export { DatabricksPersonalAccessTokenProvider } from "./src/personal-access-token.js";
|
|
22
|
+
export { DatabricksServicePrincipalProvider } from "./src/service-principal.js";
|
|
23
|
+
export { MemoryLockAdapter, MemoryCredentialStore } from "./src/storage.js";
|
|
24
|
+
export { AuthKind, TargetKind, Storage, FileLayout, DEFAULT_CLIENT_ID, DEFAULT_CONFIG_FILE, DEFAULT_ACCOUNTS_HOST, DEFAULT_ACCESS_TOKEN_HEADER, WORKSPACE_ID_HEADER, AUTH_TYPE_APP_OBO, AUTH_TYPE_APP_SP } from "./src/types.js";
|
|
25
|
+
export * from "./exports.js";
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSwyQ0FBMkM7QUFDM0MsbURBQW1EO0FBQ25ELHdFQUF3RTtBQUV4RSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxpQkFBaUIsQ0FBQztBQUNwRCxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsUUFBUSxDQUFDO0FBQ3hDLE9BQU8sS0FBSyxjQUFjLE1BQU0sMEJBQTBCLENBQUM7QUFDM0QsT0FBTyxLQUFLLGFBQWEsTUFBTSx5QkFBeUIsQ0FBQztBQUN6RCxPQUFPLEtBQUssTUFBTSxNQUFNLGlCQUFpQixDQUFDO0FBQzFDLE9BQU8sS0FBSyxVQUFVLE1BQU0sc0JBQXNCLENBQUM7QUFDbkQsT0FBTyxLQUFLLFNBQVMsTUFBTSxvQkFBb0IsQ0FBQztBQUNoRCxPQUFPLEtBQUssV0FBVyxNQUFNLHVCQUF1QixDQUFDO0FBQ3JELE9BQU8sS0FBSyxtQkFBbUIsTUFBTSxnQ0FBZ0MsQ0FBQztBQUN0RSxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sNEJBQTRCLENBQUM7QUFDL0QsT0FBTyxLQUFLLE9BQU8sTUFBTSxrQkFBa0IsQ0FBQztBQUM1QyxPQUFPLEtBQUssS0FBSyxNQUFNLGdCQUFnQixDQUFDO0FBRXhDLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHlCQUF5QixDQUFDO0FBRWhFLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUM1QyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxzQkFBc0IsQ0FBQztBQUV4RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFDcEQsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDNUQsT0FBTyxFQUFFLHFDQUFxQyxFQUFFLE1BQU0sZ0NBQWdDLENBQUM7QUFDdkYsT0FBTyxFQUFFLGtDQUFrQyxFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFFaEYsT0FBTyxFQUFFLGlCQUFpQixFQUFFLHFCQUFxQixFQUFFLE1BQU0sa0JBQWtCLENBQUM7QUFDNUUsT0FBTyxFQUFFLFFBQVEsRUFBRSxVQUFVLEVBQUUsT0FBTyxFQUFFLFVBQVUsRUFBRSxpQkFBaUIsRUFBRSxtQkFBbUIsRUFBRSxxQkFBcUIsRUFBRSwyQkFBMkIsRUFBRSxtQkFBbUIsRUFBRSxpQkFBaUIsRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLGdCQUFnQixDQUFDO0FBRWpPLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLy8gR0VORVJBVEVEIGJ5IHByb2plbiB3YXRjaCAtIERPIE5PVCBFRElULlxuLy8gUmVnZW5lcmF0ZWQgZnJvbSB0aGUgZXhwb3J0aW5nIG1vZHVsZXMgaW4gLi9zcmMuXG4vLyBIYW5kIGVkaXRzIGFyZSBvdmVyd3JpdHRlbiBvbiB0aGUgbmV4dCB3YXRjaDsgdGhpcyBmaWxlIGlzIHJlYWQtb25seS5cblxuZXhwb3J0IGNvbnN0IFBBQ0tBR0VfSURFTlRJRklFUiA9IFwiQGRieC10b29scy9hdXRoXCI7XG5leHBvcnQgY29uc3QgUEFDS0FHRV9WRVJTSU9OID0gXCIwLjkuMjhcIjtcbmV4cG9ydCAqIGFzIGRhdGFicmlja3NBdXRoIGZyb20gXCIuL3NyYy9kYXRhYnJpY2tzLWF1dGgudHNcIjtcbmV4cG9ydCAqIGFzIGRhdGFicmlja3NDbGkgZnJvbSBcIi4vc3JjL2RhdGFicmlja3MtY2xpLnRzXCI7XG5leHBvcnQgKiBhcyBlcnJvcnMgZnJvbSBcIi4vc3JjL2Vycm9ycy50c1wiO1xuZXhwb3J0ICogYXMgaHR0cENsaWVudCBmcm9tIFwiLi9zcmMvaHR0cC1jbGllbnQudHNcIjtcbmV4cG9ydCAqIGFzIGxpZmVjeWNsZSBmcm9tIFwiLi9zcmMvbGlmZWN5Y2xlLnRzXCI7XG5leHBvcnQgKiBhcyBub2RlU3RvcmFnZSBmcm9tIFwiLi9zcmMvbm9kZS1zdG9yYWdlLnRzXCI7XG5leHBvcnQgKiBhcyBwZXJzb25hbEFjY2Vzc1Rva2VuIGZyb20gXCIuL3NyYy9wZXJzb25hbC1hY2Nlc3MtdG9rZW4udHNcIjtcbmV4cG9ydCAqIGFzIHNlcnZpY2VQcmluY2lwYWwgZnJvbSBcIi4vc3JjL3NlcnZpY2UtcHJpbmNpcGFsLnRzXCI7XG5leHBvcnQgKiBhcyBzdG9yYWdlIGZyb20gXCIuL3NyYy9zdG9yYWdlLnRzXCI7XG5leHBvcnQgKiBhcyB0eXBlcyBmcm9tIFwiLi9zcmMvdHlwZXMudHNcIjtcbmV4cG9ydCB0eXBlIHsgRGF0YWJyaWNrc0F1dGhEZXBlbmRlbmNpZXMgfSBmcm9tIFwiLi9zcmMvZGF0YWJyaWNrcy1hdXRoLnRzXCI7XG5leHBvcnQgeyBEYXRhYnJpY2tzQ2xpUHJvdmlkZXIgfSBmcm9tIFwiLi9zcmMvZGF0YWJyaWNrcy1jbGkudHNcIjtcbmV4cG9ydCB0eXBlIHsgRGF0YWJyaWNrc0NsaVJlc29sdmVyLCBEYXRhYnJpY2tzQ2xpUmVzb2x1dGlvbk9wdGlvbnMgfSBmcm9tIFwiLi9zcmMvZGF0YWJyaWNrcy1jbGkudHNcIjtcbmV4cG9ydCB7IEF1dGhFcnJvciB9IGZyb20gXCIuL3NyYy9lcnJvcnMudHNcIjtcbmV4cG9ydCB7IERhdGFicmlja3NDbGllbnQgfSBmcm9tIFwiLi9zcmMvaHR0cC1jbGllbnQudHNcIjtcbmV4cG9ydCB0eXBlIHsgRGF0YWJyaWNrc1JlcXVlc3RPcHRpb25zIH0gZnJvbSBcIi4vc3JjL2h0dHAtY2xpZW50LnRzXCI7XG5leHBvcnQgeyBUb2tlbkxpZmVjeWNsZSB9IGZyb20gXCIuL3NyYy9saWZlY3ljbGUudHNcIjtcbmV4cG9ydCB7IEZpbGVDcmVkZW50aWFsU3RvcmUgfSBmcm9tIFwiLi9zcmMvbm9kZS1zdG9yYWdlLnRzXCI7XG5leHBvcnQgeyBEYXRhYnJpY2tzUGVyc29uYWxBY2Nlc3NUb2tlblByb3ZpZGVyIH0gZnJvbSBcIi4vc3JjL3BlcnNvbmFsLWFjY2Vzcy10b2tlbi50c1wiO1xuZXhwb3J0IHsgRGF0YWJyaWNrc1NlcnZpY2VQcmluY2lwYWxQcm92aWRlciB9IGZyb20gXCIuL3NyYy9zZXJ2aWNlLXByaW5jaXBhbC50c1wiO1xuZXhwb3J0IHR5cGUgeyBEYXRhYnJpY2tzU2VydmljZVByaW5jaXBhbENvbmZpZyB9IGZyb20gXCIuL3NyYy9zZXJ2aWNlLXByaW5jaXBhbC50c1wiO1xuZXhwb3J0IHsgTWVtb3J5TG9ja0FkYXB0ZXIsIE1lbW9yeUNyZWRlbnRpYWxTdG9yZSB9IGZyb20gXCIuL3NyYy9zdG9yYWdlLnRzXCI7XG5leHBvcnQgeyBBdXRoS2luZCwgVGFyZ2V0S2luZCwgU3RvcmFnZSwgRmlsZUxheW91dCwgREVGQVVMVF9DTElFTlRfSUQsIERFRkFVTFRfQ09ORklHX0ZJTEUsIERFRkFVTFRfQUNDT1VOVFNfSE9TVCwgREVGQVVMVF9BQ0NFU1NfVE9LRU5fSEVBREVSLCBXT1JLU1BBQ0VfSURfSEVBREVSLCBBVVRIX1RZUEVfQVBQX09CTywgQVVUSF9UWVBFX0FQUF9TUCB9IGZyb20gXCIuL3NyYy90eXBlcy50c1wiO1xuZXhwb3J0IHR5cGUgeyBUb2tlbiwgQWNjZXNzVG9rZW4sIERhdGFicmlja3NQcm9maWxlU3VtbWFyeSwgRGF0YWJyaWNrc0F1dGhTdGF0dXMsIERhdGFicmlja3NQcm9maWxlLCBMb2NrQWRhcHRlciwgQ3JlZGVudGlhbFN0b3JlLCBUb2tlblByb3ZpZGVyLCBBdXRoQ2xpZW50IH0gZnJvbSBcIi4vc3JjL3R5cGVzLnRzXCI7XG5leHBvcnQgKiBmcm9tIFwiLi9leHBvcnRzLnRzXCI7XG4iXX0=
|