@qlever-llc/trellis 0.10.9 → 0.10.11

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.
Files changed (220) hide show
  1. package/esm/client.d.ts +2 -0
  2. package/esm/client.d.ts.map +1 -1
  3. package/esm/client.js +2 -0
  4. package/esm/client_connect.d.ts +3 -2
  5. package/esm/client_connect.d.ts.map +1 -1
  6. package/esm/client_connect.js +4 -1
  7. package/esm/generated-sdk/auth/api.d.ts.map +1 -1
  8. package/esm/generated-sdk/auth/client.d.ts.map +1 -1
  9. package/esm/generated-sdk/auth/contract.d.ts.map +1 -1
  10. package/esm/generated-sdk/auth/contract.js +9590 -7
  11. package/esm/generated-sdk/auth/mod.d.ts +3 -3
  12. package/esm/generated-sdk/auth/mod.d.ts.map +1 -1
  13. package/esm/generated-sdk/auth/mod.js +1 -1
  14. package/esm/generated-sdk/auth/owned_api.d.ts.map +1 -1
  15. package/esm/generated-sdk/auth/owned_api.js +305 -62
  16. package/esm/generated-sdk/auth/schemas.d.ts.map +1 -1
  17. package/esm/generated-sdk/auth/schemas.js +6492 -139
  18. package/esm/generated-sdk/auth/types.d.ts +254 -254
  19. package/esm/generated-sdk/auth/types.d.ts.map +1 -1
  20. package/esm/generated-sdk/health/api.d.ts.map +1 -1
  21. package/esm/generated-sdk/health/client.d.ts.map +1 -1
  22. package/esm/generated-sdk/health/contract.d.ts.map +1 -1
  23. package/esm/generated-sdk/health/contract.js +117 -7
  24. package/esm/generated-sdk/health/mod.d.ts +2 -2
  25. package/esm/generated-sdk/health/mod.d.ts.map +1 -1
  26. package/esm/generated-sdk/health/mod.js +1 -1
  27. package/esm/generated-sdk/health/owned_api.d.ts.map +1 -1
  28. package/esm/generated-sdk/health/schemas.d.ts.map +1 -1
  29. package/esm/generated-sdk/health/schemas.js +79 -1
  30. package/esm/generated-sdk/health/types.d.ts +4 -4
  31. package/esm/generated-sdk/health/types.d.ts.map +1 -1
  32. package/esm/generated-sdk/jobs/api.d.ts.map +1 -1
  33. package/esm/generated-sdk/jobs/api.js +12 -4
  34. package/esm/generated-sdk/jobs/client.d.ts.map +1 -1
  35. package/esm/generated-sdk/jobs/contract.d.ts.map +1 -1
  36. package/esm/generated-sdk/jobs/contract.js +1080 -7
  37. package/esm/generated-sdk/jobs/mod.d.ts +2 -2
  38. package/esm/generated-sdk/jobs/mod.d.ts.map +1 -1
  39. package/esm/generated-sdk/jobs/mod.js +1 -1
  40. package/esm/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  41. package/esm/generated-sdk/jobs/owned_api.js +26 -6
  42. package/esm/generated-sdk/jobs/schemas.d.ts.map +1 -1
  43. package/esm/generated-sdk/jobs/schemas.js +768 -18
  44. package/esm/generated-sdk/jobs/types.d.ts +14 -14
  45. package/esm/generated-sdk/jobs/types.d.ts.map +1 -1
  46. package/esm/generated-sdk/state/api.d.ts.map +1 -1
  47. package/esm/generated-sdk/state/api.js +3 -1
  48. package/esm/generated-sdk/state/client.d.ts.map +1 -1
  49. package/esm/generated-sdk/state/contract.d.ts.map +1 -1
  50. package/esm/generated-sdk/state/contract.js +638 -7
  51. package/esm/generated-sdk/state/mod.d.ts +2 -2
  52. package/esm/generated-sdk/state/mod.d.ts.map +1 -1
  53. package/esm/generated-sdk/state/mod.js +1 -1
  54. package/esm/generated-sdk/state/owned_api.d.ts.map +1 -1
  55. package/esm/generated-sdk/state/owned_api.js +36 -8
  56. package/esm/generated-sdk/state/schemas.d.ts.map +1 -1
  57. package/esm/generated-sdk/state/schemas.js +441 -14
  58. package/esm/generated-sdk/state/types.d.ts +15 -15
  59. package/esm/generated-sdk/state/types.d.ts.map +1 -1
  60. package/esm/generated-sdk/trellis-core/api.d.ts.map +1 -1
  61. package/esm/generated-sdk/trellis-core/client.d.ts.map +1 -1
  62. package/esm/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  63. package/esm/generated-sdk/trellis-core/contract.js +744 -7
  64. package/esm/generated-sdk/trellis-core/mod.d.ts +2 -2
  65. package/esm/generated-sdk/trellis-core/mod.d.ts.map +1 -1
  66. package/esm/generated-sdk/trellis-core/mod.js +1 -1
  67. package/esm/generated-sdk/trellis-core/owned_api.d.ts.map +1 -1
  68. package/esm/generated-sdk/trellis-core/owned_api.js +1 -1
  69. package/esm/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  70. package/esm/generated-sdk/trellis-core/schemas.js +626 -8
  71. package/esm/generated-sdk/trellis-core/types.d.ts +14 -14
  72. package/esm/generated-sdk/trellis-core/types.d.ts.map +1 -1
  73. package/esm/server/health.d.ts.map +1 -1
  74. package/esm/server/health.js +34 -3
  75. package/esm/server/service.d.ts +35 -13
  76. package/esm/server/service.d.ts.map +1 -1
  77. package/esm/server/service.js +33 -3
  78. package/esm/server.d.ts.map +1 -1
  79. package/esm/server.js +49 -8
  80. package/esm/service/deno.d.ts +1 -1
  81. package/esm/service/deno.d.ts.map +1 -1
  82. package/esm/service/mod.d.ts +1 -1
  83. package/esm/service/mod.d.ts.map +1 -1
  84. package/esm/service/node.d.ts +1 -1
  85. package/esm/service/node.d.ts.map +1 -1
  86. package/esm/trellis.d.ts +28 -4
  87. package/esm/trellis.d.ts.map +1 -1
  88. package/esm/trellis.js +117 -26
  89. package/package.json +2 -2
  90. package/script/client.d.ts +2 -0
  91. package/script/client.d.ts.map +1 -1
  92. package/script/client.js +2 -0
  93. package/script/client_connect.d.ts +3 -2
  94. package/script/client_connect.d.ts.map +1 -1
  95. package/script/client_connect.js +4 -1
  96. package/script/generated-sdk/auth/api.d.ts.map +1 -1
  97. package/script/generated-sdk/auth/client.d.ts.map +1 -1
  98. package/script/generated-sdk/auth/contract.d.ts.map +1 -1
  99. package/script/generated-sdk/auth/contract.js +9590 -7
  100. package/script/generated-sdk/auth/mod.d.ts +3 -3
  101. package/script/generated-sdk/auth/mod.d.ts.map +1 -1
  102. package/script/generated-sdk/auth/mod.js +2 -2
  103. package/script/generated-sdk/auth/owned_api.d.ts.map +1 -1
  104. package/script/generated-sdk/auth/owned_api.js +304 -61
  105. package/script/generated-sdk/auth/schemas.d.ts.map +1 -1
  106. package/script/generated-sdk/auth/schemas.js +6492 -139
  107. package/script/generated-sdk/auth/types.d.ts +254 -254
  108. package/script/generated-sdk/auth/types.d.ts.map +1 -1
  109. package/script/generated-sdk/health/api.d.ts.map +1 -1
  110. package/script/generated-sdk/health/client.d.ts.map +1 -1
  111. package/script/generated-sdk/health/contract.d.ts.map +1 -1
  112. package/script/generated-sdk/health/contract.js +117 -7
  113. package/script/generated-sdk/health/mod.d.ts +2 -2
  114. package/script/generated-sdk/health/mod.d.ts.map +1 -1
  115. package/script/generated-sdk/health/mod.js +2 -2
  116. package/script/generated-sdk/health/owned_api.d.ts.map +1 -1
  117. package/script/generated-sdk/health/schemas.d.ts.map +1 -1
  118. package/script/generated-sdk/health/schemas.js +79 -1
  119. package/script/generated-sdk/health/types.d.ts +4 -4
  120. package/script/generated-sdk/health/types.d.ts.map +1 -1
  121. package/script/generated-sdk/jobs/api.d.ts.map +1 -1
  122. package/script/generated-sdk/jobs/api.js +12 -4
  123. package/script/generated-sdk/jobs/client.d.ts.map +1 -1
  124. package/script/generated-sdk/jobs/contract.d.ts.map +1 -1
  125. package/script/generated-sdk/jobs/contract.js +1080 -7
  126. package/script/generated-sdk/jobs/mod.d.ts +2 -2
  127. package/script/generated-sdk/jobs/mod.d.ts.map +1 -1
  128. package/script/generated-sdk/jobs/mod.js +2 -2
  129. package/script/generated-sdk/jobs/owned_api.d.ts.map +1 -1
  130. package/script/generated-sdk/jobs/owned_api.js +25 -5
  131. package/script/generated-sdk/jobs/schemas.d.ts.map +1 -1
  132. package/script/generated-sdk/jobs/schemas.js +768 -18
  133. package/script/generated-sdk/jobs/types.d.ts +14 -14
  134. package/script/generated-sdk/jobs/types.d.ts.map +1 -1
  135. package/script/generated-sdk/state/api.d.ts.map +1 -1
  136. package/script/generated-sdk/state/api.js +3 -1
  137. package/script/generated-sdk/state/client.d.ts.map +1 -1
  138. package/script/generated-sdk/state/contract.d.ts.map +1 -1
  139. package/script/generated-sdk/state/contract.js +638 -7
  140. package/script/generated-sdk/state/mod.d.ts +2 -2
  141. package/script/generated-sdk/state/mod.d.ts.map +1 -1
  142. package/script/generated-sdk/state/mod.js +2 -2
  143. package/script/generated-sdk/state/owned_api.d.ts.map +1 -1
  144. package/script/generated-sdk/state/owned_api.js +35 -7
  145. package/script/generated-sdk/state/schemas.d.ts.map +1 -1
  146. package/script/generated-sdk/state/schemas.js +441 -14
  147. package/script/generated-sdk/state/types.d.ts +15 -15
  148. package/script/generated-sdk/state/types.d.ts.map +1 -1
  149. package/script/generated-sdk/trellis-core/api.d.ts.map +1 -1
  150. package/script/generated-sdk/trellis-core/client.d.ts.map +1 -1
  151. package/script/generated-sdk/trellis-core/contract.d.ts.map +1 -1
  152. package/script/generated-sdk/trellis-core/contract.js +744 -7
  153. package/script/generated-sdk/trellis-core/mod.d.ts +2 -2
  154. package/script/generated-sdk/trellis-core/mod.d.ts.map +1 -1
  155. package/script/generated-sdk/trellis-core/mod.js +2 -2
  156. package/script/generated-sdk/trellis-core/owned_api.d.ts.map +1 -1
  157. package/script/generated-sdk/trellis-core/schemas.d.ts.map +1 -1
  158. package/script/generated-sdk/trellis-core/schemas.js +626 -8
  159. package/script/generated-sdk/trellis-core/types.d.ts +14 -14
  160. package/script/generated-sdk/trellis-core/types.d.ts.map +1 -1
  161. package/script/server/health.d.ts.map +1 -1
  162. package/script/server/health.js +34 -3
  163. package/script/server/service.d.ts +35 -13
  164. package/script/server/service.d.ts.map +1 -1
  165. package/script/server/service.js +32 -2
  166. package/script/server.d.ts.map +1 -1
  167. package/script/server.js +48 -7
  168. package/script/service/deno.d.ts +1 -1
  169. package/script/service/deno.d.ts.map +1 -1
  170. package/script/service/mod.d.ts +1 -1
  171. package/script/service/mod.d.ts.map +1 -1
  172. package/script/service/node.d.ts +1 -1
  173. package/script/service/node.d.ts.map +1 -1
  174. package/script/trellis.d.ts +28 -4
  175. package/script/trellis.d.ts.map +1 -1
  176. package/script/trellis.js +118 -26
  177. package/src/client.ts +4 -0
  178. package/src/client_connect.ts +11 -9
  179. package/src/sdk/_generated/auth/api.ts +10 -21
  180. package/src/sdk/_generated/auth/client.ts +1178 -160
  181. package/src/sdk/_generated/auth/contract.ts +9637 -13
  182. package/src/sdk/_generated/auth/mod.ts +22 -3
  183. package/src/sdk/_generated/auth/owned_api.ts +897 -264
  184. package/src/sdk/_generated/auth/schemas.ts +6630 -278
  185. package/src/sdk/_generated/auth/types.ts +2950 -359
  186. package/src/sdk/_generated/core/api.ts +10 -21
  187. package/src/sdk/_generated/core/client.ts +105 -12
  188. package/src/sdk/_generated/core/contract.ts +774 -13
  189. package/src/sdk/_generated/core/mod.ts +17 -2
  190. package/src/sdk/_generated/core/owned_api.ts +40 -24
  191. package/src/sdk/_generated/core/schemas.ts +626 -9
  192. package/src/sdk/_generated/core/types.ts +233 -18
  193. package/src/sdk/_generated/health/api.ts +10 -21
  194. package/src/sdk/_generated/health/client.ts +104 -8
  195. package/src/sdk/_generated/health/contract.ts +144 -13
  196. package/src/sdk/_generated/health/mod.ts +17 -2
  197. package/src/sdk/_generated/health/owned_api.ts +4 -9
  198. package/src/sdk/_generated/health/schemas.ts +79 -2
  199. package/src/sdk/_generated/health/types.ts +31 -4
  200. package/src/sdk/_generated/jobs/api.ts +20 -18
  201. package/src/sdk/_generated/jobs/client.ts +199 -28
  202. package/src/sdk/_generated/jobs/contract.ts +1119 -13
  203. package/src/sdk/_generated/jobs/mod.ts +17 -2
  204. package/src/sdk/_generated/jobs/owned_api.ts +64 -27
  205. package/src/sdk/_generated/jobs/schemas.ts +776 -20
  206. package/src/sdk/_generated/jobs/types.ts +407 -34
  207. package/src/sdk/_generated/state/api.ts +11 -18
  208. package/src/sdk/_generated/state/client.ts +169 -22
  209. package/src/sdk/_generated/state/contract.ts +670 -13
  210. package/src/sdk/_generated/state/mod.ts +17 -2
  211. package/src/sdk/_generated/state/owned_api.ts +65 -25
  212. package/src/sdk/_generated/state/schemas.ts +441 -15
  213. package/src/sdk/_generated/state/types.ts +229 -26
  214. package/src/server/health.ts +41 -3
  215. package/src/server/service.ts +140 -18
  216. package/src/server.ts +62 -7
  217. package/src/service/deno.ts +4 -0
  218. package/src/service/mod.ts +4 -0
  219. package/src/service/node.ts +4 -0
  220. package/src/trellis.ts +167 -55
