@proompteng/temporal-bun-sdk 0.9.1 → 0.11.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 (278) hide show
  1. package/README.md +21 -6
  2. package/dist/agent-readiness.json +115 -13
  3. package/dist/production-readiness.json +391 -26
  4. package/dist/release-provenance.json +82 -0
  5. package/dist/src/activities/lifecycle.d.ts.map +1 -1
  6. package/dist/src/activities/lifecycle.js +27 -9
  7. package/dist/src/activities/lifecycle.js.map +1 -1
  8. package/dist/src/bin/lint-workflows-command.d.ts +3 -3
  9. package/dist/src/bin/lint-workflows-command.d.ts.map +1 -1
  10. package/dist/src/bin/lint-workflows-command.js +5 -0
  11. package/dist/src/bin/lint-workflows-command.js.map +1 -1
  12. package/dist/src/bin/replay-command.d.ts +2 -2
  13. package/dist/src/bin/replay-command.d.ts.map +1 -1
  14. package/dist/src/bin/replay-command.js +9 -5
  15. package/dist/src/bin/replay-command.js.map +1 -1
  16. package/dist/src/bin/temporal-bun.d.ts +2 -2
  17. package/dist/src/client/interceptors.d.ts.map +1 -1
  18. package/dist/src/client/interceptors.js +1 -1
  19. package/dist/src/client/interceptors.js.map +1 -1
  20. package/dist/src/client/retries.d.ts.map +1 -1
  21. package/dist/src/client/retries.js +12 -2
  22. package/dist/src/client/retries.js.map +1 -1
  23. package/dist/src/client.d.ts.map +1 -1
  24. package/dist/src/client.js +102 -35
  25. package/dist/src/client.js.map +1 -1
  26. package/dist/src/common/payloads/codecs.d.ts +4 -4
  27. package/dist/src/common/payloads/codecs.d.ts.map +1 -1
  28. package/dist/src/config.d.ts +10 -10
  29. package/dist/src/config.d.ts.map +1 -1
  30. package/dist/src/interceptors/types.d.ts.map +1 -1
  31. package/dist/src/interceptors/types.js +6 -4
  32. package/dist/src/interceptors/types.js.map +1 -1
  33. package/dist/src/otel/auto-instrumentations-node.d.ts +1 -1
  34. package/dist/src/otel/auto-instrumentations-node.d.ts.map +1 -1
  35. package/dist/src/proto/protoc-gen-openapiv2/options/annotations_pb.js +1 -1
  36. package/dist/src/proto/protoc-gen-openapiv2/options/openapiv2_pb.d.ts +14 -14
  37. package/dist/src/proto/protoc-gen-openapiv2/options/openapiv2_pb.d.ts.map +1 -1
  38. package/dist/src/proto/protoc-gen-openapiv2/options/openapiv2_pb.js +1 -1
  39. package/dist/src/proto/temporal/api/activity/v1/message_pb.d.ts +106 -35
  40. package/dist/src/proto/temporal/api/activity/v1/message_pb.d.ts.map +1 -1
  41. package/dist/src/proto/temporal/api/activity/v1/message_pb.js +18 -2
  42. package/dist/src/proto/temporal/api/activity/v1/message_pb.js.map +1 -1
  43. package/dist/src/proto/temporal/api/batch/v1/message_pb.d.ts +12 -12
  44. package/dist/src/proto/temporal/api/batch/v1/message_pb.d.ts.map +1 -1
  45. package/dist/src/proto/temporal/api/batch/v1/message_pb.js +1 -1
  46. package/dist/src/proto/temporal/api/callback/v1/message_pb.d.ts +72 -0
  47. package/dist/src/proto/temporal/api/callback/v1/message_pb.d.ts.map +1 -0
  48. package/dist/src/proto/temporal/api/callback/v1/message_pb.js +18 -0
  49. package/dist/src/proto/temporal/api/callback/v1/message_pb.js.map +1 -0
  50. package/dist/src/proto/temporal/api/cloud/account/v1/message_pb.d.ts +5 -5
  51. package/dist/src/proto/temporal/api/cloud/account/v1/message_pb.d.ts.map +1 -1
  52. package/dist/src/proto/temporal/api/cloud/account/v1/message_pb.js +1 -1
  53. package/dist/src/proto/temporal/api/cloud/auditlog/v1/message_pb.d.ts +3 -3
  54. package/dist/src/proto/temporal/api/cloud/auditlog/v1/message_pb.d.ts.map +1 -1
  55. package/dist/src/proto/temporal/api/cloud/auditlog/v1/message_pb.js +1 -1
  56. package/dist/src/proto/temporal/api/cloud/billing/v1/message_pb.d.ts +206 -0
  57. package/dist/src/proto/temporal/api/cloud/billing/v1/message_pb.d.ts.map +1 -0
  58. package/dist/src/proto/temporal/api/cloud/billing/v1/message_pb.js +95 -0
  59. package/dist/src/proto/temporal/api/cloud/billing/v1/message_pb.js.map +1 -0
  60. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/request_response_pb.d.ts +462 -82
  61. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/request_response_pb.d.ts.map +1 -1
  62. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/request_response_pb.js +223 -132
  63. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/request_response_pb.js.map +1 -1
  64. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/service_pb.d.ts +95 -1
  65. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/service_pb.d.ts.map +1 -1
  66. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/service_pb.js +2 -2
  67. package/dist/src/proto/temporal/api/cloud/cloudservice/v1/service_pb.js.map +1 -1
  68. package/dist/src/proto/temporal/api/cloud/connectivityrule/v1/message_pb.d.ts +11 -3
  69. package/dist/src/proto/temporal/api/cloud/connectivityrule/v1/message_pb.d.ts.map +1 -1
  70. package/dist/src/proto/temporal/api/cloud/connectivityrule/v1/message_pb.js +2 -2
  71. package/dist/src/proto/temporal/api/cloud/connectivityrule/v1/message_pb.js.map +1 -1
  72. package/dist/src/proto/temporal/api/cloud/identity/v1/message_pb.d.ts +173 -24
  73. package/dist/src/proto/temporal/api/cloud/identity/v1/message_pb.d.ts.map +1 -1
  74. package/dist/src/proto/temporal/api/cloud/identity/v1/message_pb.js +22 -2
  75. package/dist/src/proto/temporal/api/cloud/identity/v1/message_pb.js.map +1 -1
  76. package/dist/src/proto/temporal/api/cloud/namespace/v1/message_pb.d.ts +325 -26
  77. package/dist/src/proto/temporal/api/cloud/namespace/v1/message_pb.d.ts.map +1 -1
  78. package/dist/src/proto/temporal/api/cloud/namespace/v1/message_pb.js +105 -22
  79. package/dist/src/proto/temporal/api/cloud/namespace/v1/message_pb.js.map +1 -1
  80. package/dist/src/proto/temporal/api/cloud/nexus/v1/message_pb.d.ts +5 -5
  81. package/dist/src/proto/temporal/api/cloud/nexus/v1/message_pb.d.ts.map +1 -1
  82. package/dist/src/proto/temporal/api/cloud/nexus/v1/message_pb.js +1 -1
  83. package/dist/src/proto/temporal/api/cloud/operation/v1/message_pb.d.ts +4 -4
  84. package/dist/src/proto/temporal/api/cloud/operation/v1/message_pb.d.ts.map +1 -1
  85. package/dist/src/proto/temporal/api/cloud/operation/v1/message_pb.js +1 -1
  86. package/dist/src/proto/temporal/api/cloud/region/v1/message_pb.js +1 -1
  87. package/dist/src/proto/temporal/api/cloud/resource/v1/message_pb.js +1 -1
  88. package/dist/src/proto/temporal/api/cloud/sink/v1/message_pb.js +1 -1
  89. package/dist/src/proto/temporal/api/cloud/usage/v1/message_pb.d.ts +2 -2
  90. package/dist/src/proto/temporal/api/cloud/usage/v1/message_pb.d.ts.map +1 -1
  91. package/dist/src/proto/temporal/api/cloud/usage/v1/message_pb.js +1 -1
  92. package/dist/src/proto/temporal/api/command/v1/message_pb.d.ts +61 -52
  93. package/dist/src/proto/temporal/api/command/v1/message_pb.d.ts.map +1 -1
  94. package/dist/src/proto/temporal/api/command/v1/message_pb.js +2 -2
  95. package/dist/src/proto/temporal/api/command/v1/message_pb.js.map +1 -1
  96. package/dist/src/proto/temporal/api/common/v1/message_pb.d.ts +118 -2
  97. package/dist/src/proto/temporal/api/common/v1/message_pb.d.ts.map +1 -1
  98. package/dist/src/proto/temporal/api/common/v1/message_pb.js +24 -4
  99. package/dist/src/proto/temporal/api/common/v1/message_pb.js.map +1 -1
  100. package/dist/src/proto/temporal/api/compute/v1/config_pb.d.ts +133 -0
  101. package/dist/src/proto/temporal/api/compute/v1/config_pb.d.ts.map +1 -0
  102. package/dist/src/proto/temporal/api/compute/v1/config_pb.js +38 -0
  103. package/dist/src/proto/temporal/api/compute/v1/config_pb.js.map +1 -0
  104. package/dist/src/proto/temporal/api/compute/v1/provider_pb.d.ts +49 -0
  105. package/dist/src/proto/temporal/api/compute/v1/provider_pb.d.ts.map +1 -0
  106. package/dist/src/proto/temporal/api/compute/v1/provider_pb.js +15 -0
  107. package/dist/src/proto/temporal/api/compute/v1/provider_pb.js.map +1 -0
  108. package/dist/src/proto/temporal/api/compute/v1/scaler_pb.d.ts +39 -0
  109. package/dist/src/proto/temporal/api/compute/v1/scaler_pb.d.ts.map +1 -0
  110. package/dist/src/proto/temporal/api/compute/v1/scaler_pb.js +15 -0
  111. package/dist/src/proto/temporal/api/compute/v1/scaler_pb.js.map +1 -0
  112. package/dist/src/proto/temporal/api/deployment/v1/message_pb.d.ts +76 -39
  113. package/dist/src/proto/temporal/api/deployment/v1/message_pb.d.ts.map +1 -1
  114. package/dist/src/proto/temporal/api/deployment/v1/message_pb.js +4 -2
  115. package/dist/src/proto/temporal/api/deployment/v1/message_pb.js.map +1 -1
  116. package/dist/src/proto/temporal/api/enums/v1/activity_pb.js +1 -1
  117. package/dist/src/proto/temporal/api/enums/v1/batch_operation_pb.js +1 -1
  118. package/dist/src/proto/temporal/api/enums/v1/command_type_pb.js +1 -1
  119. package/dist/src/proto/temporal/api/enums/v1/common_pb.js +1 -1
  120. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.d.ts +8 -4
  121. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.d.ts.map +1 -1
  122. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.js +9 -5
  123. package/dist/src/proto/temporal/api/enums/v1/deployment_pb.js.map +1 -1
  124. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.d.ts +7 -1
  125. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.d.ts.map +1 -1
  126. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.js +8 -2
  127. package/dist/src/proto/temporal/api/enums/v1/event_type_pb.js.map +1 -1
  128. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.d.ts +7 -1
  129. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.d.ts.map +1 -1
  130. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.js +8 -2
  131. package/dist/src/proto/temporal/api/enums/v1/failed_cause_pb.js.map +1 -1
  132. package/dist/src/proto/temporal/api/enums/v1/namespace_pb.js +1 -1
  133. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.d.ts +153 -0
  134. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.d.ts.map +1 -1
  135. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.js +159 -2
  136. package/dist/src/proto/temporal/api/enums/v1/nexus_pb.js.map +1 -1
  137. package/dist/src/proto/temporal/api/enums/v1/query_pb.js +1 -1
  138. package/dist/src/proto/temporal/api/enums/v1/reset_pb.js +1 -1
  139. package/dist/src/proto/temporal/api/enums/v1/schedule_pb.js +1 -1
  140. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.d.ts +10 -1
  141. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.d.ts.map +1 -1
  142. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.js +11 -2
  143. package/dist/src/proto/temporal/api/enums/v1/task_queue_pb.js.map +1 -1
  144. package/dist/src/proto/temporal/api/enums/v1/update_pb.js +1 -1
  145. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.d.ts +24 -14
  146. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.d.ts.map +1 -1
  147. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.js +24 -14
  148. package/dist/src/proto/temporal/api/enums/v1/workflow_pb.js.map +1 -1
  149. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.d.ts +24 -2
  150. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.d.ts.map +1 -1
  151. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.js +7 -2
  152. package/dist/src/proto/temporal/api/errordetails/v1/message_pb.js.map +1 -1
  153. package/dist/src/proto/temporal/api/export/v1/message_pb.d.ts +1 -1
  154. package/dist/src/proto/temporal/api/export/v1/message_pb.d.ts.map +1 -1
  155. package/dist/src/proto/temporal/api/export/v1/message_pb.js +1 -1
  156. package/dist/src/proto/temporal/api/failure/v1/message_pb.d.ts +26 -11
  157. package/dist/src/proto/temporal/api/failure/v1/message_pb.d.ts.map +1 -1
  158. package/dist/src/proto/temporal/api/failure/v1/message_pb.js +2 -2
  159. package/dist/src/proto/temporal/api/failure/v1/message_pb.js.map +1 -1
  160. package/dist/src/proto/temporal/api/filter/v1/message_pb.d.ts +2 -2
  161. package/dist/src/proto/temporal/api/filter/v1/message_pb.d.ts.map +1 -1
  162. package/dist/src/proto/temporal/api/filter/v1/message_pb.js +1 -1
  163. package/dist/src/proto/temporal/api/history/v1/message_pb.d.ts +278 -141
  164. package/dist/src/proto/temporal/api/history/v1/message_pb.d.ts.map +1 -1
  165. package/dist/src/proto/temporal/api/history/v1/message_pb.js +72 -62
  166. package/dist/src/proto/temporal/api/history/v1/message_pb.js.map +1 -1
  167. package/dist/src/proto/temporal/api/namespace/v1/message_pb.d.ts +39 -5
  168. package/dist/src/proto/temporal/api/namespace/v1/message_pb.d.ts.map +1 -1
  169. package/dist/src/proto/temporal/api/namespace/v1/message_pb.js +2 -2
  170. package/dist/src/proto/temporal/api/namespace/v1/message_pb.js.map +1 -1
  171. package/dist/src/proto/temporal/api/nexus/v1/message_pb.d.ts +386 -14
  172. package/dist/src/proto/temporal/api/nexus/v1/message_pb.d.ts.map +1 -1
  173. package/dist/src/proto/temporal/api/nexus/v1/message_pb.js +26 -3
  174. package/dist/src/proto/temporal/api/nexus/v1/message_pb.js.map +1 -1
  175. package/dist/src/proto/temporal/api/nexusservices/workerservice/v1/request_response_pb.d.ts +41 -0
  176. package/dist/src/proto/temporal/api/nexusservices/workerservice/v1/request_response_pb.d.ts.map +1 -0
  177. package/dist/src/proto/temporal/api/nexusservices/workerservice/v1/request_response_pb.js +20 -0
  178. package/dist/src/proto/temporal/api/nexusservices/workerservice/v1/request_response_pb.js.map +1 -0
  179. package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.d.ts +6 -6
  180. package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.d.ts.map +1 -1
  181. package/dist/src/proto/temporal/api/operatorservice/v1/request_response_pb.js +1 -1
  182. package/dist/src/proto/temporal/api/operatorservice/v1/service_pb.js +1 -1
  183. package/dist/src/proto/temporal/api/protocol/v1/message_pb.d.ts +1 -1
  184. package/dist/src/proto/temporal/api/protocol/v1/message_pb.d.ts.map +1 -1
  185. package/dist/src/proto/temporal/api/protocol/v1/message_pb.js +1 -1
  186. package/dist/src/proto/temporal/api/protometa/v1/annotations_pb.d.ts +46 -0
  187. package/dist/src/proto/temporal/api/protometa/v1/annotations_pb.d.ts.map +1 -0
  188. package/dist/src/proto/temporal/api/protometa/v1/annotations_pb.js +19 -0
  189. package/dist/src/proto/temporal/api/protometa/v1/annotations_pb.js.map +1 -0
  190. package/dist/src/proto/temporal/api/query/v1/message_pb.d.ts +4 -4
  191. package/dist/src/proto/temporal/api/query/v1/message_pb.d.ts.map +1 -1
  192. package/dist/src/proto/temporal/api/query/v1/message_pb.js +1 -1
  193. package/dist/src/proto/temporal/api/replication/v1/message_pb.d.ts +1 -1
  194. package/dist/src/proto/temporal/api/replication/v1/message_pb.d.ts.map +1 -1
  195. package/dist/src/proto/temporal/api/replication/v1/message_pb.js +1 -1
  196. package/dist/src/proto/temporal/api/rules/v1/message_pb.d.ts +3 -3
  197. package/dist/src/proto/temporal/api/rules/v1/message_pb.d.ts.map +1 -1
  198. package/dist/src/proto/temporal/api/rules/v1/message_pb.js +1 -1
  199. package/dist/src/proto/temporal/api/schedule/v1/message_pb.d.ts +24 -24
  200. package/dist/src/proto/temporal/api/schedule/v1/message_pb.d.ts.map +1 -1
  201. package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.d.ts +1 -1
  202. package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.d.ts.map +1 -1
  203. package/dist/src/proto/temporal/api/sdk/v1/enhanced_stack_trace_pb.js +1 -1
  204. package/dist/src/proto/temporal/api/sdk/v1/external_storage_pb.d.ts +35 -0
  205. package/dist/src/proto/temporal/api/sdk/v1/external_storage_pb.d.ts.map +1 -0
  206. package/dist/src/proto/temporal/api/sdk/v1/external_storage_pb.js +14 -0
  207. package/dist/src/proto/temporal/api/sdk/v1/external_storage_pb.js.map +1 -0
  208. package/dist/src/proto/temporal/api/sdk/v1/task_complete_metadata_pb.js +1 -1
  209. package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.d.ts +2 -2
  210. package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.d.ts.map +1 -1
  211. package/dist/src/proto/temporal/api/sdk/v1/user_metadata_pb.js +1 -1
  212. package/dist/src/proto/temporal/api/sdk/v1/worker_config_pb.js +1 -1
  213. package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.d.ts +1 -1
  214. package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.d.ts.map +1 -1
  215. package/dist/src/proto/temporal/api/sdk/v1/workflow_metadata_pb.js +1 -1
  216. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.d.ts +39 -23
  217. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.d.ts.map +1 -1
  218. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.js +12 -7
  219. package/dist/src/proto/temporal/api/taskqueue/v1/message_pb.js.map +1 -1
  220. package/dist/src/proto/temporal/api/update/v1/message_pb.d.ts +10 -10
  221. package/dist/src/proto/temporal/api/update/v1/message_pb.d.ts.map +1 -1
  222. package/dist/src/proto/temporal/api/update/v1/message_pb.js +1 -1
  223. package/dist/src/proto/temporal/api/version/v1/message_pb.d.ts +4 -4
  224. package/dist/src/proto/temporal/api/version/v1/message_pb.d.ts.map +1 -1
  225. package/dist/src/proto/temporal/api/version/v1/message_pb.js +1 -1
  226. package/dist/src/proto/temporal/api/worker/v1/message_pb.d.ts +208 -15
  227. package/dist/src/proto/temporal/api/worker/v1/message_pb.d.ts.map +1 -1
  228. package/dist/src/proto/temporal/api/worker/v1/message_pb.js +33 -3
  229. package/dist/src/proto/temporal/api/worker/v1/message_pb.js.map +1 -1
  230. package/dist/src/proto/temporal/api/workflow/v1/message_pb.d.ts +187 -96
  231. package/dist/src/proto/temporal/api/workflow/v1/message_pb.d.ts.map +1 -1
  232. package/dist/src/proto/temporal/api/workflow/v1/message_pb.js +16 -11
  233. package/dist/src/proto/temporal/api/workflow/v1/message_pb.js.map +1 -1
  234. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.d.ts +1884 -283
  235. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.d.ts.map +1 -1
  236. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.js +309 -127
  237. package/dist/src/proto/temporal/api/workflowservice/v1/request_response_pb.js.map +1 -1
  238. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.d.ts +232 -2
  239. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.d.ts.map +1 -1
  240. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.js +3 -2
  241. package/dist/src/proto/temporal/api/workflowservice/v1/service_pb.js.map +1 -1
  242. package/dist/src/runtime/effect-layers.d.ts +85 -0
  243. package/dist/src/runtime/effect-layers.d.ts.map +1 -1
  244. package/dist/src/worker/concurrency.d.ts.map +1 -1
  245. package/dist/src/worker/concurrency.js +12 -0
  246. package/dist/src/worker/concurrency.js.map +1 -1
  247. package/dist/src/worker/runtime.d.ts.map +1 -1
  248. package/dist/src/worker/runtime.js +169 -23
  249. package/dist/src/worker/runtime.js.map +1 -1
  250. package/dist/src/workflow/command-event-matrix.d.ts +13 -0
  251. package/dist/src/workflow/command-event-matrix.d.ts.map +1 -0
  252. package/dist/src/workflow/command-event-matrix.js +158 -0
  253. package/dist/src/workflow/command-event-matrix.js.map +1 -0
  254. package/dist/src/workflow/context.d.ts.map +1 -1
  255. package/dist/src/workflow/context.js +0 -11
  256. package/dist/src/workflow/context.js.map +1 -1
  257. package/dist/src/workflow/determinism.d.ts.map +1 -1
  258. package/dist/src/workflow/determinism.js +27 -1
  259. package/dist/src/workflow/determinism.js.map +1 -1
  260. package/dist/src/workflow/executor.d.ts.map +1 -1
  261. package/dist/src/workflow/executor.js +22 -21
  262. package/dist/src/workflow/executor.js.map +1 -1
  263. package/dist/src/workflow/guards.d.ts.map +1 -1
  264. package/dist/src/workflow/guards.js +141 -36
  265. package/dist/src/workflow/guards.js.map +1 -1
  266. package/dist/src/workflow/index.d.ts +1 -0
  267. package/dist/src/workflow/index.d.ts.map +1 -1
  268. package/dist/src/workflow/index.js +1 -0
  269. package/dist/src/workflow/index.js.map +1 -1
  270. package/docs/adoption-readiness.md +93 -0
  271. package/docs/agent-adoption-guide.md +25 -3
  272. package/docs/default-choice-hardening-plan.md +160 -0
  273. package/docs/feature-matrix.md +20 -20
  274. package/docs/production-design.md +3 -3
  275. package/docs/production-readiness-implementation-plan.md +66 -56
  276. package/docs/semantic-readiness.md +76 -15
  277. package/docs/support-policy.md +9 -5
  278. package/package.json +18 -10
