@boundaryml/baml-bridge 0.16.0 → 0.17.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.
@@ -57,6 +57,9 @@ export namespace baml_bridge {
57
57
 
58
58
  /** InboundValue tyValue */
59
59
  tyValue?: (baml_bridge.cffi.v1.IBamlTy|null);
60
+
61
+ /** InboundValue tyDefValue */
62
+ tyDefValue?: (baml_bridge.cffi.v1.IBamlTyDef|null);
60
63
  }
61
64
 
62
65
  /** Represents an InboundValue. */
@@ -107,8 +110,11 @@ export namespace baml_bridge {
107
110
  /** InboundValue tyValue. */
108
111
  public tyValue?: (baml_bridge.cffi.v1.IBamlTy|null);
109
112
 
113
+ /** InboundValue tyDefValue. */
114
+ public tyDefValue?: (baml_bridge.cffi.v1.IBamlTyDef|null);
115
+
110
116
  /** InboundValue value. */
111
- public value?: ("stringValue"|"intValue"|"floatValue"|"boolValue"|"listValue"|"mapValue"|"classValue"|"enumValue"|"handle"|"uint8arrayValue"|"bigintValue"|"tyValue");
117
+ public value?: ("stringValue"|"intValue"|"floatValue"|"boolValue"|"listValue"|"mapValue"|"classValue"|"enumValue"|"handle"|"uint8arrayValue"|"bigintValue"|"tyValue"|"tyDefValue");
112
118
 
113
119
  /**
114
120
  * Creates a new InboundValue instance using the specified properties.
@@ -714,6 +720,9 @@ export namespace baml_bridge {
714
720
 
715
721
  /** BamlTyArg typeValue */
716
722
  typeValue?: (baml_bridge.cffi.v1.IBamlTy|null);
723
+
724
+ /** BamlTyArg typeDefinition */
725
+ typeDefinition?: (baml_bridge.cffi.v1.IBamlTyDef|null);
717
726
  }
718
727
 
719
728
  /** Represents a BamlTyArg. */