@@ -1,20 +1,770 @@
1
1
  // Generated from ./generated/contracts/manifests/trellis.jobs@v1.json
2
2
  export const EmptySchema = { "properties": {}, "type": "object" };
3
- export const JobsCancelRequestSchema = { "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.", "properties": { "id": { "minLength": 1, "type": "string" } }, "required": ["id"], "type": "object" };
4
- export const JobsCancelResponseSchema = { "properties": { "job": { "properties": { "completedAt": { "format": "date-time", "type": "string" }, "context": { "properties": { "requestId": { "minLength": 1, "type": "string" }, "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" }, "traceparent": { "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$", "type": "string" }, "tracestate": { "minLength": 1, "type": "string" } }, "required": ["requestId", "traceId", "traceparent"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "id": { "minLength": 1, "type": "string" }, "lastError": { "type": "string" }, "logs": { "items": { "properties": { "level": { "anyOf": [{ "const": "info", "type": "string" }, { "const": "warn", "type": "string" }, { "const": "error", "type": "string" }] }, "message": { "type": "string" }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["timestamp", "level", "message"], "type": "object" }, "type": "array" }, "maxTries": { "minimum": 1, "type": "integer" }, "payload": {}, "progress": { "properties": { "current": { "minimum": 0, "type": "integer" }, "message": { "type": "string" }, "step": { "type": "string" }, "total": { "minimum": 0, "type": "integer" } }, "type": "object" }, "result": {}, "service": { "minLength": 1, "type": "string" }, "startedAt": { "format": "date-time", "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "tries": { "minimum": 0, "type": "integer" }, "type": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["id", "context", "service", "type", "state", "payload", "createdAt", "updatedAt", "tries", "maxTries"], "type": "object" } }, "required": ["job"], "type": "object" };
5
- export const JobsDismissDLQRequestSchema = { "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.", "properties": { "id": { "minLength": 1, "type": "string" } }, "required": ["id"], "type": "object" };
6
- export const JobsDismissDLQResponseSchema = { "properties": { "job": { "properties": { "completedAt": { "format": "date-time", "type": "string" }, "context": { "properties": { "requestId": { "minLength": 1, "type": "string" }, "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" }, "traceparent": { "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$", "type": "string" }, "tracestate": { "minLength": 1, "type": "string" } }, "required": ["requestId", "traceId", "traceparent"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "id": { "minLength": 1, "type": "string" }, "lastError": { "type": "string" }, "logs": { "items": { "properties": { "level": { "anyOf": [{ "const": "info", "type": "string" }, { "const": "warn", "type": "string" }, { "const": "error", "type": "string" }] }, "message": { "type": "string" }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["timestamp", "level", "message"], "type": "object" }, "type": "array" }, "maxTries": { "minimum": 1, "type": "integer" }, "payload": {}, "progress": { "properties": { "current": { "minimum": 0, "type": "integer" }, "message": { "type": "string" }, "step": { "type": "string" }, "total": { "minimum": 0, "type": "integer" } }, "type": "object" }, "result": {}, "service": { "minLength": 1, "type": "string" }, "startedAt": { "format": "date-time", "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "tries": { "minimum": 0, "type": "integer" }, "type": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["id", "context", "service", "type", "state", "payload", "createdAt", "updatedAt", "tries", "maxTries"], "type": "object" } }, "required": ["job"], "type": "object" };
7
- export const JobsGetRequestSchema = { "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.", "properties": { "id": { "minLength": 1, "type": "string" } }, "required": ["id"], "type": "object" };
8
- export const JobsGetResponseSchema = { "properties": { "job": { "properties": { "completedAt": { "format": "date-time", "type": "string" }, "context": { "properties": { "requestId": { "minLength": 1, "type": "string" }, "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" }, "traceparent": { "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$", "type": "string" }, "tracestate": { "minLength": 1, "type": "string" } }, "required": ["requestId", "traceId", "traceparent"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "id": { "minLength": 1, "type": "string" }, "lastError": { "type": "string" }, "logs": { "items": { "properties": { "level": { "anyOf": [{ "const": "info", "type": "string" }, { "const": "warn", "type": "string" }, { "const": "error", "type": "string" }] }, "message": { "type": "string" }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["timestamp", "level", "message"], "type": "object" }, "type": "array" }, "maxTries": { "minimum": 1, "type": "integer" }, "payload": {}, "progress": { "properties": { "current": { "minimum": 0, "type": "integer" }, "message": { "type": "string" }, "step": { "type": "string" }, "total": { "minimum": 0, "type": "integer" } }, "type": "object" }, "result": {}, "service": { "minLength": 1, "type": "string" }, "startedAt": { "format": "date-time", "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "tries": { "minimum": 0, "type": "integer" }, "type": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["id", "context", "service", "type", "state", "payload", "createdAt", "updatedAt", "tries", "maxTries"], "type": "object" } }, "required": ["job"], "type": "object" };
9
- export const JobsHealthResponseSchema = { "properties": { "checks": { "items": { "patternProperties": { "^.*$": {} }, "type": "object" }, "type": "array" }, "service": { "minLength": 1, "type": "string" }, "status": {}, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["service", "status", "timestamp", "checks"], "type": "object" };
10
- export const JobsListDLQRequestSchema = { "properties": { "limit": { "minimum": 1, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "service": { "minLength": 1, "type": "string" }, "since": { "format": "date-time", "type": "string" }, "type": { "minLength": 1, "type": "string" } }, "required": ["limit"], "type": "object" };
11
- export const JobsListDLQResponseSchema = { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "items": { "properties": { "completedAt": { "format": "date-time", "type": "string" }, "context": { "properties": { "requestId": { "minLength": 1, "type": "string" }, "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" }, "traceparent": { "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$", "type": "string" }, "tracestate": { "minLength": 1, "type": "string" } }, "required": ["requestId", "traceId", "traceparent"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "id": { "minLength": 1, "type": "string" }, "lastError": { "type": "string" }, "logs": { "items": { "properties": { "level": { "anyOf": [{ "const": "info", "type": "string" }, { "const": "warn", "type": "string" }, { "const": "error", "type": "string" }] }, "message": { "type": "string" }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["timestamp", "level", "message"], "type": "object" }, "type": "array" }, "maxTries": { "minimum": 1, "type": "integer" }, "payload": {}, "progress": { "properties": { "current": { "minimum": 0, "type": "integer" }, "message": { "type": "string" }, "step": { "type": "string" }, "total": { "minimum": 0, "type": "integer" } }, "type": "object" }, "result": {}, "service": { "minLength": 1, "type": "string" }, "startedAt": { "format": "date-time", "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "tries": { "minimum": 0, "type": "integer" }, "type": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["id", "context", "service", "type", "state", "payload", "createdAt", "updatedAt", "tries", "maxTries"], "type": "object" }, "type": "array" }, "limit": { "minimum": 1, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" };
12
- export const JobsListRequestSchema = { "properties": { "limit": { "minimum": 1, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" }, "service": { "minLength": 1, "type": "string" }, "since": { "format": "date-time", "type": "string" }, "state": { "items": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "type": "array" }, "type": { "minLength": 1, "type": "string" } }, "required": ["limit"], "type": "object" };
13
- export const JobsListResponseSchema = { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "items": { "properties": { "completedAt": { "format": "date-time", "type": "string" }, "context": { "properties": { "requestId": { "minLength": 1, "type": "string" }, "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" }, "traceparent": { "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$", "type": "string" }, "tracestate": { "minLength": 1, "type": "string" } }, "required": ["requestId", "traceId", "traceparent"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "id": { "minLength": 1, "type": "string" }, "lastError": { "type": "string" }, "logs": { "items": { "properties": { "level": { "anyOf": [{ "const": "info", "type": "string" }, { "const": "warn", "type": "string" }, { "const": "error", "type": "string" }] }, "message": { "type": "string" }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["timestamp", "level", "message"], "type": "object" }, "type": "array" }, "maxTries": { "minimum": 1, "type": "integer" }, "payload": {}, "progress": { "properties": { "current": { "minimum": 0, "type": "integer" }, "message": { "type": "string" }, "step": { "type": "string" }, "total": { "minimum": 0, "type": "integer" } }, "type": "object" }, "result": {}, "service": { "minLength": 1, "type": "string" }, "startedAt": { "format": "date-time", "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "tries": { "minimum": 0, "type": "integer" }, "type": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["id", "context", "service", "type", "state", "payload", "createdAt", "updatedAt", "tries", "maxTries"], "type": "object" }, "type": "array" }, "limit": { "minimum": 1, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" };
14
- export const JobsListServicesRequestSchema = { "properties": { "limit": { "minimum": 1, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["limit"], "type": "object" };
15
- export const JobsListServicesResponseSchema = { "properties": { "count": { "minimum": 0, "type": "integer" }, "entries": { "items": { "properties": { "healthy": { "type": "boolean" }, "name": { "minLength": 1, "type": "string" }, "workers": { "items": { "properties": { "concurrency": { "minimum": 1, "type": "integer" }, "instanceId": { "minLength": 1, "type": "string" }, "jobType": { "minLength": 1, "type": "string" }, "service": { "minLength": 1, "type": "string" }, "timestamp": { "format": "date-time", "type": "string" }, "version": { "minLength": 1, "type": "string" } }, "required": ["service", "jobType", "instanceId", "timestamp"], "type": "object" }, "type": "array" } }, "required": ["name", "healthy", "workers"], "type": "object" }, "type": "array" }, "limit": { "minimum": 1, "type": "integer" }, "nextOffset": { "minimum": 0, "type": "integer" }, "offset": { "minimum": 0, "type": "integer" } }, "required": ["entries", "count", "offset", "limit"], "type": "object" };
16
- export const JobsReplayDLQRequestSchema = { "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.", "properties": { "id": { "minLength": 1, "type": "string" } }, "required": ["id"], "type": "object" };
17
- export const JobsReplayDLQResponseSchema = { "properties": { "job": { "properties": { "completedAt": { "format": "date-time", "type": "string" }, "context": { "properties": { "requestId": { "minLength": 1, "type": "string" }, "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" }, "traceparent": { "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$", "type": "string" }, "tracestate": { "minLength": 1, "type": "string" } }, "required": ["requestId", "traceId", "traceparent"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "id": { "minLength": 1, "type": "string" }, "lastError": { "type": "string" }, "logs": { "items": { "properties": { "level": { "anyOf": [{ "const": "info", "type": "string" }, { "const": "warn", "type": "string" }, { "const": "error", "type": "string" }] }, "message": { "type": "string" }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["timestamp", "level", "message"], "type": "object" }, "type": "array" }, "maxTries": { "minimum": 1, "type": "integer" }, "payload": {}, "progress": { "properties": { "current": { "minimum": 0, "type": "integer" }, "message": { "type": "string" }, "step": { "type": "string" }, "total": { "minimum": 0, "type": "integer" } }, "type": "object" }, "result": {}, "service": { "minLength": 1, "type": "string" }, "startedAt": { "format": "date-time", "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "tries": { "minimum": 0, "type": "integer" }, "type": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["id", "context", "service", "type", "state", "payload", "createdAt", "updatedAt", "tries", "maxTries"], "type": "object" } }, "required": ["job"], "type": "object" };
18
- export const JobsRetryRequestSchema = { "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.", "properties": { "id": { "minLength": 1, "type": "string" } }, "required": ["id"], "type": "object" };
19
- export const JobsRetryResponseSchema = { "properties": { "job": { "properties": { "completedAt": { "format": "date-time", "type": "string" }, "context": { "properties": { "requestId": { "minLength": 1, "type": "string" }, "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" }, "traceparent": { "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$", "type": "string" }, "tracestate": { "minLength": 1, "type": "string" } }, "required": ["requestId", "traceId", "traceparent"], "type": "object" }, "createdAt": { "format": "date-time", "type": "string" }, "deadline": { "format": "date-time", "type": "string" }, "id": { "minLength": 1, "type": "string" }, "lastError": { "type": "string" }, "logs": { "items": { "properties": { "level": { "anyOf": [{ "const": "info", "type": "string" }, { "const": "warn", "type": "string" }, { "const": "error", "type": "string" }] }, "message": { "type": "string" }, "timestamp": { "format": "date-time", "type": "string" } }, "required": ["timestamp", "level", "message"], "type": "object" }, "type": "array" }, "maxTries": { "minimum": 1, "type": "integer" }, "payload": {}, "progress": { "properties": { "current": { "minimum": 0, "type": "integer" }, "message": { "type": "string" }, "step": { "type": "string" }, "total": { "minimum": 0, "type": "integer" } }, "type": "object" }, "result": {}, "service": { "minLength": 1, "type": "string" }, "startedAt": { "format": "date-time", "type": "string" }, "state": { "anyOf": [{ "const": "pending", "type": "string" }, { "const": "active", "type": "string" }, { "const": "retry", "type": "string" }, { "const": "completed", "type": "string" }, { "const": "failed", "type": "string" }, { "const": "cancelled", "type": "string" }, { "const": "expired", "type": "string" }, { "const": "dead", "type": "string" }, { "const": "dismissed", "type": "string" }] }, "tries": { "minimum": 0, "type": "integer" }, "type": { "minLength": 1, "type": "string" }, "updatedAt": { "format": "date-time", "type": "string" } }, "required": ["id", "context", "service", "type", "state", "payload", "createdAt", "updatedAt", "tries", "maxTries"], "type": "object" } }, "required": ["job"], "type": "object" };
20
- export const NotFoundErrorDataSchema = { "properties": { "context": { "patternProperties": { "^.*$": {} }, "type": "object" }, "id": { "minLength": 1, "type": "string" }, "jobId": { "minLength": 1, "type": "string" }, "message": { "type": "string" }, "resource": { "minLength": 1, "type": "string" }, "traceId": { "type": "string" }, "type": { "const": "NotFoundError", "type": "string" } }, "required": ["id", "type", "message", "resource"], "type": "object" };
3
+ export const JobsCancelRequestSchema = {
4
+ "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.",
5
+ "properties": { "id": { "minLength": 1, "type": "string" } },
6
+ "required": ["id"],
7
+ "type": "object",
8
+ };
9
+ export const JobsCancelResponseSchema = {
10
+ "properties": {
11
+ "job": {
12
+ "properties": {
13
+ "completedAt": { "format": "date-time", "type": "string" },
14
+ "context": {
15
+ "properties": {
16
+ "requestId": { "minLength": 1, "type": "string" },
17
+ "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" },
18
+ "traceparent": {
19
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$",
20
+ "type": "string",
21
+ },
22
+ "tracestate": { "minLength": 1, "type": "string" },
23
+ },
24
+ "required": ["requestId", "traceId", "traceparent"],
25
+ "type": "object",
26
+ },
27
+ "createdAt": { "format": "date-time", "type": "string" },
28
+ "deadline": { "format": "date-time", "type": "string" },
29
+ "id": { "minLength": 1, "type": "string" },
30
+ "lastError": { "type": "string" },
31
+ "logs": {
32
+ "items": {
33
+ "properties": {
34
+ "level": {
35
+ "anyOf": [{ "const": "info", "type": "string" }, {
36
+ "const": "warn",
37
+ "type": "string",
38
+ }, { "const": "error", "type": "string" }],
39
+ },
40
+ "message": { "type": "string" },
41
+ "timestamp": { "format": "date-time", "type": "string" },
42
+ },
43
+ "required": ["timestamp", "level", "message"],
44
+ "type": "object",
45
+ },
46
+ "type": "array",
47
+ },
48
+ "maxTries": { "minimum": 1, "type": "integer" },
49
+ "payload": {},
50
+ "progress": {
51
+ "properties": {
52
+ "current": { "minimum": 0, "type": "integer" },
53
+ "message": { "type": "string" },
54
+ "step": { "type": "string" },
55
+ "total": { "minimum": 0, "type": "integer" },
56
+ },
57
+ "type": "object",
58
+ },
59
+ "result": {},
60
+ "service": { "minLength": 1, "type": "string" },
61
+ "startedAt": { "format": "date-time", "type": "string" },
62
+ "state": {
63
+ "anyOf": [
64
+ { "const": "pending", "type": "string" },
65
+ { "const": "active", "type": "string" },
66
+ { "const": "retry", "type": "string" },
67
+ { "const": "completed", "type": "string" },
68
+ { "const": "failed", "type": "string" },
69
+ { "const": "cancelled", "type": "string" },
70
+ { "const": "expired", "type": "string" },
71
+ { "const": "dead", "type": "string" },
72
+ { "const": "dismissed", "type": "string" },
73
+ ],
74
+ },
75
+ "tries": { "minimum": 0, "type": "integer" },
76
+ "type": { "minLength": 1, "type": "string" },
77
+ "updatedAt": { "format": "date-time", "type": "string" },
78
+ },
79
+ "required": [
80
+ "id",
81
+ "context",
82
+ "service",
83
+ "type",
84
+ "state",
85
+ "payload",
86
+ "createdAt",
87
+ "updatedAt",
88
+ "tries",
89
+ "maxTries",
90
+ ],
91
+ "type": "object",
92
+ },
93
+ },
94
+ "required": ["job"],
95
+ "type": "object",
96
+ };
97
+ export const JobsDismissDLQRequestSchema = {
98
+ "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.",
99
+ "properties": { "id": { "minLength": 1, "type": "string" } },
100
+ "required": ["id"],
101
+ "type": "object",
102
+ };
103
+ export const JobsDismissDLQResponseSchema = {
104
+ "properties": {
105
+ "job": {
106
+ "properties": {
107
+ "completedAt": { "format": "date-time", "type": "string" },
108
+ "context": {
109
+ "properties": {
110
+ "requestId": { "minLength": 1, "type": "string" },
111
+ "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" },
112
+ "traceparent": {
113
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$",
114
+ "type": "string",
115
+ },
116
+ "tracestate": { "minLength": 1, "type": "string" },
117
+ },
118
+ "required": ["requestId", "traceId", "traceparent"],
119
+ "type": "object",
120
+ },
121
+ "createdAt": { "format": "date-time", "type": "string" },
122
+ "deadline": { "format": "date-time", "type": "string" },
123
+ "id": { "minLength": 1, "type": "string" },
124
+ "lastError": { "type": "string" },
125
+ "logs": {
126
+ "items": {
127
+ "properties": {
128
+ "level": {
129
+ "anyOf": [{ "const": "info", "type": "string" }, {
130
+ "const": "warn",
131
+ "type": "string",
132
+ }, { "const": "error", "type": "string" }],
133
+ },
134
+ "message": { "type": "string" },
135
+ "timestamp": { "format": "date-time", "type": "string" },
136
+ },
137
+ "required": ["timestamp", "level", "message"],
138
+ "type": "object",
139
+ },
140
+ "type": "array",
141
+ },
142
+ "maxTries": { "minimum": 1, "type": "integer" },
143
+ "payload": {},
144
+ "progress": {
145
+ "properties": {
146
+ "current": { "minimum": 0, "type": "integer" },
147
+ "message": { "type": "string" },
148
+ "step": { "type": "string" },
149
+ "total": { "minimum": 0, "type": "integer" },
150
+ },
151
+ "type": "object",
152
+ },
153
+ "result": {},
154
+ "service": { "minLength": 1, "type": "string" },
155
+ "startedAt": { "format": "date-time", "type": "string" },
156
+ "state": {
157
+ "anyOf": [
158
+ { "const": "pending", "type": "string" },
159
+ { "const": "active", "type": "string" },
160
+ { "const": "retry", "type": "string" },
161
+ { "const": "completed", "type": "string" },
162
+ { "const": "failed", "type": "string" },
163
+ { "const": "cancelled", "type": "string" },
164
+ { "const": "expired", "type": "string" },
165
+ { "const": "dead", "type": "string" },
166
+ { "const": "dismissed", "type": "string" },
167
+ ],
168
+ },
169
+ "tries": { "minimum": 0, "type": "integer" },
170
+ "type": { "minLength": 1, "type": "string" },
171
+ "updatedAt": { "format": "date-time", "type": "string" },
172
+ },
173
+ "required": [
174
+ "id",
175
+ "context",
176
+ "service",
177
+ "type",
178
+ "state",
179
+ "payload",
180
+ "createdAt",
181
+ "updatedAt",
182
+ "tries",
183
+ "maxTries",
184
+ ],
185
+ "type": "object",
186
+ },
187
+ },
188
+ "required": ["job"],
189
+ "type": "object",
190
+ };
191
+ export const JobsGetRequestSchema = {
192
+ "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.",
193
+ "properties": { "id": { "minLength": 1, "type": "string" } },
194
+ "required": ["id"],
195
+ "type": "object",
196
+ };
197
+ export const JobsGetResponseSchema = {
198
+ "properties": {
199
+ "job": {
200
+ "properties": {
201
+ "completedAt": { "format": "date-time", "type": "string" },
202
+ "context": {
203
+ "properties": {
204
+ "requestId": { "minLength": 1, "type": "string" },
205
+ "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" },
206
+ "traceparent": {
207
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$",
208
+ "type": "string",
209
+ },
210
+ "tracestate": { "minLength": 1, "type": "string" },
211
+ },
212
+ "required": ["requestId", "traceId", "traceparent"],
213
+ "type": "object",
214
+ },
215
+ "createdAt": { "format": "date-time", "type": "string" },
216
+ "deadline": { "format": "date-time", "type": "string" },
217
+ "id": { "minLength": 1, "type": "string" },
218
+ "lastError": { "type": "string" },
219
+ "logs": {
220
+ "items": {
221
+ "properties": {
222
+ "level": {
223
+ "anyOf": [{ "const": "info", "type": "string" }, {
224
+ "const": "warn",
225
+ "type": "string",
226
+ }, { "const": "error", "type": "string" }],
227
+ },
228
+ "message": { "type": "string" },
229
+ "timestamp": { "format": "date-time", "type": "string" },
230
+ },
231
+ "required": ["timestamp", "level", "message"],
232
+ "type": "object",
233
+ },
234
+ "type": "array",
235
+ },
236
+ "maxTries": { "minimum": 1, "type": "integer" },
237
+ "payload": {},
238
+ "progress": {
239
+ "properties": {
240
+ "current": { "minimum": 0, "type": "integer" },
241
+ "message": { "type": "string" },
242
+ "step": { "type": "string" },
243
+ "total": { "minimum": 0, "type": "integer" },
244
+ },
245
+ "type": "object",
246
+ },
247
+ "result": {},
248
+ "service": { "minLength": 1, "type": "string" },
249
+ "startedAt": { "format": "date-time", "type": "string" },
250
+ "state": {
251
+ "anyOf": [
252
+ { "const": "pending", "type": "string" },
253
+ { "const": "active", "type": "string" },
254
+ { "const": "retry", "type": "string" },
255
+ { "const": "completed", "type": "string" },
256
+ { "const": "failed", "type": "string" },
257
+ { "const": "cancelled", "type": "string" },
258
+ { "const": "expired", "type": "string" },
259
+ { "const": "dead", "type": "string" },
260
+ { "const": "dismissed", "type": "string" },
261
+ ],
262
+ },
263
+ "tries": { "minimum": 0, "type": "integer" },
264
+ "type": { "minLength": 1, "type": "string" },
265
+ "updatedAt": { "format": "date-time", "type": "string" },
266
+ },
267
+ "required": [
268
+ "id",
269
+ "context",
270
+ "service",
271
+ "type",
272
+ "state",
273
+ "payload",
274
+ "createdAt",
275
+ "updatedAt",
276
+ "tries",
277
+ "maxTries",
278
+ ],
279
+ "type": "object",
280
+ },
281
+ },
282
+ "required": ["job"],
283
+ "type": "object",
284
+ };
285
+ export const JobsHealthResponseSchema = {
286
+ "properties": {
287
+ "checks": {
288
+ "items": { "patternProperties": { "^.*$": {} }, "type": "object" },
289
+ "type": "array",
290
+ },
291
+ "service": { "minLength": 1, "type": "string" },
292
+ "status": {},
293
+ "timestamp": { "format": "date-time", "type": "string" },
294
+ },
295
+ "required": ["service", "status", "timestamp", "checks"],
296
+ "type": "object",
297
+ };
298
+ export const JobsListDLQRequestSchema = {
299
+ "properties": {
300
+ "limit": { "minimum": 1, "type": "integer" },
301
+ "offset": { "minimum": 0, "type": "integer" },
302
+ "service": { "minLength": 1, "type": "string" },
303
+ "since": { "format": "date-time", "type": "string" },
304
+ "type": { "minLength": 1, "type": "string" },
305
+ },
306
+ "required": ["limit"],
307
+ "type": "object",
308
+ };
309
+ export const JobsListDLQResponseSchema = {
310
+ "properties": {
311
+ "count": { "minimum": 0, "type": "integer" },
312
+ "entries": {
313
+ "items": {
314
+ "properties": {
315
+ "completedAt": { "format": "date-time", "type": "string" },
316
+ "context": {
317
+ "properties": {
318
+ "requestId": { "minLength": 1, "type": "string" },
319
+ "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" },
320
+ "traceparent": {
321
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$",
322
+ "type": "string",
323
+ },
324
+ "tracestate": { "minLength": 1, "type": "string" },
325
+ },
326
+ "required": ["requestId", "traceId", "traceparent"],
327
+ "type": "object",
328
+ },
329
+ "createdAt": { "format": "date-time", "type": "string" },
330
+ "deadline": { "format": "date-time", "type": "string" },
331
+ "id": { "minLength": 1, "type": "string" },
332
+ "lastError": { "type": "string" },
333
+ "logs": {
334
+ "items": {
335
+ "properties": {
336
+ "level": {
337
+ "anyOf": [{ "const": "info", "type": "string" }, {
338
+ "const": "warn",
339
+ "type": "string",
340
+ }, { "const": "error", "type": "string" }],
341
+ },
342
+ "message": { "type": "string" },
343
+ "timestamp": { "format": "date-time", "type": "string" },
344
+ },
345
+ "required": ["timestamp", "level", "message"],
346
+ "type": "object",
347
+ },
348
+ "type": "array",
349
+ },
350
+ "maxTries": { "minimum": 1, "type": "integer" },
351
+ "payload": {},
352
+ "progress": {
353
+ "properties": {
354
+ "current": { "minimum": 0, "type": "integer" },
355
+ "message": { "type": "string" },
356
+ "step": { "type": "string" },
357
+ "total": { "minimum": 0, "type": "integer" },
358
+ },
359
+ "type": "object",
360
+ },
361
+ "result": {},
362
+ "service": { "minLength": 1, "type": "string" },
363
+ "startedAt": { "format": "date-time", "type": "string" },
364
+ "state": {
365
+ "anyOf": [
366
+ { "const": "pending", "type": "string" },
367
+ { "const": "active", "type": "string" },
368
+ { "const": "retry", "type": "string" },
369
+ { "const": "completed", "type": "string" },
370
+ { "const": "failed", "type": "string" },
371
+ { "const": "cancelled", "type": "string" },
372
+ { "const": "expired", "type": "string" },
373
+ { "const": "dead", "type": "string" },
374
+ { "const": "dismissed", "type": "string" },
375
+ ],
376
+ },
377
+ "tries": { "minimum": 0, "type": "integer" },
378
+ "type": { "minLength": 1, "type": "string" },
379
+ "updatedAt": { "format": "date-time", "type": "string" },
380
+ },
381
+ "required": [
382
+ "id",
383
+ "context",
384
+ "service",
385
+ "type",
386
+ "state",
387
+ "payload",
388
+ "createdAt",
389
+ "updatedAt",
390
+ "tries",
391
+ "maxTries",
392
+ ],
393
+ "type": "object",
394
+ },
395
+ "type": "array",
396
+ },
397
+ "limit": { "minimum": 1, "type": "integer" },
398
+ "nextOffset": { "minimum": 0, "type": "integer" },
399
+ "offset": { "minimum": 0, "type": "integer" },
400
+ },
401
+ "required": ["entries", "count", "offset", "limit"],
402
+ "type": "object",
403
+ };
404
+ export const JobsListRequestSchema = {
405
+ "properties": {
406
+ "limit": { "minimum": 1, "type": "integer" },
407
+ "offset": { "minimum": 0, "type": "integer" },
408
+ "service": { "minLength": 1, "type": "string" },
409
+ "since": { "format": "date-time", "type": "string" },
410
+ "state": {
411
+ "items": {
412
+ "anyOf": [
413
+ { "const": "pending", "type": "string" },
414
+ { "const": "active", "type": "string" },
415
+ { "const": "retry", "type": "string" },
416
+ { "const": "completed", "type": "string" },
417
+ { "const": "failed", "type": "string" },
418
+ { "const": "cancelled", "type": "string" },
419
+ { "const": "expired", "type": "string" },
420
+ { "const": "dead", "type": "string" },
421
+ { "const": "dismissed", "type": "string" },
422
+ ],
423
+ },
424
+ "type": "array",
425
+ },
426
+ "type": { "minLength": 1, "type": "string" },
427
+ },
428
+ "required": ["limit"],
429
+ "type": "object",
430
+ };
431
+ export const JobsListResponseSchema = {
432
+ "properties": {
433
+ "count": { "minimum": 0, "type": "integer" },
434
+ "entries": {
435
+ "items": {
436
+ "properties": {
437
+ "completedAt": { "format": "date-time", "type": "string" },
438
+ "context": {
439
+ "properties": {
440
+ "requestId": { "minLength": 1, "type": "string" },
441
+ "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" },
442
+ "traceparent": {
443
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$",
444
+ "type": "string",
445
+ },
446
+ "tracestate": { "minLength": 1, "type": "string" },
447
+ },
448
+ "required": ["requestId", "traceId", "traceparent"],
449
+ "type": "object",
450
+ },
451
+ "createdAt": { "format": "date-time", "type": "string" },
452
+ "deadline": { "format": "date-time", "type": "string" },
453
+ "id": { "minLength": 1, "type": "string" },
454
+ "lastError": { "type": "string" },
455
+ "logs": {
456
+ "items": {
457
+ "properties": {
458
+ "level": {
459
+ "anyOf": [{ "const": "info", "type": "string" }, {
460
+ "const": "warn",
461
+ "type": "string",
462
+ }, { "const": "error", "type": "string" }],
463
+ },
464
+ "message": { "type": "string" },
465
+ "timestamp": { "format": "date-time", "type": "string" },
466
+ },
467
+ "required": ["timestamp", "level", "message"],
468
+ "type": "object",
469
+ },
470
+ "type": "array",
471
+ },
472
+ "maxTries": { "minimum": 1, "type": "integer" },
473
+ "payload": {},
474
+ "progress": {
475
+ "properties": {
476
+ "current": { "minimum": 0, "type": "integer" },
477
+ "message": { "type": "string" },
478
+ "step": { "type": "string" },
479
+ "total": { "minimum": 0, "type": "integer" },
480
+ },
481
+ "type": "object",
482
+ },
483
+ "result": {},
484
+ "service": { "minLength": 1, "type": "string" },
485
+ "startedAt": { "format": "date-time", "type": "string" },
486
+ "state": {
487
+ "anyOf": [
488
+ { "const": "pending", "type": "string" },
489
+ { "const": "active", "type": "string" },
490
+ { "const": "retry", "type": "string" },
491
+ { "const": "completed", "type": "string" },
492
+ { "const": "failed", "type": "string" },
493
+ { "const": "cancelled", "type": "string" },
494
+ { "const": "expired", "type": "string" },
495
+ { "const": "dead", "type": "string" },
496
+ { "const": "dismissed", "type": "string" },
497
+ ],
498
+ },
499
+ "tries": { "minimum": 0, "type": "integer" },
500
+ "type": { "minLength": 1, "type": "string" },
501
+ "updatedAt": { "format": "date-time", "type": "string" },
502
+ },
503
+ "required": [
504
+ "id",
505
+ "context",
506
+ "service",
507
+ "type",
508
+ "state",
509
+ "payload",
510
+ "createdAt",
511
+ "updatedAt",
512
+ "tries",
513
+ "maxTries",
514
+ ],
515
+ "type": "object",
516
+ },
517
+ "type": "array",
518
+ },
519
+ "limit": { "minimum": 1, "type": "integer" },
520
+ "nextOffset": { "minimum": 0, "type": "integer" },
521
+ "offset": { "minimum": 0, "type": "integer" },
522
+ },
523
+ "required": ["entries", "count", "offset", "limit"],
524
+ "type": "object",
525
+ };
526
+ export const JobsListServicesRequestSchema = {
527
+ "properties": {
528
+ "limit": { "minimum": 1, "type": "integer" },
529
+ "offset": { "minimum": 0, "type": "integer" },
530
+ },
531
+ "required": ["limit"],
532
+ "type": "object",
533
+ };
534
+ export const JobsListServicesResponseSchema = {
535
+ "properties": {
536
+ "count": { "minimum": 0, "type": "integer" },
537
+ "entries": {
538
+ "items": {
539
+ "properties": {
540
+ "healthy": { "type": "boolean" },
541
+ "name": { "minLength": 1, "type": "string" },
542
+ "workers": {
543
+ "items": {
544
+ "properties": {
545
+ "concurrency": { "minimum": 1, "type": "integer" },
546
+ "instanceId": { "minLength": 1, "type": "string" },
547
+ "jobType": { "minLength": 1, "type": "string" },
548
+ "service": { "minLength": 1, "type": "string" },
549
+ "timestamp": { "format": "date-time", "type": "string" },
550
+ "version": { "minLength": 1, "type": "string" },
551
+ },
552
+ "required": ["service", "jobType", "instanceId", "timestamp"],
553
+ "type": "object",
554
+ },
555
+ "type": "array",
556
+ },
557
+ },
558
+ "required": ["name", "healthy", "workers"],
559
+ "type": "object",
560
+ },
561
+ "type": "array",
562
+ },
563
+ "limit": { "minimum": 1, "type": "integer" },
564
+ "nextOffset": { "minimum": 0, "type": "integer" },
565
+ "offset": { "minimum": 0, "type": "integer" },
566
+ },
567
+ "required": ["entries", "count", "offset", "limit"],
568
+ "type": "object",
569
+ };
570
+ export const JobsReplayDLQRequestSchema = {
571
+ "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.",
572
+ "properties": { "id": { "minLength": 1, "type": "string" } },
573
+ "required": ["id"],
574
+ "type": "object",
575
+ };
576
+ export const JobsReplayDLQResponseSchema = {
577
+ "properties": {
578
+ "job": {
579
+ "properties": {
580
+ "completedAt": { "format": "date-time", "type": "string" },
581
+ "context": {
582
+ "properties": {
583
+ "requestId": { "minLength": 1, "type": "string" },
584
+ "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" },
585
+ "traceparent": {
586
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$",
587
+ "type": "string",
588
+ },
589
+ "tracestate": { "minLength": 1, "type": "string" },
590
+ },
591
+ "required": ["requestId", "traceId", "traceparent"],
592
+ "type": "object",
593
+ },
594
+ "createdAt": { "format": "date-time", "type": "string" },
595
+ "deadline": { "format": "date-time", "type": "string" },
596
+ "id": { "minLength": 1, "type": "string" },
597
+ "lastError": { "type": "string" },
598
+ "logs": {
599
+ "items": {
600
+ "properties": {
601
+ "level": {
602
+ "anyOf": [{ "const": "info", "type": "string" }, {
603
+ "const": "warn",
604
+ "type": "string",
605
+ }, { "const": "error", "type": "string" }],
606
+ },
607
+ "message": { "type": "string" },
608
+ "timestamp": { "format": "date-time", "type": "string" },
609
+ },
610
+ "required": ["timestamp", "level", "message"],
611
+ "type": "object",
612
+ },
613
+ "type": "array",
614
+ },
615
+ "maxTries": { "minimum": 1, "type": "integer" },
616
+ "payload": {},
617
+ "progress": {
618
+ "properties": {
619
+ "current": { "minimum": 0, "type": "integer" },
620
+ "message": { "type": "string" },
621
+ "step": { "type": "string" },
622
+ "total": { "minimum": 0, "type": "integer" },
623
+ },
624
+ "type": "object",
625
+ },
626
+ "result": {},
627
+ "service": { "minLength": 1, "type": "string" },
628
+ "startedAt": { "format": "date-time", "type": "string" },
629
+ "state": {
630
+ "anyOf": [
631
+ { "const": "pending", "type": "string" },
632
+ { "const": "active", "type": "string" },
633
+ { "const": "retry", "type": "string" },
634
+ { "const": "completed", "type": "string" },
635
+ { "const": "failed", "type": "string" },
636
+ { "const": "cancelled", "type": "string" },
637
+ { "const": "expired", "type": "string" },
638
+ { "const": "dead", "type": "string" },
639
+ { "const": "dismissed", "type": "string" },
640
+ ],
641
+ },
642
+ "tries": { "minimum": 0, "type": "integer" },
643
+ "type": { "minLength": 1, "type": "string" },
644
+ "updatedAt": { "format": "date-time", "type": "string" },
645
+ },
646
+ "required": [
647
+ "id",
648
+ "context",
649
+ "service",
650
+ "type",
651
+ "state",
652
+ "payload",
653
+ "createdAt",
654
+ "updatedAt",
655
+ "tries",
656
+ "maxTries",
657
+ ],
658
+ "type": "object",
659
+ },
660
+ },
661
+ "required": ["job"],
662
+ "type": "object",
663
+ };
664
+ export const JobsRetryRequestSchema = {
665
+ "description": "Jobs admin ids are globally addressable; callers identify jobs by id only.",
666
+ "properties": { "id": { "minLength": 1, "type": "string" } },
667
+ "required": ["id"],
668
+ "type": "object",
669
+ };
670
+ export const JobsRetryResponseSchema = {
671
+ "properties": {
672
+ "job": {
673
+ "properties": {
674
+ "completedAt": { "format": "date-time", "type": "string" },
675
+ "context": {
676
+ "properties": {
677
+ "requestId": { "minLength": 1, "type": "string" },
678
+ "traceId": { "pattern": "^[0-9a-f]{32}$", "type": "string" },
679
+ "traceparent": {
680
+ "pattern": "^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$",
681
+ "type": "string",
682
+ },
683
+ "tracestate": { "minLength": 1, "type": "string" },
684
+ },
685
+ "required": ["requestId", "traceId", "traceparent"],
686
+ "type": "object",
687
+ },
688
+ "createdAt": { "format": "date-time", "type": "string" },
689
+ "deadline": { "format": "date-time", "type": "string" },
690
+ "id": { "minLength": 1, "type": "string" },
691
+ "lastError": { "type": "string" },
692
+ "logs": {
693
+ "items": {
694
+ "properties": {
695
+ "level": {
696
+ "anyOf": [{ "const": "info", "type": "string" }, {
697
+ "const": "warn",
698
+ "type": "string",
699
+ }, { "const": "error", "type": "string" }],
700
+ },
701
+ "message": { "type": "string" },
702
+ "timestamp": { "format": "date-time", "type": "string" },
703
+ },
704
+ "required": ["timestamp", "level", "message"],
705
+ "type": "object",
706
+ },
707
+ "type": "array",
708
+ },
709
+ "maxTries": { "minimum": 1, "type": "integer" },
710
+ "payload": {},
711
+ "progress": {
712
+ "properties": {
713
+ "current": { "minimum": 0, "type": "integer" },
714
+ "message": { "type": "string" },
715
+ "step": { "type": "string" },
716
+ "total": { "minimum": 0, "type": "integer" },
717
+ },
718
+ "type": "object",
719
+ },
720
+ "result": {},
721
+ "service": { "minLength": 1, "type": "string" },
722
+ "startedAt": { "format": "date-time", "type": "string" },
723
+ "state": {
724
+ "anyOf": [
725
+ { "const": "pending", "type": "string" },
726
+ { "const": "active", "type": "string" },
727
+ { "const": "retry", "type": "string" },
728
+ { "const": "completed", "type": "string" },
729
+ { "const": "failed", "type": "string" },
730
+ { "const": "cancelled", "type": "string" },
731
+ { "const": "expired", "type": "string" },
732
+ { "const": "dead", "type": "string" },
733
+ { "const": "dismissed", "type": "string" },
734
+ ],
735
+ },
736
+ "tries": { "minimum": 0, "type": "integer" },
737
+ "type": { "minLength": 1, "type": "string" },
738
+ "updatedAt": { "format": "date-time", "type": "string" },
739
+ },
740
+ "required": [
741
+ "id",
742
+ "context",
743
+ "service",
744
+ "type",
745
+ "state",
746
+ "payload",
747
+ "createdAt",
748
+ "updatedAt",
749
+ "tries",
750
+ "maxTries",
751
+ ],
752
+ "type": "object",
753
+ },
754
+ },
755
+ "required": ["job"],
756
+ "type": "object",
757
+ };
758
+ export const NotFoundErrorDataSchema = {
759
+ "properties": {
760
+ "context": { "patternProperties": { "^.*$": {} }, "type": "object" },
761
+ "id": { "minLength": 1, "type": "string" },
762
+ "jobId": { "minLength": 1, "type": "string" },
763
+ "message": { "type": "string" },
764
+ "resource": { "minLength": 1, "type": "string" },
765
+ "traceId": { "type": "string" },
766
+ "type": { "const": "NotFoundError", "type": "string" },
767
+ },
768
+ "required": ["id", "type", "message", "resource"],
769
+ "type": "object",
770
+ };