@biolm/biolm-models-mcp 0.2.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.
Files changed (153) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +95 -0
  3. package/auth.d.mts +6 -0
  4. package/auth.d.mts.map +1 -0
  5. package/auth.d.ts +6 -0
  6. package/auth.d.ts.map +1 -0
  7. package/auth.js +37 -0
  8. package/auth.js.map +1 -0
  9. package/auth.mjs +32 -0
  10. package/auth.mjs.map +1 -0
  11. package/code-tool-paths.cjs +8 -0
  12. package/code-tool-paths.cjs.map +1 -0
  13. package/code-tool-paths.d.cts +2 -0
  14. package/code-tool-paths.d.cts.map +1 -0
  15. package/code-tool-types.d.mts +14 -0
  16. package/code-tool-types.d.mts.map +1 -0
  17. package/code-tool-types.d.ts +14 -0
  18. package/code-tool-types.d.ts.map +1 -0
  19. package/code-tool-types.js +4 -0
  20. package/code-tool-types.js.map +1 -0
  21. package/code-tool-types.mjs +3 -0
  22. package/code-tool-types.mjs.map +1 -0
  23. package/code-tool-worker.d.mts +5 -0
  24. package/code-tool-worker.d.mts.map +1 -0
  25. package/code-tool-worker.d.ts +5 -0
  26. package/code-tool-worker.d.ts.map +1 -0
  27. package/code-tool-worker.js +286 -0
  28. package/code-tool-worker.js.map +1 -0
  29. package/code-tool-worker.mjs +248 -0
  30. package/code-tool-worker.mjs.map +1 -0
  31. package/code-tool.d.mts +21 -0
  32. package/code-tool.d.mts.map +1 -0
  33. package/code-tool.d.ts +21 -0
  34. package/code-tool.d.ts.map +1 -0
  35. package/code-tool.js +336 -0
  36. package/code-tool.js.map +1 -0
  37. package/code-tool.mjs +300 -0
  38. package/code-tool.mjs.map +1 -0
  39. package/docs-search-tool.d.mts +59 -0
  40. package/docs-search-tool.d.mts.map +1 -0
  41. package/docs-search-tool.d.ts +59 -0
  42. package/docs-search-tool.d.ts.map +1 -0
  43. package/docs-search-tool.js +104 -0
  44. package/docs-search-tool.js.map +1 -0
  45. package/docs-search-tool.mjs +99 -0
  46. package/docs-search-tool.mjs.map +1 -0
  47. package/http.d.mts +12 -0
  48. package/http.d.mts.map +1 -0
  49. package/http.d.ts +12 -0
  50. package/http.d.ts.map +1 -0
  51. package/http.js +224 -0
  52. package/http.js.map +1 -0
  53. package/http.mjs +216 -0
  54. package/http.mjs.map +1 -0
  55. package/index.d.mts +3 -0
  56. package/index.d.mts.map +1 -0
  57. package/index.d.ts +3 -0
  58. package/index.d.ts.map +1 -0
  59. package/index.js +60 -0
  60. package/index.js.map +1 -0
  61. package/index.mjs +58 -0
  62. package/index.mjs.map +1 -0
  63. package/instructions.d.mts +5 -0
  64. package/instructions.d.mts.map +1 -0
  65. package/instructions.d.ts +5 -0
  66. package/instructions.d.ts.map +1 -0
  67. package/instructions.js +62 -0
  68. package/instructions.js.map +1 -0
  69. package/instructions.mjs +56 -0
  70. package/instructions.mjs.map +1 -0
  71. package/local-docs-search.d.mts +28 -0
  72. package/local-docs-search.d.mts.map +1 -0
  73. package/local-docs-search.d.ts +28 -0
  74. package/local-docs-search.d.ts.map +1 -0
  75. package/local-docs-search.js +797 -0
  76. package/local-docs-search.js.map +1 -0
  77. package/local-docs-search.mjs +757 -0
  78. package/local-docs-search.mjs.map +1 -0
  79. package/logger.d.mts +7 -0
  80. package/logger.d.mts.map +1 -0
  81. package/logger.d.ts +7 -0
  82. package/logger.d.ts.map +1 -0
  83. package/logger.js +29 -0
  84. package/logger.js.map +1 -0
  85. package/logger.mjs +22 -0
  86. package/logger.mjs.map +1 -0
  87. package/methods.d.mts +10 -0
  88. package/methods.d.mts.map +1 -0
  89. package/methods.d.ts +10 -0
  90. package/methods.d.ts.map +1 -0
  91. package/methods.js +761 -0
  92. package/methods.js.map +1 -0
  93. package/methods.mjs +757 -0
  94. package/methods.mjs.map +1 -0
  95. package/options.d.mts +23 -0
  96. package/options.d.mts.map +1 -0
  97. package/options.d.ts +23 -0
  98. package/options.d.ts.map +1 -0
  99. package/options.js +141 -0
  100. package/options.js.map +1 -0
  101. package/options.mjs +134 -0
  102. package/options.mjs.map +1 -0
  103. package/package.json +236 -0
  104. package/server.d.mts +38 -0
  105. package/server.d.mts.map +1 -0
  106. package/server.d.ts +38 -0
  107. package/server.d.ts.map +1 -0
  108. package/server.js +170 -0
  109. package/server.js.map +1 -0
  110. package/server.mjs +160 -0
  111. package/server.mjs.map +1 -0
  112. package/src/auth.ts +42 -0
  113. package/src/code-tool-paths.cts +5 -0
  114. package/src/code-tool-types.ts +17 -0
  115. package/src/code-tool-worker.ts +299 -0
  116. package/src/code-tool.ts +390 -0
  117. package/src/docs-search-tool.ts +138 -0
  118. package/src/http.ts +266 -0
  119. package/src/index.ts +67 -0
  120. package/src/instructions.ts +84 -0
  121. package/src/local-docs-search.ts +901 -0
  122. package/src/logger.ts +28 -0
  123. package/src/methods.ts +782 -0
  124. package/src/options.ts +185 -0
  125. package/src/server.ts +210 -0
  126. package/src/stdio.ts +17 -0
  127. package/src/tsconfig.json +11 -0
  128. package/src/types.ts +126 -0
  129. package/src/util.ts +25 -0
  130. package/stdio.d.mts +3 -0
  131. package/stdio.d.mts.map +1 -0
  132. package/stdio.d.ts +3 -0
  133. package/stdio.d.ts.map +1 -0
  134. package/stdio.js +18 -0
  135. package/stdio.js.map +1 -0
  136. package/stdio.mjs +14 -0
  137. package/stdio.mjs.map +1 -0
  138. package/types.d.mts +65 -0
  139. package/types.d.mts.map +1 -0
  140. package/types.d.ts +65 -0
  141. package/types.d.ts.map +1 -0
  142. package/types.js +58 -0
  143. package/types.js.map +1 -0
  144. package/types.mjs +53 -0
  145. package/types.mjs.map +1 -0
  146. package/util.d.mts +4 -0
  147. package/util.d.mts.map +1 -0
  148. package/util.d.ts +4 -0
  149. package/util.d.ts.map +1 -0
  150. package/util.js +30 -0
  151. package/util.js.map +1 -0
  152. package/util.mjs +24 -0
  153. package/util.mjs.map +1 -0