@@ -3,7 +3,7 @@ import type { Duration, Empty, FieldMask, Timestamp } from "@bufbuild/protobuf/w
3
3
  import type { ActivityOptions } from "../../activity/v1/message_pb.js";
4
4
  import type { CallbackState, NexusOperationCancellationState, PendingNexusOperationState } from "../../enums/v1/common_pb.js";
5
5
  import type { EventType } from "../../enums/v1/event_type_pb.js";
6
- import type { ParentClosePolicy, PendingActivityState, PendingWorkflowTaskState, VersioningBehavior, WorkflowExecutionStatus, WorkflowIdReusePolicy } from "../../enums/v1/workflow_pb.js";
6
+ import type { ContinueAsNewVersioningBehavior, ParentClosePolicy, PendingActivityState, PendingWorkflowTaskState, VersioningBehavior, WorkflowExecutionStatus, WorkflowIdReusePolicy } from "../../enums/v1/workflow_pb.js";
7
7
  import type { ActivityType, Callback, Header, Link, Memo, Payloads, Priority, RetryPolicy, SearchAttributes, WorkerVersionStamp, WorkflowExecution, WorkflowType } from "../../common/v1/message_pb.js";
8
8
  import type { Deployment, WorkerDeploymentVersion } from "../../deployment/v1/message_pb.js";
