@proompteng/temporal-bun-sdk 0.1.0

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 (448) hide show
  1. package/README.md +387 -0
  2. package/dist/bin/start-worker.js +3 -0
  3. package/dist/bin/temporal-bun.js +3 -0
  4. package/dist/src/activities/index.d.ts +6 -0
  5. package/dist/src/activities/index.d.ts.map +1 -0
  6. package/dist/src/activities/index.js +5 -0
  7. package/dist/src/activities/index.js.map +1 -0
  8. package/dist/src/activities/lifecycle.d.ts +48 -0
  9. package/dist/src/activities/lifecycle.d.ts.map +1 -0
  10. package/dist/src/activities/lifecycle.js +306 -0
  11. package/dist/src/activities/lifecycle.js.map +1 -0
  12. package/dist/src/bin/replay-command.d.ts +104 -0
  13. package/dist/src/bin/replay-command.d.ts.map +1 -0
  14. package/dist/src/bin/replay-command.js +582 -0
  15. package/dist/src/bin/replay-command.js.map +1 -0
  16. package/dist/src/bin/start-worker.d.ts +3 -0
  17. package/dist/src/bin/start-worker.d.ts.map +1 -0
  18. package/dist/src/bin/start-worker.js +29 -0
  19. package/dist/src/bin/start-worker.js.map +1 -0
  20. package/dist/src/bin/temporal-bun.d.ts +25 -0
  21. package/dist/src/bin/temporal-bun.d.ts.map +1 -0
  22. package/dist/src/bin/temporal-bun.js +427 -0
  23. package/dist/src/bin/temporal-bun.js.map +1 -0
  24. package/dist/src/build_id_preflight.d.ts +7 -0
  25. package/dist/src/build_id_preflight.d.ts.map +1 -0
  26. package/dist/src/build_id_preflight.js +123 -0
  27. package/dist/src/build_id_preflight.js.map +1 -0
  28. package/dist/src/client/headers.d.ts +4 -0
  29. package/dist/src/client/headers.d.ts.map +1 -0
  30. package/dist/src/client/headers.js +79 -0
  31. package/dist/src/client/headers.js.map +1 -0
  32. package/dist/src/client/index.d.ts +2 -0
  33. package/dist/src/client/index.d.ts.map +1 -0
  34. package/dist/src/client/index.js +2 -0
  35. package/dist/src/client/index.js.map +1 -0
  36. package/dist/src/client/interceptors.d.ts +17 -0
  37. package/dist/src/client/interceptors.d.ts.map +1 -0
  38. package/dist/src/client/interceptors.js +71 -0
  39. package/dist/src/client/interceptors.js.map +1 -0
  40. package/dist/src/client/layer.d.ts +10 -0
  41. package/dist/src/client/layer.d.ts.map +1 -0
  42. package/dist/src/client/layer.js +7 -0
  43. package/dist/src/client/layer.js.map +1 -0
  44. package/dist/src/client/retries.d.ts +13 -0
  45. package/dist/src/client/retries.d.ts.map +1 -0
  46. package/dist/src/client/retries.js +51 -0
  47. package/dist/src/client/retries.js.map +1 -0
  48. package/dist/src/client/serialization.d.ts +48 -0
  49. package/dist/src/client/serialization.d.ts.map +1 -0
  50. package/dist/src/client/serialization.js +310 -0
  51. package/dist/src/client/serialization.js.map +1 -0
  52. package/dist/src/client/serialization.test.d.ts +2 -0
  53. package/dist/src/client/serialization.test.d.ts.map +1 -0
  54. package/dist/src/client/serialization.test.js +251 -0
  55. package/dist/src/client/serialization.test.js.map +1 -0
  56. package/dist/src/client/transport.d.ts +12 -0
  57. package/dist/src/client/transport.d.ts.map +1 -0
  58. package/dist/src/client/transport.js +36 -0
  59. package/dist/src/client/transport.js.map +1 -0
  60. package/dist/src/client/types.d.ts +51 -0
  61. package/dist/src/client/types.d.ts.map +1 -0
  62. package/dist/src/client/types.js +7 -0
  63. package/dist/src/client/types.js.map +1 -0
  64. package/dist/src/client.d.ts +92 -0
  65. package/dist/src/client.d.ts.map +1 -0
  66. package/dist/src/client.js +666 -0
  67. package/dist/src/client.js.map +1 -0
  68. package/dist/src/common/duration.d.ts +4 -0
  69. package/dist/src/common/duration.d.ts.map +1 -0
  70. package/dist/src/common/duration.js +14 -0
  71. package/dist/src/common/duration.js.map +1 -0
  72. package/dist/src/common/index.d.ts +2 -0
  73. package/dist/src/common/index.d.ts.map +1 -0
  74. package/dist/src/common/index.js +2 -0
  75. package/dist/src/common/index.js.map +1 -0
  76. package/dist/src/common/payloads/converter.d.ts +16 -0
  77. package/dist/src/common/payloads/converter.d.ts.map +1 -0
  78. package/dist/src/common/payloads/converter.js +33 -0
  79. package/dist/src/common/payloads/converter.js.map +1 -0
  80. package/dist/src/common/payloads/failure.d.ts +7 -0
  81. package/dist/src/common/payloads/failure.d.ts.map +1 -0
  82. package/dist/src/common/payloads/failure.js +53 -0
  83. package/dist/src/common/payloads/failure.js.map +1 -0
  84. package/dist/src/common/payloads/index.d.ts +4 -0
  85. package/dist/src/common/payloads/index.d.ts.map +1 -0
  86. package/dist/src/common/payloads/index.js +4 -0
  87. package/dist/src/common/payloads/index.js.map +1 -0
  88. package/dist/src/common/payloads/json-codec.d.ts +16 -0
  89. package/dist/src/common/payloads/json-codec.d.ts.map +1 -0
  90. package/dist/src/common/payloads/json-codec.js +185 -0
  91. package/dist/src/common/payloads/json-codec.js.map +1 -0
  92. package/dist/src/common/sleep.d.ts +2 -0
  93. package/dist/src/common/sleep.d.ts.map +1 -0
  94. package/dist/src/common/sleep.js +3 -0
  95. package/dist/src/common/sleep.js.map +1 -0
  96. package/dist/src/config.d.ts +115 -0
  97. package/dist/src/config.d.ts.map +1 -0
  98. package/dist/src/config.js +505 -0
  99. package/dist/src/config.js.map +1 -0
  100. package/dist/src/core-bridge/client.d.ts +36 -0
  101. package/dist/src/core-bridge/client.d.ts.map +1 -0
  102. package/dist/src/core-bridge/client.js +111 -0
  103. package/dist/src/core-bridge/client.js.map +1 -0
  104. package/dist/src/core-bridge/index.d.ts +4 -0
  105. package/dist/src/core-bridge/index.d.ts.map +1 -0
  106. package/dist/src/core-bridge/index.js +4 -0
  107. package/dist/src/core-bridge/index.js.map +1 -0
  108. package/dist/src/core-bridge/runtime.d.ts +20 -0
  109. package/dist/src/core-bridge/runtime.d.ts.map +1 -0
  110. package/dist/src/core-bridge/runtime.js +62 -0
  111. package/dist/src/core-bridge/runtime.js.map +1 -0
  112. package/dist/src/core-bridge/runtime.test.d.ts +2 -0
  113. package/dist/src/core-bridge/runtime.test.d.ts.map +1 -0
  114. package/dist/src/core-bridge/runtime.test.js +68 -0
  115. package/dist/src/core-bridge/runtime.test.js.map +1 -0
  116. package/dist/src/index.d.ts +11 -0
  117. package/dist/src/index.d.ts.map +1 -0
  118. package/dist/src/index.js +7 -0
  119. package/dist/src/index.js.map +1 -0
  120. package/dist/src/internal/core-bridge/native.d.ts +176 -0
  121. package/dist/src/internal/core-bridge/native.d.ts.map +1 -0
  122. package/dist/src/internal/core-bridge/native.js +1208 -0
  123. package/dist/src/internal/core-bridge/native.js.map +1 -0
  124. package/dist/src/observability/index.d.ts +21 -0
  125. package/dist/src/observability/index.d.ts.map +1 -0
  126. package/dist/src/observability/index.js +19 -0
  127. package/dist/src/observability/index.js.map +1 -0
  128. package/dist/src/observability/logger.d.ts +28 -0
  129. package/dist/src/observability/logger.d.ts.map +1 -0
  130. package/dist/src/observability/logger.js +53 -0
  131. package/dist/src/observability/logger.js.map +1 -0
  132. package/dist/src/observability/metrics.d.ts +28 -0
  133. package/dist/src/observability/metrics.d.ts.map +1 -0
  134. package/dist/src/observability/metrics.js +355 -0
  135. package/dist/src/observability/metrics.js.map +1 -0
  136. package/dist/src/proto/google/api/annotations_pb.d.ts +14 -0
  137. package/dist/src/proto/google/api/annotations_pb.d.ts.map +1 -0
  138. package/dist/src/proto/google/api/annotations_pb.js +27 -0
  139. package/dist/src/proto/google/api/annotations_pb.js.map +1 -0
  140. package/dist/src/proto/google/api/http_pb.d.ts +441 -0
  141. package/dist/src/proto/google/api/http_pb.d.ts.map +1 -0
  142. package/dist/src/proto/google/api/http_pb.js +34 -0
  143. package/dist/src/proto/google/api/http_pb.js.map +1 -0
  144. package/dist/src/proto/temporal/api/activity/v1/message_pb.d.ts +67 -0
  145. package/dist/src/proto/temporal/api/activity/v1/message_pb.d.ts.map +1 -0
  146. package/dist/src/proto/temporal/api/activity/v1/message_pb.js +17 -0
  147. package/dist/src/proto/temporal/api/activity/v1/message_pb.js.map +1 -0
  148. package/dist/src/proto/temporal/api/batch/v1/message_pb.d.ts +464 -0
  149. package/dist/src/proto/temporal/api/batch/v1/message_pb.d.ts.map +1 -0
  150. package/dist/src/proto/temporal/api/batch/v1/message_pb.js +71 -0
  151. package/dist/src/proto/temporal/api/batch/v1/message_pb.js.map +1 -0
  152. package/dist/src/proto/temporal/api/command/v1/message_pb.d.ts +796 -0
  153. package/dist/src/proto/temporal/api/command/v1/message_pb.d.ts.map +1 -0
  154. package/dist/src/proto/temporal/api/command/v1/message_pb.js +106 -0
  155. package/dist/src/proto/temporal/api/command/v1/message_pb.js.map +1 -0
  156. package/dist/src/proto/temporal/api/common/v1/message_pb.d.ts +751 -0
  157. package/dist/src/proto/temporal/api/common/v1/message_pb.d.ts.map +1 -0
  158. package/dist/src/proto/temporal/api/common/v1/message_pb.js +133 -0
  159. package/dist/src/proto/temporal/api/common/v1/message_pb.js.map +1 -0
  160. package/dist/src/proto/temporal/api/deployment/v1/message_pb.d.ts +639 -0
  161. package/dist/src/proto/temporal/api/deployment/v1/message_pb.d.ts.map +1 -0
  162. package/dist/src/proto/temporal/api/deployment/v1/message_pb.js +83 -0
  163. package/dist/src/proto/temporal/api/deployment/v1/message_pb.js.map +1 -0
  164. package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.d.ts +80 -0
  165. package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.d.ts.map +1 -0
  166. package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.js +85 -0
  167. package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.js.map +1 -0
  168. package/dist/src/proto/temporal/api/enums/v1/command_type_pb.d.ts +89 -0
  169. package/dist/src/proto/temporal/api/enums/v1/command_type_pb.d.ts.map +1 -0
  170. package/dist/src/proto/temporal/api/enums/v1/command_type_pb.js +93 -0
  171. package/dist/src/proto/temporal/api/enums/v1/command_type_pb.js.map +1 -0
  172. package/dist/src/proto/temporal/api/enums/v1/common_pb.d.ts +314 -0
  173. package/dist/src/proto/temporal/api/enums/v1/common_pb.d.ts.map +1 -0
  174. package/dist/src/proto/temporal/api/enums/v1/common_pb.js +326 -0
  175. package/dist/src/proto/temporal/api/enums/v1/common_pb.js.map +1 -0
  176. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.d.ts +186 -0
  177. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.d.ts.map +1 -0
  178. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.js +193 -0
  179. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.js.map +1 -0
  180. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.d.ts +407 -0
  181. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.d.ts.map +1 -0
  182. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.js +411 -0
  183. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.js.map +1 -0
  184. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.d.ts +371 -0
  185. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.d.ts.map +1 -0
  186. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.js +380 -0
  187. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.js.map +1 -0
  188. package/dist/src/proto/temporal/api/enums/v1/namespace_pb.d.ts +73 -0
  189. package/dist/src/proto/temporal/api/enums/v1/namespace_pb.d.ts.map +1 -0
  190. package/dist/src/proto/temporal/api/enums/v1/namespace_pb.js +79 -0
  191. package/dist/src/proto/temporal/api/enums/v1/namespace_pb.js.map +1 -0
  192. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.d.ts +35 -0
  193. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.d.ts.map +1 -0
  194. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.js +39 -0
  195. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.js.map +1 -0
  196. package/dist/src/proto/temporal/api/enums/v1/query_pb.d.ts +58 -0
  197. package/dist/src/proto/temporal/api/enums/v1/query_pb.d.ts.map +1 -0
  198. package/dist/src/proto/temporal/api/enums/v1/query_pb.js +63 -0
  199. package/dist/src/proto/temporal/api/enums/v1/query_pb.js.map +1 -0
  200. package/dist/src/proto/temporal/api/enums/v1/reset_pb.d.ts +108 -0
  201. package/dist/src/proto/temporal/api/enums/v1/reset_pb.d.ts.map +1 -0
  202. package/dist/src/proto/temporal/api/enums/v1/reset_pb.js +114 -0
  203. package/dist/src/proto/temporal/api/enums/v1/reset_pb.js.map +1 -0
  204. package/dist/src/proto/temporal/api/enums/v1/schedule_pb.d.ts +67 -0
  205. package/dist/src/proto/temporal/api/enums/v1/schedule_pb.d.ts.map +1 -0
  206. package/dist/src/proto/temporal/api/enums/v1/schedule_pb.js +71 -0
  207. package/dist/src/proto/temporal/api/enums/v1/schedule_pb.js.map +1 -0
  208. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.d.ts +249 -0
  209. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.d.ts.map +1 -0
  210. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.js +259 -0
  211. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.js.map +1 -0
  212. package/dist/src/proto/temporal/api/enums/v1/update_pb.d.ts +78 -0
  213. package/dist/src/proto/temporal/api/enums/v1/update_pb.d.ts.map +1 -0
  214. package/dist/src/proto/temporal/api/enums/v1/update_pb.js +83 -0
  215. package/dist/src/proto/temporal/api/enums/v1/update_pb.js.map +1 -0
  216. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.d.ts +408 -0
  217. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.d.ts.map +1 -0
  218. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.js +422 -0
  219. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.js.map +1 -0
  220. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.d.ts +331 -0
  221. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.d.ts.map +1 -0
  222. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.js +104 -0
  223. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.js.map +1 -0
  224. package/dist/src/proto/temporal/api/export/v1/message_pb.d.ts +39 -0
  225. package/dist/src/proto/temporal/api/export/v1/message_pb.d.ts.map +1 -0
  226. package/dist/src/proto/temporal/api/export/v1/message_pb.js +20 -0
  227. package/dist/src/proto/temporal/api/export/v1/message_pb.js.map +1 -0
  228. package/dist/src/proto/temporal/api/failure/v1/message_pb.d.ts +381 -0
  229. package/dist/src/proto/temporal/api/failure/v1/message_pb.d.ts.map +1 -0
  230. package/dist/src/proto/temporal/api/failure/v1/message_pb.js +74 -0
  231. package/dist/src/proto/temporal/api/failure/v1/message_pb.js.map +1 -0
  232. package/dist/src/proto/temporal/api/filter/v1/message_pb.d.ts +73 -0
  233. package/dist/src/proto/temporal/api/filter/v1/message_pb.d.ts.map +1 -0
  234. package/dist/src/proto/temporal/api/filter/v1/message_pb.js +31 -0
  235. package/dist/src/proto/temporal/api/filter/v1/message_pb.js.map +1 -0
  236. package/dist/src/proto/temporal/api/history/v1/message_pb.d.ts +3136 -0
  237. package/dist/src/proto/temporal/api/history/v1/message_pb.d.ts.map +1 -0
  238. package/dist/src/proto/temporal/api/history/v1/message_pb.js +317 -0
  239. package/dist/src/proto/temporal/api/history/v1/message_pb.js.map +1 -0
  240. package/dist/src/proto/temporal/api/namespace/v1/message_pb.d.ts +242 -0
  241. package/dist/src/proto/temporal/api/namespace/v1/message_pb.d.ts.map +1 -0
  242. package/dist/src/proto/temporal/api/namespace/v1/message_pb.js +46 -0
  243. package/dist/src/proto/temporal/api/namespace/v1/message_pb.js.map +1 -0
  244. package/dist/src/proto/temporal/api/nexus/v1/message_pb.d.ts +549 -0
  245. package/dist/src/proto/temporal/api/nexus/v1/message_pb.d.ts.map +1 -0
  246. package/dist/src/proto/temporal/api/nexus/v1/message_pb.js +97 -0
  247. package/dist/src/proto/temporal/api/nexus/v1/message_pb.js.map +1 -0
  248. package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.d.ts +499 -0
  249. package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.d.ts.map +1 -0
  250. package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.js +137 -0
  251. package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.js.map +1 -0
  252. package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.d.ts +153 -0
  253. package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.d.ts.map +1 -0
  254. package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.js +22 -0
  255. package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.js.map +1 -0
  256. package/dist/src/proto/temporal/api/protocol/v1/message_pb.d.ts +64 -0
  257. package/dist/src/proto/temporal/api/protocol/v1/message_pb.d.ts.map +1 -0
  258. package/dist/src/proto/temporal/api/protocol/v1/message_pb.js +15 -0
  259. package/dist/src/proto/temporal/api/protocol/v1/message_pb.js.map +1 -0
  260. package/dist/src/proto/temporal/api/query/v1/message_pb.d.ts +96 -0
  261. package/dist/src/proto/temporal/api/query/v1/message_pb.d.ts.map +1 -0
  262. package/dist/src/proto/temporal/api/query/v1/message_pb.js +28 -0
  263. package/dist/src/proto/temporal/api/query/v1/message_pb.js.map +1 -0
  264. package/dist/src/proto/temporal/api/replication/v1/message_pb.d.ts +67 -0
  265. package/dist/src/proto/temporal/api/replication/v1/message_pb.d.ts.map +1 -0
  266. package/dist/src/proto/temporal/api/replication/v1/message_pb.js +26 -0
  267. package/dist/src/proto/temporal/api/replication/v1/message_pb.js.map +1 -0
  268. package/dist/src/proto/temporal/api/rules/v1/message_pb.d.ts +172 -0
  269. package/dist/src/proto/temporal/api/rules/v1/message_pb.d.ts.map +1 -0
  270. package/dist/src/proto/temporal/api/rules/v1/message_pb.js +35 -0
  271. package/dist/src/proto/temporal/api/rules/v1/message_pb.js.map +1 -0
  272. package/dist/src/proto/temporal/api/schedule/v1/message_pb.d.ts +779 -0
  273. package/dist/src/proto/temporal/api/schedule/v1/message_pb.d.ts.map +1 -0
  274. package/dist/src/proto/temporal/api/schedule/v1/message_pb.js +95 -0
  275. package/dist/src/proto/temporal/api/schedule/v1/message_pb.js.map +1 -0
  276. package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.d.ts +157 -0
  277. package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.d.ts.map +1 -0
  278. package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.js +34 -0
  279. package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.js.map +1 -0
  280. package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.d.ts +71 -0
  281. package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.d.ts.map +1 -0
  282. package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.js +14 -0
  283. package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.js.map +1 -0
  284. package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.d.ts +37 -0
  285. package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.d.ts.map +1 -0
  286. package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.js +15 -0
  287. package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.js.map +1 -0
  288. package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.d.ts +84 -0
  289. package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.d.ts.map +1 -0
  290. package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.js +24 -0
  291. package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.js.map +1 -0
  292. package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.d.ts +99 -0
  293. package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.d.ts.map +1 -0
  294. package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.js +24 -0
  295. package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.js.map +1 -0
  296. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.d.ts +757 -0
  297. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.d.ts.map +1 -0
  298. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.js +138 -0
  299. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.js.map +1 -0
  300. package/dist/src/proto/temporal/api/update/v1/message_pb.d.ts +230 -0
  301. package/dist/src/proto/temporal/api/update/v1/message_pb.d.ts.map +1 -0
  302. package/dist/src/proto/temporal/api/update/v1/message_pb.js +57 -0
  303. package/dist/src/proto/temporal/api/update/v1/message_pb.js.map +1 -0
  304. package/dist/src/proto/temporal/api/version/v1/message_pb.d.ts +85 -0
  305. package/dist/src/proto/temporal/api/version/v1/message_pb.d.ts.map +1 -0
  306. package/dist/src/proto/temporal/api/version/v1/message_pb.js +26 -0
  307. package/dist/src/proto/temporal/api/version/v1/message_pb.js.map +1 -0
  308. package/dist/src/proto/temporal/api/worker/v1/message_pb.d.ts +311 -0
  309. package/dist/src/proto/temporal/api/worker/v1/message_pb.d.ts.map +1 -0
  310. package/dist/src/proto/temporal/api/worker/v1/message_pb.js +42 -0
  311. package/dist/src/proto/temporal/api/worker/v1/message_pb.js.map +1 -0
  312. package/dist/src/proto/temporal/api/workflow/v1/message_pb.d.ts +1500 -0
  313. package/dist/src/proto/temporal/api/workflow/v1/message_pb.d.ts.map +1 -0
  314. package/dist/src/proto/temporal/api/workflow/v1/message_pb.js +183 -0
  315. package/dist/src/proto/temporal/api/workflow/v1/message_pb.js.map +1 -0
  316. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.d.ts +6967 -0
  317. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.d.ts.map +1 -0
  318. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.js +1073 -0
  319. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.js.map +1 -0
  320. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.d.ts +1305 -0
  321. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.d.ts.map +1 -0
  322. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.js +27 -0
  323. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.js.map +1 -0
  324. package/dist/src/runtime/cli-layer.d.ts +12 -0
  325. package/dist/src/runtime/cli-layer.d.ts.map +1 -0
  326. package/dist/src/runtime/cli-layer.js +19 -0
  327. package/dist/src/runtime/cli-layer.js.map +1 -0
  328. package/dist/src/runtime/config-layer.d.ts +9 -0
  329. package/dist/src/runtime/config-layer.d.ts.map +1 -0
  330. package/dist/src/runtime/config-layer.js +15 -0
  331. package/dist/src/runtime/config-layer.js.map +1 -0
  332. package/dist/src/runtime/effect-layers.d.ts +518 -0
  333. package/dist/src/runtime/effect-layers.d.ts.map +1 -0
  334. package/dist/src/runtime/effect-layers.js +68 -0
  335. package/dist/src/runtime/effect-layers.js.map +1 -0
  336. package/dist/src/runtime/worker-app.d.ts +14 -0
  337. package/dist/src/runtime/worker-app.d.ts.map +1 -0
  338. package/dist/src/runtime/worker-app.js +58 -0
  339. package/dist/src/runtime/worker-app.js.map +1 -0
  340. package/dist/src/telemetry/runtime.d.ts +5 -0
  341. package/dist/src/telemetry/runtime.d.ts.map +1 -0
  342. package/dist/src/telemetry/runtime.js +94 -0
  343. package/dist/src/telemetry/runtime.js.map +1 -0
  344. package/dist/src/worker/activity-context.d.ts +30 -0
  345. package/dist/src/worker/activity-context.d.ts.map +1 -0
  346. package/dist/src/worker/activity-context.js +9 -0
  347. package/dist/src/worker/activity-context.js.map +1 -0
  348. package/dist/src/worker/build-id.d.ts +20 -0
  349. package/dist/src/worker/build-id.d.ts.map +1 -0
  350. package/dist/src/worker/build-id.js +98 -0
  351. package/dist/src/worker/build-id.js.map +1 -0
  352. package/dist/src/worker/concurrency.d.ts +31 -0
  353. package/dist/src/worker/concurrency.d.ts.map +1 -0
  354. package/dist/src/worker/concurrency.js +129 -0
  355. package/dist/src/worker/concurrency.js.map +1 -0
  356. package/dist/src/worker/defaults.d.ts +9 -0
  357. package/dist/src/worker/defaults.d.ts.map +1 -0
  358. package/dist/src/worker/defaults.js +53 -0
  359. package/dist/src/worker/defaults.js.map +1 -0
  360. package/dist/src/worker/index.d.ts +7 -0
  361. package/dist/src/worker/index.d.ts.map +1 -0
  362. package/dist/src/worker/index.js +4 -0
  363. package/dist/src/worker/index.js.map +1 -0
  364. package/dist/src/worker/layer.d.ts +19 -0
  365. package/dist/src/worker/layer.d.ts.map +1 -0
  366. package/dist/src/worker/layer.js +71 -0
  367. package/dist/src/worker/layer.js.map +1 -0
  368. package/dist/src/worker/runtime.d.ts +59 -0
  369. package/dist/src/worker/runtime.d.ts.map +1 -0
  370. package/dist/src/worker/runtime.js +1415 -0
  371. package/dist/src/worker/runtime.js.map +1 -0
  372. package/dist/src/worker/service.d.ts +19 -0
  373. package/dist/src/worker/service.d.ts.map +1 -0
  374. package/dist/src/worker/service.js +14 -0
  375. package/dist/src/worker/service.js.map +1 -0
  376. package/dist/src/worker/sticky-cache.d.ts +41 -0
  377. package/dist/src/worker/sticky-cache.d.ts.map +1 -0
  378. package/dist/src/worker/sticky-cache.js +127 -0
  379. package/dist/src/worker/sticky-cache.js.map +1 -0
  380. package/dist/src/worker.d.ts +30 -0
  381. package/dist/src/worker.d.ts.map +1 -0
  382. package/dist/src/worker.js +82 -0
  383. package/dist/src/worker.js.map +1 -0
  384. package/dist/src/workflow/commands.d.ts +84 -0
  385. package/dist/src/workflow/commands.d.ts.map +1 -0
  386. package/dist/src/workflow/commands.js +159 -0
  387. package/dist/src/workflow/commands.js.map +1 -0
  388. package/dist/src/workflow/context.d.ts +119 -0
  389. package/dist/src/workflow/context.d.ts.map +1 -0
  390. package/dist/src/workflow/context.js +197 -0
  391. package/dist/src/workflow/context.js.map +1 -0
  392. package/dist/src/workflow/definition.d.ts +15 -0
  393. package/dist/src/workflow/definition.d.ts.map +1 -0
  394. package/dist/src/workflow/definition.js +19 -0
  395. package/dist/src/workflow/definition.js.map +1 -0
  396. package/dist/src/workflow/determinism.d.ts +54 -0
  397. package/dist/src/workflow/determinism.d.ts.map +1 -0
  398. package/dist/src/workflow/determinism.js +147 -0
  399. package/dist/src/workflow/determinism.js.map +1 -0
  400. package/dist/src/workflow/errors.d.ts +37 -0
  401. package/dist/src/workflow/errors.d.ts.map +1 -0
  402. package/dist/src/workflow/errors.js +35 -0
  403. package/dist/src/workflow/errors.js.map +1 -0
  404. package/dist/src/workflow/executor.d.ts +35 -0
  405. package/dist/src/workflow/executor.d.ts.map +1 -0
  406. package/dist/src/workflow/executor.js +178 -0
  407. package/dist/src/workflow/executor.js.map +1 -0
  408. package/dist/src/workflow/index.d.ts +8 -0
  409. package/dist/src/workflow/index.d.ts.map +1 -0
  410. package/dist/src/workflow/index.js +8 -0
  411. package/dist/src/workflow/index.js.map +1 -0
  412. package/dist/src/workflow/registry.d.ts +9 -0
  413. package/dist/src/workflow/registry.d.ts.map +1 -0
  414. package/dist/src/workflow/registry.js +51 -0
  415. package/dist/src/workflow/registry.js.map +1 -0
  416. package/dist/src/workflow/replay.d.ts +87 -0
  417. package/dist/src/workflow/replay.d.ts.map +1 -0
  418. package/dist/src/workflow/replay.js +759 -0
  419. package/dist/src/workflow/replay.js.map +1 -0
  420. package/dist/src/workflow/runtime/bootstrap.d.ts +15 -0
  421. package/dist/src/workflow/runtime/bootstrap.d.ts.map +1 -0
  422. package/dist/src/workflow/runtime/bootstrap.js +124 -0
  423. package/dist/src/workflow/runtime/bootstrap.js.map +1 -0
  424. package/dist/src/workflow/runtime/engine.d.ts +21 -0
  425. package/dist/src/workflow/runtime/engine.d.ts.map +1 -0
  426. package/dist/src/workflow/runtime/engine.js +73 -0
  427. package/dist/src/workflow/runtime/engine.js.map +1 -0
  428. package/dist/src/workflow/runtime/environment.d.ts +29 -0
  429. package/dist/src/workflow/runtime/environment.d.ts.map +1 -0
  430. package/dist/src/workflow/runtime/environment.js +298 -0
  431. package/dist/src/workflow/runtime/environment.js.map +1 -0
  432. package/dist/src/workflow/runtime/index.d.ts +7 -0
  433. package/dist/src/workflow/runtime/index.d.ts.map +1 -0
  434. package/dist/src/workflow/runtime/index.js +4 -0
  435. package/dist/src/workflow/runtime/index.js.map +1 -0
  436. package/dist/src/workflow/runtime/info.d.ts +5 -0
  437. package/dist/src/workflow/runtime/info.d.ts.map +1 -0
  438. package/dist/src/workflow/runtime/info.js +22 -0
  439. package/dist/src/workflow/runtime/info.js.map +1 -0
  440. package/dist/src/workflow/runtime/replay.d.ts +26 -0
  441. package/dist/src/workflow/runtime/replay.d.ts.map +1 -0
  442. package/dist/src/workflow/runtime/replay.js +254 -0
  443. package/dist/src/workflow/runtime/replay.js.map +1 -0
  444. package/dist/src/workflows/index.d.ts +3 -0
  445. package/dist/src/workflows/index.d.ts.map +1 -0
  446. package/dist/src/workflows/index.js +15 -0
  447. package/dist/src/workflows/index.js.map +1 -0
  448. package/package.json +74 -0