@@ -731,6 +740,9 @@ export namespace baml_bridge {
731
740
  /** BamlTyArg typeValue. */
732
741
  public typeValue?: (baml_bridge.cffi.v1.IBamlTy|null);
733
742
 
743
+ /** BamlTyArg typeDefinition. */
744
+ public typeDefinition?: (baml_bridge.cffi.v1.IBamlTyDef|null);
745
+
734
746
  /**
735
747
  * Creates a new BamlTyArg instance using the specified properties.
736
748
  * @param [properties] Properties to set
@@ -949,438 +961,1334 @@ export namespace baml_bridge {
949
961
  */
950
962
  constructor(properties?: baml_bridge.cffi.v1.ICallAck);
951
963
 
952
- /** CallAck error. */
953
- public error?: (string|null);
964
+ /** CallAck error. */
965
+ public error?: (string|null);
966
+
967
+ /** CallAck response. */
968
+ public response?: "error";
969
+
970
+ /**
971
+ * Creates a new CallAck instance using the specified properties.
972
+ * @param [properties] Properties to set
973
+ * @returns CallAck instance
974
+ */
975
+ public static create(properties?: baml_bridge.cffi.v1.ICallAck): baml_bridge.cffi.v1.CallAck;
976
+
977
+ /**
978
+ * Encodes the specified CallAck message. Does not implicitly {@link baml_bridge.cffi.v1.CallAck.verify|verify} messages.
979
+ * @param message CallAck message or plain object to encode
980
+ * @param [writer] Writer to encode to
981
+ * @returns Writer
982
+ */
983
+ public static encode(message: baml_bridge.cffi.v1.ICallAck, writer?: $protobuf.Writer): $protobuf.Writer;
984
+
985
+ /**
986
+ * Encodes the specified CallAck message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.CallAck.verify|verify} messages.
987
+ * @param message CallAck message or plain object to encode
988
+ * @param [writer] Writer to encode to
989
+ * @returns Writer
990
+ */
991
+ public static encodeDelimited(message: baml_bridge.cffi.v1.ICallAck, writer?: $protobuf.Writer): $protobuf.Writer;
992
+
993
+ /**
994
+ * Decodes a CallAck message from the specified reader or buffer.
995
+ * @param reader Reader or buffer to decode from
996
+ * @param [length] Message length if known beforehand
997
+ * @returns CallAck
998
+ * @throws {Error} If the payload is not a reader or valid buffer
999
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1000
+ */
1001
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.CallAck;
1002
+
1003
+ /**
1004
+ * Decodes a CallAck message from the specified reader or buffer, length delimited.
1005
+ * @param reader Reader or buffer to decode from
1006
+ * @returns CallAck
1007
+ * @throws {Error} If the payload is not a reader or valid buffer
1008
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1009
+ */
1010
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.CallAck;
1011
+
1012
+ /**
1013
+ * Verifies a CallAck message.
1014
+ * @param message Plain object to verify
1015
+ * @returns `null` if valid, otherwise the reason why it is not
1016
+ */
1017
+ public static verify(message: { [k: string]: any }): (string|null);
1018
+
1019
+ /**
1020
+ * Creates a CallAck message from a plain object. Also converts values to their respective internal types.
1021
+ * @param object Plain object
1022
+ * @returns CallAck
1023
+ */
1024
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.CallAck;
1025
+
1026
+ /**
1027
+ * Creates a plain object from a CallAck message. Also converts values to other types if specified.
1028
+ * @param message CallAck
1029
+ * @param [options] Conversion options
1030
+ * @returns Plain object
1031
+ */
1032
+ public static toObject(message: baml_bridge.cffi.v1.CallAck, options?: $protobuf.IConversionOptions): { [k: string]: any };
1033
+
1034
+ /**
1035
+ * Converts this CallAck to JSON.
1036
+ * @returns JSON object
1037
+ */
1038
+ public toJSON(): { [k: string]: any };
1039
+
1040
+ /**
1041
+ * Gets the default type url for CallAck
1042
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1043
+ * @returns The default type url
1044
+ */
1045
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1046
+ }
1047
+
1048
+ /** BamlHandleType enum. */
1049
+ enum BamlHandleType {
1050
+ HANDLE_UNSPECIFIED = 0,
1051
+ UNTAGGED_RUST_DATA = 1,
1052
+ UNTAGGED_BEX_HEAP = 2,
1053
+ FUNCTION_REF = 5,
1054
+ ADT_MEDIA_IMAGE = 6,
1055
+ ADT_MEDIA_AUDIO = 7,
1056
+ ADT_MEDIA_VIDEO = 8,
1057
+ ADT_MEDIA_PDF = 9,
1058
+ ADT_MEDIA_GENERIC = 10,
1059
+ ADT_PROMPT_AST = 11,
1060
+ ADT_COLLECTOR = 12,
1061
+ ADT_TYPE = 13,
1062
+ ADT_TAGGED_HEAP_HANDLE = 14,
1063
+ HOST_VALUE_CALLABLE = 15,
1064
+ HOST_VALUE_OPAQUE = 16
1065
+ }
1066
+
1067
+ /** Properties of a BamlHandle. */
1068
+ interface IBamlHandle {
1069
+
1070
+ /** BamlHandle key */
1071
+ key?: (number|Long|null);
1072
+
1073
+ /** BamlHandle handleType */
1074
+ handleType?: (baml_bridge.cffi.v1.BamlHandleType|null);
1075
+ }
1076
+
1077
+ /** Represents a BamlHandle. */
1078
+ class BamlHandle implements IBamlHandle {
1079
+
1080
+ /**
1081
+ * Constructs a new BamlHandle.
1082
+ * @param [properties] Properties to set
1083
+ */
1084
+ constructor(properties?: baml_bridge.cffi.v1.IBamlHandle);
1085
+
1086
+ /** BamlHandle key. */
1087
+ public key: (number|Long);
1088
+
1089
+ /** BamlHandle handleType. */
1090
+ public handleType: baml_bridge.cffi.v1.BamlHandleType;
1091
+
1092
+ /**
1093
+ * Creates a new BamlHandle instance using the specified properties.
1094
+ * @param [properties] Properties to set
1095
+ * @returns BamlHandle instance
1096
+ */
1097
+ public static create(properties?: baml_bridge.cffi.v1.IBamlHandle): baml_bridge.cffi.v1.BamlHandle;
1098
+
1099
+ /**
1100
+ * Encodes the specified BamlHandle message. Does not implicitly {@link baml_bridge.cffi.v1.BamlHandle.verify|verify} messages.
1101
+ * @param message BamlHandle message or plain object to encode
1102
+ * @param [writer] Writer to encode to
1103
+ * @returns Writer
1104
+ */
1105
+ public static encode(message: baml_bridge.cffi.v1.IBamlHandle, writer?: $protobuf.Writer): $protobuf.Writer;
1106
+
1107
+ /**
1108
+ * Encodes the specified BamlHandle message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlHandle.verify|verify} messages.
1109
+ * @param message BamlHandle message or plain object to encode
1110
+ * @param [writer] Writer to encode to
1111
+ * @returns Writer
1112
+ */
1113
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlHandle, writer?: $protobuf.Writer): $protobuf.Writer;
1114
+
1115
+ /**
1116
+ * Decodes a BamlHandle message from the specified reader or buffer.
1117
+ * @param reader Reader or buffer to decode from
1118
+ * @param [length] Message length if known beforehand
1119
+ * @returns BamlHandle
1120
+ * @throws {Error} If the payload is not a reader or valid buffer
1121
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1122
+ */
1123
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlHandle;
1124
+
1125
+ /**
1126
+ * Decodes a BamlHandle message from the specified reader or buffer, length delimited.
1127
+ * @param reader Reader or buffer to decode from
1128
+ * @returns BamlHandle
1129
+ * @throws {Error} If the payload is not a reader or valid buffer
1130
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1131
+ */
1132
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlHandle;
1133
+
1134
+ /**
1135
+ * Verifies a BamlHandle message.
1136
+ * @param message Plain object to verify
1137
+ * @returns `null` if valid, otherwise the reason why it is not
1138
+ */
1139
+ public static verify(message: { [k: string]: any }): (string|null);
1140
+
1141
+ /**
1142
+ * Creates a BamlHandle message from a plain object. Also converts values to their respective internal types.
1143
+ * @param object Plain object
1144
+ * @returns BamlHandle
1145
+ */
1146
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlHandle;
1147
+
1148
+ /**
1149
+ * Creates a plain object from a BamlHandle message. Also converts values to other types if specified.
1150
+ * @param message BamlHandle
1151
+ * @param [options] Conversion options
1152
+ * @returns Plain object
1153
+ */
1154
+ public static toObject(message: baml_bridge.cffi.v1.BamlHandle, options?: $protobuf.IConversionOptions): { [k: string]: any };
1155
+
1156
+ /**
1157
+ * Converts this BamlHandle to JSON.
1158
+ * @returns JSON object
1159
+ */
1160
+ public toJSON(): { [k: string]: any };
1161
+
1162
+ /**
1163
+ * Gets the default type url for BamlHandle
1164
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1165
+ * @returns The default type url
1166
+ */
1167
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1168
+ }
1169
+
1170
+ /** Properties of a BamlTy. */
1171
+ interface IBamlTy {
1172
+
1173
+ /** BamlTy primitive */
1174
+ primitive?: (baml_bridge.cffi.v1.IBamlTyPrimitive|null);
1175
+
1176
+ /** BamlTy classTy */
1177
+ classTy?: (baml_bridge.cffi.v1.IBamlTyClass|null);
1178
+
1179
+ /** BamlTy enum */
1180
+ "enum"?: (baml_bridge.cffi.v1.IBamlTyEnum|null);
1181
+
1182
+ /** BamlTy list */
1183
+ list?: (baml_bridge.cffi.v1.IBamlTyList|null);
1184
+
1185
+ /** BamlTy map */
1186
+ map?: (baml_bridge.cffi.v1.IBamlTyMap|null);
1187
+
1188
+ /** BamlTy optional */
1189
+ optional?: (baml_bridge.cffi.v1.IBamlTyOptional|null);
1190
+
1191
+ /** BamlTy union */
1192
+ union?: (baml_bridge.cffi.v1.IBamlTyUnion|null);
1193
+
1194
+ /** BamlTy literal */
1195
+ literal?: (baml_bridge.cffi.v1.IBamlTyLiteral|null);
1196
+
1197
+ /** BamlTy typeAlias */
1198
+ typeAlias?: (baml_bridge.cffi.v1.IBamlTyTypeAlias|null);
1199
+
1200
+ /** BamlTy unknown */
1201
+ unknown?: (baml_bridge.cffi.v1.IBamlTyUnknown|null);
1202
+
1203
+ /** BamlTy media */
1204
+ media?: (baml_bridge.cffi.v1.IBamlTyMedia|null);
1205
+
1206
+ /** BamlTy interface */
1207
+ "interface"?: (baml_bridge.cffi.v1.IBamlTyInterface|null);
1208
+
1209
+ /** BamlTy enumVariant */
1210
+ enumVariant?: (baml_bridge.cffi.v1.IBamlTyEnumVariant|null);
1211
+
1212
+ /** BamlTy function */
1213
+ "function"?: (baml_bridge.cffi.v1.IBamlTyFunction|null);
1214
+
1215
+ /** BamlTy future */
1216
+ future?: (baml_bridge.cffi.v1.IBamlTyFuture|null);
1217
+
1218
+ /** BamlTy rustType */
1219
+ rustType?: (baml_bridge.cffi.v1.IBamlTyRustType|null);
1220
+
1221
+ /** BamlTy metaType */
1222
+ metaType?: (baml_bridge.cffi.v1.IBamlTyMetaType|null);
1223
+
1224
+ /** BamlTy resource */
1225
+ resource?: (baml_bridge.cffi.v1.IBamlTyResource|null);
1226
+
1227
+ /** BamlTy promptAst */
1228
+ promptAst?: (baml_bridge.cffi.v1.IBamlTyPromptAst|null);
1229
+
1230
+ /** BamlTy void */
1231
+ "void"?: (baml_bridge.cffi.v1.IBamlTyVoid|null);
1232
+
1233
+ /** BamlTy typeVar */
1234
+ typeVar?: (baml_bridge.cffi.v1.IBamlTyTypeVar|null);
1235
+
1236
+ /** BamlTy associatedTypeProjection */
1237
+ associatedTypeProjection?: (baml_bridge.cffi.v1.IBamlTyAssociatedTypeProjection|null);
1238
+
1239
+ /** BamlTy never */
1240
+ never?: (baml_bridge.cffi.v1.IBamlTyNever|null);
1241
+ }
1242
+
1243
+ /** Represents a BamlTy. */
1244
+ class BamlTy implements IBamlTy {
1245
+
1246
+ /**
1247
+ * Constructs a new BamlTy.
1248
+ * @param [properties] Properties to set
1249
+ */
1250
+ constructor(properties?: baml_bridge.cffi.v1.IBamlTy);
1251
+
1252
+ /** BamlTy primitive. */
1253
+ public primitive?: (baml_bridge.cffi.v1.IBamlTyPrimitive|null);
1254
+
1255
+ /** BamlTy classTy. */
1256
+ public classTy?: (baml_bridge.cffi.v1.IBamlTyClass|null);
1257
+
1258
+ /** BamlTy enum. */
1259
+ public enum?: (baml_bridge.cffi.v1.IBamlTyEnum|null);
1260
+
1261
+ /** BamlTy list. */
1262
+ public list?: (baml_bridge.cffi.v1.IBamlTyList|null);
1263
+
1264
+ /** BamlTy map. */
1265
+ public map?: (baml_bridge.cffi.v1.IBamlTyMap|null);
1266
+
1267
+ /** BamlTy optional. */
1268
+ public optional?: (baml_bridge.cffi.v1.IBamlTyOptional|null);
1269
+
1270
+ /** BamlTy union. */
1271
+ public union?: (baml_bridge.cffi.v1.IBamlTyUnion|null);
1272
+
1273
+ /** BamlTy literal. */
1274
+ public literal?: (baml_bridge.cffi.v1.IBamlTyLiteral|null);
1275
+
1276
+ /** BamlTy typeAlias. */
1277
+ public typeAlias?: (baml_bridge.cffi.v1.IBamlTyTypeAlias|null);
1278
+
1279
+ /** BamlTy unknown. */
1280
+ public unknown?: (baml_bridge.cffi.v1.IBamlTyUnknown|null);
1281
+
1282
+ /** BamlTy media. */
1283
+ public media?: (baml_bridge.cffi.v1.IBamlTyMedia|null);
1284
+
1285
+ /** BamlTy interface. */
1286
+ public interface?: (baml_bridge.cffi.v1.IBamlTyInterface|null);
1287
+
1288
+ /** BamlTy enumVariant. */
1289
+ public enumVariant?: (baml_bridge.cffi.v1.IBamlTyEnumVariant|null);
1290
+
1291
+ /** BamlTy function. */
1292
+ public function?: (baml_bridge.cffi.v1.IBamlTyFunction|null);
1293
+
1294
+ /** BamlTy future. */
1295
+ public future?: (baml_bridge.cffi.v1.IBamlTyFuture|null);
1296
+
1297
+ /** BamlTy rustType. */
1298
+ public rustType?: (baml_bridge.cffi.v1.IBamlTyRustType|null);
1299
+
1300
+ /** BamlTy metaType. */
1301
+ public metaType?: (baml_bridge.cffi.v1.IBamlTyMetaType|null);
1302
+
1303
+ /** BamlTy resource. */
1304
+ public resource?: (baml_bridge.cffi.v1.IBamlTyResource|null);
1305
+
1306
+ /** BamlTy promptAst. */
1307
+ public promptAst?: (baml_bridge.cffi.v1.IBamlTyPromptAst|null);
1308
+
1309
+ /** BamlTy void. */
1310
+ public void?: (baml_bridge.cffi.v1.IBamlTyVoid|null);
1311
+
1312
+ /** BamlTy typeVar. */
1313
+ public typeVar?: (baml_bridge.cffi.v1.IBamlTyTypeVar|null);
1314
+
1315
+ /** BamlTy associatedTypeProjection. */
1316
+ public associatedTypeProjection?: (baml_bridge.cffi.v1.IBamlTyAssociatedTypeProjection|null);
1317
+
1318
+ /** BamlTy never. */
1319
+ public never?: (baml_bridge.cffi.v1.IBamlTyNever|null);
1320
+
1321
+ /** BamlTy ty. */
1322
+ 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");
1323
+
1324
+ /**
1325
+ * Creates a new BamlTy instance using the specified properties.
1326
+ * @param [properties] Properties to set
1327
+ * @returns BamlTy instance
1328
+ */
1329
+ public static create(properties?: baml_bridge.cffi.v1.IBamlTy): baml_bridge.cffi.v1.BamlTy;
1330
+
1331
+ /**
1332
+ * Encodes the specified BamlTy message. Does not implicitly {@link baml_bridge.cffi.v1.BamlTy.verify|verify} messages.
1333
+ * @param message BamlTy message or plain object to encode
1334
+ * @param [writer] Writer to encode to
1335
+ * @returns Writer
1336
+ */
1337
+ public static encode(message: baml_bridge.cffi.v1.IBamlTy, writer?: $protobuf.Writer): $protobuf.Writer;
1338
+
1339
+ /**
1340
+ * Encodes the specified BamlTy message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlTy.verify|verify} messages.
1341
+ * @param message BamlTy message or plain object to encode
1342
+ * @param [writer] Writer to encode to
1343
+ * @returns Writer
1344
+ */
1345
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlTy, writer?: $protobuf.Writer): $protobuf.Writer;
1346
+
1347
+ /**
1348
+ * Decodes a BamlTy message from the specified reader or buffer.
1349
+ * @param reader Reader or buffer to decode from
1350
+ * @param [length] Message length if known beforehand
1351
+ * @returns BamlTy
1352
+ * @throws {Error} If the payload is not a reader or valid buffer
1353
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1354
+ */
1355
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlTy;
1356
+
1357
+ /**
1358
+ * Decodes a BamlTy message from the specified reader or buffer, length delimited.
1359
+ * @param reader Reader or buffer to decode from
1360
+ * @returns BamlTy
1361
+ * @throws {Error} If the payload is not a reader or valid buffer
1362
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1363
+ */
1364
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlTy;
1365
+
1366
+ /**
1367
+ * Verifies a BamlTy message.
1368
+ * @param message Plain object to verify
1369
+ * @returns `null` if valid, otherwise the reason why it is not
1370
+ */
1371
+ public static verify(message: { [k: string]: any }): (string|null);
1372
+
1373
+ /**
1374
+ * Creates a BamlTy message from a plain object. Also converts values to their respective internal types.
1375
+ * @param object Plain object
1376
+ * @returns BamlTy
1377
+ */
1378
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlTy;
1379
+
1380
+ /**
1381
+ * Creates a plain object from a BamlTy message. Also converts values to other types if specified.
1382
+ * @param message BamlTy
1383
+ * @param [options] Conversion options
1384
+ * @returns Plain object
1385
+ */
1386
+ public static toObject(message: baml_bridge.cffi.v1.BamlTy, options?: $protobuf.IConversionOptions): { [k: string]: any };
1387
+
1388
+ /**
1389
+ * Converts this BamlTy to JSON.
1390
+ * @returns JSON object
1391
+ */
1392
+ public toJSON(): { [k: string]: any };
1393
+
1394
+ /**
1395
+ * Gets the default type url for BamlTy
1396
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1397
+ * @returns The default type url
1398
+ */
1399
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1400
+ }
1401
+
1402
+ /** Properties of a BamlTyDef. */
1403
+ interface IBamlTyDef {
1404
+
1405
+ /** BamlTyDef root */
1406
+ root?: (baml_bridge.cffi.v1.IBamlTy|null);
1407
+
1408
+ /** BamlTyDef classes */
1409
+ classes?: (baml_bridge.cffi.v1.IBamlClassDef[]|null);
1410
+
1411
+ /** BamlTyDef enums */
1412
+ enums?: (baml_bridge.cffi.v1.IBamlEnumDef[]|null);
1413
+
1414
+ /** BamlTyDef witnesses */
1415
+ witnesses?: (baml_bridge.cffi.v1.IBamlWitnessDef[]|null);
1416
+ }
1417
+
1418
+ /** Represents a BamlTyDef. */
1419
+ class BamlTyDef implements IBamlTyDef {
1420
+
1421
+ /**
1422
+ * Constructs a new BamlTyDef.
1423
+ * @param [properties] Properties to set
1424
+ */
1425
+ constructor(properties?: baml_bridge.cffi.v1.IBamlTyDef);
1426
+
1427
+ /** BamlTyDef root. */
1428
+ public root?: (baml_bridge.cffi.v1.IBamlTy|null);
1429
+
1430
+ /** BamlTyDef classes. */
1431
+ public classes: baml_bridge.cffi.v1.IBamlClassDef[];
1432
+
1433
+ /** BamlTyDef enums. */
1434
+ public enums: baml_bridge.cffi.v1.IBamlEnumDef[];
1435
+
1436
+ /** BamlTyDef witnesses. */
1437
+ public witnesses: baml_bridge.cffi.v1.IBamlWitnessDef[];
1438
+
1439
+ /**
1440
+ * Creates a new BamlTyDef instance using the specified properties.
1441
+ * @param [properties] Properties to set
1442
+ * @returns BamlTyDef instance
1443
+ */
1444
+ public static create(properties?: baml_bridge.cffi.v1.IBamlTyDef): baml_bridge.cffi.v1.BamlTyDef;
1445
+
1446
+ /**
1447
+ * Encodes the specified BamlTyDef message. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyDef.verify|verify} messages.
1448
+ * @param message BamlTyDef message or plain object to encode
1449
+ * @param [writer] Writer to encode to
1450
+ * @returns Writer
1451
+ */
1452
+ public static encode(message: baml_bridge.cffi.v1.IBamlTyDef, writer?: $protobuf.Writer): $protobuf.Writer;
1453
+
1454
+ /**
1455
+ * Encodes the specified BamlTyDef message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyDef.verify|verify} messages.
1456
+ * @param message BamlTyDef message or plain object to encode
1457
+ * @param [writer] Writer to encode to
1458
+ * @returns Writer
1459
+ */
1460
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlTyDef, writer?: $protobuf.Writer): $protobuf.Writer;
1461
+
1462
+ /**
1463
+ * Decodes a BamlTyDef message from the specified reader or buffer.
1464
+ * @param reader Reader or buffer to decode from
1465
+ * @param [length] Message length if known beforehand
1466
+ * @returns BamlTyDef
1467
+ * @throws {Error} If the payload is not a reader or valid buffer
1468
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1469
+ */
1470
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlTyDef;
1471
+
1472
+ /**
1473
+ * Decodes a BamlTyDef message from the specified reader or buffer, length delimited.
1474
+ * @param reader Reader or buffer to decode from
1475
+ * @returns BamlTyDef
1476
+ * @throws {Error} If the payload is not a reader or valid buffer
1477
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1478
+ */
1479
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlTyDef;
1480
+
1481
+ /**
1482
+ * Verifies a BamlTyDef message.
1483
+ * @param message Plain object to verify
1484
+ * @returns `null` if valid, otherwise the reason why it is not
1485
+ */
1486
+ public static verify(message: { [k: string]: any }): (string|null);
1487
+
1488
+ /**
1489
+ * Creates a BamlTyDef message from a plain object. Also converts values to their respective internal types.
1490
+ * @param object Plain object
1491
+ * @returns BamlTyDef
1492
+ */
1493
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlTyDef;
1494
+
1495
+ /**
1496
+ * Creates a plain object from a BamlTyDef message. Also converts values to other types if specified.
1497
+ * @param message BamlTyDef
1498
+ * @param [options] Conversion options
1499
+ * @returns Plain object
1500
+ */
1501
+ public static toObject(message: baml_bridge.cffi.v1.BamlTyDef, options?: $protobuf.IConversionOptions): { [k: string]: any };
1502
+
1503
+ /**
1504
+ * Converts this BamlTyDef to JSON.
1505
+ * @returns JSON object
1506
+ */
1507
+ public toJSON(): { [k: string]: any };
1508
+
1509
+ /**
1510
+ * Gets the default type url for BamlTyDef
1511
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1512
+ * @returns The default type url
1513
+ */
1514
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1515
+ }
1516
+
1517
+ /** Properties of a BamlWitnessDef. */
1518
+ interface IBamlWitnessDef {
1519
+
1520
+ /** BamlWitnessDef interface */
1521
+ "interface"?: (string|null);
1522
+
1523
+ /** BamlWitnessDef interfaceArgs */
1524
+ interfaceArgs?: (baml_bridge.cffi.v1.IBamlTy[]|null);
1525
+
1526
+ /** BamlWitnessDef associatedTypes */
1527
+ associatedTypes?: (baml_bridge.cffi.v1.IBamlTyAssociatedBinding[]|null);
1528
+
1529
+ /** BamlWitnessDef fieldLinks */
1530
+ fieldLinks?: (baml_bridge.cffi.v1.IBamlWitnessFieldLink[]|null);
1531
+ }
1532
+
1533
+ /** Represents a BamlWitnessDef. */
1534
+ class BamlWitnessDef implements IBamlWitnessDef {
1535
+
1536
+ /**
1537
+ * Constructs a new BamlWitnessDef.
1538
+ * @param [properties] Properties to set
1539
+ */
1540
+ constructor(properties?: baml_bridge.cffi.v1.IBamlWitnessDef);
1541
+
1542
+ /** BamlWitnessDef interface. */
1543
+ public interface: string;
1544
+
1545
+ /** BamlWitnessDef interfaceArgs. */
1546
+ public interfaceArgs: baml_bridge.cffi.v1.IBamlTy[];
1547
+
1548
+ /** BamlWitnessDef associatedTypes. */
1549
+ public associatedTypes: baml_bridge.cffi.v1.IBamlTyAssociatedBinding[];
1550
+
1551
+ /** BamlWitnessDef fieldLinks. */
1552
+ public fieldLinks: baml_bridge.cffi.v1.IBamlWitnessFieldLink[];
1553
+
1554
+ /**
1555
+ * Creates a new BamlWitnessDef instance using the specified properties.
1556
+ * @param [properties] Properties to set
1557
+ * @returns BamlWitnessDef instance
1558
+ */
1559
+ public static create(properties?: baml_bridge.cffi.v1.IBamlWitnessDef): baml_bridge.cffi.v1.BamlWitnessDef;
1560
+
1561
+ /**
1562
+ * Encodes the specified BamlWitnessDef message. Does not implicitly {@link baml_bridge.cffi.v1.BamlWitnessDef.verify|verify} messages.
1563
+ * @param message BamlWitnessDef message or plain object to encode
1564
+ * @param [writer] Writer to encode to
1565
+ * @returns Writer
1566
+ */
1567
+ public static encode(message: baml_bridge.cffi.v1.IBamlWitnessDef, writer?: $protobuf.Writer): $protobuf.Writer;
1568
+
1569
+ /**
1570
+ * Encodes the specified BamlWitnessDef message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlWitnessDef.verify|verify} messages.
1571
+ * @param message BamlWitnessDef message or plain object to encode
1572
+ * @param [writer] Writer to encode to
1573
+ * @returns Writer
1574
+ */
1575
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlWitnessDef, writer?: $protobuf.Writer): $protobuf.Writer;
1576
+
1577
+ /**
1578
+ * Decodes a BamlWitnessDef message from the specified reader or buffer.
1579
+ * @param reader Reader or buffer to decode from
1580
+ * @param [length] Message length if known beforehand
1581
+ * @returns BamlWitnessDef
1582
+ * @throws {Error} If the payload is not a reader or valid buffer
1583
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1584
+ */
1585
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlWitnessDef;
1586
+
1587
+ /**
1588
+ * Decodes a BamlWitnessDef message from the specified reader or buffer, length delimited.
1589
+ * @param reader Reader or buffer to decode from
1590
+ * @returns BamlWitnessDef
1591
+ * @throws {Error} If the payload is not a reader or valid buffer
1592
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1593
+ */
1594
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlWitnessDef;
1595
+
1596
+ /**
1597
+ * Verifies a BamlWitnessDef message.
1598
+ * @param message Plain object to verify
1599
+ * @returns `null` if valid, otherwise the reason why it is not
1600
+ */
1601
+ public static verify(message: { [k: string]: any }): (string|null);
1602
+
1603
+ /**
1604
+ * Creates a BamlWitnessDef message from a plain object. Also converts values to their respective internal types.
1605
+ * @param object Plain object
1606
+ * @returns BamlWitnessDef
1607
+ */
1608
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlWitnessDef;
1609
+
1610
+ /**
1611
+ * Creates a plain object from a BamlWitnessDef message. Also converts values to other types if specified.
1612
+ * @param message BamlWitnessDef
1613
+ * @param [options] Conversion options
1614
+ * @returns Plain object
1615
+ */
1616
+ public static toObject(message: baml_bridge.cffi.v1.BamlWitnessDef, options?: $protobuf.IConversionOptions): { [k: string]: any };
1617
+
1618
+ /**
1619
+ * Converts this BamlWitnessDef to JSON.
1620
+ * @returns JSON object
1621
+ */
1622
+ public toJSON(): { [k: string]: any };
1623
+
1624
+ /**
1625
+ * Gets the default type url for BamlWitnessDef
1626
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1627
+ * @returns The default type url
1628
+ */
1629
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1630
+ }
1631
+
1632
+ /** Properties of a BamlWitnessFieldLink. */
1633
+ interface IBamlWitnessFieldLink {
1634
+
1635
+ /** BamlWitnessFieldLink interfaceField */
1636
+ interfaceField?: (string|null);
1637
+
1638
+ /** BamlWitnessFieldLink classField */
1639
+ classField?: (string|null);
1640
+ }
1641
+
1642
+ /** Represents a BamlWitnessFieldLink. */
1643
+ class BamlWitnessFieldLink implements IBamlWitnessFieldLink {
1644
+
1645
+ /**
1646
+ * Constructs a new BamlWitnessFieldLink.
1647
+ * @param [properties] Properties to set
1648
+ */
1649
+ constructor(properties?: baml_bridge.cffi.v1.IBamlWitnessFieldLink);
1650
+
1651
+ /** BamlWitnessFieldLink interfaceField. */
1652
+ public interfaceField: string;
1653
+
1654
+ /** BamlWitnessFieldLink classField. */
1655
+ public classField: string;
1656
+
1657
+ /**
1658
+ * Creates a new BamlWitnessFieldLink instance using the specified properties.
1659
+ * @param [properties] Properties to set
1660
+ * @returns BamlWitnessFieldLink instance
1661
+ */
1662
+ public static create(properties?: baml_bridge.cffi.v1.IBamlWitnessFieldLink): baml_bridge.cffi.v1.BamlWitnessFieldLink;
1663
+
1664
+ /**
1665
+ * Encodes the specified BamlWitnessFieldLink message. Does not implicitly {@link baml_bridge.cffi.v1.BamlWitnessFieldLink.verify|verify} messages.
1666
+ * @param message BamlWitnessFieldLink message or plain object to encode
1667
+ * @param [writer] Writer to encode to
1668
+ * @returns Writer
1669
+ */
1670
+ public static encode(message: baml_bridge.cffi.v1.IBamlWitnessFieldLink, writer?: $protobuf.Writer): $protobuf.Writer;
1671
+
1672
+ /**
1673
+ * Encodes the specified BamlWitnessFieldLink message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlWitnessFieldLink.verify|verify} messages.
1674
+ * @param message BamlWitnessFieldLink message or plain object to encode
1675
+ * @param [writer] Writer to encode to
1676
+ * @returns Writer
1677
+ */
1678
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlWitnessFieldLink, writer?: $protobuf.Writer): $protobuf.Writer;
1679
+
1680
+ /**
1681
+ * Decodes a BamlWitnessFieldLink message from the specified reader or buffer.
1682
+ * @param reader Reader or buffer to decode from
1683
+ * @param [length] Message length if known beforehand
1684
+ * @returns BamlWitnessFieldLink
1685
+ * @throws {Error} If the payload is not a reader or valid buffer
1686
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1687
+ */
1688
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlWitnessFieldLink;
1689
+
1690
+ /**
1691
+ * Decodes a BamlWitnessFieldLink message from the specified reader or buffer, length delimited.
1692
+ * @param reader Reader or buffer to decode from
1693
+ * @returns BamlWitnessFieldLink
1694
+ * @throws {Error} If the payload is not a reader or valid buffer
1695
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1696
+ */
1697
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlWitnessFieldLink;
1698
+
1699
+ /**
1700
+ * Verifies a BamlWitnessFieldLink message.
1701
+ * @param message Plain object to verify
1702
+ * @returns `null` if valid, otherwise the reason why it is not
1703
+ */
1704
+ public static verify(message: { [k: string]: any }): (string|null);
1705
+
1706
+ /**
1707
+ * Creates a BamlWitnessFieldLink message from a plain object. Also converts values to their respective internal types.
1708
+ * @param object Plain object
1709
+ * @returns BamlWitnessFieldLink
1710
+ */
1711
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlWitnessFieldLink;
1712
+
1713
+ /**
1714
+ * Creates a plain object from a BamlWitnessFieldLink message. Also converts values to other types if specified.
1715
+ * @param message BamlWitnessFieldLink
1716
+ * @param [options] Conversion options
1717
+ * @returns Plain object
1718
+ */
1719
+ public static toObject(message: baml_bridge.cffi.v1.BamlWitnessFieldLink, options?: $protobuf.IConversionOptions): { [k: string]: any };
1720
+
1721
+ /**
1722
+ * Converts this BamlWitnessFieldLink to JSON.
1723
+ * @returns JSON object
1724
+ */
1725
+ public toJSON(): { [k: string]: any };
1726
+
1727
+ /**
1728
+ * Gets the default type url for BamlWitnessFieldLink
1729
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1730
+ * @returns The default type url
1731
+ */
1732
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1733
+ }
1734
+
1735
+ /** Properties of a BamlTyMetadata. */
1736
+ interface IBamlTyMetadata {
1737
+
1738
+ /** BamlTyMetadata description */
1739
+ description?: (string|null);
1740
+
1741
+ /** BamlTyMetadata alias */
1742
+ alias?: (string|null);
1743
+
1744
+ /** BamlTyMetadata docstring */
1745
+ docstring?: (string|null);
1746
+
1747
+ /** BamlTyMetadata other */
1748
+ other?: ({ [k: string]: string }|null);
1749
+ }
1750
+
1751
+ /** Represents a BamlTyMetadata. */
1752
+ class BamlTyMetadata implements IBamlTyMetadata {
1753
+
1754
+ /**
1755
+ * Constructs a new BamlTyMetadata.
1756
+ * @param [properties] Properties to set
1757
+ */
1758
+ constructor(properties?: baml_bridge.cffi.v1.IBamlTyMetadata);
1759
+
1760
+ /** BamlTyMetadata description. */
1761
+ public description?: (string|null);
1762
+
1763
+ /** BamlTyMetadata alias. */
1764
+ public alias?: (string|null);
1765
+
1766
+ /** BamlTyMetadata docstring. */
1767
+ public docstring?: (string|null);
1768
+
1769
+ /** BamlTyMetadata other. */
1770
+ public other: { [k: string]: string };
1771
+
1772
+ /**
1773
+ * Creates a new BamlTyMetadata instance using the specified properties.
1774
+ * @param [properties] Properties to set
1775
+ * @returns BamlTyMetadata instance
1776
+ */
1777
+ public static create(properties?: baml_bridge.cffi.v1.IBamlTyMetadata): baml_bridge.cffi.v1.BamlTyMetadata;
1778
+
1779
+ /**
1780
+ * Encodes the specified BamlTyMetadata message. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyMetadata.verify|verify} messages.
1781
+ * @param message BamlTyMetadata message or plain object to encode
1782
+ * @param [writer] Writer to encode to
1783
+ * @returns Writer
1784
+ */
1785
+ public static encode(message: baml_bridge.cffi.v1.IBamlTyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1786
+
1787
+ /**
1788
+ * Encodes the specified BamlTyMetadata message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlTyMetadata.verify|verify} messages.
1789
+ * @param message BamlTyMetadata message or plain object to encode
1790
+ * @param [writer] Writer to encode to
1791
+ * @returns Writer
1792
+ */
1793
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlTyMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
1794
+
1795
+ /**
1796
+ * Decodes a BamlTyMetadata message from the specified reader or buffer.
1797
+ * @param reader Reader or buffer to decode from
1798
+ * @param [length] Message length if known beforehand
1799
+ * @returns BamlTyMetadata
1800
+ * @throws {Error} If the payload is not a reader or valid buffer
1801
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1802
+ */
1803
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlTyMetadata;
1804
+
1805
+ /**
1806
+ * Decodes a BamlTyMetadata message from the specified reader or buffer, length delimited.
1807
+ * @param reader Reader or buffer to decode from
1808
+ * @returns BamlTyMetadata
1809
+ * @throws {Error} If the payload is not a reader or valid buffer
1810
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1811
+ */
1812
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlTyMetadata;
1813
+
1814
+ /**
1815
+ * Verifies a BamlTyMetadata message.
1816
+ * @param message Plain object to verify
1817
+ * @returns `null` if valid, otherwise the reason why it is not
1818
+ */
1819
+ public static verify(message: { [k: string]: any }): (string|null);
1820
+
1821
+ /**
1822
+ * Creates a BamlTyMetadata message from a plain object. Also converts values to their respective internal types.
1823
+ * @param object Plain object
1824
+ * @returns BamlTyMetadata
1825
+ */
1826
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlTyMetadata;
1827
+
1828
+ /**
1829
+ * Creates a plain object from a BamlTyMetadata message. Also converts values to other types if specified.
1830
+ * @param message BamlTyMetadata
1831
+ * @param [options] Conversion options
1832
+ * @returns Plain object
1833
+ */
1834
+ public static toObject(message: baml_bridge.cffi.v1.BamlTyMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
1835
+
1836
+ /**
1837
+ * Converts this BamlTyMetadata to JSON.
1838
+ * @returns JSON object
1839
+ */
1840
+ public toJSON(): { [k: string]: any };
1841
+
1842
+ /**
1843
+ * Gets the default type url for BamlTyMetadata
1844
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1845
+ * @returns The default type url
1846
+ */
1847
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1848
+ }
1849
+
1850
+ /** Properties of a BamlClassDef. */
1851
+ interface IBamlClassDef {
1852
+
1853
+ /** BamlClassDef name */
1854
+ name?: (string|null);
1855
+
1856
+ /** BamlClassDef fields */
1857
+ fields?: (baml_bridge.cffi.v1.IBamlClassFieldDef[]|null);
1858
+
1859
+ /** BamlClassDef metadata */
1860
+ metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
1861
+
1862
+ /** BamlClassDef genericParamCount */
1863
+ genericParamCount?: (number|null);
1864
+ }
1865
+
1866
+ /** Represents a BamlClassDef. */
1867
+ class BamlClassDef implements IBamlClassDef {
1868
+
1869
+ /**
1870
+ * Constructs a new BamlClassDef.
1871
+ * @param [properties] Properties to set
1872
+ */
1873
+ constructor(properties?: baml_bridge.cffi.v1.IBamlClassDef);
1874
+
1875
+ /** BamlClassDef name. */
1876
+ public name: string;
1877
+
1878
+ /** BamlClassDef fields. */
1879
+ public fields: baml_bridge.cffi.v1.IBamlClassFieldDef[];
1880
+
1881
+ /** BamlClassDef metadata. */
1882
+ public metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
1883
+
1884
+ /** BamlClassDef genericParamCount. */
1885
+ public genericParamCount: number;
1886
+
1887
+ /**
1888
+ * Creates a new BamlClassDef instance using the specified properties.
1889
+ * @param [properties] Properties to set
1890
+ * @returns BamlClassDef instance
1891
+ */
1892
+ public static create(properties?: baml_bridge.cffi.v1.IBamlClassDef): baml_bridge.cffi.v1.BamlClassDef;
1893
+
1894
+ /**
1895
+ * Encodes the specified BamlClassDef message. Does not implicitly {@link baml_bridge.cffi.v1.BamlClassDef.verify|verify} messages.
1896
+ * @param message BamlClassDef message or plain object to encode
1897
+ * @param [writer] Writer to encode to
1898
+ * @returns Writer
1899
+ */
1900
+ public static encode(message: baml_bridge.cffi.v1.IBamlClassDef, writer?: $protobuf.Writer): $protobuf.Writer;
1901
+
1902
+ /**
1903
+ * Encodes the specified BamlClassDef message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlClassDef.verify|verify} messages.
1904
+ * @param message BamlClassDef message or plain object to encode
1905
+ * @param [writer] Writer to encode to
1906
+ * @returns Writer
1907
+ */
1908
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlClassDef, writer?: $protobuf.Writer): $protobuf.Writer;
1909
+
1910
+ /**
1911
+ * Decodes a BamlClassDef message from the specified reader or buffer.
1912
+ * @param reader Reader or buffer to decode from
1913
+ * @param [length] Message length if known beforehand
1914
+ * @returns BamlClassDef
1915
+ * @throws {Error} If the payload is not a reader or valid buffer
1916
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1917
+ */
1918
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlClassDef;
1919
+
1920
+ /**
1921
+ * Decodes a BamlClassDef message from the specified reader or buffer, length delimited.
1922
+ * @param reader Reader or buffer to decode from
1923
+ * @returns BamlClassDef
1924
+ * @throws {Error} If the payload is not a reader or valid buffer
1925
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1926
+ */
1927
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlClassDef;
1928
+
1929
+ /**
1930
+ * Verifies a BamlClassDef message.
1931
+ * @param message Plain object to verify
1932
+ * @returns `null` if valid, otherwise the reason why it is not
1933
+ */
1934
+ public static verify(message: { [k: string]: any }): (string|null);
1935
+
1936
+ /**
1937
+ * Creates a BamlClassDef message from a plain object. Also converts values to their respective internal types.
1938
+ * @param object Plain object
1939
+ * @returns BamlClassDef
1940
+ */
1941
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlClassDef;
1942
+
1943
+ /**
1944
+ * Creates a plain object from a BamlClassDef message. Also converts values to other types if specified.
1945
+ * @param message BamlClassDef
1946
+ * @param [options] Conversion options
1947
+ * @returns Plain object
1948
+ */
1949
+ public static toObject(message: baml_bridge.cffi.v1.BamlClassDef, options?: $protobuf.IConversionOptions): { [k: string]: any };
1950
+
1951
+ /**
1952
+ * Converts this BamlClassDef to JSON.
1953
+ * @returns JSON object
1954
+ */
1955
+ public toJSON(): { [k: string]: any };
1956
+
1957
+ /**
1958
+ * Gets the default type url for BamlClassDef
1959
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1960
+ * @returns The default type url
1961
+ */
1962
+ public static getTypeUrl(typeUrlPrefix?: string): string;
1963
+ }
1964
+
1965
+ /** Properties of a BamlClassFieldDef. */
1966
+ interface IBamlClassFieldDef {
1967
+
1968
+ /** BamlClassFieldDef name */
1969
+ name?: (string|null);
1970
+
1971
+ /** BamlClassFieldDef ty */
1972
+ ty?: (baml_bridge.cffi.v1.IBamlTy|null);
1973
+
1974
+ /** BamlClassFieldDef metadata */
1975
+ metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
1976
+
1977
+ /** BamlClassFieldDef skip */
1978
+ skip?: (boolean|null);
1979
+ }
1980
+
1981
+ /** Represents a BamlClassFieldDef. */
1982
+ class BamlClassFieldDef implements IBamlClassFieldDef {
1983
+
1984
+ /**
1985
+ * Constructs a new BamlClassFieldDef.
1986
+ * @param [properties] Properties to set
1987
+ */
1988
+ constructor(properties?: baml_bridge.cffi.v1.IBamlClassFieldDef);
1989
+
1990
+ /** BamlClassFieldDef name. */
1991
+ public name: string;
1992
+
1993
+ /** BamlClassFieldDef ty. */
1994
+ public ty?: (baml_bridge.cffi.v1.IBamlTy|null);
1995
+
1996
+ /** BamlClassFieldDef metadata. */
1997
+ public metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
954
1998
 
955
- /** CallAck response. */
956
- public response?: "error";
1999
+ /** BamlClassFieldDef skip. */
2000
+ public skip: boolean;
957
2001
 
958
2002
  /**
959
- * Creates a new CallAck instance using the specified properties.
2003
+ * Creates a new BamlClassFieldDef instance using the specified properties.
960
2004
  * @param [properties] Properties to set
961
- * @returns CallAck instance
2005
+ * @returns BamlClassFieldDef instance
962
2006
  */
963
- public static create(properties?: baml_bridge.cffi.v1.ICallAck): baml_bridge.cffi.v1.CallAck;
2007
+ public static create(properties?: baml_bridge.cffi.v1.IBamlClassFieldDef): baml_bridge.cffi.v1.BamlClassFieldDef;
964
2008
 
965
2009
  /**
966
- * Encodes the specified CallAck message. Does not implicitly {@link baml_bridge.cffi.v1.CallAck.verify|verify} messages.
967
- * @param message CallAck message or plain object to encode
2010
+ * Encodes the specified BamlClassFieldDef message. Does not implicitly {@link baml_bridge.cffi.v1.BamlClassFieldDef.verify|verify} messages.
2011
+ * @param message BamlClassFieldDef message or plain object to encode
968
2012
  * @param [writer] Writer to encode to
969
2013
  * @returns Writer
970
2014
  */
971
- public static encode(message: baml_bridge.cffi.v1.ICallAck, writer?: $protobuf.Writer): $protobuf.Writer;
2015
+ public static encode(message: baml_bridge.cffi.v1.IBamlClassFieldDef, writer?: $protobuf.Writer): $protobuf.Writer;
972
2016
 
973
2017
  /**
974
- * Encodes the specified CallAck message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.CallAck.verify|verify} messages.
975
- * @param message CallAck message or plain object to encode
2018
+ * Encodes the specified BamlClassFieldDef message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlClassFieldDef.verify|verify} messages.
2019
+ * @param message BamlClassFieldDef message or plain object to encode
976
2020
  * @param [writer] Writer to encode to
977
2021
  * @returns Writer
978
2022
  */
979
- public static encodeDelimited(message: baml_bridge.cffi.v1.ICallAck, writer?: $protobuf.Writer): $protobuf.Writer;
2023
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlClassFieldDef, writer?: $protobuf.Writer): $protobuf.Writer;
980
2024
 
981
2025
  /**
982
- * Decodes a CallAck message from the specified reader or buffer.
2026
+ * Decodes a BamlClassFieldDef message from the specified reader or buffer.
983
2027
  * @param reader Reader or buffer to decode from
984
2028
  * @param [length] Message length if known beforehand
985
- * @returns CallAck
2029
+ * @returns BamlClassFieldDef
986
2030
  * @throws {Error} If the payload is not a reader or valid buffer
987
2031
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
988
2032
  */
989
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.CallAck;
2033
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlClassFieldDef;
990
2034
 
991
2035
  /**
992
- * Decodes a CallAck message from the specified reader or buffer, length delimited.
2036
+ * Decodes a BamlClassFieldDef message from the specified reader or buffer, length delimited.
993
2037
  * @param reader Reader or buffer to decode from
994
- * @returns CallAck
2038
+ * @returns BamlClassFieldDef
995
2039
  * @throws {Error} If the payload is not a reader or valid buffer
996
2040
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
997
2041
  */
998
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.CallAck;
2042
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlClassFieldDef;
999
2043
 
1000
2044
  /**
1001
- * Verifies a CallAck message.
2045
+ * Verifies a BamlClassFieldDef message.
1002
2046
  * @param message Plain object to verify
1003
2047
  * @returns `null` if valid, otherwise the reason why it is not
1004
2048
  */
1005
2049
  public static verify(message: { [k: string]: any }): (string|null);
1006
2050
 
1007
2051
  /**
1008
- * Creates a CallAck message from a plain object. Also converts values to their respective internal types.
2052
+ * Creates a BamlClassFieldDef message from a plain object. Also converts values to their respective internal types.
1009
2053
  * @param object Plain object
1010
- * @returns CallAck
2054
+ * @returns BamlClassFieldDef
1011
2055
  */
1012
- public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.CallAck;
2056
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlClassFieldDef;
1013
2057
 
1014
2058
  /**
1015
- * Creates a plain object from a CallAck message. Also converts values to other types if specified.
1016
- * @param message CallAck
2059
+ * Creates a plain object from a BamlClassFieldDef message. Also converts values to other types if specified.
2060
+ * @param message BamlClassFieldDef
1017
2061
  * @param [options] Conversion options
1018
2062
  * @returns Plain object
1019
2063
  */
1020
- public static toObject(message: baml_bridge.cffi.v1.CallAck, options?: $protobuf.IConversionOptions): { [k: string]: any };
2064
+ public static toObject(message: baml_bridge.cffi.v1.BamlClassFieldDef, options?: $protobuf.IConversionOptions): { [k: string]: any };
1021
2065
 
1022
2066
  /**
1023
- * Converts this CallAck to JSON.
2067
+ * Converts this BamlClassFieldDef to JSON.
1024
2068
  * @returns JSON object
1025
2069
  */
1026
2070
  public toJSON(): { [k: string]: any };
1027
2071
 
1028
2072
  /**
1029
- * Gets the default type url for CallAck
2073
+ * Gets the default type url for BamlClassFieldDef
1030
2074
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1031
2075
  * @returns The default type url
1032
2076
  */
1033
2077
  public static getTypeUrl(typeUrlPrefix?: string): string;
1034
2078
  }