9
9
  import type { Failure } from "../../failure/v1/message_pb.js";
@@ -24,19 +24,19 @@ export type WorkflowExecutionInfo = Message<"temporal.api.workflow.v1.WorkflowEx
24
24
  /**
25
25
  * @generated from field: temporal.api.common.v1.WorkflowExecution execution = 1;
26
26
  */
27
- execution?: WorkflowExecution;
27
+ execution?: WorkflowExecution | undefined;
28
28
  /**
29
29
  * @generated from field: temporal.api.common.v1.WorkflowType type = 2;
30
30
  */
31
- type?: WorkflowType;
31
+ type?: WorkflowType | undefined;
32
32
  /**
33
33
  * @generated from field: google.protobuf.Timestamp start_time = 3;
34
34
  */
35
- startTime?: Timestamp;
35
+ startTime?: Timestamp | undefined;
36
36
  /**
37
37
  * @generated from field: google.protobuf.Timestamp close_time = 4;
38
38
  */
39
- closeTime?: Timestamp;
39
+ closeTime?: Timestamp | undefined;
40
40
  /**
41
41
  * @generated from field: temporal.api.enums.v1.WorkflowExecutionStatus status = 5;
42
42
  */
@@ -52,23 +52,23 @@ export type WorkflowExecutionInfo = Message<"temporal.api.workflow.v1.WorkflowEx
52
52
  /**
53
53
  * @generated from field: temporal.api.common.v1.WorkflowExecution parent_execution = 8;
54
54
  */
