@nosana/api 2.17.0 → 2.19.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 +3 -3
- package/dist/client/client-manager/schema.d.ts +81 -0
- package/dist/client/client-manager/schema.d.ts.map +1 -1
- package/dist/client/deployment-manager/schema.d.ts +138 -10
- package/dist/client/deployment-manager/schema.d.ts.map +1 -1
- package/dist/client/host-manager/schema.d.ts +230 -28
- package/dist/client/host-manager/schema.d.ts.map +1 -1
- package/dist/routes/auth/index.d.ts.map +1 -1
- package/dist/routes/auth/index.js +12 -0
- package/dist/routes/auth/index.js.map +1 -1
- package/dist/routes/auth/types.d.ts +7 -0
- package/dist/routes/auth/types.d.ts.map +1 -1
- package/dist/routes/deployments/deployment/actions/deploymentGetAllJobHeaders.d.ts +5 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetAllJobHeaders.d.ts.map +1 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetAllJobHeaders.js +12 -0
- package/dist/routes/deployments/deployment/actions/deploymentGetAllJobHeaders.js.map +1 -0
- package/dist/routes/deployments/deployment/actions/deploymentUpdateRequirements.d.ts +6 -5
- package/dist/routes/deployments/deployment/actions/deploymentUpdateRequirements.d.ts.map +1 -1
- package/dist/routes/deployments/deployment/actions/deploymentUpdateRequirements.js +6 -5
- package/dist/routes/deployments/deployment/actions/deploymentUpdateRequirements.js.map +1 -1
- package/dist/routes/deployments/deployment/actions/index.d.ts +1 -0
- package/dist/routes/deployments/deployment/actions/index.d.ts.map +1 -1
- package/dist/routes/deployments/deployment/actions/index.js +1 -0
- package/dist/routes/deployments/deployment/actions/index.js.map +1 -1
- package/dist/routes/deployments/deployment/createDeployment.d.ts.map +1 -1
- package/dist/routes/deployments/deployment/createDeployment.js +45 -7
- package/dist/routes/deployments/deployment/createDeployment.js.map +1 -1
- package/dist/routes/deployments/deployment/jobHeaderStore.d.ts +21 -0
- package/dist/routes/deployments/deployment/jobHeaderStore.d.ts.map +1 -0
- package/dist/routes/deployments/deployment/jobHeaderStore.js +51 -0
- package/dist/routes/deployments/deployment/jobHeaderStore.js.map +1 -0
- package/dist/routes/deployments/types.d.ts +16 -2
- package/dist/routes/deployments/types.d.ts.map +1 -1
- package/dist/routes/reservations/types.d.ts +6 -3
- package/dist/routes/reservations/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -488,6 +488,22 @@ export interface paths {
|
|
|
488
488
|
patch?: never;
|
|
489
489
|
trace?: never;
|
|
490
490
|
};
|
|
491
|
+
"/benchmarks/market-thresholds/simulate-impact": {
|
|
492
|
+
parameters: {
|
|
493
|
+
query?: never;
|
|
494
|
+
header?: never;
|
|
495
|
+
path?: never;
|
|
496
|
+
cookie?: never;
|
|
497
|
+
};
|
|
498
|
+
get?: never;
|
|
499
|
+
put?: never;
|
|
500
|
+
post: operations["postBenchmarksMarket-thresholdsSimulate-impact"];
|
|
501
|
+
delete?: never;
|
|
502
|
+
options?: never;
|
|
503
|
+
head?: never;
|
|
504
|
+
patch?: never;
|
|
505
|
+
trace?: never;
|
|
506
|
+
};
|
|
491
507
|
"/benchmarks/market-thresholds/describe": {
|
|
492
508
|
parameters: {
|
|
493
509
|
query?: never;
|
|
@@ -1344,7 +1360,7 @@ export interface paths {
|
|
|
1344
1360
|
patch?: never;
|
|
1345
1361
|
trace?: never;
|
|
1346
1362
|
};
|
|
1347
|
-
"/reservations/": {
|
|
1363
|
+
"/reservations/requests": {
|
|
1348
1364
|
parameters: {
|
|
1349
1365
|
query?: never;
|
|
1350
1366
|
header?: never;
|
|
@@ -1353,14 +1369,31 @@ export interface paths {
|
|
|
1353
1369
|
};
|
|
1354
1370
|
get?: never;
|
|
1355
1371
|
put?: never;
|
|
1356
|
-
/**
|
|
1357
|
-
post: operations["
|
|
1372
|
+
/** Create, renew or replay a queued reservation request (filled now, or later by signed webhook) */
|
|
1373
|
+
post: operations["postReservationsRequests"];
|
|
1358
1374
|
delete?: never;
|
|
1359
1375
|
options?: never;
|
|
1360
1376
|
head?: never;
|
|
1361
1377
|
patch?: never;
|
|
1362
1378
|
trace?: never;
|
|
1363
1379
|
};
|
|
1380
|
+
"/reservations/requests/{key}": {
|
|
1381
|
+
parameters: {
|
|
1382
|
+
query?: never;
|
|
1383
|
+
header?: never;
|
|
1384
|
+
path?: never;
|
|
1385
|
+
cookie?: never;
|
|
1386
|
+
};
|
|
1387
|
+
get?: never;
|
|
1388
|
+
put?: never;
|
|
1389
|
+
post?: never;
|
|
1390
|
+
/** Cancel a reservation request and release the holds under its key */
|
|
1391
|
+
delete: operations["deleteReservationsRequestsByKey"];
|
|
1392
|
+
options?: never;
|
|
1393
|
+
head?: never;
|
|
1394
|
+
patch?: never;
|
|
1395
|
+
trace?: never;
|
|
1396
|
+
};
|
|
1364
1397
|
"/reservations/requirements": {
|
|
1365
1398
|
parameters: {
|
|
1366
1399
|
query?: never;
|
|
@@ -2958,6 +2991,89 @@ export interface operations {
|
|
|
2958
2991
|
};
|
|
2959
2992
|
};
|
|
2960
2993
|
};
|
|
2994
|
+
"postBenchmarksMarket-thresholdsSimulate-impact": {
|
|
2995
|
+
parameters: {
|
|
2996
|
+
query?: never;
|
|
2997
|
+
header: {
|
|
2998
|
+
authorization: string;
|
|
2999
|
+
};
|
|
3000
|
+
path?: never;
|
|
3001
|
+
cookie?: never;
|
|
3002
|
+
};
|
|
3003
|
+
requestBody: {
|
|
3004
|
+
content: {
|
|
3005
|
+
"application/json": {
|
|
3006
|
+
thresholdId: number;
|
|
3007
|
+
marketAddresses: (string | null)[];
|
|
3008
|
+
jsonLogic: {
|
|
3009
|
+
[key: string]: unknown;
|
|
3010
|
+
};
|
|
3011
|
+
interval?: (string | null) | null;
|
|
3012
|
+
isOptional?: boolean;
|
|
3013
|
+
isGating?: boolean;
|
|
3014
|
+
};
|
|
3015
|
+
"multipart/form-data": {
|
|
3016
|
+
thresholdId: number;
|
|
3017
|
+
marketAddresses: (string | null)[];
|
|
3018
|
+
jsonLogic: {
|
|
3019
|
+
[key: string]: unknown;
|
|
3020
|
+
};
|
|
3021
|
+
interval?: (string | null) | null;
|
|
3022
|
+
isOptional?: boolean;
|
|
3023
|
+
isGating?: boolean;
|
|
3024
|
+
};
|
|
3025
|
+
"text/plain": {
|
|
3026
|
+
thresholdId: number;
|
|
3027
|
+
marketAddresses: (string | null)[];
|
|
3028
|
+
jsonLogic: {
|
|
3029
|
+
[key: string]: unknown;
|
|
3030
|
+
};
|
|
3031
|
+
interval?: (string | null) | null;
|
|
3032
|
+
isOptional?: boolean;
|
|
3033
|
+
isGating?: boolean;
|
|
3034
|
+
};
|
|
3035
|
+
};
|
|
3036
|
+
};
|
|
3037
|
+
responses: {
|
|
3038
|
+
200: {
|
|
3039
|
+
headers: {
|
|
3040
|
+
[name: string]: unknown;
|
|
3041
|
+
};
|
|
3042
|
+
content: {
|
|
3043
|
+
"application/json": {
|
|
3044
|
+
evaluatedNodes: number;
|
|
3045
|
+
nodes: {
|
|
3046
|
+
nodeAddress: string;
|
|
3047
|
+
marketAddress: string;
|
|
3048
|
+
assignedMarket: (string | null) | null;
|
|
3049
|
+
reason: "missingMetric" | "noRecentData" | "expired" | "belowRequirement";
|
|
3050
|
+
measured: ((number | string | boolean) | null) | null;
|
|
3051
|
+
}[];
|
|
3052
|
+
};
|
|
3053
|
+
"multipart/form-data": {
|
|
3054
|
+
evaluatedNodes: number;
|
|
3055
|
+
nodes: {
|
|
3056
|
+
nodeAddress: string;
|
|
3057
|
+
marketAddress: string;
|
|
3058
|
+
assignedMarket: (string | null) | null;
|
|
3059
|
+
reason: "missingMetric" | "noRecentData" | "expired" | "belowRequirement";
|
|
3060
|
+
measured: ((number | string | boolean) | null) | null;
|
|
3061
|
+
}[];
|
|
3062
|
+
};
|
|
3063
|
+
"text/plain": {
|
|
3064
|
+
evaluatedNodes: number;
|
|
3065
|
+
nodes: {
|
|
3066
|
+
nodeAddress: string;
|
|
3067
|
+
marketAddress: string;
|
|
3068
|
+
assignedMarket: (string | null) | null;
|
|
3069
|
+
reason: "missingMetric" | "noRecentData" | "expired" | "belowRequirement";
|
|
3070
|
+
measured: ((number | string | boolean) | null) | null;
|
|
3071
|
+
}[];
|
|
3072
|
+
};
|
|
3073
|
+
};
|
|
3074
|
+
};
|
|
3075
|
+
};
|
|
3076
|
+
};
|
|
2961
3077
|
"postBenchmarksMarket-thresholdsDescribe": {
|
|
2962
3078
|
parameters: {
|
|
2963
3079
|
query?: never;
|
|
@@ -10148,7 +10264,7 @@ export interface operations {
|
|
|
10148
10264
|
};
|
|
10149
10265
|
};
|
|
10150
10266
|
};
|
|
10151
|
-
|
|
10267
|
+
postReservationsRequests: {
|
|
10152
10268
|
parameters: {
|
|
10153
10269
|
query?: never;
|
|
10154
10270
|
header?: {
|
|
@@ -10160,28 +10276,31 @@ export interface operations {
|
|
|
10160
10276
|
requestBody: {
|
|
10161
10277
|
content: {
|
|
10162
10278
|
"application/json": {
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
idempotencyKey?: string;
|
|
10279
|
+
key: string;
|
|
10280
|
+
market?: string;
|
|
10166
10281
|
requirements?: {
|
|
10167
|
-
[key: string]: number | string | boolean;
|
|
10282
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10168
10283
|
};
|
|
10284
|
+
count: string | number;
|
|
10285
|
+
ttlSeconds?: string | number;
|
|
10169
10286
|
};
|
|
10170
10287
|
"multipart/form-data": {
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
idempotencyKey?: string;
|
|
10288
|
+
key: string;
|
|
10289
|
+
market?: string;
|
|
10174
10290
|
requirements?: {
|
|
10175
|
-
[key: string]: number | string | boolean;
|
|
10291
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10176
10292
|
};
|
|
10293
|
+
count: string | number;
|
|
10294
|
+
ttlSeconds?: string | number;
|
|
10177
10295
|
};
|
|
10178
10296
|
"text/plain": {
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
idempotencyKey?: string;
|
|
10297
|
+
key: string;
|
|
10298
|
+
market?: string;
|
|
10182
10299
|
requirements?: {
|
|
10183
|
-
[key: string]: number | string | boolean;
|
|
10300
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10184
10301
|
};
|
|
10302
|
+
count: string | number;
|
|
10303
|
+
ttlSeconds?: string | number;
|
|
10185
10304
|
};
|
|
10186
10305
|
};
|
|
10187
10306
|
};
|
|
@@ -10192,31 +10311,49 @@ export interface operations {
|
|
|
10192
10311
|
};
|
|
10193
10312
|
content: {
|
|
10194
10313
|
"application/json": {
|
|
10314
|
+
key: string;
|
|
10315
|
+
/**
|
|
10316
|
+
* @default waiting
|
|
10317
|
+
* @enum {string}
|
|
10318
|
+
*/
|
|
10319
|
+
status: "waiting" | "fulfilled" | "cancelled" | "expired";
|
|
10195
10320
|
requested: number;
|
|
10196
|
-
reserved: number;
|
|
10197
|
-
expiresAt: ((Record<string, never> | string | number) | null) | null;
|
|
10198
10321
|
nodes: {
|
|
10199
10322
|
nodeAddress: string;
|
|
10200
10323
|
market: string;
|
|
10201
10324
|
}[];
|
|
10325
|
+
holdExpiresAt: ((Record<string, never> | string | number) | null) | null;
|
|
10326
|
+
expiresAt: Record<string, never> | string | number;
|
|
10202
10327
|
};
|
|
10203
10328
|
"multipart/form-data": {
|
|
10329
|
+
key: string;
|
|
10330
|
+
/**
|
|
10331
|
+
* @default waiting
|
|
10332
|
+
* @enum {string}
|
|
10333
|
+
*/
|
|
10334
|
+
status: "waiting" | "fulfilled" | "cancelled" | "expired";
|
|
10204
10335
|
requested: number;
|
|
10205
|
-
reserved: number;
|
|
10206
|
-
expiresAt: ((Record<string, never> | string | number) | null) | null;
|
|
10207
10336
|
nodes: {
|
|
10208
10337
|
nodeAddress: string;
|
|
10209
10338
|
market: string;
|
|
10210
10339
|
}[];
|
|
10340
|
+
holdExpiresAt: ((Record<string, never> | string | number) | null) | null;
|
|
10341
|
+
expiresAt: Record<string, never> | string | number;
|
|
10211
10342
|
};
|
|
10212
10343
|
"text/plain": {
|
|
10344
|
+
key: string;
|
|
10345
|
+
/**
|
|
10346
|
+
* @default waiting
|
|
10347
|
+
* @enum {string}
|
|
10348
|
+
*/
|
|
10349
|
+
status: "waiting" | "fulfilled" | "cancelled" | "expired";
|
|
10213
10350
|
requested: number;
|
|
10214
|
-
reserved: number;
|
|
10215
|
-
expiresAt: ((Record<string, never> | string | number) | null) | null;
|
|
10216
10351
|
nodes: {
|
|
10217
10352
|
nodeAddress: string;
|
|
10218
10353
|
market: string;
|
|
10219
10354
|
}[];
|
|
10355
|
+
holdExpiresAt: ((Record<string, never> | string | number) | null) | null;
|
|
10356
|
+
expiresAt: Record<string, never> | string | number;
|
|
10220
10357
|
};
|
|
10221
10358
|
};
|
|
10222
10359
|
};
|
|
@@ -10302,6 +10439,71 @@ export interface operations {
|
|
|
10302
10439
|
};
|
|
10303
10440
|
};
|
|
10304
10441
|
};
|
|
10442
|
+
deleteReservationsRequestsByKey: {
|
|
10443
|
+
parameters: {
|
|
10444
|
+
query?: never;
|
|
10445
|
+
header?: {
|
|
10446
|
+
authorization?: string;
|
|
10447
|
+
};
|
|
10448
|
+
path: {
|
|
10449
|
+
key: string;
|
|
10450
|
+
};
|
|
10451
|
+
cookie?: never;
|
|
10452
|
+
};
|
|
10453
|
+
requestBody?: never;
|
|
10454
|
+
responses: {
|
|
10455
|
+
200: {
|
|
10456
|
+
headers: {
|
|
10457
|
+
[name: string]: unknown;
|
|
10458
|
+
};
|
|
10459
|
+
content: {
|
|
10460
|
+
"application/json": {
|
|
10461
|
+
key: string;
|
|
10462
|
+
/**
|
|
10463
|
+
* @default cancelled
|
|
10464
|
+
* @enum {string}
|
|
10465
|
+
*/
|
|
10466
|
+
status: "cancelled" | "fulfilled" | "expired";
|
|
10467
|
+
released: number;
|
|
10468
|
+
};
|
|
10469
|
+
"multipart/form-data": {
|
|
10470
|
+
key: string;
|
|
10471
|
+
/**
|
|
10472
|
+
* @default cancelled
|
|
10473
|
+
* @enum {string}
|
|
10474
|
+
*/
|
|
10475
|
+
status: "cancelled" | "fulfilled" | "expired";
|
|
10476
|
+
released: number;
|
|
10477
|
+
};
|
|
10478
|
+
"text/plain": {
|
|
10479
|
+
key: string;
|
|
10480
|
+
/**
|
|
10481
|
+
* @default cancelled
|
|
10482
|
+
* @enum {string}
|
|
10483
|
+
*/
|
|
10484
|
+
status: "cancelled" | "fulfilled" | "expired";
|
|
10485
|
+
released: number;
|
|
10486
|
+
};
|
|
10487
|
+
};
|
|
10488
|
+
};
|
|
10489
|
+
401: {
|
|
10490
|
+
headers: {
|
|
10491
|
+
[name: string]: unknown;
|
|
10492
|
+
};
|
|
10493
|
+
content: {
|
|
10494
|
+
"application/json": {
|
|
10495
|
+
message: string;
|
|
10496
|
+
};
|
|
10497
|
+
"multipart/form-data": {
|
|
10498
|
+
message: string;
|
|
10499
|
+
};
|
|
10500
|
+
"text/plain": {
|
|
10501
|
+
message: string;
|
|
10502
|
+
};
|
|
10503
|
+
};
|
|
10504
|
+
};
|
|
10505
|
+
};
|
|
10506
|
+
};
|
|
10305
10507
|
getReservationsRequirements: {
|
|
10306
10508
|
parameters: {
|
|
10307
10509
|
query?: {
|
|
@@ -10422,19 +10624,19 @@ export interface operations {
|
|
|
10422
10624
|
"application/json": {
|
|
10423
10625
|
metrics?: string[];
|
|
10424
10626
|
requirements?: {
|
|
10425
|
-
[key: string]: number | string | boolean;
|
|
10627
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10426
10628
|
};
|
|
10427
10629
|
};
|
|
10428
10630
|
"multipart/form-data": {
|
|
10429
10631
|
metrics?: string[];
|
|
10430
10632
|
requirements?: {
|
|
10431
|
-
[key: string]: number | string | boolean;
|
|
10633
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10432
10634
|
};
|
|
10433
10635
|
};
|
|
10434
10636
|
"text/plain": {
|
|
10435
10637
|
metrics?: string[];
|
|
10436
10638
|
requirements?: {
|
|
10437
|
-
[key: string]: number | string | boolean;
|
|
10639
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10438
10640
|
};
|
|
10439
10641
|
};
|
|
10440
10642
|
};
|
|
@@ -10612,17 +10814,17 @@ export interface operations {
|
|
|
10612
10814
|
content: {
|
|
10613
10815
|
"application/json": {
|
|
10614
10816
|
requirements?: {
|
|
10615
|
-
[key: string]: number | string | boolean;
|
|
10817
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10616
10818
|
};
|
|
10617
10819
|
};
|
|
10618
10820
|
"multipart/form-data": {
|
|
10619
10821
|
requirements?: {
|
|
10620
|
-
[key: string]: number | string | boolean;
|
|
10822
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10621
10823
|
};
|
|
10622
10824
|
};
|
|
10623
10825
|
"text/plain": {
|
|
10624
10826
|
requirements?: {
|
|
10625
|
-
[key: string]: number | string | boolean;
|
|
10827
|
+
[key: string]: (number | string | boolean) | (number | string | boolean)[];
|
|
10626
10828
|
};
|
|
10627
10829
|
};
|
|
10628
10830
|
};
|