@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,751 @@
1
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Duration, Empty } from "@bufbuild/protobuf/wkt";
3
+ import type { EncodingType } from "../../enums/v1/common_pb.js";
4
+ import type { EventType } from "../../enums/v1/event_type_pb.js";
5
+ import type { ResetReapplyExcludeType, ResetReapplyType } from "../../enums/v1/reset_pb.js";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ /**
8
+ * Describes the file temporal/api/common/v1/message.proto.
9
+ */
10
+ export declare const file_temporal_api_common_v1_message: GenFile;
11
+ /**
12
+ * @generated from message temporal.api.common.v1.DataBlob
13
+ */
14
+ export type DataBlob = Message<"temporal.api.common.v1.DataBlob"> & {
15
+ /**
16
+ * @generated from field: temporal.api.enums.v1.EncodingType encoding_type = 1;
17
+ */
18
+ encodingType: EncodingType;
19
+ /**
20
+ * @generated from field: bytes data = 2;
21
+ */
22
+ data: Uint8Array;
23
+ };
24
+ /**
25
+ * Describes the message temporal.api.common.v1.DataBlob.
26
+ * Use `create(DataBlobSchema)` to create a new message.
27
+ */
28
+ export declare const DataBlobSchema: GenMessage<DataBlob>;
29
+ /**
30
+ * See `Payload`
31
+ *
32
+ * @generated from message temporal.api.common.v1.Payloads
33
+ */
34
+ export type Payloads = Message<"temporal.api.common.v1.Payloads"> & {
35
+ /**
36
+ * @generated from field: repeated temporal.api.common.v1.Payload payloads = 1;
37
+ */
38
+ payloads: Payload[];
39
+ };
40
+ /**
41
+ * Describes the message temporal.api.common.v1.Payloads.
42
+ * Use `create(PayloadsSchema)` to create a new message.
43
+ */
44
+ export declare const PayloadsSchema: GenMessage<Payloads>;
45
+ /**
46
+ * Represents some binary (byte array) data (ex: activity input parameters or workflow result) with
47
+ * metadata which describes this binary data (format, encoding, encryption, etc). Serialization
48
+ * of the data may be user-defined.
49
+ *
50
+ * @generated from message temporal.api.common.v1.Payload
51
+ */
52
+ export type Payload = Message<"temporal.api.common.v1.Payload"> & {
53
+ /**
54
+ * @generated from field: map<string, bytes> metadata = 1;
55
+ */
56
+ metadata: {
57
+ [key: string]: Uint8Array;
58
+ };
59
+ /**
60
+ * @generated from field: bytes data = 2;
61
+ */
62
+ data: Uint8Array;
63
+ };
64
+ /**
65
+ * Describes the message temporal.api.common.v1.Payload.
66
+ * Use `create(PayloadSchema)` to create a new message.
67
+ */
68
+ export declare const PayloadSchema: GenMessage<Payload>;
69
+ /**
70
+ * A user-defined set of *indexed* fields that are used/exposed when listing/searching workflows.
71
+ * The payload is not serialized in a user-defined way.
72
+ *
73
+ * @generated from message temporal.api.common.v1.SearchAttributes
74
+ */
75
+ export type SearchAttributes = Message<"temporal.api.common.v1.SearchAttributes"> & {
76
+ /**
77
+ * @generated from field: map<string, temporal.api.common.v1.Payload> indexed_fields = 1;
78
+ */
79
+ indexedFields: {
80
+ [key: string]: Payload;
81
+ };
82
+ };
83
+ /**
84
+ * Describes the message temporal.api.common.v1.SearchAttributes.
85
+ * Use `create(SearchAttributesSchema)` to create a new message.
86
+ */
87
+ export declare const SearchAttributesSchema: GenMessage<SearchAttributes>;
88
+ /**
89
+ * A user-defined set of *unindexed* fields that are exposed when listing/searching workflows
90
+ *
91
+ * @generated from message temporal.api.common.v1.Memo
92
+ */
93
+ export type Memo = Message<"temporal.api.common.v1.Memo"> & {
94
+ /**
95
+ * @generated from field: map<string, temporal.api.common.v1.Payload> fields = 1;
96
+ */
97
+ fields: {
98
+ [key: string]: Payload;
99
+ };
100
+ };
101
+ /**
102
+ * Describes the message temporal.api.common.v1.Memo.
103
+ * Use `create(MemoSchema)` to create a new message.
104
+ */
105
+ export declare const MemoSchema: GenMessage<Memo>;
106
+ /**
107
+ * Contains metadata that can be attached to a variety of requests, like starting a workflow, and
108
+ * can be propagated between, for example, workflows and activities.
109
+ *
110
+ * @generated from message temporal.api.common.v1.Header
111
+ */
112
+ export type Header = Message<"temporal.api.common.v1.Header"> & {
113
+ /**
114
+ * @generated from field: map<string, temporal.api.common.v1.Payload> fields = 1;
115
+ */
116
+ fields: {
117
+ [key: string]: Payload;
118
+ };
119
+ };
120
+ /**
121
+ * Describes the message temporal.api.common.v1.Header.
122
+ * Use `create(HeaderSchema)` to create a new message.
123
+ */
124
+ export declare const HeaderSchema: GenMessage<Header>;
125
+ /**
126
+ * Identifies a specific workflow within a namespace. Practically speaking, because run_id is a
127
+ * uuid, a workflow execution is globally unique. Note that many commands allow specifying an empty
128
+ * run id as a way of saying "target the latest run of the workflow".
129
+ *
130
+ * @generated from message temporal.api.common.v1.WorkflowExecution
131
+ */
132
+ export type WorkflowExecution = Message<"temporal.api.common.v1.WorkflowExecution"> & {
133
+ /**
134
+ * @generated from field: string workflow_id = 1;
135
+ */
136
+ workflowId: string;
137
+ /**
138
+ * @generated from field: string run_id = 2;
139
+ */
140
+ runId: string;
141
+ };
142
+ /**
143
+ * Describes the message temporal.api.common.v1.WorkflowExecution.
144
+ * Use `create(WorkflowExecutionSchema)` to create a new message.
145
+ */
146
+ export declare const WorkflowExecutionSchema: GenMessage<WorkflowExecution>;
147
+ /**
148
+ * Represents the identifier used by a workflow author to define the workflow. Typically, the
149
+ * name of a function. This is sometimes referred to as the workflow's "name"
150
+ *
151
+ * @generated from message temporal.api.common.v1.WorkflowType
152
+ */
153
+ export type WorkflowType = Message<"temporal.api.common.v1.WorkflowType"> & {
154
+ /**
155
+ * @generated from field: string name = 1;
156
+ */
157
+ name: string;
158
+ };
159
+ /**
160
+ * Describes the message temporal.api.common.v1.WorkflowType.
161
+ * Use `create(WorkflowTypeSchema)` to create a new message.
162
+ */
163
+ export declare const WorkflowTypeSchema: GenMessage<WorkflowType>;
164
+ /**
165
+ * Represents the identifier used by a activity author to define the activity. Typically, the
166
+ * name of a function. This is sometimes referred to as the activity's "name"
167
+ *
168
+ * @generated from message temporal.api.common.v1.ActivityType
169
+ */
170
+ export type ActivityType = Message<"temporal.api.common.v1.ActivityType"> & {
171
+ /**
172
+ * @generated from field: string name = 1;
173
+ */
174
+ name: string;
175
+ };
176
+ /**
177
+ * Describes the message temporal.api.common.v1.ActivityType.
178
+ * Use `create(ActivityTypeSchema)` to create a new message.
179
+ */
180
+ export declare const ActivityTypeSchema: GenMessage<ActivityType>;
181
+ /**
182
+ * How retries ought to be handled, usable by both workflows and activities
183
+ *
184
+ * @generated from message temporal.api.common.v1.RetryPolicy
185
+ */
186
+ export type RetryPolicy = Message<"temporal.api.common.v1.RetryPolicy"> & {
187
+ /**
188
+ * Interval of the first retry. If retryBackoffCoefficient is 1.0 then it is used for all retries.
189
+ *
190
+ * @generated from field: google.protobuf.Duration initial_interval = 1;
191
+ */
192
+ initialInterval?: Duration;
193
+ /**
194
+ * Coefficient used to calculate the next retry interval.
195
+ * The next retry interval is previous interval multiplied by the coefficient.
196
+ * Must be 1 or larger.
197
+ *
198
+ * @generated from field: double backoff_coefficient = 2;
199
+ */
200
+ backoffCoefficient: number;
201
+ /**
202
+ * Maximum interval between retries. Exponential backoff leads to interval increase.
203
+ * This value is the cap of the increase. Default is 100x of the initial interval.
204
+ *
205
+ * @generated from field: google.protobuf.Duration maximum_interval = 3;
206
+ */
207
+ maximumInterval?: Duration;
208
+ /**
209
+ * Maximum number of attempts. When exceeded the retries stop even if not expired yet.
210
+ * 1 disables retries. 0 means unlimited (up to the timeouts)
211
+ *
212
+ * @generated from field: int32 maximum_attempts = 4;
213
+ */
214
+ maximumAttempts: number;
215
+ /**
216
+ * Non-Retryable errors types. Will stop retrying if the error type matches this list. Note that
217
+ * this is not a substring match, the error *type* (not message) must match exactly.
218
+ *
219
+ * @generated from field: repeated string non_retryable_error_types = 5;
220
+ */
221
+ nonRetryableErrorTypes: string[];
222
+ };
223
+ /**
224
+ * Describes the message temporal.api.common.v1.RetryPolicy.
225
+ * Use `create(RetryPolicySchema)` to create a new message.
226
+ */
227
+ export declare const RetryPolicySchema: GenMessage<RetryPolicy>;
228
+ /**
229
+ * Metadata relevant for metering purposes
230
+ *
231
+ * @generated from message temporal.api.common.v1.MeteringMetadata
232
+ */
233
+ export type MeteringMetadata = Message<"temporal.api.common.v1.MeteringMetadata"> & {
234
+ /**
235
+ * Count of local activities which have begun an execution attempt during this workflow task,
236
+ * and whose first attempt occurred in some previous task. This is used for metering
237
+ * purposes, and does not affect workflow state.
238
+ *
239
+ * (-- api-linter: core::0141::forbidden-types=disabled
240
+ * aip.dev/not-precedent: Negative values make no sense to represent. --)
241
+ *
242
+ * @generated from field: uint32 nonfirst_local_activity_execution_attempts = 13;
243
+ */
244
+ nonfirstLocalActivityExecutionAttempts: number;
245
+ };
246
+ /**
247
+ * Describes the message temporal.api.common.v1.MeteringMetadata.
248
+ * Use `create(MeteringMetadataSchema)` to create a new message.
249
+ */
250
+ export declare const MeteringMetadataSchema: GenMessage<MeteringMetadata>;
251
+ /**
252
+ * Deprecated. This message is replaced with `Deployment` and `VersioningBehavior`.
253
+ * Identifies the version(s) of a worker that processed a task
254
+ *
255
+ * @generated from message temporal.api.common.v1.WorkerVersionStamp
256
+ */
257
+ export type WorkerVersionStamp = Message<"temporal.api.common.v1.WorkerVersionStamp"> & {
258
+ /**
259
+ * An opaque whole-worker identifier. Replaces the deprecated `binary_checksum` field when this
260
+ * message is included in requests which previously used that.
261
+ *
262
+ * @generated from field: string build_id = 1;
263
+ */
264
+ buildId: string;
265
+ /**
266
+ * If set, the worker is opting in to worker versioning. Otherwise, this is used only as a
267
+ * marker for workflow reset points and the BuildIDs search attribute.
268
+ *
269
+ * @generated from field: bool use_versioning = 3;
270
+ */
271
+ useVersioning: boolean;
272
+ };
273
+ /**
274
+ * Describes the message temporal.api.common.v1.WorkerVersionStamp.
275
+ * Use `create(WorkerVersionStampSchema)` to create a new message.
276
+ */
277
+ export declare const WorkerVersionStampSchema: GenMessage<WorkerVersionStamp>;
278
+ /**
279
+ * Identifies the version that a worker is compatible with when polling or identifying itself,
280
+ * and whether or not this worker is opting into the build-id based versioning feature. This is
281
+ * used by matching to determine which workers ought to receive what tasks.
282
+ * Deprecated. Use WorkerDeploymentOptions instead.
283
+ *
284
+ * @generated from message temporal.api.common.v1.WorkerVersionCapabilities
285
+ */
286
+ export type WorkerVersionCapabilities = Message<"temporal.api.common.v1.WorkerVersionCapabilities"> & {
287
+ /**
288
+ * An opaque whole-worker identifier
289
+ *
290
+ * @generated from field: string build_id = 1;
291
+ */
292
+ buildId: string;
293
+ /**
294
+ * If set, the worker is opting in to worker versioning, and wishes to only receive appropriate
295
+ * tasks.
296
+ *
297
+ * @generated from field: bool use_versioning = 2;
298
+ */
299
+ useVersioning: boolean;
300
+ /**
301
+ * Must be sent if user has set a deployment series name (versioning-3).
302
+ *
303
+ * @generated from field: string deployment_series_name = 4;
304
+ */
305
+ deploymentSeriesName: string;
306
+ };
307
+ /**
308
+ * Describes the message temporal.api.common.v1.WorkerVersionCapabilities.
309
+ * Use `create(WorkerVersionCapabilitiesSchema)` to create a new message.
310
+ */
311
+ export declare const WorkerVersionCapabilitiesSchema: GenMessage<WorkerVersionCapabilities>;
312
+ /**
313
+ * Describes where and how to reset a workflow, used for batch reset currently
314
+ * and may be used for single-workflow reset later.
315
+ *
316
+ * @generated from message temporal.api.common.v1.ResetOptions
317
+ */
318
+ export type ResetOptions = Message<"temporal.api.common.v1.ResetOptions"> & {
319
+ /**
320
+ * Which workflow task to reset to.
321
+ *
322
+ * @generated from oneof temporal.api.common.v1.ResetOptions.target
323
+ */
324
+ target: {
325
+ /**
326
+ * Resets to the first workflow task completed or started event.
327
+ *
328
+ * @generated from field: google.protobuf.Empty first_workflow_task = 1;
329
+ */
330
+ value: Empty;
331
+ case: "firstWorkflowTask";
332
+ } | {
333
+ /**
334
+ * Resets to the last workflow task completed or started event.
335
+ *
336
+ * @generated from field: google.protobuf.Empty last_workflow_task = 2;
337
+ */
338
+ value: Empty;
339
+ case: "lastWorkflowTask";
340
+ } | {
341
+ /**
342
+ * The id of a specific `WORKFLOW_TASK_COMPLETED`,`WORKFLOW_TASK_TIMED_OUT`, `WORKFLOW_TASK_FAILED`, or
343
+ * `WORKFLOW_TASK_STARTED` event to reset to.
344
+ * Note that this option doesn't make sense when used as part of a batch request.
345
+ *
346
+ * @generated from field: int64 workflow_task_id = 3;
347
+ */
348
+ value: bigint;
349
+ case: "workflowTaskId";
350
+ } | {
351
+ /**
352
+ * Resets to the first workflow task processed by this build id.
353
+ * If the workflow was not processed by the build id, or the workflow task can't be
354
+ * determined, no reset will be performed.
355
+ * Note that by default, this reset is allowed to be to a prior run in a chain of
356
+ * continue-as-new.
357
+ *
358
+ * @generated from field: string build_id = 4;
359
+ */
360
+ value: string;
361
+ case: "buildId";
362
+ } | {
363
+ case: undefined;
364
+ value?: undefined;
365
+ };
366
+ /**
367
+ * Deprecated. Use `options`.
368
+ * Default: RESET_REAPPLY_TYPE_SIGNAL
369
+ *
370
+ * @generated from field: temporal.api.enums.v1.ResetReapplyType reset_reapply_type = 10 [deprecated = true];
371
+ * @deprecated
372
+ */
373
+ resetReapplyType: ResetReapplyType;
374
+ /**
375
+ * If true, limit the reset to only within the current run. (Applies to build_id targets and
376
+ * possibly others in the future.)
377
+ *
378
+ * @generated from field: bool current_run_only = 11;
379
+ */
380
+ currentRunOnly: boolean;
381
+ /**
382
+ * Event types not to be reapplied
383
+ *
384
+ * @generated from field: repeated temporal.api.enums.v1.ResetReapplyExcludeType reset_reapply_exclude_types = 12;
385
+ */
386
+ resetReapplyExcludeTypes: ResetReapplyExcludeType[];
387
+ };
388
+ /**
389
+ * Describes the message temporal.api.common.v1.ResetOptions.
390
+ * Use `create(ResetOptionsSchema)` to create a new message.
391
+ */
392
+ export declare const ResetOptionsSchema: GenMessage<ResetOptions>;
393
+ /**
394
+ * Callback to attach to various events in the system, e.g. workflow run completion.
395
+ *
396
+ * @generated from message temporal.api.common.v1.Callback
397
+ */
398
+ export type Callback = Message<"temporal.api.common.v1.Callback"> & {
399
+ /**
400
+ * @generated from oneof temporal.api.common.v1.Callback.variant
401
+ */
402
+ variant: {
403
+ /**
404
+ * @generated from field: temporal.api.common.v1.Callback.Nexus nexus = 2;
405
+ */
406
+ value: Callback_Nexus;
407
+ case: "nexus";
408
+ } | {
409
+ /**
410
+ * @generated from field: temporal.api.common.v1.Callback.Internal internal = 3;
411
+ */
412
+ value: Callback_Internal;
413
+ case: "internal";
414
+ } | {
415
+ case: undefined;
416
+ value?: undefined;
417
+ };
418
+ /**
419
+ * Links associated with the callback. It can be used to link to underlying resources of the
420
+ * callback.
421
+ *
422
+ * @generated from field: repeated temporal.api.common.v1.Link links = 100;
423
+ */
424
+ links: Link[];
425
+ };
426
+ /**
427
+ * Describes the message temporal.api.common.v1.Callback.
428
+ * Use `create(CallbackSchema)` to create a new message.
429
+ */
430
+ export declare const CallbackSchema: GenMessage<Callback>;
431
+ /**
432
+ * @generated from message temporal.api.common.v1.Callback.Nexus
433
+ */
434
+ export type Callback_Nexus = Message<"temporal.api.common.v1.Callback.Nexus"> & {
435
+ /**
436
+ * Callback URL.
437
+ *
438
+ * @generated from field: string url = 1;
439
+ */
440
+ url: string;
441
+ /**
442
+ * Header to attach to callback request.
443
+ *
444
+ * @generated from field: map<string, string> header = 2;
445
+ */
446
+ header: {
447
+ [key: string]: string;
448
+ };
449
+ };
450
+ /**
451
+ * Describes the message temporal.api.common.v1.Callback.Nexus.
452
+ * Use `create(Callback_NexusSchema)` to create a new message.
453
+ */
454
+ export declare const Callback_NexusSchema: GenMessage<Callback_Nexus>;
455
+ /**
456
+ * Callbacks to be delivered internally within the system.
457
+ * This variant is not settable in the API and will be rejected by the service with an INVALID_ARGUMENT error.
458
+ * The only reason that this is exposed is because callbacks are replicated across clusters via the
459
+ * WorkflowExecutionStarted event, which is defined in the public API.
460
+ *
461
+ * @generated from message temporal.api.common.v1.Callback.Internal
462
+ */
463
+ export type Callback_Internal = Message<"temporal.api.common.v1.Callback.Internal"> & {
464
+ /**
465
+ * Opaque internal data.
466
+ *
467
+ * @generated from field: bytes data = 1;
468
+ */
469
+ data: Uint8Array;
470
+ };
471
+ /**
472
+ * Describes the message temporal.api.common.v1.Callback.Internal.
473
+ * Use `create(Callback_InternalSchema)` to create a new message.
474
+ */
475
+ export declare const Callback_InternalSchema: GenMessage<Callback_Internal>;
476
+ /**
477
+ * Link can be associated with history events. It might contain information about an external entity
478
+ * related to the history event. For example, workflow A makes a Nexus call that starts workflow B:
479
+ * in this case, a history event in workflow A could contain a Link to the workflow started event in
480
+ * workflow B, and vice-versa.
481
+ *
482
+ * @generated from message temporal.api.common.v1.Link
483
+ */
484
+ export type Link = Message<"temporal.api.common.v1.Link"> & {
485
+ /**
486
+ * @generated from oneof temporal.api.common.v1.Link.variant
487
+ */
488
+ variant: {
489
+ /**
490
+ * @generated from field: temporal.api.common.v1.Link.WorkflowEvent workflow_event = 1;
491
+ */
492
+ value: Link_WorkflowEvent;
493
+ case: "workflowEvent";
494
+ } | {
495
+ /**
496
+ * @generated from field: temporal.api.common.v1.Link.BatchJob batch_job = 2;
497
+ */
498
+ value: Link_BatchJob;
499
+ case: "batchJob";
500
+ } | {
501
+ case: undefined;
502
+ value?: undefined;
503
+ };
504
+ };
505
+ /**
506
+ * Describes the message temporal.api.common.v1.Link.
507
+ * Use `create(LinkSchema)` to create a new message.
508
+ */
509
+ export declare const LinkSchema: GenMessage<Link>;
510
+ /**
511
+ * @generated from message temporal.api.common.v1.Link.WorkflowEvent
512
+ */
513
+ export type Link_WorkflowEvent = Message<"temporal.api.common.v1.Link.WorkflowEvent"> & {
514
+ /**
515
+ * @generated from field: string namespace = 1;
516
+ */
517
+ namespace: string;
518
+ /**
519
+ * @generated from field: string workflow_id = 2;
520
+ */
521
+ workflowId: string;
522
+ /**
523
+ * @generated from field: string run_id = 3;
524
+ */
525
+ runId: string;
526
+ /**
527
+ * Additional information about the workflow event.
528
+ * Eg: the caller workflow can send the history event details that made the Nexus call.
529
+ *
530
+ * @generated from oneof temporal.api.common.v1.Link.WorkflowEvent.reference
531
+ */
532
+ reference: {
533
+ /**
534
+ * @generated from field: temporal.api.common.v1.Link.WorkflowEvent.EventReference event_ref = 100;
535
+ */
536
+ value: Link_WorkflowEvent_EventReference;
537
+ case: "eventRef";
538
+ } | {
539
+ /**
540
+ * @generated from field: temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference request_id_ref = 101;
541
+ */
542
+ value: Link_WorkflowEvent_RequestIdReference;
543
+ case: "requestIdRef";
544
+ } | {
545
+ case: undefined;
546
+ value?: undefined;
547
+ };
548
+ };
549
+ /**
550
+ * Describes the message temporal.api.common.v1.Link.WorkflowEvent.
551
+ * Use `create(Link_WorkflowEventSchema)` to create a new message.
552
+ */
553
+ export declare const Link_WorkflowEventSchema: GenMessage<Link_WorkflowEvent>;
554
+ /**
555
+ * EventReference is a direct reference to a history event through the event ID.
556
+ *
557
+ * @generated from message temporal.api.common.v1.Link.WorkflowEvent.EventReference
558
+ */
559
+ export type Link_WorkflowEvent_EventReference = Message<"temporal.api.common.v1.Link.WorkflowEvent.EventReference"> & {
560
+ /**
561
+ * @generated from field: int64 event_id = 1;
562
+ */
563
+ eventId: bigint;
564
+ /**
565
+ * @generated from field: temporal.api.enums.v1.EventType event_type = 2;
566
+ */
567
+ eventType: EventType;
568
+ };
569
+ /**
570
+ * Describes the message temporal.api.common.v1.Link.WorkflowEvent.EventReference.
571
+ * Use `create(Link_WorkflowEvent_EventReferenceSchema)` to create a new message.
572
+ */
573
+ export declare const Link_WorkflowEvent_EventReferenceSchema: GenMessage<Link_WorkflowEvent_EventReference>;
574
+ /**
575
+ * RequestIdReference is a indirect reference to a history event through the request ID.
576
+ *
577
+ * @generated from message temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference
578
+ */
579
+ export type Link_WorkflowEvent_RequestIdReference = Message<"temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference"> & {
580
+ /**
581
+ * @generated from field: string request_id = 1;
582
+ */
583
+ requestId: string;
584
+ /**
585
+ * @generated from field: temporal.api.enums.v1.EventType event_type = 2;
586
+ */
587
+ eventType: EventType;
588
+ };
589
+ /**
590
+ * Describes the message temporal.api.common.v1.Link.WorkflowEvent.RequestIdReference.
591
+ * Use `create(Link_WorkflowEvent_RequestIdReferenceSchema)` to create a new message.
592
+ */
593
+ export declare const Link_WorkflowEvent_RequestIdReferenceSchema: GenMessage<Link_WorkflowEvent_RequestIdReference>;
594
+ /**
595
+ * A link to a built-in batch job.
596
+ * Batch jobs can be used to perform operations on a set of workflows (e.g. terminate, signal, cancel, etc).
597
+ * This link can be put on workflow history events generated by actions taken by a batch job.
598
+ *
599
+ * @generated from message temporal.api.common.v1.Link.BatchJob
600
+ */
601
+ export type Link_BatchJob = Message<"temporal.api.common.v1.Link.BatchJob"> & {
602
+ /**
603
+ * @generated from field: string job_id = 1;
604
+ */
605
+ jobId: string;
606
+ };
607
+ /**
608
+ * Describes the message temporal.api.common.v1.Link.BatchJob.
609
+ * Use `create(Link_BatchJobSchema)` to create a new message.
610
+ */
611
+ export declare const Link_BatchJobSchema: GenMessage<Link_BatchJob>;
612
+ /**
613
+ * Priority contains metadata that controls relative ordering of task processing
614
+ * when tasks are backed up in a queue. Initially, Priority will be used in
615
+ * matching (workflow and activity) task queues. Later it may be used in history
616
+ * task queues and in rate limiting decisions.
617
+ *
618
+ * Priority is attached to workflows and activities. By default, activities
619
+ * inherit Priority from the workflow that created them, but may override fields
620
+ * when an activity is started or modified.
621
+ *
622
+ * Despite being named "Priority", this message also contains fields that
623
+ * control "fairness" mechanisms.
624
+ *
625
+ * For all fields, the field not present or equal to zero/empty string means to
626
+ * inherit the value from the calling workflow, or if there is no calling
627
+ * workflow, then use the default value.
628
+ *
629
+ * For all fields other than fairness_key, the zero value isn't meaningful so
630
+ * there's no confusion between inherit/default and a meaningful value. For
631
+ * fairness_key, the empty string will be interpreted as "inherit". This means
632
+ * that if a workflow has a non-empty fairness key, you can't override the
633
+ * fairness key of its activity to the empty string.
634
+ *
635
+ * The overall semantics of Priority are:
636
+ * 1. First, consider "priority": higher priority (lower number) goes first.
637
+ * 2. Then, consider fairness: try to dispatch tasks for different fairness keys
638
+ * in proportion to their weight.
639
+ *
640
+ * Applications may use any subset of mechanisms that are useful to them and
641
+ * leave the other fields to use default values.
642
+ *
643
+ * Not all queues in the system may support the "full" semantics of all priority
644
+ * fields. (Currently only support in matching task queues is planned.)
645
+ *
646
+ * @generated from message temporal.api.common.v1.Priority
647
+ */
648
+ export type Priority = Message<"temporal.api.common.v1.Priority"> & {
649
+ /**
650
+ * Priority key is a positive integer from 1 to n, where smaller integers
651
+ * correspond to higher priorities (tasks run sooner). In general, tasks in
652
+ * a queue should be processed in close to priority order, although small
653
+ * deviations are possible.
654
+ *
655
+ * The maximum priority value (minimum priority) is determined by server
656
+ * configuration, and defaults to 5.
657
+ *
658
+ * If priority is not present (or zero), then the effective priority will be
659
+ * the default priority, which is calculated by (min+max)/2. With the
660
+ * default max of 5, and min of 1, that comes out to 3.
661
+ *
662
+ * @generated from field: int32 priority_key = 1;
663
+ */
664
+ priorityKey: number;
665
+ /**
666
+ * Fairness key is a short string that's used as a key for a fairness
667
+ * balancing mechanism. It may correspond to a tenant id, or to a fixed
668
+ * string like "high" or "low". The default is the empty string.
669
+ *
670
+ * The fairness mechanism attempts to dispatch tasks for a given key in
671
+ * proportion to its weight. For example, using a thousand distinct tenant
672
+ * ids, each with a weight of 1.0 (the default) will result in each tenant
673
+ * getting a roughly equal share of task dispatch throughput.
674
+ *
675
+ * (Note: this does not imply equal share of worker capacity! Fairness
676
+ * decisions are made based on queue statistics, not
677
+ * current worker load.)
678
+ *
679
+ * As another example, using keys "high" and "low" with weight 9.0 and 1.0
680
+ * respectively will prefer dispatching "high" tasks over "low" tasks at a
681
+ * 9:1 ratio, while allowing either key to use all worker capacity if the
682
+ * other is not present.
683
+ *
684
+ * All fairness mechanisms, including rate limits, are best-effort and
685
+ * probabilistic. The results may not match what a "perfect" algorithm with
686
+ * infinite resources would produce. The more unique keys are used, the less
687
+ * accurate the results will be.
688
+ *
689
+ * Fairness keys are limited to 64 bytes.
690
+ *
691
+ * @generated from field: string fairness_key = 2;
692
+ */
693
+ fairnessKey: string;
694
+ /**
695
+ * Fairness weight for a task can come from multiple sources for
696
+ * flexibility. From highest to lowest precedence:
697
+ * 1. Weights for a small set of keys can be overridden in task queue
698
+ * configuration with an API.
699
+ * 2. It can be attached to the workflow/activity in this field.
700
+ * 3. The default weight of 1.0 will be used.
701
+ *
702
+ * Weight values are clamped to the range [0.001, 1000].
703
+ *
704
+ * @generated from field: float fairness_weight = 3;
705
+ */
706
+ fairnessWeight: number;
707
+ };
708
+ /**
709
+ * Describes the message temporal.api.common.v1.Priority.
710
+ * Use `create(PrioritySchema)` to create a new message.
711
+ */
712
+ export declare const PrioritySchema: GenMessage<Priority>;
713
+ /**
714
+ * This is used to send commands to a specific worker or a group of workers.
715
+ * Right now, it is used to send commands to a specific worker instance.
716
+ * Will be extended to be able to send command to multiple workers.
717
+ *
718
+ * @generated from message temporal.api.common.v1.WorkerSelector
719
+ */
720
+ export type WorkerSelector = Message<"temporal.api.common.v1.WorkerSelector"> & {
721
+ /**
722
+ * Options are:
723
+ * - query (will be used as query to ListWorkers, same format as in ListWorkersRequest.query)
724
+ * - task queue (just a shortcut. Same as query=' "TaskQueue"="my-task-queue" ')
725
+ * - etc.
726
+ * All but 'query' are shortcuts, can be replaced with a query, but it is not convenient.
727
+ * string query = 5;
728
+ * string task_queue = 6;
729
+ * ...
730
+ *
731
+ * @generated from oneof temporal.api.common.v1.WorkerSelector.selector
732
+ */
733
+ selector: {
734
+ /**
735
+ * Worker instance key to which the command should be sent.
736
+ *
737
+ * @generated from field: string worker_instance_key = 1;
738
+ */
739
+ value: string;
740
+ case: "workerInstanceKey";
741
+ } | {
742
+ case: undefined;
743
+ value?: undefined;
744
+ };
745
+ };
746
+ /**
747
+ * Describes the message temporal.api.common.v1.WorkerSelector.
748
+ * Use `create(WorkerSelectorSchema)` to create a new message.
749
+ */
750
+ export declare const WorkerSelectorSchema: GenMessage<WorkerSelector>;
751
+ //# sourceMappingURL=message_pb.d.ts.map