boltz-api 0.30.3 → 0.35.2

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 (222) hide show
  1. package/CHANGELOG.md +75 -0
  2. package/api-promise.d.mts +1 -0
  3. package/api-promise.d.mts.map +1 -1
  4. package/api-promise.d.ts +1 -0
  5. package/api-promise.d.ts.map +1 -1
  6. package/api-promise.mjs +1 -0
  7. package/api-promise.mjs.map +1 -1
  8. package/client.d.mts.map +1 -1
  9. package/client.d.ts.map +1 -1
  10. package/client.mjs.map +1 -1
  11. package/core/api-promise.d.mts.map +1 -1
  12. package/core/api-promise.d.ts.map +1 -1
  13. package/core/api-promise.mjs.map +1 -1
  14. package/core/error.mjs.map +1 -1
  15. package/core/pagination.d.mts.map +1 -1
  16. package/core/pagination.d.ts.map +1 -1
  17. package/core/pagination.mjs.map +1 -1
  18. package/core/resource.d.mts.map +1 -1
  19. package/core/resource.d.ts.map +1 -1
  20. package/core/uploads.d.mts.map +1 -1
  21. package/core/uploads.d.ts.map +1 -1
  22. package/core/uploads.mjs.map +1 -1
  23. package/error.d.mts +1 -0
  24. package/error.d.mts.map +1 -1
  25. package/error.d.ts +1 -0
  26. package/error.d.ts.map +1 -1
  27. package/error.mjs +1 -0
  28. package/error.mjs.map +1 -1
  29. package/index.d.mts.map +1 -1
  30. package/index.d.ts.map +1 -1
  31. package/index.mjs.map +1 -1
  32. package/internal/detect-platform.mjs.map +1 -1
  33. package/internal/headers.mjs.map +1 -1
  34. package/internal/parse.d.mts.map +1 -1
  35. package/internal/parse.d.ts.map +1 -1
  36. package/internal/parse.mjs.map +1 -1
  37. package/internal/qs/formats.d.mts.map +1 -1
  38. package/internal/qs/formats.d.ts.map +1 -1
  39. package/internal/qs/index.d.mts +2 -2
  40. package/internal/qs/index.d.mts.map +1 -1
  41. package/internal/qs/index.d.ts +2 -2
  42. package/internal/qs/index.d.ts.map +1 -1
  43. package/internal/qs/index.mjs.map +1 -1
  44. package/internal/qs/stringify.d.mts.map +1 -1
  45. package/internal/qs/stringify.d.ts.map +1 -1
  46. package/internal/qs/stringify.mjs.map +1 -1
  47. package/internal/qs/utils.d.mts.map +1 -1
  48. package/internal/qs/utils.d.ts.map +1 -1
  49. package/internal/qs/utils.mjs.map +1 -1
  50. package/internal/request-options.d.mts.map +1 -1
  51. package/internal/request-options.d.ts.map +1 -1
  52. package/internal/shims.d.mts +6 -0
  53. package/internal/shims.d.mts.map +1 -1
  54. package/internal/shims.d.ts +6 -0
  55. package/internal/shims.d.ts.map +1 -1
  56. package/internal/to-file.d.mts.map +1 -1
  57. package/internal/to-file.d.ts.map +1 -1
  58. package/internal/to-file.mjs.map +1 -1
  59. package/internal/types.d.mts +4 -4
  60. package/internal/types.d.mts.map +1 -1
  61. package/internal/types.d.ts +4 -4
  62. package/internal/types.d.ts.map +1 -1
  63. package/internal/uploads.d.mts.map +1 -1
  64. package/internal/uploads.d.ts.map +1 -1
  65. package/internal/uploads.mjs.map +1 -1
  66. package/internal/utils/base64.mjs.map +1 -1
  67. package/internal/utils/log.d.mts.map +1 -1
  68. package/internal/utils/log.d.ts.map +1 -1
  69. package/internal/utils/log.js +3 -2
  70. package/internal/utils/log.js.map +1 -1
  71. package/internal/utils/log.mjs +3 -2
  72. package/internal/utils/log.mjs.map +1 -1
  73. package/internal/utils/path.mjs.map +1 -1
  74. package/internal/utils/query.mjs.map +1 -1
  75. package/internal/utils/values.mjs.map +1 -1
  76. package/internal/utils.d.mts.map +1 -1
  77. package/internal/utils.d.ts.map +1 -1
  78. package/internal/utils.mjs.map +1 -1
  79. package/package.json +1 -1
  80. package/pagination.d.mts +1 -0
  81. package/pagination.d.mts.map +1 -1
  82. package/pagination.d.ts +1 -0
  83. package/pagination.d.ts.map +1 -1
  84. package/pagination.mjs +1 -0
  85. package/pagination.mjs.map +1 -1
  86. package/resource.d.mts +1 -0
  87. package/resource.d.mts.map +1 -1
  88. package/resource.d.ts +1 -0
  89. package/resource.d.ts.map +1 -1
  90. package/resource.mjs +1 -0
  91. package/resource.mjs.map +1 -1
  92. package/resources/admin/admin.d.mts +2 -2
  93. package/resources/admin/admin.d.mts.map +1 -1
  94. package/resources/admin/admin.d.ts +2 -2
  95. package/resources/admin/admin.d.ts.map +1 -1
  96. package/resources/admin/admin.js.map +1 -1
  97. package/resources/admin/admin.mjs.map +1 -1
  98. package/resources/admin/api-keys.d.mts.map +1 -1
  99. package/resources/admin/api-keys.d.ts.map +1 -1
  100. package/resources/admin/api-keys.mjs.map +1 -1
  101. package/resources/admin/index.d.mts +1 -1
  102. package/resources/admin/index.d.mts.map +1 -1
  103. package/resources/admin/index.d.ts +1 -1
  104. package/resources/admin/index.d.ts.map +1 -1
  105. package/resources/admin/index.js.map +1 -1
  106. package/resources/admin/index.mjs.map +1 -1
  107. package/resources/admin/usage.d.mts.map +1 -1
  108. package/resources/admin/usage.d.ts.map +1 -1
  109. package/resources/admin/usage.mjs.map +1 -1
  110. package/resources/admin/workspaces.d.mts +94 -1
  111. package/resources/admin/workspaces.d.mts.map +1 -1
  112. package/resources/admin/workspaces.d.ts +94 -1
  113. package/resources/admin/workspaces.d.ts.map +1 -1
  114. package/resources/admin/workspaces.js +15 -0
  115. package/resources/admin/workspaces.js.map +1 -1
  116. package/resources/admin/workspaces.mjs +15 -0
  117. package/resources/admin/workspaces.mjs.map +1 -1
  118. package/resources/admin.d.mts.map +1 -1
  119. package/resources/admin.d.ts.map +1 -1
  120. package/resources/admin.mjs.map +1 -1
  121. package/resources/auth.d.mts.map +1 -1
  122. package/resources/auth.d.ts.map +1 -1
  123. package/resources/auth.mjs.map +1 -1
  124. package/resources/cli.d.mts.map +1 -1
  125. package/resources/cli.d.ts.map +1 -1
  126. package/resources/cli.mjs.map +1 -1
  127. package/resources/index.d.mts.map +1 -1
  128. package/resources/index.d.ts.map +1 -1
  129. package/resources/index.mjs.map +1 -1
  130. package/resources/predictions/adme.d.mts +539 -0
  131. package/resources/predictions/adme.d.mts.map +1 -0
  132. package/resources/predictions/adme.d.ts +539 -0
  133. package/resources/predictions/adme.d.ts.map +1 -0
  134. package/resources/predictions/adme.js +72 -0
  135. package/resources/predictions/adme.js.map +1 -0
  136. package/resources/predictions/adme.mjs +68 -0
  137. package/resources/predictions/adme.mjs.map +1 -0
  138. package/resources/predictions/index.d.mts +1 -0
  139. package/resources/predictions/index.d.mts.map +1 -1
  140. package/resources/predictions/index.d.ts +1 -0
  141. package/resources/predictions/index.d.ts.map +1 -1
  142. package/resources/predictions/index.js +3 -1
  143. package/resources/predictions/index.js.map +1 -1
  144. package/resources/predictions/index.mjs +1 -0
  145. package/resources/predictions/index.mjs.map +1 -1
  146. package/resources/predictions/predictions.d.mts +4 -0
  147. package/resources/predictions/predictions.d.mts.map +1 -1
  148. package/resources/predictions/predictions.d.ts +4 -0
  149. package/resources/predictions/predictions.d.ts.map +1 -1
  150. package/resources/predictions/predictions.js +4 -0
  151. package/resources/predictions/predictions.js.map +1 -1
  152. package/resources/predictions/predictions.mjs +4 -0
  153. package/resources/predictions/predictions.mjs.map +1 -1
  154. package/resources/predictions/structure-and-binding.d.mts.map +1 -1
  155. package/resources/predictions/structure-and-binding.d.ts.map +1 -1
  156. package/resources/predictions/structure-and-binding.mjs.map +1 -1
  157. package/resources/predictions.d.mts.map +1 -1
  158. package/resources/predictions.d.ts.map +1 -1
  159. package/resources/predictions.mjs.map +1 -1
  160. package/resources/protein/design.d.mts +85 -15
  161. package/resources/protein/design.d.mts.map +1 -1
  162. package/resources/protein/design.d.ts +85 -15
  163. package/resources/protein/design.d.ts.map +1 -1
  164. package/resources/protein/design.mjs.map +1 -1
  165. package/resources/protein/index.d.mts.map +1 -1
  166. package/resources/protein/index.d.ts.map +1 -1
  167. package/resources/protein/index.mjs.map +1 -1
  168. package/resources/protein/library-screen.d.mts +85 -15
  169. package/resources/protein/library-screen.d.mts.map +1 -1
  170. package/resources/protein/library-screen.d.ts +85 -15
  171. package/resources/protein/library-screen.d.ts.map +1 -1
  172. package/resources/protein/library-screen.mjs.map +1 -1
  173. package/resources/protein/protein.d.mts.map +1 -1
  174. package/resources/protein/protein.d.ts.map +1 -1
  175. package/resources/protein/protein.mjs.map +1 -1
  176. package/resources/protein.d.mts.map +1 -1
  177. package/resources/protein.d.ts.map +1 -1
  178. package/resources/protein.mjs.map +1 -1
  179. package/resources/small-molecule/design.d.mts +21 -0
  180. package/resources/small-molecule/design.d.mts.map +1 -1
  181. package/resources/small-molecule/design.d.ts +21 -0
  182. package/resources/small-molecule/design.d.ts.map +1 -1
  183. package/resources/small-molecule/design.mjs.map +1 -1
  184. package/resources/small-molecule/index.d.mts.map +1 -1
  185. package/resources/small-molecule/index.d.ts.map +1 -1
  186. package/resources/small-molecule/index.mjs.map +1 -1
  187. package/resources/small-molecule/library-screen.d.mts +21 -0
  188. package/resources/small-molecule/library-screen.d.mts.map +1 -1
  189. package/resources/small-molecule/library-screen.d.ts +21 -0
  190. package/resources/small-molecule/library-screen.d.ts.map +1 -1
  191. package/resources/small-molecule/library-screen.mjs.map +1 -1
  192. package/resources/small-molecule/small-molecule.d.mts.map +1 -1
  193. package/resources/small-molecule/small-molecule.d.ts.map +1 -1
  194. package/resources/small-molecule/small-molecule.mjs.map +1 -1
  195. package/resources/small-molecule.d.mts.map +1 -1
  196. package/resources/small-molecule.d.ts.map +1 -1
  197. package/resources/small-molecule.mjs.map +1 -1
  198. package/resources.d.mts.map +1 -1
  199. package/resources.d.ts.map +1 -1
  200. package/resources.mjs.map +1 -1
  201. package/src/internal/utils/log.ts +2 -1
  202. package/src/resources/admin/admin.ts +6 -0
  203. package/src/resources/admin/index.ts +3 -0
  204. package/src/resources/admin/workspaces.ts +131 -1
  205. package/src/resources/predictions/adme.ts +682 -0
  206. package/src/resources/predictions/index.ts +11 -0
  207. package/src/resources/predictions/predictions.ts +26 -0
  208. package/src/resources/protein/design.ts +85 -15
  209. package/src/resources/protein/library-screen.ts +85 -15
  210. package/src/resources/small-molecule/design.ts +25 -0
  211. package/src/resources/small-molecule/library-screen.ts +25 -0
  212. package/src/version.ts +1 -1
  213. package/uploads.d.mts +1 -0
  214. package/uploads.d.mts.map +1 -1
  215. package/uploads.d.ts +1 -0
  216. package/uploads.d.ts.map +1 -1
  217. package/uploads.mjs +1 -0
  218. package/uploads.mjs.map +1 -1
  219. package/version.d.mts +1 -1
  220. package/version.d.ts +1 -1
  221. package/version.js +1 -1
  222. package/version.mjs +1 -1