55
- parentExecution?: WorkflowExecution;
55
+ parentExecution?: WorkflowExecution | undefined;
56
56
  /**
57
57
  * @generated from field: google.protobuf.Timestamp execution_time = 9;
58
58
  */
59
- executionTime?: Timestamp;
59
+ executionTime?: Timestamp | undefined;
60
60
  /**
61
61
  * @generated from field: temporal.api.common.v1.Memo memo = 10;
62
62
  */
63
- memo?: Memo;
63
+ memo?: Memo | undefined;
64
64
  /**
65
65
  * @generated from field: temporal.api.common.v1.SearchAttributes search_attributes = 11;
66
66
  */
67
- searchAttributes?: SearchAttributes;
67
+ searchAttributes?: SearchAttributes | undefined;
68
68
  /**
69
69
  * @generated from field: temporal.api.workflow.v1.ResetPoints auto_reset_points = 12;
70
70
  */
71
- autoResetPoints?: ResetPoints;
71
+ autoResetPoints?: ResetPoints | undefined;
72
72
  /**
73
73
  * @generated from field: string task_queue = 13;
74
74
  */
@@ -88,14 +88,14 @@ export type WorkflowExecutionInfo = Message<"temporal.api.workflow.v1.WorkflowEx
88
88
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp most_recent_worker_version_stamp = 16 [deprecated = true];
89
89
  * @deprecated
90
90
  */
91
- mostRecentWorkerVersionStamp?: WorkerVersionStamp;
91
+ mostRecentWorkerVersionStamp?: WorkerVersionStamp | undefined;
92
92
  /**
93
93
  * Workflow execution duration is defined as difference between close time and execution time.
94
94
  * This field is only populated if the workflow is closed.
95
95
  *
96
96
  * @generated from field: google.protobuf.Duration execution_duration = 17;
97
97
  */
98
- executionDuration?: Duration;
98
+ executionDuration?: Duration | undefined;
99
99
  /**
100
100
  * Contains information about the root workflow execution.
101
101
  * The root workflow execution is defined as follows:
@@ -117,7 +117,7 @@ export type WorkflowExecutionInfo = Message<"temporal.api.workflow.v1.WorkflowEx
117
117
  *
118
118
  * @generated from field: temporal.api.common.v1.WorkflowExecution root_execution = 18;
119
119
  */
120
- rootExecution?: WorkflowExecution;
120
+ rootExecution?: WorkflowExecution | undefined;
121
121
  /**
122
122
  * The currently assigned build ID for this execution. Presence of this value means worker versioning is used
123
123
  * for this execution. Assigned build ID is selected based on Worker Versioning Assignment Rules
@@ -158,10 +158,9 @@ export type WorkflowExecutionInfo = Message<"temporal.api.workflow.v1.WorkflowEx
158
158
  *
159
159
  * @generated from field: temporal.api.workflow.v1.WorkflowExecutionVersioningInfo versioning_info = 22;
160
160
  */
161
- versioningInfo?: WorkflowExecutionVersioningInfo;
161
+ versioningInfo?: WorkflowExecutionVersioningInfo | undefined;
162
162
  /**
163
163
  * The name of Worker Deployment that completed the most recent workflow task.
164
- * Experimental. Worker Deployments are experimental and might change in the future.
165
164
  *
166
165
  * @generated from field: string worker_deployment_name = 23;
167
166
  */
@@ -171,7 +170,7 @@ export type WorkflowExecutionInfo = Message<"temporal.api.workflow.v1.WorkflowEx
171
170
  *
172
171
  * @generated from field: temporal.api.common.v1.Priority priority = 24;
173
172
  */
174
- priority?: Priority;
173
+ priority?: Priority | undefined;
175
174
  /**
176
175
  * Total size in bytes of all external payloads referenced in workflow history.
177
176
  *
@@ -202,13 +201,13 @@ export type WorkflowExecutionExtendedInfo = Message<"temporal.api.workflow.v1.Wo
202
201
  *
203
202
  * @generated from field: google.protobuf.Timestamp execution_expiration_time = 1;
204
203
  */
205
- executionExpirationTime?: Timestamp;
204
+ executionExpirationTime?: Timestamp | undefined;
206
205
  /**
207
206
  * Workflow run expiration time is defined as current workflow run start time plus workflow run timeout.
208
207
  *
209
208
  * @generated from field: google.protobuf.Timestamp run_expiration_time = 2;
210
209
  */
211
- runExpirationTime?: Timestamp;
210
+ runExpirationTime?: Timestamp | undefined;
212
211
  /**
213
212
  * indicates if the workflow received a cancel request
214
213
  *
@@ -220,13 +219,13 @@ export type WorkflowExecutionExtendedInfo = Message<"temporal.api.workflow.v1.Wo
220
219
  *
221
220
  * @generated from field: google.protobuf.Timestamp last_reset_time = 4;
222
221
  */
223
- lastResetTime?: Timestamp;
222
+ lastResetTime?: Timestamp | undefined;
224
223
  /**
225
224
  * Original workflow start time.
226
225
  *
227
226
  * @generated from field: google.protobuf.Timestamp original_start_time = 5;
228
227
  */
229
- originalStartTime?: Timestamp;
228
+ originalStartTime?: Timestamp | undefined;
230
229
  /**
231
230
  * Reset Run ID points to the new run when this execution is reset. If the execution is reset multiple times, it points to the latest run.
232
231
  *
@@ -249,7 +248,7 @@ export type WorkflowExecutionExtendedInfo = Message<"temporal.api.workflow.v1.Wo
249
248
  *
250
249
  * @generated from field: temporal.api.workflow.v1.WorkflowExecutionPauseInfo pause_info = 8;
251
250
  */
252
- pauseInfo?: WorkflowExecutionPauseInfo;
251
+ pauseInfo?: WorkflowExecutionPauseInfo | undefined;
253
252
  };
254
253
  /**
255
254
  * Describes the message temporal.api.workflow.v1.WorkflowExecutionExtendedInfo.
@@ -293,7 +292,7 @@ export type WorkflowExecutionVersioningInfo = Message<"temporal.api.workflow.v1.
293
292
  * @generated from field: temporal.api.deployment.v1.Deployment deployment = 2 [deprecated = true];
294
293
  * @deprecated
295
294
  */
296
- deployment?: Deployment;
295
+ deployment?: Deployment | undefined;
297
296
  /**
298
297
  * Deprecated. Use `deployment_version`.
299
298
  *
@@ -319,7 +318,7 @@ export type WorkflowExecutionVersioningInfo = Message<"temporal.api.workflow.v1.
319
318
  *
320
319
  * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 7;
321
320
  */
322
- deploymentVersion?: WorkerDeploymentVersion;
321
+ deploymentVersion?: WorkerDeploymentVersion | undefined;
323
322
  /**
324
323
  * Present if user has set an execution-specific versioning override. This override takes
325
324
  * precedence over SDK-sent `behavior` (and `version` when override is PINNED). An
@@ -330,7 +329,7 @@ export type WorkflowExecutionVersioningInfo = Message<"temporal.api.workflow.v1.
330
329
  *
331
330
  * @generated from field: temporal.api.workflow.v1.VersioningOverride versioning_override = 3;
332
331
  */
333
- versioningOverride?: VersioningOverride;
332
+ versioningOverride?: VersioningOverride | undefined;
334
333
  /**
335
334
  * When present, indicates the workflow is transitioning to a different deployment. Can
336
335
  * indicate one of the following transitions: unversioned -> versioned, versioned -> versioned
@@ -354,7 +353,7 @@ export type WorkflowExecutionVersioningInfo = Message<"temporal.api.workflow.v1.
354
353
  * @generated from field: temporal.api.workflow.v1.DeploymentTransition deployment_transition = 4 [deprecated = true];
355
354
  * @deprecated
356
355
  */
357
- deploymentTransition?: DeploymentTransition;
356
+ deploymentTransition?: DeploymentTransition | undefined;
358
357
  /**
359
358
  * When present, indicates the workflow is transitioning to a different deployment version
360
359
  * (which may belong to the same deployment name or another). Can indicate one of the following
@@ -377,7 +376,7 @@ export type WorkflowExecutionVersioningInfo = Message<"temporal.api.workflow.v1.
377
376
  *
378
377
  * @generated from field: temporal.api.workflow.v1.DeploymentVersionTransition version_transition = 6;
379
378
  */
380
- versionTransition?: DeploymentVersionTransition;
379
+ versionTransition?: DeploymentVersionTransition | undefined;
381
380
  /**
382
381
  * Monotonic counter reflecting the latest routing decision for this workflow execution.
383
382
  * Used for staleness detection between history and matching when dispatching tasks to workers.
@@ -390,6 +389,21 @@ export type WorkflowExecutionVersioningInfo = Message<"temporal.api.workflow.v1.
390
389
  * @generated from field: int64 revision_number = 8;
391
390
  */
