@boundaryml/baml-bridge 0.14.2-nightly.20260714.d → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/native.js +52 -52
- package/dist/proto/baml_cffi.d.ts +1 -104
- package/dist/proto/baml_cffi.js +2 -269
- package/package.json +9 -9
package/dist/native.js
CHANGED
|
@@ -88,8 +88,8 @@ function requireNative() {
|
|
|
88
88
|
try {
|
|
89
89
|
const binding = require('@boundaryml/baml-bridge-android-arm64')
|
|
90
90
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-android-arm64/package.json').version
|
|
91
|
-
if (bindingPackageVersion !== '0.
|
|
92
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
91
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
92
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
93
93
|
}
|
|
94
94
|
return binding
|
|
95
95
|
} catch (e) {
|
|
@@ -104,8 +104,8 @@ function requireNative() {
|
|
|
104
104
|
try {
|
|
105
105
|
const binding = require('@boundaryml/baml-bridge-android-arm-eabi')
|
|
106
106
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-android-arm-eabi/package.json').version
|
|
107
|
-
if (bindingPackageVersion !== '0.
|
|
108
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
107
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
108
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
109
109
|
}
|
|
110
110
|
return binding
|
|
111
111
|
} catch (e) {
|
|
@@ -125,8 +125,8 @@ function requireNative() {
|
|
|
125
125
|
try {
|
|
126
126
|
const binding = require('@boundaryml/baml-bridge-win32-x64-gnu')
|
|
127
127
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-x64-gnu/package.json').version
|
|
128
|
-
if (bindingPackageVersion !== '0.
|
|
129
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
128
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
129
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
130
130
|
}
|
|
131
131
|
return binding
|
|
132
132
|
} catch (e) {
|
|
@@ -141,8 +141,8 @@ function requireNative() {
|
|
|
141
141
|
try {
|
|
142
142
|
const binding = require('@boundaryml/baml-bridge-win32-x64-msvc')
|
|
143
143
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-x64-msvc/package.json').version
|
|
144
|
-
if (bindingPackageVersion !== '0.
|
|
145
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
144
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
145
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
146
146
|
}
|
|
147
147
|
return binding
|
|
148
148
|
} catch (e) {
|
|
@@ -158,8 +158,8 @@ function requireNative() {
|
|
|
158
158
|
try {
|
|
159
159
|
const binding = require('@boundaryml/baml-bridge-win32-ia32-msvc')
|
|
160
160
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-ia32-msvc/package.json').version
|
|
161
|
-
if (bindingPackageVersion !== '0.
|
|
162
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
161
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
162
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
163
163
|
}
|
|
164
164
|
return binding
|
|
165
165
|
} catch (e) {
|
|
@@ -174,8 +174,8 @@ function requireNative() {
|
|
|
174
174
|
try {
|
|
175
175
|
const binding = require('@boundaryml/baml-bridge-win32-arm64-msvc')
|
|
176
176
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-win32-arm64-msvc/package.json').version
|
|
177
|
-
if (bindingPackageVersion !== '0.
|
|
178
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
177
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
178
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
179
179
|
}
|
|
180
180
|
return binding
|
|
181
181
|
} catch (e) {
|
|
@@ -193,8 +193,8 @@ function requireNative() {
|
|
|
193
193
|
try {
|
|
194
194
|
const binding = require('@boundaryml/baml-bridge-darwin-universal')
|
|
195
195
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-darwin-universal/package.json').version
|
|
196
|
-
if (bindingPackageVersion !== '0.
|
|
197
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
196
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
197
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
198
198
|
}
|
|
199
199
|
return binding
|
|
200
200
|
} catch (e) {
|
|
@@ -209,8 +209,8 @@ function requireNative() {
|
|
|
209
209
|
try {
|
|
210
210
|
const binding = require('@boundaryml/baml-bridge-darwin-x64')
|
|
211
211
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-darwin-x64/package.json').version
|
|
212
|
-
if (bindingPackageVersion !== '0.
|
|
213
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
212
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
213
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
214
214
|
}
|
|
215
215
|
return binding
|
|
216
216
|
} catch (e) {
|
|
@@ -225,8 +225,8 @@ function requireNative() {
|
|
|
225
225
|
try {
|
|
226
226
|
const binding = require('@boundaryml/baml-bridge-darwin-arm64')
|
|
227
227
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-darwin-arm64/package.json').version
|
|
228
|
-
if (bindingPackageVersion !== '0.
|
|
229
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
228
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
229
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
230
230
|
}
|
|
231
231
|
return binding
|
|
232
232
|
} catch (e) {
|
|
@@ -245,8 +245,8 @@ function requireNative() {
|
|
|
245
245
|
try {
|
|
246
246
|
const binding = require('@boundaryml/baml-bridge-freebsd-x64')
|
|
247
247
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-freebsd-x64/package.json').version
|
|
248
|
-
if (bindingPackageVersion !== '0.
|
|
249
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
248
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
249
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
250
250
|
}
|
|
251
251
|
return binding
|
|
252
252
|
} catch (e) {
|
|
@@ -261,8 +261,8 @@ function requireNative() {
|
|
|
261
261
|
try {
|
|
262
262
|
const binding = require('@boundaryml/baml-bridge-freebsd-arm64')
|
|
263
263
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-freebsd-arm64/package.json').version
|
|
264
|
-
if (bindingPackageVersion !== '0.
|
|
265
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
264
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
265
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
266
266
|
}
|
|
267
267
|
return binding
|
|
268
268
|
} catch (e) {
|
|
@@ -282,8 +282,8 @@ function requireNative() {
|
|
|
282
282
|
try {
|
|
283
283
|
const binding = require('@boundaryml/baml-bridge-linux-x64-musl')
|
|
284
284
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-x64-musl/package.json').version
|
|
285
|
-
if (bindingPackageVersion !== '0.
|
|
286
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
285
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
286
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
287
287
|
}
|
|
288
288
|
return binding
|
|
289
289
|
} catch (e) {
|
|
@@ -298,8 +298,8 @@ function requireNative() {
|
|
|
298
298
|
try {
|
|
299
299
|
const binding = require('@boundaryml/baml-bridge-linux-x64-gnu')
|
|
300
300
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-x64-gnu/package.json').version
|
|
301
|
-
if (bindingPackageVersion !== '0.
|
|
302
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
301
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
302
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
303
303
|
}
|
|
304
304
|
return binding
|
|
305
305
|
} catch (e) {
|
|
@@ -316,8 +316,8 @@ function requireNative() {
|
|
|
316
316
|
try {
|
|
317
317
|
const binding = require('@boundaryml/baml-bridge-linux-arm64-musl')
|
|
318
318
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm64-musl/package.json').version
|
|
319
|
-
if (bindingPackageVersion !== '0.
|
|
320
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
319
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
320
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
321
321
|
}
|
|
322
322
|
return binding
|
|
323
323
|
} catch (e) {
|
|
@@ -332,8 +332,8 @@ function requireNative() {
|
|
|
332
332
|
try {
|
|
333
333
|
const binding = require('@boundaryml/baml-bridge-linux-arm64-gnu')
|
|
334
334
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm64-gnu/package.json').version
|
|
335
|
-
if (bindingPackageVersion !== '0.
|
|
336
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
335
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
336
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
337
337
|
}
|
|
338
338
|
return binding
|
|
339
339
|
} catch (e) {
|
|
@@ -350,8 +350,8 @@ function requireNative() {
|
|
|
350
350
|
try {
|
|
351
351
|
const binding = require('@boundaryml/baml-bridge-linux-arm-musleabihf')
|
|
352
352
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm-musleabihf/package.json').version
|
|
353
|
-
if (bindingPackageVersion !== '0.
|
|
354
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
353
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
354
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
355
355
|
}
|
|
356
356
|
return binding
|
|
357
357
|
} catch (e) {
|
|
@@ -366,8 +366,8 @@ function requireNative() {
|
|
|
366
366
|
try {
|
|
367
367
|
const binding = require('@boundaryml/baml-bridge-linux-arm-gnueabihf')
|
|
368
368
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-arm-gnueabihf/package.json').version
|
|
369
|
-
if (bindingPackageVersion !== '0.
|
|
370
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
369
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
370
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
371
371
|
}
|
|
372
372
|
return binding
|
|
373
373
|
} catch (e) {
|
|
@@ -384,8 +384,8 @@ function requireNative() {
|
|
|
384
384
|
try {
|
|
385
385
|
const binding = require('@boundaryml/baml-bridge-linux-loong64-musl')
|
|
386
386
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-loong64-musl/package.json').version
|
|
387
|
-
if (bindingPackageVersion !== '0.
|
|
388
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
387
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
388
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
389
389
|
}
|
|
390
390
|
return binding
|
|
391
391
|
} catch (e) {
|
|
@@ -400,8 +400,8 @@ function requireNative() {
|
|
|
400
400
|
try {
|
|
401
401
|
const binding = require('@boundaryml/baml-bridge-linux-loong64-gnu')
|
|
402
402
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-loong64-gnu/package.json').version
|
|
403
|
-
if (bindingPackageVersion !== '0.
|
|
404
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
403
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
404
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
405
405
|
}
|
|
406
406
|
return binding
|
|
407
407
|
} catch (e) {
|
|
@@ -418,8 +418,8 @@ function requireNative() {
|
|
|
418
418
|
try {
|
|
419
419
|
const binding = require('@boundaryml/baml-bridge-linux-riscv64-musl')
|
|
420
420
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-riscv64-musl/package.json').version
|
|
421
|
-
if (bindingPackageVersion !== '0.
|
|
422
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
421
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
422
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
423
423
|
}
|
|
424
424
|
return binding
|
|
425
425
|
} catch (e) {
|
|
@@ -434,8 +434,8 @@ function requireNative() {
|
|
|
434
434
|
try {
|
|
435
435
|
const binding = require('@boundaryml/baml-bridge-linux-riscv64-gnu')
|
|
436
436
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-riscv64-gnu/package.json').version
|
|
437
|
-
if (bindingPackageVersion !== '0.
|
|
438
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
437
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
438
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
439
439
|
}
|
|
440
440
|
return binding
|
|
441
441
|
} catch (e) {
|
|
@@ -451,8 +451,8 @@ function requireNative() {
|
|
|
451
451
|
try {
|
|
452
452
|
const binding = require('@boundaryml/baml-bridge-linux-ppc64-gnu')
|
|
453
453
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-ppc64-gnu/package.json').version
|
|
454
|
-
if (bindingPackageVersion !== '0.
|
|
455
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
454
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
455
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
456
456
|
}
|
|
457
457
|
return binding
|
|
458
458
|
} catch (e) {
|
|
@@ -467,8 +467,8 @@ function requireNative() {
|
|
|
467
467
|
try {
|
|
468
468
|
const binding = require('@boundaryml/baml-bridge-linux-s390x-gnu')
|
|
469
469
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-linux-s390x-gnu/package.json').version
|
|
470
|
-
if (bindingPackageVersion !== '0.
|
|
471
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
470
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
471
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
472
472
|
}
|
|
473
473
|
return binding
|
|
474
474
|
} catch (e) {
|
|
@@ -487,8 +487,8 @@ function requireNative() {
|
|
|
487
487
|
try {
|
|
488
488
|
const binding = require('@boundaryml/baml-bridge-openharmony-arm64')
|
|
489
489
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-openharmony-arm64/package.json').version
|
|
490
|
-
if (bindingPackageVersion !== '0.
|
|
491
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
490
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
491
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
492
492
|
}
|
|
493
493
|
return binding
|
|
494
494
|
} catch (e) {
|
|
@@ -503,8 +503,8 @@ function requireNative() {
|
|
|
503
503
|
try {
|
|
504
504
|
const binding = require('@boundaryml/baml-bridge-openharmony-x64')
|
|
505
505
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-openharmony-x64/package.json').version
|
|
506
|
-
if (bindingPackageVersion !== '0.
|
|
507
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
506
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
507
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
508
508
|
}
|
|
509
509
|
return binding
|
|
510
510
|
} catch (e) {
|
|
@@ -519,8 +519,8 @@ function requireNative() {
|
|
|
519
519
|
try {
|
|
520
520
|
const binding = require('@boundaryml/baml-bridge-openharmony-arm')
|
|
521
521
|
const bindingPackageVersion = require('@boundaryml/baml-bridge-openharmony-arm/package.json').version
|
|
522
|
-
if (bindingPackageVersion !== '0.
|
|
523
|
-
throw new Error(`Native binding package version mismatch, expected 0.
|
|
522
|
+
if (bindingPackageVersion !== '0.15.0' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
|
|
523
|
+
throw new Error(`Native binding package version mismatch, expected 0.15.0 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
|
|
524
524
|
}
|
|
525
525
|
return binding
|
|
526
526
|
} catch (e) {
|
|
@@ -1203,9 +1203,6 @@ export namespace baml_bridge {
|
|
|
1203
1203
|
/** BamlTy void */
|
|
1204
1204
|
"void"?: (baml_bridge.cffi.v1.IBamlTyVoid|null);
|
|
1205
1205
|
|
|
1206
|
-
/** BamlTy watchAccessor */
|
|
1207
|
-
watchAccessor?: (baml_bridge.cffi.v1.IBamlTyWatchAccessor|null);
|
|
1208
|
-
|
|
1209
1206
|
/** BamlTy typeVar */
|
|
1210
1207
|
typeVar?: (baml_bridge.cffi.v1.IBamlTyTypeVar|null);
|
|
1211
1208
|
|
|
@@ -1285,9 +1282,6 @@ export namespace baml_bridge {
|
|
|
1285
1282
|
/** BamlTy void. */
|
|
1286
1283
|
public void?: (baml_bridge.cffi.v1.IBamlTyVoid|null);
|
|
1287
1284
|
|
|
1288
|
-
/** BamlTy watchAccessor. */
|
|
1289
|
-
public watchAccessor?: (baml_bridge.cffi.v1.IBamlTyWatchAccessor|null);
|
|
1290
|
-
|
|
1291
1285
|
/** BamlTy typeVar. */
|
|
1292
1286
|
public typeVar?: (baml_bridge.cffi.v1.IBamlTyTypeVar|null);
|
|
1293
1287
|
|
|
@@ -1298,7 +1292,7 @@ export namespace baml_bridge {
|
|
|
1298
1292
|
public never?: (baml_bridge.cffi.v1.IBamlTyNever|null);
|
|
1299
1293
|
|
|
1300
1294
|
/** BamlTy ty. */
|
|
1301
|
-
public ty?: ("primitive"|"classTy"|"enum"|"list"|"map"|"optional"|"union"|"literal"|"typeAlias"|"unknown"|"media"|"interface"|"enumVariant"|"Function"|"future"|"rustType"|"metaType"|"resource"|"promptAst"|"void"|"
|
|
1295
|
+
public ty?: ("primitive"|"classTy"|"enum"|"list"|"map"|"optional"|"union"|"literal"|"typeAlias"|"unknown"|"media"|"interface"|"enumVariant"|"Function"|"future"|"rustType"|"metaType"|"resource"|"promptAst"|"void"|"typeVar"|"associatedTypeProjection"|"never");
|
|
1302
1296
|
|
|
1303
1297
|
/**
|
|
1304
1298
|
* Creates a new BamlTy instance using the specified properties.
|
|
@@ -3610,103 +3604,6 @@ export namespace baml_bridge {
|
|
|
3610
3604
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3611
3605
|
}
|
|
3612
3606
|
|
|
3613
|
-
/** Properties of a BamlTyWatchAccessor. */
|
|
3614
|
-
interface IBamlTyWatchAccessor {
|
|
3615
|
-
|
|
3616
|
-
/** BamlTyWatchAccessor inner */
|
|
3617
|
-
inner?: (baml_bridge.cffi.v1.IBamlTy|null);
|
|
3618
|
-
}
|
|
3619
|
-
|
|
3620
|
-
/** Represents a BamlTyWatchAccessor. */
|
|
3621
|
-
class BamlTyWatchAccessor implements IBamlTyWatchAccessor {
|
|
3622
|
-
|
|
3623
|
-
/**
|
|
3624
|
-
* Constructs a new BamlTyWatchAccessor.
|
|
3625
|
-
* @param [properties] Properties to set
|
|
3626
|
-
*/
|
|
3627
|
-
constructor(properties?: baml_bridge.cffi.v1.IBamlTyWatchAccessor);
|
|
3628
|
-
|
|
3629
|
-
/** BamlTyWatchAccessor inner. */
|
|
3630
|
-
public inner?: (baml_bridge.cffi.v1.IBamlTy|null);
|
|
3631
|
-
|
|
3632
|
-
/**
|
|
3633
|
-
* Creates a new BamlTyWatchAccessor instance using the specified properties.
|
|
3634
|
-
* @param [properties] Properties to set
|
|
3635
|
-
* @returns BamlTyWatchAccessor instance
|
|
3636
|
-
*/
|
|
3637
|
-
public static create(properties?: baml_bridge.cffi.v1.IBamlTyWatchAccessor): baml_bridge.cffi.v1.BamlTyWatchAccessor;
|
|
3638
|
-
|
|
3639
|
-
/**
|
|
3640
|
-
* Encodes the specified BamlTyWatchAccessor message. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyWatchAccessor.verify|verify} messages.
|
|
3641
|
-
* @param message BamlTyWatchAccessor message or plain object to encode
|
|
3642
|
-
* @param [writer] Writer to encode to
|
|
3643
|
-
* @returns Writer
|
|
3644
|
-
*/
|
|
3645
|
-
public static encode(message: baml_bridge.cffi.v1.IBamlTyWatchAccessor, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3646
|
-
|
|
3647
|
-
/**
|
|
3648
|
-
* Encodes the specified BamlTyWatchAccessor message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyWatchAccessor.verify|verify} messages.
|
|
3649
|
-
* @param message BamlTyWatchAccessor message or plain object to encode
|
|
3650
|
-
* @param [writer] Writer to encode to
|
|
3651
|
-
* @returns Writer
|
|
3652
|
-
*/
|
|
3653
|
-
public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlTyWatchAccessor, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3654
|
-
|
|
3655
|
-
/**
|
|
3656
|
-
* Decodes a BamlTyWatchAccessor message from the specified reader or buffer.
|
|
3657
|
-
* @param reader Reader or buffer to decode from
|
|
3658
|
-
* @param [length] Message length if known beforehand
|
|
3659
|
-
* @returns BamlTyWatchAccessor
|
|
3660
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3661
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3662
|
-
*/
|
|
3663
|
-
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlTyWatchAccessor;
|
|
3664
|
-
|
|
3665
|
-
/**
|
|
3666
|
-
* Decodes a BamlTyWatchAccessor message from the specified reader or buffer, length delimited.
|
|
3667
|
-
* @param reader Reader or buffer to decode from
|
|
3668
|
-
* @returns BamlTyWatchAccessor
|
|
3669
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3670
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3671
|
-
*/
|
|
3672
|
-
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlTyWatchAccessor;
|
|
3673
|
-
|
|
3674
|
-
/**
|
|
3675
|
-
* Verifies a BamlTyWatchAccessor message.
|
|
3676
|
-
* @param message Plain object to verify
|
|
3677
|
-
* @returns `null` if valid, otherwise the reason why it is not
|
|
3678
|
-
*/
|
|
3679
|
-
public static verify(message: { [k: string]: any }): (string|null);
|
|
3680
|
-
|
|
3681
|
-
/**
|
|
3682
|
-
* Creates a BamlTyWatchAccessor message from a plain object. Also converts values to their respective internal types.
|
|
3683
|
-
* @param object Plain object
|
|
3684
|
-
* @returns BamlTyWatchAccessor
|
|
3685
|
-
*/
|
|
3686
|
-
public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlTyWatchAccessor;
|
|
3687
|
-
|
|
3688
|
-
/**
|
|
3689
|
-
* Creates a plain object from a BamlTyWatchAccessor message. Also converts values to other types if specified.
|
|
3690
|
-
* @param message BamlTyWatchAccessor
|
|
3691
|
-
* @param [options] Conversion options
|
|
3692
|
-
* @returns Plain object
|
|
3693
|
-
*/
|
|
3694
|
-
public static toObject(message: baml_bridge.cffi.v1.BamlTyWatchAccessor, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3695
|
-
|
|
3696
|
-
/**
|
|
3697
|
-
* Converts this BamlTyWatchAccessor to JSON.
|
|
3698
|
-
* @returns JSON object
|
|
3699
|
-
*/
|
|
3700
|
-
public toJSON(): { [k: string]: any };
|
|
3701
|
-
|
|
3702
|
-
/**
|
|
3703
|
-
* Gets the default type url for BamlTyWatchAccessor
|
|
3704
|
-
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3705
|
-
* @returns The default type url
|
|
3706
|
-
*/
|
|
3707
|
-
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3708
|
-
}
|
|
3709
|
-
|
|
3710
3607
|
/** Properties of a BamlTyTypeVar. */
|
|
3711
3608
|
interface IBamlTyTypeVar {
|
|
3712
3609
|
|
package/dist/proto/baml_cffi.js
CHANGED
|
@@ -3310,7 +3310,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
3310
3310
|
* @property {baml_bridge.cffi.v1.IBamlTyResource|null} [resource] BamlTy resource
|
|
3311
3311
|
* @property {baml_bridge.cffi.v1.IBamlTyPromptAst|null} [promptAst] BamlTy promptAst
|
|
3312
3312
|
* @property {baml_bridge.cffi.v1.IBamlTyVoid|null} ["void"] BamlTy void
|
|
3313
|
-
* @property {baml_bridge.cffi.v1.IBamlTyWatchAccessor|null} [watchAccessor] BamlTy watchAccessor
|
|
3314
3313
|
* @property {baml_bridge.cffi.v1.IBamlTyTypeVar|null} [typeVar] BamlTy typeVar
|
|
3315
3314
|
* @property {baml_bridge.cffi.v1.IBamlTyAssociatedTypeProjection|null} [associatedTypeProjection] BamlTy associatedTypeProjection
|
|
3316
3315
|
* @property {baml_bridge.cffi.v1.IBamlTyNever|null} [never] BamlTy never
|
|
@@ -3491,14 +3490,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
3491
3490
|
*/
|
|
3492
3491
|
BamlTy.prototype["void"] = null;
|
|
3493
3492
|
|
|
3494
|
-
/**
|
|
3495
|
-
* BamlTy watchAccessor.
|
|
3496
|
-
* @member {baml_bridge.cffi.v1.IBamlTyWatchAccessor|null|undefined} watchAccessor
|
|
3497
|
-
* @memberof baml_bridge.cffi.v1.BamlTy
|
|
3498
|
-
* @instance
|
|
3499
|
-
*/
|
|
3500
|
-
BamlTy.prototype.watchAccessor = null;
|
|
3501
|
-
|
|
3502
3493
|
/**
|
|
3503
3494
|
* BamlTy typeVar.
|
|
3504
3495
|
* @member {baml_bridge.cffi.v1.IBamlTyTypeVar|null|undefined} typeVar
|
|
@@ -3528,12 +3519,12 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
3528
3519
|
|
|
3529
3520
|
/**
|
|
3530
3521
|
* BamlTy ty.
|
|
3531
|
-
* @member {"primitive"|"classTy"|"enum"|"list"|"map"|"optional"|"union"|"literal"|"typeAlias"|"unknown"|"media"|"interface"|"enumVariant"|"function"|"future"|"rustType"|"metaType"|"resource"|"promptAst"|"void"|"
|
|
3522
|
+
* @member {"primitive"|"classTy"|"enum"|"list"|"map"|"optional"|"union"|"literal"|"typeAlias"|"unknown"|"media"|"interface"|"enumVariant"|"function"|"future"|"rustType"|"metaType"|"resource"|"promptAst"|"void"|"typeVar"|"associatedTypeProjection"|"never"|undefined} ty
|
|
3532
3523
|
* @memberof baml_bridge.cffi.v1.BamlTy
|
|
3533
3524
|
* @instance
|
|
3534
3525
|
*/
|
|
3535
3526
|
Object.defineProperty(BamlTy.prototype, "ty", {
|
|
3536
|
-
get: $util.oneOfGetter($oneOfFields = ["primitive", "classTy", "enum", "list", "map", "optional", "union", "literal", "typeAlias", "unknown", "media", "interface", "enumVariant", "function", "future", "rustType", "metaType", "resource", "promptAst", "void", "
|
|
3527
|
+
get: $util.oneOfGetter($oneOfFields = ["primitive", "classTy", "enum", "list", "map", "optional", "union", "literal", "typeAlias", "unknown", "media", "interface", "enumVariant", "function", "future", "rustType", "metaType", "resource", "promptAst", "void", "typeVar", "associatedTypeProjection", "never"]),
|
|
3537
3528
|
set: $util.oneOfSetter($oneOfFields)
|
|
3538
3529
|
});
|
|
3539
3530
|
|
|
@@ -3605,8 +3596,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
3605
3596
|
$root.baml_bridge.cffi.v1.BamlTyPromptAst.encode(message.promptAst, writer.uint32(/* id 19, wireType 2 =*/154).fork(), q + 1).ldelim();
|
|
3606
3597
|
if (message["void"] != null && Object.hasOwnProperty.call(message, "void"))
|
|
3607
3598
|
$root.baml_bridge.cffi.v1.BamlTyVoid.encode(message["void"], writer.uint32(/* id 20, wireType 2 =*/162).fork(), q + 1).ldelim();
|
|
3608
|
-
if (message.watchAccessor != null && Object.hasOwnProperty.call(message, "watchAccessor"))
|
|
3609
|
-
$root.baml_bridge.cffi.v1.BamlTyWatchAccessor.encode(message.watchAccessor, writer.uint32(/* id 21, wireType 2 =*/170).fork(), q + 1).ldelim();
|
|
3610
3599
|
if (message.typeVar != null && Object.hasOwnProperty.call(message, "typeVar"))
|
|
3611
3600
|
$root.baml_bridge.cffi.v1.BamlTyTypeVar.encode(message.typeVar, writer.uint32(/* id 22, wireType 2 =*/178).fork(), q + 1).ldelim();
|
|
3612
3601
|
if (message.associatedTypeProjection != null && Object.hasOwnProperty.call(message, "associatedTypeProjection"))
|
|
@@ -3733,10 +3722,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
3733
3722
|
message["void"] = $root.baml_bridge.cffi.v1.BamlTyVoid.decode(reader, reader.uint32(), undefined, long + 1);
|
|
3734
3723
|
break;
|
|
3735
3724
|
}
|
|
3736
|
-
case 21: {
|
|
3737
|
-
message.watchAccessor = $root.baml_bridge.cffi.v1.BamlTyWatchAccessor.decode(reader, reader.uint32(), undefined, long + 1);
|
|
3738
|
-
break;
|
|
3739
|
-
}
|
|
3740
3725
|
case 22: {
|
|
3741
3726
|
message.typeVar = $root.baml_bridge.cffi.v1.BamlTyTypeVar.decode(reader, reader.uint32(), undefined, long + 1);
|
|
3742
3727
|
break;
|
|
@@ -3987,16 +3972,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
3987
3972
|
return "void." + error;
|
|
3988
3973
|
}
|
|
3989
3974
|
}
|
|
3990
|
-
if (message.watchAccessor != null && message.hasOwnProperty("watchAccessor")) {
|
|
3991
|
-
if (properties.ty === 1)
|
|
3992
|
-
return "ty: multiple values";
|
|
3993
|
-
properties.ty = 1;
|
|
3994
|
-
{
|
|
3995
|
-
let error = $root.baml_bridge.cffi.v1.BamlTyWatchAccessor.verify(message.watchAccessor, long + 1);
|
|
3996
|
-
if (error)
|
|
3997
|
-
return "watchAccessor." + error;
|
|
3998
|
-
}
|
|
3999
|
-
}
|
|
4000
3975
|
if (message.typeVar != null && message.hasOwnProperty("typeVar")) {
|
|
4001
3976
|
if (properties.ty === 1)
|
|
4002
3977
|
return "ty: multiple values";
|
|
@@ -4148,11 +4123,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
4148
4123
|
throw TypeError(".baml_bridge.cffi.v1.BamlTy.void: object expected");
|
|
4149
4124
|
message["void"] = $root.baml_bridge.cffi.v1.BamlTyVoid.fromObject(object["void"], long + 1);
|
|
4150
4125
|
}
|
|
4151
|
-
if (object.watchAccessor != null) {
|
|
4152
|
-
if (!$util.isObject(object.watchAccessor))
|
|
4153
|
-
throw TypeError(".baml_bridge.cffi.v1.BamlTy.watchAccessor: object expected");
|
|
4154
|
-
message.watchAccessor = $root.baml_bridge.cffi.v1.BamlTyWatchAccessor.fromObject(object.watchAccessor, long + 1);
|
|
4155
|
-
}
|
|
4156
4126
|
if (object.typeVar != null) {
|
|
4157
4127
|
if (!$util.isObject(object.typeVar))
|
|
4158
4128
|
throw TypeError(".baml_bridge.cffi.v1.BamlTy.typeVar: object expected");
|
|
@@ -4288,11 +4258,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
4288
4258
|
if (options.oneofs)
|
|
4289
4259
|
object.ty = "void";
|
|
4290
4260
|
}
|
|
4291
|
-
if (message.watchAccessor != null && message.hasOwnProperty("watchAccessor")) {
|
|
4292
|
-
object.watchAccessor = $root.baml_bridge.cffi.v1.BamlTyWatchAccessor.toObject(message.watchAccessor, options, q + 1);
|
|
4293
|
-
if (options.oneofs)
|
|
4294
|
-
object.ty = "watchAccessor";
|
|
4295
|
-
}
|
|
4296
4261
|
if (message.typeVar != null && message.hasOwnProperty("typeVar")) {
|
|
4297
4262
|
object.typeVar = $root.baml_bridge.cffi.v1.BamlTyTypeVar.toObject(message.typeVar, options, q + 1);
|
|
4298
4263
|
if (options.oneofs)
|
|
@@ -9981,238 +9946,6 @@ export const baml_bridge = $root.baml_bridge = (() => {
|
|
|
9981
9946
|
return BamlTyVoid;
|
|
9982
9947
|
})();
|
|
9983
9948
|
|
|
9984
|
-
v1.BamlTyWatchAccessor = (function() {
|
|
9985
|
-
|
|
9986
|
-
/**
|
|
9987
|
-
* Properties of a BamlTyWatchAccessor.
|
|
9988
|
-
* @memberof baml_bridge.cffi.v1
|
|
9989
|
-
* @interface IBamlTyWatchAccessor
|
|
9990
|
-
* @property {baml_bridge.cffi.v1.IBamlTy|null} [inner] BamlTyWatchAccessor inner
|
|
9991
|
-
*/
|
|
9992
|
-
|
|
9993
|
-
/**
|
|
9994
|
-
* Constructs a new BamlTyWatchAccessor.
|
|
9995
|
-
* @memberof baml_bridge.cffi.v1
|
|
9996
|
-
* @classdesc Represents a BamlTyWatchAccessor.
|
|
9997
|
-
* @implements IBamlTyWatchAccessor
|
|
9998
|
-
* @constructor
|
|
9999
|
-
* @param {baml_bridge.cffi.v1.IBamlTyWatchAccessor=} [properties] Properties to set
|
|
10000
|
-
*/
|
|
10001
|
-
function BamlTyWatchAccessor(properties) {
|
|
10002
|
-
if (properties)
|
|
10003
|
-
for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10004
|
-
if (properties[keys[i]] != null && keys[i] !== "__proto__")
|
|
10005
|
-
this[keys[i]] = properties[keys[i]];
|
|
10006
|
-
}
|
|
10007
|
-
|
|
10008
|
-
/**
|
|
10009
|
-
* BamlTyWatchAccessor inner.
|
|
10010
|
-
* @member {baml_bridge.cffi.v1.IBamlTy|null|undefined} inner
|
|
10011
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10012
|
-
* @instance
|
|
10013
|
-
*/
|
|
10014
|
-
BamlTyWatchAccessor.prototype.inner = null;
|
|
10015
|
-
|
|
10016
|
-
/**
|
|
10017
|
-
* Creates a new BamlTyWatchAccessor instance using the specified properties.
|
|
10018
|
-
* @function create
|
|
10019
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10020
|
-
* @static
|
|
10021
|
-
* @param {baml_bridge.cffi.v1.IBamlTyWatchAccessor=} [properties] Properties to set
|
|
10022
|
-
* @returns {baml_bridge.cffi.v1.BamlTyWatchAccessor} BamlTyWatchAccessor instance
|
|
10023
|
-
*/
|
|
10024
|
-
BamlTyWatchAccessor.create = function create(properties) {
|
|
10025
|
-
return new BamlTyWatchAccessor(properties);
|
|
10026
|
-
};
|
|
10027
|
-
|
|
10028
|
-
/**
|
|
10029
|
-
* Encodes the specified BamlTyWatchAccessor message. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyWatchAccessor.verify|verify} messages.
|
|
10030
|
-
* @function encode
|
|
10031
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10032
|
-
* @static
|
|
10033
|
-
* @param {baml_bridge.cffi.v1.IBamlTyWatchAccessor} message BamlTyWatchAccessor message or plain object to encode
|
|
10034
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10035
|
-
* @returns {$protobuf.Writer} Writer
|
|
10036
|
-
*/
|
|
10037
|
-
BamlTyWatchAccessor.encode = function encode(message, writer, q) {
|
|
10038
|
-
if (!writer)
|
|
10039
|
-
writer = $Writer.create();
|
|
10040
|
-
if (q === undefined)
|
|
10041
|
-
q = 0;
|
|
10042
|
-
if (q > $util.recursionLimit)
|
|
10043
|
-
throw Error("max depth exceeded");
|
|
10044
|
-
if (message.inner != null && Object.hasOwnProperty.call(message, "inner"))
|
|
10045
|
-
$root.baml_bridge.cffi.v1.BamlTy.encode(message.inner, writer.uint32(/* id 1, wireType 2 =*/10).fork(), q + 1).ldelim();
|
|
10046
|
-
return writer;
|
|
10047
|
-
};
|
|
10048
|
-
|
|
10049
|
-
/**
|
|
10050
|
-
* Encodes the specified BamlTyWatchAccessor message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyWatchAccessor.verify|verify} messages.
|
|
10051
|
-
* @function encodeDelimited
|
|
10052
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10053
|
-
* @static
|
|
10054
|
-
* @param {baml_bridge.cffi.v1.IBamlTyWatchAccessor} message BamlTyWatchAccessor message or plain object to encode
|
|
10055
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10056
|
-
* @returns {$protobuf.Writer} Writer
|
|
10057
|
-
*/
|
|
10058
|
-
BamlTyWatchAccessor.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10059
|
-
return this.encode(message, writer).ldelim();
|
|
10060
|
-
};
|
|
10061
|
-
|
|
10062
|
-
/**
|
|
10063
|
-
* Decodes a BamlTyWatchAccessor message from the specified reader or buffer.
|
|
10064
|
-
* @function decode
|
|
10065
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10066
|
-
* @static
|
|
10067
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10068
|
-
* @param {number} [length] Message length if known beforehand
|
|
10069
|
-
* @returns {baml_bridge.cffi.v1.BamlTyWatchAccessor} BamlTyWatchAccessor
|
|
10070
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10071
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10072
|
-
*/
|
|
10073
|
-
BamlTyWatchAccessor.decode = function decode(reader, length, error, long) {
|
|
10074
|
-
if (!(reader instanceof $Reader))
|
|
10075
|
-
reader = $Reader.create(reader);
|
|
10076
|
-
if (long === undefined)
|
|
10077
|
-
long = 0;
|
|
10078
|
-
if (long > $Reader.recursionLimit)
|
|
10079
|
-
throw Error("maximum nesting depth exceeded");
|
|
10080
|
-
let end = length === undefined ? reader.len : reader.pos + length, message = new $root.baml_bridge.cffi.v1.BamlTyWatchAccessor();
|
|
10081
|
-
while (reader.pos < end) {
|
|
10082
|
-
let tag = reader.uint32();
|
|
10083
|
-
if (tag === error)
|
|
10084
|
-
break;
|
|
10085
|
-
switch (tag >>> 3) {
|
|
10086
|
-
case 1: {
|
|
10087
|
-
message.inner = $root.baml_bridge.cffi.v1.BamlTy.decode(reader, reader.uint32(), undefined, long + 1);
|
|
10088
|
-
break;
|
|
10089
|
-
}
|
|
10090
|
-
default:
|
|
10091
|
-
reader.skipType(tag & 7, long);
|
|
10092
|
-
break;
|
|
10093
|
-
}
|
|
10094
|
-
}
|
|
10095
|
-
return message;
|
|
10096
|
-
};
|
|
10097
|
-
|
|
10098
|
-
/**
|
|
10099
|
-
* Decodes a BamlTyWatchAccessor message from the specified reader or buffer, length delimited.
|
|
10100
|
-
* @function decodeDelimited
|
|
10101
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10102
|
-
* @static
|
|
10103
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10104
|
-
* @returns {baml_bridge.cffi.v1.BamlTyWatchAccessor} BamlTyWatchAccessor
|
|
10105
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10106
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10107
|
-
*/
|
|
10108
|
-
BamlTyWatchAccessor.decodeDelimited = function decodeDelimited(reader) {
|
|
10109
|
-
if (!(reader instanceof $Reader))
|
|
10110
|
-
reader = new $Reader(reader);
|
|
10111
|
-
return this.decode(reader, reader.uint32());
|
|
10112
|
-
};
|
|
10113
|
-
|
|
10114
|
-
/**
|
|
10115
|
-
* Verifies a BamlTyWatchAccessor message.
|
|
10116
|
-
* @function verify
|
|
10117
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10118
|
-
* @static
|
|
10119
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
10120
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10121
|
-
*/
|
|
10122
|
-
BamlTyWatchAccessor.verify = function verify(message, long) {
|
|
10123
|
-
if (typeof message !== "object" || message === null)
|
|
10124
|
-
return "object expected";
|
|
10125
|
-
if (long === undefined)
|
|
10126
|
-
long = 0;
|
|
10127
|
-
if (long > $util.recursionLimit)
|
|
10128
|
-
return "maximum nesting depth exceeded";
|
|
10129
|
-
if (message.inner != null && message.hasOwnProperty("inner")) {
|
|
10130
|
-
let error = $root.baml_bridge.cffi.v1.BamlTy.verify(message.inner, long + 1);
|
|
10131
|
-
if (error)
|
|
10132
|
-
return "inner." + error;
|
|
10133
|
-
}
|
|
10134
|
-
return null;
|
|
10135
|
-
};
|
|
10136
|
-
|
|
10137
|
-
/**
|
|
10138
|
-
* Creates a BamlTyWatchAccessor message from a plain object. Also converts values to their respective internal types.
|
|
10139
|
-
* @function fromObject
|
|
10140
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10141
|
-
* @static
|
|
10142
|
-
* @param {Object.<string,*>} object Plain object
|
|
10143
|
-
* @returns {baml_bridge.cffi.v1.BamlTyWatchAccessor} BamlTyWatchAccessor
|
|
10144
|
-
*/
|
|
10145
|
-
BamlTyWatchAccessor.fromObject = function fromObject(object, long) {
|
|
10146
|
-
if (object instanceof $root.baml_bridge.cffi.v1.BamlTyWatchAccessor)
|
|
10147
|
-
return object;
|
|
10148
|
-
if (!$util.isObject(object))
|
|
10149
|
-
throw TypeError(".baml_bridge.cffi.v1.BamlTyWatchAccessor: object expected");
|
|
10150
|
-
if (long === undefined)
|
|
10151
|
-
long = 0;
|
|
10152
|
-
if (long > $util.recursionLimit)
|
|
10153
|
-
throw Error("maximum nesting depth exceeded");
|
|
10154
|
-
let message = new $root.baml_bridge.cffi.v1.BamlTyWatchAccessor();
|
|
10155
|
-
if (object.inner != null) {
|
|
10156
|
-
if (!$util.isObject(object.inner))
|
|
10157
|
-
throw TypeError(".baml_bridge.cffi.v1.BamlTyWatchAccessor.inner: object expected");
|
|
10158
|
-
message.inner = $root.baml_bridge.cffi.v1.BamlTy.fromObject(object.inner, long + 1);
|
|
10159
|
-
}
|
|
10160
|
-
return message;
|
|
10161
|
-
};
|
|
10162
|
-
|
|
10163
|
-
/**
|
|
10164
|
-
* Creates a plain object from a BamlTyWatchAccessor message. Also converts values to other types if specified.
|
|
10165
|
-
* @function toObject
|
|
10166
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10167
|
-
* @static
|
|
10168
|
-
* @param {baml_bridge.cffi.v1.BamlTyWatchAccessor} message BamlTyWatchAccessor
|
|
10169
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10170
|
-
* @returns {Object.<string,*>} Plain object
|
|
10171
|
-
*/
|
|
10172
|
-
BamlTyWatchAccessor.toObject = function toObject(message, options, q) {
|
|
10173
|
-
if (!options)
|
|
10174
|
-
options = {};
|
|
10175
|
-
if (q === undefined)
|
|
10176
|
-
q = 0;
|
|
10177
|
-
if (q > $util.recursionLimit)
|
|
10178
|
-
throw Error("max depth exceeded");
|
|
10179
|
-
let object = {};
|
|
10180
|
-
if (options.defaults)
|
|
10181
|
-
object.inner = null;
|
|
10182
|
-
if (message.inner != null && message.hasOwnProperty("inner"))
|
|
10183
|
-
object.inner = $root.baml_bridge.cffi.v1.BamlTy.toObject(message.inner, options, q + 1);
|
|
10184
|
-
return object;
|
|
10185
|
-
};
|
|
10186
|
-
|
|
10187
|
-
/**
|
|
10188
|
-
* Converts this BamlTyWatchAccessor to JSON.
|
|
10189
|
-
* @function toJSON
|
|
10190
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10191
|
-
* @instance
|
|
10192
|
-
* @returns {Object.<string,*>} JSON object
|
|
10193
|
-
*/
|
|
10194
|
-
BamlTyWatchAccessor.prototype.toJSON = function toJSON() {
|
|
10195
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10196
|
-
};
|
|
10197
|
-
|
|
10198
|
-
/**
|
|
10199
|
-
* Gets the default type url for BamlTyWatchAccessor
|
|
10200
|
-
* @function getTypeUrl
|
|
10201
|
-
* @memberof baml_bridge.cffi.v1.BamlTyWatchAccessor
|
|
10202
|
-
* @static
|
|
10203
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10204
|
-
* @returns {string} The default type url
|
|
10205
|
-
*/
|
|
10206
|
-
BamlTyWatchAccessor.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
10207
|
-
if (typeUrlPrefix === undefined) {
|
|
10208
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
10209
|
-
}
|
|
10210
|
-
return typeUrlPrefix + "/baml_bridge.cffi.v1.BamlTyWatchAccessor";
|
|
10211
|
-
};
|
|
10212
|
-
|
|
10213
|
-
return BamlTyWatchAccessor;
|
|
10214
|
-
})();
|
|
10215
|
-
|
|
10216
9949
|
v1.BamlTyTypeVar = (function() {
|
|
10217
9950
|
|
|
10218
9951
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boundaryml/baml-bridge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
"protobufjs": "^7.6.2"
|
|
61
61
|
},
|
|
62
62
|
"optionalDependencies": {
|
|
63
|
-
"@boundaryml/baml-bridge-darwin-x64": "0.
|
|
64
|
-
"@boundaryml/baml-bridge-darwin-arm64": "0.
|
|
65
|
-
"@boundaryml/baml-bridge-linux-x64-gnu": "0.
|
|
66
|
-
"@boundaryml/baml-bridge-linux-x64-musl": "0.
|
|
67
|
-
"@boundaryml/baml-bridge-linux-arm64-gnu": "0.
|
|
68
|
-
"@boundaryml/baml-bridge-linux-arm64-musl": "0.
|
|
69
|
-
"@boundaryml/baml-bridge-win32-x64-msvc": "0.
|
|
70
|
-
"@boundaryml/baml-bridge-win32-arm64-msvc": "0.
|
|
63
|
+
"@boundaryml/baml-bridge-darwin-x64": "0.15.0",
|
|
64
|
+
"@boundaryml/baml-bridge-darwin-arm64": "0.15.0",
|
|
65
|
+
"@boundaryml/baml-bridge-linux-x64-gnu": "0.15.0",
|
|
66
|
+
"@boundaryml/baml-bridge-linux-x64-musl": "0.15.0",
|
|
67
|
+
"@boundaryml/baml-bridge-linux-arm64-gnu": "0.15.0",
|
|
68
|
+
"@boundaryml/baml-bridge-linux-arm64-musl": "0.15.0",
|
|
69
|
+
"@boundaryml/baml-bridge-win32-x64-msvc": "0.15.0",
|
|
70
|
+
"@boundaryml/baml-bridge-win32-arm64-msvc": "0.15.0"
|
|
71
71
|
}
|
|
72
72
|
}
|