@nosana/types 0.1.6 → 0.1.12
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/dist/Jobs/Diagnostics/index.d.ts +2 -0
- package/dist/Jobs/Diagnostics/index.js +3 -0
- package/dist/Jobs/Diagnostics/index.js.map +1 -0
- package/dist/Jobs/Diagnostics/reason.d.ts +5 -0
- package/dist/Jobs/Diagnostics/reason.js +2 -0
- package/dist/Jobs/Diagnostics/reason.js.map +1 -0
- package/dist/Jobs/Diagnostics/state.d.ts +18 -0
- package/dist/Jobs/Diagnostics/state.js +2 -0
- package/dist/Jobs/Diagnostics/state.js.map +1 -0
- package/dist/Jobs/Flows/index.d.ts +6 -0
- package/dist/Jobs/JobDefinition/args/index.d.ts +3 -0
- package/dist/Jobs/JobDefinition/args/index.js +1 -0
- package/dist/Jobs/JobDefinition/args/index.js.map +1 -1
- package/dist/Jobs/JobDefinition/args/literals.d.ts +1 -1
- package/dist/Jobs/JobDefinition/args/restart_policy.d.ts +10 -0
- package/dist/Jobs/JobDefinition/args/restart_policy.js +7 -0
- package/dist/Jobs/JobDefinition/args/restart_policy.js.map +1 -0
- package/dist/Jobs/JobDefinition/meta/index.d.ts +1 -1
- package/dist/Jobs/JobDefinition/operations/index.d.ts +10 -1
- package/dist/Jobs/JobDefinition/operations/index.js +2 -1
- package/dist/Jobs/JobDefinition/operations/index.js.map +1 -1
- package/dist/Jobs/Logs/index.d.ts +1 -0
- package/dist/Jobs/index.d.ts +1 -0
- package/dist/Jobs/index.js +179 -123
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/api.d.ts +284 -140
- package/dist/Schemas/job.js +168 -3
- package/dist/Schemas/job.js.map +1 -1
- package/package.json +1 -1
package/dist/Schemas/job.js
CHANGED
|
@@ -107,6 +107,19 @@ export const jobSchemas = {
|
|
|
107
107
|
{
|
|
108
108
|
type: "number"
|
|
109
109
|
},
|
|
110
|
+
{
|
|
111
|
+
type: "array",
|
|
112
|
+
items: {
|
|
113
|
+
oneOf: [
|
|
114
|
+
{
|
|
115
|
+
type: "string"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "number"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
110
123
|
{
|
|
111
124
|
$ref: "#/components/schemas/Recordstringstringnumber"
|
|
112
125
|
}
|
|
@@ -199,7 +212,7 @@ export const jobSchemas = {
|
|
|
199
212
|
]
|
|
200
213
|
},
|
|
201
214
|
id: {
|
|
202
|
-
|
|
215
|
+
$ref: "#/components/schemas/OperationId"
|
|
203
216
|
},
|
|
204
217
|
args: {
|
|
205
218
|
oneOf: [
|
|
@@ -231,6 +244,9 @@ export const jobSchemas = {
|
|
|
231
244
|
"args"
|
|
232
245
|
]
|
|
233
246
|
},
|
|
247
|
+
OperationId: {
|
|
248
|
+
type: "string"
|
|
249
|
+
},
|
|
234
250
|
ContainerRun: {
|
|
235
251
|
type: "object",
|
|
236
252
|
properties: {
|
|
@@ -276,6 +292,9 @@ export const jobSchemas = {
|
|
|
276
292
|
properties: {
|
|
277
293
|
__spread__: {
|
|
278
294
|
$ref: "#/components/schemas/LiteralString"
|
|
295
|
+
},
|
|
296
|
+
chunked: {
|
|
297
|
+
type: "boolean"
|
|
279
298
|
}
|
|
280
299
|
},
|
|
281
300
|
required: [
|
|
@@ -309,6 +328,36 @@ export const jobSchemas = {
|
|
|
309
328
|
env: {
|
|
310
329
|
$ref: "#/components/schemas/Env"
|
|
311
330
|
},
|
|
331
|
+
restart_policy: {
|
|
332
|
+
oneOf: [
|
|
333
|
+
{
|
|
334
|
+
type: "object",
|
|
335
|
+
properties: {
|
|
336
|
+
policy: {
|
|
337
|
+
type: "string",
|
|
338
|
+
"enum": [
|
|
339
|
+
"on-failure"
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
restart_tries: {
|
|
343
|
+
type: "number"
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
required: [
|
|
347
|
+
"policy"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
{
|
|
351
|
+
type: "string",
|
|
352
|
+
"enum": [
|
|
353
|
+
"no",
|
|
354
|
+
"always",
|
|
355
|
+
"unless-stopped",
|
|
356
|
+
"on-failure"
|
|
357
|
+
]
|
|
358
|
+
}
|
|
359
|
+
]
|
|
360
|
+
},
|
|
312
361
|
"private": {
|
|
313
362
|
type: "boolean"
|
|
314
363
|
},
|
|
@@ -474,6 +523,9 @@ export const jobSchemas = {
|
|
|
474
523
|
properties: {
|
|
475
524
|
__spread__: {
|
|
476
525
|
$ref: "#/components/schemas/LiteralString"
|
|
526
|
+
},
|
|
527
|
+
chunked: {
|
|
528
|
+
type: "boolean"
|
|
477
529
|
}
|
|
478
530
|
},
|
|
479
531
|
required: [
|
|
@@ -494,6 +546,9 @@ export const jobSchemas = {
|
|
|
494
546
|
properties: {
|
|
495
547
|
__spread__: {
|
|
496
548
|
$ref: "#/components/schemas/LiteralString"
|
|
549
|
+
},
|
|
550
|
+
chunked: {
|
|
551
|
+
type: "boolean"
|
|
497
552
|
}
|
|
498
553
|
},
|
|
499
554
|
required: [
|
|
@@ -910,6 +965,20 @@ export const jobSchemas = {
|
|
|
910
965
|
}
|
|
911
966
|
]
|
|
912
967
|
}
|
|
968
|
+
},
|
|
969
|
+
diagnostics: {
|
|
970
|
+
type: "object",
|
|
971
|
+
properties: {
|
|
972
|
+
reason: {
|
|
973
|
+
$ref: "#/components/schemas/Reason"
|
|
974
|
+
},
|
|
975
|
+
state: {
|
|
976
|
+
$ref: "#/components/schemas/State"
|
|
977
|
+
}
|
|
978
|
+
},
|
|
979
|
+
required: [
|
|
980
|
+
"reason"
|
|
981
|
+
]
|
|
913
982
|
}
|
|
914
983
|
},
|
|
915
984
|
required: [
|
|
@@ -920,7 +989,8 @@ export const jobSchemas = {
|
|
|
920
989
|
"startTime",
|
|
921
990
|
"endTime",
|
|
922
991
|
"exitCode",
|
|
923
|
-
"logs"
|
|
992
|
+
"logs",
|
|
993
|
+
"diagnostics"
|
|
924
994
|
]
|
|
925
995
|
},
|
|
926
996
|
Log: {
|
|
@@ -931,10 +1001,105 @@ export const jobSchemas = {
|
|
|
931
1001
|
},
|
|
932
1002
|
log: {
|
|
933
1003
|
type: "string"
|
|
1004
|
+
},
|
|
1005
|
+
timestamp: {
|
|
1006
|
+
type: "string"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
required: [
|
|
1010
|
+
"type",
|
|
1011
|
+
"timestamp"
|
|
1012
|
+
]
|
|
1013
|
+
},
|
|
1014
|
+
Reason: {
|
|
1015
|
+
type: "object",
|
|
1016
|
+
properties: {
|
|
1017
|
+
hostShutDown: {
|
|
1018
|
+
type: "boolean"
|
|
1019
|
+
},
|
|
1020
|
+
jobStopped: {
|
|
1021
|
+
type: "boolean"
|
|
1022
|
+
},
|
|
1023
|
+
expired: {
|
|
1024
|
+
type: "boolean"
|
|
1025
|
+
}
|
|
1026
|
+
},
|
|
1027
|
+
required: [
|
|
1028
|
+
"hostShutDown",
|
|
1029
|
+
"jobStopped",
|
|
1030
|
+
"expired"
|
|
1031
|
+
]
|
|
1032
|
+
},
|
|
1033
|
+
State: {
|
|
1034
|
+
type: "object",
|
|
1035
|
+
properties: {
|
|
1036
|
+
Status: {
|
|
1037
|
+
type: "string"
|
|
1038
|
+
},
|
|
1039
|
+
Running: {
|
|
1040
|
+
type: "boolean"
|
|
1041
|
+
},
|
|
1042
|
+
Paused: {
|
|
1043
|
+
type: "boolean"
|
|
1044
|
+
},
|
|
1045
|
+
Restarting: {
|
|
1046
|
+
type: "boolean"
|
|
1047
|
+
},
|
|
1048
|
+
OOMKilled: {
|
|
1049
|
+
type: "boolean"
|
|
1050
|
+
},
|
|
1051
|
+
Dead: {
|
|
1052
|
+
type: "boolean"
|
|
1053
|
+
},
|
|
1054
|
+
ExitCode: {
|
|
1055
|
+
type: "number"
|
|
1056
|
+
},
|
|
1057
|
+
Error: {
|
|
1058
|
+
type: "string"
|
|
1059
|
+
},
|
|
1060
|
+
StartedAt: {
|
|
1061
|
+
type: "string"
|
|
1062
|
+
},
|
|
1063
|
+
FinishedAt: {
|
|
1064
|
+
type: "string"
|
|
1065
|
+
},
|
|
1066
|
+
Health: {
|
|
1067
|
+
type: "object",
|
|
1068
|
+
properties: {
|
|
1069
|
+
Status: {
|
|
1070
|
+
type: "string"
|
|
1071
|
+
},
|
|
1072
|
+
FailingStreak: {
|
|
1073
|
+
type: "number"
|
|
1074
|
+
},
|
|
1075
|
+
Log: {
|
|
1076
|
+
type: "string",
|
|
1077
|
+
nullable: true
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
required: [
|
|
1081
|
+
"Status",
|
|
1082
|
+
"FailingStreak",
|
|
1083
|
+
"Log"
|
|
1084
|
+
]
|
|
1085
|
+
},
|
|
1086
|
+
RestartCount: {
|
|
1087
|
+
type: "number"
|
|
934
1088
|
}
|
|
935
1089
|
},
|
|
936
1090
|
required: [
|
|
937
|
-
"
|
|
1091
|
+
"Status",
|
|
1092
|
+
"Running",
|
|
1093
|
+
"Paused",
|
|
1094
|
+
"Restarting",
|
|
1095
|
+
"OOMKilled",
|
|
1096
|
+
"Dead",
|
|
1097
|
+
"ExitCode",
|
|
1098
|
+
"Error",
|
|
1099
|
+
"StartedAt",
|
|
1100
|
+
"FinishedAt",
|
|
1101
|
+
"Health",
|
|
1102
|
+
"RestartCount"
|
|
938
1103
|
]
|
|
939
1104
|
},
|
|
940
1105
|
FlowSecrets: {
|
package/dist/Schemas/job.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/Schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"job.js","sourceRoot":"","sources":["../../src/Schemas/job.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,M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