392
391
  revisionNumber: bigint;
392
+ /**
393
+ * Experimental.
394
+ * If this workflow is the result of a continue-as-new, this field is set to the initial_versioning_behavior
395
+ * specified in that command.
396
+ * Only used for the initial task of this run and the initial task of any retries of this run.
397
+ * Not passed to children or to future continue-as-new.
398
+ *
399
+ * Note: In the first release of Upgrade-on-CaN, when the only ContinueAsNewVersioningBehavior was AutoUpgrade,
400
+ * a non-empty InheritedAutoUpgradeInfo meant that the workflow should start as AutoUpgrade. So for compatibility
401
+ * with ContinueAsNew history commands generated during that time, know that an UNSPECIFIED value here is equivalent
402
+ * to ContinueAsNewVersioningBehaviorAutoUpgrade if the behavior of the workflow is AutoUpgrade.
403
+ *
404
+ * @generated from field: temporal.api.enums.v1.ContinueAsNewVersioningBehavior continue_as_new_initial_versioning_behavior = 9;
405
+ */
406
+ continueAsNewInitialVersioningBehavior: ContinueAsNewVersioningBehavior;
393
407
  };
394
408
  /**
395
409
  * Describes the message temporal.api.workflow.v1.WorkflowExecutionVersioningInfo.
@@ -409,7 +423,7 @@ export type DeploymentTransition = Message<"temporal.api.workflow.v1.DeploymentT
409
423
  *
410
424
  * @generated from field: temporal.api.deployment.v1.Deployment deployment = 1;
411
425
  */
412
- deployment?: Deployment;
426
+ deployment?: Deployment | undefined;
413
427
  };
414
428
  /**
415
429
  * Describes the message temporal.api.workflow.v1.DeploymentTransition.
@@ -437,7 +451,7 @@ export type DeploymentVersionTransition = Message<"temporal.api.workflow.v1.Depl
437
451
  *
438
452
  * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion deployment_version = 2;
439
453
  */
440
- deploymentVersion?: WorkerDeploymentVersion;
454
+ deploymentVersion?: WorkerDeploymentVersion | undefined;
441
455
  };
442
456
  /**
443
457
  * Describes the message temporal.api.workflow.v1.DeploymentVersionTransition.
@@ -451,25 +465,25 @@ export type WorkflowExecutionConfig = Message<"temporal.api.workflow.v1.Workflow
451
465
  /**
452
466
  * @generated from field: temporal.api.taskqueue.v1.TaskQueue task_queue = 1;
453
467
  */
454
- taskQueue?: TaskQueue;
468
+ taskQueue?: TaskQueue | undefined;
455
469
  /**
456
470
  * @generated from field: google.protobuf.Duration workflow_execution_timeout = 2;
457
471
  */
458
- workflowExecutionTimeout?: Duration;
472
+ workflowExecutionTimeout?: Duration | undefined;
459
473
  /**
460
474
  * @generated from field: google.protobuf.Duration workflow_run_timeout = 3;
461
475
  */
462
- workflowRunTimeout?: Duration;
476
+ workflowRunTimeout?: Duration | undefined;
463
477
  /**
464
478
  * @generated from field: google.protobuf.Duration default_workflow_task_timeout = 4;
465
479
  */
466
- defaultWorkflowTaskTimeout?: Duration;
480
+ defaultWorkflowTaskTimeout?: Duration | undefined;
467
481
  /**
468
482
  * User metadata provided on start workflow.
469
483
  *
470
484
  * @generated from field: temporal.api.sdk.v1.UserMetadata user_metadata = 5;
471
485
  */
472
- userMetadata?: UserMetadata;
486
+ userMetadata?: UserMetadata | undefined;
473
487
  };
474
488
  /**
475
489
  * Describes the message temporal.api.workflow.v1.WorkflowExecutionConfig.
@@ -487,7 +501,7 @@ export type PendingActivityInfo = Message<"temporal.api.workflow.v1.PendingActiv
487
501
  /**
488
502
  * @generated from field: temporal.api.common.v1.ActivityType activity_type = 2;
489
503
  */
490
- activityType?: ActivityType;
504
+ activityType?: ActivityType | undefined;
491
505
  /**
492
506
  * @generated from field: temporal.api.enums.v1.PendingActivityState state = 3;
493
507
  */
@@ -495,15 +509,15 @@ export type PendingActivityInfo = Message<"temporal.api.workflow.v1.PendingActiv
495
509
  /**
496
510
  * @generated from field: temporal.api.common.v1.Payloads heartbeat_details = 4;
497
511
  */
498
- heartbeatDetails?: Payloads;
512
+ heartbeatDetails?: Payloads | undefined;
499
513
  /**
500
514
  * @generated from field: google.protobuf.Timestamp last_heartbeat_time = 5;
501
515
  */
502
- lastHeartbeatTime?: Timestamp;
516
+ lastHeartbeatTime?: Timestamp | undefined;
503
517
  /**
504
518
  * @generated from field: google.protobuf.Timestamp last_started_time = 6;
505
519
  */
506
- lastStartedTime?: Timestamp;
520
+ lastStartedTime?: Timestamp | undefined;
507
521
  /**
508
522
  * @generated from field: int32 attempt = 7;
509
523
  */
@@ -515,15 +529,15 @@ export type PendingActivityInfo = Message<"temporal.api.workflow.v1.PendingActiv
515
529
  /**
516
530
  * @generated from field: google.protobuf.Timestamp scheduled_time = 9;
517
531
  */
518
- scheduledTime?: Timestamp;
532
+ scheduledTime?: Timestamp | undefined;
519
533
  /**
520
534
  * @generated from field: google.protobuf.Timestamp expiration_time = 10;
521
535
  */
522
- expirationTime?: Timestamp;
536
+ expirationTime?: Timestamp | undefined;
523
537
  /**
524
538
  * @generated from field: temporal.api.failure.v1.Failure last_failure = 11;
525
539
  */
526
- lastFailure?: Failure;
540
+ lastFailure?: Failure | undefined;
527
541
  /**
528
542
  * @generated from field: string last_worker_identity = 12;
529
543
  */
@@ -568,7 +582,7 @@ export type PendingActivityInfo = Message<"temporal.api.workflow.v1.PendingActiv
568
582
  * @generated from field: temporal.api.common.v1.WorkerVersionStamp last_worker_version_stamp = 15 [deprecated = true];
569
583
  * @deprecated
570
584
  */
571
- lastWorkerVersionStamp?: WorkerVersionStamp;
585
+ lastWorkerVersionStamp?: WorkerVersionStamp | undefined;
572
586
  /**
573
587
  * The time activity will wait until the next retry.
574
588
  * If activity is currently running it will be next retry interval if activity failed.
@@ -577,20 +591,20 @@ export type PendingActivityInfo = Message<"temporal.api.workflow.v1.PendingActiv
577
591
  *
578
592
  * @generated from field: google.protobuf.Duration current_retry_interval = 16;
579
593
  */
580
- currentRetryInterval?: Duration;
594
+ currentRetryInterval?: Duration | undefined;
581
595
  /**
582
596
  * The time when the last activity attempt was completed. If activity has not been completed yet then it will be null.
583
597
  *
584
598
  * @generated from field: google.protobuf.Timestamp last_attempt_complete_time = 17;
585
599
  */
586
- lastAttemptCompleteTime?: Timestamp;
600
+ lastAttemptCompleteTime?: Timestamp | undefined;
587
601
  /**
588
602
  * Next time when activity will be scheduled.
589
603
  * If activity is currently scheduled or started it will be null.
590
604
  *
591
605
  * @generated from field: google.protobuf.Timestamp next_attempt_schedule_time = 18;
592
606
  */
593
- nextAttemptScheduleTime?: Timestamp;
607
+ nextAttemptScheduleTime?: Timestamp | undefined;
594
608
  /**
595
609
  * Indicates if activity is paused.
596
610
  *
@@ -605,7 +619,7 @@ export type PendingActivityInfo = Message<"temporal.api.workflow.v1.PendingActiv
605
619
  * @generated from field: temporal.api.deployment.v1.Deployment last_deployment = 20 [deprecated = true];
606
620
  * @deprecated
607
621
  */
608
- lastDeployment?: Deployment;
622
+ lastDeployment?: Deployment | undefined;
609
623
  /**
610
624
  * The Worker Deployment Version this activity was dispatched to most recently.
611
625
  * Deprecated. Use `last_deployment_version`.
@@ -620,24 +634,24 @@ export type PendingActivityInfo = Message<"temporal.api.workflow.v1.PendingActiv
620
634
  *
621
635
  * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion last_deployment_version = 25;
622
636
  */
