boltz-api 0.38.0 → 0.39.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.39.1 (2026-05-27)
4
+
5
+ Full Changelog: [v0.39.0...v0.39.1](https://github.com/boltz-bio/boltz-api-typescript/compare/v0.39.0...v0.39.1)
6
+
7
+ ### Documentation
8
+
9
+ * document structure templates and custom MSA ([56e6c0b](https://github.com/boltz-bio/boltz-api-typescript/commit/56e6c0b0f11344fe5c7ccf725cd8a70a56054e7d))
10
+
11
+ ## 0.39.0 (2026-05-27)
12
+
13
+ Full Changelog: [v0.38.0...v0.39.0](https://github.com/boltz-bio/boltz-api-typescript/compare/v0.38.0...v0.39.0)
14
+
15
+ ### Features
16
+
17
+ * [codex] Add custom MSA support to structure predictions ([ad27bf1](https://github.com/boltz-bio/boltz-api-typescript/commit/ad27bf1985e4845897b0b51e64a6b02a540a2201))
18
+
3
19
  ## 0.38.0 (2026-05-26)
4
20
 
5
21
  Full Changelog: [v0.37.1...v0.38.0](https://github.com/boltz-bio/boltz-api-typescript/compare/v0.37.1...v0.38.0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "boltz-api",
3
- "version": "0.38.0",
3
+ "version": "0.39.1",
4
4
  "description": "The official TypeScript library for the Boltz API",
5
5
  "author": "Boltz <contact@boltz.bio>",
6
6
  "types": "./index.d.ts",
@@ -3,7 +3,7 @@ import { APIPromise } from "../../core/api-promise.mjs";
3
3
  import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.mjs";
4
4
  import { RequestOptions } from "../../internal/request-options.mjs";
5
5
  /**
6
- * Predict 3D structure coordinates, per-residue confidence scores, and binding metrics for a molecular complex.
6
+ * Predict 3D structure coordinates, per-residue confidence scores, and binding metrics for a molecular complex. Supports optional template-guided folding and per-protein MSA control.
7
7
  */
8
8
  export declare class StructureAndBinding extends APIResource {
9
9
  /**
@@ -70,7 +70,10 @@ export declare class StructureAndBinding extends APIResource {
70
70
  estimateCost(body: StructureAndBindingEstimateCostParams, options?: RequestOptions): APIPromise<StructureAndBindingEstimateCostResponse>;
71
71
  /**
72
72
  * Submit a prediction job that produces 3D structure coordinates and confidence
73
- * scores for the input molecular complex, with optional binding metrics.
73
+ * scores for the input molecular complex, with optional binding metrics. Protein
74
+ * entities can use automatic MSA generation, custom A3M/CSV MSAs, or empty MSA
75
+ * mode. Boltz-2.1 predictions can also include up to 4 CIF or PDB templates to
76
+ * guide protein-chain geometry.
74
77
  *
75
78
  * @example
76
79
  * ```ts
@@ -169,7 +172,7 @@ export declare namespace StructureAndBindingRetrieveResponse {
169
172
  * Entities (proteins, RNA, DNA, ligands) forming the complex to predict. Order
170
173
  * determines chain assignment.
171
174
  */
172
- entities: Array<Input.ProteinEntityResponse | Input.RnaEntityResponse | Input.DnaEntityResponse | Input.LigandCcdEntityResponse | Input.LigandSmilesEntityResponse>;
175
+ entities: Array<Input.Boltz2ProteinEntityResponse | Input.RnaEntityResponse | Input.DnaEntityResponse | Input.LigandCcdEntityResponse | Input.LigandSmilesEntityResponse>;
173
176
  binding?: Input.LigandProteinBindingResponse | Input.ProteinProteinBindingResponse;
174
177
  /**
175
178
  * Bond constraints between atoms. Atom-level ligand references currently support
@@ -188,12 +191,14 @@ export declare namespace StructureAndBindingRetrieveResponse {
188
191
  num_samples?: number;
189
192
  /**
190
193
  * Template structure files to guide protein-chain prediction. Supports up to 4 CIF
191
- * or PDB templates from HTTPS URLs or base64 uploads.
194
+ * or PDB templates from HTTPS URLs or base64 uploads. Use chain_id and template_id
195
+ * to map request chains to template chains when the IDs differ or when providing
196
+ * multi-chain templates.
192
197
  */
193
198
  templates?: Array<Input.Template>;
194
199
  }
195
200
  namespace Input {
196
- interface ProteinEntityResponse {
201
+ interface Boltz2ProteinEntityResponse {
197
202
  /**
198
203
  * Chain IDs for this entity
199
204
  */
@@ -211,9 +216,16 @@ export declare namespace StructureAndBindingRetrieveResponse {
211
216
  * Post-translational modifications. Optional; defaults to an empty list when
212
217
  * omitted.
213
218
  */
214
- modifications?: Array<ProteinEntityResponse.Modification>;
219
+ modifications?: Array<Boltz2ProteinEntityResponse.Modification>;
220
+ /**
221
+ * Optional protein MSA control. Omit msa on all protein entities to use automatic
222
+ * MSA generation. Use custom for user-provided A3M/CSV files, or empty for
223
+ * single-sequence mode. Custom MSA and automatic MSA cannot be mixed in one
224
+ * request.
225
+ */
226
+ msa?: Boltz2ProteinEntityResponse.Boltz2CustomMsaResponse | Boltz2ProteinEntityResponse.Boltz2EmptyMsaResponse;
215
227
  }
216
- namespace ProteinEntityResponse {
228
+ namespace Boltz2ProteinEntityResponse {
217
229
  interface Modification {
218
230
  /**
219
231
  * 0-based index of the residue to modify
@@ -226,6 +238,40 @@ export declare namespace StructureAndBindingRetrieveResponse {
226
238
  */
227
239
  value: string;
228
240
  }
241
+ /**
242
+ * Use a user-provided MSA for this protein entity. If any protein entity uses a
243
+ * custom MSA, every other protein entity must use either custom or empty MSA;
244
+ * automatic MSA generation cannot be mixed with custom MSAs in the same request.
245
+ */
246
+ interface Boltz2CustomMsaResponse {
247
+ /**
248
+ * Custom MSA file format. Base64 uploads must use media_type text/x-a3m for A3M or
249
+ * text/csv for CSV.
250
+ */
251
+ format: 'a3m' | 'csv';
252
+ source: Boltz2CustomMsaResponse.Source;
253
+ type: 'custom';
254
+ }
255
+ namespace Boltz2CustomMsaResponse {
256
+ interface Source {
257
+ /**
258
+ * URL to download the file
259
+ */
260
+ url: string;
261
+ /**
262
+ * When the presigned URL expires
263
+ */
264
+ url_expires_at: string;
265
+ }
266
+ }
267
+ /**
268
+ * Run this protein entity in single-sequence mode without an MSA. Use this for
269
+ * chains that should not use automatic MSA generation, including non-homologous
270
+ * chains in a request that also includes custom MSAs.
271
+ */
272
+ interface Boltz2EmptyMsaResponse {
273
+ type: 'empty';
274
+ }
229
275
  }
230
276
  interface RnaEntityResponse {
231
277
  /**
@@ -533,14 +579,21 @@ export declare namespace StructureAndBindingRetrieveResponse {
533
579
  */
534
580
  step_scale?: number;
535
581
  }
582
+ /**
583
+ * Template structure used as an inference-time guide for Boltz-2.1 protein-chain
584
+ * geometry. Provide a CIF or PDB file from an HTTPS URL or base64 upload.
585
+ */
536
586
  interface Template {
537
587
  /**
538
- * Template structure format. Base64 sources must use a matching media_type.
588
+ * Template structure format. Base64 uploads must use media_type chemical/x-cif for
589
+ * CIF or chemical/x-pdb for PDB.
539
590
  */
540
591
  format: 'cif' | 'pdb';
541
592
  source: Template.Source;
542
593
  /**
543
- * One query/template chain ID, or an ordered list of chain IDs.
594
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
595
+ * chain_id, values refer to input chains; for template_id, values refer to chains
596
+ * in the template file.
544
597
  */
545
598
  chain_id?: string | Array<string>;
546
599
  /**
@@ -548,7 +601,9 @@ export declare namespace StructureAndBindingRetrieveResponse {
548
601
  */
549
602
  force?: boolean;
550
603
  /**
551
- * One query/template chain ID, or an ordered list of chain IDs.
604
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
605
+ * chain_id, values refer to input chains; for template_id, values refer to chains
606
+ * in the template file.
552
607
  */
553
608
  template_id?: string | Array<string>;
554
609
  /**
@@ -906,7 +961,7 @@ export declare namespace StructureAndBindingStartResponse {
906
961
  * Entities (proteins, RNA, DNA, ligands) forming the complex to predict. Order
907
962
  * determines chain assignment.
908
963
  */
909
- entities: Array<Input.ProteinEntityResponse | Input.RnaEntityResponse | Input.DnaEntityResponse | Input.LigandCcdEntityResponse | Input.LigandSmilesEntityResponse>;
964
+ entities: Array<Input.Boltz2ProteinEntityResponse | Input.RnaEntityResponse | Input.DnaEntityResponse | Input.LigandCcdEntityResponse | Input.LigandSmilesEntityResponse>;
910
965
  binding?: Input.LigandProteinBindingResponse | Input.ProteinProteinBindingResponse;
911
966
  /**
912
967
  * Bond constraints between atoms. Atom-level ligand references currently support
@@ -925,12 +980,14 @@ export declare namespace StructureAndBindingStartResponse {
925
980
  num_samples?: number;
926
981
  /**
927
982
  * Template structure files to guide protein-chain prediction. Supports up to 4 CIF
928
- * or PDB templates from HTTPS URLs or base64 uploads.
983
+ * or PDB templates from HTTPS URLs or base64 uploads. Use chain_id and template_id
984
+ * to map request chains to template chains when the IDs differ or when providing
985
+ * multi-chain templates.
929
986
  */
930
987
  templates?: Array<Input.Template>;
931
988
  }
932
989
  namespace Input {
933
- interface ProteinEntityResponse {
990
+ interface Boltz2ProteinEntityResponse {
934
991
  /**
935
992
  * Chain IDs for this entity
936
993
  */
@@ -948,9 +1005,16 @@ export declare namespace StructureAndBindingStartResponse {
948
1005
  * Post-translational modifications. Optional; defaults to an empty list when
949
1006
  * omitted.
950
1007
  */
951
- modifications?: Array<ProteinEntityResponse.Modification>;
1008
+ modifications?: Array<Boltz2ProteinEntityResponse.Modification>;
1009
+ /**
1010
+ * Optional protein MSA control. Omit msa on all protein entities to use automatic
1011
+ * MSA generation. Use custom for user-provided A3M/CSV files, or empty for
1012
+ * single-sequence mode. Custom MSA and automatic MSA cannot be mixed in one
1013
+ * request.
1014
+ */
1015
+ msa?: Boltz2ProteinEntityResponse.Boltz2CustomMsaResponse | Boltz2ProteinEntityResponse.Boltz2EmptyMsaResponse;
952
1016
  }
953
- namespace ProteinEntityResponse {
1017
+ namespace Boltz2ProteinEntityResponse {
954
1018
  interface Modification {
955
1019
  /**
956
1020
  * 0-based index of the residue to modify
@@ -963,6 +1027,40 @@ export declare namespace StructureAndBindingStartResponse {
963
1027
  */
964
1028
  value: string;
965
1029
  }
1030
+ /**
1031
+ * Use a user-provided MSA for this protein entity. If any protein entity uses a
1032
+ * custom MSA, every other protein entity must use either custom or empty MSA;
1033
+ * automatic MSA generation cannot be mixed with custom MSAs in the same request.
1034
+ */
1035
+ interface Boltz2CustomMsaResponse {
1036
+ /**
1037
+ * Custom MSA file format. Base64 uploads must use media_type text/x-a3m for A3M or
1038
+ * text/csv for CSV.
1039
+ */
1040
+ format: 'a3m' | 'csv';
1041
+ source: Boltz2CustomMsaResponse.Source;
1042
+ type: 'custom';
1043
+ }
1044
+ namespace Boltz2CustomMsaResponse {
1045
+ interface Source {
1046
+ /**
1047
+ * URL to download the file
1048
+ */
1049
+ url: string;
1050
+ /**
1051
+ * When the presigned URL expires
1052
+ */
1053
+ url_expires_at: string;
1054
+ }
1055
+ }
1056
+ /**
1057
+ * Run this protein entity in single-sequence mode without an MSA. Use this for
1058
+ * chains that should not use automatic MSA generation, including non-homologous
1059
+ * chains in a request that also includes custom MSAs.
1060
+ */
1061
+ interface Boltz2EmptyMsaResponse {
1062
+ type: 'empty';
1063
+ }
966
1064
  }
967
1065
  interface RnaEntityResponse {
968
1066
  /**
@@ -1270,14 +1368,21 @@ export declare namespace StructureAndBindingStartResponse {
1270
1368
  */
1271
1369
  step_scale?: number;
1272
1370
  }
1371
+ /**
1372
+ * Template structure used as an inference-time guide for Boltz-2.1 protein-chain
1373
+ * geometry. Provide a CIF or PDB file from an HTTPS URL or base64 upload.
1374
+ */
1273
1375
  interface Template {
1274
1376
  /**
1275
- * Template structure format. Base64 sources must use a matching media_type.
1377
+ * Template structure format. Base64 uploads must use media_type chemical/x-cif for
1378
+ * CIF or chemical/x-pdb for PDB.
1276
1379
  */
1277
1380
  format: 'cif' | 'pdb';
1278
1381
  source: Template.Source;
1279
1382
  /**
1280
- * One query/template chain ID, or an ordered list of chain IDs.
1383
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
1384
+ * chain_id, values refer to input chains; for template_id, values refer to chains
1385
+ * in the template file.
1281
1386
  */
1282
1387
  chain_id?: string | Array<string>;
1283
1388
  /**
@@ -1285,7 +1390,9 @@ export declare namespace StructureAndBindingStartResponse {
1285
1390
  */
1286
1391
  force?: boolean;
1287
1392
  /**
1288
- * One query/template chain ID, or an ordered list of chain IDs.
1393
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
1394
+ * chain_id, values refer to input chains; for template_id, values refer to chains
1395
+ * in the template file.
1289
1396
  */
1290
1397
  template_id?: string | Array<string>;
1291
1398
  /**
@@ -1494,7 +1601,7 @@ export declare namespace StructureAndBindingEstimateCostParams {
1494
1601
  * Entities (proteins, RNA, DNA, ligands) forming the complex to predict. Order
1495
1602
  * determines chain assignment.
1496
1603
  */
1497
- entities: Array<Input.ProteinEntity | Input.RnaEntity | Input.DnaEntity | Input.LigandCcdEntity | Input.LigandSmilesEntity>;
1604
+ entities: Array<Input.Boltz2ProteinEntity | Input.RnaEntity | Input.DnaEntity | Input.LigandCcdEntity | Input.LigandSmilesEntity>;
1498
1605
  binding?: Input.LigandProteinBinding | Input.ProteinProteinBinding;
1499
1606
  /**
1500
1607
  * Bond constraints between atoms. Atom-level ligand references currently support
@@ -1513,12 +1620,14 @@ export declare namespace StructureAndBindingEstimateCostParams {
1513
1620
  num_samples?: number;
1514
1621
  /**
1515
1622
  * Template structure files to guide protein-chain prediction. Supports up to 4 CIF
1516
- * or PDB templates from HTTPS URLs or base64 uploads.
1623
+ * or PDB templates from HTTPS URLs or base64 uploads. Use chain_id and template_id
1624
+ * to map request chains to template chains when the IDs differ or when providing
1625
+ * multi-chain templates.
1517
1626
  */
1518
1627
  templates?: Array<Input.Template>;
1519
1628
  }
1520
1629
  namespace Input {
1521
- interface ProteinEntity {
1630
+ interface Boltz2ProteinEntity {
1522
1631
  /**
1523
1632
  * Chain IDs for this entity
1524
1633
  */
@@ -1536,9 +1645,16 @@ export declare namespace StructureAndBindingEstimateCostParams {
1536
1645
  * Post-translational modifications. Optional; defaults to an empty list when
1537
1646
  * omitted.
1538
1647
  */
1539
- modifications?: Array<ProteinEntity.Modification>;
1648
+ modifications?: Array<Boltz2ProteinEntity.Modification>;
1649
+ /**
1650
+ * Optional protein MSA control. Omit msa on all protein entities to use automatic
1651
+ * MSA generation. Use custom for user-provided A3M/CSV files, or empty for
1652
+ * single-sequence mode. Custom MSA and automatic MSA cannot be mixed in one
1653
+ * request.
1654
+ */
1655
+ msa?: Boltz2ProteinEntity.Boltz2CustomMsa | Boltz2ProteinEntity.Boltz2EmptyMsa;
1540
1656
  }
1541
- namespace ProteinEntity {
1657
+ namespace Boltz2ProteinEntity {
1542
1658
  interface Modification {
1543
1659
  /**
1544
1660
  * 0-based index of the residue to modify
@@ -1551,6 +1667,48 @@ export declare namespace StructureAndBindingEstimateCostParams {
1551
1667
  */
1552
1668
  value: string;
1553
1669
  }
1670
+ /**
1671
+ * Use a user-provided MSA for this protein entity. If any protein entity uses a
1672
+ * custom MSA, every other protein entity must use either custom or empty MSA;
1673
+ * automatic MSA generation cannot be mixed with custom MSAs in the same request.
1674
+ */
1675
+ interface Boltz2CustomMsa {
1676
+ /**
1677
+ * Custom MSA file format. Base64 uploads must use media_type text/x-a3m for A3M or
1678
+ * text/csv for CSV.
1679
+ */
1680
+ format: 'a3m' | 'csv';
1681
+ /**
1682
+ * How to provide a file to the API
1683
+ */
1684
+ source: Boltz2CustomMsa.URLSource | Boltz2CustomMsa.Base64Source;
1685
+ type: 'custom';
1686
+ }
1687
+ namespace Boltz2CustomMsa {
1688
+ interface URLSource {
1689
+ type: 'url';
1690
+ url: string;
1691
+ }
1692
+ interface Base64Source {
1693
+ /**
1694
+ * Base64-encoded file contents
1695
+ */
1696
+ data: string;
1697
+ /**
1698
+ * MIME type (e.g., text/csv)
1699
+ */
1700
+ media_type: string;
1701
+ type: 'base64';
1702
+ }
1703
+ }
1704
+ /**
1705
+ * Run this protein entity in single-sequence mode without an MSA. Use this for
1706
+ * chains that should not use automatic MSA generation, including non-homologous
1707
+ * chains in a request that also includes custom MSAs.
1708
+ */
1709
+ interface Boltz2EmptyMsa {
1710
+ type: 'empty';
1711
+ }
1554
1712
  }
1555
1713
  interface RnaEntity {
1556
1714
  /**
@@ -1858,9 +2016,14 @@ export declare namespace StructureAndBindingEstimateCostParams {
1858
2016
  */
1859
2017
  step_scale?: number;
1860
2018
  }
2019
+ /**
2020
+ * Template structure used as an inference-time guide for Boltz-2.1 protein-chain
2021
+ * geometry. Provide a CIF or PDB file from an HTTPS URL or base64 upload.
2022
+ */
1861
2023
  interface Template {
1862
2024
  /**
1863
- * Template structure format. Base64 sources must use a matching media_type.
2025
+ * Template structure format. Base64 uploads must use media_type chemical/x-cif for
2026
+ * CIF or chemical/x-pdb for PDB.
1864
2027
  */
1865
2028
  format: 'cif' | 'pdb';
1866
2029
  /**
@@ -1868,7 +2031,9 @@ export declare namespace StructureAndBindingEstimateCostParams {
1868
2031
  */
1869
2032
  source: Template.URLSource | Template.Base64Source;
1870
2033
  /**
1871
- * One query/template chain ID, or an ordered list of chain IDs.
2034
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
2035
+ * chain_id, values refer to input chains; for template_id, values refer to chains
2036
+ * in the template file.
1872
2037
  */
1873
2038
  chain_id?: string | Array<string>;
1874
2039
  /**
@@ -1876,7 +2041,9 @@ export declare namespace StructureAndBindingEstimateCostParams {
1876
2041
  */
1877
2042
  force?: boolean;
1878
2043
  /**
1879
- * One query/template chain ID, or an ordered list of chain IDs.
2044
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
2045
+ * chain_id, values refer to input chains; for template_id, values refer to chains
2046
+ * in the template file.
1880
2047
  */
1881
2048
  template_id?: string | Array<string>;
1882
2049
  /**
@@ -1924,7 +2091,7 @@ export declare namespace StructureAndBindingStartParams {
1924
2091
  * Entities (proteins, RNA, DNA, ligands) forming the complex to predict. Order
1925
2092
  * determines chain assignment.
1926
2093
  */
1927
- entities: Array<Input.ProteinEntity | Input.RnaEntity | Input.DnaEntity | Input.LigandCcdEntity | Input.LigandSmilesEntity>;
2094
+ entities: Array<Input.Boltz2ProteinEntity | Input.RnaEntity | Input.DnaEntity | Input.LigandCcdEntity | Input.LigandSmilesEntity>;
1928
2095
  binding?: Input.LigandProteinBinding | Input.ProteinProteinBinding;
1929
2096
  /**
1930
2097
  * Bond constraints between atoms. Atom-level ligand references currently support
@@ -1943,12 +2110,14 @@ export declare namespace StructureAndBindingStartParams {
1943
2110
  num_samples?: number;
1944
2111
  /**
1945
2112
  * Template structure files to guide protein-chain prediction. Supports up to 4 CIF
1946
- * or PDB templates from HTTPS URLs or base64 uploads.
2113
+ * or PDB templates from HTTPS URLs or base64 uploads. Use chain_id and template_id
2114
+ * to map request chains to template chains when the IDs differ or when providing
2115
+ * multi-chain templates.
1947
2116
  */
1948
2117
  templates?: Array<Input.Template>;
1949
2118
  }
1950
2119
  namespace Input {
1951
- interface ProteinEntity {
2120
+ interface Boltz2ProteinEntity {
1952
2121
  /**
1953
2122
  * Chain IDs for this entity
1954
2123
  */
@@ -1966,9 +2135,16 @@ export declare namespace StructureAndBindingStartParams {
1966
2135
  * Post-translational modifications. Optional; defaults to an empty list when
1967
2136
  * omitted.
1968
2137
  */
1969
- modifications?: Array<ProteinEntity.Modification>;
2138
+ modifications?: Array<Boltz2ProteinEntity.Modification>;
2139
+ /**
2140
+ * Optional protein MSA control. Omit msa on all protein entities to use automatic
2141
+ * MSA generation. Use custom for user-provided A3M/CSV files, or empty for
2142
+ * single-sequence mode. Custom MSA and automatic MSA cannot be mixed in one
2143
+ * request.
2144
+ */
2145
+ msa?: Boltz2ProteinEntity.Boltz2CustomMsa | Boltz2ProteinEntity.Boltz2EmptyMsa;
1970
2146
  }
1971
- namespace ProteinEntity {
2147
+ namespace Boltz2ProteinEntity {
1972
2148
  interface Modification {
1973
2149
  /**
1974
2150
  * 0-based index of the residue to modify
@@ -1981,6 +2157,48 @@ export declare namespace StructureAndBindingStartParams {
1981
2157
  */
1982
2158
  value: string;
1983
2159
  }
2160
+ /**
2161
+ * Use a user-provided MSA for this protein entity. If any protein entity uses a
2162
+ * custom MSA, every other protein entity must use either custom or empty MSA;
2163
+ * automatic MSA generation cannot be mixed with custom MSAs in the same request.
2164
+ */
2165
+ interface Boltz2CustomMsa {
2166
+ /**
2167
+ * Custom MSA file format. Base64 uploads must use media_type text/x-a3m for A3M or
2168
+ * text/csv for CSV.
2169
+ */
2170
+ format: 'a3m' | 'csv';
2171
+ /**
2172
+ * How to provide a file to the API
2173
+ */
2174
+ source: Boltz2CustomMsa.URLSource | Boltz2CustomMsa.Base64Source;
2175
+ type: 'custom';
2176
+ }
2177
+ namespace Boltz2CustomMsa {
2178
+ interface URLSource {
2179
+ type: 'url';
2180
+ url: string;
2181
+ }
2182
+ interface Base64Source {
2183
+ /**
2184
+ * Base64-encoded file contents
2185
+ */
2186
+ data: string;
2187
+ /**
2188
+ * MIME type (e.g., text/csv)
2189
+ */
2190
+ media_type: string;
2191
+ type: 'base64';
2192
+ }
2193
+ }
2194
+ /**
2195
+ * Run this protein entity in single-sequence mode without an MSA. Use this for
2196
+ * chains that should not use automatic MSA generation, including non-homologous
2197
+ * chains in a request that also includes custom MSAs.
2198
+ */
2199
+ interface Boltz2EmptyMsa {
2200
+ type: 'empty';
2201
+ }
1984
2202
  }
1985
2203
  interface RnaEntity {
1986
2204
  /**
@@ -2288,9 +2506,14 @@ export declare namespace StructureAndBindingStartParams {
2288
2506
  */
2289
2507
  step_scale?: number;
2290
2508
  }
2509
+ /**
2510
+ * Template structure used as an inference-time guide for Boltz-2.1 protein-chain
2511
+ * geometry. Provide a CIF or PDB file from an HTTPS URL or base64 upload.
2512
+ */
2291
2513
  interface Template {
2292
2514
  /**
2293
- * Template structure format. Base64 sources must use a matching media_type.
2515
+ * Template structure format. Base64 uploads must use media_type chemical/x-cif for
2516
+ * CIF or chemical/x-pdb for PDB.
2294
2517
  */
2295
2518
  format: 'cif' | 'pdb';
2296
2519
  /**
@@ -2298,7 +2521,9 @@ export declare namespace StructureAndBindingStartParams {
2298
2521
  */
2299
2522
  source: Template.URLSource | Template.Base64Source;
2300
2523
  /**
2301
- * One query/template chain ID, or an ordered list of chain IDs.
2524
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
2525
+ * chain_id, values refer to input chains; for template_id, values refer to chains
2526
+ * in the template file.
2302
2527
  */
2303
2528
  chain_id?: string | Array<string>;
2304
2529
  /**
@@ -2306,7 +2531,9 @@ export declare namespace StructureAndBindingStartParams {
2306
2531
  */
2307
2532
  force?: boolean;
2308
2533
  /**
2309
- * One query/template chain ID, or an ordered list of chain IDs.
2534
+ * One chain ID, or an ordered list of chain IDs for multi-chain templates. For
2535
+ * chain_id, values refer to input chains; for template_id, values refer to chains
2536
+ * in the template file.
2310
2537
  */
2311
2538
  template_id?: string | Array<string>;
2312
2539
  /**