@nosana/api 2.15.0 → 2.16.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.
- package/README.md +12 -0
- package/dist/client/host-manager/schema.d.ts +1187 -193
- package/dist/client/host-manager/schema.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/reservations/index.d.ts +12 -0
- package/dist/routes/reservations/index.d.ts.map +1 -0
- package/dist/routes/reservations/index.js +34 -0
- package/dist/routes/reservations/index.js.map +1 -0
- package/dist/routes/reservations/types.d.ts +37 -0
- package/dist/routes/reservations/types.d.ts.map +1 -0
- package/dist/routes/reservations/types.js +2 -0
- package/dist/routes/reservations/types.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -182,6 +182,18 @@ await vault.topup({ NOS: 100 });
|
|
|
182
182
|
| `getTemplatePerformance` | `nodeId: string` | `Promise<Record<string, unknown>>` |
|
|
183
183
|
| `getBenchmarkSummary` | `request?: BenchmarkSummaryRequest` | `Promise<Record<string, unknown>>` |
|
|
184
184
|
|
|
185
|
+
### `api.reservations` — GPU Models & Requirement Lookups
|
|
186
|
+
|
|
187
|
+
Read-only and unauthenticated. A requirement set maps a metric key to a value:
|
|
188
|
+
a number is a minimum, a string or boolean must match exactly, and the GPU
|
|
189
|
+
model is the `name` key.
|
|
190
|
+
|
|
191
|
+
| Method | Parameters | Returns |
|
|
192
|
+
|--------|-----------|---------|
|
|
193
|
+
| `listGpus` | — | `Promise<NosanaGpuModels>` |
|
|
194
|
+
| `getRequirementOptions` | `request?: NosanaRequirementOptionsRequest` | `Promise<NosanaRequirementOptions>` |
|
|
195
|
+
| `findAvailable` | `request?: NosanaAvailableNodesRequest` | `Promise<NosanaAvailableNodes>` |
|
|
196
|
+
|
|
185
197
|
### `api.node` / `api.jobs.get(job)` — Node access
|
|
186
198
|
|
|
187
199
|
A node verifies the job owner's signature, and the client manager signs on the
|