623
- lastDeploymentVersion?: WorkerDeploymentVersion;
637
+ lastDeploymentVersion?: WorkerDeploymentVersion | undefined;
624
638
  /**
625
639
  * Priority metadata. If this message is not present, or any fields are not
626
640
  * present, they inherit the values from the workflow.
627
641
  *
628
642
  * @generated from field: temporal.api.common.v1.Priority priority = 22;
629
643
  */
630
- priority?: Priority;
644
+ priority?: Priority | undefined;
631
645
  /**
632
646
  * @generated from field: temporal.api.workflow.v1.PendingActivityInfo.PauseInfo pause_info = 23;
633
647
  */
634
- pauseInfo?: PendingActivityInfo_PauseInfo;
648
+ pauseInfo?: PendingActivityInfo_PauseInfo | undefined;
635
649
  /**
636
650
  * Current activity options. May be different from the one used to start the activity.
637
651
  *
638
652
  * @generated from field: temporal.api.activity.v1.ActivityOptions activity_options = 24;
639
653
  */
640
- activityOptions?: ActivityOptions;
654
+ activityOptions?: ActivityOptions | undefined;
641
655
  };
642
656
  /**
643
657
  * Describes the message temporal.api.workflow.v1.PendingActivityInfo.
@@ -653,7 +667,7 @@ export type PendingActivityInfo_PauseInfo = Message<"temporal.api.workflow.v1.Pe
653
667
  *
654
668
  * @generated from field: google.protobuf.Timestamp pause_time = 1;
655
669
  */
656
- pauseTime?: Timestamp;
670
+ pauseTime?: Timestamp | undefined;
657
671
  /**
658
672
  * @generated from oneof temporal.api.workflow.v1.PendingActivityInfo.PauseInfo.paused_by
659
673
  */
@@ -776,7 +790,7 @@ export type PendingWorkflowTaskInfo = Message<"temporal.api.workflow.v1.PendingW
776
790
  /**
777
791
  * @generated from field: google.protobuf.Timestamp scheduled_time = 2;
778
792
  */
779
- scheduledTime?: Timestamp;
793
+ scheduledTime?: Timestamp | undefined;
780
794
  /**
781
795
  * original_scheduled_time is the scheduled time of the first workflow task during workflow task heartbeat.
782
796
  * Heartbeat workflow task is done by RespondWorkflowTaskComplete with ForceCreateNewWorkflowTask == true and no command
@@ -785,11 +799,11 @@ export type PendingWorkflowTaskInfo = Message<"temporal.api.workflow.v1.PendingW
785
799
  *
786
800
  * @generated from field: google.protobuf.Timestamp original_scheduled_time = 3;
787
801
  */
788
- originalScheduledTime?: Timestamp;
802
+ originalScheduledTime?: Timestamp | undefined;
789
803
  /**
790
804
  * @generated from field: google.protobuf.Timestamp started_time = 4;
791
805
  */
792
- startedTime?: Timestamp;
806
+ startedTime?: Timestamp | undefined;
793
807
  /**
794
808
  * @generated from field: int32 attempt = 5;
795
809
  */
@@ -850,7 +864,7 @@ export type ResetPointInfo = Message<"temporal.api.workflow.v1.ResetPointInfo">
850
864
  /**
851
865
  * @generated from field: google.protobuf.Timestamp create_time = 4;
852
866
  */
853
- createTime?: Timestamp;
867
+ createTime?: Timestamp | undefined;
854
868
  /**
855
869
  * (-- api-linter: core::0214::resource-expiry=disabled
856
870
  * aip.dev/not-precedent: TTL is not defined for ResetPointInfo. --)
@@ -858,7 +872,7 @@ export type ResetPointInfo = Message<"temporal.api.workflow.v1.ResetPointInfo">
858
872
  *
859
873
  * @generated from field: google.protobuf.Timestamp expire_time = 5;
860
874
  */
861
- expireTime?: Timestamp;
875
+ expireTime?: Timestamp | undefined;
862
876
  /**
863
877
  * false if the reset point has pending childWFs/reqCancels/signalExternals.
864
878
  *
@@ -885,35 +899,35 @@ export type NewWorkflowExecutionInfo = Message<"temporal.api.workflow.v1.NewWork
885
899
  /**
886
900
  * @generated from field: temporal.api.common.v1.WorkflowType workflow_type = 2;
887
901
  */
888
- workflowType?: WorkflowType;
902
+ workflowType?: WorkflowType | undefined;
889
903
  /**
890
904
  * @generated from field: temporal.api.taskqueue.v1.TaskQueue task_queue = 3;
891
905
  */
892
- taskQueue?: TaskQueue;
906
+ taskQueue?: TaskQueue | undefined;
893
907
  /**
894
908
  * Serialized arguments to the workflow.
895
909
  *
896
910
  * @generated from field: temporal.api.common.v1.Payloads input = 4;
897
911
  */
898
- input?: Payloads;
912
+ input?: Payloads | undefined;
899
913
  /**
900
914
  * Total workflow execution timeout including retries and continue as new.
901
915
  *
902
916
  * @generated from field: google.protobuf.Duration workflow_execution_timeout = 5;
903
917
  */
904
- workflowExecutionTimeout?: Duration;
918
+ workflowExecutionTimeout?: Duration | undefined;
905
919
  /**
906
920
  * Timeout of a single workflow run.
907
921
  *
908
922
  * @generated from field: google.protobuf.Duration workflow_run_timeout = 6;
909
923
  */
910
- workflowRunTimeout?: Duration;
924
+ workflowRunTimeout?: Duration | undefined;
911
925
  /**
912
926
  * Timeout of a single workflow task.
913
927
  *
914
928
  * @generated from field: google.protobuf.Duration workflow_task_timeout = 7;
915
929
  */
916
- workflowTaskTimeout?: Duration;
930
+ workflowTaskTimeout?: Duration | undefined;
917
931
  /**
918
932
  * Default: WORKFLOW_ID_REUSE_POLICY_ALLOW_DUPLICATE.
919
933
  *
@@ -925,7 +939,7 @@ export type NewWorkflowExecutionInfo = Message<"temporal.api.workflow.v1.NewWork
925
939
  *
926
940
  * @generated from field: temporal.api.common.v1.RetryPolicy retry_policy = 9;
927
941
  */
928
- retryPolicy?: RetryPolicy;
942
+ retryPolicy?: RetryPolicy | undefined;
929
943
  /**
930
944
  * See https://docs.temporal.io/docs/content/what-is-a-temporal-cron-job/
931
945
  *
@@ -935,15 +949,15 @@ export type NewWorkflowExecutionInfo = Message<"temporal.api.workflow.v1.NewWork
935
949
  /**
936
950
  * @generated from field: temporal.api.common.v1.Memo memo = 11;
937
951
  */
938
- memo?: Memo;
952
+ memo?: Memo | undefined;
939
953
  /**
940
954
  * @generated from field: temporal.api.common.v1.SearchAttributes search_attributes = 12;
941
955
  */
942
- searchAttributes?: SearchAttributes;
956
+ searchAttributes?: SearchAttributes | undefined;
943
957
  /**
944
958
  * @generated from field: temporal.api.common.v1.Header header = 13;
945
959
  */
946
- header?: Header;
960
+ header?: Header | undefined;
947
961
  /**
948
962
  * Metadata on the workflow if it is started. This is carried over to the WorkflowExecutionConfig
949
963
  * for use by user interfaces to display the fixed as-of-start summary and details of the
@@ -951,20 +965,20 @@ export type NewWorkflowExecutionInfo = Message<"temporal.api.workflow.v1.NewWork
951
965
  *
952
966
  * @generated from field: temporal.api.sdk.v1.UserMetadata user_metadata = 14;
953
967
  */
954
- userMetadata?: UserMetadata;
968
+ userMetadata?: UserMetadata | undefined;
955
969
  /**
956
970
  * If set, takes precedence over the Versioning Behavior sent by the SDK on Workflow Task completion.
957
971
  * To unset the override after the workflow is running, use UpdateWorkflowExecutionOptions.
958
972
  *
959
973
  * @generated from field: temporal.api.workflow.v1.VersioningOverride versioning_override = 15;
960
974
  */
961
- versioningOverride?: VersioningOverride;
975
+ versioningOverride?: VersioningOverride | undefined;
962
976
  /**
963
977
  * Priority metadata
964
978
  *
965
979
  * @generated from field: temporal.api.common.v1.Priority priority = 16;
966
980
  */