1035
2079
 
1036
- /** BamlHandleType enum. */
1037
- enum BamlHandleType {
1038
- HANDLE_UNSPECIFIED = 0,
1039
- UNTAGGED_RUST_DATA = 1,
1040
- UNTAGGED_BEX_HEAP = 2,
1041
- FUNCTION_REF = 5,
1042
- ADT_MEDIA_IMAGE = 6,
1043
- ADT_MEDIA_AUDIO = 7,
1044
- ADT_MEDIA_VIDEO = 8,
1045
- ADT_MEDIA_PDF = 9,
1046
- ADT_MEDIA_GENERIC = 10,
1047
- ADT_PROMPT_AST = 11,
1048
- ADT_COLLECTOR = 12,
1049
- ADT_TYPE = 13,
1050
- ADT_TAGGED_HEAP_HANDLE = 14,
1051
- HOST_VALUE_CALLABLE = 15,
1052
- HOST_VALUE_OPAQUE = 16
1053
- }
2080
+ /** Properties of a BamlEnumDef. */
2081
+ interface IBamlEnumDef {
1054
2082
 
1055
- /** Properties of a BamlHandle. */
1056
- interface IBamlHandle {
2083
+ /** BamlEnumDef name */
2084
+ name?: (string|null);
1057
2085
 
1058
- /** BamlHandle key */
1059
- key?: (number|Long|null);
2086
+ /** BamlEnumDef variants */
2087
+ variants?: (baml_bridge.cffi.v1.IBamlEnumVariantDef[]|null);
1060
2088
 
1061
- /** BamlHandle handleType */
1062
- handleType?: (baml_bridge.cffi.v1.BamlHandleType|null);
2089
+ /** BamlEnumDef metadata */
2090
+ metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
1063
2091
  }
1064
2092
 
1065
- /** Represents a BamlHandle. */
1066
- class BamlHandle implements IBamlHandle {
2093
+ /** Represents a BamlEnumDef. */
2094
+ class BamlEnumDef implements IBamlEnumDef {
1067
2095
 
1068
2096
  /**
1069
- * Constructs a new BamlHandle.
2097
+ * Constructs a new BamlEnumDef.
1070
2098
  * @param [properties] Properties to set
1071
2099
  */
1072
- constructor(properties?: baml_bridge.cffi.v1.IBamlHandle);
2100
+ constructor(properties?: baml_bridge.cffi.v1.IBamlEnumDef);
1073
2101
 
1074
- /** BamlHandle key. */
1075
- public key: (number|Long);
2102
+ /** BamlEnumDef name. */
2103
+ public name: string;
1076
2104
 
1077
- /** BamlHandle handleType. */
1078
- public handleType: baml_bridge.cffi.v1.BamlHandleType;
2105
+ /** BamlEnumDef variants. */
2106
+ public variants: baml_bridge.cffi.v1.IBamlEnumVariantDef[];
2107
+
2108
+ /** BamlEnumDef metadata. */
2109
+ public metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
1079
2110
 
1080
2111
  /**
1081
- * Creates a new BamlHandle instance using the specified properties.
2112
+ * Creates a new BamlEnumDef instance using the specified properties.
1082
2113
  * @param [properties] Properties to set
1083
- * @returns BamlHandle instance
2114
+ * @returns BamlEnumDef instance
1084
2115
  */
1085
- public static create(properties?: baml_bridge.cffi.v1.IBamlHandle): baml_bridge.cffi.v1.BamlHandle;
2116
+ public static create(properties?: baml_bridge.cffi.v1.IBamlEnumDef): baml_bridge.cffi.v1.BamlEnumDef;
1086
2117
 
1087
2118
  /**
1088
- * Encodes the specified BamlHandle message. Does not implicitly {@link baml_bridge.cffi.v1.BamlHandle.verify|verify} messages.
1089
- * @param message BamlHandle message or plain object to encode
2119
+ * Encodes the specified BamlEnumDef message. Does not implicitly {@link baml_bridge.cffi.v1.BamlEnumDef.verify|verify} messages.
2120
+ * @param message BamlEnumDef message or plain object to encode
1090
2121
  * @param [writer] Writer to encode to
1091
2122
  * @returns Writer
1092
2123
  */
1093
- public static encode(message: baml_bridge.cffi.v1.IBamlHandle, writer?: $protobuf.Writer): $protobuf.Writer;
2124
+ public static encode(message: baml_bridge.cffi.v1.IBamlEnumDef, writer?: $protobuf.Writer): $protobuf.Writer;
1094
2125
 
1095
2126
  /**
1096
- * Encodes the specified BamlHandle message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlHandle.verify|verify} messages.
1097
- * @param message BamlHandle message or plain object to encode
2127
+ * Encodes the specified BamlEnumDef message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlEnumDef.verify|verify} messages.
2128
+ * @param message BamlEnumDef message or plain object to encode
1098
2129
  * @param [writer] Writer to encode to
1099
2130
  * @returns Writer
1100
2131
  */
1101
- public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlHandle, writer?: $protobuf.Writer): $protobuf.Writer;
2132
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlEnumDef, writer?: $protobuf.Writer): $protobuf.Writer;
1102
2133
 
1103
2134
  /**
1104
- * Decodes a BamlHandle message from the specified reader or buffer.
2135
+ * Decodes a BamlEnumDef message from the specified reader or buffer.
1105
2136
  * @param reader Reader or buffer to decode from
1106
2137
  * @param [length] Message length if known beforehand
1107
- * @returns BamlHandle
2138
+ * @returns BamlEnumDef
1108
2139
  * @throws {Error} If the payload is not a reader or valid buffer
1109
2140
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1110
2141
  */
1111
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlHandle;
2142
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlEnumDef;
1112
2143
 
1113
2144
  /**
1114
- * Decodes a BamlHandle message from the specified reader or buffer, length delimited.
2145
+ * Decodes a BamlEnumDef message from the specified reader or buffer, length delimited.
1115
2146
  * @param reader Reader or buffer to decode from
1116
- * @returns BamlHandle
2147
+ * @returns BamlEnumDef
1117
2148
  * @throws {Error} If the payload is not a reader or valid buffer
1118
2149
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1119
2150
  */
1120
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlHandle;
2151
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlEnumDef;
1121
2152
 
1122
2153
  /**
1123
- * Verifies a BamlHandle message.
2154
+ * Verifies a BamlEnumDef message.
1124
2155
  * @param message Plain object to verify
1125
2156
  * @returns `null` if valid, otherwise the reason why it is not
1126
2157
  */
1127
2158
  public static verify(message: { [k: string]: any }): (string|null);
1128
2159
 
1129
2160
  /**
1130
- * Creates a BamlHandle message from a plain object. Also converts values to their respective internal types.
2161
+ * Creates a BamlEnumDef message from a plain object. Also converts values to their respective internal types.
1131
2162
  * @param object Plain object
1132
- * @returns BamlHandle
2163
+ * @returns BamlEnumDef
1133
2164
  */
1134
- public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlHandle;
2165
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlEnumDef;
1135
2166
 
1136
2167
  /**
1137
- * Creates a plain object from a BamlHandle message. Also converts values to other types if specified.
1138
- * @param message BamlHandle
2168
+ * Creates a plain object from a BamlEnumDef message. Also converts values to other types if specified.
2169
+ * @param message BamlEnumDef
1139
2170
  * @param [options] Conversion options
1140
2171
  * @returns Plain object
1141
2172
  */
1142
- public static toObject(message: baml_bridge.cffi.v1.BamlHandle, options?: $protobuf.IConversionOptions): { [k: string]: any };
2173
+ public static toObject(message: baml_bridge.cffi.v1.BamlEnumDef, options?: $protobuf.IConversionOptions): { [k: string]: any };
1143
2174
 
1144
2175
  /**
1145
- * Converts this BamlHandle to JSON.
2176
+ * Converts this BamlEnumDef to JSON.
1146
2177
  * @returns JSON object
1147
2178
  */
1148
2179
  public toJSON(): { [k: string]: any };
1149
2180
 
1150
2181
  /**
1151
- * Gets the default type url for BamlHandle
2182
+ * Gets the default type url for BamlEnumDef
1152
2183
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1153
2184
  * @returns The default type url
1154
2185
  */
1155
2186
  public static getTypeUrl(typeUrlPrefix?: string): string;
1156
2187
  }