@@ -0,0 +1,757 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
3
+ import type { BuildIdTaskReachability, TaskQueueKind, TaskReachability } from "../../enums/v1/task_queue_pb.js";
4
+ import type { WorkerVersionCapabilities } from "../../common/v1/message_pb.js";
5
+ import type { WorkerDeploymentOptions, WorkerDeploymentVersion } from "../../deployment/v1/message_pb.js";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ /**
8
+ * Describes the file temporal/api/taskqueue/v1/message.proto.
9
+ */
10
+ export declare const file_temporal_api_taskqueue_v1_message: GenFile;
11
+ /**
12
+ * See https://docs.temporal.io/docs/concepts/task-queues/
13
+ *
14
+ * @generated from message temporal.api.taskqueue.v1.TaskQueue
15
+ */
16
+ export type TaskQueue = Message<"temporal.api.taskqueue.v1.TaskQueue"> & {
17
+ /**
18
+ * @generated from field: string name = 1;
19
+ */
20
+ name: string;
21
+ /**
22
+ * Default: TASK_QUEUE_KIND_NORMAL.
23
+ *
24
+ * @generated from field: temporal.api.enums.v1.TaskQueueKind kind = 2;
25
+ */
26
+ kind: TaskQueueKind;
27
+ /**
28
+ * Iff kind == TASK_QUEUE_KIND_STICKY, then this field contains the name of
29
+ * the normal task queue that the sticky worker is running on.
30
+ *
31
+ * @generated from field: string normal_name = 3;
32
+ */
33
+ normalName: string;
34
+ };
35
+ /**
36
+ * Describes the message temporal.api.taskqueue.v1.TaskQueue.
37
+ * Use `create(TaskQueueSchema)` to create a new message.
38
+ */
39
+ export declare const TaskQueueSchema: GenMessage<TaskQueue>;
40
+ /**
41
+ * Only applies to activity task queues
42
+ *
43
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueMetadata
44
+ */
45
+ export type TaskQueueMetadata = Message<"temporal.api.taskqueue.v1.TaskQueueMetadata"> & {
46
+ /**
47
+ * Allows throttling dispatch of tasks from this queue
48
+ *
49
+ * @generated from field: google.protobuf.DoubleValue max_tasks_per_second = 1;
50
+ */
51
+ maxTasksPerSecond?: number;
52
+ };
53
+ /**
54
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueMetadata.
55
+ * Use `create(TaskQueueMetadataSchema)` to create a new message.
56
+ */
57
+ export declare const TaskQueueMetadataSchema: GenMessage<TaskQueueMetadata>;
58
+ /**
59
+ * Experimental. Worker Deployments are experimental and might significantly change in the future.
60
+ *
61
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueVersioningInfo
62
+ */
63
+ export type TaskQueueVersioningInfo = Message<"temporal.api.taskqueue.v1.TaskQueueVersioningInfo"> & {
64
+ /**
65
+ * Specifies which Deployment Version should receive new workflow executions and tasks of
66
+ * existing unversioned or AutoUpgrade workflows.
67
+ * Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
68
+ * Note: Current Version is overridden by the Ramping Version for a portion of traffic when ramp percentage
69
+ * is non-zero (see `ramping_deployment_version` and `ramping_version_percentage`).
70
+ *
71
+ * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion current_deployment_version = 7;
72
+ */
73
+ currentDeploymentVersion?: WorkerDeploymentVersion;
74
+ /**
75
+ * Deprecated. Use `current_deployment_version`.
76
+ *
77
+ * @generated from field: string current_version = 1 [deprecated = true];
78
+ * @deprecated
79
+ */
80
+ currentVersion: string;
81
+ /**
82
+ * When ramp percentage is non-zero, that portion of traffic is shifted from the Current Version to the Ramping Version.
83
+ * Must always be different from `current_deployment_version` unless both are nil.
84
+ * Nil value represents all the unversioned workers (those with `UNVERSIONED` (or unspecified) `WorkerVersioningMode`.)
85
+ * Note that it is possible to ramp from one Version to another Version, or from unversioned
86
+ * workers to a particular Version, or from a particular Version to unversioned workers.
87
+ *
88
+ * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion ramping_deployment_version = 9;
89
+ */
90
+ rampingDeploymentVersion?: WorkerDeploymentVersion;
91
+ /**
92
+ * Deprecated. Use `ramping_deployment_version`.
93
+ *
94
+ * @generated from field: string ramping_version = 2 [deprecated = true];
95
+ * @deprecated
96
+ */
97
+ rampingVersion: string;
98
+ /**
99
+ * Percentage of tasks that are routed to the Ramping Version instead of the Current Version.
100
+ * Valid range: [0, 100]. A 100% value means the Ramping Version is receiving full traffic but
101
+ * not yet "promoted" to be the Current Version, likely due to pending validations.
102
+ * A 0% value means the Ramping Version is receiving no traffic.
103
+ *
104
+ * @generated from field: float ramping_version_percentage = 3;
105
+ */
106
+ rampingVersionPercentage: number;
107
+ /**
108
+ * Last time versioning information of this Task Queue changed.
109
+ *
110
+ * @generated from field: google.protobuf.Timestamp update_time = 4;
111
+ */
112
+ updateTime?: Timestamp;
113
+ };
114
+ /**
115
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueVersioningInfo.
116
+ * Use `create(TaskQueueVersioningInfoSchema)` to create a new message.
117
+ */
118
+ export declare const TaskQueueVersioningInfoSchema: GenMessage<TaskQueueVersioningInfo>;
119
+ /**
120
+ * Used for specifying versions the caller is interested in.
121
+ *
122
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueVersionSelection
123
+ */
124
+ export type TaskQueueVersionSelection = Message<"temporal.api.taskqueue.v1.TaskQueueVersionSelection"> & {
125
+ /**
126
+ * Include specific Build IDs.
127
+ *
128
+ * @generated from field: repeated string build_ids = 1;
129
+ */
130
+ buildIds: string[];
131
+ /**
132
+ * Include the unversioned queue.
133
+ *
134
+ * @generated from field: bool unversioned = 2;
135
+ */
136
+ unversioned: boolean;
137
+ /**
138
+ * Include all active versions. A version is considered active if, in the last few minutes,
139
+ * it has had new tasks or polls, or it has been the subject of certain task queue API calls.
140
+ *
141
+ * @generated from field: bool all_active = 3;
142
+ */
143
+ allActive: boolean;
144
+ };
145
+ /**
146
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueVersionSelection.
147
+ * Use `create(TaskQueueVersionSelectionSchema)` to create a new message.
148
+ */
149
+ export declare const TaskQueueVersionSelectionSchema: GenMessage<TaskQueueVersionSelection>;
150
+ /**
151
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueVersionInfo
152
+ */
153
+ export type TaskQueueVersionInfo = Message<"temporal.api.taskqueue.v1.TaskQueueVersionInfo"> & {
154
+ /**
155
+ * Task Queue info per Task Type. Key is the numerical value of the temporal.api.enums.v1.TaskQueueType enum.
156
+ *
157
+ * @generated from field: map<int32, temporal.api.taskqueue.v1.TaskQueueTypeInfo> types_info = 1;
158
+ */
159
+ typesInfo: {
160
+ [key: number]: TaskQueueTypeInfo;
161
+ };
162
+ /**
163
+ * Task Reachability is eventually consistent; there may be a delay until it converges to the most
164
+ * accurate value but it is designed in a way to take the more conservative side until it converges.
165
+ * For example REACHABLE is more conservative than CLOSED_WORKFLOWS_ONLY.
166
+ *
167
+ * Note: future activities who inherit their workflow's Build ID but not its Task Queue will not be
168
+ * accounted for reachability as server cannot know if they'll happen as they do not use
169
+ * assignment rules of their Task Queue. Same goes for Child Workflows or Continue-As-New Workflows
170
+ * who inherit the parent/previous workflow's Build ID but not its Task Queue. In those cases, make
171
+ * sure to query reachability for the parent/previous workflow's Task Queue as well.
172
+ *
173
+ * @generated from field: temporal.api.enums.v1.BuildIdTaskReachability task_reachability = 2;
174
+ */
175
+ taskReachability: BuildIdTaskReachability;
176
+ };
177
+ /**
178
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueVersionInfo.
179
+ * Use `create(TaskQueueVersionInfoSchema)` to create a new message.
180
+ */
181
+ export declare const TaskQueueVersionInfoSchema: GenMessage<TaskQueueVersionInfo>;
182
+ /**
183
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueTypeInfo
184
+ */
185
+ export type TaskQueueTypeInfo = Message<"temporal.api.taskqueue.v1.TaskQueueTypeInfo"> & {
186
+ /**
187
+ * Unversioned workers (with `useVersioning=false`) are reported in unversioned result even if they set a Build ID.
188
+ *
189
+ * @generated from field: repeated temporal.api.taskqueue.v1.PollerInfo pollers = 1;
190
+ */
191
+ pollers: PollerInfo[];
192
+ /**
193
+ * @generated from field: temporal.api.taskqueue.v1.TaskQueueStats stats = 2;
194
+ */
195
+ stats?: TaskQueueStats;
196
+ };
197
+ /**
198
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueTypeInfo.
199
+ * Use `create(TaskQueueTypeInfoSchema)` to create a new message.
200
+ */
201
+ export declare const TaskQueueTypeInfoSchema: GenMessage<TaskQueueTypeInfo>;
202
+ /**
203
+ * TaskQueueStats contains statistics about task queue backlog and activity.
204
+ *
205
+ * For workflow task queue type, this result is partial because tasks sent to sticky queues are not included. Read
206
+ * comments above each metric to understand the impact of sticky queue exclusion on that metric accuracy.
207
+ *
208
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueStats
209
+ */
210
+ export type TaskQueueStats = Message<"temporal.api.taskqueue.v1.TaskQueueStats"> & {
211
+ /**
212
+ * The approximate number of tasks backlogged in this task queue. May count expired tasks but eventually
213
+ * converges to the right value. Can be relied upon for scaling decisions.
214
+ *
215
+ * Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because
216
+ * those tasks only remain valid for a few seconds, the inaccuracy becomes less significant as the backlog size
217
+ * grows.
218
+ *
219
+ * @generated from field: int64 approximate_backlog_count = 1;
220
+ */
221
+ approximateBacklogCount: bigint;
222
+ /**
223
+ * Approximate age of the oldest task in the backlog based on the creation time of the task at the head of
224
+ * the queue. Can be relied upon for scaling decisions.
225
+ *
226
+ * Special note for workflow task queue type: this metric does not count sticky queue tasks. However, because
227
+ * those tasks only remain valid for a few seconds, they should not affect the result when backlog is older than
228
+ * few seconds.
229
+ *
230
+ * @generated from field: google.protobuf.Duration approximate_backlog_age = 2;
231
+ */
232
+ approximateBacklogAge?: Duration;
233
+ /**
234
+ * The approximate tasks per second added to the task queue, averaging the last 30 seconds. These includes tasks
235
+ * whether or not they were added to/dispatched from the backlog or they were dispatched immediately without going
236
+ * to the backlog (sync-matched).
237
+ *
238
+ * The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which
239
+ * backlog grows/shrinks.
240
+ *
241
+ * Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by
242
+ * tasks_add_rate, because:
243
+ * - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is
244
+ * enable for activities by default in the latest SDKs.
245
+ * - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each
246
+ * workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific
247
+ * worker instance.
248
+ *
249
+ * @generated from field: float tasks_add_rate = 3;
250
+ */
251
+ tasksAddRate: number;
252
+ /**
253
+ * The approximate tasks per second dispatched from the task queue, averaging the last 30 seconds. These includes
254
+ * tasks whether or not they were added to/dispatched from the backlog or they were dispatched immediately without
255
+ * going to the backlog (sync-matched).
256
+ *
257
+ * The difference between `tasks_add_rate` and `tasks_dispatch_rate` is a reliable metric for the rate at which
258
+ * backlog grows/shrinks.
259
+ *
260
+ * Note: the actual tasks delivered to the workers may significantly be higher than the numbers reported by
261
+ * tasks_dispatch_rate, because:
262
+ * - Tasks can be sent to workers without going to the task queue. This is called Eager dispatch. Eager dispatch is
263
+ * enable for activities by default in the latest SDKs.
264
+ * - Tasks going to Sticky queue are not accounted for. Note that, typically, only the first workflow task of each
265
+ * workflow goes to a normal queue, and the rest workflow tasks go to the Sticky queue associated with a specific
266
+ * worker instance.
267
+ *
268
+ * @generated from field: float tasks_dispatch_rate = 4;
269
+ */
270
+ tasksDispatchRate: number;
271
+ };
272
+ /**
273
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueStats.
274
+ * Use `create(TaskQueueStatsSchema)` to create a new message.
275
+ */
276
+ export declare const TaskQueueStatsSchema: GenMessage<TaskQueueStats>;
277
+ /**
278
+ * Deprecated. Use `InternalTaskQueueStatus`. This is kept until `DescribeTaskQueue` supports legacy behavior.
279
+ *
280
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueStatus
281
+ */
282
+ export type TaskQueueStatus = Message<"temporal.api.taskqueue.v1.TaskQueueStatus"> & {
283
+ /**
284
+ * @generated from field: int64 backlog_count_hint = 1;
285
+ */
286
+ backlogCountHint: bigint;
287
+ /**
288
+ * @generated from field: int64 read_level = 2;
289
+ */
290
+ readLevel: bigint;
291
+ /**
292
+ * @generated from field: int64 ack_level = 3;
293
+ */
294
+ ackLevel: bigint;
295
+ /**
296
+ * @generated from field: double rate_per_second = 4;
297
+ */
298
+ ratePerSecond: number;
299
+ /**
300
+ * @generated from field: temporal.api.taskqueue.v1.TaskIdBlock task_id_block = 5;
301
+ */
302
+ taskIdBlock?: TaskIdBlock;
303
+ };
304
+ /**
305
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueStatus.
306
+ * Use `create(TaskQueueStatusSchema)` to create a new message.
307
+ */
308
+ export declare const TaskQueueStatusSchema: GenMessage<TaskQueueStatus>;
309
+ /**
310
+ * @generated from message temporal.api.taskqueue.v1.TaskIdBlock
311
+ */
312
+ export type TaskIdBlock = Message<"temporal.api.taskqueue.v1.TaskIdBlock"> & {
313
+ /**
314
+ * @generated from field: int64 start_id = 1;
315
+ */
316
+ startId: bigint;
317
+ /**
318
+ * @generated from field: int64 end_id = 2;
319
+ */
320
+ endId: bigint;
321
+ };
322
+ /**
323
+ * Describes the message temporal.api.taskqueue.v1.TaskIdBlock.
324
+ * Use `create(TaskIdBlockSchema)` to create a new message.
325
+ */
326
+ export declare const TaskIdBlockSchema: GenMessage<TaskIdBlock>;
327
+ /**
328
+ * @generated from message temporal.api.taskqueue.v1.TaskQueuePartitionMetadata
329
+ */
330
+ export type TaskQueuePartitionMetadata = Message<"temporal.api.taskqueue.v1.TaskQueuePartitionMetadata"> & {
331
+ /**
332
+ * @generated from field: string key = 1;
333
+ */
334
+ key: string;
335
+ /**
336
+ * @generated from field: string owner_host_name = 2;
337
+ */
338
+ ownerHostName: string;
339
+ };
340
+ /**
341
+ * Describes the message temporal.api.taskqueue.v1.TaskQueuePartitionMetadata.
342
+ * Use `create(TaskQueuePartitionMetadataSchema)` to create a new message.
343
+ */
344
+ export declare const TaskQueuePartitionMetadataSchema: GenMessage<TaskQueuePartitionMetadata>;
345
+ /**
346
+ * @generated from message temporal.api.taskqueue.v1.PollerInfo
347
+ */
348
+ export type PollerInfo = Message<"temporal.api.taskqueue.v1.PollerInfo"> & {
349
+ /**
350
+ * @generated from field: google.protobuf.Timestamp last_access_time = 1;
351
+ */
352
+ lastAccessTime?: Timestamp;
353
+ /**
354
+ * @generated from field: string identity = 2;
355
+ */
356
+ identity: string;
357
+ /**
358
+ * @generated from field: double rate_per_second = 3;
359
+ */
360
+ ratePerSecond: number;
361
+ /**
362
+ * If a worker has opted into the worker versioning feature while polling, its capabilities will
363
+ * appear here.
364
+ * Deprecated. Replaced by deployment_options.
365
+ *
366
+ * @generated from field: temporal.api.common.v1.WorkerVersionCapabilities worker_version_capabilities = 4 [deprecated = true];
367
+ * @deprecated
368
+ */
369
+ workerVersionCapabilities?: WorkerVersionCapabilities;
370
+ /**
371
+ * Worker deployment options that SDK sent to server.
372
+ *
373
+ * @generated from field: temporal.api.deployment.v1.WorkerDeploymentOptions deployment_options = 5;
374
+ */
375
+ deploymentOptions?: WorkerDeploymentOptions;
376
+ };
377
+ /**
378
+ * Describes the message temporal.api.taskqueue.v1.PollerInfo.
379
+ * Use `create(PollerInfoSchema)` to create a new message.
380
+ */
381
+ export declare const PollerInfoSchema: GenMessage<PollerInfo>;
382
+ /**
383
+ * @generated from message temporal.api.taskqueue.v1.StickyExecutionAttributes
384
+ */
385
+ export type StickyExecutionAttributes = Message<"temporal.api.taskqueue.v1.StickyExecutionAttributes"> & {
386
+ /**
387
+ * @generated from field: temporal.api.taskqueue.v1.TaskQueue worker_task_queue = 1;
388
+ */
389
+ workerTaskQueue?: TaskQueue;
390
+ /**
391
+ * (-- api-linter: core::0140::prepositions=disabled
392
+ * aip.dev/not-precedent: "to" is used to indicate interval. --)
393
+ *
394
+ * @generated from field: google.protobuf.Duration schedule_to_start_timeout = 2;
395
+ */
396
+ scheduleToStartTimeout?: Duration;
397
+ };
398
+ /**
399
+ * Describes the message temporal.api.taskqueue.v1.StickyExecutionAttributes.
400
+ * Use `create(StickyExecutionAttributesSchema)` to create a new message.
401
+ */
402
+ export declare const StickyExecutionAttributesSchema: GenMessage<StickyExecutionAttributes>;
403
+ /**
404
+ * Used by the worker versioning APIs, represents an unordered set of one or more versions which are
405
+ * considered to be compatible with each other. Currently the versions are always worker build IDs.
406
+ *
407
+ * @generated from message temporal.api.taskqueue.v1.CompatibleVersionSet
408
+ */
409
+ export type CompatibleVersionSet = Message<"temporal.api.taskqueue.v1.CompatibleVersionSet"> & {
410
+ /**
411
+ * All the compatible versions, unordered, except for the last element, which is considered the set "default".
412
+ *
413
+ * @generated from field: repeated string build_ids = 1;
414
+ */
415
+ buildIds: string[];
416
+ };
417
+ /**
418
+ * Describes the message temporal.api.taskqueue.v1.CompatibleVersionSet.
419
+ * Use `create(CompatibleVersionSetSchema)` to create a new message.
420
+ */
421
+ export declare const CompatibleVersionSetSchema: GenMessage<CompatibleVersionSet>;
422
+ /**
423
+ * Reachability of tasks for a worker on a single task queue.
424
+ *
425
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueReachability
426
+ */
427
+ export type TaskQueueReachability = Message<"temporal.api.taskqueue.v1.TaskQueueReachability"> & {
428
+ /**
429
+ * @generated from field: string task_queue = 1;
430
+ */
431
+ taskQueue: string;
432
+ /**
433
+ * Task reachability for a worker in a single task queue.
434
+ * See the TaskReachability docstring for information about each enum variant.
435
+ * If reachability is empty, this worker is considered unreachable in this task queue.
436
+ *
437
+ * @generated from field: repeated temporal.api.enums.v1.TaskReachability reachability = 2;
438
+ */
439
+ reachability: TaskReachability[];
440
+ };
441
+ /**
442
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueReachability.
443
+ * Use `create(TaskQueueReachabilitySchema)` to create a new message.
444
+ */
445
+ export declare const TaskQueueReachabilitySchema: GenMessage<TaskQueueReachability>;
446
+ /**
447
+ * Reachability of tasks for a worker by build id, in one or more task queues.
448
+ *
449
+ * @generated from message temporal.api.taskqueue.v1.BuildIdReachability
450
+ */
451
+ export type BuildIdReachability = Message<"temporal.api.taskqueue.v1.BuildIdReachability"> & {
452
+ /**
453
+ * A build id or empty if unversioned.
454
+ *
455
+ * @generated from field: string build_id = 1;
456
+ */
457
+ buildId: string;
458
+ /**
459
+ * Reachability per task queue.
460
+ *
461
+ * @generated from field: repeated temporal.api.taskqueue.v1.TaskQueueReachability task_queue_reachability = 2;
462
+ */
463
+ taskQueueReachability: TaskQueueReachability[];
464
+ };
465
+ /**
466
+ * Describes the message temporal.api.taskqueue.v1.BuildIdReachability.
467
+ * Use `create(BuildIdReachabilitySchema)` to create a new message.
468
+ */
469
+ export declare const BuildIdReachabilitySchema: GenMessage<BuildIdReachability>;
470
+ /**
471
+ * @generated from message temporal.api.taskqueue.v1.RampByPercentage
472
+ */
473
+ export type RampByPercentage = Message<"temporal.api.taskqueue.v1.RampByPercentage"> & {
474
+ /**
475
+ * Acceptable range is [0,100).
476
+ *
477
+ * @generated from field: float ramp_percentage = 1;
478
+ */
479
+ rampPercentage: number;
480
+ };
481
+ /**
482
+ * Describes the message temporal.api.taskqueue.v1.RampByPercentage.
483
+ * Use `create(RampByPercentageSchema)` to create a new message.
484
+ */
485
+ export declare const RampByPercentageSchema: GenMessage<RampByPercentage>;
486
+ /**
487
+ * Assignment rules are applied to *new* Workflow and Activity executions at
488
+ * schedule time to assign them to a Build ID.
489
+ *
490
+ * Assignment rules will not be used in the following cases:
491
+ * - Child Workflows or Continue-As-New Executions who inherit their
492
+ * parent/previous Workflow's assigned Build ID (by setting the
493
+ * `inherit_build_id` flag - default behavior in SDKs when the same Task Queue
494
+ * is used.)
495
+ * - An Activity that inherits the assigned Build ID of its Workflow (by
496
+ * setting the `use_workflow_build_id` flag - default behavior in SDKs
497
+ * when the same Task Queue is used.)
498
+ *
499
+ * In absence of (applicable) redirect rules (`CompatibleBuildIdRedirectRule`s)
500
+ * the task will be dispatched to Workers of the Build ID determined by the
501
+ * assignment rules (or inherited). Otherwise, the final Build ID will be
502
+ * determined by the redirect rules.
503
+ *
504
+ * Once a Workflow completes its first Workflow Task in a particular Build ID it
505
+ * stays in that Build ID regardless of changes to assignment rules. Redirect
506
+ * rules can be used to move the workflow to another compatible Build ID.
507
+ *
508
+ * When using Worker Versioning on a Task Queue, in the steady state,
509
+ * there should typically be a single assignment rule to send all new executions
510
+ * to the latest Build ID. Existence of at least one such "unconditional"
511
+ * rule at all times is enforces by the system, unless the `force` flag is used
512
+ * by the user when replacing/deleting these rules (for exceptional cases).
513
+ *
514
+ * During a deployment, one or more additional rules can be added to assign a
515
+ * subset of the tasks to a new Build ID based on a "ramp percentage".
516
+ *
517
+ * When there are multiple assignment rules for a Task Queue, the rules are
518
+ * evaluated in order, starting from index 0. The first applicable rule will be
519
+ * applied and the rest will be ignored.
520
+ *
521
+ * In the event that no assignment rule is applicable on a task (or the Task
522
+ * Queue is simply not versioned), the tasks will be dispatched to an
523
+ * unversioned Worker.
524
+ *
525
+ * @generated from message temporal.api.taskqueue.v1.BuildIdAssignmentRule
526
+ */
527
+ export type BuildIdAssignmentRule = Message<"temporal.api.taskqueue.v1.BuildIdAssignmentRule"> & {
528
+ /**
529
+ * @generated from field: string target_build_id = 1;
530
+ */
531
+ targetBuildId: string;
532
+ /**
533
+ * If a ramp is provided, this rule will be applied only to a sample of
534
+ * tasks according to the provided percentage.
535
+ * This option can be used only on "terminal" Build IDs (the ones not used
536
+ * as source in any redirect rules).
537
+ *
538
+ * @generated from oneof temporal.api.taskqueue.v1.BuildIdAssignmentRule.ramp
539
+ */
540
+ ramp: {
541
+ /**
542
+ * This ramp is useful for gradual Blue/Green deployments (and similar)
543
+ * where you want to send a certain portion of the traffic to the target
544
+ * Build ID.
545
+ *
546
+ * @generated from field: temporal.api.taskqueue.v1.RampByPercentage percentage_ramp = 3;
547
+ */
548
+ value: RampByPercentage;
549
+ case: "percentageRamp";
550
+ } | {
551
+ case: undefined;
552
+ value?: undefined;
553
+ };
554
+ };
555
+ /**
556
+ * Describes the message temporal.api.taskqueue.v1.BuildIdAssignmentRule.
557
+ * Use `create(BuildIdAssignmentRuleSchema)` to create a new message.
558
+ */
559
+ export declare const BuildIdAssignmentRuleSchema: GenMessage<BuildIdAssignmentRule>;
560
+ /**
561
+ * These rules apply to tasks assigned to a particular Build ID
562
+ * (`source_build_id`) to redirect them to another *compatible* Build ID
563
+ * (`target_build_id`).
564
+ *
565
+ * It is user's responsibility to ensure that the target Build ID is compatible
566
+ * with the source Build ID (e.g. by using the Patching API).
567
+ *
568
+ * Most deployments are not expected to need these rules, however following
569
+ * situations can greatly benefit from redirects:
570
+ * - Need to move long-running Workflow Executions from an old Build ID to a
571
+ * newer one.
572
+ * - Need to hotfix some broken or stuck Workflow Executions.
573
+ *
574
+ * In steady state, redirect rules are beneficial when dealing with old
575
+ * Executions ran on now-decommissioned Build IDs:
576
+ * - To redirecting the Workflow Queries to the current (compatible) Build ID.
577
+ * - To be able to Reset an old Execution so it can run on the current
578
+ * (compatible) Build ID.
579
+ *
580
+ * Redirect rules can be chained.
581
+ *
582
+ * @generated from message temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule
583
+ */
584
+ export type CompatibleBuildIdRedirectRule = Message<"temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule"> & {
585
+ /**
586
+ * @generated from field: string source_build_id = 1;
587
+ */
588
+ sourceBuildId: string;
589
+ /**
590
+ * Target Build ID must be compatible with the Source Build ID; that is it
591
+ * must be able to process event histories made by the Source Build ID by
592
+ * using [Patching](https://docs.temporal.io/workflows#patching) or other
593
+ * means.
594
+ *
595
+ * @generated from field: string target_build_id = 2;
596
+ */
597
+ targetBuildId: string;
598
+ };
599
+ /**
600
+ * Describes the message temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule.
601
+ * Use `create(CompatibleBuildIdRedirectRuleSchema)` to create a new message.
602
+ */
603
+ export declare const CompatibleBuildIdRedirectRuleSchema: GenMessage<CompatibleBuildIdRedirectRule>;
604
+ /**
605
+ * @generated from message temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule
606
+ */
607
+ export type TimestampedBuildIdAssignmentRule = Message<"temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule"> & {
608
+ /**
609
+ * @generated from field: temporal.api.taskqueue.v1.BuildIdAssignmentRule rule = 1;
610
+ */
611
+ rule?: BuildIdAssignmentRule;
612
+ /**
613
+ * @generated from field: google.protobuf.Timestamp create_time = 2;
614
+ */
615
+ createTime?: Timestamp;
616
+ };
617
+ /**
618
+ * Describes the message temporal.api.taskqueue.v1.TimestampedBuildIdAssignmentRule.
619
+ * Use `create(TimestampedBuildIdAssignmentRuleSchema)` to create a new message.
620
+ */
621
+ export declare const TimestampedBuildIdAssignmentRuleSchema: GenMessage<TimestampedBuildIdAssignmentRule>;
622
+ /**
623
+ * @generated from message temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule
624
+ */
625
+ export type TimestampedCompatibleBuildIdRedirectRule = Message<"temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule"> & {
626
+ /**
627
+ * @generated from field: temporal.api.taskqueue.v1.CompatibleBuildIdRedirectRule rule = 1;
628
+ */
629
+ rule?: CompatibleBuildIdRedirectRule;
630
+ /**
631
+ * @generated from field: google.protobuf.Timestamp create_time = 2;
632
+ */
633
+ createTime?: Timestamp;
634
+ };
635
+ /**
636
+ * Describes the message temporal.api.taskqueue.v1.TimestampedCompatibleBuildIdRedirectRule.
637
+ * Use `create(TimestampedCompatibleBuildIdRedirectRuleSchema)` to create a new message.
638
+ */
639
+ export declare const TimestampedCompatibleBuildIdRedirectRuleSchema: GenMessage<TimestampedCompatibleBuildIdRedirectRule>;
640
+ /**
641
+ * Attached to task responses to give hints to the SDK about how it may adjust its number of
642
+ * pollers.
643
+ *
644
+ * @generated from message temporal.api.taskqueue.v1.PollerScalingDecision
645
+ */
646
+ export type PollerScalingDecision = Message<"temporal.api.taskqueue.v1.PollerScalingDecision"> & {
647
+ /**
648
+ * How many poll requests to suggest should be added or removed, if any. As of now, server only
649
+ * scales up or down by 1. However, SDKs should allow for other values (while staying within
650
+ * defined min/max).
651
+ *
652
+ * The SDK is free to ignore this suggestion, EX: making more polls would not make sense because
653
+ * all slots are already occupied.
654
+ *
655
+ * @generated from field: int32 poll_request_delta_suggestion = 1;
656
+ */
657
+ pollRequestDeltaSuggestion: number;
658
+ };
659
+ /**
660
+ * Describes the message temporal.api.taskqueue.v1.PollerScalingDecision.
661
+ * Use `create(PollerScalingDecisionSchema)` to create a new message.
662
+ */
663
+ export declare const PollerScalingDecisionSchema: GenMessage<PollerScalingDecision>;
664
+ /**
665
+ * @generated from message temporal.api.taskqueue.v1.RateLimit
666
+ */
667
+ export type RateLimit = Message<"temporal.api.taskqueue.v1.RateLimit"> & {
668
+ /**
669
+ * Zero is a valid rate limit.
670
+ *
671
+ * @generated from field: float requests_per_second = 1;
672
+ */
673
+ requestsPerSecond: number;
674
+ };
675
+ /**
676
+ * Describes the message temporal.api.taskqueue.v1.RateLimit.
677
+ * Use `create(RateLimitSchema)` to create a new message.
678
+ */
679
+ export declare const RateLimitSchema: GenMessage<RateLimit>;
680
+ /**
681
+ * @generated from message temporal.api.taskqueue.v1.ConfigMetadata
682
+ */
683
+ export type ConfigMetadata = Message<"temporal.api.taskqueue.v1.ConfigMetadata"> & {
684
+ /**
685
+ * Reason for why the config was set.
686
+ *
687
+ * @generated from field: string reason = 1;
688
+ */
689
+ reason: string;
690
+ /**
691
+ * Identity of the last updater.
692
+ * Set by the request's identity field.
693
+ *
694
+ * @generated from field: string update_identity = 2;
695
+ */
696
+ updateIdentity: string;
697
+ /**
698
+ * Time of the last update.
699
+ *
700
+ * @generated from field: google.protobuf.Timestamp update_time = 3;
701
+ */
702
+ updateTime?: Timestamp;
703
+ };
704
+ /**
705
+ * Describes the message temporal.api.taskqueue.v1.ConfigMetadata.
706
+ * Use `create(ConfigMetadataSchema)` to create a new message.
707
+ */
708
+ export declare const ConfigMetadataSchema: GenMessage<ConfigMetadata>;
709
+ /**
710
+ * @generated from message temporal.api.taskqueue.v1.RateLimitConfig
711
+ */
712
+ export type RateLimitConfig = Message<"temporal.api.taskqueue.v1.RateLimitConfig"> & {
713
+ /**
714
+ * @generated from field: temporal.api.taskqueue.v1.RateLimit rate_limit = 1;
715
+ */
716
+ rateLimit?: RateLimit;
717
+ /**
718
+ * @generated from field: temporal.api.taskqueue.v1.ConfigMetadata metadata = 2;
719
+ */
720
+ metadata?: ConfigMetadata;
721
+ };
722
+ /**
723
+ * Describes the message temporal.api.taskqueue.v1.RateLimitConfig.
724
+ * Use `create(RateLimitConfigSchema)` to create a new message.
725
+ */
726
+ export declare const RateLimitConfigSchema: GenMessage<RateLimitConfig>;
727
+ /**
728
+ * @generated from message temporal.api.taskqueue.v1.TaskQueueConfig
729
+ */
730
+ export type TaskQueueConfig = Message<"temporal.api.taskqueue.v1.TaskQueueConfig"> & {
731
+ /**
732
+ * Unless modified, this is the system-defined rate limit.
733
+ *
734
+ * @generated from field: temporal.api.taskqueue.v1.RateLimitConfig queue_rate_limit = 1;
735
+ */
736
+ queueRateLimit?: RateLimitConfig;
737
+ /**
738
+ * If set, each individual fairness key will be limited to this rate, scaled by the weight of the fairness key.
739
+ *
740
+ * @generated from field: temporal.api.taskqueue.v1.RateLimitConfig fairness_keys_rate_limit_default = 2;
741
+ */
742
+ fairnessKeysRateLimitDefault?: RateLimitConfig;
743
+ /**
744
+ * If set, overrides the fairness weights for the corresponding fairness keys.
745
+ *
746
+ * @generated from field: map<string, float> fairness_weight_overrides = 3;
747
+ */
748
+ fairnessWeightOverrides: {
749
+ [key: string]: number;
750
+ };
751
+ };
752
+ /**
753
+ * Describes the message temporal.api.taskqueue.v1.TaskQueueConfig.
754
+ * Use `create(TaskQueueConfigSchema)` to create a new message.
755
+ */
756
+ export declare const TaskQueueConfigSchema: GenMessage<TaskQueueConfig>;
757
+ //# sourceMappingURL=message_pb.d.ts.map