967
- priority?: Priority;
981
+ priority?: Priority | undefined;
968
982
  };
969
983
  /**
970
984
  * Describes the message temporal.api.workflow.v1.NewWorkflowExecutionInfo.
@@ -982,19 +996,19 @@ export type CallbackInfo = Message<"temporal.api.workflow.v1.CallbackInfo"> & {
982
996
  *
983
997
  * @generated from field: temporal.api.common.v1.Callback callback = 1;
984
998
  */
985
- callback?: Callback;
999
+ callback?: Callback | undefined;
986
1000
  /**
987
1001
  * Trigger for this callback.
988
1002
  *
989
1003
  * @generated from field: temporal.api.workflow.v1.CallbackInfo.Trigger trigger = 2;
990
1004
  */
991
- trigger?: CallbackInfo_Trigger;
1005
+ trigger?: CallbackInfo_Trigger | undefined;
992
1006
  /**
993
1007
  * The time when the callback was registered.
994
1008
  *
995
1009
  * @generated from field: google.protobuf.Timestamp registration_time = 3;
996
1010
  */
997
- registrationTime?: Timestamp;
1011
+ registrationTime?: Timestamp | undefined;
998
1012
  /**
999
1013
  * @generated from field: temporal.api.enums.v1.CallbackState state = 4;
1000
1014
  */
@@ -1011,19 +1025,19 @@ export type CallbackInfo = Message<"temporal.api.workflow.v1.CallbackInfo"> & {
1011
1025
  *
1012
1026
  * @generated from field: google.protobuf.Timestamp last_attempt_complete_time = 6;
1013
1027
  */
1014
- lastAttemptCompleteTime?: Timestamp;
1028
+ lastAttemptCompleteTime?: Timestamp | undefined;
1015
1029
  /**
1016
1030
  * The last attempt's failure, if any.
1017
1031
  *
1018
1032
  * @generated from field: temporal.api.failure.v1.Failure last_attempt_failure = 7;
1019
1033
  */
1020
- lastAttemptFailure?: Failure;
1034
+ lastAttemptFailure?: Failure | undefined;
1021
1035
  /**
1022
1036
  * The time when the next attempt is scheduled.
1023
1037
  *
1024
1038
  * @generated from field: google.protobuf.Timestamp next_attempt_schedule_time = 8;
1025
1039
  */
1026
- nextAttemptScheduleTime?: Timestamp;
1040
+ nextAttemptScheduleTime?: Timestamp | undefined;
1027
1041
  /**
1028
1042
  * If the state is BLOCKED, blocked reason provides additional information.
1029
1043
  *
@@ -1112,20 +1126,22 @@ export type PendingNexusOperationInfo = Message<"temporal.api.workflow.v1.Pendin
1112
1126
  *
1113
1127
  * @generated from field: google.protobuf.Duration schedule_to_close_timeout = 5;
1114
1128
  */
1115
- scheduleToCloseTimeout?: Duration;
1129
+ scheduleToCloseTimeout?: Duration | undefined;
1116
1130
  /**
1117
1131
  * The time when the operation was scheduled.
1118
1132
  *
1119
1133
  * @generated from field: google.protobuf.Timestamp scheduled_time = 6;
1120
1134
  */
1121
- scheduledTime?: Timestamp;
1135
+ scheduledTime?: Timestamp | undefined;
1122
1136
  /**
1123
1137
  * @generated from field: temporal.api.enums.v1.PendingNexusOperationState state = 7;
1124
1138
  */
1125
1139
  state: PendingNexusOperationState;
1126
1140
  /**
1127
1141
  * The number of attempts made to deliver the start operation request.
1128
- * This number represents a minimum bound since the attempt is incremented after the request completes.
1142
+ * This number is approximate, it is incremented when a task is added to the history queue.
1143
+ * In practice, there could be more attempts if a task is executed but fails to commit, or less attempts if a task
1144
+ * was never executed.
1129
1145
  *
1130
1146
  * @generated from field: int32 attempt = 8;
1131
1147
  */
@@ -1135,23 +1151,23 @@ export type PendingNexusOperationInfo = Message<"temporal.api.workflow.v1.Pendin
1135
1151
  *
1136
1152
  * @generated from field: google.protobuf.Timestamp last_attempt_complete_time = 9;
1137
1153
  */
1138
- lastAttemptCompleteTime?: Timestamp;
1154
+ lastAttemptCompleteTime?: Timestamp | undefined;
1139
1155
  /**
1140
1156
  * The last attempt's failure, if any.
1141
1157
  *
1142
1158
  * @generated from field: temporal.api.failure.v1.Failure last_attempt_failure = 10;
1143
1159
  */
1144
- lastAttemptFailure?: Failure;
1160
+ lastAttemptFailure?: Failure | undefined;
1145
1161
  /**
1146
1162
  * The time when the next attempt is scheduled.
1147
1163
  *
1148
1164
  * @generated from field: google.protobuf.Timestamp next_attempt_schedule_time = 11;
1149
1165
  */
1150
- nextAttemptScheduleTime?: Timestamp;
1166
+ nextAttemptScheduleTime?: Timestamp | undefined;
1151
1167
  /**
1152
1168
  * @generated from field: temporal.api.workflow.v1.NexusOperationCancellationInfo cancellation_info = 12;
1153
1169
  */
1154
- cancellationInfo?: NexusOperationCancellationInfo;
1170
+ cancellationInfo?: NexusOperationCancellationInfo | undefined;
1155
1171
  /**
1156
1172
  * The event ID of the NexusOperationScheduled event. Can be used to correlate an operation in the
1157
1173
  * DescribeWorkflowExecution response with workflow history.
@@ -1178,7 +1194,7 @@ export type PendingNexusOperationInfo = Message<"temporal.api.workflow.v1.Pendin
1178
1194
  *
1179
1195
  * @generated from field: google.protobuf.Duration schedule_to_start_timeout = 16;
1180
1196
  */
1181
- scheduleToStartTimeout?: Duration;
1197
+ scheduleToStartTimeout?: Duration | undefined;
1182
1198
  /**
1183
1199
  * Start-to-close timeout for this operation.
1184
1200
  * (-- api-linter: core::0140::prepositions=disabled
@@ -1186,7 +1202,7 @@ export type PendingNexusOperationInfo = Message<"temporal.api.workflow.v1.Pendin
1186
1202
  *
1187
1203
  * @generated from field: google.protobuf.Duration start_to_close_timeout = 17;
1188
1204
  */
1189
- startToCloseTimeout?: Duration;
1205
+ startToCloseTimeout?: Duration | undefined;
1190
1206
  };
1191
1207
  /**
1192
1208
  * Describes the message temporal.api.workflow.v1.PendingNexusOperationInfo.
@@ -1204,7 +1220,7 @@ export type NexusOperationCancellationInfo = Message<"temporal.api.workflow.v1.N
1204
1220
  *
1205
1221
  * @generated from field: google.protobuf.Timestamp requested_time = 1;
1206
1222
  */
1207
- requestedTime?: Timestamp;
1223
+ requestedTime?: Timestamp | undefined;
1208
1224
  /**
1209
1225
  * @generated from field: temporal.api.enums.v1.NexusOperationCancellationState state = 2;
1210
1226
  */
@@ -1221,19 +1237,19 @@ export type NexusOperationCancellationInfo = Message<"temporal.api.workflow.v1.N
1221
1237
  *
1222
1238
  * @generated from field: google.protobuf.Timestamp last_attempt_complete_time = 4;
1223
1239
  */
1224
- lastAttemptCompleteTime?: Timestamp;
1240
+ lastAttemptCompleteTime?: Timestamp | undefined;
1225
1241
  /**
1226
1242
  * The last attempt's failure, if any.
1227
1243
  *
1228
1244
  * @generated from field: temporal.api.failure.v1.Failure last_attempt_failure = 5;
1229
1245
  */
1230
- lastAttemptFailure?: Failure;
1246
+ lastAttemptFailure?: Failure | undefined;
1231
1247
  /**
1232
1248
  * The time when the next attempt is scheduled.
1233
1249
  *
1234
1250
  * @generated from field: google.protobuf.Timestamp next_attempt_schedule_time = 6;
1235
1251
  */
1236
- nextAttemptScheduleTime?: Timestamp;
1252
+ nextAttemptScheduleTime?: Timestamp | undefined;
1237
1253
  /**
1238
1254
  * If the state is BLOCKED, blocked reason provides additional information.
1239
1255
  *
@@ -1255,19 +1271,94 @@ export type WorkflowExecutionOptions = Message<"temporal.api.workflow.v1.Workflo
1255
1271
  *
1256
1272
  * @generated from field: temporal.api.workflow.v1.VersioningOverride versioning_override = 1;
1257
1273
  */