1157
2188
 
1158
- /** Properties of a BamlTy. */
1159
- interface IBamlTy {
1160
-
1161
- /** BamlTy primitive */
1162
- primitive?: (baml_bridge.cffi.v1.IBamlTyPrimitive|null);
1163
-
1164
- /** BamlTy classTy */
1165
- classTy?: (baml_bridge.cffi.v1.IBamlTyClass|null);
1166
-
1167
- /** BamlTy enum */
1168
- "enum"?: (baml_bridge.cffi.v1.IBamlTyEnum|null);
1169
-
1170
- /** BamlTy list */
1171
- list?: (baml_bridge.cffi.v1.IBamlTyList|null);
1172
-
1173
- /** BamlTy map */
1174
- map?: (baml_bridge.cffi.v1.IBamlTyMap|null);
1175
-
1176
- /** BamlTy optional */
1177
- optional?: (baml_bridge.cffi.v1.IBamlTyOptional|null);
1178
-
1179
- /** BamlTy union */
1180
- union?: (baml_bridge.cffi.v1.IBamlTyUnion|null);
1181
-
1182
- /** BamlTy literal */
1183
- literal?: (baml_bridge.cffi.v1.IBamlTyLiteral|null);
1184
-
1185
- /** BamlTy typeAlias */
1186
- typeAlias?: (baml_bridge.cffi.v1.IBamlTyTypeAlias|null);
1187
-
1188
- /** BamlTy unknown */
1189
- unknown?: (baml_bridge.cffi.v1.IBamlTyUnknown|null);
1190
-
1191
- /** BamlTy media */
1192
- media?: (baml_bridge.cffi.v1.IBamlTyMedia|null);
1193
-
1194
- /** BamlTy interface */
1195
- "interface"?: (baml_bridge.cffi.v1.IBamlTyInterface|null);
1196
-
1197
- /** BamlTy enumVariant */
1198
- enumVariant?: (baml_bridge.cffi.v1.IBamlTyEnumVariant|null);
1199
-
1200
- /** BamlTy function */
1201
- "function"?: (baml_bridge.cffi.v1.IBamlTyFunction|null);
1202
-
1203
- /** BamlTy future */
1204
- future?: (baml_bridge.cffi.v1.IBamlTyFuture|null);
1205
-
1206
- /** BamlTy rustType */
1207
- rustType?: (baml_bridge.cffi.v1.IBamlTyRustType|null);
1208
-
1209
- /** BamlTy metaType */
1210
- metaType?: (baml_bridge.cffi.v1.IBamlTyMetaType|null);
1211
-
1212
- /** BamlTy resource */
1213
- resource?: (baml_bridge.cffi.v1.IBamlTyResource|null);
1214
-
1215
- /** BamlTy promptAst */
1216
- promptAst?: (baml_bridge.cffi.v1.IBamlTyPromptAst|null);
1217
-
1218
- /** BamlTy void */
1219
- "void"?: (baml_bridge.cffi.v1.IBamlTyVoid|null);
2189
+ /** Properties of a BamlEnumVariantDef. */
2190
+ interface IBamlEnumVariantDef {
1220
2191
 
1221
- /** BamlTy typeVar */
1222
- typeVar?: (baml_bridge.cffi.v1.IBamlTyTypeVar|null);
2192
+ /** BamlEnumVariantDef name */
2193
+ name?: (string|null);
1223
2194
 
1224
- /** BamlTy associatedTypeProjection */
1225
- associatedTypeProjection?: (baml_bridge.cffi.v1.IBamlTyAssociatedTypeProjection|null);
2195
+ /** BamlEnumVariantDef metadata */
2196
+ metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
1226
2197
 
1227
- /** BamlTy never */
1228
- never?: (baml_bridge.cffi.v1.IBamlTyNever|null);
2198
+ /** BamlEnumVariantDef skip */
2199
+ skip?: (boolean|null);
1229
2200
  }
1230
2201
 
1231
- /** Represents a BamlTy. */
1232
- class BamlTy implements IBamlTy {
2202
+ /** Represents a BamlEnumVariantDef. */
2203
+ class BamlEnumVariantDef implements IBamlEnumVariantDef {
1233
2204
 
1234
2205
  /**
1235
- * Constructs a new BamlTy.
2206
+ * Constructs a new BamlEnumVariantDef.
1236
2207
  * @param [properties] Properties to set
1237
2208
  */
1238
- constructor(properties?: baml_bridge.cffi.v1.IBamlTy);
1239
-
1240
- /** BamlTy primitive. */
1241
- public primitive?: (baml_bridge.cffi.v1.IBamlTyPrimitive|null);
1242
-
1243
- /** BamlTy classTy. */
1244
- public classTy?: (baml_bridge.cffi.v1.IBamlTyClass|null);
1245
-
1246
- /** BamlTy enum. */
1247
- public enum?: (baml_bridge.cffi.v1.IBamlTyEnum|null);
1248
-
1249
- /** BamlTy list. */
1250
- public list?: (baml_bridge.cffi.v1.IBamlTyList|null);
1251
-
1252
- /** BamlTy map. */
1253
- public map?: (baml_bridge.cffi.v1.IBamlTyMap|null);
1254
-
1255
- /** BamlTy optional. */
1256
- public optional?: (baml_bridge.cffi.v1.IBamlTyOptional|null);
1257
-
1258
- /** BamlTy union. */
1259
- public union?: (baml_bridge.cffi.v1.IBamlTyUnion|null);
1260
-
1261
- /** BamlTy literal. */
1262
- public literal?: (baml_bridge.cffi.v1.IBamlTyLiteral|null);
1263
-
1264
- /** BamlTy typeAlias. */
1265
- public typeAlias?: (baml_bridge.cffi.v1.IBamlTyTypeAlias|null);
1266
-
1267
- /** BamlTy unknown. */
1268
- public unknown?: (baml_bridge.cffi.v1.IBamlTyUnknown|null);
1269
-
1270
- /** BamlTy media. */
1271
- public media?: (baml_bridge.cffi.v1.IBamlTyMedia|null);
1272
-
1273
- /** BamlTy interface. */
1274
- public interface?: (baml_bridge.cffi.v1.IBamlTyInterface|null);
1275
-
1276
- /** BamlTy enumVariant. */
1277
- public enumVariant?: (baml_bridge.cffi.v1.IBamlTyEnumVariant|null);
1278
-
1279
- /** BamlTy function. */
1280
- public function?: (baml_bridge.cffi.v1.IBamlTyFunction|null);
1281
-
1282
- /** BamlTy future. */
1283
- public future?: (baml_bridge.cffi.v1.IBamlTyFuture|null);
1284
-
1285
- /** BamlTy rustType. */
1286
- public rustType?: (baml_bridge.cffi.v1.IBamlTyRustType|null);
2209
+ constructor(properties?: baml_bridge.cffi.v1.IBamlEnumVariantDef);
1287
2210
 
1288
- /** BamlTy metaType. */
1289
- public metaType?: (baml_bridge.cffi.v1.IBamlTyMetaType|null);
1290
-
1291
- /** BamlTy resource. */
1292
- public resource?: (baml_bridge.cffi.v1.IBamlTyResource|null);
1293
-
1294
- /** BamlTy promptAst. */
1295
- public promptAst?: (baml_bridge.cffi.v1.IBamlTyPromptAst|null);
1296
-
1297
- /** BamlTy void. */
1298
- public void?: (baml_bridge.cffi.v1.IBamlTyVoid|null);
1299
-
1300
- /** BamlTy typeVar. */
1301
- public typeVar?: (baml_bridge.cffi.v1.IBamlTyTypeVar|null);
1302
-
1303
- /** BamlTy associatedTypeProjection. */
1304
- public associatedTypeProjection?: (baml_bridge.cffi.v1.IBamlTyAssociatedTypeProjection|null);
2211
+ /** BamlEnumVariantDef name. */
2212
+ public name: string;
1305
2213
 
1306
- /** BamlTy never. */
1307
- public never?: (baml_bridge.cffi.v1.IBamlTyNever|null);
2214
+ /** BamlEnumVariantDef metadata. */
2215
+ public metadata?: (baml_bridge.cffi.v1.IBamlTyMetadata|null);
1308
2216
 
1309
- /** BamlTy ty. */
1310
- 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");
2217
+ /** BamlEnumVariantDef skip. */
2218
+ public skip: boolean;
1311
2219
 
1312
2220
  /**
1313
- * Creates a new BamlTy instance using the specified properties.
2221
+ * Creates a new BamlEnumVariantDef instance using the specified properties.
1314
2222
  * @param [properties] Properties to set
1315
- * @returns BamlTy instance
2223
+ * @returns BamlEnumVariantDef instance
1316
2224
  */
1317
- public static create(properties?: baml_bridge.cffi.v1.IBamlTy): baml_bridge.cffi.v1.BamlTy;
2225
+ public static create(properties?: baml_bridge.cffi.v1.IBamlEnumVariantDef): baml_bridge.cffi.v1.BamlEnumVariantDef;
1318
2226
 
1319
2227
  /**
1320
- * Encodes the specified BamlTy message. Does not implicitly {@link baml_bridge.cffi.v1.BamlTy.verify|verify} messages.
1321
- * @param message BamlTy message or plain object to encode
2228
+ * Encodes the specified BamlEnumVariantDef message. Does not implicitly {@link baml_bridge.cffi.v1.BamlEnumVariantDef.verify|verify} messages.
2229
+ * @param message BamlEnumVariantDef message or plain object to encode
1322
2230
  * @param [writer] Writer to encode to
1323
2231
  * @returns Writer
1324
2232
  */
1325
- public static encode(message: baml_bridge.cffi.v1.IBamlTy, writer?: $protobuf.Writer): $protobuf.Writer;
2233
+ public static encode(message: baml_bridge.cffi.v1.IBamlEnumVariantDef, writer?: $protobuf.Writer): $protobuf.Writer;
1326
2234
 
1327
2235
  /**
1328
- * Encodes the specified BamlTy message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlTy.verify|verify} messages.
1329
- * @param message BamlTy message or plain object to encode
2236
+ * Encodes the specified BamlEnumVariantDef message, length delimited. Does not implicitly {@link baml_bridge.cffi.v1.BamlEnumVariantDef.verify|verify} messages.
2237
+ * @param message BamlEnumVariantDef message or plain object to encode
1330
2238
  * @param [writer] Writer to encode to
1331
2239
  * @returns Writer
1332
2240
  */
1333
- public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlTy, writer?: $protobuf.Writer): $protobuf.Writer;
2241
+ public static encodeDelimited(message: baml_bridge.cffi.v1.IBamlEnumVariantDef, writer?: $protobuf.Writer): $protobuf.Writer;
1334
2242
 
1335
2243
  /**
1336
- * Decodes a BamlTy message from the specified reader or buffer.
2244
+ * Decodes a BamlEnumVariantDef message from the specified reader or buffer.
1337
2245
  * @param reader Reader or buffer to decode from
1338
2246
  * @param [length] Message length if known beforehand
1339
- * @returns BamlTy
2247
+ * @returns BamlEnumVariantDef
1340
2248
  * @throws {Error} If the payload is not a reader or valid buffer
1341
2249
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1342
2250
  */
1343
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlTy;
2251
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baml_bridge.cffi.v1.BamlEnumVariantDef;
1344
2252
 
1345
2253
  /**
1346
- * Decodes a BamlTy message from the specified reader or buffer, length delimited.
2254
+ * Decodes a BamlEnumVariantDef message from the specified reader or buffer, length delimited.
1347
2255
  * @param reader Reader or buffer to decode from
1348
- * @returns BamlTy
2256
+ * @returns BamlEnumVariantDef
1349
2257
  * @throws {Error} If the payload is not a reader or valid buffer
1350
2258
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1351
2259
  */
1352
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlTy;
2260
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baml_bridge.cffi.v1.BamlEnumVariantDef;
1353
2261
 
1354
2262
  /**
1355
- * Verifies a BamlTy message.
2263
+ * Verifies a BamlEnumVariantDef message.
1356
2264
  * @param message Plain object to verify
1357
2265
  * @returns `null` if valid, otherwise the reason why it is not
1358
2266
  */
1359
2267
  public static verify(message: { [k: string]: any }): (string|null);
1360
2268
 
1361
2269
  /**
1362
- * Creates a BamlTy message from a plain object. Also converts values to their respective internal types.
2270
+ * Creates a BamlEnumVariantDef message from a plain object. Also converts values to their respective internal types.
1363
2271
  * @param object Plain object
1364
- * @returns BamlTy
2272
+ * @returns BamlEnumVariantDef
1365
2273
  */
1366
- public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlTy;
2274
+ public static fromObject(object: { [k: string]: any }): baml_bridge.cffi.v1.BamlEnumVariantDef;
1367
2275
 
1368
2276
  /**
1369
- * Creates a plain object from a BamlTy message. Also converts values to other types if specified.
1370
- * @param message BamlTy
2277
+ * Creates a plain object from a BamlEnumVariantDef message. Also converts values to other types if specified.
2278
+ * @param message BamlEnumVariantDef
1371
2279
  * @param [options] Conversion options
1372
2280
  * @returns Plain object
1373
2281
  */
1374
- public static toObject(message: baml_bridge.cffi.v1.BamlTy, options?: $protobuf.IConversionOptions): { [k: string]: any };
2282
+ public static toObject(message: baml_bridge.cffi.v1.BamlEnumVariantDef, options?: $protobuf.IConversionOptions): { [k: string]: any };
1375
2283
 
1376
2284
  /**
1377
- * Converts this BamlTy to JSON.
2285
+ * Converts this BamlEnumVariantDef to JSON.
1378
2286
  * @returns JSON object
1379
2287
  */
1380
2288
  public toJSON(): { [k: string]: any };
1381
2289
 
1382
2290
  /**
1383
- * Gets the default type url for BamlTy
2291
+ * Gets the default type url for BamlEnumVariantDef
1384
2292
  * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1385
2293
  * @returns The default type url
1386
2294
  */
@@ -4305,6 +5213,9 @@ export namespace baml_bridge {
4305
5213
 
4306
5214
  /** BamlOutboundValue tyValue */
4307
5215
  tyValue?: (baml_bridge.cffi.v1.IBamlTy|null);
5216
+
5217
+ /** BamlOutboundValue tyDefValue */
5218
+ tyDefValue?: (baml_bridge.cffi.v1.IBamlTyDef|null);
4308
5219
  }
4309
5220
 
4310
5221
  /** Represents a BamlOutboundValue. */
@@ -4367,8 +5278,11 @@ export namespace baml_bridge {
4367
5278
  /** BamlOutboundValue tyValue. */
4368
5279
  public tyValue?: (baml_bridge.cffi.v1.IBamlTy|null);
4369
5280
 
5281
+ /** BamlOutboundValue tyDefValue. */
5282
+ public tyDefValue?: (baml_bridge.cffi.v1.IBamlTyDef|null);
5283
+
4370
5284
  /** BamlOutboundValue value. */
4371
- public value?: ("nullValue"|"stringValue"|"intValue"|"floatValue"|"boolValue"|"classValue"|"enumValue"|"literalValue"|"listValue"|"mapValue"|"unionVariantValue"|"handleValue"|"mediaValue"|"promptAstValue"|"uint8arrayValue"|"bigintValue"|"tyValue");
5285
+ public value?: ("nullValue"|"stringValue"|"intValue"|"floatValue"|"boolValue"|"classValue"|"enumValue"|"literalValue"|"listValue"|"mapValue"|"unionVariantValue"|"handleValue"|"mediaValue"|"promptAstValue"|"uint8arrayValue"|"bigintValue"|"tyValue"|"tyDefValue");
4372
5286
 
4373
5287
  /**
4374
5288
  * Creates a new BamlOutboundValue instance using the specified properties.