package/methods.js ADDED
@@ -0,0 +1,761 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.sdkMethods = void 0;
5
+ exports.blockedMethodsForCodeTool = blockedMethodsForCodeTool;
6
+ exports.sdkMethods = [
7
+ {
8
+ clientCallName: 'client.v3.ablang2.encode',
9
+ fullyQualifiedName: 'v3.ablang2.encode',
10
+ httpMethod: 'post',
11
+ httpPath: '/api/v3/ablang2/encode/',
12
+ },
13
+ {
14
+ clientCallName: 'client.v3.ablang2.predict',
15
+ fullyQualifiedName: 'v3.ablang2.predict',
16
+ httpMethod: 'post',
17
+ httpPath: '/api/v3/ablang2/predict/',
18
+ },
19
+ {
20
+ clientCallName: 'client.v3.abodybuilder2.predict',
21
+ fullyQualifiedName: 'v3.abodybuilder2.predict',
22
+ httpMethod: 'post',
23
+ httpPath: '/api/v3/abodybuilder2/predict/',
24
+ },
25
+ {
26
+ clientCallName: 'client.v3.abodybuilder3Language.predict',
27
+ fullyQualifiedName: 'v3.abodybuilder3Language.predict',
28
+ httpMethod: 'post',
29
+ httpPath: '/api/v3/abodybuilder3-language/predict/',
30
+ },
31
+ {
32
+ clientCallName: 'client.v3.abodybuilder3Plddt.predict',
33
+ fullyQualifiedName: 'v3.abodybuilder3Plddt.predict',
34
+ httpMethod: 'post',
35
+ httpPath: '/api/v3/abodybuilder3-plddt/predict/',
36
+ },
37
+ {
38
+ clientCallName: 'client.v3.alphafold2.encode',
39
+ fullyQualifiedName: 'v3.alphafold2.encode',
40
+ httpMethod: 'post',
41
+ httpPath: '/api/v3/alphafold2/encode/',
42
+ },
43
+ {
44
+ clientCallName: 'client.v3.alphafold2.predict',
45
+ fullyQualifiedName: 'v3.alphafold2.predict',
46
+ httpMethod: 'post',
47
+ httpPath: '/api/v3/alphafold2/predict/',
48
+ },
49
+ {
50
+ clientCallName: 'client.v3.antifold.encode',
51
+ fullyQualifiedName: 'v3.antifold.encode',
52
+ httpMethod: 'post',
53
+ httpPath: '/api/v3/antifold/encode/',
54
+ },
55
+ {
56
+ clientCallName: 'client.v3.antifold.generate',
57
+ fullyQualifiedName: 'v3.antifold.generate',
58
+ httpMethod: 'post',
59
+ httpPath: '/api/v3/antifold/generate/',
60
+ },
61
+ {
62
+ clientCallName: 'client.v3.antifold.predict',
63
+ fullyQualifiedName: 'v3.antifold.predict',
64
+ httpMethod: 'post',
65
+ httpPath: '/api/v3/antifold/predict/',
66
+ },
67
+ {
68
+ clientCallName: 'client.v3.biolmAblef.encode',
69
+ fullyQualifiedName: 'v3.biolmAblef.encode',
70
+ httpMethod: 'post',
71
+ httpPath: '/api/v3/biolm-ablef/encode/',
72
+ },
73
+ {
74
+ clientCallName: 'client.v3.biolmAblef.predict',
75
+ fullyQualifiedName: 'v3.biolmAblef.predict',
76
+ httpMethod: 'post',
77
+ httpPath: '/api/v3/biolm-ablef/predict/',
78
+ },
79
+ {
80
+ clientCallName: 'client.v3.biolmsol.predict',
81
+ fullyQualifiedName: 'v3.biolmsol.predict',
82
+ httpMethod: 'post',
83
+ httpPath: '/api/v3/biolmsol/predict/',
84
+ },
85
+ {
86
+ clientCallName: 'client.v3.biolmtox2.encode',
87
+ fullyQualifiedName: 'v3.biolmtox2.encode',
88
+ httpMethod: 'post',
89
+ httpPath: '/api/v3/biolmtox2/encode/',
90
+ },
91
+ {
92
+ clientCallName: 'client.v3.biolmtox2.predict',
93
+ fullyQualifiedName: 'v3.biolmtox2.predict',
94
+ httpMethod: 'post',
95
+ httpPath: '/api/v3/biolmtox2/predict/',
96
+ },
97
+ {
98
+ clientCallName: 'client.v3.biotite.predict',
99
+ fullyQualifiedName: 'v3.biotite.predict',
100
+ httpMethod: 'post',
101
+ httpPath: '/api/v3/biotite/predict/',
102
+ },
103
+ {
104
+ clientCallName: 'client.v3.boltz2.predict',
105
+ fullyQualifiedName: 'v3.boltz2.predict',
106
+ httpMethod: 'post',
107
+ httpPath: '/api/v3/boltz2/predict/',
108
+ },
109
+ {
110
+ clientCallName: 'client.v3.chai1.predict',
111
+ fullyQualifiedName: 'v3.chai1.predict',
112
+ httpMethod: 'post',
113
+ httpPath: '/api/v3/chai1/predict/',
114
+ },
115
+ {
116
+ clientCallName: 'client.v3.clean.encode',
117
+ fullyQualifiedName: 'v3.clean.encode',
118
+ httpMethod: 'post',
119
+ httpPath: '/api/v3/clean/encode/',
120
+ },
121
+ {
122
+ clientCallName: 'client.v3.clean.predict',
123
+ fullyQualifiedName: 'v3.clean.predict',
124
+ httpMethod: 'post',
125
+ httpPath: '/api/v3/clean/predict/',
126
+ },
127
+ {
128
+ clientCallName: 'client.v3.deepviscosity.predict',
129
+ fullyQualifiedName: 'v3.deepviscosity.predict',
130
+ httpMethod: 'post',
131
+ httpPath: '/api/v3/deepviscosity/predict/',
132
+ },
133
+ {
134
+ clientCallName: 'client.v3.diamond.predict',
135
+ fullyQualifiedName: 'v3.diamond.predict',
136
+ httpMethod: 'post',
137
+ httpPath: '/api/v3/diamond/predict/',
138
+ },
139
+ {
140
+ clientCallName: 'client.v3.dnaChisel.predict',
141
+ fullyQualifiedName: 'v3.dnaChisel.predict',
142
+ httpMethod: 'post',
143
+ httpPath: '/api/v3/dna-chisel/predict/',
144
+ },
145
+ {
146
+ clientCallName: 'client.v3.dnabert2.encode',
147
+ fullyQualifiedName: 'v3.dnabert2.encode',
148
+ httpMethod: 'post',
149
+ httpPath: '/api/v3/dnabert2/encode/',
150
+ },
151
+ {
152
+ clientCallName: 'client.v3.dnabert2.predict',
153
+ fullyQualifiedName: 'v3.dnabert2.predict',
154
+ httpMethod: 'post',
155
+ httpPath: '/api/v3/dnabert2/predict/',
156
+ },
157
+ {
158
+ clientCallName: 'client.v3.dsm150mBase.encode',
159
+ fullyQualifiedName: 'v3.dsm150mBase.encode',
160
+ httpMethod: 'post',
161
+ httpPath: '/api/v3/dsm-150m-base/encode/',
162
+ },
163
+ {
164
+ clientCallName: 'client.v3.dsm150mBase.generate',
165
+ fullyQualifiedName: 'v3.dsm150mBase.generate',
166
+ httpMethod: 'post',
167
+ httpPath: '/api/v3/dsm-150m-base/generate/',
168
+ },
169
+ {
170
+ clientCallName: 'client.v3.dsm150mBase.predict',
171
+ fullyQualifiedName: 'v3.dsm150mBase.predict',
172
+ httpMethod: 'post',
173
+ httpPath: '/api/v3/dsm-150m-base/predict/',
174
+ },
175
+ {
176
+ clientCallName: 'client.v3.dsm650mBase.encode',
177
+ fullyQualifiedName: 'v3.dsm650mBase.encode',
178
+ httpMethod: 'post',
179
+ httpPath: '/api/v3/dsm-650m-base/encode/',
180
+ },
181
+ {
182
+ clientCallName: 'client.v3.dsm650mBase.generate',
183
+ fullyQualifiedName: 'v3.dsm650mBase.generate',
184
+ httpMethod: 'post',
185
+ httpPath: '/api/v3/dsm-650m-base/generate/',
186
+ },
187
+ {
188
+ clientCallName: 'client.v3.dsm650mBase.predict',
189
+ fullyQualifiedName: 'v3.dsm650mBase.predict',
190
+ httpMethod: 'post',
191
+ httpPath: '/api/v3/dsm-650m-base/predict/',
192
+ },
193
+ {
194
+ clientCallName: 'client.v3.dsm650mPpi.encode',
195
+ fullyQualifiedName: 'v3.dsm650mPpi.encode',
196
+ httpMethod: 'post',
197
+ httpPath: '/api/v3/dsm-650m-ppi/encode/',
198
+ },
199
+ {
200
+ clientCallName: 'client.v3.dsm650mPpi.generate',
201
+ fullyQualifiedName: 'v3.dsm650mPpi.generate',
202
+ httpMethod: 'post',
203
+ httpPath: '/api/v3/dsm-650m-ppi/generate/',
204
+ },
205
+ {
206
+ clientCallName: 'client.v3.dsm650mPpi.predict',
207
+ fullyQualifiedName: 'v3.dsm650mPpi.predict',
208
+ httpMethod: 'post',
209
+ httpPath: '/api/v3/dsm-650m-ppi/predict/',
210
+ },
211
+ {
212
+ clientCallName: 'client.v3.e1_150m.encode',
213
+ fullyQualifiedName: 'v3.e1_150m.encode',
214
+ httpMethod: 'post',
215
+ httpPath: '/api/v3/e1-150m/encode/',
216
+ },
217
+ {
218
+ clientCallName: 'client.v3.e1_150m.predict',
219
+ fullyQualifiedName: 'v3.e1_150m.predict',
220
+ httpMethod: 'post',
221
+ httpPath: '/api/v3/e1-150m/predict/',
222
+ },
223
+ {
224
+ clientCallName: 'client.v3.e1_300m.encode',
225
+ fullyQualifiedName: 'v3.e1_300m.encode',
226
+ httpMethod: 'post',
227
+ httpPath: '/api/v3/e1-300m/encode/',
228
+ },
229
+ {
230
+ clientCallName: 'client.v3.e1_300m.predict',
231
+ fullyQualifiedName: 'v3.e1_300m.predict',
232
+ httpMethod: 'post',
233
+ httpPath: '/api/v3/e1-300m/predict/',
234
+ },
235
+ {
236
+ clientCallName: 'client.v3.e1_600m.encode',
237
+ fullyQualifiedName: 'v3.e1_600m.encode',
238
+ httpMethod: 'post',
239
+ httpPath: '/api/v3/e1-600m/encode/',
240
+ },
241
+ {
242
+ clientCallName: 'client.v3.e1_600m.predict',
243
+ fullyQualifiedName: 'v3.e1_600m.predict',
244
+ httpMethod: 'post',
245
+ httpPath: '/api/v3/e1-600m/predict/',
246
+ },
247
+ {
248
+ clientCallName: 'client.v3.esmIf1.generate',
249
+ fullyQualifiedName: 'v3.esmIf1.generate',
250
+ httpMethod: 'post',
251
+ httpPath: '/api/v3/esm-if1/generate/',
252
+ },
253
+ {
254
+ clientCallName: 'client.v3.esm1b.encode',
255
+ fullyQualifiedName: 'v3.esm1b.encode',
256
+ httpMethod: 'post',
257
+ httpPath: '/api/v3/esm1b/encode/',
258
+ },
259
+ {
260
+ clientCallName: 'client.v3.esm1b.predict',
261
+ fullyQualifiedName: 'v3.esm1b.predict',
262
+ httpMethod: 'post',
263
+ httpPath: '/api/v3/esm1b/predict/',
264
+ },
265
+ {
266
+ clientCallName: 'client.v3.esm1vAll.predict',
267
+ fullyQualifiedName: 'v3.esm1vAll.predict',
268
+ httpMethod: 'post',
269
+ httpPath: '/api/v3/esm1v-all/predict/',
270
+ },
271
+ {
272
+ clientCallName: 'client.v3.esm2_150m.encode',
273
+ fullyQualifiedName: 'v3.esm2_150m.encode',
274
+ httpMethod: 'post',
275
+ httpPath: '/api/v3/esm2-150m/encode/',
276
+ },
277
+ {
278
+ clientCallName: 'client.v3.esm2_150m.predict',
279
+ fullyQualifiedName: 'v3.esm2_150m.predict',
280
+ httpMethod: 'post',
281
+ httpPath: '/api/v3/esm2-150m/predict/',
282
+ },
283
+ {
284
+ clientCallName: 'client.v3.esm2_35m.encode',
285
+ fullyQualifiedName: 'v3.esm2_35m.encode',
286
+ httpMethod: 'post',
287
+ httpPath: '/api/v3/esm2-35m/encode/',
288
+ },
289
+ {
290
+ clientCallName: 'client.v3.esm2_35m.predict',
291
+ fullyQualifiedName: 'v3.esm2_35m.predict',
292
+ httpMethod: 'post',
293
+ httpPath: '/api/v3/esm2-35m/predict/',
294
+ },
295
+ {
296
+ clientCallName: 'client.v3.esm2_3b.encode',
297
+ fullyQualifiedName: 'v3.esm2_3b.encode',
298
+ httpMethod: 'post',
299
+ httpPath: '/api/v3/esm2-3b/encode/',
300
+ },
301
+ {
302
+ clientCallName: 'client.v3.esm2_3b.predict',
303
+ fullyQualifiedName: 'v3.esm2_3b.predict',
304
+ httpMethod: 'post',
305
+ httpPath: '/api/v3/esm2-3b/predict/',
306
+ },
307
+ {
308
+ clientCallName: 'client.v3.esm2_650m.encode',
309
+ fullyQualifiedName: 'v3.esm2_650m.encode',
310
+ httpMethod: 'post',
311
+ httpPath: '/api/v3/esm2-650m/encode/',
312
+ },
313
+ {
314
+ clientCallName: 'client.v3.esm2_650m.predict',
315
+ fullyQualifiedName: 'v3.esm2_650m.predict',
316
+ httpMethod: 'post',
317
+ httpPath: '/api/v3/esm2-650m/predict/',
318
+ },
319
+ {
320
+ clientCallName: 'client.v3.esm2_8m.encode',
321
+ fullyQualifiedName: 'v3.esm2_8m.encode',
322
+ httpMethod: 'post',
323
+ httpPath: '/api/v3/esm2-8m/encode/',
324
+ },
325
+ {
326
+ clientCallName: 'client.v3.esm2_8m.predict',
327
+ fullyQualifiedName: 'v3.esm2_8m.predict',
328
+ httpMethod: 'post',
329
+ httpPath: '/api/v3/esm2-8m/predict/',
330
+ },
331
+ {
332
+ clientCallName: 'client.v3.esm2stabp.predict',
333
+ fullyQualifiedName: 'v3.esm2stabp.predict',
334
+ httpMethod: 'post',
335
+ httpPath: '/api/v3/esm2stabp/predict/',
336
+ },
337
+ {
338
+ clientCallName: 'client.v3.esmc300m.encode',
339
+ fullyQualifiedName: 'v3.esmc300m.encode',
340
+ httpMethod: 'post',
341
+ httpPath: '/api/v3/esmc-300m/encode/',
342
+ },
343
+ {
344
+ clientCallName: 'client.v3.esmc300m.predict',
345
+ fullyQualifiedName: 'v3.esmc300m.predict',
346
+ httpMethod: 'post',
347
+ httpPath: '/api/v3/esmc-300m/predict/',
348
+ },
349
+ {
350
+ clientCallName: 'client.v3.esmc600m.encode',
351
+ fullyQualifiedName: 'v3.esmc600m.encode',
352
+ httpMethod: 'post',
353
+ httpPath: '/api/v3/esmc-600m/encode/',
354
+ },
355
+ {
356
+ clientCallName: 'client.v3.esmc600m.predict',
357
+ fullyQualifiedName: 'v3.esmc600m.predict',
358
+ httpMethod: 'post',
359
+ httpPath: '/api/v3/esmc-600m/predict/',
360
+ },
361
+ {
362
+ clientCallName: 'client.v3.esmfold.predict',
363
+ fullyQualifiedName: 'v3.esmfold.predict',
364
+ httpMethod: 'post',
365
+ httpPath: '/api/v3/esmfold/predict/',
366
+ },
367
+ {
368
+ clientCallName: 'client.v3.evo15_8kBase.generate',
369
+ fullyQualifiedName: 'v3.evo15_8kBase.generate',
370
+ httpMethod: 'post',
371
+ httpPath: '/api/v3/evo-15-8k-base/generate/',
372
+ },
373
+ {
374
+ clientCallName: 'client.v3.evo15_8kBase.predict',
375
+ fullyQualifiedName: 'v3.evo15_8kBase.predict',
376
+ httpMethod: 'post',
377
+ httpPath: '/api/v3/evo-15-8k-base/predict/',
378
+ },
379
+ {
380
+ clientCallName: 'client.v3.evo2_1bBase.encode',
381
+ fullyQualifiedName: 'v3.evo2_1bBase.encode',
382
+ httpMethod: 'post',
383
+ httpPath: '/api/v3/evo2-1b-base/encode/',
384
+ },
385
+ {
386
+ clientCallName: 'client.v3.evo2_1bBase.generate',
387
+ fullyQualifiedName: 'v3.evo2_1bBase.generate',
388
+ httpMethod: 'post',
389
+ httpPath: '/api/v3/evo2-1b-base/generate/',
390
+ },
391
+ {
392
+ clientCallName: 'client.v3.evo2_1bBase.predict',
393
+ fullyQualifiedName: 'v3.evo2_1bBase.predict',
394
+ httpMethod: 'post',
395
+ httpPath: '/api/v3/evo2-1b-base/predict/',
396
+ },
397
+ {
398
+ clientCallName: 'client.v3.finetuneRun.post',
399
+ fullyQualifiedName: 'v3.finetuneRun.post',
400
+ httpMethod: 'post',
401
+ httpPath: '/api/v3/finetune_run/',
402
+ },
403
+ {
404
+ clientCallName: 'client.v3.globalLabelMembraneMpnn.generate',
405
+ fullyQualifiedName: 'v3.globalLabelMembraneMpnn.generate',
406
+ httpMethod: 'post',
407
+ httpPath: '/api/v3/global-label-membrane-mpnn/generate/',
408
+ },
409
+ {
410
+ clientCallName: 'client.v3.hyperMpnn.generate',
411
+ fullyQualifiedName: 'v3.hyperMpnn.generate',
412
+ httpMethod: 'post',
413
+ httpPath: '/api/v3/hyper-mpnn/generate/',
414
+ },
415
+ {
416
+ clientCallName: 'client.v3.igbertPaired.encode',
417
+ fullyQualifiedName: 'v3.igbertPaired.encode',
418
+ httpMethod: 'post',
419
+ httpPath: '/api/v3/igbert-paired/encode/',
420
+ },
421
+ {
422
+ clientCallName: 'client.v3.igbertPaired.generate',
423
+ fullyQualifiedName: 'v3.igbertPaired.generate',
424
+ httpMethod: 'post',
425
+ httpPath: '/api/v3/igbert-paired/generate/',
426
+ },
427
+ {
428
+ clientCallName: 'client.v3.igbertPaired.predict',
429
+ fullyQualifiedName: 'v3.igbertPaired.predict',
430
+ httpMethod: 'post',
431
+ httpPath: '/api/v3/igbert-paired/predict/',
432
+ },
433
+ {
434
+ clientCallName: 'client.v3.igbertUnpaired.encode',
435
+ fullyQualifiedName: 'v3.igbertUnpaired.encode',
436
+ httpMethod: 'post',
437
+ httpPath: '/api/v3/igbert-unpaired/encode/',
438
+ },
439
+ {
440
+ clientCallName: 'client.v3.igbertUnpaired.generate',
441
+ fullyQualifiedName: 'v3.igbertUnpaired.generate',
442
+ httpMethod: 'post',
443
+ httpPath: '/api/v3/igbert-unpaired/generate/',
444
+ },
445
+ {
446
+ clientCallName: 'client.v3.igbertUnpaired.predict',
447
+ fullyQualifiedName: 'v3.igbertUnpaired.predict',
448
+ httpMethod: 'post',
449
+ httpPath: '/api/v3/igbert-unpaired/predict/',
450
+ },
451
+ {
452
+ clientCallName: 'client.v3.igt5Paired.encode',
453
+ fullyQualifiedName: 'v3.igt5Paired.encode',
454
+ httpMethod: 'post',
455
+ httpPath: '/api/v3/igt5-paired/encode/',
456
+ },
457
+ {
458
+ clientCallName: 'client.v3.igt5Unpaired.encode',
459
+ fullyQualifiedName: 'v3.igt5Unpaired.encode',
460
+ httpMethod: 'post',
461
+ httpPath: '/api/v3/igt5-unpaired/encode/',
462
+ },
463
+ {
464
+ clientCallName: 'client.v3.immunefoldAntibody.predict',
465
+ fullyQualifiedName: 'v3.immunefoldAntibody.predict',
466
+ httpMethod: 'post',
467
+ httpPath: '/api/v3/immunefold-antibody/predict/',
468
+ },
469
+ {
470
+ clientCallName: 'client.v3.immunefoldTcr.predict',
471
+ fullyQualifiedName: 'v3.immunefoldTcr.predict',
472
+ httpMethod: 'post',
473
+ httpPath: '/api/v3/immunefold-tcr/predict/',
474
+ },
475
+ {
476
+ clientCallName: 'client.v3.ligandMpnn.generate',
477
+ fullyQualifiedName: 'v3.ligandMpnn.generate',
478
+ httpMethod: 'post',
479
+ httpPath: '/api/v3/ligand-mpnn/generate/',
480
+ },
481
+ {
482
+ clientCallName: 'client.v3.models.demofixedFinetuneProtgpt2Generator15.generate',
483
+ fullyQualifiedName: 'v3.models.demofixedFinetuneProtgpt2Generator15.generate',
484
+ httpMethod: 'post',
485
+ httpPath: '/api/v3/models/demofixed_finetune_protgpt2_generator_15/generate/',
486
+ },
487
+ {
488
+ clientCallName: 'client.v3.msaTransformer.encode',
489
+ fullyQualifiedName: 'v3.msaTransformer.encode',
490
+ httpMethod: 'post',
491
+ httpPath: '/api/v3/msa-transformer/encode/',
492
+ },
493
+ {
494
+ clientCallName: 'client.v3.nanobert.encode',
495
+ fullyQualifiedName: 'v3.nanobert.encode',
496
+ httpMethod: 'post',
497
+ httpPath: '/api/v3/nanobert/encode/',
498
+ },
499
+ {
500
+ clientCallName: 'client.v3.nanobert.generate',
501
+ fullyQualifiedName: 'v3.nanobert.generate',
502
+ httpMethod: 'post',
503
+ httpPath: '/api/v3/nanobert/generate/',
504
+ },
505
+ {
506
+ clientCallName: 'client.v3.nanobert.predict',
507
+ fullyQualifiedName: 'v3.nanobert.predict',
508
+ httpMethod: 'post',
509
+ httpPath: '/api/v3/nanobert/predict/',
510
+ },
511
+ {
512
+ clientCallName: 'client.v3.nanobodybuilder2.predict',
513
+ fullyQualifiedName: 'v3.nanobodybuilder2.predict',
514
+ httpMethod: 'post',
515
+ httpPath: '/api/v3/nanobodybuilder2/predict/',
516
+ },
517
+ {
518
+ clientCallName: 'client.v3.omniDna1b.encode',
519
+ fullyQualifiedName: 'v3.omniDna1b.encode',
520
+ httpMethod: 'post',
521
+ httpPath: '/api/v3/omni-dna-1b/encode/',
522
+ },
523
+ {
524
+ clientCallName: 'client.v3.omniDna1b.predict',
525
+ fullyQualifiedName: 'v3.omniDna1b.predict',
526
+ httpMethod: 'post',
527
+ httpPath: '/api/v3/omni-dna-1b/predict/',
528
+ },
529
+ {
530
+ clientCallName: 'client.v3.peptides.encode',
531
+ fullyQualifiedName: 'v3.peptides.encode',
532
+ httpMethod: 'post',
533
+ httpPath: '/api/v3/peptides/encode/',
534
+ },
535
+ {
536
+ clientCallName: 'client.v3.perResidueLabelMembraneMpnn.generate',
537
+ fullyQualifiedName: 'v3.perResidueLabelMembraneMpnn.generate',
538
+ httpMethod: 'post',
539
+ httpPath: '/api/v3/per-residue-label-membrane-mpnn/generate/',
540
+ },
541
+ {
542
+ clientCallName: 'client.v3.pro4sClassification.predict',
543
+ fullyQualifiedName: 'v3.pro4sClassification.predict',
544
+ httpMethod: 'post',
545
+ httpPath: '/api/v3/pro4s-classification/predict/',
546
+ },
547
+ {
548
+ clientCallName: 'client.v3.pro4sRegression.predict',
549
+ fullyQualifiedName: 'v3.pro4sRegression.predict',
550
+ httpMethod: 'post',
551
+ httpPath: '/api/v3/pro4s-regression/predict/',
552
+ },
553
+ {
554
+ clientCallName: 'client.v3.progen2Bfd90.generate',
555
+ fullyQualifiedName: 'v3.progen2Bfd90.generate',
556
+ httpMethod: 'post',
557
+ httpPath: '/api/v3/progen2-bfd90/generate/',
558
+ },
559
+ {
560
+ clientCallName: 'client.v3.progen2Large.generate',
561
+ fullyQualifiedName: 'v3.progen2Large.generate',
562
+ httpMethod: 'post',
563
+ httpPath: '/api/v3/progen2-large/generate/',
564
+ },
565
+ {
566
+ clientCallName: 'client.v3.progen2Medium.generate',
567
+ fullyQualifiedName: 'v3.progen2Medium.generate',
568
+ httpMethod: 'post',
569
+ httpPath: '/api/v3/progen2-medium/generate/',
570
+ },
571
+ {
572
+ clientCallName: 'client.v3.progen2Oas.generate',
573
+ fullyQualifiedName: 'v3.progen2Oas.generate',
574
+ httpMethod: 'post',
575
+ httpPath: '/api/v3/progen2-oas/generate/',
576
+ },
577
+ {
578
+ clientCallName: 'client.v3.prostt5Aa2fold.encode',
579
+ fullyQualifiedName: 'v3.prostt5Aa2fold.encode',
580
+ httpMethod: 'post',
581
+ httpPath: '/api/v3/prostt5-aa2fold/encode/',
582
+ },
583
+ {
584
+ clientCallName: 'client.v3.prostt5Aa2fold.generate',
585
+ fullyQualifiedName: 'v3.prostt5Aa2fold.generate',
586
+ httpMethod: 'post',
587
+ httpPath: '/api/v3/prostt5-aa2fold/generate/',
588
+ },
589
+ {
590
+ clientCallName: 'client.v3.prostt5Fold2aa.encode',
591
+ fullyQualifiedName: 'v3.prostt5Fold2aa.encode',
592
+ httpMethod: 'post',
593
+ httpPath: '/api/v3/prostt5-fold2aa/encode/',
594
+ },
595
+ {
596
+ clientCallName: 'client.v3.prostt5Fold2aa.generate',
597
+ fullyQualifiedName: 'v3.prostt5Fold2aa.generate',
598
+ httpMethod: 'post',
599
+ httpPath: '/api/v3/prostt5-fold2aa/generate/',
600
+ },
601
+ {
602
+ clientCallName: 'client.v3.proteinMpnn.generate',
603
+ fullyQualifiedName: 'v3.proteinMpnn.generate',
604
+ httpMethod: 'post',
605
+ httpPath: '/api/v3/protein-mpnn/generate/',
606
+ },
607
+ {
608
+ clientCallName: 'client.v3.sadieAntibody.predict',
609
+ fullyQualifiedName: 'v3.sadieAntibody.predict',
610
+ httpMethod: 'post',
611
+ httpPath: '/api/v3/sadie-antibody/predict/',
612
+ },
613
+ {
614
+ clientCallName: 'client.v3.solubleMpnn.generate',
615
+ fullyQualifiedName: 'v3.solubleMpnn.generate',
616
+ httpMethod: 'post',
617
+ httpPath: '/api/v3/soluble-mpnn/generate/',
618
+ },
619
+ {
620
+ clientCallName: 'client.v3.soluprot.predict',
621
+ fullyQualifiedName: 'v3.soluprot.predict',
622
+ httpMethod: 'post',
623
+ httpPath: '/api/v3/soluprot/predict/',
624
+ },
625
+ {
626
+ clientCallName: 'client.v3.spurs.predict',
627
+ fullyQualifiedName: 'v3.spurs.predict',
628
+ httpMethod: 'post',
629
+ httpPath: '/api/v3/spurs/predict/',
630
+ },
631
+ {
632
+ clientCallName: 'client.v3.tcrbuilder2Plus.predict',
633
+ fullyQualifiedName: 'v3.tcrbuilder2Plus.predict',
634
+ httpMethod: 'post',
635
+ httpPath: '/api/v3/tcrbuilder2-plus/predict/',
636
+ },
637
+ {
638
+ clientCallName: 'client.v3.tcrbuilder2.predict',
639
+ fullyQualifiedName: 'v3.tcrbuilder2.predict',
640
+ httpMethod: 'post',
641
+ httpPath: '/api/v3/tcrbuilder2/predict/',
642
+ },
643
+ {
644
+ clientCallName: 'client.v3.tembertureClassifier.encode',
645
+ fullyQualifiedName: 'v3.tembertureClassifier.encode',
646
+ httpMethod: 'post',
647
+ httpPath: '/api/v3/temberture-classifier/encode/',
648
+ },
649
+ {
650
+ clientCallName: 'client.v3.tembertureClassifier.predict',
651
+ fullyQualifiedName: 'v3.tembertureClassifier.predict',
652
+ httpMethod: 'post',
653
+ httpPath: '/api/v3/temberture-classifier/predict/',
654
+ },
655
+ {
656
+ clientCallName: 'client.v3.tembertureRegression.encode',
657
+ fullyQualifiedName: 'v3.tembertureRegression.encode',
658
+ httpMethod: 'post',
659
+ httpPath: '/api/v3/temberture-regression/encode/',
660
+ },
661
+ {
662
+ clientCallName: 'client.v3.tembertureRegression.predict',
663
+ fullyQualifiedName: 'v3.tembertureRegression.predict',
664
+ httpMethod: 'post',
665
+ httpPath: '/api/v3/temberture-regression/predict/',
666
+ },
667
+ {
668
+ clientCallName: 'client.v3.tempro3b.predict',
669
+ fullyQualifiedName: 'v3.tempro3b.predict',
670
+ httpMethod: 'post',
671
+ httpPath: '/api/v3/tempro-3b/predict/',
672
+ },
673
+ {
674
+ clientCallName: 'client.v3.tempro650m.predict',
675
+ fullyQualifiedName: 'v3.tempro650m.predict',
676
+ httpMethod: 'post',
677
+ httpPath: '/api/v3/tempro-650m/predict/',
678
+ },
679
+ {
680
+ clientCallName: 'client.v3.thermompnnD.predict',
681
+ fullyQualifiedName: 'v3.thermompnnD.predict',
682
+ httpMethod: 'post',
683
+ httpPath: '/api/v3/thermompnn-d/predict/',
684
+ },
685
+ {
686
+ clientCallName: 'client.v3.thermompnn.predict',
687
+ fullyQualifiedName: 'v3.thermompnn.predict',
688
+ httpMethod: 'post',
689
+ httpPath: '/api/v3/thermompnn/predict/',
690
+ },
691
+ {
692
+ clientCallName: 'client.v3.zymctrl.encode',
693
+ fullyQualifiedName: 'v3.zymctrl.encode',
694
+ httpMethod: 'post',
695
+ httpPath: '/api/v3/zymctrl/encode/',
696
+ },
697
+ {
698
+ clientCallName: 'client.v3.zymctrl.generate',
699
+ fullyQualifiedName: 'v3.zymctrl.generate',
700
+ httpMethod: 'post',
701
+ httpPath: '/api/v3/zymctrl/generate/',
702
+ },
703
+ ];
704
+ function allowedMethodsForCodeTool(options) {
705
+ if (!options) {
706
+ return undefined;
707
+ }
708
+ let allowedMethods;
709
+ if (options.codeAllowHttpGets || options.codeAllowedMethods) {
710
+ // Start with nothing allowed and then add into it from options
711
+ let allowedMethodsSet = new Set();
712
+ if (options.codeAllowHttpGets) {
713
+ // Add all methods that map to an HTTP GET
714
+ exports.sdkMethods
715
+ .filter((method) => method.httpMethod === 'get')
716
+ .forEach((method) => allowedMethodsSet.add(method));
717
+ }
718
+ if (options.codeAllowedMethods) {
719
+ // Add all methods that match any of the allowed regexps
720
+ const allowedRegexps = options.codeAllowedMethods.map((pattern) => {
721
+ try {
722
+ return new RegExp(pattern);
723
+ }
724
+ catch (e) {
725
+ throw new Error(`Invalid regex pattern for allowed method: "${pattern}": ${e instanceof Error ? e.message : e}`);
726
+ }
727
+ });
728
+ exports.sdkMethods
729
+ .filter((method) => allowedRegexps.some((regexp) => regexp.test(method.fullyQualifiedName)))
730
+ .forEach((method) => allowedMethodsSet.add(method));
731
+ }
732
+ allowedMethods = Array.from(allowedMethodsSet);
733
+ }
734
+ else {
735
+ // Start with everything allowed
736
+ allowedMethods = [...exports.sdkMethods];
737
+ }
738
+ if (options.codeBlockedMethods) {
739
+ // Filter down based on blocked regexps
740
+ const blockedRegexps = options.codeBlockedMethods.map((pattern) => {
741
+ try {
742
+ return new RegExp(pattern);
743
+ }
744
+ catch (e) {
745
+ throw new Error(`Invalid regex pattern for blocked method: "${pattern}": ${e instanceof Error ? e.message : e}`);
746
+ }
747
+ });
748
+ allowedMethods = allowedMethods.filter((method) => !blockedRegexps.some((regexp) => regexp.test(method.fullyQualifiedName)));
749
+ }
750
+ return allowedMethods;
751
+ }
752
+ function blockedMethodsForCodeTool(options) {
753
+ const allowedMethods = allowedMethodsForCodeTool(options);
754
+ if (!allowedMethods) {
755
+ return undefined;
756
+ }
757
+ const allowedSet = new Set(allowedMethods.map((method) => method.fullyQualifiedName));
758
+ // Return any methods that are not explicitly allowed
759
+ return exports.sdkMethods.filter((method) => !allowedSet.has(method.fullyQualifiedName));
760
+ }
761
+ //# sourceMappingURL=methods.js.map