1258
- versioningOverride?: VersioningOverride;
1274
+ versioningOverride?: VersioningOverride | undefined;
1259
1275
  /**
1260
1276
  * If set, overrides the workflow's priority sent by the SDK.
1261
1277
  *
1262
1278
  * @generated from field: temporal.api.common.v1.Priority priority = 2;
1263
1279
  */
1264
- priority?: Priority;
1280
+ priority?: Priority | undefined;
1281
+ /**
1282
+ * Time-skipping configuration for this workflow execution.
1283
+ * If not set, the time-skipping configuration is not updated by this request;
1284
+ * the existing configuration is preserved.
1285
+ *
1286
+ * @generated from field: temporal.api.workflow.v1.TimeSkippingConfig time_skipping_config = 3;
1287
+ */
1288
+ timeSkippingConfig?: TimeSkippingConfig | undefined;
1265
1289
  };
1266
1290
  /**
1267
1291
  * Describes the message temporal.api.workflow.v1.WorkflowExecutionOptions.
1268
1292
  * Use `create(WorkflowExecutionOptionsSchema)` to create a new message.
1269
1293
  */
1270
1294
  export declare const WorkflowExecutionOptionsSchema: GenMessage<WorkflowExecutionOptions>;
1295
+ /**
1296
+ * Configuration for time skipping during a workflow execution.
1297
+ * When enabled, virtual time advances automatically whenever there is no in-flight work.
1298
+ * In-flight work includes activities, child workflows, Nexus operations, signal/cancel external workflow operations,
1299
+ * and possibly other features added in the future.
1300
+ * User timers are not classified as in-flight work and will be skipped over.
1301
+ * When time advances, it skips to the earlier of the next user timer or the configured bound, if either exists.
1302
+ *
1303
+ * Propagation behavior of time skipping:
1304
+ * The enabled flag, bound fields, and accumulated skipped duration are propagated to related executions as follows:
1305
+ * (1) Child workflows and continue-as-new: both the configuration and the accumulated skipped duration are
1306
+ * inherited from the current execution. The configured bound is shared between the inherited skipped
1307
+ * duration and any additional duration skipped by the new run.
1308
+ * (2) Retry and cron: the configuration and accumulated skipped duration are inherited as recorded when the
1309
+ * current workflow started; the accumulated skipped duration of the current run is not propagated.
1310
+ * (3) Reset: the new run retains the time-skipping configuration of the current execution. Because reset replays
1311
+ * all events up to the reset point and re-applies any UpdateWorkflowExecutionOptions changes made after that
1312
+ * point, the resulting run ends up with the same final time-skipping configuration as the previous run.
1313
+ *
1314
+ * @generated from message temporal.api.workflow.v1.TimeSkippingConfig
1315
+ */
1316
+ export type TimeSkippingConfig = Message<"temporal.api.workflow.v1.TimeSkippingConfig"> & {
1317
+ /**
1318
+ * Enables or disables time skipping for this workflow execution.
1319
+ *
1320
+ * @generated from field: bool enabled = 1;
1321
+ */
1322
+ enabled: boolean;
1323
+ /**
1324
+ * Optional bound that limits the gap between the virtual time of this execution and wall-clock time.
1325
+ * Once the bound is reached, time skipping is automatically disabled,
1326
+ * but can be re-enabled by setting `enabled` to true via UpdateWorkflowExecutionOptions.
1327
+ * This bound cannot be set to a value smaller than the execution's currently skipped duration.
1328
+ *
1329
+ * This is useful in testing scenarios where a workflow is expected to receive
1330
+ * signals, updates, or other external events while timers are in progress.
1331
+ *
1332
+ * @generated from oneof temporal.api.workflow.v1.TimeSkippingConfig.bound
1333
+ */
1334
+ bound: {
1335
+ /**
1336
+ * Maximum total virtual time that can be skipped.
1337
+ *
1338
+ * @generated from field: google.protobuf.Duration max_skipped_duration = 4;
1339
+ */
1340
+ value: Duration;
1341
+ case: "maxSkippedDuration";
1342
+ } | {
1343
+ /**
1344
+ * Maximum elapsed time since time skipping was enabled.
1345
+ * This includes both skipped time and real time elapsing.
1346
+ * (-- api-linter: core::0142::time-field-names=disabled --)
1347
+ *
1348
+ * @generated from field: google.protobuf.Duration max_elapsed_duration = 5;
1349
+ */
1350
+ value: Duration;
1351
+ case: "maxElapsedDuration";
1352
+ } | {
1353
+ case: undefined;
1354
+ value?: undefined;
1355
+ };
1356
+ };
1357
+ /**
1358
+ * Describes the message temporal.api.workflow.v1.TimeSkippingConfig.
1359
+ * Use `create(TimeSkippingConfigSchema)` to create a new message.
1360
+ */
1361
+ export declare const TimeSkippingConfigSchema: GenMessage<TimeSkippingConfig>;
1271
1362
  /**
1272
1363
  * Used to override the versioning behavior (and pinned deployment version, if applicable) of a
1273
1364
  * specific workflow execution. If set, this override takes precedence over worker-sent values.
@@ -1323,7 +1414,7 @@ export type VersioningOverride = Message<"temporal.api.workflow.v1.VersioningOve
1323
1414
  * @generated from field: temporal.api.deployment.v1.Deployment deployment = 2 [deprecated = true];
1324
1415
  * @deprecated
1325
1416
  */
1326
- deployment?: Deployment;
1417
+ deployment?: Deployment | undefined;
1327
1418
  /**
1328
1419
  * Required if behavior is `PINNED`. Must be absent if behavior is not `PINNED`.
1329
1420
  * Identifies the worker deployment version to pin the workflow to, in the format
@@ -1363,7 +1454,7 @@ export type VersioningOverride_PinnedOverride = Message<"temporal.api.workflow.v
1363
1454
  *
1364
1455
  * @generated from field: temporal.api.deployment.v1.WorkerDeploymentVersion version = 2;
1365
1456
  */
1366
- version?: WorkerDeploymentVersion;
1457
+ version?: WorkerDeploymentVersion | undefined;
1367
1458
  };
1368
1459
  /**
1369
1460
  * Describes the message temporal.api.workflow.v1.VersioningOverride.PinnedOverride.
@@ -1506,13 +1597,13 @@ export type PostResetOperation_SignalWorkflow = Message<"temporal.api.workflow.v
1506
1597
  *
1507
1598
  * @generated from field: temporal.api.common.v1.Payloads input = 2;
1508
1599
  */
1509
- input?: Payloads;
1600
+ input?: Payloads | undefined;
1510
1601
  /**
1511
1602
  * Headers that are passed with the signal to the processing workflow.
1512
1603
  *
1513
1604
  * @generated from field: temporal.api.common.v1.Header header = 3;
1514
1605
  */
1515
- header?: Header;
1606
+ header?: Header | undefined;
1516
1607
  /**
1517
1608
  * Links to be associated with the WorkflowExecutionSignaled event.
1518
1609
  *
@@ -1537,14 +1628,14 @@ export type PostResetOperation_UpdateWorkflowOptions = Message<"temporal.api.wor
1537
1628
  *
1538
1629
  * @generated from field: temporal.api.workflow.v1.WorkflowExecutionOptions workflow_execution_options = 1;
1539
1630
  */
1540
- workflowExecutionOptions?: WorkflowExecutionOptions;
1631
+ workflowExecutionOptions?: WorkflowExecutionOptions | undefined;
1541
1632
  /**
1542
1633
  * Controls which fields from `workflow_execution_options` will be applied.
1543
1634
  * To unset a field, set it to null and use the update mask to indicate that it should be mutated.
1544
1635
  *
1545
1636
  * @generated from field: google.protobuf.FieldMask update_mask = 2;
1546
1637
  */
1547
- updateMask?: FieldMask;
1638
+ updateMask?: FieldMask | undefined;
1548
1639
  };
1549
1640
  /**
1550
1641
  * Describes the message temporal.api.workflow.v1.PostResetOperation.UpdateWorkflowOptions.
@@ -1568,7 +1659,7 @@ export type WorkflowExecutionPauseInfo = Message<"temporal.api.workflow.v1.Workf
1568
1659
  *
1569
1660
  * @generated from field: google.protobuf.Timestamp paused_time = 2;
1570
1661
  */
1571
- pausedTime?: Timestamp;
1662
+ pausedTime?: Timestamp | undefined;
1572
1663
  /**
1573
1664
  * The reason for pausing the workflow execution.
1574
1665
  *