@@ -0,0 +1,682 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { CursorPage, type CursorPageParams, PagePromise } from '../../core/pagination';
6
+ import { RequestOptions } from '../../internal/request-options';
7
+ import { path } from '../../internal/utils/path';
8
+
9
+ /**
10
+ * Predict Tier 1 ADME summary values for a batch of small molecules specified by SMILES.
11
+ */
12
+ export class Adme extends APIResource {
13
+ /**
14
+ * Retrieve an ADME prediction by ID, including its status and results.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const adme = await client.predictions.adme.retrieve('id');
19
+ * ```
20
+ */
21
+ retrieve(
22
+ id: string,
23
+ query: AdmeRetrieveParams | null | undefined = {},
24
+ options?: RequestOptions,
25
+ ): APIPromise<AdmeRetrieveResponse> {
26
+ return this._client.get(path`/compute/v1/predictions/adme/${id}`, { query, ...options });
27
+ }
28
+
29
+ /**
30
+ * List ADME predictions, optionally filtered by workspace
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * // Automatically fetches more pages as needed.
35
+ * for await (const admeListResponse of client.predictions.adme.list()) {
36
+ * // ...
37
+ * }
38
+ * ```
39
+ */
40
+ list(
41
+ query: AdmeListParams | null | undefined = {},
42
+ options?: RequestOptions,
43
+ ): PagePromise<AdmeListResponsesCursorPage, AdmeListResponse> {
44
+ return this._client.getAPIList('/compute/v1/predictions/adme', CursorPage<AdmeListResponse>, {
45
+ query,
46
+ ...options,
47
+ });
48
+ }
49
+
50
+ /**
51
+ * Permanently delete the input, output, and result data associated with this
52
+ * prediction. The prediction record itself is retained with a `data_deleted_at`
53
+ * timestamp. This action is irreversible.
54
+ *
55
+ * @example
56
+ * ```ts
57
+ * const response = await client.predictions.adme.deleteData(
58
+ * 'id',
59
+ * );
60
+ * ```
61
+ */
62
+ deleteData(id: string, options?: RequestOptions): APIPromise<AdmeDeleteDataResponse> {
63
+ return this._client.post(path`/compute/v1/predictions/adme/${id}/delete-data`, options);
64
+ }
65
+
66
+ /**
67
+ * Submit a prediction job that returns Tier 1 ADME summary values for each
68
+ * requested molecule.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * const response = await client.predictions.adme.start({
73
+ * input: { molecules: [{ smiles: 'x' }] },
74
+ * model: 'adme-v1',
75
+ * });
76
+ * ```
77
+ */
78
+ start(body: AdmeStartParams, options?: RequestOptions): APIPromise<AdmeStartResponse> {
79
+ return this._client.post('/compute/v1/predictions/adme', { body, ...options });
80
+ }
81
+ }
82
+
83
+ export type AdmeListResponsesCursorPage = CursorPage<AdmeListResponse>;
84
+
85
+ export interface AdmeRetrieveResponse {
86
+ /**
87
+ * Unique prediction identifier
88
+ */
89
+ id: string;
90
+
91
+ completed_at: string | null;
92
+
93
+ created_at: string;
94
+
95
+ /**
96
+ * When the input/output data was deleted, or null if still available
97
+ */
98
+ data_deleted_at: string | null;
99
+
100
+ /**
101
+ * Error details when failed
102
+ */
103
+ error: AdmeRetrieveResponse.Error | null;
104
+
105
+ /**
106
+ * When this resource and its associated data will be permanently deleted. Null
107
+ * while still in progress.
108
+ */
109
+ expires_at: string | null;
110
+
111
+ /**
112
+ * Prediction input (null if data deleted)
113
+ */
114
+ input: AdmeRetrieveResponse.Input | null;
115
+
116
+ /**
117
+ * Whether this resource was created with a live API key.
118
+ */
119
+ livemode: boolean;
120
+
121
+ /**
122
+ * Model used for prediction
123
+ */
124
+ model: 'adme-v1';
125
+
126
+ /**
127
+ * Prediction output when succeeded
128
+ */
129
+ output: AdmeRetrieveResponse.Output | null;
130
+
131
+ started_at: string | null;
132
+
133
+ status: 'pending' | 'running' | 'succeeded' | 'failed';
134
+
135
+ /**
136
+ * Model version used for prediction
137
+ */
138
+ version: string;
139
+
140
+ /**
141
+ * Workspace ID
142
+ */
143
+ workspace_id: string;
144
+
145
+ /**
146
+ * Client-provided idempotency key
147
+ */
148
+ idempotency_key?: string;
149
+ }
150
+
151
+ export namespace AdmeRetrieveResponse {
152
+ /**
153
+ * Error details when failed
154
+ */
155
+ export interface Error {
156
+ /**
157
+ * Machine-readable error code
158
+ */
159
+ code: string;
160
+
161
+ /**
162
+ * Human-readable error message
163
+ */
164
+ message: string;
165
+
166
+ /**
167
+ * Additional field-level error details keyed by input path, when available.
168
+ */
169
+ details?: unknown;
170
+ }
171
+
172
+ /**
173
+ * Prediction input (null if data deleted)
174
+ */
175
+ export interface Input {
176
+ /**
177
+ * Molecules to score. Results are returned in the same order as this list.
178
+ */
179
+ molecules: Array<Input.Molecule>;
180
+ }
181
+
182
+ export namespace Input {
183
+ export interface Molecule {
184
+ /**
185
+ * SMILES string of the molecule to predict ADME properties for.
186
+ */
187
+ smiles: string;
188
+
189
+ /**
190
+ * Optional client-provided identifier. Returned as `external_id` in the matching
191
+ * output item.
192
+ */
193
+ id?: string;
194
+ }
195
+ }
196
+
197
+ /**
198
+ * Prediction output when succeeded
199
+ */
200
+ export interface Output {
201
+ /**
202
+ * Per-molecule results in the same order as the request. Successful molecules
203
+ * carry an `adme` summary. Failed molecules carry `status: "failed"` and a
204
+ * non-null `error`.
205
+ */
206
+ molecules: Array<Output.AdmeMoleculeSucceeded | Output.AdmeMoleculeFailed>;
207
+ }
208
+
209
+ export namespace Output {
210
+ export interface AdmeMoleculeSucceeded {
211
+ /**
212
+ * Internally generated molecule identifier.
213
+ */
214
+ id: string;
215
+
216
+ /**
217
+ * Tier 1 ADME summary values for this molecule.
218
+ */
219
+ adme: AdmeMoleculeSucceeded.Adme;
220
+
221
+ error: null;
222
+
223
+ /**
224
+ * Echoed SMILES from the request.
225
+ */
226
+ smiles: string;
227
+
228
+ status: 'succeeded';
229
+
230
+ /**
231
+ * Client-provided molecule identifier, if one was supplied.
232
+ */
233
+ external_id?: string;
234
+ }
235
+
236
+ export namespace AdmeMoleculeSucceeded {
237
+ /**
238
+ * Tier 1 ADME summary values for this molecule.
239
+ */
240
+ export interface Adme {
241
+ /**
242
+ * Lipophilicity score from the internal LogD prediction.
243
+ */
244
+ lipophilicity: number;
245
+
246
+ /**
247
+ * Permeability score for this molecule.
248
+ */
249
+ permeability: number;
250
+
251
+ /**
252
+ * Solubility judgement for this molecule.
253
+ */
254
+ solubility: 'high-confidence' | 'medium-confidence' | 'high-risk';
255
+ }
256
+ }
257
+
258
+ export interface AdmeMoleculeFailed {
259
+ /**
260
+ * Internally generated molecule identifier.
261
+ */
262
+ id: string;
263
+
264
+ adme: null;
265
+
266
+ error: AdmeMoleculeFailed.Error;
267
+
268
+ /**
269
+ * Echoed SMILES from the request.
270
+ */
271
+ smiles: string;
272
+
273
+ status: 'failed';
274
+
275
+ /**
276
+ * Client-provided molecule identifier, if one was supplied.
277
+ */
278
+ external_id?: string;
279
+ }
280
+
281
+ export namespace AdmeMoleculeFailed {
282
+ export interface Error {
283
+ /**
284
+ * Machine-readable error code
285
+ */
286
+ code: string;
287
+
288
+ /**
289
+ * Human-readable error message
290
+ */
291
+ message: string;
292
+
293
+ /**
294
+ * Additional field-level error details keyed by input path, when available.
295
+ */
296
+ details?: unknown;
297
+ }
298
+ }
299
+ }
300
+ }
301
+
302
+ export interface AdmeListResponse {
303
+ /**
304
+ * Unique prediction identifier
305
+ */
306
+ id: string;
307
+
308
+ completed_at: string | null;
309
+
310
+ created_at: string;
311
+
312
+ /**
313
+ * When the input/output data was deleted, or null if still available
314
+ */
315
+ data_deleted_at: string | null;
316
+
317
+ /**
318
+ * Error details when failed
319
+ */
320
+ error: AdmeListResponse.Error | null;
321
+
322
+ /**
323
+ * When this resource and its associated data will be permanently deleted. Null
324
+ * while still in progress.
325
+ */
326
+ expires_at: string | null;
327
+
328
+ /**
329
+ * Whether this resource was created with a live API key.
330
+ */
331
+ livemode: boolean;
332
+
333
+ /**
334
+ * Model used for prediction
335
+ */
336
+ model: 'adme-v1';
337
+
338
+ started_at: string | null;
339
+
340
+ status: 'pending' | 'running' | 'succeeded' | 'failed';
341
+
342
+ /**
343
+ * Model version used for prediction
344
+ */
345
+ version: string;
346
+
347
+ /**
348
+ * Workspace ID
349
+ */
350
+ workspace_id: string;
351
+
352
+ /**
353
+ * Client-provided idempotency key
354
+ */
355
+ idempotency_key?: string;
356
+ }
357
+
358
+ export namespace AdmeListResponse {
359
+ /**
360
+ * Error details when failed
361
+ */
362
+ export interface Error {
363
+ /**
364
+ * Machine-readable error code
365
+ */
366
+ code: string;
367
+
368
+ /**
369
+ * Human-readable error message
370
+ */
371
+ message: string;
372
+
373
+ /**
374
+ * Additional field-level error details keyed by input path, when available.
375
+ */
376
+ details?: unknown;
377
+ }
378
+ }
379
+
380
+ export interface AdmeDeleteDataResponse {
381
+ /**
382
+ * ID of the resource whose data was deleted
383
+ */
384
+ id: string;
385
+
386
+ data_deleted: true;
387
+
388
+ /**
389
+ * When the data was deleted
390
+ */
391
+ data_deleted_at: string;
392
+ }
393
+
394
+ export interface AdmeStartResponse {
395
+ /**
396
+ * Unique prediction identifier
397
+ */
398
+ id: string;
399
+
400
+ completed_at: string | null;
401
+
402
+ created_at: string;
403
+
404
+ /**
405
+ * When the input/output data was deleted, or null if still available
406
+ */
407
+ data_deleted_at: string | null;
408
+
409
+ /**
410
+ * Error details when failed
411
+ */
412
+ error: AdmeStartResponse.Error | null;
413
+
414
+ /**
415
+ * When this resource and its associated data will be permanently deleted. Null
416
+ * while still in progress.
417
+ */
418
+ expires_at: string | null;
419
+
420
+ /**
421
+ * Prediction input (null if data deleted)
422
+ */
423
+ input: AdmeStartResponse.Input | null;
424
+
425
+ /**
426
+ * Whether this resource was created with a live API key.
427
+ */
428
+ livemode: boolean;
429
+
430
+ /**
431
+ * Model used for prediction
432
+ */
433
+ model: 'adme-v1';
434
+
435
+ /**
436
+ * Prediction output when succeeded
437
+ */
438
+ output: AdmeStartResponse.Output | null;
439
+
440
+ started_at: string | null;
441
+
442
+ status: 'pending' | 'running' | 'succeeded' | 'failed';
443
+
444
+ /**
445
+ * Model version used for prediction
446
+ */
447
+ version: string;
448
+
449
+ /**
450
+ * Workspace ID
451
+ */
452
+ workspace_id: string;
453
+
454
+ /**
455
+ * Client-provided idempotency key
456
+ */
457
+ idempotency_key?: string;
458
+ }
459
+
460
+ export namespace AdmeStartResponse {
461
+ /**
462
+ * Error details when failed
463
+ */
464
+ export interface Error {
465
+ /**
466
+ * Machine-readable error code
467
+ */
468
+ code: string;
469
+
470
+ /**
471
+ * Human-readable error message
472
+ */
473
+ message: string;
474
+
475
+ /**
476
+ * Additional field-level error details keyed by input path, when available.
477
+ */
478
+ details?: unknown;
479
+ }
480
+
481
+ /**
482
+ * Prediction input (null if data deleted)
483
+ */
484
+ export interface Input {
485
+ /**
486
+ * Molecules to score. Results are returned in the same order as this list.
487
+ */
488
+ molecules: Array<Input.Molecule>;
489
+ }
490
+
491
+ export namespace Input {
492
+ export interface Molecule {
493
+ /**
494
+ * SMILES string of the molecule to predict ADME properties for.
495
+ */
496
+ smiles: string;
497
+
498
+ /**
499
+ * Optional client-provided identifier. Returned as `external_id` in the matching
500
+ * output item.
501
+ */
502
+ id?: string;
503
+ }
504
+ }
505
+
506
+ /**
507
+ * Prediction output when succeeded
508
+ */
509
+ export interface Output {
510
+ /**
511
+ * Per-molecule results in the same order as the request. Successful molecules
512
+ * carry an `adme` summary. Failed molecules carry `status: "failed"` and a
513
+ * non-null `error`.
514
+ */
515
+ molecules: Array<Output.AdmeMoleculeSucceeded | Output.AdmeMoleculeFailed>;
516
+ }
517
+
518
+ export namespace Output {
519
+ export interface AdmeMoleculeSucceeded {
520
+ /**
521
+ * Internally generated molecule identifier.
522
+ */
523
+ id: string;
524
+
525
+ /**
526
+ * Tier 1 ADME summary values for this molecule.
527
+ */
528
+ adme: AdmeMoleculeSucceeded.Adme;
529
+
530
+ error: null;
531
+
532
+ /**
533
+ * Echoed SMILES from the request.
534
+ */
535
+ smiles: string;
536
+
537
+ status: 'succeeded';
538
+
539
+ /**
540
+ * Client-provided molecule identifier, if one was supplied.
541
+ */
542
+ external_id?: string;
543
+ }
544
+
545
+ export namespace AdmeMoleculeSucceeded {
546
+ /**
547
+ * Tier 1 ADME summary values for this molecule.
548
+ */
549
+ export interface Adme {
550
+ /**
551
+ * Lipophilicity score from the internal LogD prediction.
552
+ */
553
+ lipophilicity: number;
554
+
555
+ /**
556
+ * Permeability score for this molecule.
557
+ */
558
+ permeability: number;
559
+
560
+ /**
561
+ * Solubility judgement for this molecule.
562
+ */
563
+ solubility: 'high-confidence' | 'medium-confidence' | 'high-risk';
564
+ }
565
+ }
566
+
567
+ export interface AdmeMoleculeFailed {
568
+ /**
569
+ * Internally generated molecule identifier.
570
+ */
571
+ id: string;
572
+
573
+ adme: null;
574
+
575
+ error: AdmeMoleculeFailed.Error;
576
+
577
+ /**
578
+ * Echoed SMILES from the request.
579
+ */
580
+ smiles: string;
581
+
582
+ status: 'failed';
583
+
584
+ /**
585
+ * Client-provided molecule identifier, if one was supplied.
586
+ */
587
+ external_id?: string;
588
+ }
589
+
590
+ export namespace AdmeMoleculeFailed {
591
+ export interface Error {
592
+ /**
593
+ * Machine-readable error code
594
+ */
595
+ code: string;
596
+
597
+ /**
598
+ * Human-readable error message
599
+ */
600
+ message: string;
601
+
602
+ /**
603
+ * Additional field-level error details keyed by input path, when available.
604
+ */
605
+ details?: unknown;
606
+ }
607
+ }
608
+ }
609
+ }
610
+
611
+ export interface AdmeRetrieveParams {
612
+ /**
613
+ * Workspace ID. Only used with admin API keys. Ignored (or validated) for
614
+ * workspace-scoped keys.
615
+ */
616
+ workspace_id?: string;
617
+ }
618
+
619
+ export interface AdmeListParams extends CursorPageParams {
620
+ /**
621
+ * Filter by workspace ID. Only used with admin API keys. If not provided, defaults
622
+ * to the workspace associated with the API key, or the default workspace for admin
623
+ * keys.
624
+ */
625
+ workspace_id?: string;
626
+ }
627
+
628
+ export interface AdmeStartParams {
629
+ input: AdmeStartParams.Input;
630
+
631
+ /**
632
+ * Model to use for prediction
633
+ */
634
+ model: 'adme-v1';
635
+
636
+ /**
637
+ * Client-provided key to prevent duplicate submissions on retries
638
+ */
639
+ idempotency_key?: string;
640
+
641
+ /**
642
+ * Target workspace ID (admin keys only; ignored for workspace keys)
643
+ */
644
+ workspace_id?: string;
645
+ }
646
+
647
+ export namespace AdmeStartParams {
648
+ export interface Input {
649
+ /**
650
+ * Molecules to score. Results are returned in the same order as this list.
651
+ */
652
+ molecules: Array<Input.Molecule>;
653
+ }
654
+
655
+ export namespace Input {
656
+ export interface Molecule {
657
+ /**
658
+ * SMILES string of the molecule to predict ADME properties for.
659
+ */
660
+ smiles: string;
661
+
662
+ /**
663
+ * Optional client-provided identifier. Returned as `external_id` in the matching
664
+ * output item.
665
+ */
666
+ id?: string;
667
+ }
668
+ }
669
+ }
670
+
671
+ export declare namespace Adme {
672
+ export {
673
+ type AdmeRetrieveResponse as AdmeRetrieveResponse,
674
+ type AdmeListResponse as AdmeListResponse,
675
+ type AdmeDeleteDataResponse as AdmeDeleteDataResponse,
676
+ type AdmeStartResponse as AdmeStartResponse,
677
+ type AdmeListResponsesCursorPage as AdmeListResponsesCursorPage,
678
+ type AdmeRetrieveParams as AdmeRetrieveParams,
679
+ type AdmeListParams as AdmeListParams,
680
+ type AdmeStartParams as AdmeStartParams,
681
+ };
682
+ }
@@ -1,5 +1,16 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
+ export {
4
+ Adme,
5
+ type AdmeRetrieveResponse,
6
+ type AdmeListResponse,
7
+ type AdmeDeleteDataResponse,
8
+ type AdmeStartResponse,
9
+ type AdmeRetrieveParams,
10
+ type AdmeListParams,
11
+ type AdmeStartParams,
12
+ type AdmeListResponsesCursorPage,
13
+ } from './adme';
3
14
  export { Predictions } from './predictions';
4
15
  export {
5
16
  StructureAndBinding,