boltz-api 0.30.4 → 0.35.3
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 +75 -0
- package/api-promise.d.mts +1 -0
- package/api-promise.d.mts.map +1 -1
- package/api-promise.d.ts +1 -0
- package/api-promise.d.ts.map +1 -1
- package/api-promise.mjs +1 -0
- package/api-promise.mjs.map +1 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts.map +1 -1
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.mjs.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.mjs.map +1 -1
- package/core/resource.d.mts.map +1 -1
- package/core/resource.d.ts.map +1 -1
- package/core/uploads.d.mts.map +1 -1
- package/core/uploads.d.ts.map +1 -1
- package/core/uploads.mjs.map +1 -1
- package/error.d.mts +1 -0
- package/error.d.mts.map +1 -1
- package/error.d.ts +1 -0
- package/error.d.ts.map +1 -1
- package/error.mjs +1 -0
- package/error.mjs.map +1 -1
- package/index.d.mts.map +1 -1
- package/index.d.ts.map +1 -1
- package/index.mjs.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/formats.d.mts.map +1 -1
- package/internal/qs/formats.d.ts.map +1 -1
- package/internal/qs/index.d.mts +2 -2
- package/internal/qs/index.d.mts.map +1 -1
- package/internal/qs/index.d.ts +2 -2
- package/internal/qs/index.d.ts.map +1 -1
- package/internal/qs/index.mjs.map +1 -1
- package/internal/qs/stringify.d.mts.map +1 -1
- package/internal/qs/stringify.d.ts.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.d.mts.map +1 -1
- package/internal/qs/utils.d.ts.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.d.mts +6 -0
- package/internal/shims.d.mts.map +1 -1
- package/internal/shims.d.ts +6 -0
- package/internal/shims.d.ts.map +1 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.mjs.map +1 -1
- package/internal/types.d.mts +4 -4
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +4 -4
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/query.mjs.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.d.mts.map +1 -1
- package/internal/utils.d.ts.map +1 -1
- package/internal/utils.mjs.map +1 -1
- package/package.json +1 -1
- package/pagination.d.mts +1 -0
- package/pagination.d.mts.map +1 -1
- package/pagination.d.ts +1 -0
- package/pagination.d.ts.map +1 -1
- package/pagination.mjs +1 -0
- package/pagination.mjs.map +1 -1
- package/resource.d.mts +1 -0
- package/resource.d.mts.map +1 -1
- package/resource.d.ts +1 -0
- package/resource.d.ts.map +1 -1
- package/resource.mjs +1 -0
- package/resource.mjs.map +1 -1
- package/resources/admin/admin.d.mts +2 -2
- package/resources/admin/admin.d.mts.map +1 -1
- package/resources/admin/admin.d.ts +2 -2
- package/resources/admin/admin.d.ts.map +1 -1
- package/resources/admin/admin.js.map +1 -1
- package/resources/admin/admin.mjs.map +1 -1
- package/resources/admin/api-keys.d.mts.map +1 -1
- package/resources/admin/api-keys.d.ts.map +1 -1
- package/resources/admin/api-keys.mjs.map +1 -1
- package/resources/admin/index.d.mts +1 -1
- package/resources/admin/index.d.mts.map +1 -1
- package/resources/admin/index.d.ts +1 -1
- package/resources/admin/index.d.ts.map +1 -1
- package/resources/admin/index.js.map +1 -1
- package/resources/admin/index.mjs.map +1 -1
- package/resources/admin/usage.d.mts.map +1 -1
- package/resources/admin/usage.d.ts.map +1 -1
- package/resources/admin/usage.mjs.map +1 -1
- package/resources/admin/workspaces.d.mts +94 -1
- package/resources/admin/workspaces.d.mts.map +1 -1
- package/resources/admin/workspaces.d.ts +94 -1
- package/resources/admin/workspaces.d.ts.map +1 -1
- package/resources/admin/workspaces.js +15 -0
- package/resources/admin/workspaces.js.map +1 -1
- package/resources/admin/workspaces.mjs +15 -0
- package/resources/admin/workspaces.mjs.map +1 -1
- package/resources/admin.d.mts.map +1 -1
- package/resources/admin.d.ts.map +1 -1
- package/resources/admin.mjs.map +1 -1
- package/resources/auth.d.mts.map +1 -1
- package/resources/auth.d.ts.map +1 -1
- package/resources/auth.mjs.map +1 -1
- package/resources/cli.d.mts.map +1 -1
- package/resources/cli.d.ts.map +1 -1
- package/resources/cli.mjs.map +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/predictions/adme.d.mts +539 -0
- package/resources/predictions/adme.d.mts.map +1 -0
- package/resources/predictions/adme.d.ts +539 -0
- package/resources/predictions/adme.d.ts.map +1 -0
- package/resources/predictions/adme.js +72 -0
- package/resources/predictions/adme.js.map +1 -0
- package/resources/predictions/adme.mjs +68 -0
- package/resources/predictions/adme.mjs.map +1 -0
- package/resources/predictions/index.d.mts +1 -0
- package/resources/predictions/index.d.mts.map +1 -1
- package/resources/predictions/index.d.ts +1 -0
- package/resources/predictions/index.d.ts.map +1 -1
- package/resources/predictions/index.js +3 -1
- package/resources/predictions/index.js.map +1 -1
- package/resources/predictions/index.mjs +1 -0
- package/resources/predictions/index.mjs.map +1 -1
- package/resources/predictions/predictions.d.mts +4 -0
- package/resources/predictions/predictions.d.mts.map +1 -1
- package/resources/predictions/predictions.d.ts +4 -0
- package/resources/predictions/predictions.d.ts.map +1 -1
- package/resources/predictions/predictions.js +4 -0
- package/resources/predictions/predictions.js.map +1 -1
- package/resources/predictions/predictions.mjs +4 -0
- package/resources/predictions/predictions.mjs.map +1 -1
- package/resources/predictions/structure-and-binding.d.mts +24 -156
- package/resources/predictions/structure-and-binding.d.mts.map +1 -1
- package/resources/predictions/structure-and-binding.d.ts +24 -156
- package/resources/predictions/structure-and-binding.d.ts.map +1 -1
- package/resources/predictions/structure-and-binding.mjs.map +1 -1
- package/resources/predictions.d.mts.map +1 -1
- package/resources/predictions.d.ts.map +1 -1
- package/resources/predictions.mjs.map +1 -1
- package/resources/protein/design.d.mts +161 -509
- package/resources/protein/design.d.mts.map +1 -1
- package/resources/protein/design.d.ts +161 -509
- package/resources/protein/design.d.ts.map +1 -1
- package/resources/protein/design.mjs.map +1 -1
- package/resources/protein/index.d.mts.map +1 -1
- package/resources/protein/index.d.ts.map +1 -1
- package/resources/protein/index.mjs.map +1 -1
- package/resources/protein/library-screen.d.mts +133 -327
- package/resources/protein/library-screen.d.mts.map +1 -1
- package/resources/protein/library-screen.d.ts +133 -327
- package/resources/protein/library-screen.d.ts.map +1 -1
- package/resources/protein/library-screen.mjs.map +1 -1
- package/resources/protein/protein.d.mts.map +1 -1
- package/resources/protein/protein.d.ts.map +1 -1
- package/resources/protein/protein.mjs.map +1 -1
- package/resources/protein.d.mts.map +1 -1
- package/resources/protein.d.ts.map +1 -1
- package/resources/protein.mjs.map +1 -1
- package/resources/small-molecule/design.d.mts +31 -65
- package/resources/small-molecule/design.d.mts.map +1 -1
- package/resources/small-molecule/design.d.ts +31 -65
- package/resources/small-molecule/design.d.ts.map +1 -1
- package/resources/small-molecule/design.mjs.map +1 -1
- package/resources/small-molecule/index.d.mts.map +1 -1
- package/resources/small-molecule/index.d.ts.map +1 -1
- package/resources/small-molecule/index.mjs.map +1 -1
- package/resources/small-molecule/library-screen.d.mts +31 -65
- package/resources/small-molecule/library-screen.d.mts.map +1 -1
- package/resources/small-molecule/library-screen.d.ts +31 -65
- package/resources/small-molecule/library-screen.d.ts.map +1 -1
- package/resources/small-molecule/library-screen.mjs.map +1 -1
- package/resources/small-molecule/small-molecule.d.mts.map +1 -1
- package/resources/small-molecule/small-molecule.d.ts.map +1 -1
- package/resources/small-molecule/small-molecule.mjs.map +1 -1
- package/resources/small-molecule.d.mts.map +1 -1
- package/resources/small-molecule.d.ts.map +1 -1
- package/resources/small-molecule.mjs.map +1 -1
- package/resources.d.mts.map +1 -1
- package/resources.d.ts.map +1 -1
- package/resources.mjs.map +1 -1
- package/src/resources/admin/admin.ts +6 -0
- package/src/resources/admin/index.ts +3 -0
- package/src/resources/admin/workspaces.ts +131 -1
- package/src/resources/predictions/adme.ts +682 -0
- package/src/resources/predictions/index.ts +11 -0
- package/src/resources/predictions/predictions.ts +26 -0
- package/src/resources/predictions/structure-and-binding.ts +24 -204
- package/src/resources/protein/design.ts +161 -671
- package/src/resources/protein/library-screen.ts +133 -417
- package/src/resources/small-molecule/design.ts +35 -80
- package/src/resources/small-molecule/library-screen.ts +35 -80
- package/src/version.ts +1 -1
- package/uploads.d.mts +1 -0
- package/uploads.d.mts.map +1 -1
- package/uploads.d.ts +1 -0
- package/uploads.d.ts.map +1 -1
- package/uploads.mjs +1 -0
- package/uploads.mjs.map +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,539 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
/**
|
|
6
|
+
* Predict Tier 1 ADME summary values for a batch of small molecules specified by SMILES.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Adme extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve an ADME prediction by ID, including its status and results.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const adme = await client.predictions.adme.retrieve('id');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
retrieve(id: string, query?: AdmeRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<AdmeRetrieveResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* List ADME predictions, optionally filtered by workspace
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* // Automatically fetches more pages as needed.
|
|
24
|
+
* for await (const admeListResponse of client.predictions.adme.list()) {
|
|
25
|
+
* // ...
|
|
26
|
+
* }
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
list(query?: AdmeListParams | null | undefined, options?: RequestOptions): PagePromise<AdmeListResponsesCursorPage, AdmeListResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Permanently delete the input, output, and result data associated with this
|
|
32
|
+
* prediction. The prediction record itself is retained with a `data_deleted_at`
|
|
33
|
+
* timestamp. This action is irreversible.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```ts
|
|
37
|
+
* const response = await client.predictions.adme.deleteData(
|
|
38
|
+
* 'id',
|
|
39
|
+
* );
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
deleteData(id: string, options?: RequestOptions): APIPromise<AdmeDeleteDataResponse>;
|
|
43
|
+
/**
|
|
44
|
+
* Submit a prediction job that returns Tier 1 ADME summary values for each
|
|
45
|
+
* requested molecule.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* ```ts
|
|
49
|
+
* const response = await client.predictions.adme.start({
|
|
50
|
+
* input: { molecules: [{ smiles: 'x' }] },
|
|
51
|
+
* model: 'adme-v1',
|
|
52
|
+
* });
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
start(body: AdmeStartParams, options?: RequestOptions): APIPromise<AdmeStartResponse>;
|
|
56
|
+
}
|
|
57
|
+
export type AdmeListResponsesCursorPage = CursorPage<AdmeListResponse>;
|
|
58
|
+
export interface AdmeRetrieveResponse {
|
|
59
|
+
/**
|
|
60
|
+
* Unique prediction identifier
|
|
61
|
+
*/
|
|
62
|
+
id: string;
|
|
63
|
+
completed_at: string | null;
|
|
64
|
+
created_at: string;
|
|
65
|
+
/**
|
|
66
|
+
* When the input/output data was deleted, or null if still available
|
|
67
|
+
*/
|
|
68
|
+
data_deleted_at: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* Error details when failed
|
|
71
|
+
*/
|
|
72
|
+
error: AdmeRetrieveResponse.Error | null;
|
|
73
|
+
/**
|
|
74
|
+
* When this resource and its associated data will be permanently deleted. Null
|
|
75
|
+
* while still in progress.
|
|
76
|
+
*/
|
|
77
|
+
expires_at: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Prediction input (null if data deleted)
|
|
80
|
+
*/
|
|
81
|
+
input: AdmeRetrieveResponse.Input | null;
|
|
82
|
+
/**
|
|
83
|
+
* Whether this resource was created with a live API key.
|
|
84
|
+
*/
|
|
85
|
+
livemode: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Model used for prediction
|
|
88
|
+
*/
|
|
89
|
+
model: 'adme-v1';
|
|
90
|
+
/**
|
|
91
|
+
* Prediction output when succeeded
|
|
92
|
+
*/
|
|
93
|
+
output: AdmeRetrieveResponse.Output | null;
|
|
94
|
+
started_at: string | null;
|
|
95
|
+
status: 'pending' | 'running' | 'succeeded' | 'failed';
|
|
96
|
+
/**
|
|
97
|
+
* Model version used for prediction
|
|
98
|
+
*/
|
|
99
|
+
version: string;
|
|
100
|
+
/**
|
|
101
|
+
* Workspace ID
|
|
102
|
+
*/
|
|
103
|
+
workspace_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Client-provided idempotency key
|
|
106
|
+
*/
|
|
107
|
+
idempotency_key?: string;
|
|
108
|
+
}
|
|
109
|
+
export declare namespace AdmeRetrieveResponse {
|
|
110
|
+
/**
|
|
111
|
+
* Error details when failed
|
|
112
|
+
*/
|
|
113
|
+
interface Error {
|
|
114
|
+
/**
|
|
115
|
+
* Machine-readable error code
|
|
116
|
+
*/
|
|
117
|
+
code: string;
|
|
118
|
+
/**
|
|
119
|
+
* Human-readable error message
|
|
120
|
+
*/
|
|
121
|
+
message: string;
|
|
122
|
+
/**
|
|
123
|
+
* Additional field-level error details keyed by input path, when available.
|
|
124
|
+
*/
|
|
125
|
+
details?: unknown;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Prediction input (null if data deleted)
|
|
129
|
+
*/
|
|
130
|
+
interface Input {
|
|
131
|
+
/**
|
|
132
|
+
* Molecules to score. Results are returned in the same order as this list.
|
|
133
|
+
*/
|
|
134
|
+
molecules: Array<Input.Molecule>;
|
|
135
|
+
}
|
|
136
|
+
namespace Input {
|
|
137
|
+
interface Molecule {
|
|
138
|
+
/**
|
|
139
|
+
* SMILES string of the molecule to predict ADME properties for.
|
|
140
|
+
*/
|
|
141
|
+
smiles: string;
|
|
142
|
+
/**
|
|
143
|
+
* Optional client-provided identifier. Returned as `external_id` in the matching
|
|
144
|
+
* output item.
|
|
145
|
+
*/
|
|
146
|
+
id?: string;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* Prediction output when succeeded
|
|
151
|
+
*/
|
|
152
|
+
interface Output {
|
|
153
|
+
/**
|
|
154
|
+
* Per-molecule results in the same order as the request. Successful molecules
|
|
155
|
+
* carry an `adme` summary. Failed molecules carry `status: "failed"` and a
|
|
156
|
+
* non-null `error`.
|
|
157
|
+
*/
|
|
158
|
+
molecules: Array<Output.AdmeMoleculeSucceeded | Output.AdmeMoleculeFailed>;
|
|
159
|
+
}
|
|
160
|
+
namespace Output {
|
|
161
|
+
interface AdmeMoleculeSucceeded {
|
|
162
|
+
/**
|
|
163
|
+
* Internally generated molecule identifier.
|
|
164
|
+
*/
|
|
165
|
+
id: string;
|
|
166
|
+
/**
|
|
167
|
+
* Tier 1 ADME summary values for this molecule.
|
|
168
|
+
*/
|
|
169
|
+
adme: AdmeMoleculeSucceeded.Adme;
|
|
170
|
+
error: null;
|
|
171
|
+
/**
|
|
172
|
+
* Echoed SMILES from the request.
|
|
173
|
+
*/
|
|
174
|
+
smiles: string;
|
|
175
|
+
status: 'succeeded';
|
|
176
|
+
/**
|
|
177
|
+
* Client-provided molecule identifier, if one was supplied.
|
|
178
|
+
*/
|
|
179
|
+
external_id?: string;
|
|
180
|
+
}
|
|
181
|
+
namespace AdmeMoleculeSucceeded {
|
|
182
|
+
/**
|
|
183
|
+
* Tier 1 ADME summary values for this molecule.
|
|
184
|
+
*/
|
|
185
|
+
interface Adme {
|
|
186
|
+
/**
|
|
187
|
+
* Lipophilicity score from the internal LogD prediction.
|
|
188
|
+
*/
|
|
189
|
+
lipophilicity: number;
|
|
190
|
+
/**
|
|
191
|
+
* Permeability score for this molecule.
|
|
192
|
+
*/
|
|
193
|
+
permeability: number;
|
|
194
|
+
/**
|
|
195
|
+
* Solubility judgement for this molecule.
|
|
196
|
+
*/
|
|
197
|
+
solubility: 'high-confidence' | 'medium-confidence' | 'high-risk';
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
interface AdmeMoleculeFailed {
|
|
201
|
+
/**
|
|
202
|
+
* Internally generated molecule identifier.
|
|
203
|
+
*/
|
|
204
|
+
id: string;
|
|
205
|
+
adme: null;
|
|
206
|
+
error: AdmeMoleculeFailed.Error;
|
|
207
|
+
/**
|
|
208
|
+
* Echoed SMILES from the request.
|
|
209
|
+
*/
|
|
210
|
+
smiles: string;
|
|
211
|
+
status: 'failed';
|
|
212
|
+
/**
|
|
213
|
+
* Client-provided molecule identifier, if one was supplied.
|
|
214
|
+
*/
|
|
215
|
+
external_id?: string;
|
|
216
|
+
}
|
|
217
|
+
namespace AdmeMoleculeFailed {
|
|
218
|
+
interface Error {
|
|
219
|
+
/**
|
|
220
|
+
* Machine-readable error code
|
|
221
|
+
*/
|
|
222
|
+
code: string;
|
|
223
|
+
/**
|
|
224
|
+
* Human-readable error message
|
|
225
|
+
*/
|
|
226
|
+
message: string;
|
|
227
|
+
/**
|
|
228
|
+
* Additional field-level error details keyed by input path, when available.
|
|
229
|
+
*/
|
|
230
|
+
details?: unknown;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
export interface AdmeListResponse {
|
|
236
|
+
/**
|
|
237
|
+
* Unique prediction identifier
|
|
238
|
+
*/
|
|
239
|
+
id: string;
|
|
240
|
+
completed_at: string | null;
|
|
241
|
+
created_at: string;
|
|
242
|
+
/**
|
|
243
|
+
* When the input/output data was deleted, or null if still available
|
|
244
|
+
*/
|
|
245
|
+
data_deleted_at: string | null;
|
|
246
|
+
/**
|
|
247
|
+
* Error details when failed
|
|
248
|
+
*/
|
|
249
|
+
error: AdmeListResponse.Error | null;
|
|
250
|
+
/**
|
|
251
|
+
* When this resource and its associated data will be permanently deleted. Null
|
|
252
|
+
* while still in progress.
|
|
253
|
+
*/
|
|
254
|
+
expires_at: string | null;
|
|
255
|
+
/**
|
|
256
|
+
* Whether this resource was created with a live API key.
|
|
257
|
+
*/
|
|
258
|
+
livemode: boolean;
|
|
259
|
+
/**
|
|
260
|
+
* Model used for prediction
|
|
261
|
+
*/
|
|
262
|
+
model: 'adme-v1';
|
|
263
|
+
started_at: string | null;
|
|
264
|
+
status: 'pending' | 'running' | 'succeeded' | 'failed';
|
|
265
|
+
/**
|
|
266
|
+
* Model version used for prediction
|
|
267
|
+
*/
|
|
268
|
+
version: string;
|
|
269
|
+
/**
|
|
270
|
+
* Workspace ID
|
|
271
|
+
*/
|
|
272
|
+
workspace_id: string;
|
|
273
|
+
/**
|
|
274
|
+
* Client-provided idempotency key
|
|
275
|
+
*/
|
|
276
|
+
idempotency_key?: string;
|
|
277
|
+
}
|
|
278
|
+
export declare namespace AdmeListResponse {
|
|
279
|
+
/**
|
|
280
|
+
* Error details when failed
|
|
281
|
+
*/
|
|
282
|
+
interface Error {
|
|
283
|
+
/**
|
|
284
|
+
* Machine-readable error code
|
|
285
|
+
*/
|
|
286
|
+
code: string;
|
|
287
|
+
/**
|
|
288
|
+
* Human-readable error message
|
|
289
|
+
*/
|
|
290
|
+
message: string;
|
|
291
|
+
/**
|
|
292
|
+
* Additional field-level error details keyed by input path, when available.
|
|
293
|
+
*/
|
|
294
|
+
details?: unknown;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
export interface AdmeDeleteDataResponse {
|
|
298
|
+
/**
|
|
299
|
+
* ID of the resource whose data was deleted
|
|
300
|
+
*/
|
|
301
|
+
id: string;
|
|
302
|
+
data_deleted: true;
|
|
303
|
+
/**
|
|
304
|
+
* When the data was deleted
|
|
305
|
+
*/
|
|
306
|
+
data_deleted_at: string;
|
|
307
|
+
}
|
|
308
|
+
export interface AdmeStartResponse {
|
|
309
|
+
/**
|
|
310
|
+
* Unique prediction identifier
|
|
311
|
+
*/
|
|
312
|
+
id: string;
|
|
313
|
+
completed_at: string | null;
|
|
314
|
+
created_at: string;
|
|
315
|
+
/**
|
|
316
|
+
* When the input/output data was deleted, or null if still available
|
|
317
|
+
*/
|
|
318
|
+
data_deleted_at: string | null;
|
|
319
|
+
/**
|
|
320
|
+
* Error details when failed
|
|
321
|
+
*/
|
|
322
|
+
error: AdmeStartResponse.Error | null;
|
|
323
|
+
/**
|
|
324
|
+
* When this resource and its associated data will be permanently deleted. Null
|
|
325
|
+
* while still in progress.
|
|
326
|
+
*/
|
|
327
|
+
expires_at: string | null;
|
|
328
|
+
/**
|
|
329
|
+
* Prediction input (null if data deleted)
|
|
330
|
+
*/
|
|
331
|
+
input: AdmeStartResponse.Input | null;
|
|
332
|
+
/**
|
|
333
|
+
* Whether this resource was created with a live API key.
|
|
334
|
+
*/
|
|
335
|
+
livemode: boolean;
|
|
336
|
+
/**
|
|
337
|
+
* Model used for prediction
|
|
338
|
+
*/
|
|
339
|
+
model: 'adme-v1';
|
|
340
|
+
/**
|
|
341
|
+
* Prediction output when succeeded
|
|
342
|
+
*/
|
|
343
|
+
output: AdmeStartResponse.Output | null;
|
|
344
|
+
started_at: string | null;
|
|
345
|
+
status: 'pending' | 'running' | 'succeeded' | 'failed';
|
|
346
|
+
/**
|
|
347
|
+
* Model version used for prediction
|
|
348
|
+
*/
|
|
349
|
+
version: string;
|
|
350
|
+
/**
|
|
351
|
+
* Workspace ID
|
|
352
|
+
*/
|
|
353
|
+
workspace_id: string;
|
|
354
|
+
/**
|
|
355
|
+
* Client-provided idempotency key
|
|
356
|
+
*/
|
|
357
|
+
idempotency_key?: string;
|
|
358
|
+
}
|
|
359
|
+
export declare namespace AdmeStartResponse {
|
|
360
|
+
/**
|
|
361
|
+
* Error details when failed
|
|
362
|
+
*/
|
|
363
|
+
interface Error {
|
|
364
|
+
/**
|
|
365
|
+
* Machine-readable error code
|
|
366
|
+
*/
|
|
367
|
+
code: string;
|
|
368
|
+
/**
|
|
369
|
+
* Human-readable error message
|
|
370
|
+
*/
|
|
371
|
+
message: string;
|
|
372
|
+
/**
|
|
373
|
+
* Additional field-level error details keyed by input path, when available.
|
|
374
|
+
*/
|
|
375
|
+
details?: unknown;
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Prediction input (null if data deleted)
|
|
379
|
+
*/
|
|
380
|
+
interface Input {
|
|
381
|
+
/**
|
|
382
|
+
* Molecules to score. Results are returned in the same order as this list.
|
|
383
|
+
*/
|
|
384
|
+
molecules: Array<Input.Molecule>;
|
|
385
|
+
}
|
|
386
|
+
namespace Input {
|
|
387
|
+
interface Molecule {
|
|
388
|
+
/**
|
|
389
|
+
* SMILES string of the molecule to predict ADME properties for.
|
|
390
|
+
*/
|
|
391
|
+
smiles: string;
|
|
392
|
+
/**
|
|
393
|
+
* Optional client-provided identifier. Returned as `external_id` in the matching
|
|
394
|
+
* output item.
|
|
395
|
+
*/
|
|
396
|
+
id?: string;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Prediction output when succeeded
|
|
401
|
+
*/
|
|
402
|
+
interface Output {
|
|
403
|
+
/**
|
|
404
|
+
* Per-molecule results in the same order as the request. Successful molecules
|
|
405
|
+
* carry an `adme` summary. Failed molecules carry `status: "failed"` and a
|
|
406
|
+
* non-null `error`.
|
|
407
|
+
*/
|
|
408
|
+
molecules: Array<Output.AdmeMoleculeSucceeded | Output.AdmeMoleculeFailed>;
|
|
409
|
+
}
|
|
410
|
+
namespace Output {
|
|
411
|
+
interface AdmeMoleculeSucceeded {
|
|
412
|
+
/**
|
|
413
|
+
* Internally generated molecule identifier.
|
|
414
|
+
*/
|
|
415
|
+
id: string;
|
|
416
|
+
/**
|
|
417
|
+
* Tier 1 ADME summary values for this molecule.
|
|
418
|
+
*/
|
|
419
|
+
adme: AdmeMoleculeSucceeded.Adme;
|
|
420
|
+
error: null;
|
|
421
|
+
/**
|
|
422
|
+
* Echoed SMILES from the request.
|
|
423
|
+
*/
|
|
424
|
+
smiles: string;
|
|
425
|
+
status: 'succeeded';
|
|
426
|
+
/**
|
|
427
|
+
* Client-provided molecule identifier, if one was supplied.
|
|
428
|
+
*/
|
|
429
|
+
external_id?: string;
|
|
430
|
+
}
|
|
431
|
+
namespace AdmeMoleculeSucceeded {
|
|
432
|
+
/**
|
|
433
|
+
* Tier 1 ADME summary values for this molecule.
|
|
434
|
+
*/
|
|
435
|
+
interface Adme {
|
|
436
|
+
/**
|
|
437
|
+
* Lipophilicity score from the internal LogD prediction.
|
|
438
|
+
*/
|
|
439
|
+
lipophilicity: number;
|
|
440
|
+
/**
|
|
441
|
+
* Permeability score for this molecule.
|
|
442
|
+
*/
|
|
443
|
+
permeability: number;
|
|
444
|
+
/**
|
|
445
|
+
* Solubility judgement for this molecule.
|
|
446
|
+
*/
|
|
447
|
+
solubility: 'high-confidence' | 'medium-confidence' | 'high-risk';
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
interface AdmeMoleculeFailed {
|
|
451
|
+
/**
|
|
452
|
+
* Internally generated molecule identifier.
|
|
453
|
+
*/
|
|
454
|
+
id: string;
|
|
455
|
+
adme: null;
|
|
456
|
+
error: AdmeMoleculeFailed.Error;
|
|
457
|
+
/**
|
|
458
|
+
* Echoed SMILES from the request.
|
|
459
|
+
*/
|
|
460
|
+
smiles: string;
|
|
461
|
+
status: 'failed';
|
|
462
|
+
/**
|
|
463
|
+
* Client-provided molecule identifier, if one was supplied.
|
|
464
|
+
*/
|
|
465
|
+
external_id?: string;
|
|
466
|
+
}
|
|
467
|
+
namespace AdmeMoleculeFailed {
|
|
468
|
+
interface Error {
|
|
469
|
+
/**
|
|
470
|
+
* Machine-readable error code
|
|
471
|
+
*/
|
|
472
|
+
code: string;
|
|
473
|
+
/**
|
|
474
|
+
* Human-readable error message
|
|
475
|
+
*/
|
|
476
|
+
message: string;
|
|
477
|
+
/**
|
|
478
|
+
* Additional field-level error details keyed by input path, when available.
|
|
479
|
+
*/
|
|
480
|
+
details?: unknown;
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
export interface AdmeRetrieveParams {
|
|
486
|
+
/**
|
|
487
|
+
* Workspace ID. Only used with admin API keys. Ignored (or validated) for
|
|
488
|
+
* workspace-scoped keys.
|
|
489
|
+
*/
|
|
490
|
+
workspace_id?: string;
|
|
491
|
+
}
|
|
492
|
+
export interface AdmeListParams extends CursorPageParams {
|
|
493
|
+
/**
|
|
494
|
+
* Filter by workspace ID. Only used with admin API keys. If not provided, defaults
|
|
495
|
+
* to the workspace associated with the API key, or the default workspace for admin
|
|
496
|
+
* keys.
|
|
497
|
+
*/
|
|
498
|
+
workspace_id?: string;
|
|
499
|
+
}
|
|
500
|
+
export interface AdmeStartParams {
|
|
501
|
+
input: AdmeStartParams.Input;
|
|
502
|
+
/**
|
|
503
|
+
* Model to use for prediction
|
|
504
|
+
*/
|
|
505
|
+
model: 'adme-v1';
|
|
506
|
+
/**
|
|
507
|
+
* Client-provided key to prevent duplicate submissions on retries
|
|
508
|
+
*/
|
|
509
|
+
idempotency_key?: string;
|
|
510
|
+
/**
|
|
511
|
+
* Target workspace ID (admin keys only; ignored for workspace keys)
|
|
512
|
+
*/
|
|
513
|
+
workspace_id?: string;
|
|
514
|
+
}
|
|
515
|
+
export declare namespace AdmeStartParams {
|
|
516
|
+
interface Input {
|
|
517
|
+
/**
|
|
518
|
+
* Molecules to score. Results are returned in the same order as this list.
|
|
519
|
+
*/
|
|
520
|
+
molecules: Array<Input.Molecule>;
|
|
521
|
+
}
|
|
522
|
+
namespace Input {
|
|
523
|
+
interface Molecule {
|
|
524
|
+
/**
|
|
525
|
+
* SMILES string of the molecule to predict ADME properties for.
|
|
526
|
+
*/
|
|
527
|
+
smiles: string;
|
|
528
|
+
/**
|
|
529
|
+
* Optional client-provided identifier. Returned as `external_id` in the matching
|
|
530
|
+
* output item.
|
|
531
|
+
*/
|
|
532
|
+
id?: string;
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
}
|
|
536
|
+
export declare namespace Adme {
|
|
537
|
+
export { type AdmeRetrieveResponse as AdmeRetrieveResponse, type AdmeListResponse as AdmeListResponse, type AdmeDeleteDataResponse as AdmeDeleteDataResponse, type AdmeStartResponse as AdmeStartResponse, type AdmeListResponsesCursorPage as AdmeListResponsesCursorPage, type AdmeRetrieveParams as AdmeRetrieveParams, type AdmeListParams as AdmeListParams, type AdmeStartParams as AdmeStartParams, };
|
|
538
|
+
}
|
|
539
|
+
//# sourceMappingURL=adme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adme.d.ts","sourceRoot":"","sources":["../../src/resources/predictions/adme.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,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AK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,72 @@
|
|
|
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.Adme = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
/**
|
|
9
|
+
* Predict Tier 1 ADME summary values for a batch of small molecules specified by SMILES.
|
|
10
|
+
*/
|
|
11
|
+
class Adme extends resource_1.APIResource {
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve an ADME prediction by ID, including its status and results.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const adme = await client.predictions.adme.retrieve('id');
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id, query = {}, options) {
|
|
21
|
+
return this._client.get((0, path_1.path) `/compute/v1/predictions/adme/${id}`, { query, ...options });
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List ADME predictions, optionally filtered by workspace
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* // Automatically fetches more pages as needed.
|
|
29
|
+
* for await (const admeListResponse of client.predictions.adme.list()) {
|
|
30
|
+
* // ...
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
list(query = {}, options) {
|
|
35
|
+
return this._client.getAPIList('/compute/v1/predictions/adme', (pagination_1.CursorPage), {
|
|
36
|
+
query,
|
|
37
|
+
...options,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Permanently delete the input, output, and result data associated with this
|
|
42
|
+
* prediction. The prediction record itself is retained with a `data_deleted_at`
|
|
43
|
+
* timestamp. This action is irreversible.
|
|
44
|
+
*
|
|
45
|
+
* @example
|
|
46
|
+
* ```ts
|
|
47
|
+
* const response = await client.predictions.adme.deleteData(
|
|
48
|
+
* 'id',
|
|
49
|
+
* );
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
deleteData(id, options) {
|
|
53
|
+
return this._client.post((0, path_1.path) `/compute/v1/predictions/adme/${id}/delete-data`, options);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Submit a prediction job that returns Tier 1 ADME summary values for each
|
|
57
|
+
* requested molecule.
|
|
58
|
+
*
|
|
59
|
+
* @example
|
|
60
|
+
* ```ts
|
|
61
|
+
* const response = await client.predictions.adme.start({
|
|
62
|
+
* input: { molecules: [{ smiles: 'x' }] },
|
|
63
|
+
* model: 'adme-v1',
|
|
64
|
+
* });
|
|
65
|
+
* ```
|
|
66
|
+
*/
|
|
67
|
+
start(body, options) {
|
|
68
|
+
return this._client.post('/compute/v1/predictions/adme', { body, ...options });
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.Adme = Adme;
|
|
72
|
+
//# sourceMappingURL=adme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adme.js","sourceRoot":"","sources":["../../src/resources/predictions/adme.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,yDAAuF;AAEvF,uDAAiD;AAEjD;;GAEG;AACH,MAAa,IAAK,SAAQ,sBAAW;IACnC;;;;;;;OAOG;IACH,QAAQ,CACN,EAAU,EACV,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,gCAAgC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,8BAA8B,EAAE,CAAA,uBAA4B,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,gCAAgC,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF;AArED,oBAqEC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { CursorPage } from "../../core/pagination.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Predict Tier 1 ADME summary values for a batch of small molecules specified by SMILES.
|
|
7
|
+
*/
|
|
8
|
+
export class Adme extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Retrieve an ADME prediction by ID, including its status and results.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```ts
|
|
14
|
+
* const adme = await client.predictions.adme.retrieve('id');
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
retrieve(id, query = {}, options) {
|
|
18
|
+
return this._client.get(path `/compute/v1/predictions/adme/${id}`, { query, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List ADME predictions, optionally filtered by workspace
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```ts
|
|
25
|
+
* // Automatically fetches more pages as needed.
|
|
26
|
+
* for await (const admeListResponse of client.predictions.adme.list()) {
|
|
27
|
+
* // ...
|
|
28
|
+
* }
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
list(query = {}, options) {
|
|
32
|
+
return this._client.getAPIList('/compute/v1/predictions/adme', (CursorPage), {
|
|
33
|
+
query,
|
|
34
|
+
...options,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Permanently delete the input, output, and result data associated with this
|
|
39
|
+
* prediction. The prediction record itself is retained with a `data_deleted_at`
|
|
40
|
+
* timestamp. This action is irreversible.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```ts
|
|
44
|
+
* const response = await client.predictions.adme.deleteData(
|
|
45
|
+
* 'id',
|
|
46
|
+
* );
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
deleteData(id, options) {
|
|
50
|
+
return this._client.post(path `/compute/v1/predictions/adme/${id}/delete-data`, options);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Submit a prediction job that returns Tier 1 ADME summary values for each
|
|
54
|
+
* requested molecule.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const response = await client.predictions.adme.start({
|
|
59
|
+
* input: { molecules: [{ smiles: 'x' }] },
|
|
60
|
+
* model: 'adme-v1',
|
|
61
|
+
* });
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
start(body, options) {
|
|
65
|
+
return this._client.post('/compute/v1/predictions/adme', { body, ...options });
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=adme.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adme.mjs","sourceRoot":"","sources":["../../src/resources/predictions/adme.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAAE,UAAU,EAAsC,kCAA8B;AAEvF,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD;;GAEG;AACH,MAAM,OAAO,IAAK,SAAQ,WAAW;IACnC;;;;;;;OAOG;IACH,QAAQ,CACN,EAAU,EACV,QAA+C,EAAE,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,gCAAgC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;OAUG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,8BAA8B,EAAE,CAAA,UAA4B,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,UAAU,CAAC,EAAU,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,gCAAgC,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAqB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,8BAA8B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;CACF"}
|