@nosana/types 0.1.8 → 0.1.13
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/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/Logs/index.d.ts +1 -0
- package/dist/Jobs/index.d.ts +1 -0
- package/dist/Jobs/index.js +233 -155
- package/dist/Jobs/index.js.map +1 -1
- package/dist/Schemas/api.d.ts +284 -140
- package/dist/Schemas/job.js +185 -3
- package/dist/Schemas/job.js.map +1 -1
- package/package.json +1 -1
package/dist/Schemas/job.js
CHANGED
|
@@ -108,7 +108,20 @@ export const jobSchemas = {
|
|
|
108
108
|
type: "number"
|
|
109
109
|
},
|
|
110
110
|
{
|
|
111
|
-
|
|
111
|
+
type: "array",
|
|
112
|
+
items: {
|
|
113
|
+
oneOf: [
|
|
114
|
+
{
|
|
115
|
+
type: "string"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
type: "number"
|
|
119
|
+
}
|
|
120
|
+
]
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
$ref: "#/components/schemas/Recordstringstringnumber(stringnumber)"
|
|
112
125
|
}
|
|
113
126
|
]
|
|
114
127
|
}
|
|
@@ -129,6 +142,35 @@ export const jobSchemas = {
|
|
|
129
142
|
]
|
|
130
143
|
}
|
|
131
144
|
},
|
|
145
|
+
"Recordstringstringnumber(stringnumber)": {
|
|
146
|
+
type: "object",
|
|
147
|
+
properties: {},
|
|
148
|
+
required: [],
|
|
149
|
+
description: "Construct a type with a set of properties K of type T",
|
|
150
|
+
additionalProperties: {
|
|
151
|
+
oneOf: [
|
|
152
|
+
{
|
|
153
|
+
type: "string"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
type: "number"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
type: "array",
|
|
160
|
+
items: {
|
|
161
|
+
oneOf: [
|
|
162
|
+
{
|
|
163
|
+
type: "string"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
type: "number"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
}
|
|
173
|
+
},
|
|
132
174
|
Global: {
|
|
133
175
|
type: "object",
|
|
134
176
|
properties: {
|
|
@@ -315,6 +357,36 @@ export const jobSchemas = {
|
|
|
315
357
|
env: {
|
|
316
358
|
$ref: "#/components/schemas/Env"
|
|
317
359
|
},
|
|
360
|
+
restart_policy: {
|
|
361
|
+
oneOf: [
|
|
362
|
+
{
|
|
363
|
+
type: "object",
|
|
364
|
+
properties: {
|
|
365
|
+
policy: {
|
|
366
|
+
type: "string",
|
|
367
|
+
"enum": [
|
|
368
|
+
"on-failure"
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
restart_tries: {
|
|
372
|
+
type: "number"
|
|
373
|
+
}
|
|
374
|
+
},
|
|
375
|
+
required: [
|
|
376
|
+
"policy"
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
type: "string",
|
|
381
|
+
"enum": [
|
|
382
|
+
"no",
|
|
383
|
+
"always",
|
|
384
|
+
"unless-stopped",
|
|
385
|
+
"on-failure"
|
|
386
|
+
]
|
|
387
|
+
}
|
|
388
|
+
]
|
|
389
|
+
},
|
|
318
390
|
"private": {
|
|
319
391
|
type: "boolean"
|
|
320
392
|
},
|
|
@@ -922,6 +994,20 @@ export const jobSchemas = {
|
|
|
922
994
|
}
|
|
923
995
|
]
|
|
924
996
|
}
|
|
997
|
+
},
|
|
998
|
+
diagnostics: {
|
|
999
|
+
type: "object",
|
|
1000
|
+
properties: {
|
|
1001
|
+
reason: {
|
|
1002
|
+
$ref: "#/components/schemas/Reason"
|
|
1003
|
+
},
|
|
1004
|
+
state: {
|
|
1005
|
+
$ref: "#/components/schemas/State"
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
required: [
|
|
1009
|
+
"reason"
|
|
1010
|
+
]
|
|
925
1011
|
}
|
|
926
1012
|
},
|
|
927
1013
|
required: [
|
|
@@ -932,7 +1018,8 @@ export const jobSchemas = {
|
|
|
932
1018
|
"startTime",
|
|
933
1019
|
"endTime",
|
|
934
1020
|
"exitCode",
|
|
935
|
-
"logs"
|
|
1021
|
+
"logs",
|
|
1022
|
+
"diagnostics"
|
|
936
1023
|
]
|
|
937
1024
|
},
|
|
938
1025
|
Log: {
|
|
@@ -943,10 +1030,105 @@ export const jobSchemas = {
|
|
|
943
1030
|
},
|
|
944
1031
|
log: {
|
|
945
1032
|
type: "string"
|
|
1033
|
+
},
|
|
1034
|
+
timestamp: {
|
|
1035
|
+
type: "string"
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
required: [
|
|
1039
|
+
"type",
|
|
1040
|
+
"timestamp"
|
|
1041
|
+
]
|
|
1042
|
+
},
|
|
1043
|
+
Reason: {
|
|
1044
|
+
type: "object",
|
|
1045
|
+
properties: {
|
|
1046
|
+
hostShutDown: {
|
|
1047
|
+
type: "boolean"
|
|
1048
|
+
},
|
|
1049
|
+
jobStopped: {
|
|
1050
|
+
type: "boolean"
|
|
1051
|
+
},
|
|
1052
|
+
expired: {
|
|
1053
|
+
type: "boolean"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
required: [
|
|
1057
|
+
"hostShutDown",
|
|
1058
|
+
"jobStopped",
|
|
1059
|
+
"expired"
|
|
1060
|
+
]
|
|
1061
|
+
},
|
|
1062
|
+
State: {
|
|
1063
|
+
type: "object",
|
|
1064
|
+
properties: {
|
|
1065
|
+
Status: {
|
|
1066
|
+
type: "string"
|
|
1067
|
+
},
|
|
1068
|
+
Running: {
|
|
1069
|
+
type: "boolean"
|
|
1070
|
+
},
|
|
1071
|
+
Paused: {
|
|
1072
|
+
type: "boolean"
|
|
1073
|
+
},
|
|
1074
|
+
Restarting: {
|
|
1075
|
+
type: "boolean"
|
|
1076
|
+
},
|
|
1077
|
+
OOMKilled: {
|
|
1078
|
+
type: "boolean"
|
|
1079
|
+
},
|
|
1080
|
+
Dead: {
|
|
1081
|
+
type: "boolean"
|
|
1082
|
+
},
|
|
1083
|
+
ExitCode: {
|
|
1084
|
+
type: "number"
|
|
1085
|
+
},
|
|
1086
|
+
Error: {
|
|
1087
|
+
type: "string"
|
|
1088
|
+
},
|
|
1089
|
+
StartedAt: {
|
|
1090
|
+
type: "string"
|
|
1091
|
+
},
|
|
1092
|
+
FinishedAt: {
|
|
1093
|
+
type: "string"
|
|
1094
|
+
},
|
|
1095
|
+
Health: {
|
|
1096
|
+
type: "object",
|
|
1097
|
+
properties: {
|
|
1098
|
+
Status: {
|
|
1099
|
+
type: "string"
|
|
1100
|
+
},
|
|
1101
|
+
FailingStreak: {
|
|
1102
|
+
type: "number"
|
|
1103
|
+
},
|
|
1104
|
+
Log: {
|
|
1105
|
+
type: "string",
|
|
1106
|
+
nullable: true
|
|
1107
|
+
}
|
|
1108
|
+
},
|
|
1109
|
+
required: [
|
|
1110
|
+
"Status",
|
|
1111
|
+
"FailingStreak",
|
|
1112
|
+
"Log"
|
|
1113
|
+
]
|
|
1114
|
+
},
|
|
1115
|
+
RestartCount: {
|
|
1116
|
+
type: "number"
|
|
946
1117
|
}
|
|
947
1118
|
},
|
|
948
1119
|
required: [
|
|
949
|
-
"
|
|
1120
|
+
"Status",
|
|
1121
|
+
"Running",
|
|
1122
|
+
"Paused",
|
|
1123
|
+
"Restarting",
|
|
1124
|
+
"OOMKilled",
|
|
1125
|
+
"Dead",
|
|
1126
|
+
"ExitCode",
|
|
1127
|
+
"Error",
|
|
1128
|
+
"StartedAt",
|
|
1129
|
+
"FinishedAt",
|
|
1130
|
+
"Health",
|
|
1131
|
+
"RestartCount"
|
|
950
1132
|
]
|
|
951
1133
|
},
|
|
952
1134
|
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,MAAM,OAAO,CAAC;AAI1B,MAAM,CAAC,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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