@qlever-llc/trellis 0.10.9 → 0.10.10

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