@nosana/types 0.1.8 → 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.
@@ -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
  }
@@ -315,6 +328,36 @@ export const jobSchemas = {
315
328
  env: {
316
329
  $ref: "#/components/schemas/Env"
317
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
+ },
318
361
  "private": {
319
362
  type: "boolean"
320
363
  },
@@ -922,6 +965,20 @@ export const jobSchemas = {
922
965
  }
923
966
  ]
924
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
+ ]
925
982
  }
926
983
  },
927
984
  required: [
@@ -932,7 +989,8 @@ export const jobSchemas = {
932
989
  "startTime",
933
990
  "endTime",
934
991
  "exitCode",
935
- "logs"
992
+ "logs",
993
+ "diagnostics"
936
994
  ]
937
995
  },
938
996
  Log: {
@@ -943,10 +1001,105 @@ export const jobSchemas = {
943
1001
  },
944
1002
  log: {
945
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"
946
1088
  }
947
1089
  },
948
1090
  required: [
949
- "type"
1091
+ "Status",
1092
+ "Running",
1093
+ "Paused",
1094
+ "Restarting",
1095
+ "OOMKilled",
1096
+ "Dead",
1097
+ "ExitCode",
1098
+ "Error",
1099
+ "StartedAt",
1100
+ "FinishedAt",
1101
+ "Health",
1102
+ "RestartCount"
950
1103
  ]
951
1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